{"version":3,"sources":["vendor/ember-cli/app-prefix.js","aira-mgmt/accounts/account/index/route.js","aira-mgmt/accounts/account/index/template.js","aira-mgmt/accounts/account/products/index/controller.js","aira-mgmt/accounts/account/products/index/route.js","aira-mgmt/accounts/account/products/index/template.js","aira-mgmt/accounts/account/products/product/controller.js","aira-mgmt/accounts/account/products/product/edit/controller.js","aira-mgmt/accounts/account/products/product/edit/route.js","aira-mgmt/accounts/account/products/product/edit/template.js","aira-mgmt/accounts/account/products/product/new/controller.js","aira-mgmt/accounts/account/products/product/new/route.js","aira-mgmt/accounts/account/products/product/new/template.js","aira-mgmt/accounts/account/products/product/route.js","aira-mgmt/accounts/account/products/product/template.js","aira-mgmt/accounts/account/products/route.js","aira-mgmt/accounts/account/products/template.js","aira-mgmt/accounts/account/resources/route.js","aira-mgmt/accounts/account/resources/template.js","aira-mgmt/accounts/account/route.js","aira-mgmt/accounts/account/sites/index/controller.js","aira-mgmt/accounts/account/sites/index/route.js","aira-mgmt/accounts/account/sites/index/template.js","aira-mgmt/accounts/account/sites/new/controller.js","aira-mgmt/accounts/account/sites/new/route.js","aira-mgmt/accounts/account/sites/new/template.js","aira-mgmt/accounts/account/sites/route.js","aira-mgmt/accounts/account/sites/site/controller.js","aira-mgmt/accounts/account/sites/site/edit/controller.js","aira-mgmt/accounts/account/sites/site/edit/route.js","aira-mgmt/accounts/account/sites/site/edit/template.js","aira-mgmt/accounts/account/sites/site/index/controller.js","aira-mgmt/accounts/account/sites/site/index/route.js","aira-mgmt/accounts/account/sites/site/index/template.js","aira-mgmt/accounts/account/sites/site/resources/route.js","aira-mgmt/accounts/account/sites/site/resources/template.js","aira-mgmt/accounts/account/sites/site/route.js","aira-mgmt/accounts/account/sites/site/template.js","aira-mgmt/accounts/account/sites/template.js","aira-mgmt/accounts/account/template.js","aira-mgmt/accounts/account/usage/controller.js","aira-mgmt/accounts/account/usage/route.js","aira-mgmt/accounts/account/usage/template.js","aira-mgmt/accounts/account/users/controller.js","aira-mgmt/accounts/account/users/route.js","aira-mgmt/accounts/account/users/template.js","aira-mgmt/accounts/controller.js","aira-mgmt/accounts/index/route.js","aira-mgmt/accounts/index/template.js","aira-mgmt/accounts/new/controller.js","aira-mgmt/accounts/new/route.js","aira-mgmt/accounts/new/template.js","aira-mgmt/accounts/route.js","aira-mgmt/accounts/template.js","aira-mgmt/adapters/app.js","aira-mgmt/adapters/application.js","aira-mgmt/adapters/service.js","aira-mgmt/adapters/setting.js","aira-mgmt/adapters/user.js","aira-mgmt/adapters/wifi.js","aira-mgmt/app.js","aira-mgmt/apps/app/controller.js","aira-mgmt/apps/app/route.js","aira-mgmt/apps/app/template.js","aira-mgmt/apps/route.js","aira-mgmt/apps/template.js","aira-mgmt/authenticators/firebase.js","aira-mgmt/authorizers/platform.js","aira-mgmt/components/accessible-multi-select/component.js","aira-mgmt/components/accessible-multi-select/template.js","aira-mgmt/components/account-product-promotion/component.js","aira-mgmt/components/account-product-promotion/template.js","aira-mgmt/components/account-profile/component.js","aira-mgmt/components/account-profile/template.js","aira-mgmt/components/basic-dropdown.js","aira-mgmt/components/basic-dropdown/content-element.js","aira-mgmt/components/basic-dropdown/content.js","aira-mgmt/components/basic-dropdown/trigger.js","aira-mgmt/components/data-input.js","aira-mgmt/components/external-resources/component.js","aira-mgmt/components/external-resources/template.js","aira-mgmt/components/power-select-multiple.js","aira-mgmt/components/power-select-multiple/trigger.js","aira-mgmt/components/power-select.js","aira-mgmt/components/power-select/before-options.js","aira-mgmt/components/power-select/options.js","aira-mgmt/components/power-select/placeholder.js","aira-mgmt/components/power-select/power-select-group.js","aira-mgmt/components/power-select/search-message.js","aira-mgmt/components/power-select/trigger.js","aira-mgmt/components/properties/property-boolean/component.js","aira-mgmt/components/properties/property-boolean/template.js","aira-mgmt/components/properties/property-display/component.js","aira-mgmt/components/properties/property-display/template.js","aira-mgmt/components/properties/property-property/component.js","aira-mgmt/components/properties/property-property/template.js","aira-mgmt/components/properties/property-select/component.js","aira-mgmt/components/properties/property-select/template.js","aira-mgmt/components/properties/property-text/component.js","aira-mgmt/components/properties/property-text/template.js","aira-mgmt/components/questions/question-boolean/component.js","aira-mgmt/components/questions/question-boolean/template.js","aira-mgmt/components/questions/question-multi-select/component.js","aira-mgmt/components/questions/question-multi-select/template.js","aira-mgmt/components/questions/question-multi-text/component.js","aira-mgmt/components/questions/question-multi-text/template.js","aira-mgmt/components/questions/question-select/component.js","aira-mgmt/components/questions/question-select/template.js","aira-mgmt/components/questions/question-text/component.js","aira-mgmt/components/questions/question-text/template.js","aira-mgmt/components/quill-editor.js","aira-mgmt/components/select-2/component.js","aira-mgmt/components/select-2/template.js","aira-mgmt/components/select-multiple/component.js","aira-mgmt/components/select-multiple/template.js","aira-mgmt/components/select-single/component.js","aira-mgmt/components/select-single/template.js","aira-mgmt/components/simple-panel.js","aira-mgmt/components/table-row/component.js","aira-mgmt/components/user-address/component.js","aira-mgmt/components/user-address/template.js","aira-mgmt/components/user-answer/component.js","aira-mgmt/components/user-answer/template.js","aira-mgmt/components/user-contact/component.js","aira-mgmt/components/user-contact/template.js","aira-mgmt/components/user-profile/component.js","aira-mgmt/components/user-profile/template.js","aira-mgmt/components/user-roles/component.js","aira-mgmt/components/user-roles/template.js","aira-mgmt/components/user-setting/component.js","aira-mgmt/components/user-setting/template.js","aira-mgmt/components/welcome-page.js","aira-mgmt/components/wifi-profile/component.js","aira-mgmt/components/wifi-profile/template.js","aira-mgmt/controllers/login.js","aira-mgmt/helpers/active.js","aira-mgmt/helpers/and.js","aira-mgmt/helpers/app-version.js","aira-mgmt/helpers/bannable.js","aira-mgmt/helpers/build-ia-status.js","aira-mgmt/helpers/cancel-all.js","aira-mgmt/helpers/change-ISO-to-PST.js","aira-mgmt/helpers/change-PST-to-ISO.js","aira-mgmt/helpers/changeset-get.js","aira-mgmt/helpers/changeset-set.js","aira-mgmt/helpers/changeset.js","aira-mgmt/helpers/contains.js","aira-mgmt/helpers/duration-allowed.js","aira-mgmt/helpers/duration-used.js","aira-mgmt/helpers/duration.js","aira-mgmt/helpers/either.js","aira-mgmt/helpers/ember-power-select-is-group.js","aira-mgmt/helpers/ember-power-select-is-selected.js","aira-mgmt/helpers/ember-power-select-true-string-if-present.js","aira-mgmt/helpers/eq.js","aira-mgmt/helpers/equal.js","aira-mgmt/helpers/find-by-type.js","aira-mgmt/helpers/format-money.js","aira-mgmt/helpers/format-number.js","aira-mgmt/helpers/get-epoch-date.js","aira-mgmt/helpers/gt.js","aira-mgmt/helpers/gte.js","aira-mgmt/helpers/has-role.js","aira-mgmt/helpers/is-after.js","aira-mgmt/helpers/is-array.js","aira-mgmt/helpers/is-before.js","aira-mgmt/helpers/is-between.js","aira-mgmt/helpers/is-emergency-contact.js","aira-mgmt/helpers/is-empty.js","aira-mgmt/helpers/is-equal.js","aira-mgmt/helpers/is-multi.js","aira-mgmt/helpers/is-same-or-after.js","aira-mgmt/helpers/is-same-or-before.js","aira-mgmt/helpers/is-same.js","aira-mgmt/helpers/last.js","aira-mgmt/helpers/lt.js","aira-mgmt/helpers/lte.js","aira-mgmt/helpers/min-effective-to.js","aira-mgmt/helpers/minutes.js","aira-mgmt/helpers/moment-add.js","aira-mgmt/helpers/moment-calendar.js","aira-mgmt/helpers/moment-diff.js","aira-mgmt/helpers/moment-duration.js","aira-mgmt/helpers/moment-format.js","aira-mgmt/helpers/moment-from-now.js","aira-mgmt/helpers/moment-from.js","aira-mgmt/helpers/moment-subtract.js","aira-mgmt/helpers/moment-to-date.js","aira-mgmt/helpers/moment-to-now.js","aira-mgmt/helpers/moment-to.js","aira-mgmt/helpers/moment-unix.js","aira-mgmt/helpers/moment.js","aira-mgmt/helpers/money.js","aira-mgmt/helpers/not-eq.js","aira-mgmt/helpers/not.js","aira-mgmt/helpers/now.js","aira-mgmt/helpers/or.js","aira-mgmt/helpers/perform.js","aira-mgmt/helpers/pluralize.js","aira-mgmt/helpers/repeat.js","aira-mgmt/helpers/route-action.js","aira-mgmt/helpers/shorten-key.js","aira-mgmt/helpers/singularize.js","aira-mgmt/helpers/sr-status.js","aira-mgmt/helpers/task.js","aira-mgmt/helpers/unix.js","aira-mgmt/helpers/utc.js","aira-mgmt/helpers/xor.js","aira-mgmt/initializers/app-version.js","aira-mgmt/initializers/container-debug-adapter.js","aira-mgmt/initializers/ember-concurrency.js","aira-mgmt/initializers/ember-data.js","aira-mgmt/initializers/ember-simple-auth.js","aira-mgmt/initializers/export-application-global.js","aira-mgmt/instance-initializers/ember-data.js","aira-mgmt/instance-initializers/ember-simple-auth.js","aira-mgmt/mixins/model-editor.js","aira-mgmt/models/address.js","aira-mgmt/models/answer.js","aira-mgmt/models/app.js","aira-mgmt/models/contact.js","aira-mgmt/models/service.js","aira-mgmt/models/setting.js","aira-mgmt/models/user.js","aira-mgmt/models/wifi.js","aira-mgmt/onboard/google/route.js","aira-mgmt/onboard/google/template.js","aira-mgmt/onboard/index/route.js","aira-mgmt/onboard/index/template.js","aira-mgmt/onboard/interview/route.js","aira-mgmt/onboard/interview/template.js","aira-mgmt/onboard/route.js","aira-mgmt/onboard/sendmail/route.js","aira-mgmt/onboard/sendmail/template.js","aira-mgmt/onboard/template.js","aira-mgmt/onboard/wifi/index/route.js","aira-mgmt/onboard/wifi/index/template.js","aira-mgmt/onboard/wifi/new/route.js","aira-mgmt/onboard/wifi/new/template.js","aira-mgmt/onboard/wifi/route.js","aira-mgmt/onboard/wifi/template.js","aira-mgmt/resolver.js","aira-mgmt/router.js","aira-mgmt/routes/application.js","aira-mgmt/routes/explorers.js","aira-mgmt/routes/index.js","aira-mgmt/routes/login.js","aira-mgmt/sentry.js","aira-mgmt/serializers/app.js","aira-mgmt/serializers/application.js","aira-mgmt/serializers/service.js","aira-mgmt/serializers/setting.js","aira-mgmt/serializers/user.js","aira-mgmt/serializers/wifi.js","aira-mgmt/services/ajax.js","aira-mgmt/services/cookies.js","aira-mgmt/services/firebase.js","aira-mgmt/services/google-account.js","aira-mgmt/services/moment.js","aira-mgmt/services/notify.js","aira-mgmt/services/platform.js","aira-mgmt/services/raven.js","aira-mgmt/services/session.js","aira-mgmt/services/state.js","aira-mgmt/services/text-measurer.js","aira-mgmt/session-stores/application.js","aira-mgmt/templates/application.js","aira-mgmt/templates/components/data-input.js","aira-mgmt/templates/components/simple-panel.js","aira-mgmt/templates/explorers.js","aira-mgmt/templates/index.js","aira-mgmt/templates/loading.js","aira-mgmt/templates/login.js","aira-mgmt/users/controller.js","aira-mgmt/users/index/route.js","aira-mgmt/users/index/template.js","aira-mgmt/users/new/route.js","aira-mgmt/users/new/template.js","aira-mgmt/users/route.js","aira-mgmt/users/template.js","aira-mgmt/users/user/access/edit/route.js","aira-mgmt/users/user/access/edit/template.js","aira-mgmt/users/user/access/index/route.js","aira-mgmt/users/user/access/index/template.js","aira-mgmt/users/user/access/route.js","aira-mgmt/users/user/access/template.js","aira-mgmt/users/user/accounts/route.js","aira-mgmt/users/user/accounts/template.js","aira-mgmt/users/user/activity/controller.js","aira-mgmt/users/user/activity/route.js","aira-mgmt/users/user/activity/template.js","aira-mgmt/users/user/address/edit/route.js","aira-mgmt/users/user/address/edit/template.js","aira-mgmt/users/user/address/index/template.js","aira-mgmt/users/user/address/new/route.js","aira-mgmt/users/user/address/new/template.js","aira-mgmt/users/user/address/route.js","aira-mgmt/users/user/address/template.js","aira-mgmt/users/user/chats-v2/controller.js","aira-mgmt/users/user/chats-v2/route.js","aira-mgmt/users/user/chats-v2/template.js","aira-mgmt/users/user/chats/controller.js","aira-mgmt/users/user/chats/route.js","aira-mgmt/users/user/chats/template.js","aira-mgmt/users/user/comments/route.js","aira-mgmt/users/user/comments/template.js","aira-mgmt/users/user/contacts/edit/route.js","aira-mgmt/users/user/contacts/edit/template.js","aira-mgmt/users/user/contacts/index/template.js","aira-mgmt/users/user/contacts/new/route.js","aira-mgmt/users/user/contacts/new/template.js","aira-mgmt/users/user/contacts/route.js","aira-mgmt/users/user/contacts/template.js","aira-mgmt/users/user/credit/controller.js","aira-mgmt/users/user/credit/route.js","aira-mgmt/users/user/credit/template.js","aira-mgmt/users/user/delete/route.js","aira-mgmt/users/user/delete/template.js","aira-mgmt/users/user/index/route.js","aira-mgmt/users/user/index/template.js","aira-mgmt/users/user/onboard/controller.js","aira-mgmt/users/user/onboard/route.js","aira-mgmt/users/user/onboard/template.js","aira-mgmt/users/user/password/route.js","aira-mgmt/users/user/password/template.js","aira-mgmt/users/user/properties/index/controller.js","aira-mgmt/users/user/properties/index/route.js","aira-mgmt/users/user/properties/index/template.js","aira-mgmt/users/user/properties/property/controller.js","aira-mgmt/users/user/properties/property/edit/controller.js","aira-mgmt/users/user/properties/property/edit/route.js","aira-mgmt/users/user/properties/property/edit/template.js","aira-mgmt/users/user/properties/property/index/template.js","aira-mgmt/users/user/properties/property/new/controller.js","aira-mgmt/users/user/properties/property/new/route.js","aira-mgmt/users/user/properties/property/new/template.js","aira-mgmt/users/user/properties/property/route.js","aira-mgmt/users/user/properties/property/template.js","aira-mgmt/users/user/properties/route.js","aira-mgmt/users/user/properties/template.js","aira-mgmt/users/user/questions/edit/route.js","aira-mgmt/users/user/questions/edit/template.js","aira-mgmt/users/user/questions/route.js","aira-mgmt/users/user/questions/template.js","aira-mgmt/users/user/referrals/controller.js","aira-mgmt/users/user/referrals/route.js","aira-mgmt/users/user/referrals/template.js","aira-mgmt/users/user/roles/route.js","aira-mgmt/users/user/roles/template.js","aira-mgmt/users/user/route.js","aira-mgmt/users/user/service/controller.js","aira-mgmt/users/user/service/route.js","aira-mgmt/users/user/service/template.js","aira-mgmt/users/user/settings/route.js","aira-mgmt/users/user/settings/template.js","aira-mgmt/users/user/subscription/cancel/route.js","aira-mgmt/users/user/subscription/date/route.js","aira-mgmt/users/user/subscription/downgrade/route.js","aira-mgmt/users/user/subscription/index/route.js","aira-mgmt/users/user/subscription/index/template.js","aira-mgmt/users/user/subscription/minutes/controller.js","aira-mgmt/users/user/subscription/minutes/route.js","aira-mgmt/users/user/subscription/minutes/template.js","aira-mgmt/users/user/subscription/pause/route.js","aira-mgmt/users/user/subscription/route.js","aira-mgmt/users/user/subscription/template.js","aira-mgmt/users/user/subscription/upgrade/controller.js","aira-mgmt/users/user/subscription/upgrade/route.js","aira-mgmt/users/user/subscription/upgrade/template.js","aira-mgmt/users/user/support/route.js","aira-mgmt/users/user/support/template.js","aira-mgmt/users/user/template.js","aira-mgmt/users/user/wifi/edit/route.js","aira-mgmt/users/user/wifi/edit/template.js","aira-mgmt/users/user/wifi/index/template.js","aira-mgmt/users/user/wifi/new/route.js","aira-mgmt/users/user/wifi/new/template.js","aira-mgmt/users/user/wifi/route.js","aira-mgmt/users/user/wifi/template.js","aira-mgmt/utils/validate-dates.js","vendor/ember-cli/app-suffix.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define('aira-mgmt/accounts/account/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    beforeModel: function beforeModel() {}\n  }\n\n  // actions: {\n  //   save() {\n  //     profile.setProperties(profileProps);\n  //     return profile.save().then(() => {\n  //       this.set('state.isDirty', false);\n  //       this.get('notify').success('Profile was updated.');\n  //     }, (error) => {\n  //       this.send('error', error);\n  //     });\n  //   }\n  // }\n  );\n});","define(\"aira-mgmt/accounts/account/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"nbOQZy8G\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"account-profile\\\",null,[[\\\"profile\\\"],[[24,[\\\"model\\\",\\\"account\\\"]]]]],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/index/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/products/index/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    timezone: null\n  });\n});","define('aira-mgmt/accounts/account/products/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      var _this = this;\n\n      var accountId = this.modelFor('accounts.account').account.accountId;\n      return Ember.RSVP.hash({\n        product: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('mgmt/account/' + accountId + '/product').then(function (response) {\n            console.log('response data:', response);\n            resolve(response);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        }),\n        promotion: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('mgmt/account/' + accountId + '/promotion').then(function (response) {\n            console.log('response data:', response);\n            resolve(response);\n          }, function (_ref2) {\n            var errorCode = _ref2.errorCode,\n                errorMessage = _ref2.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        })\n      });\n    },\n\n\n    actions: {\n      selectProduct: function selectProduct(accountId, product, productOrPromotion) {\n        console.log('Selected ' + productOrPromotion + ': ' + product.id + ' in account: ' + accountId);\n        this.controller.set('activeId', product.id);\n        this.transitionTo('accounts.account.products.product.edit', accountId, product.id);\n      },\n      createNew: function createNew() {\n        console.log('add product pressed');\n        this.transitionTo('accounts.account.products.product.new');\n      }\n    },\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('timezone', new Date().toLocaleTimeString('en-us', { timeZoneName: 'short' }).split(' ')[2]);\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/products/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"G0U3QIQ4\", \"block\": \"{\\\"symbols\\\":[\\\"promotionRequest\\\",\\\"attribute\\\",\\\"language\\\",\\\"productRequest\\\",\\\"attribute\\\",\\\"language\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"createNew\\\"],null]]],[8],[0,\\\"Add Product/Promotion\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Products\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"product\\\",\\\"payload\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table table-striped table-responsive content-group-lg\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Key\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Description\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"product\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectProduct\\\",[23,4,[\\\"account\\\",\\\"id\\\"]],[23,4,[]],\\\"product\\\"],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,4,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"key\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[1,[23,4,[\\\"key\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"d-flex justify-content-between align-items-center\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Basic Information\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"small-text\\\"],[8],[0,\\\"UUID: \\\"],[1,[23,4,[\\\"uuid\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Type:\\\"],[9],[0,\\\" Product\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Product ID:\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"id\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Enabled:\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"enabled\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Effective from:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[23,4,[\\\"effectiveFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"change-ISO-to-PST\\\",[[23,4,[\\\"effectiveFrom\\\"]]],null],false],[0,\\\" (PST)\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Indefinite\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Effective to:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[23,4,[\\\"effectiveTo\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"change-ISO-to-PST\\\",[[23,4,[\\\"effectiveTo\\\"]]],null],false],[0,\\\" (PST)\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Indefinite\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Terms & conditions:\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"termsAndConditions\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,4,[\\\"termsAndConditionsUrl\\\"]]],null,{\\\"statements\\\":[[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[23,4,[\\\"termsAndConditionsUrl\\\"]]]]],[8],[0,\\\"URL\\\"],[9]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[10,\\\"style\\\",\\\"white-space: pre-wrap;\\\"],[8],[7,\\\"b\\\",true],[8],[0,\\\"Agent message:\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"agentMessage\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[2,\\\" Localized product attributes \\\"],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,4,[\\\"attributesLocalized\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"li\\\",true],[8],[1,[23,6,[]],false],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Product name:\\\"],[9],[0,\\\" \\\"],[1,[23,5,[\\\"localization\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Description:\\\"],[9],[0,\\\" \\\"],[1,[23,5,[\\\"localization\\\",\\\"description\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"li\\\",true],[10,\\\"style\\\",\\\"white-space: pre-wrap;\\\"],[8],[7,\\\"b\\\",true],[8],[0,\\\"Explorer message:\\\"],[9],[0,\\\" \\\"],[1,[23,5,[\\\"localization\\\",\\\"explorerMessage\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Limits\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Duration per month:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"durationAllowed\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              No limit\\\\n            \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,4,[\\\"durationAllowed\\\"]],false],[0,\\\" seconds \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Duration per call:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"durationPerCall\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              No limit\\\\n            \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,4,[\\\"durationPerCall\\\"]],false],[0,\\\" seconds \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Call frequency:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"callsPerPeriod\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              Unlimited\\\\n            \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[23,4,[\\\"callsPerPeriod\\\"]],false],[0,\\\" call(s) per \\\"],[1,[23,4,[\\\"callPeriodLength\\\"]],false],[0,\\\" seconds. Calls are only counted when at least \\\"],[1,[23,4,[\\\"enforcedOnDuration\\\"]],false],[0,\\\" seconds long\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Misc.\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Require agent approval:\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"requireAgentApproval\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Searchable:\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"visible\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Sticky (product stays activated in-app even after ending call):\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"sticky\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Entire call (product overwrites existing ones):\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"entireCall\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Available to guests:\\\"],[9],[0,\\\" \\\"],[1,[23,4,[\\\"availableToGuests\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"This account does not have any associated products.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[7,\\\"h4\\\",true],[8],[0,\\\"Promotions\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"promotion\\\",\\\"payload\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table table-striped table-responsive content-group-lg\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Key\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Description\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"promotion\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectProduct\\\",[23,1,[\\\"account\\\",\\\"id\\\"]],[23,1,[]],\\\"promotion\\\"],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"key\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"key\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"d-flex justify-content-between align-items-center\\\"],[8],[7,\\\"h5\\\",true],[8],[0,\\\"Basic Information\\\"],[9],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"small-text\\\"],[8],[0,\\\"UUID: \\\"],[1,[23,1,[\\\"uuid\\\"]],false],[9],[9],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Type:\\\"],[9],[0,\\\" Promotion\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Product ID:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"id\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Enabled:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"enabled\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Effective from:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"effectiveFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"change-ISO-to-PST\\\",[[23,1,[\\\"effectiveFrom\\\"]]],null],false],[0,\\\" (PST)\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Indefinite\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Effective to:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"effectiveTo\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"change-ISO-to-PST\\\",[[23,1,[\\\"effectiveTo\\\"]]],null],false],[0,\\\" (PST)\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Indefinite\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Terms & conditions:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"termsAndConditions\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"termsAndConditionsUrl\\\"]]],null,{\\\"statements\\\":[[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[23,1,[\\\"termsAndConditionsUrl\\\"]]]]],[8],[0,\\\"URL\\\"],[9]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[10,\\\"style\\\",\\\"white-space: pre-wrap;\\\"],[8],[7,\\\"b\\\",true],[8],[0,\\\"Agent message:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"agentMessage\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[2,\\\" Localized promotion attributes \\\"],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,1,[\\\"attributesLocalized\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"li\\\",true],[8],[1,[23,3,[]],false],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Product name:\\\"],[9],[0,\\\" \\\"],[1,[23,2,[\\\"localization\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Description:\\\"],[9],[0,\\\" \\\"],[1,[23,2,[\\\"localization\\\",\\\"description\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"li\\\",true],[10,\\\"style\\\",\\\"white-space: pre-wrap;\\\"],[8],[7,\\\"b\\\",true],[8],[0,\\\"Explorer message:\\\"],[9],[0,\\\" \\\"],[1,[23,2,[\\\"localization\\\",\\\"explorerMessage\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Limits\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Duration per month:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"durationAllowed\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              No limit\\\\n            \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,1,[\\\"durationAllowed\\\"]],false],[0,\\\" seconds \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Duration per call:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"durationPerCall\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              No limit\\\\n            \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,1,[\\\"durationPerCall\\\"]],false],[0,\\\" seconds \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Call frequency:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"callsPerPeriod\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              Unlimited\\\\n            \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[23,1,[\\\"callsPerPeriod\\\"]],false],[0,\\\" call(s) per \\\"],[1,[23,1,[\\\"callPeriodLength\\\"]],false],[0,\\\" seconds. Calls are only counted when at least \\\"],[1,[23,1,[\\\"enforcedOnDuration\\\"]],false],[0,\\\" seconds long\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Misc.\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Require agent approval:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"requireAgentApproval\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Searchable:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"visible\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Sticky (product stays activated in-app even after ending call):\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"sticky\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Entire call (product overwrites existing ones):\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"entireCall\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Available to guests:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"availableToGuests\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"This account does not have any associated products.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/products/index/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/products/product/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({});\n});","define(\"aira-mgmt/accounts/account/products/product/edit/controller\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    id: null,\n    editClass: null,\n    editClasses: [{ text: \"product\", id: \"product\" }, { text: \"promotion\", id: \"promotion\" }],\n    editKey: null,\n    editEnabled: null,\n    editTermsAndConditions: null,\n    editTermsAndConditionsUrl: null,\n    editAgentMessage: null,\n    editEffectiveFrom: null,\n    editEffectiveTo: null,\n    editDurationAllowed: null,\n    editDurationPerCall: null,\n    editCallPeriodLength: null,\n    editCallsPerPeriod: null,\n    editEnforcedOnDuration: null,\n    editRequireAgentApproval: null,\n    editVisible: null,\n    editSticky: null,\n    editEntireCall: null,\n    editAvailableToGuests: null,\n    editEnforcedOnExplorers: null,\n    editLimitDurationPerCall: null,\n    editLimitDurationPerCallIsDisabled: null,\n    editCallLimitCheckbox: null,\n    editLimitCallFrequency: null,\n    editLimitCallFrequencyIsDisabled: null,\n    editCallFrequencyCheckbox: null,\n    editErrorMessage: null,\n    editingProductPromotion: null,\n    attributesLocalized: null,\n\n    actions: {\n      editProductPromotion: function editProductPromotion(selected) {\n        this.set('editClass', selected);\n        console.log('SELECTION:', this.get('editClass'));\n      },\n      editCallLimit: function editCallLimit(ele) {\n        var enabled = document.getElementById(\"editDurationPerCallEnabled\");\n        if (ele.target.checked) {\n          enabled.disabled = false;\n        } else {\n          enabled.disabled = true;\n        }\n        this.editCallLimitCheckbox = ele.target.checked;\n      },\n      editFrequencyLimit: function editFrequencyLimit(ele) {\n        var callsperPeriod = document.getElementById(\"editCallsPerPeriodEnabled\");\n        var callPeriodLength = document.getElementById(\"editCallPeriodLengthEnabled\");\n        var enforcedDuration = document.getElementById(\"editEnforcedDurationEnabled\");\n        var enforceOnExplorers = document.getElementById(\"editEnforcedOnExplorers\");\n        if (ele.target.checked) {\n          callsperPeriod.disabled = false;\n          callPeriodLength.disabled = false;\n          enforcedDuration.disabled = false;\n          enforceOnExplorers.disabled = false;\n        } else {\n          callsperPeriod.disabled = true;\n          callPeriodLength.disabled = true;\n          enforcedDuration.disabled = true;\n          enforceOnExplorers.disabled = true;\n        }\n        this.editCallFrequencyCheckbox = ele.target.checked;\n      }\n    }\n  });\n});","define('aira-mgmt/accounts/account/products/product/edit/route', ['exports', 'aira-mgmt/utils/validate-dates', 'aira-mgmt/helpers/change-PST-to-ISO', 'aira-mgmt/helpers/change-ISO-to-PST', 'aira-mgmt/accounts/account/route'], function (exports, _validateDates, _changePSTToISO, _changeISOToPST, _route) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n  function _toConsumableArray(arr) {\n    if (Array.isArray(arr)) {\n      for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n        arr2[i] = arr[i];\n      }\n\n      return arr2;\n    } else {\n      return Array.from(arr);\n    }\n  }\n\n  exports.default = Ember.Route.extend({\n\n    platform: Ember.inject.service(),\n    notify: Ember.inject.service(),\n    product: null,\n\n    model: function model(selection) {\n      var _this = this;\n\n      var accountId = this.modelFor('accounts.account').account.accountId;\n      return Ember.RSVP.hash({\n        id: parseInt(selection.product_id),\n        currentProductPromotion: null,\n        isProductOrPromotion: null,\n        product: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('mgmt/account/' + accountId + '/product').then(function (response) {\n            resolve(response);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        }),\n        promotion: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('mgmt/account/' + accountId + '/promotion').then(function (response) {\n            resolve(response);\n          }, function (_ref2) {\n            var errorCode = _ref2.errorCode,\n                errorMessage = _ref2.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        })\n      });\n    },\n    afterModel: function afterModel(model) {\n      // first try to find the product/promotion from the product model\n      var productFound = model.product.payload.find(function (product) {\n        return product.id === model.id;\n      });\n\n      if (productFound != null) {\n        model.currentProductPromotion = productFound;\n        console.log('MODEL #:', model.currentProductPromotion.id);\n        model.isProductOrPromotion = 'product';\n        return;\n      }\n\n      // then try to find the product/promotion from the promotion model\n      var promotionFound = model.promotion.payload.find(function (promotion) {\n        return promotion.id === model.id;\n      });\n\n      if (promotionFound != null) {\n        model.currentProductPromotion = promotionFound;\n        model.isProductOrPromotion = 'promotion';\n        return;\n      }\n\n      console.warn('product promotion not found');\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      this.set('controller.id', model.currentProductPromotion.id);\n      this.set('controller.type', model.currentProductPromotion.type);\n      this.set('controller.editClass', model.isProductOrPromotion);\n      this.set('controller.editKey', model.currentProductPromotion.key);\n      this.set('controller.editEnabled', model.currentProductPromotion.enabled);\n      this.set('controller.editTermsAndConditions', model.currentProductPromotion.termsAndConditions);\n      this.set('controller.editTermsAndConditionsUrl', model.currentProductPromotion.termsAndConditionsUrl);\n      this.set('controller.editAgentMessage', model.currentProductPromotion.agentMessage);\n      this.set('controller.editEffectiveFrom', (0, _changeISOToPST.changeISOtoPST)([model.currentProductPromotion.effectiveFrom]));\n      this.set('controller.editEffectiveTo', (0, _changeISOToPST.changeISOtoPST)([model.currentProductPromotion.effectiveTo]));\n      this.set('controller.editEnforcedOnExplorers', model.currentProductPromotion.enforcedOnExplorers);\n\n      this.set('controller.editLimitDurationPerCallIsDisabled', true);\n      this.set('controller.editLimitCallFrequencyIsDisabled', true);\n\n      if (model.currentProductPromotion.durationPerCall !== -1) {\n        this.set('controller.editLimitDurationPerCall', true);\n        this.set('controller.editCallLimitCheckbox', true);\n        this.set('controller.editLimitDurationPerCallIsDisabled', false);\n        this.set('controller.editDurationPerCall', model.currentProductPromotion.durationPerCall);\n      } else {\n        this.set('controller.editLimitDurationPerCall', false);\n        this.set('controller.editCallLimitCheckbox', false);\n        this.set('controller.editDurationPerCall', null);\n      }\n\n      this.set('controller.editRequireAgentApproval', model.currentProductPromotion.requireAgentApproval);\n      this.set('controller.editVisible', model.currentProductPromotion.visible);\n      this.set('controller.editSticky', model.currentProductPromotion.sticky);\n      this.set('controller.editEntireCall', model.currentProductPromotion.entireCall);\n      this.set('controller.editAvailableToGuests', model.currentProductPromotion.availableToGuests);\n\n      if (model.currentProductPromotion.callsPerPeriod !== -1) {\n        this.set('controller.editLimitCallFrequency', true);\n        this.set('controller.editLimitCallFrequencyIsDisabled', false);\n        this.set('controller.editCallFrequencyCheckbox', true);\n        this.set('controller.editCallsPerPeriod', model.currentProductPromotion.callsPerPeriod);\n        this.set('controller.editCallPeriodLength', model.currentProductPromotion.callPeriodLength);\n        this.set('controller.editEnforcedOnDuration', model.currentProductPromotion.enforcedOnDuration);\n      } else {\n        this.set('controller.editLimitCallFrequency', false);\n        this.set('controller.editCallFrequencyCheckbox', false);\n        this.set('controller.editCallsPerPeriod', null);\n        this.set('controller.editCallPeriodLength', null);\n        this.set('controller.editEnforcedOnDuration', null);\n      }\n\n      if (model.currentProductPromotion.durationAllowed !== -1) {\n        this.set('controller.editDurationAllowed', model.currentProductPromotion.durationAllowed);\n      } else {\n        this.set('controller.editDurationAllowed', null);\n      }\n      this.set('controller.attributesLocalized', (0, _route.addMissingLangLocalizations)(model.currentProductPromotion.attributesLocalized));\n    },\n\n\n    actions: {\n      editCancel: function editCancel() {\n        this.transitionTo('accounts.account.products.index');\n      },\n      editSave: function editSave() {\n        var _this2 = this;\n\n        var accountId = this.modelFor('accounts.account').account.accountId;\n        console.log('ADD PRESSED', accountId);\n\n        // check product name\n        var dataIsGood = true;\n        var errorMessage = [];\n        if (this.get('controller.editKey') === '' || this.get('controller.editKey') === null) {\n          dataIsGood = false;\n          errorMessage.push('Missing product key');\n        }\n        if (this.get('controller.editAgentMessage') === '' || this.get('controller.editAgentMessage') === null) {\n          dataIsGood = false;\n          errorMessage.push('Missing agent message');\n        }\n\n        var effectiveFromError = (0, _validateDates.validateDate)(this.get('controller.editEffectiveFrom'), 'effective from', false);\n        if (effectiveFromError) {\n          dataIsGood = false;\n          errorMessage.push(effectiveFromError);\n        }\n\n        var effectiveToValue = this.get('controller.editEffectiveTo', false);\n        if (effectiveToValue !== '' && effectiveToValue != null) {\n          var effectiveToError = (0, _validateDates.validateDate)(effectiveToValue, 'effective to', false);\n          if (effectiveToError) {\n            dataIsGood = false;\n            errorMessage.push(effectiveToError);\n          }\n        }\n        if (this.get('controller.editDurationAllowed') && parseInt(this.get('controller.editDurationAllowed')) <= 0) {\n          dataIsGood = false;\n          errorMessage.push('Duration per month value must be a valid number greater than 0');\n        }\n        if (this.get('controller.editCallLimitCheckbox')) {\n          if (this.get('controller.editDurationPerCall') === '' || this.get('controller.editDurationPerCall') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced duration per call');\n          } else {\n            var value = parseInt(this.get('controller.editDurationPerCall'));\n            if (value <= 0 || isNaN(value)) {\n              dataIsGood = false;\n              errorMessage.push('Duration per call value must be a valid number greater than 0');\n            }\n          }\n        }\n        if (this.get('controller.editCallFrequencyCheckbox')) {\n          if (this.get('controller.editCallsPerPeriod') === '' || this.get('controller.editCallsPerPeriod') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced calls per period');\n          } else {\n            var _value = parseInt(this.get('controller.editCallsPerPeriod'));\n            if (_value <= 0 || isNaN(_value)) {\n              dataIsGood = false;\n              errorMessage.push('Calls per period value must be a valid number greater than 0');\n            }\n          }\n          if (this.get('controller.editCallPeriodLength') === '' || this.get('controller.editCallPeriodLength') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced call period length');\n          } else {\n            var _value2 = parseInt(this.get('controller.editCallPeriodLength'));\n            if (_value2 <= 0 || isNaN(_value2)) {\n              dataIsGood = false;\n              errorMessage.push('Call period length value must be a valid number greater than 0');\n            }\n          }\n          if (this.get('controller.editEnforcedOnDuration') === '' || this.get('controller.editEnforcedOnDuration') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced on duration');\n          } else {\n            var _value3 = parseInt(this.get('controller.editEnforcedOnDuration'));\n            if (_value3 <= 0 || isNaN(_value3)) {\n              dataIsGood = false;\n              errorMessage.push('Enforced on duration value must be a valid number greater than 0');\n            }\n          }\n        }\n\n        var validationArrayRsp = (0, _route.validateAttributesLocalized)(this.get('controller.attributesLocalized'));\n        if (!validationArrayRsp[0]) {\n          dataIsGood = false;\n          errorMessage.push.apply(errorMessage, _toConsumableArray(validationArrayRsp[1]));\n        }\n\n        if (dataIsGood) {\n          this.get('platform').doPut(['access', this.get('controller.editClass'), this.get('controller.id')].join('/'), {\n            class: this.get('controller.editClass'),\n            entireCall: this.get('controller.editEntireCall'),\n            termsAndConditionsUrl: this.get('controller.editTermsAndConditionsUrl'),\n            type: this.get('controller.type') || 'PUBLIC',\n            enabled: this.get('controller.editEnabled'),\n            availableToGuests: this.get('controller.editAvailableToGuests'),\n            enforcedOnExplorers: this.get('controller.editEnforcedOnExplorers'),\n            termsAndConditions: this.get('controller.editTermsAndConditions'),\n            effectiveTo: this.get('controller.editEffectiveTo') ? (0, _changePSTToISO.changePSTtoISO)([this.get('controller.editEffectiveTo')]) : null,\n            agentMessage: this.get('controller.editAgentMessage'),\n            visible: this.get('controller.editVisible'),\n            requireAgentApproval: this.get('controller.editRequireAgentApproval'),\n            callPeriodLength: this.get('controller.editCallFrequencyCheckbox') ? parseInt(this.get('controller.editCallPeriodLength')) : 3600,\n            enforcedOnDuration: this.get('controller.editCallFrequencyCheckbox') ? parseInt(this.get('controller.editEnforcedOnDuration')) : 60,\n            callsPerPeriod: this.get('controller.editCallFrequencyCheckbox') ? parseInt(this.get('controller.editCallsPerPeriod')) : -1,\n            sticky: this.get('controller.editSticky'),\n            durationPerCall: this.get('controller.editCallLimitCheckbox') ? parseInt(this.get('controller.editDurationPerCall')) : -1,\n            effectiveFrom: this.get('controller.editEffectiveFrom') ? (0, _changePSTToISO.changePSTtoISO)([this.get('controller.editEffectiveFrom')]) : null,\n            durationAllowed: this.get('controller.editDurationAllowed') ? parseInt(this.get('controller.editDurationAllowed')) : -1,\n            account: {\n              id: accountId\n            },\n            attributesLocalized: (0, _route.removeNotSetLocalizations)(this.get('controller.attributesLocalized'))\n          }).then(function () {\n            console.log('HTTP PUT was successful');\n            _this2.get('notify').success('Access updated!');\n            _this2.transitionTo('accounts.account.products.index');\n          }, function (error) {\n            console.error('HTTP PUT errored out');\n            _this2.send('error', error.errorMessage);\n          });\n          this.set('controller.editErrorMessage', null);\n        } else {\n          this.set('controller.editErrorMessage', errorMessage);\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/products/product/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"SZo9nRnw\", \"block\": \"{\\\"symbols\\\":[\\\"err\\\",\\\"attribute\\\",\\\"language\\\"],\\\"statements\\\":[[7,\\\"form\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"d-flex justify-content-between align-items-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"\\\\n      Editing: \\\"],[1,[22,\\\"editName\\\"],false],[0,\\\" (ID: \\\"],[1,[24,[\\\"model\\\",\\\"currentProductPromotion\\\",\\\"id\\\"]],false],[0,\\\")\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"small-text\\\"],[8],[0,\\\"\\\\n      UUID: \\\"],[1,[24,[\\\"model\\\",\\\"currentProductPromotion\\\",\\\"uuid\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editClass\\\"],[8],[0,\\\"Class\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"editClass\\\",\\\"text\\\",\\\"form-control\\\",[24,[\\\"model\\\",\\\"isProductOrPromotion\\\"]],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductTermsAndConditions\\\"],[8],[0,\\\"Terms & Conditions\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editProductTermsAndConditions\\\",\\\"text\\\",\\\"form-control\\\",\\\"Terms & conditions\\\",[24,[\\\"editTermsAndConditions\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Footnotes for terms and conditions of product. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductTermsAndConditionsUrl\\\"],[8],[0,\\\"Terms & Conditions URL\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editProductTermsAndConditionsUrl\\\",\\\"text\\\",\\\"form-control\\\",\\\"Terms & conditions URL\\\",[24,[\\\"editTermsAndConditionsUrl\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A URL that shows more information about the product's terms and conditions. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductAgentMessage\\\"],[8],[0,\\\"Agent Message\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editProductAgentMessage\\\",\\\"form-control\\\",\\\"Agent message\\\",[24,[\\\"editAgentMessage\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Agent side (eg. agent dash). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductEffectiveFrom\\\"],[8],[0,\\\"Effective From\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editProductEffectiveFrom\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"editEffectiveFrom\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the product becomes active. The product will only be displayed and usable while it's active.\\\\n      If the effective from date is not specified, the product begins effective immediately. The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductEffectiveTo\\\"],[8],[0,\\\"Effective To\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editProductEffectiveTo\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"editEffectiveTo\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the product becomes inactive. The product will only be displayed and usable while it's active.\\\\n      If the effective to date is not specified, the product is active indefinitely. The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[2,\\\" Localized product attributes \\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"attributesLocalized\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"b\\\",true],[8],[1,[23,3,[]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Product Name\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"editProductName\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"editProductName\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Product name\\\",[23,2,[\\\"localization\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"This is the name of the product that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Description\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"editDescription\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"editDescription\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Description\\\",[23,2,[\\\"localization\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A short description of the product that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Explorer Message\\\\n        \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"editExplorerMessage\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"editExplorerMessage\\\",[23,3,[]]],null],\\\"form-control\\\",\\\"Explorer message\\\",[23,2,[\\\"localization\\\",\\\"explorerMessage\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Explorer side (eg. smart apps). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Limits\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editDurationAllowed\\\"],[8],[0,\\\"Duration Per Month\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editDurationAllowed\\\",\\\"number\\\",\\\"form-control\\\",\\\"Duration per month (seconds)\\\",[24,[\\\"editDurationAllowed\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The number of seconds allowed per user per month, or blank for no limit.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\",\\\"change\\\"],[\\\"editProductDurationPerCall\\\",\\\"checkbox\\\",\\\"durationPerCall\\\",[24,[\\\"editLimitDurationPerCall\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"editCallLimit\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductDurationPerCall\\\"],[8],[0,\\\"Enforce Maximum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Unchecked allows no limit per call.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editDurationPerCallEnabled\\\"],[8],[0,\\\"Maximum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"editDurationPerCallEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Maximum call duration (seconds)\\\",[24,[\\\"editLimitDurationPerCallIsDisabled\\\"]],[24,[\\\"editDurationPerCall\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, we wish to limit per call. Value must be greater than 0. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Maximum Call Duration\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\",\\\"change\\\"],[\\\"editProductCallFrequency\\\",\\\"checkbox\\\",\\\"callFrequency\\\",[24,[\\\"editLimitCallFrequency\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"editFrequencyLimit\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductCallFrequency\\\"],[8],[0,\\\"Enforce Call Frequency\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Unchecked allows back to back calls.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editCallsPerPeriodEnabled\\\"],[8],[0,\\\"Calls Per Period\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"editCallsPerPeriodEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Calls per period\\\",[24,[\\\"editLimitCallFrequencyIsDisabled\\\"]],[24,[\\\"editCallsPerPeriod\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The number of calls allowed per call period length (set below). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editCallPeriodLengthEnabled\\\"],[8],[0,\\\"Call Period Length\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"editCallPeriodLengthEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Call period length (seconds)\\\",[24,[\\\"editLimitCallFrequencyIsDisabled\\\"]],[24,[\\\"editCallPeriodLength\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, the user can call (set above) per period.\\\\n      Eg. 5 calls per period and 3600 call period length would allow the user 5 calls every 60 minutes. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editEnforcedDurationEnabled\\\"],[8],[0,\\\"Minimum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"editEnforcedDurationEnabled\\\",\\\"number\\\",\\\"0\\\",\\\"form-control\\\",\\\"Minimum call duration (seconds)\\\",[24,[\\\"editLimitCallFrequencyIsDisabled\\\"]],[24,[\\\"editEnforcedOnDuration\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, the call must last, to be counted towards one call per period.\\\\n      Eg. 60 would only count calls longer than a minute. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"disabled\\\",\\\"name\\\",\\\"checked\\\"],[\\\"editEnforcedOnExplorers\\\",\\\"checkbox\\\",[24,[\\\"editLimitDurationPerCallIsDisabled\\\"]],\\\"enforcedOnExplorers\\\",[24,[\\\"editEnforcedOnExplorers\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editEnforcedOnExplorers\\\"],[8],[0,\\\"Enforce on Explorers\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether we want to enforce call frequency on explorer.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Misc.\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"checked\\\"],[\\\"editProductEnabled\\\",\\\"checkbox\\\",\\\"form-check-input\\\",\\\"enabled\\\",[24,[\\\"editEnabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"form-check-label\\\"],[10,\\\"for\\\",\\\"editProductEnabled\\\"],[8],[0,\\\"Enabled\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Master switch that turns on or off this product.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"editProductRequireAgentApproval\\\",\\\"checkbox\\\",\\\"requireAgentApproval\\\",[24,[\\\"editRequireAgentApproval\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductRequireAgentApproval\\\"],[8],[0,\\\"Require Agent Approval\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether an agent is required to manually verify the product offer at the beginning of the service call.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"editProductSearchable\\\",\\\"checkbox\\\",\\\"searchable\\\",[24,[\\\"editVisible\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductSearchable\\\"],[8],[0,\\\"Searchable\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer is visible while searching on the Agent and Explorer sides.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"editProductSticky\\\",\\\"checkbox\\\",\\\"accessRenewalEnabled\\\",[24,[\\\"editSticky\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductSticky\\\"],[8],[0,\\\"Sticky\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer stays selected on the Explorer's smartapp even after ending the call.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"editProductEntireCall\\\",\\\"checkbox\\\",\\\"accessRenewalEnabled\\\",[24,[\\\"editEntireCall\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductEntireCall\\\"],[8],[0,\\\"Entire call\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer overrides any existing active offers.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"editProductAvailableToGuests\\\",\\\"checkbox\\\",\\\"accessRenewalEnabled\\\",[24,[\\\"editAvailableToGuests\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editProductAvailableToGuests\\\"],[8],[0,\\\"Available to Guests\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer shows up for guests.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[24,[\\\"editErrorMessage\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"editErrorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"editCancel\\\"],null]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"editSave\\\"],null]]],[8],[0,\\\"Save\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/products/product/edit/template.hbs\" } });\n});","define(\"aira-mgmt/accounts/account/products/product/new/controller\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    class: null,\n    classes: [{ text: \"product\", id: \"product\" }, { text: \"promotion\", id: \"promotion\" }],\n    key: null,\n    enabled: true,\n    termsAndConditions: null,\n    termsAndConditionsUrl: null,\n    agentMessage: null,\n    effectiveFrom: null,\n    effectiveTo: null,\n    durationAllowed: null,\n    durationPerCall: null,\n    callPeriodLength: null,\n    callsPerPeriod: null,\n    enforcedOnDuration: null,\n    requireAgentApproval: false,\n    visible: true,\n    sticky: false,\n    entireCall: true,\n    availableToGuests: true,\n    enforcedOnExplorers: false,\n    limitDurationPerCall: false,\n    callLimitCheckbox: false,\n    limitCallFrequency: false,\n    callFrequencyCheckbox: false,\n    errorMessage: null,\n    attributesLocalized: null,\n\n    actions: {\n      callLimit: function callLimit(ele) {\n        var enabled = document.getElementById(\"durationPerCallEnabled\");\n        if (ele.target.checked) {\n          enabled.disabled = false;\n        } else {\n          enabled.disabled = true;\n        }\n        this.callLimitCheckbox = ele.target.checked;\n      },\n      frequencyLimit: function frequencyLimit(ele) {\n        var callsPerPeriod = document.getElementById(\"callsPerPeriodEnabled\");\n        var callPeriodLength = document.getElementById(\"callPeriodLengthEnabled\");\n        var enforcedDuration = document.getElementById(\"enforcedDurationEnabled\");\n        var enforcedOnExplorers = document.getElementById(\"enforcedOnExplorers\");\n        if (ele.target.checked) {\n          callsPerPeriod.disabled = false;\n          callPeriodLength.disabled = false;\n          enforcedDuration.disabled = false;\n          enforcedOnExplorers.disabled = false;\n        } else {\n          callsPerPeriod.disabled = true;\n          callPeriodLength.disabled = true;\n          enforcedDuration.disabled = true;\n          enforcedOnExplorers.disabled = true;\n        }\n        this.callFrequencyCheckbox = ele.target.checked;\n      },\n      productPromotionSelection: function productPromotionSelection(selected) {\n        this.set('class', selected);\n        console.log('SELECTION:', this.get('class'));\n      }\n    }\n  });\n});","define('aira-mgmt/accounts/account/products/product/new/route', ['exports', 'aira-mgmt/utils/validate-dates', 'aira-mgmt/helpers/change-PST-to-ISO', 'aira-mgmt/accounts/account/route'], function (exports, _validateDates, _changePSTToISO, _route) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n  function _toConsumableArray(arr) {\n    if (Array.isArray(arr)) {\n      for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n        arr2[i] = arr[i];\n      }\n\n      return arr2;\n    } else {\n      return Array.from(arr);\n    }\n  }\n\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      this.set('controller.attributesLocalized', (0, _route.addAllLangLocalizations)());\n    },\n\n\n    actions: {\n      addCancel: function addCancel() {\n        this.transitionTo('accounts.account.products.index');\n      },\n      addProduct: function addProduct() {\n        var _this = this;\n\n        var accountId = this.modelFor('accounts.account').account.accountId;\n        console.log('ADD PRESSED', accountId);\n\n        var dataIsGood = true;\n        var errorMessage = [];\n        if (this.get('controller.class') === null) {\n          dataIsGood = false;\n          errorMessage.push('Production or promotion not specified');\n        }\n        if (this.get('controller.key') === '' || this.get('controller.key') === null) {\n          dataIsGood = false;\n          errorMessage.push('Missing product key');\n        }\n        if (this.get('controller.agentMessage') === '' || this.get('controller.agentMessage') === null) {\n          dataIsGood = false;\n          errorMessage.push('Missing agent message');\n        }\n\n        var effectiveFromError = (0, _validateDates.validateDate)(this.get('controller.effectiveFrom'), 'effective from', false);\n        if (effectiveFromError) {\n          dataIsGood = false;\n          errorMessage.push(effectiveFromError);\n        }\n\n        var effectiveToValue = this.get('controller.effectiveTo');\n        if (effectiveToValue !== '' && effectiveToValue != null) {\n          var effectiveToError = (0, _validateDates.validateDate)(effectiveToValue, 'effective to', false);\n          if (effectiveToError) {\n            dataIsGood = false;\n            errorMessage.push(effectiveToError);\n          }\n        }\n\n        if (this.get('controller.durationAllowed') && parseInt(this.get('controller.durationAllowed')) <= 0) {\n          dataIsGood = false;\n          errorMessage.push('Duration per month value must be a valid number greater than 0');\n        }\n        if (this.get('controller.callLimitCheckbox')) {\n          if (this.get('controller.durationPerCall') === '' || this.get('controller.durationPerCall') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced maximum call duration');\n          } else {\n            var value = parseInt(this.get('controller.durationPerCall'));\n            if (value <= 0 || isNaN(value)) {\n              dataIsGood = false;\n              errorMessage.push('Duration per call value must be a valid number greater than 0');\n            }\n          }\n        }\n        if (this.get('controller.callFrequencyCheckbox')) {\n          if (this.get('controller.callsPerPeriod') === '' || this.get('controller.callsPerPeriod') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced calls per period');\n          } else {\n            var _value = parseInt(this.get('controller.callsPerPeriod'));\n            if (_value <= 0 || isNaN(_value)) {\n              dataIsGood = false;\n              errorMessage.push('Calls per period value must be a valid number greater than 0');\n            }\n          }\n          if (this.get('controller.callPeriodLength') === '' || this.get('controller.callPeriodLength') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced call period length');\n          } else {\n            var _value2 = parseInt(this.get('controller.callPeriodLength'));\n            if (_value2 <= 0 || isNaN(_value2)) {\n              dataIsGood = false;\n              errorMessage.push('Call period length value must be a valid number greater than 0');\n            }\n          }\n          if (this.get('controller.enforcedOnDuration') === '' || this.get('controller.enforcedOnDuration') === null) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced on duration');\n          } else {\n            var _value3 = parseInt(this.get('controller.enforcedOnDuration'));\n            if (_value3 <= 0 || isNaN(_value3)) {\n              dataIsGood = false;\n              errorMessage.push('Enforced on duration value must be a valid number greater than 0');\n            }\n          }\n        }\n\n        var validationArrayRsp = (0, _route.validateAttributesLocalized)(this.get('controller.attributesLocalized'));\n        if (!validationArrayRsp[0]) {\n          dataIsGood = false;\n          errorMessage.push.apply(errorMessage, _toConsumableArray(validationArrayRsp[1]));\n        }\n\n        if (dataIsGood) {\n          console.log('data is validated and good');\n          this.get('platform').doPost(['access', 'product'].join('/'), {\n            class: this.get('controller.class'),\n            key: this.get('controller.key').toUpperCase(),\n            entireCall: this.get('controller.entireCall'),\n            termsAndConditionsUrl: this.get('controller.termsAndConditionsUrl'),\n            type: \"PUBLIC\", // always public for us for now\n            enabled: this.get('controller.enabled'),\n            availableToGuests: this.get('controller.availableToGuests'),\n            enforcedOnExplorers: this.get('controller.enforcedOnExplorers'),\n            termsAndConditions: this.get('controller.termsAndConditions'),\n            effectiveTo: this.get('controller.effectiveTo') ? (0, _changePSTToISO.changePSTtoISO)([this.get('controller.effectiveTo')]) : null,\n            expired: this.get('controller.expired'),\n            agentMessage: this.get('controller.agentMessage'),\n            visible: this.get('controller.visible'),\n            requireAgentApproval: this.get('controller.requireAgentApproval'),\n            callPeriodLength: this.get('controller.callFrequencyCheckbox') ? parseInt(this.get('controller.callPeriodLength')) : 3600,\n            enforcedOnDuration: this.get('controller.callFrequencyCheckbox') ? parseInt(this.get('controller.enforcedOnDuration')) : 60,\n            callsPerPeriod: this.get('controller.callFrequencyCheckbox') ? parseInt(this.get('controller.callsPerPeriod')) : -1,\n            sticky: this.get('controller.sticky'),\n            durationPerCall: this.get('controller.callLimitCheckbox') ? parseInt(this.get('controller.durationPerCall')) : -1,\n            effectiveFrom: this.get('controller.effectiveFrom') ? (0, _changePSTToISO.changePSTtoISO)([this.get('controller.effectiveFrom')]) : null,\n            durationAllowed: this.get('controller.durationAllowed') ? parseInt(this.get('controller.durationAllowed')) : -1,\n            account: {\n              id: accountId\n            },\n            attributesLocalized: (0, _route.removeNotSetLocalizations)(this.get('controller.attributesLocalized'))\n          }).then(function () {\n            console.log('platform submitted');\n            _this.get('notify').success('Product/Promotion created!');\n            _this.transitionTo('accounts.account.products');\n          }, function (error) {\n            _this.send('error', error.errorMessage);\n          });\n          this.set('controller.errorMessage', null);\n        } else {\n          this.set('controller.errorMessage', errorMessage);\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/products/product/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"WUWHBB9s\", \"block\": \"{\\\"symbols\\\":[\\\"err\\\",\\\"attribute\\\",\\\"language\\\"],\\\"statements\\\":[[7,\\\"h4\\\",true],[8],[0,\\\"New Product/Promotion Form\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"form\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Basic Information\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group \\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productClass\\\"],[8],[0,\\\"Class\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"id\\\",\\\"options\\\",\\\"onSelect\\\"],[\\\"productClass\\\",[24,[\\\"classes\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"productPromotionSelection\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Choose product or promotion. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productKey\\\"],[8],[0,\\\"Key\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"productKey\\\",\\\"text\\\",\\\"form-control text-uppercase\\\",\\\"Key\\\",[24,[\\\"key\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A string identifier that is unique to this product. An example key would be \\\\\\\"VOTE_2020\\\\\\\" or \\\\\\\"FMF_EXPLORER\\\\\\\". This is not shown publicly. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productTermsAndConditions\\\"],[8],[0,\\\"Terms & Conditions\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"productTermsAndConditions\\\",\\\"text\\\",\\\"form-control\\\",\\\"Terms & conditions\\\",[24,[\\\"termsAndConditions\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Footnotes for terms and conditions of product. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productTermsAndConditionsUrl\\\"],[8],[0,\\\"Terms & Conditions URL\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"productTermsAndConditionsUrl\\\",\\\"text\\\",\\\"form-control\\\",\\\"Terms & conditions URL\\\",[24,[\\\"termsAndConditionsUrl\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A URL that shows more information about the product's terms and conditions. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productAgentMessage\\\"],[8],[0,\\\"Agent Message\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"productAgentMessage\\\",\\\"form-control\\\",\\\"Agent message\\\",[24,[\\\"agentMessage\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Agent side (eg. agent dash). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productEffectiveFrom\\\"],[8],[0,\\\"Effective From\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"productEffectiveFrom\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"effectiveFrom\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the product becomes active. The product will only be displayed and usable while it's active.\\\\n      If the effective from date is not specified, the product begins effective immediately. The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productEffectiveTo\\\"],[8],[0,\\\"Effective To\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"productEffectiveTo\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"effectiveTo\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the product becomes inactive. The product will only be displayed and usable while it's active.\\\\n      If the effective to date is not specified, the product is active indefinitely. The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[2,\\\" Localized product attributes \\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"attributesLocalized\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"b\\\",true],[8],[1,[23,3,[]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Product Name\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"productName\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"productName\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Product name\\\",[23,2,[\\\"localization\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"This is the name of the product that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Description\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"description\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"description\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Description\\\",[23,2,[\\\"localization\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A short description of the product that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Explorer Message\\\\n        \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"explorerMessage\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"explorerMessage\\\",[23,3,[]]],null],\\\"form-control\\\",\\\"Explorer message\\\",[23,2,[\\\"localization\\\",\\\"explorerMessage\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Explorer side (eg. smart apps). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Limits\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"durationAllowed\\\"],[8],[0,\\\"Duration Per Month\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"durationAllowed\\\",\\\"number\\\",\\\"form-control\\\",\\\"Duration per month (seconds)\\\",[24,[\\\"durationAllowed\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The number of seconds allowed per user per month, or blank for no limit.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\",\\\"change\\\"],[\\\"productDurationPerCall\\\",\\\"checkbox\\\",\\\"durationPerCall\\\",[24,[\\\"limitDurationPerCall\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"callLimit\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productDurationPerCall\\\"],[8],[0,\\\"Enforce Maximum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Unchecked allows no limit per call.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"durationPerCallEnabled\\\"],[8],[0,\\\"Maximum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"durationPerCallEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Maximum call duration (seconds)\\\",true,[24,[\\\"durationPerCall\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, we wish to limit per call. Value must be greater than 0. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforced Maximum Call Duration\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\",\\\"change\\\"],[\\\"productCallFrequency\\\",\\\"checkbox\\\",\\\"callFrequency\\\",[24,[\\\"limitCallFrequency\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"frequencyLimit\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productCallFrequency\\\"],[8],[0,\\\"Enforce Call Frequency\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Unchecked allows back to back calls.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"callsPerPeriodEnabled\\\"],[8],[0,\\\"Calls Per Period\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"callsPerPeriodEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Calls per period\\\",true,[24,[\\\"callsPerPeriod\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The number of calls allowed per call period length (set below). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"callPeriodLengthEnabled\\\"],[8],[0,\\\"Call Period Length\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"callPeriodLengthEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Call period length (seconds)\\\",true,[24,[\\\"callPeriodLength\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, the user can call (set above) per period.\\\\n      Eg. 5 calls per period and 3600 call period length would allow the user 5 calls every 60 minutes. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"enforcedDurationEnabled\\\"],[8],[0,\\\"Minimum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"enforcedDurationEnabled\\\",\\\"number\\\",\\\"0\\\",\\\"form-control\\\",\\\"Minimum call duration (seconds)\\\",true,[24,[\\\"enforcedOnDuration\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, the call must last, to be counted towards one call per period.\\\\n      Eg. 60 would only count calls longer than a minute. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"disabled\\\",\\\"checked\\\"],[\\\"enforcedOnExplorers\\\",\\\"checkbox\\\",\\\"enforcedOnExplorers\\\",true,[24,[\\\"enforcedOnExplorers\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"enforcedOnExplorers\\\"],[8],[0,\\\"Enforce on Explorers\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether we want to enforce call frequency on explorer.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Misc.\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"checked\\\"],[\\\"productEnabled\\\",\\\"checkbox\\\",\\\"form-check-input\\\",\\\"enabled\\\",[24,[\\\"enabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"form-check-label\\\"],[10,\\\"for\\\",\\\"productEnabled\\\"],[8],[0,\\\"Enabled\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Master switch that turns on or off this product.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"productRequireAgentApproval\\\",\\\"checkbox\\\",\\\"requireAgentApproval\\\",[24,[\\\"requireAgentApproval\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productRequireAgentApproval\\\"],[8],[0,\\\"Require Agent Approval\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether an agent is required to manually verify the product offer at the beginning of the service call.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"productSearchable\\\",\\\"checkbox\\\",\\\"searchable\\\",[24,[\\\"visible\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productSearchable\\\"],[8],[0,\\\"Searchable\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer is visible while searching on the Agent and Explorer sides.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"productSticky\\\",\\\"checkbox\\\",\\\"accessRenewalEnabled\\\",[24,[\\\"sticky\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productSticky\\\"],[8],[0,\\\"Sticky\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer stays selected on the Explorer's smartapp even after ending the call.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"productEntireCall\\\",\\\"checkbox\\\",\\\"accessRenewalEnabled\\\",[24,[\\\"entireCall\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productEntireCall\\\"],[8],[0,\\\"Entire call\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer overrides any existing active offers.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"productAvailableToGuests\\\",\\\"checkbox\\\",\\\"availableToGuests\\\",[24,[\\\"availableToGuests\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"productAvailableToGuests\\\"],[8],[0,\\\"Available to Guests\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the product offer shows up for guests.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[24,[\\\"errorMessage\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"addCancel\\\"],null]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"addProduct\\\"],null]]],[8],[0,\\\"Add Product/Promotion\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/products/product/new/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/products/product/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    platform: Ember.inject.service()\n\n  });\n});","define(\"aira-mgmt/accounts/account/products/product/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"fX12Mie9\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/products/product/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/products/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define(\"aira-mgmt/accounts/account/products/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"y+ORdWE7\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/products/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/resources/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n    model: function model() {\n      return this.modelFor('accounts.account').account;\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/resources/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"0Sq5alAH\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"external-resources\\\",null,[[\\\"scope\\\",\\\"parentId\\\"],[\\\"account\\\",[24,[\\\"model\\\",\\\"accountId\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/resources/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.removeNotSetLocalizations = removeNotSetLocalizations;\n  exports.addAllLangLocalizations = addAllLangLocalizations;\n  exports.addMissingLangLocalizations = addMissingLangLocalizations;\n  exports.validateEnglishLocalization = validateEnglishLocalization;\n  exports.validateLocalization = validateLocalization;\n  exports.validateAttributesLocalized = validateAttributesLocalized;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  exports.default = Ember.Route.extend({\n\n    initialTab: null,\n\n    platform: Ember.inject.service(),\n    beforeModel: function beforeModel(t) {\n      // Handles setting the activeTab when deep-linking\n      // targetName is: users.user.{activeTab}.index\n      this.initialTab = t.targetName.split('.')[2];\n    },\n\n\n    model: function model(p) {\n      var _this = this;\n\n      return Ember.RSVP.hash({\n        account: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('search/account?type=ACCOUNT_ID&q=' + p.account_id).then(function (response) {\n            resolve(response.users[0]);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n            return [];\n          });\n        })\n\n      });\n    },\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('activeTab', this.initialTab);\n      this.modelFor(\"accounts.account\").account.isBusiness = model.account.accountType === \"BUSINESS\" ? true : false;\n    },\n\n    actions: {\n      loading: function loading(transition) {\n        var controller = this.get('controller');\n        if (controller) {\n          controller.set('isLoading', true);\n          transition.promise.finally(function () {\n            controller.set('isLoading', false);\n          });\n        }\n      },\n      willTransition: function willTransition(t) {\n        // Handles keeping the activeTab updated when changing\n        // targetName is: accounts.account.{activeTab}.index\n        var target = t.targetName.split('.')[2];\n        this.controller.set('activeTab', target);\n      }\n    }\n  });\n  function removeNotSetLocalizations(attributesLocalized) {\n    var _iteratorNormalCompletion = true;\n    var _didIteratorError = false;\n    var _iteratorError = undefined;\n\n    try {\n\n      for (var _iterator = Object.entries(attributesLocalized)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n        var _ref2 = _step.value;\n\n        var _ref3 = _slicedToArray(_ref2, 2);\n\n        var language = _ref3[0];\n        var attr = _ref3[1];\n\n        if (!attr.localization.name && !attr.localization.description && !attr.localization.explorerMessage) {\n          delete attributesLocalized[language];\n        }\n      }\n    } catch (err) {\n      _didIteratorError = true;\n      _iteratorError = err;\n    } finally {\n      try {\n        if (!_iteratorNormalCompletion && _iterator.return) {\n          _iterator.return();\n        }\n      } finally {\n        if (_didIteratorError) {\n          throw _iteratorError;\n        }\n      }\n    }\n\n    return attributesLocalized;\n  }\n\n  function addAllLangLocalizations() {\n\n    // TODO: we would benefit here from a list of supported languages\n    // - the list can be returned as part of this API or a new API to get languages only\n    // - alternative would be that this API would return these default structures which seems dirty\n    var attributesLocalized = {};\n    attributesLocalized.English = defaultLocalizationStructure();\n    attributesLocalized.French = defaultLocalizationStructure();\n    attributesLocalized.Spanish = defaultLocalizationStructure();\n\n    return attributesLocalized;\n  }\n\n  function addMissingLangLocalizations(attributesLocalized) {\n\n    // when localizations are not present, initialize with default json\n    // TODO: we would benefit here from a list of supported languages\n    // - the list can be returned as part of this API or a new API to get languages only\n    // - alternative would be that this API would return these default structures which seems dirty\n    if (!('English' in attributesLocalized)) {\n      attributesLocalized.English = defaultLocalizationStructure();\n    }\n    if (!('French' in attributesLocalized)) {\n      attributesLocalized.French = defaultLocalizationStructure();\n    }\n    if (!('Spanish' in attributesLocalized)) {\n      attributesLocalized.Spanish = defaultLocalizationStructure();\n    }\n\n    console.log('attr: ', attributesLocalized);\n\n    return attributesLocalized;\n  }\n\n  function defaultLocalizationStructure() {\n    return { id: null, localization: { name: null, description: null, explorerMessage: null } };\n  }\n\n  // English localization is mandatory, should always be present, never deleted\n  function validateEnglishLocalization(localization) {\n\n    var dataIsGood = true;\n    if (!localization || !localization.name || !localization.explorerMessage) {\n      dataIsGood = false;\n    }\n    return dataIsGood;\n  }\n\n  function validateLocalization(localization) {\n\n    var dataIsGood = true;\n\n    if (localization && localization.description && (!localization.name || !localization.explorerMessage) || localization && localization.name && !localization.explorerMessage || localization && localization.explorerMessage && !localization.name) {\n      dataIsGood = false;\n    }\n\n    return dataIsGood;\n  }\n\n  function validateAttributesLocalized(controllerAttrLoc) {\n\n    var dataIsGood = true;\n    var errorMessage = [];\n\n    var _iteratorNormalCompletion2 = true;\n    var _didIteratorError2 = false;\n    var _iteratorError2 = undefined;\n\n    try {\n      for (var _iterator2 = Object.entries(controllerAttrLoc)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n        var _ref4 = _step2.value;\n\n        var _ref5 = _slicedToArray(_ref4, 2);\n\n        var language = _ref5[0];\n        var attr = _ref5[1];\n\n        if (language === 'English') {\n          if (!validateEnglishLocalization(attr.localization)) {\n            dataIsGood = false;\n            errorMessage.push('English Product Name and Explorer Message cannot be empty');\n          }\n        } else {\n          if (!validateLocalization(attr.localization)) {\n            dataIsGood = false;\n            errorMessage.push(language + ' Product Name and Explorer Message cannot be empty');\n          }\n        }\n      }\n    } catch (err) {\n      _didIteratorError2 = true;\n      _iteratorError2 = err;\n    } finally {\n      try {\n        if (!_iteratorNormalCompletion2 && _iterator2.return) {\n          _iterator2.return();\n        }\n      } finally {\n        if (_didIteratorError2) {\n          throw _iteratorError2;\n        }\n      }\n    }\n\n    return [dataIsGood, errorMessage];\n  }\n});","define('aira-mgmt/accounts/account/sites/index/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    queryParams: ['sitePg', 'siteType', 'siteQuery'],\n\n    activeId: null,\n\n    // Binds search input to query param\n    sitePg: 0,\n    siteType: null,\n    siteQuery: \"\",\n    search: null,\n    searchType: \"\",\n\n    siteDisableBack: null,\n    siteDisableNext: null,\n\n    isGeneratingCSV: false,\n    currentExportPage: 1,\n\n    actions: {\n      sitePreviousPage: function sitePreviousPage() {\n        this.decrementProperty('sitePg');\n      },\n      siteNextPage: function siteNextPage() {\n        this.incrementProperty('sitePg');\n      }\n    }\n  });\n});","define('aira-mgmt/accounts/account/sites/index/route', ['exports', 'ember-simple-auth/mixins/authenticated-route-mixin'], function (exports, _authenticatedRouteMixin) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n  function _toConsumableArray(arr) {\n    if (Array.isArray(arr)) {\n      for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n        arr2[i] = arr[i];\n      }\n\n      return arr2;\n    } else {\n      return Array.from(arr);\n    }\n  }\n\n  function _asyncToGenerator(fn) {\n    return function () {\n      var gen = fn.apply(this, arguments);\n      return new Promise(function (resolve, reject) {\n        function step(key, arg) {\n          try {\n            var info = gen[key](arg);\n            var value = info.value;\n          } catch (error) {\n            reject(error);\n            return;\n          }\n\n          if (info.done) {\n            resolve(value);\n          } else {\n            return Promise.resolve(value).then(function (value) {\n              step(\"next\", value);\n            }, function (err) {\n              step(\"throw\", err);\n            });\n          }\n        }\n\n        return step(\"next\");\n      });\n    };\n  }\n\n  exports.default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n\n    queryParams: {\n      sitePg: {\n        refreshModel: true\n      },\n      siteType: {\n        refreshModel: true\n      },\n      siteQuery: {\n        refreshModel: true\n      }\n    },\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model(params) {\n      var _this = this;\n\n      var accountId = this.modelFor('accounts.account').account.accountId;\n      var pg = params.sitePg == null ? 0 : params.sitePg;\n\n      if (params.siteType && params.siteQuery) {\n        return Ember.RSVP.hash({\n          site: new Ember.RSVP.Promise(function (resolve, reject) {\n            _this.get('platform').doGet('search/account/' + accountId + '/site?type=' + encodeURIComponent(params.siteType) + '&q=' + encodeURIComponent(params.siteQuery) + '&page=' + pg + '&size=20').then(function (response) {\n              console.log('MODEL SITE DATA:', response);\n              resolve(response);\n            }, function (_ref) {\n              var errorCode = _ref.errorCode,\n                  errorMessage = _ref.errorMessage;\n\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n              return [];\n            });\n          })\n        });\n      } else {\n        return Ember.RSVP.hash({\n          site: new Ember.RSVP.Promise(function (resolve, reject) {\n            _this.get('platform').doGet('mgmt/account/' + accountId + '/site?page=' + pg + \"&size=20\").then(function (response) {\n              console.log('MODEL ALL DATA:', response);\n              resolve(response);\n            }, function (_ref2) {\n              var errorCode = _ref2.errorCode,\n                  errorMessage = _ref2.errorMessage;\n\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n            });\n          })\n        });\n      }\n    },\n    afterModel: function afterModel(model) {\n      if (model.site) {\n        this.set('state.ariaLive', model.site.length + ' site results.');\n      }\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      if (model.site.response.hasMore) {\n        this.set('controller.siteDisableNext', false);\n      } else {\n        this.set('controller.siteDisableNext', true);\n      }\n\n      if (this.get('controller.sitePg') > 0) {\n        this.set('controller.siteDisableBack', false);\n      } else {\n        this.set('controller.siteDisableBack', true);\n      }\n    },\n\n\n    actions: {\n      selectSite: function selectSite(accountId, site) {\n        console.log('Selected site: ' + site.id + ' in account: ' + accountId);\n        this.controller.set('activeId', site.id);\n        this.transitionTo('accounts.account.sites.site.index', accountId, site.id);\n      },\n      createNewSite: function createNewSite() {\n        var accountId = this.modelFor('accounts.account').account.accountId;\n        this.transitionTo('accounts.account.sites.new', accountId);\n      },\n\n\n      /** Search box actions starts here*/\n\n      loading: function loading(transition) {\n        var controller = this.get('controller');\n        if (controller) {\n          controller.set('isSearching', true);\n          transition.promise.finally(function () {\n            controller.set('isSearching', false);\n          });\n        }\n      },\n\n\n      /**\n       * searchBySiteId: This method gets called by a button click or pressing enter when searching by Site Id\n       */\n      searchBySiteId: function searchBySiteId() {\n        var siteId = \"\";\n        var searchType = \"SITE_ID\";\n\n        //checks if the value in the user is non empty\n        if (this.get(\"controller.siteId\") !== \"\") {\n          siteId = this.get(\"controller.siteId\");\n        }\n        var search = siteId;\n        this.transitionTo({\n          queryParams: {\n            sitePg: 0,\n            siteQuery: search,\n            siteType: searchType\n          }\n        });\n      },\n\n\n      /**\n       * searchBySiteName: This method gets called by a button click or pressing enter when searching for a site name\n       */\n      searchBySiteName: function searchBySiteName() {\n        //creates site name\n        var siteName = \"\";\n        var searchType = \"NAME\";\n\n        //Checks if the name search bar has a non-empty value\n        if (this.get(\"controller.siteName\")) {\n          siteName = this.get(\"controller.siteName\");\n          //if it has a valid value reassign siteName variable\n        }\n\n        var search = siteName;\n        //transition with the query\n\n        this.transitionTo({\n          queryParams: {\n            sitePg: 0,\n            siteQuery: search,\n            siteType: searchType\n          }\n        });\n      },\n\n\n      /**\n       * searchBySiteAddress: This method gets called by a button click or pressing enter when searching for by address\n       */\n      searchBySiteAddress: function searchBySiteAddress() {\n        //Assigns all the search parameter to ?\n        var address1 = \"?\";\n        var city = \"?\";\n        var state = \"?\";\n        var country = \"?\";\n        var zip = \"?\";\n        var searchType = \"ADDRESS\";\n\n        //Checks each search bar for, address1, city, state, country and zip, checks if they have non empty values, if they do\n        //assign the variables above to them, if not they stay as ?\n        if (this.get(\"controller.siteAddress1\")) {\n          address1 = this.get(\"controller.siteAddress1\");\n        }\n        if (this.get(\"controller.siteCity\")) {\n          city = this.get(\"controller.siteCity\");\n        }\n        if (this.get(\"controller.siteState\")) {\n          state = this.get(\"controller.siteState\");\n        }\n        if (this.get(\"controller.siteCountry\")) {\n          country = this.get(\"controller.siteCountry\");\n        }\n        if (this.get(\"controller.siteZip\")) {\n          zip = this.get(\"controller.siteZip\");\n        }\n\n        //Creating the search query that will be sent to platform\n        var search = [address1, city, state, country, zip].join('/');\n\n        this.transitionTo({\n          queryParams: {\n            sitePg: 0,\n            siteQuery: search,\n            siteType: searchType\n          }\n        });\n      },\n      searchByPartnerReferenceId: function searchByPartnerReferenceId() {\n        var partnerReferenceId = \"\";\n        var searchType = \"PARTNER_REFERENCE_ID\";\n\n        if (this.get(\"controller.partnerReferenceId\")) {\n          partnerReferenceId = this.get(\"controller.partnerReferenceId\");\n        }\n\n        var search = partnerReferenceId;\n        this.transitionTo({\n          queryParams: {\n            sitePg: 0,\n            siteQuery: search,\n            siteType: searchType\n          }\n        });\n      },\n\n\n      /**\n       *\n       * @param {String} searchType\n       * This method takes a string when it's called by one of the toolbar buttons\n       * That String will denote which search bars we want to display\n       */\n      siteDisplaySearch: function siteDisplaySearch(searchType) {\n\n        var nameToIdMap = new Map([[\"SiteId\", \"searchSiteId\"], [\"SiteName\", \"searchSiteName\"], [\"SiteAddress\", \"searchSiteAddress\"], [\"SitePartnerReferenceId\", \"searchSitePartnerReferenceId\"]]);\n\n        var setOfSearchDisplays = new Set();\n        setOfSearchDisplays.add(document.getElementById(\"searchSiteId\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchSiteName\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchSiteAddress\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchSitePartnerReferenceId\"));\n        var _iteratorNormalCompletion = true;\n        var _didIteratorError = false;\n        var _iteratorError = undefined;\n\n        try {\n          for (var _iterator = setOfSearchDisplays[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n            var searchDisplay = _step.value;\n\n            if (nameToIdMap.get(searchType) === searchDisplay.id) {\n              searchDisplay.style.display = \"block\";\n            } else {\n              searchDisplay.style.display = \"none\";\n            }\n          }\n        } catch (err) {\n          _didIteratorError = true;\n          _iteratorError = err;\n        } finally {\n          try {\n            if (!_iteratorNormalCompletion && _iterator.return) {\n              _iterator.return();\n            }\n          } finally {\n            if (_didIteratorError) {\n              throw _iteratorError;\n            }\n          }\n        }\n      },\n      exportSiteList: function () {\n        var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n          var _this2 = this;\n\n          var accountId, allData, currentPage, formatAddress, transformSiteData, downloadCSV, fetchPage, completeData;\n          return regeneratorRuntime.wrap(function _callee2$(_context2) {\n            while (1) {\n              switch (_context2.prev = _context2.next) {\n                case 0:\n                  if (!this.controller.get('isGeneratingCSV')) {\n                    _context2.next = 2;\n                    break;\n                  }\n\n                  return _context2.abrupt('return');\n\n                case 2:\n\n                  this.controller.set('isGeneratingCSV', true);\n                  accountId = this.modelFor('accounts.account').account.accountId;\n                  allData = [];\n                  currentPage = 0;\n\n                  // Function to format address\n\n                  formatAddress = function formatAddress(siteAddress) {\n                    if (!siteAddress) return '';\n\n                    var mainAddress = siteAddress.address2 && siteAddress.address2.length ? siteAddress.address1 + ' ' + siteAddress.address2 : siteAddress.address1;\n\n                    return mainAddress + ', ' + siteAddress.city + ', ' + siteAddress.state + ', ' + siteAddress.country + ', ' + siteAddress.zip;\n                  };\n\n                  // Function to transform site data\n\n\n                  transformSiteData = function transformSiteData(site) {\n                    return {\n                      id: site.id,\n                      name: site.name || '',\n                      partnerReferenceId: site.partnerReferenceId || '',\n                      siteAddress: formatAddress(site.siteAddress)\n                    };\n                  };\n\n                  // Function to create and download CSV\n\n\n                  downloadCSV = function downloadCSV(data) {\n                    try {\n                      var headers = ['ID', 'Name', 'Partner reference ID', 'Site Address'].join(',');\n                      var csvData = data.map(function (item) {\n                        return [item.id, '\"' + (item.name || '').replace(/\"/g, '\"\"') + '\"', '\"' + (item.partnerReferenceId || '').replace(/\"/g, '\"\"') + '\"', '\"' + (item.siteAddress || '').replace(/\"/g, '\"\"') + '\"'].join(',');\n                      });\n\n                      var csvContent = [headers].concat(_toConsumableArray(csvData)).join('\\n');\n\n                      var blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });\n                      var link = document.createElement('a');\n                      var url = URL.createObjectURL(blob);\n                      link.setAttribute('href', url);\n                      link.setAttribute('download', 'account_' + accountId + '_sites_export_' + new Date().toISOString().split('T')[0] + '.csv');\n                      link.style.visibility = 'hidden';\n                      document.body.appendChild(link);\n                      link.click();\n                      document.body.removeChild(link);\n                      URL.revokeObjectURL(url); // Clean up the URL object\n                    } catch (error) {\n                      console.error('Error generating CSV:', error);\n                      throw error;\n                    }\n                  };\n\n                  // Function to fetch a single page\n\n\n                  fetchPage = function () {\n                    var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(page) {\n                      var response, transformedSites;\n                      return regeneratorRuntime.wrap(function _callee$(_context) {\n                        while (1) {\n                          switch (_context.prev = _context.next) {\n                            case 0:\n                              _context.prev = 0;\n\n                              _this2.controller.set('currentExportPage', page + 1);\n                              _context.next = 4;\n                              return _this2.get('platform').doGet('mgmt/account/' + accountId + '/site?page=' + page + '&size=20');\n\n                            case 4:\n                              response = _context.sent;\n\n                              if (!(response && response.payload && response.payload.length > 0)) {\n                                _context.next = 12;\n                                break;\n                              }\n\n                              // Transform each site before adding to allData\n                              transformedSites = response.payload.map(transformSiteData);\n\n                              allData = [].concat(_toConsumableArray(allData), _toConsumableArray(transformedSites));\n\n                              // If we have more pages, recursively fetch next page\n\n                              if (!response.response.hasMore) {\n                                _context.next = 12;\n                                break;\n                              }\n\n                              _context.next = 11;\n                              return fetchPage(page + 1);\n\n                            case 11:\n                              return _context.abrupt('return', _context.sent);\n\n                            case 12:\n                              return _context.abrupt('return', allData);\n\n                            case 15:\n                              _context.prev = 15;\n                              _context.t0 = _context['catch'](0);\n\n                              console.error('Error fetching page ' + page + ':', _context.t0);\n                              throw _context.t0;\n\n                            case 19:\n                            case 'end':\n                              return _context.stop();\n                          }\n                        }\n                      }, _callee, _this2, [[0, 15]]);\n                    }));\n\n                    return function fetchPage(_x) {\n                      return _ref4.apply(this, arguments);\n                    };\n                  }();\n\n                  _context2.prev = 10;\n                  _context2.next = 13;\n                  return fetchPage(currentPage);\n\n                case 13:\n                  completeData = _context2.sent;\n\n\n                  if (completeData && completeData.length > 0) {\n                    downloadCSV(completeData);\n                    this.get('notify').success('Export completed successfully with ' + completeData.length + ' sites');\n                  } else {\n                    this.send('error', 'No data to export');\n                  }\n                  _context2.next = 21;\n                  break;\n\n                case 17:\n                  _context2.prev = 17;\n                  _context2.t0 = _context2['catch'](10);\n\n                  console.error('Error exporting data:', _context2.t0);\n                  this.send('error', 'Failed to export data, ' + _context2.t0.message);\n\n                case 21:\n                  _context2.prev = 21;\n\n                  this.controller.set('isGeneratingCSV', false);\n                  this.controller.set('currentExportPage', 1);\n                  return _context2.finish(21);\n\n                case 25:\n                case 'end':\n                  return _context2.stop();\n              }\n            }\n          }, _callee2, this, [[10, 17, 21, 25]]);\n        }));\n\n        function exportSiteList() {\n          return _ref3.apply(this, arguments);\n        }\n\n        return exportSiteList;\n      }()\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/sites/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"jRKo//Dq\", \"block\": \"{\\\"symbols\\\":[\\\"err\\\",\\\"site\\\",\\\"site\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"btn btn-primary \\\",[28,\\\"if\\\",[[24,[\\\"isGeneratingCSV\\\"]],\\\"disabled-btn\\\"],null]]]],[12,\\\"disabled\\\",[22,\\\"isGeneratingCSV\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"exportSiteList\\\"]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"if\\\",[[24,[\\\"isGeneratingCSV\\\"]],[28,\\\"concat\\\",[\\\"Exporting page \\\",[24,[\\\"currentExportPage\\\"]],\\\"...\\\"],null],\\\"Export Site List\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"createNewSite\\\"],null]]],[8],[0,\\\"Add Site\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"\\\"],[10,\\\"aria-labelledby\\\",\\\"leftTitle\\\"],[8],[0,\\\"\\\\n    \\\"],[2,\\\" Table \\\"],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-heading\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"h5\\\",true],[10,\\\"id\\\",\\\"leftTitle\\\"],[10,\\\"class\\\",\\\"panel-title\\\"],[8],[0,\\\"Search Sites by Account\\\"],[9],[0,\\\"\\\\n        \\\"],[2,\\\"Add toolbar here for different searches \\\"],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body pd-10\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"container col-xs-12\\\"],[10,\\\"style\\\",\\\"width: 100%; height: 100%; border: 1px solid black;\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabbable\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"nav nav-tabs nav-tabs-highlight row nav-tabs-top  \\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"ID\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"siteDisplaySearch\\\",\\\"SiteId\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"sites\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-user position-left\\\"],[8],[9],[0,\\\" Site ID\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Name\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"siteDisplaySearch\\\",\\\"SiteName\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"sites\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-barcode2 position-left\\\"],[8],[9],[0,\\\" Site Name\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Address\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"siteDisplaySearch\\\",\\\"SiteAddress\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"sites\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-question7 position-left\\\"],[8],[9],[0,\\\" Site Address\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"PartnerReferenceId\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"siteDisplaySearch\\\",\\\"SitePartnerReferenceId\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"sites\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-users2 position-left\\\"],[8],[9],[0,\\\" Partner Reference Id\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: block\\\"],[10,\\\"id\\\",\\\"searchSiteId\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Only sites with the exact site ID will be displayed\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Site ID\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formSiteId\\\",\\\"text\\\",\\\"Search By Site ID\\\",\\\"Search By Site ID\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"siteId\\\"]],\\\"searchBySiteId\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchBySiteId\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchSiteName\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Must search with exact site name\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Site Name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formSiteName\\\",\\\"text\\\",\\\"Search By Site Name\\\",\\\"Search By Site Name\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"siteName\\\"]],\\\"searchBySiteName\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchBySiteName\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchSiteAddress\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Must search with exact site street address\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-8\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Address Line 1\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formSiteAddress1\\\",\\\"text\\\",\\\"Search By Site Address 1\\\",\\\"Address 1\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"siteAddress1\\\"]],\\\"address1\\\"]]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"City\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formSiteCity\\\",\\\"text\\\",\\\"Search By Site City\\\",\\\"City\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"siteCity\\\"]],\\\"city\\\"]]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"State\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formSiteState\\\",\\\"text\\\",\\\"Search By Site State\\\",\\\"State\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"siteState\\\"]],\\\"state\\\"]]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Country\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formSiteCountry\\\",\\\"text\\\",\\\"Search By Site Country\\\",\\\"Country\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"siteCountry\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Zip Code\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formSiteZip\\\",\\\"text\\\",\\\"Search By Site Zip\\\",\\\"Zip Code\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"siteZip\\\"]],\\\"zip\\\"]]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchBySiteAddress\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n               \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchSitePartnerReferenceId\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Only sites with the exact Partner Reference ID will be displayed\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"PARTNER REFERENCE ID\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formPartnerReferenceId\\\",\\\"text\\\",\\\"Search By Partner Reference Id\\\",\\\"Search By Partner Reference Id\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"partnerReferenceId\\\"]],\\\"searchByPartnerReferenceId\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByPartnerReferenceId\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSearching\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Searching...\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"site\\\",\\\"result\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table table-striped\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ID\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Site Name\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Address (street, city, state, country, zip)\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"site\\\",\\\"result\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectSite\\\",[23,3,[\\\"account\\\",\\\"id\\\"]],[23,3,[]]],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,3,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"id\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"sites\\\",\\\"siteAddress\\\",\\\"address2\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,3,[\\\"siteAddress\\\",\\\"address1\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[23,3,[\\\"siteAddress\\\",\\\"address2\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,3,[\\\"siteAddress\\\",\\\"address1\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[1,[23,3,[\\\"siteAddress\\\",\\\"city\\\"]],false],[0,\\\", \\\"],[1,[23,3,[\\\"siteAddress\\\",\\\"state\\\"]],false],[0,\\\", \\\"],[1,[23,3,[\\\"siteAddress\\\",\\\"country\\\"]],false],[0,\\\", \\\"],[1,[23,3,[\\\"siteAddress\\\",\\\"zip\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"site\\\",\\\"payload\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table table-striped\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ID\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Site Name\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Address (street, city, state, country, zip)\\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"site\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectSite\\\",[23,2,[\\\"account\\\",\\\"id\\\"]],[23,2,[]]],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,2,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"id\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"sites\\\",\\\"siteAddress\\\",\\\"address2\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[23,2,[\\\"siteAddress\\\",\\\"address1\\\"]],false],[0,\\\"\\\\n                  \\\"],[1,[23,2,[\\\"siteAddress\\\",\\\"address2\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[23,2,[\\\"siteAddress\\\",\\\"address1\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[1,[23,2,[\\\"siteAddress\\\",\\\"city\\\"]],false],[0,\\\", \\\"],[1,[23,2,[\\\"siteAddress\\\",\\\"state\\\"]],false],[0,\\\", \\\"],[1,[23,2,[\\\"siteAddress\\\",\\\"country\\\"]],false],[0,\\\", \\\"],[1,[23,2,[\\\"siteAddress\\\",\\\"zip\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"This account does not have any associated sites.\\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"siteDisableBack\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"sitePreviousPage\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\"Previous\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"siteDisableNext\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"siteNextPage\\\"]],[8],[0,\\\"Next\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[24,[\\\"errorMessage\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/sites/index/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/sites/new/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    displayable: true,\n\n    searchable: true,\n\n    requireBuildAi: false,\n\n    enabled: true,\n\n    gpsActivated: true,\n\n    bufferAroundFence: true,\n\n    errorMessage: null\n\n  });\n});","define('aira-mgmt/accounts/account/sites/new/route', ['exports', 'aira-mgmt/accounts/account/route', 'aira-mgmt/utils/validate-dates', 'aira-mgmt/helpers/change-PST-to-ISO'], function (exports, _route, _validateDates, _changePSTToISO) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n  function _toConsumableArray(arr) {\n    if (Array.isArray(arr)) {\n      for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n        arr2[i] = arr[i];\n      }\n\n      return arr2;\n    } else {\n      return Array.from(arr);\n    }\n  }\n\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n    platform: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      this.set('controller.attributesLocalized', (0, _route.addAllLangLocalizations)());\n    },\n\n\n    actions: {\n      cancelNewSite: function cancelNewSite() {\n        var accountId = this.modelFor('accounts.account').account.accountId;\n        this.transitionTo('accounts.account.sites', accountId);\n      },\n      createSite: function createSite() {\n        var _this = this;\n\n        var accountId = this.modelFor('accounts.account').account.accountId;\n        // check site information\n        var dataIsGood = true;\n        var errorMessage = [];\n        if (this.get('controller.agentMessage') === '' || this.get('controller.agentMessage') == null) {\n          dataIsGood = false;\n          errorMessage.push('Missing agent message');\n        }\n\n        var effectiveFromError = (0, _validateDates.validateDate)(this.get('controller.effectiveFrom'), 'effective from', true);\n        if (effectiveFromError) {\n          dataIsGood = false;\n          errorMessage.push(effectiveFromError);\n        }\n\n        var effectiveToValue = this.get('controller.effectiveTo');\n        if (effectiveToValue !== '' && effectiveToValue != null) {\n          var effectiveToError = (0, _validateDates.validateDate)(effectiveToValue, 'effective to', false);\n          if (effectiveToError) {\n            dataIsGood = false;\n            errorMessage.push(effectiveToError);\n          }\n        }\n\n        if (this.get('controller.address1') === '' || this.get('controller.address1') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing address line 1');\n        }\n        if (this.get('controller.city') === '' || this.get('controller.city') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing city');\n        }\n        if (this.get('controller.country') === '' || this.get('controller.country') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing country');\n        }\n        if (this.get('controller.siteDurationPerCallCheckbox')) {\n          if (this.get('controller.durationPerCall') === '' || this.get('controller.durationPerCall') === undefined) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced duration per call');\n          } else {\n            var value = parseInt(this.get('controller.durationPerCall'));\n            if (value <= 0 || isNaN(value)) {\n              dataIsGood = false;\n              errorMessage.push('Duration per call value must be a valid number greater than 0');\n            }\n          }\n        }\n\n        var validationArrayRsp = (0, _route.validateAttributesLocalized)(this.get('controller.attributesLocalized'));\n        if (!validationArrayRsp[0]) {\n          dataIsGood = false;\n          errorMessage.push.apply(errorMessage, _toConsumableArray(validationArrayRsp[1]));\n        }\n\n        if (dataIsGood) {\n          var serviceDomainValue = [{\n            type: 'SLS',\n            value: this.get('controller.isASLSite') ? 'true' : 'false'\n          }, {\n            type: 'VIS',\n            value: this.get('controller.isBLVSite') ? 'true' : 'false'\n          }];\n\n          this.get('platform').doPost(['access', 'site'].join('/'), {\n            account: {\n              id: accountId\n            },\n            accountId: accountId,\n            class: 'site',\n            type: \"public\",\n            termsAndConditions: this.get('controller.termsAndConditions') ? this.get('controller.termsAndConditions') : null,\n            agentMessage: this.get('controller.agentMessage'),\n            effectiveFrom: (0, _changePSTToISO.changePSTtoISO)([this.get('controller.effectiveFrom')]),\n            effectiveTo: this.get('controller.effectiveTo') ? (0, _changePSTToISO.changePSTtoISO)([this.get('controller.effectiveTo')]) : null,\n            siteAddress: {\n              accountId: accountId,\n              address1: this.get('controller.address1'),\n              address2: this.get('controller.address2') ? this.get('controller.address2') : null,\n              city: this.get('controller.city'),\n              state: this.get('controller.state'),\n              country: this.get('controller.country'),\n              zip: this.get('controller.zip'),\n              addressType: 'site'\n            },\n            fence: this.get('controller.fence') ? JSON.parse(this.get('controller.fence')) : null,\n            durationPerCall: this.get('controller.siteDurationPerCallCheckbox') ? parseInt(this.get('controller.durationPerCall')) : -1,\n            enabled: this.get('controller.enabled'),\n            requireBuildAi: this.get('controller.requireBuildAi'),\n            searchable: this.get('controller.searchable'),\n            displayable: this.get('controller.displayable'),\n            gpsActivated: this.get('controller.gpsActivated'),\n            bufferAroundFence: this.get('controller.bufferAroundFence'),\n            serviceDomain: serviceDomainValue,\n            attributesLocalized: (0, _route.removeNotSetLocalizations)(this.get('controller.attributesLocalized'))\n          }).then(function () {\n            _this.get('notify').success('Site created!');\n            _this.transitionTo('accounts.account.sites', accountId);\n          }, function (error) {\n            _this.send('error', error.errorMessage);\n          });\n          this.set('controller.errorMessage', null);\n        } else {\n          this.set('controller.errorMessage', errorMessage);\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/sites/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"vkZi0zpt\", \"block\": \"{\\\"symbols\\\":[\\\"err\\\",\\\"attribute\\\",\\\"language\\\"],\\\"statements\\\":[[7,\\\"h3\\\",true],[8],[0,\\\"New Site\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"form\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Basic Information\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteTerms\\\"],[8],[0,\\\"Terms & conditions\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteTerms\\\",\\\"text\\\",\\\"form-control\\\",\\\"Terms & Conditions\\\",[24,[\\\"termsAndConditions\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Footnotes for terms and conditions of site. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteAgentMessage\\\"],[8],[0,\\\"Agent message\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteAgentMessage\\\",\\\"form-control\\\",\\\"Agent Message\\\",[24,[\\\"agentMessage\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Agent side (eg. agent dash). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteEffectiveFrom\\\"],[8],[0,\\\"Effective from\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteEffectiveFrom\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"effectiveFrom\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the site becomes active. The site will only be displayed and usable while it's active.\\\\n      The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteEffectiveTo\\\"],[8],[0,\\\"Effective to\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteEffectiveTo\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"effectiveTo\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the site becomes inactive. The site will only be displayed and usable while it's active.\\\\n      If the effective to date is not specified, the site is active indefinitely. The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[2,\\\" Localized site attributes \\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"attributesLocalized\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"b\\\",true],[8],[1,[23,3,[]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Site Name\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"siteName\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"siteName\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Site name\\\",[23,2,[\\\"localization\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"This is the name of the site that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Description\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"description\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"description\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Description\\\",[23,2,[\\\"localization\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A short description of the site that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Explorer Message\\\\n        \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"explorerMessage\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"explorerMessage\\\",[23,3,[]]],null],\\\"form-control\\\",\\\"Explorer message\\\",[23,2,[\\\"localization\\\",\\\"explorerMessage\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Explorer side (eg. smart apps). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Site Address\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteAddress1\\\"],[8],[0,\\\"Address line 1\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteAddress1\\\",\\\"text\\\",\\\"form-control\\\",\\\"Site Address Line 1\\\",[24,[\\\"address1\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"First address line of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteAddress2\\\"],[8],[0,\\\"Address line 2\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteAddress2\\\",\\\"text\\\",\\\"form-control\\\",\\\"Site Address Line 2\\\",[24,[\\\"address2\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Second address line of the site location.\\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteCity\\\"],[8],[0,\\\"City\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteCity\\\",\\\"text\\\",\\\"form-control\\\",\\\"City\\\",[24,[\\\"city\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"City of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteState\\\"],[8],[0,\\\"State\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteState\\\",\\\"text\\\",\\\"form-control\\\",\\\"State\\\",[24,[\\\"state\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Two letter state abbreviation of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteCountry\\\"],[8],[0,\\\"Country\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteCountry\\\",\\\"text\\\",\\\"form-control\\\",\\\"Country\\\",[24,[\\\"country\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Two letter country abbreviation of the site location. \\\"],[7,\\\"a\\\",true],[10,\\\"href\\\",\\\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\\\"],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"(ISO 3166-1 alpha-2)\\\"],[9],[0,\\\" \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteZip\\\"],[8],[0,\\\"Zip code\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteZip\\\",\\\"text\\\",\\\"form-control\\\",\\\"Zip Code\\\",[24,[\\\"zip\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Zip code of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field.\\\"],[9],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteFence\\\"],[8],[0,\\\"Fence points\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"rows\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteFence\\\",\\\"text\\\",\\\"15\\\",\\\"form-control\\\",\\\"Fence points\\\",[24,[\\\"fence\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"To create fence points,\\\\n      \\\"],[7,\\\"ol\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Go to \\\"],[7,\\\"a\\\",true],[10,\\\"href\\\",\\\"http://geojson.io/#map=2/20.0/0.0\\\"],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"this site.\\\"],[9],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Then, copy and paste the data after \\\\\\\"geometry:\\\\\\\" starting from \\\\\\\"{\\\\\\\" to the end of the page.\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"After, delete the last \\\\\\\"}\\\\\\\", \\\\\\\"]\\\\\\\", \\\\\\\"}\\\\\\\"\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\". If no fence is provided, an octagonal fence will be drawn with a default radius of 0.5km, and then go to the edit page and follow the directions to edit/create the fence. Eg.\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"pre\\\",true],[8],[0,\\\"{\\\\n  \\\\\\\"type\\\\\\\": \\\\\\\"Polygon\\\\\\\",\\\\n  \\\\\\\"coordinates\\\\\\\": [\\\\n    [\\\\n      [\\\\n        -117.18154907226562,\\\\n        32.75797406892621\\\\n      ],\\\\n      ...\\\\n    ]\\\\n  ]\\\\n}\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Limits\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newSiteDurationPerCallCheckbox\\\",\\\"checkbox\\\",[24,[\\\"siteDurationPerCallCheckbox\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteDurationPerCall\\\"],[8],[0,\\\"Enforce duration per call\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"disabled\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"newSiteDurationPerCall\\\",\\\"number\\\",[28,\\\"if\\\",[[24,[\\\"siteDurationPerCallCheckbox\\\"]],false,true],null],\\\"form-control\\\",\\\"Maximum call duration (seconds)\\\",[24,[\\\"durationPerCall\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, we wish to limit per call. Value must be greater than 0. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforced Maximum Call Duration\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Misc.\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newSiteEnabled\\\",\\\"checkbox\\\",[24,[\\\"enabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteEnabled\\\"],[8],[0,\\\"Enabled\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Master switch that turns on or off this site.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newIsBLVSite\\\",\\\"checkbox\\\",[24,[\\\"isBLVSite\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newIsBLVSite\\\"],[8],[0,\\\"Is BLV Site\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether at this site BLV service is provided.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n   \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newIsASLSite\\\",\\\"checkbox\\\",[24,[\\\"isASLSite\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newIsASLSite\\\"],[8],[0,\\\"Is ASL Site\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether at this site ASL service is provided.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newSiteRequireBuildAi\\\",\\\"checkbox\\\",[24,[\\\"requireBuildAi\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteRequireBuildAi\\\"],[8],[0,\\\"Require Build AI\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site requires the user to be a Build AI program member.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newSiteSearchable\\\",\\\"checkbox\\\",[24,[\\\"searchable\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteSearchable\\\"],[8],[0,\\\"Searchable\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site is visible while searching on the Agent and Explorer sides.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newSiteDisplayable\\\",\\\"checkbox\\\",[24,[\\\"displayable\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteDisplayable\\\"],[8],[0,\\\"Displayable\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site will be displayed.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newSiteGpsActivated\\\",\\\"checkbox\\\",[24,[\\\"gpsActivated\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newSiteGpsActivated\\\"],[8],[0,\\\"Gps activated\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site location to be activated by GPS.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n   \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"newBufferAroundFence\\\",\\\"checkbox\\\",[24,[\\\"bufferAroundFence\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newBufferAroundFence\\\"],[8],[0,\\\"Buffer around fence\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Extends the geofence boundary.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[24,[\\\"errorMessage\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"cancelNewSite\\\"],null]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"createSite\\\"],null]]],[8],[0,\\\"Add Site\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/sites/new/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/sites/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define('aira-mgmt/accounts/account/sites/site/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    activeTab: 'index',\n    isLoading: false\n  });\n});","define('aira-mgmt/accounts/account/sites/site/edit/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    geojsonUrl: null,\n\n    fence: null,\n\n    fenceData: null,\n\n    actions: {\n      updateServiceDomain: function updateServiceDomain(type, event) {\n        var serviceDomain = this.get('model.serviceDomain');\n        if (!serviceDomain || !Array.isArray(serviceDomain)) {\n          return;\n        }\n\n        var item = serviceDomain.find(function (item) {\n          return item.type === type;\n        });\n        if (item) {\n          // Get the checked state from the event\n          var checked = event.target.checked;\n          // Update the value as a boolean\n          item.value = checked;\n          // Trigger property change notification\n          this.notifyPropertyChange('model.serviceDomain');\n        }\n      }\n    }\n  });\n});","define('aira-mgmt/accounts/account/sites/site/edit/route', ['exports', 'aira-mgmt/utils/validate-dates', 'aira-mgmt/helpers/change-PST-to-ISO', 'aira-mgmt/helpers/change-ISO-to-PST', 'aira-mgmt/accounts/account/route'], function (exports, _validateDates, _changePSTToISO, _changeISOToPST, _route) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n  function _toConsumableArray(arr) {\n    if (Array.isArray(arr)) {\n      for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n        arr2[i] = arr[i];\n      }\n\n      return arr2;\n    } else {\n      return Array.from(arr);\n    }\n  }\n\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      return this.modelFor('accounts.account.sites.site').site;\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      this.set('controller.fence', null);\n      if (model.fence) {\n        this.set('controller.fenceData', JSON.stringify(model.fence, null, \"\\t\"));\n        var url = 'https://geojson.io/#data=data:application/json,' + encodeURIComponent(JSON.stringify(model.fence));\n        this.set('controller.geojsonUrl', url);\n      }\n      if (model.durationPerCall === -1) {\n        this.set('controller.siteDurationPerCall', null);\n      } else {\n        this.set('controller.siteDurationPerCallCheckbox', true);\n        this.set('controller.siteDurationPerCall', model.durationPerCall);\n      }\n      this.set('controller.attributesLocalized', (0, _route.addMissingLangLocalizations)(model.attributesLocalized));\n      this.set('controller.model.effectiveFrom', (0, _changeISOToPST.changeISOtoPST)([model.effectiveFrom]));\n      this.set('controller.model.effectiveTo', (0, _changeISOToPST.changeISOtoPST)([model.effectiveTo]));\n    },\n\n\n    actions: {\n      cancelSite: function cancelSite(accountId) {\n        this.transitionTo('accounts.account.sites', accountId);\n      },\n      updateSite: function updateSite() {\n        var _this = this;\n\n        var siteId = this.modelFor('accounts.account.sites.site').site.id;\n        var accountId = this.modelFor('accounts.account').account.accountId;\n\n        // check site information\n        var dataIsGood = true;\n        var errorMessage = [];\n        if (this.get('controller.model.agentMessage') === '' || this.get('controller.model.agentMessage') == null) {\n          dataIsGood = false;\n          errorMessage.push('Missing agent message');\n        }\n\n        var effectiveFromError = (0, _validateDates.validateDate)(this.get('controller.model.effectiveFrom'), 'effective from', true);\n        if (effectiveFromError) {\n          dataIsGood = false;\n          errorMessage.push(effectiveFromError);\n        }\n\n        var effectiveToValue = this.get('controller.model.effectiveTo');\n        if (effectiveToValue !== '' && effectiveToValue != null) {\n          var effectiveToError = (0, _validateDates.validateDate)(effectiveToValue, 'effective to', false);\n          if (effectiveToError) {\n            dataIsGood = false;\n            errorMessage.push(effectiveToError);\n          }\n        }\n\n        if (this.get('controller.model.siteAddress.address1') === '' || this.get('controller.model.siteAddress.address1') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing address line 1');\n        }\n        if (this.get('controller.model.siteAddress.city') === '' || this.get('controller.model.siteAddress.city') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing city');\n        }\n        if (this.get('controller.model.siteAddress.country') === '' || this.get('controller.model.siteAddress.country') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing country');\n        }\n        if (this.get('controller.model.fence') === '' || this.get('controller.model.fence') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing fence');\n        }\n        if (this.get('controller.siteDurationPerCallCheckbox')) {\n          if (this.get('controller.siteDurationPerCall') === '' || this.get('controller.siteDurationPerCall') === undefined) {\n            dataIsGood = false;\n            errorMessage.push('Missing enforced duration per call');\n          } else {\n            var value = parseInt(this.get('controller.siteDurationPerCall'));\n            if (value <= 0 || isNaN(value)) {\n              dataIsGood = false;\n              errorMessage.push('Duration per call value must be a valid number greater than 0');\n            }\n          }\n        }\n\n        var validationArrayRsp = (0, _route.validateAttributesLocalized)(this.get('controller.attributesLocalized'));\n        if (!validationArrayRsp[0]) {\n          dataIsGood = false;\n          errorMessage.push.apply(errorMessage, _toConsumableArray(validationArrayRsp[1]));\n        }\n\n        if (dataIsGood) {\n          console.log('data is validated and good, invoking HTTP PUT');\n          this.get('platform').doPut(['access', 'site', siteId].join('/'), {\n            account: {\n              id: accountId\n            },\n            accountId: accountId,\n            id: siteId,\n            class: 'site',\n            type: \"public\",\n            termsAndConditions: this.get('controller.model.termsAndConditions') ? this.get('controller.model.termsAndConditions') : null,\n            agentMessage: this.get('controller.model.agentMessage'),\n            effectiveFrom: this.get('controller.model.effectiveFrom') ? (0, _changePSTToISO.changePSTtoISO)([this.get('controller.model.effectiveFrom')]) : null,\n            effectiveTo: this.get('controller.model.effectiveTo') ? (0, _changePSTToISO.changePSTtoISO)([this.get('controller.model.effectiveTo')]) : null,\n            partnerReferenceId: this.get('controller.model.partnerReferenceId') ? this.get('controller.model.partnerReferenceId') : null,\n            attributesLocalized: (0, _route.removeNotSetLocalizations)(this.get('controller.attributesLocalized')),\n            siteAddress: {\n              accountId: accountId,\n              address1: this.get('controller.model.siteAddress.address1'),\n              address2: this.get('controller.model.siteAddress.address2') ? this.get('controller.model.siteAddress.address2') : null,\n              city: this.get('controller.model.siteAddress.city'),\n              state: this.get('controller.model.siteAddress.state'),\n              country: this.get('controller.model.siteAddress.country'),\n              zip: this.get('controller.model.siteAddress.zip'),\n              addressType: 'site'\n            },\n            fence: JSON.parse(this.get('controller.fenceData')),\n            durationPerCall: this.get('controller.siteDurationPerCallCheckbox') ? parseInt(this.get('controller.siteDurationPerCall')) : -1,\n            enabled: this.get('controller.model.enabled'),\n            requireBuildAi: this.get('controller.model.requireBuildAi'),\n            searchable: this.get('controller.model.searchable'),\n            displayable: this.get('controller.model.displayable'),\n            gpsActivated: this.get('controller.model.gpsActivated'),\n            bufferAroundFence: this.get('controller.model.bufferAroundFence'),\n            serviceDomain: this.get('controller.model.serviceDomain')\n          }).then(function () {\n            console.log('HTTP PUT was successful');\n            _this.get('notify').success('Site updated!');\n            _this.transitionTo('accounts.account.sites', accountId);\n          }, function (error) {\n            console.error('HTTP PUT errored out');\n            _this.send('error', error.errorMessage);\n          });\n          this.set('controller.errorMessage', null);\n        } else {\n          this.set('controller.errorMessage', errorMessage);\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/sites/site/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"zXbunPJK\", \"block\": \"{\\\"symbols\\\":[\\\"err\\\",\\\"attribute\\\",\\\"language\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"d-flex justify-content-between align-items-center\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h3\\\",true],[8],[0,\\\"\\\\n    Editing: \\\"],[1,[24,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\" (ID: \\\"],[1,[24,[\\\"model\\\",\\\"id\\\"]],false],[0,\\\")\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"small-text\\\"],[8],[0,\\\"\\\\n    UUID: \\\"],[1,[24,[\\\"model\\\",\\\"uuid\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"form\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Basic Information\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteTerms\\\"],[8],[0,\\\"Terms & conditions\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteTerms\\\",\\\"text\\\",\\\"form-control\\\",\\\"Terms & Conditions\\\",[24,[\\\"model\\\",\\\"termsAndConditions\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Footnotes for terms and conditions of site. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteAgentMessage\\\"],[8],[0,\\\"Agent message\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteAgentMessage\\\",\\\"form-control\\\",\\\"Agent Message\\\",[24,[\\\"model\\\",\\\"agentMessage\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Agent side (eg. agent dash). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteEffectiveFrom\\\"],[8],[0,\\\"Effective from\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteEffectiveFrom\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"model\\\",\\\"effectiveFrom\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the site becomes active. The site will only be displayed and usable while it's active.\\\\n      The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteEffectiveTo\\\"],[8],[0,\\\"Effective to\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteEffectiveTo\\\",\\\"text\\\",\\\"form-control\\\",\\\"YYYY-MM-DD hh:mm\\\",[24,[\\\"model\\\",\\\"effectiveTo\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The date in which the site becomes inactive. The site will only be displayed and usable while it's active.\\\\n      If the effective to date is not specified, the site is active indefinitely. The date format must be in PST time with format \\\"],[7,\\\"b\\\",true],[8],[0,\\\"YYYY-MM-DD hh:mm\\\"],[9],[0,\\\". \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Store Id (Partner Reference Id)\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSitePartnerReferenceId\\\",\\\"text\\\",\\\"form-control\\\",\\\"Store Id\\\",[24,[\\\"model\\\",\\\"partnerReferenceId\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"This is identifier for the store with respect to the access partner. \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n  \\\"],[2,\\\" Localized attributes \\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"attributesLocalized\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"b\\\",true],[8],[1,[23,3,[]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Site Name\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"editSiteName\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"editSiteName\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Site name\\\",[23,2,[\\\"localization\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"This is the name of the site that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Description\\\\n        \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"editDescription\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"editDescription\\\",[23,3,[]]],null],\\\"text\\\",\\\"form-control\\\",\\\"Description\\\",[23,2,[\\\"localization\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A short description of the site that is displayed to Explorers and Agents. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Explorer Message\\\\n        \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"name\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[[28,\\\"concat\\\",[\\\"editExplorerMessage\\\",[23,3,[]]],null],[28,\\\"concat\\\",[\\\"editExplorerMessage\\\",[23,3,[]]],null],\\\"form-control\\\",\\\"Explorer message\\\",[23,2,[\\\"localization\\\",\\\"explorerMessage\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"A detailed message that is only displayed on the Explorer side (eg. smart apps). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Site Address\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteAddress1\\\"],[8],[0,\\\"Address line 1\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteAddress1\\\",\\\"text\\\",\\\"form-control\\\",\\\"Site Address Line 1\\\",[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"address1\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"First address line of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteAddress2\\\"],[8],[0,\\\"Address line 2\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteAddress2\\\",\\\"text\\\",\\\"form-control\\\",\\\"Site Address Line 2\\\",[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"address2\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Second address line of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteCity\\\"],[8],[0,\\\"City\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteCity\\\",\\\"text\\\",\\\"form-control\\\",\\\"City\\\",[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"city\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"City of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteState\\\"],[8],[0,\\\"State\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteState\\\",\\\"text\\\",\\\"form-control\\\",\\\"State\\\",[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"state\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Two letter state abbreviation of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteCountry\\\"],[8],[0,\\\"Country\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteCountry\\\",\\\"text\\\",\\\"form-control\\\",\\\"Country\\\",[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"country\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Two letter country abbreviation of the site location. \\\"],[7,\\\"a\\\",true],[10,\\\"href\\\",\\\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\\\"],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"(ISO 3166-1 alpha-2)\\\"],[9],[0,\\\" \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteZip\\\"],[8],[0,\\\"Zip code\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteZip\\\",\\\"text\\\",\\\"form-control\\\",\\\"Zip cCode\\\",[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"zip\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Zip code of the site location. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteFence\\\"],[8],[0,\\\"Fence points\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"rows\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteFence\\\",\\\"text\\\",\\\"15\\\",\\\"form-control\\\",\\\"Fence Points\\\",[24,[\\\"fenceData\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"When editing:\\\\n      \\\"],[7,\\\"ol\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Use \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[22,\\\"geojsonUrl\\\"]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"this site\\\"],[9],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Draw new fence points\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Then, copy and paste the new data after \\\\\\\"geometry:\\\\\\\" starting from \\\\\\\"{\\\\\\\" to the end of the page.\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"After, delete the last \\\\\\\"}\\\\\\\", \\\\\\\"]\\\\\\\", \\\\\\\"}\\\\\\\"\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"br\\\",true],[8],[9],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\". Eg.\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"pre\\\",true],[8],[0,\\\"{\\\\n  \\\\\\\"type\\\\\\\": \\\\\\\"Polygon\\\\\\\",\\\\n  \\\\\\\"coordinates\\\\\\\": [\\\\n    [\\\\n      [\\\\n        -117.18154907226562,\\\\n        32.75797406892621\\\\n      ],\\\\n      ...\\\\n    ]\\\\n  ]\\\\n}\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Limits\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editSiteDurationPerCallCheckbox\\\",\\\"checkbox\\\",[24,[\\\"siteDurationPerCallCheckbox\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteDurationPerCall\\\"],[8],[0,\\\"Enforce duration per call\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"disabled\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"editSiteDurationPerCall\\\",\\\"number\\\",[28,\\\"if\\\",[[24,[\\\"siteDurationPerCallCheckbox\\\"]],false,true],null],\\\"form-control\\\",\\\"Maximum Call Duration (seconds)\\\",[24,[\\\"siteDurationPerCall\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, we wish to limit per call. Value must be greater than 0. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforced Maximum Call Duration\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Misc.\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editSiteEnabled\\\",\\\"checkbox\\\",[24,[\\\"model\\\",\\\"enabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteEnabled\\\"],[8],[0,\\\"Enabled\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Master switch that turns on or off this site.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"editIsBLVSite\\\",\\\"checkbox\\\",[28,\\\"find-by-type\\\",[\\\"VIS\\\",[24,[\\\"model\\\",\\\"serviceDomain\\\"]],\\\"value\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"updateServiceDomain\\\",\\\"VIS\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editIsBLVSite\\\"],[8],[0,\\\"Is BLV Site\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether at this site BLV service is provided.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"editIsASLSite\\\",\\\"checkbox\\\",[28,\\\"find-by-type\\\",[\\\"SLS\\\",[24,[\\\"model\\\",\\\"serviceDomain\\\"]],\\\"value\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"updateServiceDomain\\\",\\\"SLS\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editIsASLSite\\\"],[8],[0,\\\"Is ASL Site\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether at this site ASL service is provided.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editSiteRequireBuildAi\\\",\\\"checkbox\\\",[24,[\\\"model\\\",\\\"requireBuildAi\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteRequireBuildAi\\\"],[8],[0,\\\"Require Build AI\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site requires the user to be a Build AI program member.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editSiteSearchable\\\",\\\"checkbox\\\",[24,[\\\"model\\\",\\\"searchable\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteSearchable\\\"],[8],[0,\\\"Searchable\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site is visible while searching on the Agent and Explorer sides.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editSiteDisplayable\\\",\\\"checkbox\\\",[24,[\\\"model\\\",\\\"displayable\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteDisplayable\\\"],[8],[0,\\\"Displayable\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site will be displayed.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editSiteGpsActivated\\\",\\\"checkbox\\\",[24,[\\\"model\\\",\\\"gpsActivated\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteGpsActivated\\\"],[8],[0,\\\"Gps activated\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether the site location to be activated by GPS.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editBufferAroundFence\\\",\\\"checkbox\\\",[24,[\\\"model\\\",\\\"bufferAroundFence\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"editSiteGpsActivated\\\"],[8],[0,\\\"Buffer around fence\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Extends the geofence boundary.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[24,[\\\"errorMessage\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"cancelSite\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"id\\\"]]],null]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"updateSite\\\",[24,[\\\"mode\\\",\\\"id\\\"]]],null]]],[8],[0,\\\"Save\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/sites/site/edit/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/sites/site/index/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    geojsonUrl: null,\n\n    timezone: null\n\n  });\n});","define('aira-mgmt/accounts/account/sites/site/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      return this.modelFor('accounts.account.sites.site').site;\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      if (model.fence) {\n        var url = 'https://geojson.io/#data=data:application/json,' + encodeURIComponent(JSON.stringify(model.fence));\n        controller.set('geojsonUrl', url);\n      }\n      controller.set('timezone', new Date().toLocaleTimeString('en-us', { timeZoneName: 'short' }).split(' ')[2]);\n    },\n\n\n    actions: {\n      backSite: function backSite(accountId) {\n        this.transitionTo('accounts.account.sites', accountId);\n      },\n      editSite: function editSite(accountId, siteId) {\n        this.transitionTo('accounts.account.sites.site.edit', accountId, siteId);\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/sites/site/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"JgPZlsD5\", \"block\": \"{\\\"symbols\\\":[\\\"attribute\\\",\\\"language\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table table-striped content-group-lg\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"table-row\\\",null,null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Basic Information\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Type:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"type\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Account ID:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"account\\\",\\\"id\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Site ID:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"id\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Terms & conditions:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"termsAndConditions\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"termsAndConditionsUrl\\\"]]],null,{\\\"statements\\\":[[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[24,[\\\"model\\\",\\\"termsAndConditionsUrl\\\"]]]]],[8],[0,\\\"URL\\\"],[9]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[10,\\\"style\\\",\\\"white-space: pre-wrap;\\\"],[8],[7,\\\"b\\\",true],[8],[0,\\\"Agent message:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"agentMessage\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Effective from:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"effectiveFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"change-ISO-to-PST\\\",[[24,[\\\"model\\\",\\\"effectiveFrom\\\"]]],null],false],[0,\\\" (PST)\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Indefinite\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Effective to:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"effectiveTo\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"change-ISO-to-PST\\\",[[24,[\\\"model\\\",\\\"effectiveTo\\\"]]],null],false],[0,\\\" (PST)\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Indefinite\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Store Id (Partner Reference Id):\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"partnerReferenceId\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[2,\\\" Localized attributes \\\"],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"model\\\",\\\"attributesLocalized\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\",true],[8],[1,[23,2,[]],false],[0,\\\"\\\\n                  \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Site name:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"localization\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Description:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"localization\\\",\\\"description\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"li\\\",true],[10,\\\"style\\\",\\\"white-space: pre-wrap;\\\"],[8],[7,\\\"b\\\",true],[8],[0,\\\"Explorer message:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"localization\\\",\\\"explorerMessage\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Site Address\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Site address ID:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"id\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Address Line 1:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"address1\\\"]],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"address2\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Address Line 2:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"address2\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"City:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"city\\\"]],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"county\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"County:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"county\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"State:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"state\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Country:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"country\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Zip:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"siteAddress\\\",\\\"zip\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Fence URL:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[24,[\\\"geojsonUrl\\\"]]],null,{\\\"statements\\\":[[7,\\\"a\\\",true],[11,\\\"href\\\",[22,\\\"geojsonUrl\\\"]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"View Fence Map Here\\\"],[9],[0,\\\".\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Limits\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"b\\\",true],[8],[0,\\\"Duration per call:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"durationPerCall\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n                No limit\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[24,[\\\"model\\\",\\\"durationPerCall\\\"]],false],[0,\\\" seconds\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Misc.\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"BLV Site:\\\"],[9],[0,\\\" \\\"],[1,[28,\\\"find-by-type\\\",[\\\"VIS\\\",[24,[\\\"model\\\",\\\"serviceDomain\\\"]],\\\"value\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"ASL Site:\\\"],[9],[0,\\\" \\\"],[1,[28,\\\"find-by-type\\\",[\\\"SLS\\\",[24,[\\\"model\\\",\\\"serviceDomain\\\"]],\\\"value\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Gps activated:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"gpsActivated\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Buffer around fence:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"bufferAroundFence\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Enabled:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"enabled\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Require Build AI:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"requireBuildAi\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Searchable:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"searchable\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Displayable:\\\"],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"displayable\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Created:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"createdTimestamp\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"createdTimestamp\\\"]],\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[0,\\\" (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Not Available\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[7,\\\"b\\\",true],[8],[0,\\\"Modified:\\\"],[9],[0,\\\" \\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"modifiedTimestamp\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"modifiedTimestamp\\\"]],\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[0,\\\" (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Not Available\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"backSite\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"id\\\"]]],null]]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Go Back\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"editSite\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"id\\\"]],[24,[\\\"model\\\",\\\"id\\\"]]],null]]],[8],[0,\\\"Edit\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/sites/site/index/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/sites/site/resources/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n    model: function model() {\n      return this.modelFor('accounts.account.sites.site').site;\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/sites/site/resources/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"dMRDZ+si\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"external-resources\\\",null,[[\\\"scope\\\",\\\"parentId\\\"],[\\\"site\\\",[24,[\\\"model\\\",\\\"id\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/sites/site/resources/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/sites/site/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    initialTab: null,\n\n    platform: Ember.inject.service(),\n\n    beforeModel: function beforeModel(transition) {\n      var targetName = transition.targetName || '';\n      var targetTab = targetName.split('.')[4];\n      this.initialTab = targetTab === 'edit' ? 'index' : targetTab;\n    },\n    model: function model(p) {\n      var _this = this;\n\n      return Ember.RSVP.hash({\n        site: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('access/site/' + p.site_id).then(function (response) {\n            resolve(response);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('activeTab', this.initialTab || 'index');\n    },\n\n\n    actions: {\n      loading: function loading(transition) {\n        var controller = this.get('controller');\n        if (controller) {\n          controller.set('isLoading', true);\n          transition.promise.finally(function () {\n            controller.set('isLoading', false);\n          });\n        }\n      },\n      willTransition: function willTransition(transition) {\n        var targetTab = transition.targetName.split('.')[4];\n        this.controller.set('activeTab', targetTab === 'edit' ? 'index' : targetTab);\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/sites/site/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"z86Ml57s\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"d-flex justify-content-between align-items-center\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h4\\\",true],[8],[1,[24,[\\\"model\\\",\\\"site\\\",\\\"name\\\"]],false],[0,\\\" Details\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"small-text\\\"],[8],[0,\\\"UUID: \\\"],[1,[24,[\\\"model\\\",\\\"site\\\",\\\"uuid\\\"]],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabbable\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"nav nav-tabs nav-tabs-highlight\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"index\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"models\\\"],[\\\"accounts.account.sites.site.index\\\",[28,\\\"array\\\",[[24,[\\\"model\\\",\\\"site\\\",\\\"account\\\",\\\"id\\\"]],[24,[\\\"model\\\",\\\"site\\\",\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-info22 position-left\\\"],[8],[9],[0,\\\" Site Information\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"resources\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"models\\\"],[\\\"accounts.account.sites.site.resources\\\",[28,\\\"array\\\",[[24,[\\\"model\\\",\\\"site\\\",\\\"account\\\",\\\"id\\\"]],[24,[\\\"model\\\",\\\"site\\\",\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-link position-left\\\"],[8],[9],[0,\\\" External Resources\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-pane active\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Loading...\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/sites/site/template.hbs\" } });\n});","define(\"aira-mgmt/accounts/account/sites/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"phjl7doT\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/sites/template.hbs\" } });\n});","define(\"aira-mgmt/accounts/account/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"f6lAG/FU\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"simple-panel\\\",null,[[\\\"title\\\",\\\"rightText\\\"],[[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"account\\\",\\\"name\\\"]],\\\"'s Details\\\"],null],[28,\\\"concat\\\",[\\\"UUID: \\\",[24,[\\\"model\\\",\\\"account\\\",\\\"uuid\\\"]]],null]]],{\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabbable\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"nav nav-tabs nav-tabs-highlight\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"index\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"accounts.account.index\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"accountId\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-user position-left\\\"],[8],[9],[0,\\\" Profile\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"users\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"accounts.account.users\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"accountId\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-users4 position-left\\\"],[8],[9],[0,\\\" Users\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"usage\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"accounts.account.usage\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"accountId\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-pie-chart3 position-left\\\"],[8],[9],[0,\\\" Usage\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"resources\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"accounts.account.resources\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"accountId\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-link position-left\\\"],[8],[9],[0,\\\" External Resources\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"products\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"accounts.account.products\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"accountId\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-box position-left\\\"],[8],[9],[0,\\\" Product/Promotion\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"sites\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"accounts.account.sites\\\",[24,[\\\"model\\\",\\\"account\\\",\\\"accountId\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-star-full2 position-left\\\"],[8],[9],[0,\\\" Sites\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-pane active\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Loading...\\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\" \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/usage/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    timezone: null\n  });\n});","define('aira-mgmt/accounts/account/usage/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      var _this = this;\n\n      var accountId = this.modelFor('accounts.account').account.accountId;\n      return Ember.RSVP.hash({\n        usage: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('mgmt/account/' + accountId + '/usage-state').then(function (response) {\n            resolve(response);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n            return [];\n          });\n        })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('timezone', new Date().toLocaleTimeString('en-us', { timeZoneName: 'short' }).split(' ')[2]);\n    },\n\n\n    actions: {}\n  });\n});","define(\"aira-mgmt/accounts/account/usage/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"Tt/3ZkFB\", \"block\": \"{\\\"symbols\\\":[\\\"request\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"usage\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped table-responsive content-group-lg\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Product Code\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Product Type\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Subscription Cycle Start (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Subscription Cycle End (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Allocated Seconds\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Consumed Seconds\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Seconds Left\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"usage\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"allowActive\\\"],[false]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"productCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"productCode\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"productType\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"productType\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"subCycleStart\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"subCycleStart\\\"]],\\\"LLL\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"subCycleEnd\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"subCycleEnd\\\"]],\\\"LLL\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Not available\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"allocatedSeconds\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"minutes\\\",[[23,1,[\\\"allocatedSeconds\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"0 seconds\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"consumedSeconds\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"minutes\\\",[[23,1,[\\\"consumedSeconds\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"0 seconds\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"secondsLeft\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"minutes\\\",[[23,1,[\\\"secondsLeft\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"0 seconds\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Account has no usage information.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/usage/template.hbs\" } });\n});","define('aira-mgmt/accounts/account/users/controller', ['exports', 'luxon'], function (exports, _luxon) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    notify: Ember.inject.service(),\n    platform: Ember.inject.service(),\n\n    addUserID: null,\n    addUserDurationAllowed: null,\n    addUserResetDurationUsed: null,\n    deleteUserID: null,\n    invites: null,\n    primaryUserID: null,\n    inviteUserEmail: null,\n    deleteInviteUserEmail: null,\n    deleteSecondaryUserID: null,\n    editASL: false,\n    addingUser: false,\n\n    actions: {\n      noop: function noop() {},\n      editDurationAllowed: function editDurationAllowed(user) {\n        var _iteratorNormalCompletion = true;\n        var _didIteratorError = false;\n        var _iteratorError = undefined;\n\n        try {\n          for (var _iterator = this.model.users[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n            var u = _step.value;\n\n            // Set isEditing to true for the selected user and false for everyone else\n            if (u.id === user.id) {\n              Ember.set(u, 'editDurationAllowed', u.durationAllowed === -1 ? null : Math.ceil(u.durationAllowed / 60));\n              Ember.set(u, 'editResetDurationUsed', u.resetDurationUsed);\n              Ember.set(u, 'isEditing', true);\n            } else {\n              Ember.set(u, 'isEditing', false);\n            }\n          }\n        } catch (err) {\n          _didIteratorError = true;\n          _iteratorError = err;\n        } finally {\n          try {\n            if (!_iteratorNormalCompletion && _iterator.return) {\n              _iterator.return();\n            }\n          } finally {\n            if (_didIteratorError) {\n              throw _iteratorError;\n            }\n          }\n        }\n      },\n      cancelEditDurationAllowed: function cancelEditDurationAllowed(user) {\n        Ember.set(user, 'isEditing', false);\n      },\n      saveDurationAllowed: function saveDurationAllowed(user) {\n        var _this = this;\n\n        var durationAllowed = -1;\n        if (user.editDurationAllowed) {\n          if (parseInt(user.editDurationAllowed) < 1) {\n            this.notify.error('Minutes allowed must be greater than 0.');\n            return;\n          }\n\n          // Convert minutes to seconds\n          durationAllowed = parseInt(user.editDurationAllowed) * 60;\n        }\n        var resetDurationUsed = user.editResetDurationUsed;\n\n        if (durationAllowed === user.durationAllowed && resetDurationUsed === user.resetDurationUsed) {\n          // Nothing changed\n          Ember.set(user, 'isEditing', false);\n          return;\n        }\n\n        this.platform.doPut('mgmt/account/' + user.accountId + '/user/' + user.userId + '/business', {\n          durationAllowed: durationAllowed,\n          resetDurationUsed: resetDurationUsed\n        }).then(function () {\n          _this.notify.success('Updated minutes allowed for user with ID ' + user.userId + ' in account ' + user.accountId + '.');\n          Ember.set(user, 'durationAllowed', durationAllowed);\n          Ember.set(user, 'resetDurationUsed', resetDurationUsed);\n          Ember.set(user, 'isEditing', false);\n        }, function (_ref) {\n          var errorMessage = _ref.errorMessage;\n\n          _this.notify.error(errorMessage);\n        });\n      },\n      editEndDate: function editEndDate(user) {\n        var _iteratorNormalCompletion2 = true;\n        var _didIteratorError2 = false;\n        var _iteratorError2 = undefined;\n\n        try {\n          for (var _iterator2 = this.model.users[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n            var u = _step2.value;\n\n            // Set isEditingEndDate to true for the selected user and false for everyone else\n            if (u.id === user.id) {\n              Ember.set(u, 'editEndDate', u.effectiveTo ? u.effectiveTo.split('T')[0] : null);\n              Ember.set(u, 'isEditingEndDate', true);\n            } else {\n              Ember.set(u, 'isEditingEndDate', false);\n            }\n          }\n        } catch (err) {\n          _didIteratorError2 = true;\n          _iteratorError2 = err;\n        } finally {\n          try {\n            if (!_iteratorNormalCompletion2 && _iterator2.return) {\n              _iterator2.return();\n            }\n          } finally {\n            if (_didIteratorError2) {\n              throw _iteratorError2;\n            }\n          }\n        }\n      },\n      cancelEndDate: function cancelEndDate(user) {\n        Ember.set(user, 'isEditingEndDate', false);\n      },\n      saveEndDate: function saveEndDate(user) {\n        var _this2 = this;\n\n        if (user.editEndDate) {\n          if (new Date(user.editEndDate) < new Date()) {\n            this.notify.error('Date should be greater than current date.');\n            return;\n          }\n        }\n        var effectiveTo = _luxon.DateTime.fromISO(user.editEndDate, { zone: 'America/Los_Angeles' }).setZone('UTC').toISO({ suppressMilliseconds: true });\n\n        this.platform.doPut('mgmt/account/' + user.accountId + '/user/' + user.userId + '/business/service-end-date', {\n          effectiveTo: effectiveTo\n        }).then(function () {\n          _this2.notify.success('Updated the end date for user with ID ' + user.userId + ' in account ' + user.accountId + '.');\n          Ember.set(user, 'effectiveTo', user.editEndDate);\n          Ember.set(user, 'isEditingEndDate', false);\n        }, function (_ref2) {\n          var errorMessage = _ref2.errorMessage;\n\n          _this2.notify.error(errorMessage);\n        });\n      },\n      removeEndDate: function removeEndDate(user) {\n        var _this3 = this;\n\n        this.platform.doPut('mgmt/account/' + user.accountId + '/user/' + user.userId + '/business/service-end-date', {\n          effectiveTo: null\n        }).then(function () {\n          _this3.notify.success('Removed the end date for user with ID ' + user.userId + ' in account ' + user.accountId + '.');\n          Ember.set(user, 'effectiveTo', null);\n          Ember.set(user, 'isEditingEndDate', false);\n        }, function (_ref3) {\n          var errorMessage = _ref3.errorMessage;\n\n          _this3.notify.error(errorMessage);\n        });\n      },\n      editASL: function editASL(user) {\n        this.model.users.forEach(function (u) {\n          Ember.set(u, 'isEditingASL', u.id === user.id);\n        });\n        Ember.set(this, 'editASL', !user.asl);\n      },\n      saveASL: function saveASL(user) {\n        var _this4 = this;\n\n        this.platform.doPut('mgmt/account/' + user.accountId + '/user/' + user.userId + '/business/asl', {\n          value: this.editASL\n        }).then(function () {\n          _this4.notify.success('Updated ASL for user with ID ' + user.userId + ' in account ' + user.accountId + '.');\n          Ember.set(user, 'asl', _this4.editASL);\n          Ember.set(user, 'isEditingASL', false);\n        }, function (_ref4) {\n          var errorMessage = _ref4.errorMessage;\n\n          _this4.notify.error(errorMessage);\n        });\n      },\n      cancelASL: function cancelASL(user) {\n        Ember.set(user, 'isEditingASL', false);\n      }\n    }\n  });\n});","define('aira-mgmt/accounts/account/users/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    beforeModel: function beforeModel() {},\n    model: function model() {\n      var _this = this;\n\n      return Ember.RSVP.hash({\n        primary: new Ember.RSVP.Promise(function (resolve, reject) {\n          var accountId = _this.modelFor('accounts.account').account.accountId;\n          var accountType = \"PRIMARY\";\n          _this.get('platform').doGet('mgmt/account/' + accountId + '/' + accountType).then(function (response) {\n            resolve(response.payload);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        }),\n        users: new Ember.RSVP.Promise(function (resolve, reject) {\n          var accountId = _this.modelFor('accounts.account').account.accountId;\n          var accountType = _this.modelFor('accounts.account').account.accountType;\n          var accountToSearchFor = null;\n          if (accountType === 'INDIVIDUAL') {\n            accountToSearchFor = 'SECONDARY';\n          } else if (accountType === 'BUSINESS') {\n            accountToSearchFor = 'BUSINESS';\n          }\n\n          if (accountToSearchFor !== null) {\n            _this.get('platform').doGet('mgmt/account/' + accountId + '/' + accountToSearchFor).then(function (response) {\n              var users = response.payload;\n              var _iteratorNormalCompletion = true;\n              var _didIteratorError = false;\n              var _iteratorError = undefined;\n\n              try {\n                for (var _iterator = users[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n                  var u = _step.value;\n\n                  u.isEditing = false;\n                  u.isEditingEndDate = false;\n                  if (u.effectiveTo !== null) {\n                    // Only show the date part of the effectiveTo\n                    u.effectiveTo = u.effectiveTo.split(\"T\")[0];\n                  }\n                }\n              } catch (err) {\n                _didIteratorError = true;\n                _iteratorError = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion && _iterator.return) {\n                    _iterator.return();\n                  }\n                } finally {\n                  if (_didIteratorError) {\n                    throw _iteratorError;\n                  }\n                }\n              }\n\n              resolve(users);\n            }, function (_ref2) {\n              var errorCode = _ref2.errorCode,\n                  errorMessage = _ref2.errorMessage;\n\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n            });\n          } else {\n            resolve([]);\n          }\n        }),\n        individualAccount: this.modelFor('accounts.account').account.accountType === 'INDIVIDUAL',\n        businessAccount: this.modelFor('accounts.account').account.accountType === 'BUSINESS'\n      });\n    },\n    setupController: function setupController(controller, model) {\n      var _this2 = this;\n\n      this._super(controller, model);\n      console.log(\"printing out the model\", model.invites);\n      controller.set('addUserID', null);\n      controller.set('addUserDurationAllowed', null);\n      controller.set('addUserResetDurationUsed', 'UTC_MONTH');\n      controller.set('deleteUserID', null);\n      controller.set('inviteUserEmail', null);\n      controller.set('deleteInviteUserEmail', null);\n      controller.set('deleteSecondaryUserID', null);\n      controller.set('primaryUserID', model.primary[0].userId);\n\n      if (model.individualAccount) {\n        new Ember.RSVP.Promise(function (resolve, reject) {\n          _this2.get('platform').doGet('account/sharing/' + model.primary[0].userId).then(function (response) {\n            console.log(\"printing response in controller\", response);\n            controller.set('invites', response.invites);\n            resolve(response.invites);\n          }, function (_ref3) {\n            var errorCode = _ref3.errorCode,\n                errorMessage = _ref3.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        });\n      }\n\n      console.log(\"printing out the controller invites \", this.controller.get('invites'));\n    },\n\n\n    actions: {\n      selectUserAccount: function selectUserAccount(accountId, userId) {\n        console.log(\"Selected user :\" + userId + \", in account: \" + accountId);\n        this.controller.set('activeId', userId);\n        this.transitionTo('users.user', userId);\n      },\n      selectUserInvite: function selectUserInvite(inviteeEmail) {\n        console.log(\"in selectUserInvite invitee email is :\", inviteeEmail);\n        this.controller.set('inviteeActiveId', inviteeEmail);\n      },\n      addUserToBusinessAccount: function addUserToBusinessAccount() {\n        var _this3 = this;\n\n        this.controller.set('addingUser', true);\n        var accountId = this.modelFor('accounts.account').account.accountId;\n\n        var userId = this.controller.get('addUserID');\n        if (!userId || parseInt(userId) < 1) {\n          this.get('notify').error('Invalid user ID.');\n          this.controller.set('addingUser', false);\n          return;\n        }\n\n        var durationAllowed = -1;\n        if (this.controller.get('addUserDurationAllowed')) {\n          if (parseInt(this.controller.get('addUserDurationAllowed')) < 1) {\n            this.get('notify').error('Minutes allowed must be greater than 0.');\n            return;\n          }\n\n          // Convert minutes to seconds\n          durationAllowed = parseInt(this.controller.get('addUserDurationAllowed')) * 60;\n        }\n\n        var resetDurationUsed = this.controller.get('addUserResetDurationUsed');\n\n        var endpoint = 'mgmt/account/' + accountId + '/user/' + userId + '/business?durationAllowed=' + durationAllowed + '&resetDurationUsed=' + resetDurationUsed;\n\n        this.get('platform').doPost(endpoint).then(function () {\n          _this3.get('notify').success('Added user with ID ' + userId + ' to account ' + accountId + '.');\n          _this3.refresh();\n        }, function (_ref4) {\n          var errorMessage = _ref4.errorMessage;\n\n          _this3.get('notify').error(errorMessage);\n        }).finally(function () {\n          _this3.controller.set('addingUser', false);\n        });\n      },\n      deleteUserFromBusinessAccount: function deleteUserFromBusinessAccount() {\n        var _this4 = this;\n\n        var accountId = this.modelFor('accounts.account').account.accountId;\n        var userId = this.controller.get(\"deleteUserID\");\n        if (userId) {\n          this.get('platform').doDelete('mgmt/account/' + accountId + '/user/' + userId + '/business').then(function (response) {\n            _this4.get('notify').success('Delete user with ID ' + userId + ' from account ' + accountId);\n            _this4.refresh();\n          }, function (_ref5) {\n            var errorCode = _ref5.errorCode,\n                errorMessage = _ref5.errorMessage;\n\n            _this4.get('notify').error(errorMessage);\n          });\n        } else {\n          this.get('notify').error(\"Please input a valid number to delete a business user \");\n        }\n      },\n      inviteSecondaryUser: function inviteSecondaryUser() {\n        var _this5 = this;\n\n        var primaryID = this.controller.get(\"primaryUserID\");\n        var inviteeEmail = this.controller.get(\"inviteUserEmail\");\n        if (inviteeEmail && primaryID) {\n          this.get('platform').doPost('account/sharing/invite', {\n            userId: primaryID,\n            invitee: inviteeEmail\n          }).then(function (response) {\n            _this5.get('notify').success('Invited user with email ' + inviteeEmail + ' to account ');\n            _this5.refresh();\n          }, function (_ref6) {\n            var errorCode = _ref6.errorCode,\n                errorMessage = _ref6.errorMessage;\n\n            _this5.get('notify').error(errorMessage);\n          });\n        } else {\n          this.get('notify').error(\"Primary User ID or Invitee Email is invalid, please try again\");\n        }\n        console.log(\"Inviting secondary users \", inviteeEmail);\n      },\n      deleteInviteSecondaryUser: function deleteInviteSecondaryUser() {\n        var _this6 = this;\n\n        var inviteeEmail = this.controller.get(\"deleteInviteUserEmail\");\n        var primaryID = this.controller.get(\"primaryUserID\");\n        console.log(primaryID);\n        console.log(inviteeEmail);\n\n        if (inviteeEmail && primaryID) {\n          this.get('platform').doDelete('account/sharing/invite', {\n            userId: primaryID,\n            invitee: inviteeEmail\n          }).then(function (response) {\n            _this6.get('notify').success('Deleted user with email ' + inviteeEmail + ' from account ');\n            _this6.refresh();\n          }, function (_ref7) {\n            var errorCode = _ref7.errorCode,\n                errorMessage = _ref7.errorMessage;\n\n            _this6.get('notify').error(errorMessage);\n          });\n        } else {\n          this.get('notify').error(\"Primary User ID or Invitee Email is invalid, please try again\");\n        }\n        console.log(\"Deleting invitation of secondary users \", inviteeEmail);\n      },\n      deleteSecondaryUser: function deleteSecondaryUser() {\n        var _this7 = this;\n\n        var userID = this.controller.get(\"deleteSecondaryUserID\");\n\n        if (userID) {\n          this.get('platform').doDelete('account/sharing/' + userID).then(function (response) {\n            _this7.get('notify').success('Deleted user with email ' + userID + ' from account ');\n            _this7.refresh();\n          }, function (_ref8) {\n            var errorCode = _ref8.errorCode,\n                errorMessage = _ref8.errorMessage;\n\n            _this7.get('notify').error(errorMessage);\n          });\n        } else {\n          this.get('notify').error(\"UserID is not valid, please try again\");\n        }\n\n        console.log(\"Deleting secondary users \", userID);\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/account/users/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"caeFe0jc\", \"block\": \"{\\\"symbols\\\":[\\\"invitee\\\",\\\"user\\\",\\\"user\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"businessAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Add Business User By User ID\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"placeholder\\\",\\\"aria-label\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"User ID\\\",\\\"User ID\\\",[24,[\\\"addUserID\\\"]],[28,\\\"route-action\\\",[\\\"addUserToBusinessAccount\\\"],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"placeholder\\\",\\\"aria-label\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"Minutes allowed\\\",\\\"Minutes allowed\\\",[24,[\\\"addUserDurationAllowed\\\"]],[28,\\\"route-action\\\",[\\\"addUserToBusinessAccount\\\"],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"select\\\",true],[10,\\\"aria-label\\\",\\\"Reset minutes\\\"],[10,\\\"class\\\",\\\"form-control\\\"],[11,\\\"onchange\\\",[28,\\\"action\\\",[[23,0,[]],[28,\\\"mut\\\",[[24,[\\\"addUserResetDurationUsed\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[8],[0,\\\"\\\\n              \\\"],[7,\\\"option\\\",true],[10,\\\"value\\\",\\\"UTC_MONTH\\\"],[11,\\\"selected\\\",[28,\\\"equal\\\",[\\\"UTC_MONTH\\\",[24,[\\\"addUserResetDurationUsed\\\"]]],null]],[8],[0,\\\"Monthly\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"option\\\",true],[10,\\\"value\\\",\\\"NEVER\\\"],[11,\\\"selected\\\",[28,\\\"equal\\\",[\\\"NEVER\\\",[24,[\\\"addUserResetDurationUsed\\\"]]],null]],[8],[0,\\\"Total\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"addingUser\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"addUserToBusinessAccount\\\"]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"if\\\",[[24,[\\\"addingUser\\\"]],\\\"Adding user... \\\",\\\"Add User\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"users\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Delete Business User By User ID\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"User ID\\\",[24,[\\\"deleteUserID\\\"]],[28,\\\"route-action\\\",[\\\"deleteUserFromBusinessAccount\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"deleteUserFromBusinessAccount\\\"]],[8],[0,\\\"Delete User\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"primary\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"User ID\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Name\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Status\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Minutes Used\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Minutes Allowed\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"End Date\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ASL account\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"primary\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\"],[[28,\\\"route-action\\\",[\\\"selectUserAccount\\\",[23,3,[\\\"accountId\\\"]],[23,3,[\\\"userId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"userId\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"firstName\\\"]],false],[0,\\\" \\\"],[1,[23,3,[\\\"lastName\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"userType\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"status\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"duration-used\\\",[[23,3,[]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"duration-allowed\\\",[[23,3,[]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"effectiveTo\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"asl\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"users\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\"],[[28,\\\"route-action\\\",[\\\"selectUserAccount\\\",[23,2,[\\\"accountId\\\"]],[23,2,[\\\"userId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"userId\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"firstName\\\"]],false],[0,\\\" \\\"],[1,[23,2,[\\\"lastName\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"userType\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"status\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"duration-used\\\",[[23,2,[]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"noop\\\"],[[\\\"bubbles\\\"],[false]]],[8],[0,\\\" \\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"aria-label\\\",\\\"autofocus\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control-sm\\\",\\\"number\\\",\\\"Minutes allowed\\\",true,[23,2,[\\\"editDurationAllowed\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"saveDurationAllowed\\\",[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"select\\\",true],[10,\\\"aria-label\\\",\\\"Reset minutes\\\"],[10,\\\"class\\\",\\\"form-control-sm\\\"],[11,\\\"onchange\\\",[28,\\\"action\\\",[[23,0,[]],[28,\\\"mut\\\",[[23,2,[\\\"editResetDurationUsed\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t          \\\"],[7,\\\"option\\\",true],[10,\\\"value\\\",\\\"UTC_MONTH\\\"],[11,\\\"selected\\\",[28,\\\"equal\\\",[\\\"UTC_MONTH\\\",[23,2,[\\\"editResetDurationUsed\\\"]]],null]],[8],[0,\\\"Monthly\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t          \\\"],[7,\\\"option\\\",true],[10,\\\"value\\\",\\\"NEVER\\\"],[11,\\\"selected\\\",[28,\\\"equal\\\",[\\\"NEVER\\\",[23,2,[\\\"editResetDurationUsed\\\"]]],null]],[8],[0,\\\"Total\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-success btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"saveDurationAllowed\\\",[23,2,[]]]],[8],[0,\\\"Save\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancelEditDurationAllowed\\\",[23,2,[]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t        \\\"],[1,[28,\\\"duration-allowed\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[12,\\\"title\\\",\\\"Edit\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"editDurationAllowed\\\",[23,2,[]]]],[8],[0,\\\"\\\\n\\\\t\\\\t          \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-pencil\\\"],[10,\\\"style\\\",\\\"font-size: 13px\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t    \\\"],[9],[0,\\\"\\\\n\\\\t\\\\t    \\\"],[7,\\\"td\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"noop\\\"],[[\\\"bubbles\\\"],[false]]],[8],[0,\\\" \\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isEditingEndDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"aria-label\\\",\\\"autofocus\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control-sm\\\",\\\"date\\\",\\\"End Date\\\",true,[23,2,[\\\"editEndDate\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"saveEndDate\\\",[23,2,[]]],null]]]],false],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-success btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"saveEndDate\\\",[23,2,[]]]],[8],[0,\\\"Save\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancelEndDate\\\",[23,2,[]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"editEndDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"removeEndDate\\\",[23,2,[]]]],[8],[0,\\\"Remove end date\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t        \\\"],[1,[28,\\\"min-effective-to\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[12,\\\"title\\\",\\\"Edit\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"editEndDate\\\",[23,2,[]]]],[8],[0,\\\"\\\\n\\\\t\\\\t          \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-pencil\\\"],[10,\\\"style\\\",\\\"font-size: 13px\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t    \\\"],[9],[0,\\\"\\\\n         \\\"],[7,\\\"td\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"noop\\\"],[[\\\"bubbles\\\"],[false]]],[8],[0,\\\" \\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isEditingASL\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"type\\\",\\\"aria-label\\\",\\\"checked\\\"],[\\\"editLinkedASL\\\",\\\"form-control-sm\\\",\\\"checkbox\\\",\\\"ASL account\\\",[24,[\\\"editASL\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-success btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"saveASL\\\",[23,2,[]]]],[8],[0,\\\"Save\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancelASL\\\",[23,2,[]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t        \\\"],[1,[23,2,[\\\"asl\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[12,\\\"title\\\",\\\"Edit\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"editASL\\\",[23,2,[]]]],[8],[0,\\\"\\\\n\\\\t\\\\t          \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-pencil\\\"],[10,\\\"style\\\",\\\"font-size: 13px\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[7,\\\"p\\\",true],[8],[0,\\\"This account does not have any associated users. This should never be the case, please contact a developer to resolve this\\\\n\\\\tissue.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"individualAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Invite Secondary User By Email\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-8\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control\\\",\\\"Invitee Email\\\",[24,[\\\"inviteUserEmail\\\"]],[28,\\\"route-action\\\",[\\\"inviteSecondaryUser\\\"],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"inviteSecondaryUser\\\"]],[8],[0,\\\"Invite User\\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Delete Secondary User By User ID\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-8\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control\\\",\\\"User ID\\\",[24,[\\\"deleteSecondaryUserID\\\"]],[28,\\\"route-action\\\",[\\\"deleteSecondaryUser\\\"],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"deleteSecondaryUser\\\"]],[8],[0,\\\"Delete User\\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invites\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Invitee\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Has Aira Account\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Inviter ID\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Inviter Name\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n        \\\"],[4,\\\"each\\\",[[24,[\\\"invites\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectUserInvite\\\",[23,1,[\\\"invitee\\\"]]],null],[28,\\\"equal\\\",[[24,[\\\"inviteeActiveId\\\"]],[23,1,[\\\"invitee\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"invitee\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"hasAiraAccount\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"invitedBy\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"invitedByFirstName\\\"]],false],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Delete Secondary User Invitation By Email\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-8\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control\\\",\\\"Invitee Email\\\",[24,[\\\"deleteInviteUserEmail\\\"]],[28,\\\"route-action\\\",[\\\"deleteInviteSecondaryUser\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"deleteInviteSecondaryUser\\\"]],[8],[0,\\\"Delete Invitation\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/account/users/template.hbs\" } });\n});","define('aira-mgmt/accounts/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    queryParams: ['type', 'q'],\n\n    // Binds search input to query param\n    q: null,\n    type: \"\",\n    search: null,\n    searchType: \"\",\n\n    propertyOptions: [{ text: 'Individual Account', id: 'INDIVIDUAL' }, { text: 'Business Account', id: 'BUSINESS' }, { text: 'Reseller Account', id: 'RESELLER' }],\n\n    actions: {\n      selectAccountType: function selectAccountType(accountType) {\n        this.set(\"accountType\", accountType);\n        console.log(this.get(\"accountType\"));\n      }\n    }\n  });\n});","define('aira-mgmt/accounts/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define(\"aira-mgmt/accounts/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"5xCDSSpu\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"simple-panel\\\",null,[[\\\"title\\\"],[\\\"Account Details\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center tex-muted\\\"],[8],[0,\\\"Search and select an account on the left.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/index/template.hbs\" } });\n});","define(\"aira-mgmt/accounts/new/controller\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    gender: null,\n\n    errorMessage: null,\n\n    acceptBusinessUsers: true,\n\n    genders: [{ text: \"Male\", id: \"Male\" }, { text: \"Female\", id: \"Female\" }, { text: \"Gender Fluid\", id: \"Gender Fluid\" }, { text: \"Not Disclosed\", id: \"Not Disclosed\" }],\n\n    actions: {\n      genderSelection: function genderSelection(selected) {\n        this.set('gender', selected);\n      }\n    }\n  });\n});","define('aira-mgmt/accounts/new/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n    },\n\n\n    actions: {\n      addAccountCancel: function addAccountCancel() {\n        this.transitionTo('accounts');\n      },\n      addAccount: function addAccount() {\n        var _this = this;\n\n        //check valid inputs\n        var dataIsGood = true;\n        var errorMessage = [];\n\n        if (this.get('controller.accountName') === '' || this.get('controller.accountName') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing account name');\n        }\n        if (this.get('controller.firstName') === '' || this.get('controller.firstName') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing first name');\n        }\n        if (this.get('controller.lastName') === '' || this.get('controller.lastName') === undefined) {\n          dataIsGood = false;\n          errorMessage.push('Missing last name');\n        }\n        if (this.get('controller.gender') === '' || this.get('controller.gender') === null) {\n          dataIsGood = false;\n          errorMessage.push('Missing gender selection');\n        }\n        if (this.get('controller.email') === '' || this.get('controller.email') === undefined || !this.get('controller.email').includes('@')) {\n          dataIsGood = false;\n          errorMessage.push('Missing email or correct @ email address');\n        }\n\n        if (dataIsGood) {\n          this.get('platform').doPost('order/business', {\n            account: {\n              name: this.get('controller.accountName'),\n              firstname: this.get('controller.firstName'),\n              lastname: this.get('controller.lastName'),\n              acceptBusinessUsers: this.get('controller.acceptBusinessUsers'),\n              gender: this.get('controller.gender'),\n              email: this.get('controller.email')\n            },\n            paymentInfo: {\n              type: \"manual\"\n            },\n            orderlines: [{\n              productCode: \"site_access_service\",\n              quantity: 1,\n              productType: \"primary\"\n            }, {\n              productCode: \"sa_brick_2500\",\n              quantity: 1,\n              productType: \"fixed\"\n            }],\n            operatingCountry: \"US\"\n          }).then(function () {\n            console.log('new account submitted');\n            _this.get('notify').success('Account created!');\n            _this.transitionTo('accounts');\n          }, function (error) {\n            _this.send('error', error.errorMessage);\n          });\n          this.set('controller.errorMessage', null);\n        } else {\n          this.set('controller.errorMessage', errorMessage);\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"5Ns5+ZDH\", \"block\": \"{\\\"symbols\\\":[\\\"err\\\"],\\\"statements\\\":[[4,\\\"simple-panel\\\",null,[[\\\"title\\\"],[\\\"Create New Account Here\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"form\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Account Information\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-lg-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"addAccount\\\"],[8],[0,\\\"Account Name\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"addAccount\\\",\\\"text\\\",\\\"form-control\\\",\\\"Account name\\\",[24,[\\\"accountName\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Name of the new account. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Primary Account Holder Information\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-lg-6\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"addPrimaryFirstName\\\"],[8],[0,\\\"First Name\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"addPrimaryFirstName\\\",\\\"text\\\",\\\"form-control\\\",\\\"First Name\\\",[24,[\\\"firstName\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"First name of primary account holder. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-lg-6\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"addPrimaryLastName\\\"],[8],[0,\\\"Last Name\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"addPrimaryLastName\\\",\\\"text\\\",\\\"form-control\\\",\\\"Last Name\\\",[24,[\\\"lastName\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Last name of primary account holder. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"col\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-lg-4\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"addPrimaryGender\\\"],[8],[0,\\\"Gender\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"id\\\",\\\"options\\\",\\\"onSelect\\\"],[\\\"addPrimaryGender\\\",[24,[\\\"genders\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"genderSelection\\\"],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Gender of primary account holder. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-lg-8\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"addPrimaryEmail\\\"],[8],[0,\\\"Email Address\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"addPrimaryEmail\\\",\\\"text\\\",\\\"form-control\\\",\\\"Email Address\\\",[24,[\\\"email\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Email of primary account holder. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-lg-12\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"addAcceptBusinessUsers\\\",\\\"checkbox\\\",[24,[\\\"acceptBusinessUsers\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"addAcceptBusinessUsers\\\"],[8],[0,\\\"Accept Business Users\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether to accept business users.\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[24,[\\\"errorMessage\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered col-lg-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"addAccountCancel\\\"],null]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"addAccount\\\"],null]]],[8],[0,\\\"Add Account\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/new/template.hbs\" } });\n});","define('aira-mgmt/accounts/route', ['exports', 'ember-simple-auth/mixins/authenticated-route-mixin'], function (exports, _authenticatedRouteMixin) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n\n    queryParams: {\n      q: { refreshModel: true },\n      type: { refreshModel: true }\n    },\n\n    state: Ember.inject.service(),\n    notify: Ember.inject.service(),\n    platform: Ember.inject.service(),\n\n    model: function model(params) {\n      var _this = this;\n\n      console.log(params);\n      if (params.q && params.type) {\n        return Ember.RSVP.hash({\n          account: new Ember.RSVP.Promise(function (resolve, reject) {\n            _this.get('platform').doGet('search/account?type=' + encodeURIComponent(params.type) + '&q=' + encodeURIComponent(params.q)).then(function (response) {\n              resolve(response.users);\n            }, function (_ref) {\n              var errorCode = _ref.errorCode,\n                  errorMessage = _ref.errorMessage;\n\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n              return [];\n            });\n          })\n        });\n      } else {\n        return [];\n      }\n    },\n    afterModel: function afterModel(accounts) {\n      if (accounts.account) {\n        this.set('state.ariaLive', accounts.account.length + ' results.');\n      }\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('users', this.get('users'));\n      controller.set('search', controller.get('q'));\n      controller.set('accountType', \"\");\n      if (controller.get('q') !== null && model.length < 1) {\n        this.get('notify').error('No Account was found');\n      }\n    },\n\n\n    actions: {\n      addNewAccount: function addNewAccount() {\n        console.log('add new account pressed');\n        this.transitionTo('accounts.new');\n      },\n      loading: function loading(transition) {\n        var controller = this.get('controller');\n        if (controller) {\n          controller.set('isSearching', true);\n          transition.promise.finally(function () {\n            controller.set('isSearching', false);\n          });\n        }\n      },\n      searchByAccountName: function searchByAccountName() {\n        console.log('search by account name pressed');\n        var searchType = \"ACCOUNT_NAME\";\n        var query = \"?\";\n\n        //Checks if the first name search bar has a non-empty value\n        if (this.get(\"controller.accountName\")) {\n          query = this.get(\"controller.accountName\");\n          //if it has a valid value reassign firstName variable\n        }\n        this.transitionTo('accounts', {\n          queryParams: {\n            q: query,\n            type: searchType\n          }\n        });\n      },\n      searchByAccountCode: function searchByAccountCode() {\n        console.log('search by account code pressed');\n        var searchType = \"ACCOUNT_CODE\";\n        var query = \"?\";\n\n        //Checks if the first name search bar has a non-empty value\n        if (this.get(\"controller.accountCode\")) {\n          query = this.get(\"controller.accountCode\");\n          //if it has a valid value reassign firstName variable\n        }\n\n        this.transitionTo('accounts', {\n          queryParams: {\n            q: query,\n            type: searchType\n          }\n        });\n      },\n      searchByAccountType: function searchByAccountType() {\n        console.log('search by account type pressed');\n        var searchType = \"ACCOUNT_TYPE\";\n        var acctType = this.get('controller').accountType;\n\n        this.transitionTo('accounts', {\n          queryParams: {\n            q: acctType,\n            type: searchType\n          }\n        });\n      },\n      searchByAccountID: function searchByAccountID() {\n        console.log('search by account id pressed');\n        var searchType = \"ACCOUNT_ID\";\n        var query = \"?\";\n        if (this.get(\"controller.accountId\")) {\n          query = this.get(\"controller.accountId\");\n          //if it has a valid value reassign firstName variable\n        }\n        this.transitionTo('accounts', {\n          queryParams: {\n            q: query,\n            type: searchType\n          }\n        });\n      },\n      searchByAccountSiteName: function searchByAccountSiteName() {\n\n        var accountSiteNameQuery = this.get(\"controller.accountSiteName\");\n        console.log('search by account site name pressed, account site name query: ' + accountSiteNameQuery);\n        if (accountSiteNameQuery) {\n          this.transitionTo('accounts', {\n            queryParams: {\n              q: accountSiteNameQuery,\n              type: \"ACCOUNT_SITE_NAME\"\n            }\n          });\n        }\n      },\n      searchByAccountSiteAddress: function searchByAccountSiteAddress() {\n\n        var accountSiteAddressQuery = this.get(\"controller.accountSiteAddress\");\n        console.log('search by account site address pressed, account site address query: ' + accountSiteAddressQuery);\n        if (accountSiteAddressQuery) {\n          this.transitionTo('accounts', {\n            queryParams: {\n              q: accountSiteAddressQuery,\n              type: \"ACCOUNT_SITE_ADDRESS\"\n            }\n          });\n        }\n      },\n      select: function select(account) {\n        this.controller.set('activeId', account.accountId);\n        try {\n          var activeTab = this.controllerFor('accounts.account').get('activeTab');\n          // Don't pass whole model because it's currently incomplete.\n          // This will trigger a call to the api that fetches the whole model\n          this.transitionTo('accounts.account.' + activeTab, account.accountId);\n        } catch (e) {\n          // Just means no user had been selected yet so there's\n          // no controller initialized so there's no activeTab to maintain.\n          // Don't pass whole model because it's currently incomplete.\n          // This will trigger a call to the api that fetches the whole model\n          console.log(\"Trying to go to accounts but caught something \", e);\n          this.transitionTo('accounts.account', account.accountId);\n        }\n      },\n\n\n      /**\n       *\n       * @param {String} searchType\n       * This method takes a string when it's called by one of the toolbar buttons\n       * That String will denote which search bars we want to display\n       */\n      displaySearch: function displaySearch(searchType) {\n        var setOfSearchDisplays = new Set();\n        setOfSearchDisplays.add(document.getElementById(\"searchAccountNames\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByAccountID\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByAccountCode\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByAccountType\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByAccountSiteName\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByAccountSiteAddress\"));\n\n        var _iteratorNormalCompletion = true;\n        var _didIteratorError = false;\n        var _iteratorError = undefined;\n\n        try {\n          for (var _iterator = setOfSearchDisplays[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n            var searchDisplay = _step.value;\n\n            if (searchType === searchDisplay.id) {\n              searchDisplay.style.display = \"block\";\n            } else {\n              searchDisplay.style.display = \"none\";\n            }\n          }\n        } catch (err) {\n          _didIteratorError = true;\n          _iteratorError = err;\n        } finally {\n          try {\n            if (!_iteratorNormalCompletion && _iterator.return) {\n              _iterator.return();\n            }\n          } finally {\n            if (_didIteratorError) {\n              throw _iteratorError;\n            }\n          }\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/accounts/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"c2wviZkU\", \"block\": \"{\\\"symbols\\\":[\\\"account\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[10,\\\"aria-labelledby\\\",\\\"leftTitle\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-heading\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h5\\\",true],[10,\\\"id\\\",\\\"leftTitle\\\"],[10,\\\"class\\\",\\\"panel-title\\\"],[8],[0,\\\"Search All Accounts\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right pr-20\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"addNewAccount\\\"],null]]],[8],[0,\\\"Add Account\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[2,\\\"Add toolbar here for different searches \\\"],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"container col-xs-12\\\"],[10,\\\"style\\\",\\\"width: 100%; height: 100%; border: 1px solid black;\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabbable\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"nav nav-tabs nav-tabs-highlight row nav-tabs-top  \\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Name\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"searchAccountNames\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"accounts\\\"]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-user position-left\\\"],[8],[9],[0,\\\" Account Name\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Code\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"searchByAccountCode\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"accounts\\\"]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-barcode2 position-left\\\"],[8],[9],[0,\\\" Account Code\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Type\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"searchByAccountType\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"accounts\\\"]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-question7 position-left\\\"],[8],[9],[0,\\\" Account Type\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Id\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"searchByAccountID\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"accounts\\\"]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-info3 position-left\\\"],[8],[9],[0,\\\" Account ID\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"AccountSiteName\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"searchByAccountSiteName\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"accounts\\\"]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-office position-left\\\"],[8],[9],[0,\\\" Account Site Name\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"AccountSiteAddress\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"searchByAccountSiteAddress\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"accounts\\\"]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-envelop position-left\\\"],[8],[9],[0,\\\" Account Site Address\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: block\\\"],[10,\\\"id\\\",\\\"searchAccountNames\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Only accounts with the exact account name will be displayed\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Account Name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formFirstName\\\",\\\"text\\\",\\\"Search By Account Name\\\",\\\"Search By Account Name\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"accountName\\\"]],\\\"searchByAccountName\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByAccountName\\\"]],[8],[0,\\\"Search\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByAccountCode\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Must search with exact account code\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Account Code\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formUserId\\\",\\\"text\\\",\\\"Search By Account Code\\\",\\\"Search By Account Code\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"accountCode\\\"]],\\\"searchByAccountCode\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByAccountCode\\\"]],[8],[0,\\\"Search\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByAccountType\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Displays a list of accounts with the selected account type\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Account Type\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"label\\\",\\\"options\\\",\\\"onSelect\\\"],[\\\"Account Type\\\",[24,[\\\"propertyOptions\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectAccountType\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByAccountType\\\"]],[8],[0,\\\"Search\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByAccountID\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Must search with exact Account ID\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Account ID\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formAccountID\\\",\\\"text\\\",\\\"Search By Account Id\\\",\\\"Search By Account ID\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"accountId\\\"]],\\\"searchByAccountID\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByAccountID\\\"]],[8],[0,\\\"Search\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByAccountSiteName\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"The search is case-insensitive. Account site name can be exact or only part of the account site name (e.g. 'wal' instead of 'Walmart'). At the most 25 results are displayed.\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Account Site Name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formAccountSiteName\\\",\\\"text\\\",\\\"Search By Account Site Name\\\",\\\"Search By Account Site Name\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"accountSiteName\\\"]],\\\"searchByAccountSiteName\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByAccountSiteName\\\"]],[8],[0,\\\"\\\\n                    Search\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByAccountSiteAddress\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"The search is case-insensitive. Account site address can be exact or only part of the account site address (e.g. 'jack' instead of 'Jacksonville'). The address field one, two, city, and zip code is searched. At the most 25 results are displayed.\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Account Site Address\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formAccountSiteAddress\\\",\\\"text\\\",\\\"Search By Account Site Address\\\",\\\"Search By Account Site Address\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"accountSiteAddress\\\"]],\\\"searchByAccountSiteAddress\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByAccountSiteAddress\\\"]],[8],[0,\\\"\\\\n                    Search\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSearching\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Searching...\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ID\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Name\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Code\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n            \\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"account\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"select\\\",[23,1,[]]],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,1,[\\\"accountId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"accountId\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"accountCode\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"accountType\\\"]],false],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"No Results.\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"col-md-7\\\"],[10,\\\"aria-labelledby\\\",\\\"rightTitle\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/accounts/template.hbs\" } });\n});","define('aira-mgmt/adapters/app', ['exports', 'aira-mgmt/adapters/application'], function (exports, _application) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _application.default.extend({\n\n\t\tplatform: Ember.inject.service(),\n\n\t\tquery: function query(store, type, _query) {\n\t\t\tvar url = 'app/version?requestSource=' + _query.filter.requestSource;\n\t\t\treturn this.platform.doGet(url);\n\t\t},\n\t\turlForQuery: function urlForQuery() {\n\t\t\treturn [this.host, this.namespace, 'app', 'version'].join('/');\n\t\t},\n\t\turlForUpdateRecord: function urlForUpdateRecord() {\n\t\t\treturn [this.host, this.namespace, 'app', 'version'].join('/');\n\t\t}\n\t});\n});","define('aira-mgmt/adapters/application', ['exports', 'ember-simple-auth/mixins/data-adapter-mixin', 'aira-mgmt/config/environment', 'ember-data'], function (exports, _dataAdapterMixin, _environment, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.RESTAdapter.extend(_dataAdapterMixin.default, {\n\n\t\tauthorizer: 'authorizer:platform',\n\n\t\thost: _environment.default.APP.host,\n\t\tnamespace: _environment.default.APP.namespace,\n\n\t\tsession: Ember.inject.service('session'),\n\n\t\tplatform: Ember.inject.service(),\n\n\t\t/**\n   * This function is a volatile() computed property,\n   * meaning that its value is recomputed with each\n   * API call.\n   */\n\t\theaders: Ember.computed(function () {\n\t\t\tvar headers = {\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t\t'Accept': 'application/json',\n\t\t\t\t'X-API-Key': _environment.default.APP.X_API_Key,\n\t\t\t\t'X-Aira-Token': this.get('session.data.authenticated.token'),\n\t\t\t\t'X-User-Id': this.get('session.data.authenticated.id'),\n\t\t\t\t'X-Client-Id': _environment.default.APP.X_Client_Id,\n\t\t\t\t'X-Trace-Id': this._generateId()\n\t\t\t};\n\n\t\t\treturn headers;\n\t\t}).volatile(),\n\n\t\t_encodeUrl: function _encodeUrl(login) {\n\t\t\treturn encodeURIComponent(login);\n\t\t},\n\t\t_generateId: function _generateId() {\n\t\t\t// Large number without leading zeroes\n\t\t\treturn Math.floor(100000000 + Math.random() * 900000000);\n\t\t},\n\n\n\t\t/**\n   * Replaced default to allow adhoc headers via ajax() options\n    **/\n\t\tajaxOptions: function ajaxOptions(url) {\n\t\t\tvar hash = this._super.apply(this, arguments);\n\n\t\t\tvar headersField = Ember.get(this, 'headers');\n\t\t\tif (headersField !== undefined && !Ember.isNone(hash.headers)) {\n\t\t\t\tvar headers = {};\n\t\t\t\tEmber.merge(headers, headersField);\n\t\t\t\tEmber.merge(headers, hash.headers);\n\t\t\t\thash.beforeSend = function (xhr) {\n\t\t\t\t\tObject.keys(headers).forEach(function (key) {\n\t\t\t\t\t\treturn xhr.setRequestHeader(key, headers[key]);\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn hash;\n\t\t},\n\n\n\t\t/**\n   * Replaced default which used PATCH\n    **/\n\t\tupdateRecord: function updateRecord(store, type, snapshot) {\n\t\t\tvar data = {};\n\t\t\tvar serializer = store.serializerFor(type.modelName);\n\n\t\t\tserializer.serializeIntoHash(data, type, snapshot, { includeId: true });\n\n\t\t\tvar id = snapshot.id;\n\t\t\tvar url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n\n\t\t\t// return this.ajax(url, 'PUT', { data: data });\n\t\t\treturn this.platform.doPutRawUrl(url, data);\n\t\t}\n\t});\n});","define('aira-mgmt/adapters/service', ['exports', 'aira-mgmt/adapters/application'], function (exports, _application) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _application.default.extend({\n\n    platform: Ember.inject.service(),\n\n    query: function query(store, type, _query) {\n      console.log(_query);\n      var url = 'user/service/history/bu';\n      return this.platform.doGet(url);\n    }\n  });\n});","define('aira-mgmt/adapters/setting', ['exports', 'aira-mgmt/adapters/application'], function (exports, _application) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _application.default.extend({\n\t\turlForFindRecord: function urlForFindRecord(id, modelName, snapshot) {\n\t\t\treturn [this.host, this.namespace, 'mgmt', id, 'settings'].join('/');\n\t\t},\n\t\turlForUpdateRecord: function urlForUpdateRecord(id, modelName, snapshot) {\n\t\t\treturn [this.host, this.namespace, 'mgmt', id, 'settings'].join('/');\n\t\t}\n\t});\n});","define('aira-mgmt/adapters/user', ['exports', 'aira-mgmt/adapters/application'], function (exports, _application) {\n\t\t'use strict';\n\n\t\tObject.defineProperty(exports, \"__esModule\", {\n\t\t\t\tvalue: true\n\t\t});\n\t\texports.default = _application.default.extend({\n\n\t\t\t\tplatform: Ember.inject.service(),\n\n\t\t\t\tquery: function query(store, type, _query) {\n\t\t\t\t\t\tvar wrappedQuery = _query.filter.search.trim();\n\t\t\t\t\t\tvar searchType = _query.filter.type;\n\t\t\t\t\t\tvar url = 'search?e=U&type=' + searchType + '&q=' + wrappedQuery;\n\t\t\t\t\t\treturn this.platform.doGet(url);\n\t\t\t\t},\n\t\t\t\tqueryRecord: function queryRecord(store, type, query) {\n\t\t\t\t\t\tvar url = 'user?login=' + query.filter.login;\n\t\t\t\t\t\treturn this.platform.doGet(url);\n\t\t\t\t}\n\t\t});\n});","define('aira-mgmt/adapters/wifi', ['exports', 'aira-mgmt/adapters/application'], function (exports, _application) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _application.default.extend({\n\t\tquery: function query(store, type, _query) {\n\t\t\tvar url = [this.host, this.namespace, 'user', 'wifiprofile'].join('/');\n\t\t\treturn this.ajax(url, 'GET', { data: { userId: _query.filter.userId } });\n\t\t},\n\t\tqueryRecord: function queryRecord(store, type, query) {\n\t\t\tthrow 'cannot query single wifi profile';\n\t\t},\n\t\tcreateRecord: function createRecord(store, type, snapshot) {\n\t\t\tvar url = [this.host, this.namespace, 'user', 'wifiprofile'].join('/');\n\t\t\tvar data = this.serialize(snapshot, { includeId: true });\n\t\t\treturn this.ajax(url, 'POST', { data: data });\n\t\t},\n\t\tupdateRecord: function updateRecord(store, type, snapshot) {\n\t\t\tvar url = [this.host, this.namespace, 'user', 'wifiprofile'].join('/');\n\t\t\tvar data = this.serialize(snapshot, { includeId: true });\n\t\t\treturn this.ajax(url, 'PUT', { data: data });\n\t\t},\n\t\tdeleteRecord: function deleteRecord(store, type, snapshot) {\n\t\t\tvar url = [this.host, this.namespace, 'user', 'wifiprofile'].join('/');\n\t\t\turl = [url, '?userId=', this._encodeUrl(snapshot.record.get('userId')), '&id=', snapshot.id].join('');\n\t\t\treturn this.ajax(url, 'DELETE');\n\t\t}\n\t});\n});","define('aira-mgmt/app', ['exports', 'aira-mgmt/resolver', 'ember-inflector', 'ember-load-initializers', 'aira-mgmt/config/environment', 'aira-mgmt/sentry'], function (exports, _resolver, _emberInflector, _emberLoadInitializers, _environment, _sentry) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  var inflector = _emberInflector.default.inflector;\n\n  inflector.uncountable('user');\n  inflector.uncountable('contact');\n  inflector.uncountable('address');\n\n  (0, _sentry.startSentry)();\n\n  var App = Ember.Application.extend({\n    modulePrefix: _environment.default.modulePrefix,\n    podModulePrefix: _environment.default.podModulePrefix,\n    Resolver: _resolver.default\n  });\n\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n\n  exports.default = App;\n});","define('aira-mgmt/apps/app/controller', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Controller.extend({\n\n\t\tnotify: Ember.inject.service(),\n\n\t\tactionOptions: [{ id: 'upsert', text: 'upsert' }, { id: 'forceUpsert', text: 'forceUpsert' }, { id: 'delete', text: 'delete' }],\n\n\t\tchangeset: null,\n\n\t\tactions: {\n\t\t\tselectAction: function selectAction(action) {\n\t\t\t\tthis.changeset.set('action', action);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.changeset.rollback();\n\t\t\t\tthis.transitionToRoute('apps');\n\t\t\t},\n\t\t\tsave: function save() {\n\t\t\t\tvar _this = this;\n\n\t\t\t\treturn this.changeset.save().then(function () {\n\t\t\t\t\t_this.get('notify').success('App Version was updated.');\n\t\t\t\t\t_this.transitionToRoute('apps');\n\t\t\t\t}, function (error) {\n\t\t\t\t\t_this.send('error', error);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n});","define('aira-mgmt/apps/app/route', ['exports', 'ember-changeset'], function (exports, _emberChangeset) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\t\tmodel: function model(p) {\n\t\t\t// Since our parent route always fetches the records, we know it will be there\n\t\t\t// on hard-refresh. Normally model is passed in transitionTo\n\t\t\treturn this.get('store').peekRecord('app', p.app_id);\n\t\t},\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\tcontroller.set('changeset', new _emberChangeset.default(model));\n\t\t\tthis.controllerFor('apps').set('activeId', model.get('id'));\n\t\t},\n\n\n\t\tactions: {\n\t\t\twillTransition: function willTransition(transition) {\n\t\t\t\tif (this.controller.get('changeset.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n\t\t\t\t\ttransition.abort();\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.controllerFor('apps').set('activeId', -1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/apps/app/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"eyrnK/+J\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[0,\\\"Edit App Version\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"App ID\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"App ID\\\",[24,[\\\"changeset\\\",\\\"appId\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Version\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Version\\\",true,[24,[\\\"changeset\\\",\\\"version\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Device\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Device\\\",[24,[\\\"changeset\\\",\\\"device\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Type\\\",[24,[\\\"changeset\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Action\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"actionOptions\\\"]],[24,[\\\"changeset\\\",\\\"action\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectAction\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save App \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/apps/app/template.hbs\" } });\n});","define('aira-mgmt/apps/route', ['exports', 'ember-simple-auth/mixins/authenticated-route-mixin'], function (exports, _authenticatedRouteMixin) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n\t\tmodel: function model() {\n\t\t\treturn this.get('store').query('app', { filter: { 'requestSource': 'ALL' } });\n\t\t},\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\tcontroller.set('activeId', -1);\n\t\t},\n\n\n\t\tactions: {\n\t\t\tselectApp: function selectApp(app) {\n\t\t\t\tthis.transitionTo('apps.app', app);\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/apps/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"lYjodhj1\", \"block\": \"{\\\"symbols\\\":[\\\"app\\\"],\\\"statements\\\":[[2,\\\" Grid \\\"],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-10\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"simple-panel\\\",null,[[\\\"title\\\"],[\\\"App Versions\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"App ID\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Version\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Device\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Action\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"URL\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"Size\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectApp\\\",[23,1,[]]],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"appId\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"version\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"device\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"type\\\"]],false],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"action\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[23,1,[\\\"url\\\"]]]]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"Open S3 url\\\"],[9],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"size\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/apps/template.hbs\" } });\n});","define('aira-mgmt/authenticators/firebase', ['exports', 'ember-simple-auth/authenticators/base', 'aira-mgmt/config/environment'], function (exports, _base, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _base.default.extend({\n    firebase: Ember.inject.service(),\n    notify: Ember.inject.service(),\n\n    /**\n     * Restores the session from a session data object. This method is invoked by\n     * the session either on application startup if session data is restored from\n     * the session store or when properties in the store change due to external\n     * events (e.g. in another tab) and the new session data needs to be validated\n     * for whether it constitutes an authenticated session.\n     *\n     * This method returns a promise. A resolving promise results in the session\n     * becoming or remaining authenticated. Any data the promise resolves with\n     * will be saved in and accessible via the session service's\n     * `data.authenticated` property. A rejecting promise indicates that `data`\n     * does not constitute a valid session and will result in the session being\n     * invalidated or remaining unauthenticated.\n     *\n     * See {@link https://ember-simple-auth.com/api/BaseAuthenticator.html#.restore}\n     *\n     * @param data The data to restore the session from.\n     * @returns {Promise} A promise that when it resolves results in the session\n     *          becoming or remaining authenticated.\n     */\n    restore: function restore(data) {\n      var _this = this;\n\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        _this._validateToken(data.id, data.token).then(function (loginResponse) {\n          return _this.get('firebase').loginWithCustomToken(loginResponse.firebaseCustomToken);\n        }).then(function () {\n          return resolve(data);\n        }).catch(function (error) {\n          return reject(error);\n        });\n      });\n    },\n\n\n    /**\n     * Authenticates the session.\n     *\n     * This is called by the `login` route. If the Firebase Authentication sign-in\n     * redirect was successful, this will use the Firebase ID token to log in and\n     * get an Aira token.\n     *\n     * See {@link https://ember-simple-auth.com/api/BaseAuthenticator.html#.authenticate}\n     *\n     * @returns {Promise} A promise that when it resolves results in the session\n     *          becoming authenticated.\n     */\n    authenticate: function authenticate() {\n      var _this2 = this;\n\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        _this2.get('firebase').handleAuthentication().then(function (userCredential) {\n          if (userCredential == null) {\n            return reject();\n          }\n          return userCredential.user.getIdToken().then(function (idToken) {\n            return _this2._login(userCredential.user.email, idToken);\n          }).then(function (loginResponse) {\n            return _this2.get('firebase').loginWithCustomToken(loginResponse.firebaseCustomToken).then(function () {\n              return loginResponse;\n            });\n          }).then(function (loginResponse) {\n            return resolve({\n              id: loginResponse.userid,\n              login: loginResponse.login,\n              token: loginResponse.token\n            });\n          });\n        }).catch(function (error) {\n          _this2.get('notify').error('Login failed: ' + error);\n          return reject();\n        });\n      });\n    },\n\n\n    /**\n     * This method is invoked as a callback when the session is invalidated.\n     *\n     * See {@link https://ember-simple-auth.com/api/BaseAuthenticator.html#.invalidate}\n     *\n     * @returns {Promise} A promise that when it resolves results in the session being invalidated.\n     */\n    invalidate: function invalidate() {\n      var _this3 = this;\n\n      return new Ember.RSVP.Promise(function (resolve) {\n        _this3.get('firebase').logout().then(function () {\n          return resolve();\n        });\n      });\n    },\n\n\n    /**\n     * Validates a token by calling the Platform\n     * {@link https://github.com/aira/platform/blob/753ee3e0e9eb1487d0325290f281b115f73d8abc/core/server/AiraPlatform/src/main/java/io/aira/rest/LoginRestController.java#L70|`/api/user/login/validate-token`}\n     * endpoint.\n     *\n     * @param userId The user ID.\n     * @param token The token to be validated.\n     * @returns {Promise} A promise that when it resolves results in the\n     *          {@link https://github.com/aira/platform/blob/753ee3e0e9eb1487d0325290f281b115f73d8abc/core/server/AiraPlatformManager/src/main/java/io/aira/dto/login/LoginResponse.java|`LoginResponse`}\n     *          from Platform.\n     * @private\n     */\n    _validateToken: function _validateToken(userId, token) {\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        $.ajax(_environment.default.APP.host + '/api/user/login/validate-token', {\n          headers: {\n            'x-aira-token': token,\n            'x-api-key': _environment.default.APP.X_API_Key,\n            'x-client-id': _environment.default.APP.X_Client_Id\n          },\n          method: 'GET',\n          success: function success(data) {\n            if (data.userId === userId) {\n              resolve(data);\n            } else {\n              // We have somebody else's token.\n              reject();\n            }\n          },\n          error: function error(jqXHR) {\n            reject(jqXHR);\n          }\n        });\n      });\n    },\n\n\n    /**\n     * Logs in the user by calling the Platform\n     * {@link https://github.com/aira/platform/blob/753ee3e0e9eb1487d0325290f281b115f73d8abc/core/server/AiraPlatform/src/main/java/io/aira/rest/LoginRestController.java#L55|`/api/user/login`}\n     * endpoint.\n     *\n     * @param login The email address.\n     * @param password The Firebase ID token.\n     * @returns {Promise} A promise that when it resolves results in the\n     *          {@link https://github.com/aira/platform/blob/753ee3e0e9eb1487d0325290f281b115f73d8abc/core/server/AiraPlatformManager/src/main/java/io/aira/dto/login/LoginResponse.java|`LoginResponse`}\n     *          from Platform.\n     * @private\n     */\n    _login: function _login(login, password) {\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        $.ajax(_environment.default.APP.host + '/api/user/login', {\n          contentType: 'application/json',\n          headers: {\n            'x-api-key': _environment.default.APP.X_API_Key,\n            'x-client-id': _environment.default.APP.X_Client_Id\n          },\n          method: 'POST',\n          data: JSON.stringify({\n            authProvider: 'FIREBASE',\n            login: login,\n            loginfrom: 'MGMT DASHBOARD',\n            password: password\n          }),\n          success: function success(data) {\n            if (!data.rolePermissions.find(function (rp) {\n              return rp.roleName === 'ADMIN';\n            })) {\n              reject('Insufficient permissions.');\n            } else {\n              resolve(data);\n            }\n          },\n          error: function error(jqXHR) {\n            reject(jqXHR);\n          }\n        });\n      });\n    }\n  });\n});","define('aira-mgmt/authorizers/platform', ['exports', 'ember-simple-auth/authorizers/base', 'aira-mgmt/config/environment'], function (exports, _base, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _base.default.extend({\n    authorize: function authorize(sessionData, block) {\n      block('X-API-Key', _environment.default.APP.X_API_Key);\n      block('X-Aira-Token', sessionData.token);\n      block('X-User-Id', sessionData.id);\n    }\n  });\n});","define('aira-mgmt/components/accessible-multi-select/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    tagName: '',\n\n    // Properties\n    isExpanded: false,\n    activeDescendantId: null,\n    selectedItems: null,\n    activeIndex: -1,\n\n    // Computed Properties\n    optionsWithPosition: Ember.computed('options.[]', function () {\n      var options = this.options || [];\n      return options.map(function (option, index) {\n        return {\n          original: option,\n          text: option.text,\n          position: index + 1,\n          total: options.length\n        };\n      });\n    }),\n\n    ariaLabel: Ember.computed('selectedItems.[]', function () {\n      var selectedItems = this.selectedItems || [];\n      if (selectedItems.length) {\n        var selectedTexts = selectedItems.mapBy('text').join(', ');\n        return 'Selected languages: ' + selectedTexts;\n      }\n      return 'No languages selected';\n    }),\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      this.set('selectedItems', Ember.A(this.selected || []));\n      this._handleOutsideClick = Ember.run.bind(this, this.handleOutsideClick);\n    },\n    didInsertElement: function didInsertElement() {\n      this._super.apply(this, arguments);\n      document.addEventListener('click', this._handleOutsideClick);\n    },\n    willDestroyElement: function willDestroyElement() {\n      this._super.apply(this, arguments);\n      document.removeEventListener('click', this._handleOutsideClick);\n    },\n    handleOutsideClick: function handleOutsideClick(event) {\n      if (this.isExpanded) {\n        var componentElement = document.querySelector('.accessible-multi-select');\n        if (!componentElement.contains(event.target)) {\n          this.set('isExpanded', false);\n          this.set('activeIndex', -1);\n        }\n      }\n    },\n    focusOption: function focusOption(index) {\n      var option = document.querySelector('#option-' + index);\n      if (option) {\n        option.focus();\n      }\n    },\n\n\n    actions: {\n      toggleDropdown: function toggleDropdown() {\n        this.toggleProperty('isExpanded');\n        if (this.isExpanded) {\n          this.set('activeIndex', 0);\n          this.focusOption(0);\n        }\n      },\n      selectOption: function selectOption(wrappedOption, event) {\n        var option = wrappedOption.original || wrappedOption;\n        var selectedItems = this.selectedItems;\n        if (event) {\n          event.preventDefault();\n          event.stopPropagation();\n        }\n\n        if (selectedItems.includes(option)) {\n          selectedItems.removeObject(option);\n        } else {\n          selectedItems.pushObject(option);\n        }\n\n        if (this.onchange) {\n          this.onchange(selectedItems);\n        }\n      },\n      handleKeyDown: function handleKeyDown(event) {\n        var options = this.optionsWithPosition;\n        var activeIndex = this.activeIndex;\n\n        switch (event.key) {\n          case 'Escape':\n            this.set('isExpanded', false);\n            this.set('activeIndex', -1);\n            document.querySelector('.multi-select-control').focus();\n            break;\n\n          case 'Enter':\n            if (!this.isExpanded) {\n              this.set('isExpanded', true);\n              this.focusOption(0);\n            } else if (activeIndex >= 0) {\n              this.send('selectOption', options[activeIndex]);\n            }\n            break;\n\n          case ' ':\n            if (!this.isExpanded) {\n              this.set('isExpanded', true);\n            } else if (activeIndex >= 0) {\n              this.send('selectOption', options[activeIndex]);\n            }\n            break;\n\n          case 'ArrowDown':\n            event.preventDefault();\n            if (!this.isExpanded) {\n              this.set('isExpanded', true);\n              this.set('activeIndex', 0);\n            } else if (activeIndex < options.length - 1) {\n              var newIndex = activeIndex + 1;\n              this.set('activeIndex', newIndex);\n              this.focusOption(newIndex);\n            }\n            break;\n\n          case 'ArrowUp':\n            event.preventDefault();\n            if (!this.isExpanded) {\n              this.set('isExpanded', true);\n              this.set('activeIndex', 0);\n              this.focusOption(0);\n            } else if (activeIndex > 0) {\n              var _newIndex = activeIndex - 1;\n              this.set('activeIndex', _newIndex);\n              this.focusOption(_newIndex);\n            } else if (activeIndex === 0) {\n              this.set('isExpanded', false);\n              this.set('activeIndex', -1);\n              document.querySelector('.multi-select-control').focus();\n            }\n            break;\n\n          case 'Home':\n            if (this.isExpanded && options.length) {\n              this.set('activeIndex', 0);\n            }\n            break;\n\n          case 'End':\n            if (this.isExpanded && options.length) {\n              this.set('activeIndex', options.length - 1);\n            }\n            break;\n\n          case 'Tab':\n            this.set('isExpanded', false);\n            this.set('activeIndex', -1);\n            break;\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/accessible-multi-select/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"+2AYXoRu\", \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"index\\\",\\\"item\\\"],\\\"statements\\\":[[7,\\\"style\\\",true],[8],[0,\\\"\\\\n  .sr-only {\\\\n    position: absolute;\\\\n    width: 1px;\\\\n    height: 1px;\\\\n    padding: 0;\\\\n    margin: -1px;\\\\n    overflow: hidden;\\\\n    clip: rect(0, 0, 0, 0);\\\\n    white-space: nowrap;\\\\n    border: 0;\\\\n  }\\\\n\\\\n  .selected-options {\\\\n    display: flex;\\\\n    flex-wrap: wrap;\\\\n    gap: 0.5rem;\\\\n    padding: 0.25rem;\\\\n  }\\\\n\\\\n  .selected-item {\\\\n    display: inline-flex;\\\\n    align-items: center;\\\\n    background-color: #e9ecef;\\\\n    border-radius: 4px;\\\\n    padding: 0.25rem 0.5rem;\\\\n    font-size: 0.875rem;\\\\n  }\\\\n\\\\n  .remove-item {\\\\n    background: none;\\\\n    border: none;\\\\n    color: #666;\\\\n    margin-left: 0.5rem;\\\\n    padding: 0 0.25rem;\\\\n    cursor: pointer;\\\\n    font-size: 1rem;\\\\n    line-height: 1;\\\\n  }\\\\n\\\\n  .remove-item:hover {\\\\n    color: #dc3545;\\\\n  }\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accessible-multi-select\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"multi-select-control\\\"],[10,\\\"role\\\",\\\"button\\\"],[10,\\\"aria-haspopup\\\",\\\"listbox\\\"],[11,\\\"aria-expanded\\\",[22,\\\"isExpanded\\\"]],[10,\\\"aria-controls\\\",\\\"multi-select-listbox\\\"],[11,\\\"aria-label\\\",[22,\\\"ariaLabel\\\"]],[11,\\\"aria-activedescendant\\\",[28,\\\"if\\\",[[24,[\\\"isExpanded\\\"]],[28,\\\"concat\\\",[\\\"option-\\\",[24,[\\\"activeIndex\\\"]]],null]],null]],[10,\\\"tabindex\\\",\\\"0\\\"],[11,\\\"onclick\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleDropdown\\\"],null]],[11,\\\"onkeydown\\\",[28,\\\"action\\\",[[23,0,[]],\\\"handleKeyDown\\\"],null]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"selected-options\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"selectedItems\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"selectedItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"selected-item\\\"],[8],[1,[23,3,[\\\"text\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"placeholder\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[22,\\\"placeholder\\\"],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dropdown-arrow\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[0,\\\"▼\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"id\\\",\\\"multi-select-listbox\\\"],[10,\\\"class\\\",\\\"options-list\\\"],[10,\\\"role\\\",\\\"listbox\\\"],[10,\\\"aria-multiselectable\\\",\\\"true\\\"],[11,\\\"aria-labelledby\\\",[22,\\\"labelId\\\"]],[11,\\\"aria-describedby\\\",[22,\\\"ariaDescribedBy\\\"]],[10,\\\"tabindex\\\",\\\"-1\\\"],[11,\\\"onkeydown\\\",[28,\\\"action\\\",[[23,0,[]],\\\"handleKeyDown\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"optionsWithPosition\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[29,[\\\"option-\\\",[23,2,[]]]]],[10,\\\"role\\\",\\\"option\\\"],[11,\\\"class\\\",[29,[\\\"option \\\",[28,\\\"if\\\",[[28,\\\"contains\\\",[[23,1,[\\\"original\\\"]],[24,[\\\"selectedItems\\\"]]],null],\\\"selected\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],[24,[\\\"activeIndex\\\"]]],null],\\\"active\\\"],null]]]],[11,\\\"onclick\\\",[28,\\\"action\\\",[[23,0,[]],\\\"selectOption\\\",[23,1,[]]],null]],[11,\\\"aria-selected\\\",[28,\\\"if\\\",[[28,\\\"contains\\\",[[23,1,[\\\"original\\\"]],[24,[\\\"selectedItems\\\"]]],null],\\\"true\\\",\\\"false\\\"],null]],[11,\\\"aria-posinset\\\",[23,1,[\\\"position\\\"]]],[11,\\\"aria-setsize\\\",[23,1,[\\\"total\\\"]]],[10,\\\"tabindex\\\",\\\"-1\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"text\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\" \\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/accessible-multi-select/template.hbs\" } });\n});","define('aira-mgmt/components/account-product-promotion/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n\n    state: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    isPromotion: false,\n\n    product: null,\n\n    actions: {\n      save: function save() {\n        // let updatedProduct = this.get('product');\n        console.log('saved pressed with updatedProduct', updatedProduct);\n        // this.get('platform').doPut(['mgmt','account', 'update'].join('/'), {\n        //   accountId: updatedProduct.accountId,\n        //   businessType: updatedProduct.businessType,\n        //   name: updatedProduct.name,\n        //   acceptBusinessUsers: updatedProduct.acceptBusinessUsers,\n        // }).then(() => {\n        //   this.get('notify').success('Account profile was updated!');\n        // }, (error) => {\n        //   this.send('error', error);\n        // });\n      }\n    }\n\n  });\n});","define(\"aira-mgmt/components/account-product-promotion/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"ZeTVakmD\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Editing \\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"promotion\\\"]]],null,{\\\"statements\\\":[[0,\\\"promotion \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"product \\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[1,[24,[\\\"product\\\",\\\"id\\\"]],false],[0,\\\" will come at a later date!\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Update \\\"],[4,\\\"if\\\",[[24,[\\\"isPromotion\\\"]]],null,{\\\"statements\\\":[[0,\\\"Promotion \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"Product \\\"]],\\\"parameters\\\":[]}],[0,\\\" (Coming Soon)\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/account-product-promotion/template.hbs\" } });\n});","define('aira-mgmt/components/account-profile/component', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Component.extend({\n\n\t\tstate: Ember.inject.service(),\n\n\t\tplatform: Ember.inject.service(),\n\n\t\tnotify: Ember.inject.service(),\n\n\t\tprofile: null,\n\t\tactions: {\n\t\t\tselectAccessAI: function selectAccessAI(allowAccessAI) {\n\t\t\t\tthis.set('profile.accessAi', allowAccessAI);\n\t\t\t},\n\t\t\tsave: function save() {\n\t\t\t\tvar _this = this;\n\n\t\t\t\tvar updatedProfile = this.get('profile');\n\t\t\t\tthis.get('platform').doPut(['mgmt', 'account', 'update'].join('/'), {\n\t\t\t\t\taccountId: updatedProfile.accountId,\n\t\t\t\t\tbusinessType: updatedProfile.businessType,\n\t\t\t\t\tname: updatedProfile.name,\n\t\t\t\t\tacceptBusinessUsers: updatedProfile.acceptBusinessUsers,\n\t\t\t\t\tallowRecording: updatedProfile.allowRecording,\n\t\t\t\t\taccessAi: updatedProfile.accessAi\n\t\t\t\t}).then(function () {\n\t\t\t\t\t_this.get('notify').success('Account profile was updated!');\n\t\t\t\t}, function (error) {\n\t\t\t\t\t_this.send('error', error);\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\taccessAIOptions: [{ text: 'Full Access', id: 'FULL_ACCESS' }, { text: 'No History', id: 'NO_HISTORY' }, { text: 'Block Access', id: 'NO_ACCESS' }]\n\n\t});\n});","define(\"aira-mgmt/components/account-profile/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"5CUY/sNF\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Account ID\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"-\\\",\\\"disabled\\\",[24,[\\\"profile\\\",\\\"accountId\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Account Name\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"-\\\",[24,[\\\"profile\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Account Code\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"-\\\",\\\"disabled\\\",[24,[\\\"profile\\\",\\\"accountCode\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Account Type\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"-\\\",\\\"disabled\\\",[24,[\\\"profile\\\",\\\"accountType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-md-2\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Accepts Business Users\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",\\\"form-control\\\",[24,[\\\"profile\\\",\\\"acceptBusinessUsers\\\"]],[28,\\\"if\\\",[[24,[\\\"profile\\\",\\\"isBusiness\\\"]],\\\"\\\",\\\"disabled\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-md-2\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Allows Recording Users\\\"],[9],[0,\\\"\\\\n          \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"form-control\\\",[24,[\\\"profile\\\",\\\"allowRecording\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Business Type\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"-\\\",[28,\\\"if\\\",[[24,[\\\"profile\\\",\\\"isBusiness\\\"]],\\\"\\\",\\\"disabled\\\"],null],[24,[\\\"profile\\\",\\\"businessType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n       \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Access AI\\\"],[9],[0,\\\"\\\\n       \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"accessAIOptions\\\"]],[24,[\\\"profile\\\",\\\"accessAi\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectAccessAI\\\"],null]]]],false],[0,\\\"\\\\n     \\\"],[9],[0,\\\"\\\\n   \\\"],[9],[0,\\\" \\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Update Profile \\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/account-profile/template.hbs\" } });\n});","define('aira-mgmt/components/basic-dropdown', ['exports', 'ember-basic-dropdown/components/basic-dropdown'], function (exports, _basicDropdown) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _basicDropdown.default;\n    }\n  });\n});","define('aira-mgmt/components/basic-dropdown/content-element', ['exports', 'ember-basic-dropdown/components/basic-dropdown/content-element'], function (exports, _contentElement) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _contentElement.default;\n    }\n  });\n});","define('aira-mgmt/components/basic-dropdown/content', ['exports', 'ember-basic-dropdown/components/basic-dropdown/content'], function (exports, _content) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _content.default;\n    }\n  });\n});","define('aira-mgmt/components/basic-dropdown/trigger', ['exports', 'ember-basic-dropdown/components/basic-dropdown/trigger'], function (exports, _trigger) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _trigger.default;\n    }\n  });\n});","define('aira-mgmt/components/data-input', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.TextField.extend({\n\n\t\tautofocus: false,\n\n\t\tmask: null,\n\n\t\tdidInsertElement: function didInsertElement() {\n\t\t\tif (this.get('autofocus') === true) {\n\t\t\t\tthis.$().focus();\n\t\t\t}\n\n\t\t\tif (this.get('mask') !== null) {\n\t\t\t\tvar mask = this.get('mask');\n\t\t\t\tthis.$().mask(mask, {\n\t\t\t\t\tautoclear: false,\n\t\t\t\t\tplaceholder: ' '\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n});","define('aira-mgmt/components/external-resources/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  function isHttpUrl(link) {\n    try {\n      var parsedLink = new window.URL(link);\n      return parsedLink.protocol === 'http:' || parsedLink.protocol === 'https:';\n    } catch (error) {\n      return false;\n    }\n  }\n\n  exports.default = Ember.Component.extend({\n    platform: Ember.inject.service(),\n    notify: Ember.inject.service(),\n\n    resources: null,\n    isLoading: false,\n    loadError: null,\n    formError: null,\n    isSaving: false,\n    deletingResourceId: null,\n    editingResource: null,\n    draftText: '',\n    draftLink: '',\n\n    didInsertElement: function didInsertElement() {\n      this._super.apply(this, arguments);\n      this.loadResources();\n    },\n    endpoint: function endpoint(resource) {\n      var baseEndpoint = this.get('scope') === 'site' ? 'access/site/' + this.get('parentId') + '/resources' : 'mgmt/account/' + this.get('parentId') + '/resources';\n\n      return resource ? baseEndpoint + '/' + resource.id : baseEndpoint;\n    },\n    loadResources: function loadResources() {\n      var _this = this;\n\n      this.setProperties({ isLoading: true, loadError: null });\n\n      return this.get('platform').doGet(this.endpoint()).then(function (response) {\n        var resources = Array.isArray(response && response.payload) ? response.payload : [];\n        _this.set('resources', resources.map(function (resource) {\n          return Object.assign({}, resource, { isSafeLink: isHttpUrl(resource.link) });\n        }));\n      }, function (_ref) {\n        var errorMessage = _ref.errorMessage;\n\n        var message = errorMessage || 'Unable to load external resources.';\n        _this.set('loadError', message);\n        _this.get('notify').error(message);\n      }).finally(function () {\n        return _this.set('isLoading', false);\n      });\n    },\n    validateDraft: function validateDraft() {\n      var text = (this.get('draftText') || '').trim();\n      var link = (this.get('draftLink') || '').trim();\n\n      if (!text || !link) {\n        return 'Text and link are required.';\n      }\n\n      if (!isHttpUrl(link)) {\n        return 'Link must be an absolute HTTP or HTTPS URL.';\n      }\n\n      return null;\n    },\n    resetForm: function resetForm() {\n      this.setProperties({\n        editingResource: null,\n        draftText: '',\n        draftLink: '',\n        formError: null\n      });\n    },\n\n\n    actions: {\n      retryLoad: function retryLoad() {\n        return this.loadResources();\n      },\n      addResource: function addResource() {\n        this.resetForm();\n        this.set('editingResource', {});\n      },\n      editResource: function editResource(resource) {\n        this.setProperties({\n          editingResource: resource,\n          draftText: resource.text || '',\n          draftLink: resource.link || '',\n          formError: null\n        });\n      },\n      cancelEdit: function cancelEdit() {\n        this.resetForm();\n      },\n      saveResource: function saveResource() {\n        var _this2 = this;\n\n        var validationError = this.validateDraft();\n        if (validationError) {\n          this.set('formError', validationError);\n          return;\n        }\n\n        var resource = this.get('editingResource');\n        var payload = {\n          text: this.get('draftText').trim(),\n          link: this.get('draftLink').trim()\n        };\n        var request = resource.id ? this.get('platform').doPut(this.endpoint(resource), payload) : this.get('platform').doPost(this.endpoint(), payload);\n\n        this.setProperties({ isSaving: true, formError: null });\n        return request.then(function () {\n          _this2.get('notify').success(resource.id ? 'External resource updated.' : 'External resource added.');\n          _this2.resetForm();\n          return _this2.loadResources();\n        }, function (_ref2) {\n          var errorMessage = _ref2.errorMessage;\n\n          var message = errorMessage || 'Unable to save external resource.';\n          _this2.set('formError', message);\n          _this2.get('notify').error(message);\n        }).finally(function () {\n          return _this2.set('isSaving', false);\n        });\n      },\n      deleteResource: function deleteResource(resource) {\n        var _this3 = this;\n\n        var resourceDescription = resource.text || resource.link;\n        if (!confirm('Are you sure you want to delete external resource \"' + resourceDescription + '\"?')) {\n          return;\n        }\n\n        this.set('deletingResourceId', resource.id);\n        return this.get('platform').doDelete(this.endpoint(resource)).then(function () {\n          _this3.get('notify').success('External resource deleted.');\n          return _this3.loadResources();\n        }, function (_ref3) {\n          var errorMessage = _ref3.errorMessage;\n\n          _this3.get('notify').error(errorMessage || 'Unable to delete external resource.');\n        }).finally(function () {\n          return _this3.set('deletingResourceId', null);\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/external-resources/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"JzPWOjYL\", \"block\": \"{\\\"symbols\\\":[\\\"resource\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"isSaving\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"addResource\\\"]],[8],[0,\\\"Add External Resource\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"editingResource\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"form\\\",true],[10,\\\"class\\\",\\\"content-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"h4\\\",true],[8],[1,[28,\\\"if\\\",[[24,[\\\"editingResource\\\",\\\"id\\\"]],\\\"Edit External Resource\\\",\\\"Add External Resource\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"externalResourceText\\\"],[8],[0,\\\"Text\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"externalResourceText\\\",\\\"text\\\",\\\"form-control\\\",[24,[\\\"draftText\\\"]],[24,[\\\"isSaving\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"externalResourceLink\\\"],[8],[0,\\\"Link\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"externalResourceLink\\\",\\\"url\\\",\\\"form-control\\\",\\\"https://example.com\\\",[24,[\\\"draftLink\\\"]],[24,[\\\"isSaving\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"formError\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[1,[22,\\\"formError\\\"],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[12,\\\"disabled\\\",[22,\\\"isSaving\\\"]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancelEdit\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"isSaving\\\"]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"saveResource\\\"]],[8],[0,\\\"Save\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Loading...\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"loadError\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[22,\\\"loadError\\\"],false],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-default btn-xs\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"retryLoad\\\"]],[8],[0,\\\"Retry\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"resources\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table table-striped content-group-lg\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Text\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Link\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Actions\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"resources\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"text\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isSafeLink\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[23,1,[\\\"link\\\"]]],[10,\\\"target\\\",\\\"_blank\\\"],[10,\\\"rel\\\",\\\"noopener noreferrer\\\"],[8],[1,[23,1,[\\\"link\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,1,[\\\"link\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-default btn-sm\\\"],[12,\\\"disabled\\\",[22,\\\"isSaving\\\"]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"editResource\\\",[23,1,[]]]],[8],[0,\\\"Edit\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger btn-sm\\\"],[12,\\\"disabled\\\",[28,\\\"eq\\\",[[24,[\\\"deletingResourceId\\\"]],[23,1,[\\\"id\\\"]]],null]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"deleteResource\\\",[23,1,[]]]],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"deletingResourceId\\\"]],[23,1,[\\\"id\\\"]]],null],\\\"Deleting...\\\",\\\"Delete\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"This profile does not have any external resources.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/external-resources/template.hbs\" } });\n});","define('aira-mgmt/components/power-select-multiple', ['exports', 'ember-power-select/components/power-select-multiple'], function (exports, _powerSelectMultiple) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _powerSelectMultiple.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select-multiple/trigger', ['exports', 'ember-power-select/components/power-select-multiple/trigger'], function (exports, _trigger) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _trigger.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select', ['exports', 'ember-power-select/components/power-select'], function (exports, _powerSelect) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _powerSelect.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select/before-options', ['exports', 'ember-power-select/components/power-select/before-options'], function (exports, _beforeOptions) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _beforeOptions.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select/options', ['exports', 'ember-power-select/components/power-select/options'], function (exports, _options) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _options.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select/placeholder', ['exports', 'ember-power-select/components/power-select/placeholder'], function (exports, _placeholder) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _placeholder.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select/power-select-group', ['exports', 'ember-power-select/components/power-select/power-select-group'], function (exports, _powerSelectGroup) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _powerSelectGroup.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select/search-message', ['exports', 'ember-power-select/components/power-select/search-message'], function (exports, _searchMessage) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _searchMessage.default;\n    }\n  });\n});","define('aira-mgmt/components/power-select/trigger', ['exports', 'ember-power-select/components/power-select/trigger'], function (exports, _trigger) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _trigger.default;\n    }\n  });\n});","define('aira-mgmt/components/properties/property-boolean/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    p: null,\n\n    property: null,\n\n    hasValue: null,\n\n    htmlId: null,\n\n    value: null,\n\n    options: [{ id: true, text: 'Yes' }, { id: false, text: 'No' }],\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var p = this.get('p');\n\n      var property = {};\n      var hasValue = false;\n      var value = null;\n\n      if (p.hasOwnProperty('value')) {\n        // MULTI/EDIT\n        property = p.property;\n        value = p.value;\n        hasValue = true;\n\n        // go thru p children and set properties\n        if (property.hasOwnProperty('children')) {\n          property.children.forEach(function (child) {\n            var valueChildren = p.children[child.key];\n            if (valueChildren) {\n              valueChildren.forEach(function (valueChild) {\n                valueChild.property = child;\n                valueChild.type = child.type;\n              });\n              p.children[child.key] = valueChildren;\n            } else {\n              p.children[child.key] = [child];\n            }\n          });\n        }\n      } else {\n        // SINGLE\n        property = p;\n\n        if (!property.hasOwnProperty('id')) {\n          property = p.property;\n        }\n      }\n\n      var key = property.key.split('.');\n      if (key.length > 1) {\n        property.parent = key[0];\n      }\n\n      this.set('htmlId', 'p-' + property.key);\n      this.set('p', p);\n      this.set('property', property);\n      this.set('hasValue', hasValue);\n      this.set('value', value);\n    },\n\n\n    actions: {\n      select: function select(value /* array */) {\n        this.update(this.get('p'), value);\n      },\n      update: function update(p, value) {\n        this.update(p, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/properties/property-boolean/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"wY26el6x\", \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"cv\\\",\\\"ck\\\",\\\"c\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-md-6\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"property\\\",\\\"key\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"label\\\",\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[\\\"Answer\\\",[24,[\\\"options\\\"]],[24,[\\\"value\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\"],null]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasValue\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"p\\\",\\\"children\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[23,4,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[2,3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"property\\\",\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/properties/property-boolean/template.hbs\" } });\n});","define('aira-mgmt/components/properties/property-display/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    init: function init() {\n      this._super.apply(this, arguments);\n    },\n    getShortenedKey: function getShortenedKey(key) {\n      return key.substring(key.lastIndexOf('.') + 1).toString();\n    }\n  });\n});","define(\"aira-mgmt/components/properties/property-display/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"6o/JiH6Z\", \"block\": \"{\\\"symbols\\\":[\\\"cv\\\",\\\"ck\\\",\\\"v\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"c\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"scope\\\",\\\"row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"strong\\\",true],[8],[1,[28,\\\"shorten-key\\\",[[23,2,[]]],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"property\\\",\\\"type\\\"]],\\\"POINT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,3,[\\\"value\\\",\\\"coordinates\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"is-multi\\\",[[23,3,[\\\"property\\\",\\\"type\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,3,[\\\"value\\\"]],false],[0,\\\", \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,3,[\\\"value\\\"]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"properties/property-display\\\",null,[[\\\"c\\\",\\\"tagName\\\"],[[23,3,[\\\"children\\\"]],\\\"\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/properties/property-display/template.hbs\" } });\n});","define('aira-mgmt/components/properties/property-property/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    p: null,\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var p = this.get('p');\n      if (p.hasOwnProperty('property')) {\n        p['type'] = p.property.type;\n      }\n      this.set('p', p);\n    },\n\n\n    actions: {\n      update: function update(p, value) {\n        this.update(p, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/properties/property-property/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"ESxUAp25\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"TEXT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"MULTI_TEXT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"LONG\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"MULTI_LONG\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"PHONE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"MULTI_PHONE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"EMAIL\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"MULTI_EMAIL\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"DATE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"MULTI_DATE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-text\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"BOOLEAN\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-boolean\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"MULTI_BOOLEAN\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-boolean\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-select\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"p\\\",\\\"type\\\"]],\\\"MULTI_SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-select\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"p\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/properties/property-property/template.hbs\" } });\n});","define('aira-mgmt/components/properties/property-select/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    p: null,\n\n    property: null,\n\n    hasValue: null,\n\n    htmlId: null,\n\n    options: null,\n\n    selectedOptionValue: null,\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var p = this.get('p');\n\n      var property = {};\n      var hasValue = false;\n      var options = [];\n      var selectedOptionValue = null;\n\n      if (p.hasOwnProperty('value')) {\n        // MULTI/EDIT\n        property = p.property;\n        selectedOptionValue = p.value;\n        hasValue = true;\n\n        // go thru p children and set properties\n        if (property.hasOwnProperty('children')) {\n          property.children.forEach(function (child) {\n            var valueChildren = p.children[child.key];\n            if (valueChildren) {\n              valueChildren.forEach(function (valueChild) {\n                valueChild.property = child;\n                valueChild.type = child.type;\n              });\n              p.children[child.key] = valueChildren;\n            } else {\n              p.children[child.key] = [child];\n            }\n          });\n        }\n      } else {\n        // SINGLE\n        property = p;\n        if (!property.hasOwnProperty('id')) {\n          property = p.property;\n        }\n      }\n\n      var key = property.key.split('.');\n      if (key.length > 1) {\n        property.parent = key[0];\n      }\n\n      property.options.sort(function (a, b) {\n        return Ember.compare(a.value, b.value);\n      }).forEach(function (opt) {\n        if (opt.enabled) {\n          options.push({\n            id: opt.value,\n            text: opt.value\n          });\n        }\n      });\n\n      this.set('htmlId', 'p-' + property.key);\n      this.set('p', p);\n      this.set('property', property);\n      this.set('hasValue', hasValue);\n      this.set('options', options);\n      this.set('selectedOptionValue', selectedOptionValue);\n    },\n\n\n    actions: {\n      select: function select(selectedOptionValue /* array */) {\n        this.update(this.get('p'), selectedOptionValue);\n      },\n      update: function update(p, value) {\n        this.update(p, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/properties/property-select/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"xKJQ5hGq\", \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"cv\\\",\\\"ck\\\",\\\"c\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-md-6\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"property\\\",\\\"key\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"label\\\",\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[\\\"Answer\\\",[24,[\\\"options\\\"]],[24,[\\\"selectedOptionValue\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\"],null]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasValue\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"p\\\",\\\"children\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[23,4,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[2,3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"property\\\",\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/properties/property-select/template.hbs\" } });\n});","define('aira-mgmt/components/properties/property-text/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    p: null,\n\n    property: null,\n\n    hasValue: null,\n\n    htmlId: null,\n\n    value: null,\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var p = this.get('p');\n\n      var property = {};\n      var hasValue = false;\n      var value = null;\n\n      if (p.hasOwnProperty('value')) {\n        // MULTI/EDIT\n        property = p.property;\n        value = p.value;\n        hasValue = true;\n\n        // go thru p children and set properties\n        if (property.hasOwnProperty('children')) {\n          property.children.forEach(function (child) {\n            var valueChildren = p.children[child.key];\n            if (valueChildren) {\n              valueChildren.forEach(function (valueChild) {\n                valueChild.property = child;\n                valueChild.type = child.type;\n              });\n              p.children[child.key] = valueChildren;\n            } else {\n              p.children[child.key] = [child];\n            }\n          });\n        }\n      } else {\n        // SINGLE\n        property = p;\n        if (!property.hasOwnProperty('id')) {\n          property = p.property;\n        }\n      }\n\n      var key = property.key.split('.');\n      if (key.length > 1) {\n        property.parent = key[0];\n      }\n\n      this.set('htmlId', 'p-' + property.key);\n      this.set('p', p);\n      this.set('property', property);\n      this.set('hasValue', hasValue);\n      this.set('value', value);\n    },\n\n\n    actions: {\n      change: function change(value) {\n        this.update(this.get('p'), value);\n      },\n      update: function update(p, value) {\n        this.update(p, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/properties/property-text/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"/OQ2Ugj+\", \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"cv\\\",\\\"ck\\\",\\\"c\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group col-md-6\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"property\\\",\\\"key\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"input\\\"],[[24,[\\\"htmlId\\\"]],\\\"form-control\\\",\\\"Enter Value\\\",[24,[\\\"value\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"change\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasValue\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"p\\\",\\\"children\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[23,4,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[2,3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"property\\\",\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/properties/property-text/template.hbs\" } });\n});","define('aira-mgmt/components/questions/question-boolean/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n\n    q: null,\n\n    htmlId: null,\n\n    value: null,\n\n    options: [{ id: 'true', text: 'Yes' }, { id: 'false', text: 'No' }],\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var q = this.get('q');\n\n      this.set('htmlId', 'q-' + q.property.key);\n\n      if (q.values.length > 0) {\n        this.updateSelectionAndDisplayedFollowups(q.values[0].value);\n      }\n    },\n    updateSelectionAndDisplayedFollowups: function updateSelectionAndDisplayedFollowups(selectedOptionValue) {\n      var q = this.get('q');\n\n      this.set('value', String(selectedOptionValue));\n\n      var displayedFollowups = [];\n\n      q.questionFollowUps.forEach(function (fu) {\n        var match = fu.values.includes(selectedOptionValue);\n        if (match) {\n          displayedFollowups.push(fu.questionFollowUp);\n        }\n      });\n\n      // This will cause a re-render if changed.\n      this.set('displayedFollowups', displayedFollowups);\n    },\n\n\n    actions: {\n      select: function select(selectedOptionValue /* array */) {\n        this.updateSelectionAndDisplayedFollowups(selectedOptionValue);\n        this.update(this.get('q'), selectedOptionValue);\n      },\n      update: function update(q, value) {\n        this.update(q, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/questions/question-boolean/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"y2HoilPd\", \"block\": \"{\\\"symbols\\\":[\\\"fu\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-5 control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"q\\\",\\\"question\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"label\\\",\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[\\\"Answer\\\",[24,[\\\"options\\\"]],[24,[\\\"value\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\"],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"displayedFollowups\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"MULTI_SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-multi-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"TEXT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-text\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"BOOLEAN\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-boolean\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[8],[1,[23,1,[\\\"property\\\",\\\"type\\\"]],false],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/questions/question-boolean/template.hbs\" } });\n});","define('aira-mgmt/components/questions/question-multi-select/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n\n    q: null,\n\n    htmlId: null,\n\n    options: null,\n\n    selectedOptionValues: null,\n\n    displayedFollowups: null,\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var q = this.get('q');\n\n      this.set('htmlId', 'q-' + q.property.key);\n\n      var options = [];\n      q.property.options.forEach(function (opt) {\n        if (opt.enabled) {\n          options.push({\n            id: opt.value,\n            text: opt.value\n          });\n        }\n      });\n\n      this.set('options', options);\n\n      var selectedOptionValues = [];\n      q.values.forEach(function (uv) {\n        selectedOptionValues.push(uv.value);\n      });\n\n      this.updateSelectionsAndDisplayedFollowups(selectedOptionValues);\n    },\n    updateSelectionsAndDisplayedFollowups: function updateSelectionsAndDisplayedFollowups(selectedOptionValues) {\n      var q = this.get('q');\n\n      this.set('selectedOptionValues', selectedOptionValues);\n\n      var displayedFollowups = [];\n\n      q.questionFollowUps.forEach(function (fu) {\n        var match = selectedOptionValues.some(function (so) {\n          return fu.values.includes(so);\n        });\n        if (match) {\n          displayedFollowups.push(fu.questionFollowUp);\n        }\n      });\n\n      // This will cause a re-render if changed.\n      this.set('displayedFollowups', displayedFollowups);\n    },\n\n\n    actions: {\n      select: function select(selectedOptionValues /* array */) {\n        this.updateSelectionsAndDisplayedFollowups(selectedOptionValues);\n        this.update(this.get('q'), selectedOptionValues);\n      },\n      update: function update(q, value) {\n        this.update(q, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/questions/question-multi-select/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"FZcQD5Gv\", \"block\": \"{\\\"symbols\\\":[\\\"fu\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-5 control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"q\\\",\\\"question\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"select-multiple\\\",null,[[\\\"label\\\",\\\"options\\\",\\\"selectedOptionIds\\\",\\\"onSelect\\\"],[\\\"Answer\\\",[24,[\\\"options\\\"]],[24,[\\\"selectedOptionValues\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\"],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"displayedFollowups\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"MULTI_SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-multi-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"TEXT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-text\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"BOOLEAN\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-boolean\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[8],[1,[23,1,[\\\"property\\\",\\\"type\\\"]],false],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/questions/question-multi-select/template.hbs\" } });\n});","define('aira-mgmt/components/questions/question-multi-text/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n\n    q: null,\n\n    htmlId: null,\n\n    value: null,\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var q = this.get('q');\n\n      this.set('htmlId', 'q-' + q.property.key);\n\n      if (q.values.length > 0) {\n        this.set('value', q.values[0].value);\n      }\n    },\n\n\n    actions: {\n      change: function change(value) {\n        this.update(this.get('q'), value);\n      },\n      update: function update(q, value) {\n        this.update(q, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/questions/question-multi-text/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"WbyvVjkw\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-5 control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"q\\\",\\\"question\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"textarea\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"input\\\"],[[24,[\\\"htmlId\\\"]],\\\"form-control\\\",[24,[\\\"value\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"change\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/questions/question-multi-text/template.hbs\" } });\n});","define('aira-mgmt/components/questions/question-select/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n\n    q: null,\n\n    htmlId: null,\n\n    options: null,\n\n    selectedOptionValue: null,\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var q = this.get('q');\n\n      this.set('htmlId', 'q-' + q.property.key);\n\n      var options = [];\n      q.property.options.forEach(function (opt) {\n        if (opt.enabled) {\n          options.push({\n            id: opt.value,\n            text: opt.value\n          });\n        }\n      });\n\n      this.set('options', options);\n\n      var selectedOptionValue = null;\n      q.values.forEach(function (uv) {\n        selectedOptionValue = uv.value;\n      });\n\n      this.updateSelectionAndDisplayedFollowups(selectedOptionValue);\n    },\n    updateSelectionAndDisplayedFollowups: function updateSelectionAndDisplayedFollowups(selectedOptionValue) {\n      var q = this.get('q');\n\n      this.set('selectedOptionValue', selectedOptionValue);\n\n      var displayedFollowups = [];\n\n      q.questionFollowUps.forEach(function (fu) {\n        var match = fu.values.includes(selectedOptionValue);\n        if (match) {\n          displayedFollowups.push(fu.questionFollowUp);\n        }\n      });\n\n      // This will cause a re-render if changed.\n      this.set('displayedFollowups', displayedFollowups);\n    },\n\n\n    actions: {\n      select: function select(selectedOptionValue /* array */) {\n        this.updateSelectionAndDisplayedFollowups(selectedOptionValue);\n        this.update(this.get('q'), selectedOptionValue);\n      },\n      update: function update(q, value) {\n        this.update(q, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/questions/question-select/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"vX/vfeiA\", \"block\": \"{\\\"symbols\\\":[\\\"fu\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-5 control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"q\\\",\\\"question\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"label\\\",\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[\\\"Answer\\\",[24,[\\\"options\\\"]],[24,[\\\"selectedOptionValue\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\"],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"displayedFollowups\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"MULTI_SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-multi-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"TEXT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-text\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"BOOLEAN\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"questions/question-boolean\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[8],[1,[23,1,[\\\"property\\\",\\\"type\\\"]],false],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/questions/question-select/template.hbs\" } });\n});","define('aira-mgmt/components/questions/question-text/component', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n\n    q: null,\n\n    htmlId: null,\n\n    value: null,\n\n    update: function update() {},\n\n    init: function init() {\n      this._super.apply(this, arguments);\n      var q = this.get('q');\n\n      this.set('htmlId', 'q-' + q.property.key);\n\n      if (q.values.length > 0) {\n        this.set('value', q.values[0].value);\n      }\n    },\n\n\n    actions: {\n      change: function change(value) {\n        this.update(this.get('q'), value);\n      },\n      update: function update(q, value) {\n        this.update(q, value);\n      }\n    }\n  });\n});","define(\"aira-mgmt/components/questions/question-text/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"pNZU1mAZ\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"label\\\",true],[11,\\\"for\\\",[29,[[22,\\\"htmlId\\\"]]]],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-5 control-label\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"q\\\",\\\"question\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"input\\\"],[[24,[\\\"htmlId\\\"]],\\\"form-control\\\",\\\"Enter Answer\\\",[24,[\\\"value\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"change\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/questions/question-text/template.hbs\" } });\n});","define(\"aira-mgmt/components/quill-editor\", [\"exports\", \"ember-quill/components/quill-editor\"], function (exports, _quillEditor) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _quillEditor.default;\n    }\n  });\n});","define('aira-mgmt/components/select-2/component', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Component.extend({\n\t\tclassNames: ['form-group'],\n\n\t\t/* The label value */\n\t\tlabel: null,\n\n\t\t/* All possible options as array of {id, text} */\n\t\toptions: null,\n\n\t\t/* All current selections as array of id */\n\t\tselections: null,\n\n\t\t/* Handler when selection added receiving (id) */\n\t\tonSelect: null,\n\n\t\t/* Handler when selection removed receiving (id) */\n\t\tonUnselect: null,\n\n\t\tdidInsertElement: function didInsertElement() {\n\t\t\tvar self = this;\n\n\t\t\tthis.$('.select-icons').select2({\n\t\t\t\tminimumResultsForSearch: Infinity,\n\t\t\t\tescapeMarkup: function escapeMarkup(m) {\n\t\t\t\t\treturn m;\n\t\t\t\t},\n\t\t\t\twidth: '100%',\n\t\t\t\tdata: this.get('options')\n\t\t\t}).on('select2:select', function (e) {\n\t\t\t\tself.get('onSelect')(e.params.data.id);\n\t\t\t}).on('select2:unselect', function (e) {\n\t\t\t\tself.get('onUnselect')(e.params.data.id);\n\t\t\t});\n\t\t},\n\t\tdidRender: function didRender() {\n\t\t\tthis.$('.select-icons').val(this.get('selections')).trigger('change.select2');\n\t\t},\n\t\twillDestroyElement: function willDestroyElement() {\n\t\t\tthis.$('.select-icons').off('select2:select').off('select2:unselect');\n\t\t}\n\t});\n});","define(\"aira-mgmt/components/select-2/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"B1qJ8gr3\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"label\\\",true],[8],[1,[22,\\\"label\\\"],false],[9],[0,\\\"\\\\n\\\"],[7,\\\"select\\\",true],[10,\\\"multiple\\\",\\\"multiple\\\"],[11,\\\"data-placeholder\\\",[29,[\\\"Enter \\\",[22,\\\"label\\\"]]]],[10,\\\"class\\\",\\\"select-icons\\\"],[8],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/select-2/template.hbs\" } });\n});","define('aira-mgmt/components/select-multiple/component', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Component.extend({\n\t\tclassNames: ['form-group'],\n\n\t\t/* The label value */\n\t\tlabel: null,\n\n\t\t/* All possible options as array of {id, text} */\n\t\toptions: null,\n\n\t\t/* Current selections */\n\t\tselectedOptionIds: null,\n\n\t\t/* Handler when selection added receiving (id) */\n\t\tonSelect: null,\n\n\t\tsize: 1,\n\n\t\tinit: function init() {\n\t\t\tthis._super.apply(this, arguments);\n\n\t\t\tthis.set('size', Math.min(6, this.get('options').length));\n\t\t},\n\t\tdidInsertElement: function didInsertElement() {\n\t\t\tvar _this = this;\n\n\t\t\tthis.$('select').on('change', function () {\n\t\t\t\t_this.get('onSelect')(_this.$('select').val());\n\t\t\t});\n\t\t},\n\t\twillDestroyElement: function willDestroyElement() {\n\t\t\tthis.$('select').off('change');\n\t\t}\n\t});\n});","define(\"aira-mgmt/components/select-multiple/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"qx2K37+z\", \"block\": \"{\\\"symbols\\\":[\\\"opt\\\"],\\\"statements\\\":[[7,\\\"select\\\",true],[10,\\\"aria-multiselectable\\\",\\\"true\\\"],[10,\\\"multiple\\\",\\\"multiple\\\"],[11,\\\"size\\\",[22,\\\"size\\\"]],[11,\\\"data-placeholder\\\",[29,[\\\"Choose \\\",[22,\\\"label\\\"]]]],[10,\\\"class\\\",\\\"form-control\\\"],[10,\\\"required\\\",\\\"\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"option\\\",true],[10,\\\"value\\\",\\\"\\\"],[10,\\\"disabled\\\",\\\"\\\"],[10,\\\"selected\\\",\\\"\\\"],[10,\\\"hidden\\\",\\\"\\\"],[8],[0,\\\"Choose \\\"],[1,[22,\\\"label\\\"],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"options\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"option\\\",true],[11,\\\"value\\\",[29,[[23,1,[\\\"id\\\"]]]]],[11,\\\"selected\\\",[28,\\\"contains\\\",[[23,1,[\\\"id\\\"]],[24,[\\\"selectedOptionIds\\\"]]],null]],[8],[1,[23,1,[\\\"text\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/select-multiple/template.hbs\" } });\n});","define('aira-mgmt/components/select-single/component', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Component.extend({\n\t\tclassNames: ['form-group'],\n\n\t\t/* The label value */\n\t\tlabel: null,\n\n\t\t/* All possible options as array of {id, text} */\n\t\toptions: null,\n\n\t\t/* Current selection */\n\t\tselectedOptionId: null,\n\n\t\t/* Handler when selection added receiving (id) */\n\t\tonSelect: null,\n\n\t\tdidInsertElement: function didInsertElement() {\n\t\t\tvar _this = this;\n\n\t\t\tthis.$('select').on('change', function () {\n\t\t\t\t_this.get('onSelect')(_this.$('select').val());\n\t\t\t});\n\t\t},\n\t\twillDestroyElement: function willDestroyElement() {\n\t\t\tthis.$('select').off('change');\n\t\t}\n\t});\n});","define(\"aira-mgmt/components/select-single/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"IN0H/tyR\", \"block\": \"{\\\"symbols\\\":[\\\"opt\\\"],\\\"statements\\\":[[7,\\\"select\\\",true],[11,\\\"data-placeholder\\\",[29,[\\\"Choose \\\",[22,\\\"label\\\"]]]],[10,\\\"class\\\",\\\"form-control\\\"],[10,\\\"required\\\",\\\"\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"option\\\",true],[10,\\\"value\\\",\\\"\\\"],[10,\\\"disabled\\\",\\\"\\\"],[10,\\\"selected\\\",\\\"\\\"],[10,\\\"hidden\\\",\\\"\\\"],[8],[0,\\\"Choose \\\"],[1,[22,\\\"label\\\"],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"options\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"option\\\",true],[11,\\\"value\\\",[29,[[23,1,[\\\"id\\\"]]]]],[11,\\\"selected\\\",[28,\\\"equal\\\",[[23,1,[\\\"id\\\"]],[24,[\\\"selectedOptionId\\\"]]],null]],[8],[1,[23,1,[\\\"text\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/select-single/template.hbs\" } });\n});","define(\"aira-mgmt/components/simple-panel\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({});\n});","define('aira-mgmt/components/table-row/component', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Component.extend({\n\t\ttagName: 'tr',\n\n\t\tclassNameBindings: ['active'],\n\n\t\tactive: false,\n\n\t\t/**\n   * If true, the row will receive the CSS 'active' class when clicked.\n   */\n\t\tallowActive: true,\n\n\t\tclick: function click() {\n\t\t\tif (this.get('allowActive')) {\n\t\t\t\tthis.set('active', true);\n\t\t\t}\n\t\t\tthis.sendAction('select');\n\t\t}\n\t});\n});","define('aira-mgmt/components/user-address/component', ['exports', 'aira-mgmt/mixins/model-editor'], function (exports, _modelEditor) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\n\n\tvar addressPropNames = ['address1', 'address2', 'city', 'state', 'zip', 'addresstype', 'country'];\n\n\texports.default = Ember.Component.extend(_modelEditor.default, {\n\n\t\tstate: Ember.inject.service(),\n\n\t\ttitle: null,\n\n\t\taddress: null,\n\n\t\tonSave: null,\n\n\t\tonCancel: null,\n\n\t\tonDelete: null,\n\n\t\tdata: null,\n\n\t\tinit: function init() {\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tthis._bindModelEditor('data', 'address', addressPropNames);\n\t\t},\n\n\n\t\tactions: {\n\t\t\tselectAddressType: function selectAddressType(addressType) {\n\t\t\t\tthis.set('data.addresstype', addressType);\n\t\t\t},\n\t\t\tselectCountry: function selectCountry(country) {\n\t\t\t\tthis.set('data.country', country);\n\t\t\t},\n\t\t\tsave: function save() {\n\t\t\t\tvar addressProps = this.get('data').getProperties(addressPropNames);\n\t\t\t\tthis.get('onSave')(this.get('address'), addressProps);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.set('state.isDirty', false);\n\t\t\t\tthis.get('onCancel')(this.get('address'));\n\t\t\t},\n\t\t\tdelete: function _delete() {\n\t\t\t\tif (confirm('Are you sure?')) {\n\t\t\t\t\tthis.get('onDelete')(this.get('address'));\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\taddressTypeOptions: [{ text: 'Home', id: 'home' }, { text: 'Work', id: 'work' }, { text: 'Shipping', id: 'shipping' }],\n\n\t\t// ISO-3166-1 alpha-2 country code (part of the list)\n\t\tcountryOptions: [{ text: 'United States', id: 'US' }, { text: 'Canada', id: 'CA' }, { text: 'Australia', id: 'AU' }, { text: 'New Zealand', id: 'NZ' }, { text: 'United Kingdom', id: 'GB' }, { text: 'Ireland', id: 'IE' }]\n\n\t\t// ISO-3166-1 alpha-2 (full list)\n\t\t// countryOptions: [\n\t\t// \t{text: 'Afghanistan', id: 'AF'}\n\t\t// \t{text: 'Aland Islands', id: 'AX'}\n\t\t// \t{text: 'Albania', id: 'AL'}\n\t\t// \t{text: 'Algeria', id: 'DZ'}\n\t\t// \t{text: 'American Samoa', id: 'AS'}\n\t\t// \t{text: 'Andorra', id: 'AD'}\n\t\t// \t{text: 'Angola', id: 'AO'}\n\t\t// \t{text: 'Anguilla', id: 'AI'}\n\t\t// \t{text: 'Antarctica', id: 'AQ'}\n\t\t// \t{text: 'Antigua And Barbuda', id: 'AG'}\n\t\t// \t{text: 'Argentina', id: 'AR'}\n\t\t// \t{text: 'Armenia', id: 'AM'}\n\t\t// \t{text: 'Aruba', id: 'AW'}\n\t\t// \t{text: 'Australia', id: 'AU'}\n\t\t// \t{text: 'Austria', id: 'AT'}\n\t\t// \t{text: 'Azerbaijan', id: 'AZ'}\n\t\t// \t{text: 'Bahamas', id: 'BS'}\n\t\t// \t{text: 'Bahrain', id: 'BH'}\n\t\t// \t{text: 'Bangladesh', id: 'BD'}\n\t\t// \t{text: 'Barbados', id: 'BB'}\n\t\t// \t{text: 'Belarus', id: 'BY'}\n\t\t// \t{text: 'Belgium', id: 'BE'}\n\t\t// \t{text: 'Belize', id: 'BZ'}\n\t\t// \t{text: 'Benin', id: 'BJ'}\n\t\t// \t{text: 'Bermuda', id: 'BM'}\n\t\t// \t{text: 'Bhutan', id: 'BT'}\n\t\t// \t{text: 'Bolivia', id: 'BO'}\n\t\t// \t{text: 'Bosnia And Herzegovina', id: 'BA'}\n\t\t// \t{text: 'Botswana', id: 'BW'}\n\t\t// \t{text: 'Bouvet Island', id: 'BV'}\n\t\t// \t{text: 'Brazil', id: 'BR'}\n\t\t// \t{text: 'British Indian Ocean Territory', id: 'IO'}\n\t\t// \t{text: 'Brunei Darussalam', id: 'BN'}\n\t\t// \t{text: 'Bulgaria', id: 'BG'}\n\t\t// \t{text: 'Burkina Faso', id: 'BF'}\n\t\t// \t{text: 'Burundi', id: 'BI'}\n\t\t// \t{text: 'Cambodia', id: 'KH'}\n\t\t// \t{text: 'Cameroon', id: 'CM'}\n\t\t// \t{text: 'Canada', id: 'CA'}\n\t\t// \t{text: 'Cape Verde', id: 'CV'}\n\t\t// \t{text: 'Cayman Islands', id: 'KY'}\n\t\t// \t{text: 'Central African Republic', id: 'CF'}\n\t\t// \t{text: 'Chad', id: 'TD'}\n\t\t// \t{text: 'Chile', id: 'CL'}\n\t\t// \t{text: 'China', id: 'CN'}\n\t\t// \t{text: 'Christmas Island', id: 'CX'}\n\t\t// \t{text: 'Cocos (Keeling) Islands', id: 'CC'}\n\t\t// \t{text: 'Colombia', id: 'CO'}\n\t\t// \t{text: 'Comoros', id: 'KM'}\n\t\t// \t{text: 'Congo', id: 'CG'}\n\t\t// \t{text: 'Congo, Democratic Republic', id: 'CD'}\n\t\t// \t{text: 'Cook Islands', id: 'CK'}\n\t\t// \t{text: 'Costa Rica', id: 'CR'}\n\t\t// \t{text: 'Cote D\\'Ivoire', id: 'CI'}\n\t\t// \t{text: 'Croatia', id: 'HR'}\n\t\t// \t{text: 'Cuba', id: 'CU'}\n\t\t// \t{text: 'Cyprus', id: 'CY'}\n\t\t// \t{text: 'Czech Republic', id: 'CZ'}\n\t\t// \t{text: 'Denmark', id: 'DK'}\n\t\t// \t{text: 'Djibouti', id: 'DJ'}\n\t\t// \t{text: 'Dominica', id: 'DM'}\n\t\t// \t{text: 'Dominican Republic', id: 'DO'}\n\t\t// \t{text: 'Ecuador', id: 'EC'}\n\t\t// \t{text: 'Egypt', id: 'EG'}\n\t\t// \t{text: 'El Salvador', id: 'SV'}\n\t\t// \t{text: 'Equatorial Guinea', id: 'GQ'}\n\t\t// \t{text: 'Eritrea', id: 'ER'}\n\t\t// \t{text: 'Estonia', id: 'EE'}\n\t\t// \t{text: 'Ethiopia', id: 'ET'}\n\t\t// \t{text: 'Falkland Islands (Malvinas)', id: 'FK'}\n\t\t// \t{text: 'Faroe Islands', id: 'FO'}\n\t\t// \t{text: 'Fiji', id: 'FJ'}\n\t\t// \t{text: 'Finland', id: 'FI'}\n\t\t// \t{text: 'France', id: 'FR'}\n\t\t// \t{text: 'French Guiana', id: 'GF'}\n\t\t// \t{text: 'French Polynesia', id: 'PF'}\n\t\t// \t{text: 'French Southern Territories', id: 'TF'}\n\t\t// \t{text: 'Gabon', id: 'GA'}\n\t\t// \t{text: 'Gambia', id: 'GM'}\n\t\t// \t{text: 'Georgia', id: 'GE'}\n\t\t// \t{text: 'Germany', id: 'DE'}\n\t\t// \t{text: 'Ghana', id: 'GH'}\n\t\t// \t{text: 'Gibraltar', id: 'GI'}\n\t\t// \t{text: 'Greece', id: 'GR'}\n\t\t// \t{text: 'Greenland', id: 'GL'}\n\t\t// \t{text: 'Grenada', id: 'GD'}\n\t\t// \t{text: 'Guadeloupe', id: 'GP'}\n\t\t// \t{text: 'Guam', id: 'GU'}\n\t\t// \t{text: 'Guatemala', id: 'GT'}\n\t\t// \t{text: 'Guernsey', id: 'GG'}\n\t\t// \t{text: 'Guinea', id: 'GN'}\n\t\t// \t{text: 'Guinea-Bissau', id: 'GW'}\n\t\t// \t{text: 'Guyana', id: 'GY'}\n\t\t// \t{text: 'Haiti', id: 'HT'}\n\t\t// \t{text: 'Heard Island & Mcdonald Islands', id: 'HM'}\n\t\t// \t{text: 'Holy See (Vatican City State)', id: 'VA'}\n\t\t// \t{text: 'Honduras', id: 'HN'}\n\t\t// \t{text: 'Hong Kong', id: 'HK'}\n\t\t// \t{text: 'Hungary', id: 'HU'}\n\t\t// \t{text: 'Iceland', id: 'IS'}\n\t\t// \t{text: 'India', id: 'IN'}\n\t\t// \t{text: 'Indonesia', id: 'ID'}\n\t\t// \t{text: 'Iran, Islamic Republic Of', id: 'IR'}\n\t\t// \t{text: 'Iraq', id: 'IQ'}\n\t\t// \t{text: 'Ireland', id: 'IE'}\n\t\t// \t{text: 'Isle Of Man', id: 'IM'}\n\t\t// \t{text: 'Israel', id: 'IL'}\n\t\t// \t{text: 'Italy', id: 'IT'}\n\t\t// \t{text: 'Jamaica', id: 'JM'}\n\t\t// \t{text: 'Japan', id: 'JP'}\n\t\t// \t{text: 'Jersey', id: 'JE'}\n\t\t// \t{text: 'Jordan', id: 'JO'}\n\t\t// \t{text: 'Kazakhstan', id: 'KZ'}\n\t\t// \t{text: 'Kenya', id: 'KE'}\n\t\t// \t{text: 'Kiribati', id: 'KI'}\n\t\t// \t{text: 'Korea', id: 'KR'}\n\t\t// \t{text: 'Kuwait', id: 'KW'}\n\t\t// \t{text: 'Kyrgyzstan', id: 'KG'}\n\t\t// \t{text: 'Lao People\\'s Democratic Republic', id: 'LA'}\n\t\t// \t{text: 'Latvia', id: 'LV'}\n\t\t// \t{text: 'Lebanon', id: 'LB'}\n\t\t// \t{text: 'Lesotho', id: 'LS'}\n\t\t// \t{text: 'Liberia', id: 'LR'}\n\t\t// \t{text: 'Libyan Arab Jamahiriya', id: 'LY'}\n\t\t// \t{text: 'Liechtenstein', id: 'LI'}\n\t\t// \t{text: 'Lithuania', id: 'LT'}\n\t\t// \t{text: 'Luxembourg', id: 'LU'}\n\t\t// \t{text: 'Macao', id: 'MO'}\n\t\t// \t{text: 'Macedonia', id: 'MK'}\n\t\t// \t{text: 'Madagascar', id: 'MG'}\n\t\t// \t{text: 'Malawi', id: 'MW'}\n\t\t// \t{text: 'Malaysia', id: 'MY'}\n\t\t// \t{text: 'Maldives', id: 'MV'}\n\t\t// \t{text: 'Mali', id: 'ML'}\n\t\t// \t{text: 'Malta', id: 'MT'}\n\t\t// \t{text: 'Marshall Islands', id: 'MH'}\n\t\t// \t{text: 'Martinique', id: 'MQ'}\n\t\t// \t{text: 'Mauritania', id: 'MR'}\n\t\t// \t{text: 'Mauritius', id: 'MU'}\n\t\t// \t{text: 'Mayotte', id: 'YT'}\n\t\t// \t{text: 'Mexico', id: 'MX'}\n\t\t// \t{text: 'Micronesia, Federated States Of', id: 'FM'}\n\t\t// \t{text: 'Moldova', id: 'MD'}\n\t\t// \t{text: 'Monaco', id: 'MC'}\n\t\t// \t{text: 'Mongolia', id: 'MN'}\n\t\t// \t{text: 'Montenegro', id: 'ME'}\n\t\t// \t{text: 'Montserrat', id: 'MS'}\n\t\t// \t{text: 'Morocco', id: 'MA'}\n\t\t// \t{text: 'Mozambique', id: 'MZ'}\n\t\t// \t{text: 'Myanmar', id: 'MM'}\n\t\t// \t{text: 'Namibia', id: 'NA'}\n\t\t// \t{text: 'Nauru', id: 'NR'}\n\t\t// \t{text: 'Nepal', id: 'NP'}\n\t\t// \t{text: 'Netherlands', id: 'NL'}\n\t\t// \t{text: 'Netherlands Antilles', id: 'AN'}\n\t\t// \t{text: 'New Caledonia', id: 'NC'}\n\t\t// \t{text: 'New Zealand', id: 'NZ'}\n\t\t// \t{text: 'Nicaragua', id: 'NI'}\n\t\t// \t{text: 'Niger', id: 'NE'}\n\t\t// \t{text: 'Nigeria', id: 'NG'}\n\t\t// \t{text: 'Niue', id: 'NU'}\n\t\t// \t{text: 'Norfolk Island', id: 'NF'}\n\t\t// \t{text: 'Northern Mariana Islands', id: 'MP'}\n\t\t// \t{text: 'Norway', id: 'NO'}\n\t\t// \t{text: 'Oman', id: 'OM'}\n\t\t// \t{text: 'Pakistan', id: 'PK'}\n\t\t// \t{text: 'Palau', id: 'PW'}\n\t\t// \t{text: 'Palestinian Territory, Occupied', id: 'PS'}\n\t\t// \t{text: 'Panama', id: 'PA'}\n\t\t// \t{text: 'Papua New Guinea', id: 'PG'}\n\t\t// \t{text: 'Paraguay', id: 'PY'}\n\t\t// \t{text: 'Peru', id: 'PE'}\n\t\t// \t{text: 'Philippines', id: 'PH'}\n\t\t// \t{text: 'Pitcairn', id: 'PN'}\n\t\t// \t{text: 'Poland', id: 'PL'}\n\t\t// \t{text: 'Portugal', id: 'PT'}\n\t\t// \t{text: 'Puerto Rico', id: 'PR'}\n\t\t// \t{text: 'Qatar', id: 'QA'}\n\t\t// \t{text: 'Reunion', id: 'RE'}\n\t\t// \t{text: 'Romania', id: 'RO'}\n\t\t// \t{text: 'Russian Federation', id: 'RU'}\n\t\t// \t{text: 'Rwanda', id: 'RW'}\n\t\t// \t{text: 'Saint Barthelemy', id: 'BL'}\n\t\t// \t{text: 'Saint Helena', id: 'SH'}\n\t\t// \t{text: 'Saint Kitts And Nevis', id: 'KN'}\n\t\t// \t{text: 'Saint Lucia', id: 'LC'}\n\t\t// \t{text: 'Saint Martin', id: 'MF'}\n\t\t// \t{text: 'Saint Pierre And Miquelon', id: 'PM'}\n\t\t// \t{text: 'Saint Vincent And Grenadines', id: 'VC'}\n\t\t// \t{text: 'Samoa', id: 'WS'}\n\t\t// \t{text: 'San Marino', id: 'SM'}\n\t\t// \t{text: 'Sao Tome And Principe', id: 'ST'}\n\t\t// \t{text: 'Saudi Arabia', id: 'SA'}\n\t\t// \t{text: 'Senegal', id: 'SN'}\n\t\t// \t{text: 'Serbia', id: 'RS'}\n\t\t// \t{text: 'Seychelles', id: 'SC'}\n\t\t// \t{text: 'Sierra Leone', id: 'SL'}\n\t\t// \t{text: 'Singapore', id: 'SG'}\n\t\t// \t{text: 'Slovakia', id: 'SK'}\n\t\t// \t{text: 'Slovenia', id: 'SI'}\n\t\t// \t{text: 'Solomon Islands', id: 'SB'}\n\t\t// \t{text: 'Somalia', id: 'SO'}\n\t\t// \t{text: 'South Africa', id: 'ZA'}\n\t\t// \t{text: 'South Georgia And Sandwich Isl.', id: 'GS'}\n\t\t// \t{text: 'Spain', id: 'ES'}\n\t\t// \t{text: 'Sri Lanka', id: 'LK'}\n\t\t// \t{text: 'Sudan', id: 'SD'}\n\t\t// \t{text: 'Suriname', id: 'SR'}\n\t\t// \t{text: 'Svalbard And Jan Mayen', id: 'SJ'}\n\t\t// \t{text: 'Swaziland', id: 'SZ'}\n\t\t// \t{text: 'Sweden', id: 'SE'}\n\t\t// \t{text: 'Switzerland', id: 'CH'}\n\t\t// \t{text: 'Syrian Arab Republic', id: 'SY'}\n\t\t// \t{text: 'Taiwan', id: 'TW'}\n\t\t// \t{text: 'Tajikistan', id: 'TJ'}\n\t\t// \t{text: 'Tanzania', id: 'TZ'}\n\t\t// \t{text: 'Thailand', id: 'TH'}\n\t\t// \t{text: 'Timor-Leste', id: 'TL'}\n\t\t// \t{text: 'Togo', id: 'TG'}\n\t\t// \t{text: 'Tokelau', id: 'TK'}\n\t\t// \t{text: 'Tonga', id: 'TO'}\n\t\t// \t{text: 'Trinidad And Tobago', id: 'TT'}\n\t\t// \t{text: 'Tunisia', id: 'TN'}\n\t\t// \t{text: 'Turkey', id: 'TR'}\n\t\t// \t{text: 'Turkmenistan', id: 'TM'}\n\t\t// \t{text: 'Turks And Caicos Islands', id: 'TC'}\n\t\t// \t{text: 'Tuvalu', id: 'TV'}\n\t\t// \t{text: 'Uganda', id: 'UG'}\n\t\t// \t{text: 'Ukraine', id: 'UA'}\n\t\t// \t{text: 'United Arab Emirates', id: 'AE'}\n\t\t// \t{text: 'United Kingdom', id: 'GB'}\n\t\t// \t{text: 'United States', id: 'US'}\n\t\t// \t{text: 'United States Outlying Islands', id: 'UM'}\n\t\t// \t{text: 'Uruguay', id: 'UY'}\n\t\t// \t{text: 'Uzbekistan', id: 'UZ'}\n\t\t// \t{text: 'Vanuatu', id: 'VU'}\n\t\t// \t{text: 'Venezuela', id: 'VE'}\n\t\t// \t{text: 'Viet Nam', id: 'VN'}\n\t\t// \t{text: 'Virgin Islands, British', id: 'VG'}\n\t\t// \t{text: 'Virgin Islands, U.S.', id: 'VI'}\n\t\t// \t{text: 'Wallis And Futuna', id: 'WF'}\n\t\t// \t{text: 'Western Sahara', id: 'EH'}\n\t\t// \t{text: 'Yemen', id: 'YE'}\n\t\t// \t{text: 'Zambia', id: 'ZM'}\n\t\t// \t{text: 'Zimbabwe', id: 'ZW'}\n\t\t// ]\n\t});\n});","define(\"aira-mgmt/components/user-address/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"tGD8tVId\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[1,[22,\\\"title\\\"],false],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"addressTypeOptions\\\"]],[24,[\\\"data\\\",\\\"addresstype\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectAddressType\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Street\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Street\\\",true,[24,[\\\"data\\\",\\\"address1\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Apt/Suite\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Apt/Suite\\\",[24,[\\\"data\\\",\\\"address2\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"City\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"City\\\",[24,[\\\"data\\\",\\\"city\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"State\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"State\\\",[24,[\\\"data\\\",\\\"state\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Zip\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Zip\\\",[24,[\\\"data\\\",\\\"zip\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Country\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"countryOptions\\\"]],[24,[\\\"data\\\",\\\"country\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectCountry\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onDelete\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"delete\\\"]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save Address \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/user-address/template.hbs\" } });\n});","define('aira-mgmt/components/user-answer/component', ['exports', 'aira-mgmt/mixins/model-editor'], function (exports, _modelEditor) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\n\n\tvar answerPropNames = ['qcode', 'questionText', 'answerText'];\n\n\texports.default = Ember.Component.extend(_modelEditor.default, {\n\n\t\tstate: Ember.inject.service(),\n\n\t\ttitle: null,\n\n\t\taddress: null,\n\n\t\tonSave: null,\n\n\t\tonCancel: null,\n\n\t\tonDelete: null,\n\n\t\tdata: null,\n\n\t\tinit: function init() {\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tthis._bindModelEditor('data', 'answer', answerPropNames);\n\t\t},\n\n\n\t\tactions: {\n\t\t\tsave: function save() {\n\t\t\t\tvar answerProps = this.get('data').getProperties(answerPropNames);\n\t\t\t\tthis.get('onSave')(this.get('answer'), answerProps);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.set('state.isDirty', false);\n\t\t\t\tthis.get('onCancel')(this.get('answer'));\n\t\t\t},\n\t\t\tdelete: function _delete() {\n\t\t\t\tif (confirm('Are you sure?')) {\n\t\t\t\t\tthis.get('onDelete')(this.get('answer'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/components/user-answer/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"EEDSA+IC\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[1,[22,\\\"title\\\"],false],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"QCode\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"input\\\",true],[10,\\\"class\\\",\\\"form-control\\\"],[10,\\\"placeholder\\\",\\\"QCode\\\"],[10,\\\"disabled\\\",\\\"true\\\"],[11,\\\"value\\\",[24,[\\\"data\\\",\\\"qcode\\\"]]],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Question\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"input\\\",true],[10,\\\"class\\\",\\\"form-control\\\"],[10,\\\"placeholder\\\",\\\"Question\\\"],[10,\\\"disabled\\\",\\\"true\\\"],[11,\\\"value\\\",[24,[\\\"data\\\",\\\"questionText\\\"]]],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Answer\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Answer\\\",true,[24,[\\\"data\\\",\\\"answerText\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onDelete\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"delete\\\"]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save Answer \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/user-answer/template.hbs\" } });\n});","define('aira-mgmt/components/user-contact/component', ['exports', 'aira-mgmt/mixins/model-editor'], function (exports, _modelEditor) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\n\n\tvar contactPropNames = ['firstName', 'lastName', 'email', 'phone', 'relationship'];\n\n\texports.default = Ember.Component.extend(_modelEditor.default, {\n\n\t\tstate: Ember.inject.service(),\n\n\t\ttitle: null,\n\n\t\tcontact: null,\n\n\t\tonSave: null,\n\n\t\tonCancel: null,\n\n\t\tonDelete: null,\n\n\t\tdata: null,\n\n\t\tinit: function init() {\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tthis._bindModelEditor('data', 'contact', contactPropNames);\n\t\t},\n\n\n\t\tactions: {\n\t\t\tselectRelationship: function selectRelationship(relationship) {\n\t\t\t\tthis.set('data.relationship', relationship);\n\t\t\t},\n\t\t\tsave: function save() {\n\t\t\t\tvar contactProps = this.get('data').getProperties(contactPropNames);\n\t\t\t\tthis.get('onSave')(this.get('contact'), contactProps);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.set('state.isDirty', false);\n\t\t\t\tthis.get('onCancel')(this.get('contact'));\n\t\t\t},\n\t\t\tdelete: function _delete() {\n\t\t\t\tif (confirm('Are you sure?')) {\n\t\t\t\t\tthis.get('onDelete')(this.get('contact'));\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\trelationshipOptions: [{ text: 'Spouse', id: 'Spouse' }, { text: 'Parent', id: 'Parent' }, { text: 'Child', id: 'Child' }, { text: 'Sibling', id: 'Sibling' }, { text: 'Partner', id: 'Partner' }, { text: 'Friend', id: 'Friend' }, { text: 'Other', id: 'Other' }]\n\t});\n});","define(\"aira-mgmt/components/user-contact/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"+pgfkXP0\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[1,[22,\\\"title\\\"],false],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"First Name\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"First Name\\\",true,[24,[\\\"data\\\",\\\"firstName\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Last Name\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Last Name\\\",[24,[\\\"data\\\",\\\"lastName\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"email\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Email\\\",[24,[\\\"data\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Phone\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Phone\\\",[24,[\\\"data\\\",\\\"phone\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Relationship\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"relationshipOptions\\\"]],[24,[\\\"data\\\",\\\"relationship\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectRelationship\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onDelete\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"delete\\\"]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save Contact \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/user-contact/template.hbs\" } });\n});","define('aira-mgmt/components/user-profile/component', ['exports', 'aira-mgmt/mixins/model-editor', 'aira-mgmt/config/environment'], function (exports, _modelEditor, _environment) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\n\n\tvar profilePropNames = ['id', 'uuid', 'status', 'firstName', 'lastName', 'phoneticFirstName', 'login', 'password', 'language', 'gender', 'dateOfBirth', 'phoneNumber', 'phoneVerified', 'properties', 'notes'];\n\n\texports.default = Ember.Component.extend(_modelEditor.default, {\n\n\t\tstate: Ember.inject.service(),\n\n\t\tprofile: null,\n\n\t\tportalUrl: null,\n\n\t\tonSave: null,\n\n\t\tonCancel: null,\n\n\t\tonNext: null,\n\n\t\tautofocusFirstName: false,\n\n\t\tdisableEmail: true,\n\n\t\tshowPassword: false, // defaulted to false, because returned password is hashed\n\n\t\tdata: null,\n\n\t\tnotes: '',\n\n\t\tisAiShareAuthSubscribed: Ember.computed('buildAiProgramJoined', function () {\n\t\t\tvar buildAiProgramJoined = this.get('profile').get('buildAiProgramJoined');\n\t\t\tif (buildAiProgramJoined === null) {\n\t\t\t\treturn 'null';\n\t\t\t}\n\t\t\treturn buildAiProgramJoined.toString();\n\t\t}),\n\n\t\tisShareSelectDisabled: Ember.computed('buildAiProgramJoined', function () {\n\t\t\treturn this.get('profile.buildAiProgramJoined') !== true;\n\t\t}),\n\n\t\tinit: function init() {\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tthis._bindModelEditor('data', 'profile', profilePropNames);\n\t\t\tvar languagesSelected = [];\n\t\t\tvar _iteratorNormalCompletion = true;\n\t\t\tvar _didIteratorError = false;\n\t\t\tvar _iteratorError = undefined;\n\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = this.get('profile').get('language')[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar language = _step.value;\n\t\t\t\t\tvar _iteratorNormalCompletion2 = true;\n\t\t\t\t\tvar _didIteratorError2 = false;\n\t\t\t\t\tvar _iteratorError2 = undefined;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor (var _iterator2 = this.get(\"languageOptions\")[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n\t\t\t\t\t\t\tvar languageOption = _step2.value;\n\n\t\t\t\t\t\t\tif (languageOption.id === language) {\n\t\t\t\t\t\t\t\tlanguagesSelected.push(languageOption);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t_didIteratorError2 = true;\n\t\t\t\t\t\t_iteratorError2 = err;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return) {\n\t\t\t\t\t\t\t\t_iterator2.return();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tif (_didIteratorError2) {\n\t\t\t\t\t\t\t\tthrow _iteratorError2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return) {\n\t\t\t\t\t\t_iterator.return();\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) {\n\t\t\t\t\t\tthrow _iteratorError;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.set('languageSelected', languagesSelected);\n\t\t\tvar props = this.get('data.properties');\n\t\t\tif (props && props.notes && props.notes.length > 0) {\n\t\t\t\tthis.set('data.notes', props.notes[0].value);\n\t\t\t}\n\t\t\tthis.set('portalUrl', _environment.default.APP.portal + '/users/' + this.get('profile').get('uuid'));\n\t\t},\n\t\tdidUpdateAttrs: function didUpdateAttrs() {\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tvar languagesSelected = [];\n\t\t\tvar _iteratorNormalCompletion3 = true;\n\t\t\tvar _didIteratorError3 = false;\n\t\t\tvar _iteratorError3 = undefined;\n\n\t\t\ttry {\n\t\t\t\tfor (var _iterator3 = this.get('profile').get('language')[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n\t\t\t\t\tvar language = _step3.value;\n\t\t\t\t\tvar _iteratorNormalCompletion4 = true;\n\t\t\t\t\tvar _didIteratorError4 = false;\n\t\t\t\t\tvar _iteratorError4 = undefined;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor (var _iterator4 = this.get(\"languageOptions\")[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {\n\t\t\t\t\t\t\tvar languageOption = _step4.value;\n\n\t\t\t\t\t\t\tif (languageOption.id === language) {\n\t\t\t\t\t\t\t\tlanguagesSelected.push(languageOption);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t_didIteratorError4 = true;\n\t\t\t\t\t\t_iteratorError4 = err;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!_iteratorNormalCompletion4 && _iterator4.return) {\n\t\t\t\t\t\t\t\t_iterator4.return();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tif (_didIteratorError4) {\n\t\t\t\t\t\t\t\tthrow _iteratorError4;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError3 = true;\n\t\t\t\t_iteratorError3 = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion3 && _iterator3.return) {\n\t\t\t\t\t\t_iterator3.return();\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError3) {\n\t\t\t\t\t\tthrow _iteratorError3;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.set('languageSelected', languagesSelected);\n\t\t},\n\n\n\t\tactions: {\n\t\t\tselectLanguage: function selectLanguage(languages) {\n\t\t\t\tthis.set('data.language', languages.map(function (l) {\n\t\t\t\t\treturn l.id;\n\t\t\t\t}));\n\t\t\t\tthis.set('languageSelected', languages);\n\t\t\t},\n\t\t\tselectBuildAiProgramJoined: function selectBuildAiProgramJoined(buildAiProgramJoined) {\n\t\t\t\tvar buildAiProgramJoinedProp = this.get('data').getProperties(['properties']);\n\t\t\t\tbuildAiProgramJoinedProp.properties['buildAiProgramJoined'][0]['value'] = Boolean(buildAiProgramJoined === 'true');\n\t\t\t\tthis.set('data.properties', buildAiProgramJoinedProp.properties);\n\t\t\t},\n\t\t\tselectStatus: function selectStatus(status) {\n\t\t\t\tthis.set('data.status', status);\n\t\t\t},\n\t\t\tselectGender: function selectGender(gender) {\n\t\t\t\tthis.set('data.gender', gender);\n\t\t\t},\n\t\t\tupdateUserNotes: function updateUserNotes(editor) {\n\t\t\t\t// Get the HTML content directly from the editor\n\t\t\t\tvar htmlContent = editor.getText().trim() ? editor.root.innerHTML : '';\n\t\t\t\t// Update both data.notes and properties.notes\n\t\t\t\tvar notesProp = this.get('data').getProperties(['properties']);\n\t\t\t\tnotesProp.properties['notes'][0]['value'] = htmlContent;\n\t\t\t\tthis.set('data.properties', notesProp.properties);\n\t\t\t},\n\t\t\tsave: function save() {\n\t\t\t\t// Ensure we're saving the latest notes value\n\t\t\t\tvar profileProps = this.get('data').getProperties(profilePropNames);\n\t\t\t\tthis.get('onSave')(this.get('profile'), profileProps);\n\t\t\t},\n\t\t\tnext: function next() {\n\t\t\t\tvar profileProps = this.get('data').getProperties(profilePropNames);\n\t\t\t\tthis.get('onNext')(this.get('profile'), profileProps);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.get('onCancel')();\n\t\t\t}\n\t\t},\n\n\t\tstatusOptions: [{ text: 'Active', id: 'Active' }, { text: 'Inactive', id: 'Inactive' }, { text: 'Suspended', id: 'Suspended' }, { text: 'Test Mode', id: 'Test Mode' }],\n\n\t\tgenderOptions: [{ text: 'Male', id: 'male' }, { text: 'Female', id: 'female' }, { text: 'Gender Fluid', id: 'gender-fluid' }, { text: 'Not Disclosed', id: 'not-disclosed' }],\n\n\t\tbuildAiProgramJoinedOptions: [{ text: 'Yes', id: 'true' }, { text: 'No', id: 'false' }],\n\n\t\tlanguageOptions: [{ text: \"English\", id: \"English\" }, { text: \"French\", id: \"French\" }, { text: \"Spanish\", id: \"Spanish\" }],\n\t\tlanguageSelected: null\n\t});\n});","define(\"aira-mgmt/components/user-profile/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"ajx9cU4V\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"profile\\\",\\\"isBts\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-info alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n        This Explorer is enrolled in the Back to School program until September 2020 and cannot change plans.\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"profile\\\",\\\"isSecondary\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-info alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n        This is a secondary user sharing the minutes of another Explorer.\\\\n        Check the \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.subscription\\\",[24,[\\\"profile\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[0,\\\"Billing tab\\\"]],\\\"parameters\\\":[]},null],[0,\\\" for more info.\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"profile\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-info alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n        User is a Guest.\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"User ID\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"input\\\",true],[10,\\\"class\\\",\\\"form-control\\\"],[10,\\\"placeholder\\\",\\\"-\\\"],[10,\\\"disabled\\\",\\\"disabled\\\"],[11,\\\"value\\\",[24,[\\\"data\\\",\\\"id\\\"]]],[10,\\\"type\\\",\\\"text\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"First Name\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"First Name\\\",[24,[\\\"autofocusFirstName\\\"]],[24,[\\\"data\\\",\\\"firstName\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Last Name\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"Last Name\\\",[24,[\\\"data\\\",\\\"lastName\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Email/Login\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"Email/Login\\\",[24,[\\\"data\\\",\\\"login\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Status: \\\"],[1,[24,[\\\"data\\\",\\\"status\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"statusOptions\\\"]],[24,[\\\"data\\\",\\\"status\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectStatus\\\"],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Phonetic Name\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"Phonetic First Name\\\",[24,[\\\"data\\\",\\\"phoneticFirstName\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Date of Birth\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"mask\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"9999-99-99\\\",\\\"YYYY-MM-DD\\\",[24,[\\\"data\\\",\\\"dateOfBirth\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Gender\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"genderOptions\\\"]],[24,[\\\"data\\\",\\\"gender\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectGender\\\"],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n           \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Phone Number\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"+12223334444\\\",[24,[\\\"data\\\",\\\"phoneNumber\\\"]]]]],false],[0,\\\"\\\\n           \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Number Verified\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"form-control\\\",\\\"phoneVerified\\\",[24,[\\\"data\\\",\\\"phoneVerified\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      Marking a number as verified will remove all matching numbers on other userIds,\\\\n      but grant guest upgrade option.\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isShareSelectDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Build AI Program Member\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"isAiShareAuthSubscribed\\\"]],\\\"false\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"label\\\",true],[8],[0,\\\"No (declined)\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"label\\\",true],[8],[0,\\\"No (not declared)\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"title\\\",\\\"The user can join the program through the explorer app by navigating to the preferences screen on the 'more' tab.\\\"],[8],[0,\\\" \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Build AI Program Member\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"buildAiProgramJoinedOptions\\\"]],[24,[\\\"isAiShareAuthSubscribed\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectBuildAiProgramJoined\\\"],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"User Portal Settings\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[22,\\\"portalUrl\\\"]]]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"Aira AI with more to come\\\"],[9],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showPassword\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Password\\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"Password\\\",[24,[\\\"data\\\",\\\"password\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-12\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"id\\\",\\\"languages-label\\\"],[8],[0,\\\"Languages\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"accessible-multi-select\\\",null,[[\\\"options\\\",\\\"selected\\\",\\\"onchange\\\",\\\"placeholder\\\",\\\"labelId\\\",\\\"ariaDescribedBy\\\"],[[24,[\\\"languageOptions\\\"]],[24,[\\\"languageSelected\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectLanguage\\\"],null],\\\"Select languages\\\",\\\"languages-label\\\",\\\"languages-help\\\"]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"id\\\",\\\"languages-help\\\"],[10,\\\"class\\\",\\\"sr-only\\\"],[8],[0,\\\"Use arrow keys to navigate, Space or Enter to select or deselect languages\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-12\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"User Notes\\\"],[9],[0,\\\"\\\\n    \\\"],[5,\\\"quill-editor\\\",[],[[\\\"@value\\\",\\\"@textChange\\\",\\\"@options\\\"],[[24,[\\\"data\\\",\\\"notes\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"updateUserNotes\\\"],null],[28,\\\"hash\\\",null,[[\\\"theme\\\",\\\"placeholder\\\",\\\"modules\\\"],[\\\"snow\\\",\\\"Enter notes here...\\\",[28,\\\"hash\\\",null,[[\\\"toolbar\\\"],[[28,\\\"array\\\",[[28,\\\"array\\\",[\\\"bold\\\",\\\"italic\\\",\\\"underline\\\",\\\"strike\\\"],null],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"list\\\"],[\\\"ordered\\\"]]],[28,\\\"hash\\\",null,[[\\\"list\\\"],[\\\"bullet\\\"]]]],null],[28,\\\"array\\\",[\\\"link\\\"],null],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"header\\\"],[[28,\\\"array\\\",[1,2,3,4,5,6],null]]]]],null],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"size\\\"],[[28,\\\"array\\\",[\\\"small\\\",false,\\\"large\\\"],null]]]]],null],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"color\\\"],[[28,\\\"array\\\",null,null]]]],[28,\\\"hash\\\",null,[[\\\"background\\\"],[[28,\\\"array\\\",null,null]]]]],null],[28,\\\"array\\\",[\\\"clean\\\"],null]],null]]]]]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onCancel\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onSave\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"onNext\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"next\\\"]],[8],[0,\\\"Next \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/user-profile/template.hbs\" } });\n});","define('aira-mgmt/components/user-roles/component', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Component.extend({\n\n\t\tstate: Ember.inject.service(),\n\n\t\tappNames: ['AIRA SMART', 'AGENT DASHBOARD', 'MGMT DASHBOARD', 'SSP', 'PORTAL'],\n\n\t\troleNames: ['ADMIN', 'AIRA AGENT', 'LV USER', 'OBSERVER'],\n\n\t\t/**\n   * Passed-in roles from model\n   */\n\t\tappRoles: null,\n\n\t\t/**\n   * Deep copy of appRoles\n   */\n\t\tdata: null,\n\n\t\t/**\n   * Callback receives data\n   */\n\t\tonSave: null,\n\n\t\tdidReceiveAttrs: function didReceiveAttrs() {\n\t\t\tthis._super.apply(this, arguments);\n\n\t\t\tvar appRoles = this.get('appRoles');\n\n\t\t\tif (appRoles == null) {\n\t\t\t\tappRoles = [];\n\t\t\t}\n\n\t\t\tvar data = [];\n\n\t\t\tappRoles.forEach(function (app) {\n\t\t\t\tvar roles = [];\n\t\t\t\tapp.roles.forEach(function (role) {\n\t\t\t\t\troles.push(role);\n\t\t\t\t});\n\n\t\t\t\tdata.push({\n\t\t\t\t\tappName: app.appName,\n\t\t\t\t\troles: roles\n\t\t\t\t});\n\t\t\t});\n\n\t\t\tthis.set('data', data);\n\t\t},\n\n\n\t\tactions: {\n\t\t\ttoggleRole: function toggleRole(appName, roleName, e) {\n\t\t\t\tvar isChecked = e.target.checked;\n\t\t\t\tvar data = this.get('data');\n\n\t\t\t\tvar app = data.find(function (app) {\n\t\t\t\t\treturn appName === app.appName;\n\t\t\t\t});\n\t\t\t\t// No roles for given appName existed\n\t\t\t\tif (!app) {\n\t\t\t\t\tdata.push({\n\t\t\t\t\t\tappName: appName,\n\t\t\t\t\t\troles: [roleName]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t// Roles existed, and we are adding\n\t\t\t\telse if (isChecked) {\n\t\t\t\t\t\tapp.roles.push(roleName);\n\t\t\t\t\t}\n\t\t\t\t\t// Roles existed, and we are removing\n\t\t\t\t\telse {\n\t\t\t\t\t\t\tvar roleIndex = app.roles.indexOf(roleName);\n\t\t\t\t\t\t\tapp.roles.splice(roleIndex, 1);\n\t\t\t\t\t\t\tif (app.roles.length === 0) {\n\t\t\t\t\t\t\t\tfor (var i = 0, l = data.length; i < l; i++) {\n\t\t\t\t\t\t\t\t\tif (app.appName === data[i].appName) {\n\t\t\t\t\t\t\t\t\t\tdata.splice(i, 1);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t// Always mark dirty on toggle. Not currently maintaining a check to see if\n\t\t\t\t// the end result of toggling actually left us in a dirty state like other screens do.\n\t\t\t\tthis.set('state.isDirty', true);\n\t\t\t},\n\t\t\tsave: function save() {\n\t\t\t\tthis.get('onSave')(this.get('data'));\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/components/user-roles/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"Lm7I5D/I\", \"block\": \"{\\\"symbols\\\":[\\\"appName\\\",\\\"roleName\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"mt-20 content-group-lg\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"appNames\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"h6\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"roleNames\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"checkbox\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\",true],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\",true],[11,\\\"checked\\\",[28,\\\"has-role\\\",[[23,1,[]],[23,2,[]],[24,[\\\"data\\\"]]],null]],[11,\\\"onClick\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleRole\\\",[23,1,[]],[23,2,[]]],null]],[10,\\\"type\\\",\\\"checkbox\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/user-roles/template.hbs\" } });\n});","define('aira-mgmt/components/user-setting/component', ['exports', 'aira-mgmt/mixins/model-editor'], function (exports, _modelEditor) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\n\n\tvar settingsPropNames = ['testUser'];\n\n\texports.default = Ember.Component.extend(_modelEditor.default, {\n\n\t\tstate: Ember.inject.service(),\n\n\t\ttitle: null,\n\n\t\tsettings: null,\n\n\t\tonSave: null,\n\n\t\tonCancel: null,\n\n\t\tonDelete: null,\n\n\t\tdata: null,\n\n\t\tisSecondary: null,\n\n\t\tinit: function init() {\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tthis._bindModelEditor('data', 'settings', settingsPropNames);\n\t\t},\n\n\n\t\tactions: {\n\t\t\tsave: function save() {\n\t\t\t\tvar settingsProps = this.get('data').getProperties(settingsPropNames);\n\t\t\t\tthis.get('onSave')(this.get('settings'), settingsProps);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.set('state.isDirty', false);\n\t\t\t\tthis.get('onCancel')(this.get('settings'));\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/components/user-setting/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"nc+A9WAE\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"User Settings\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"form\\\",true],[10,\\\"class\\\",\\\"form-horizontal\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"testUserCheckbox\\\"],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-2 control-label\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\tTest User\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"testUserCheckbox\\\",\\\"checkbox\\\",\\\"testUser\\\",[24,[\\\"data\\\",\\\"testUser\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"help-block\\\"],[8],[0,\\\"Ignore this user in all reporting.\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/user-setting/template.hbs\" } });\n});","define('aira-mgmt/components/welcome-page', ['exports', 'ember-welcome-page/components/welcome-page'], function (exports, _welcomePage) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _welcomePage.default;\n    }\n  });\n});","define('aira-mgmt/components/wifi-profile/component', ['exports', 'aira-mgmt/mixins/model-editor'], function (exports, _modelEditor) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\n\n\tvar wifiPropNames = ['userId', 'profileId', 'priority', 'ssid', 'securityType', 'secretKey', 'type'];\n\n\texports.default = Ember.Component.extend(_modelEditor.default, {\n\n\t\tstate: Ember.inject.service(),\n\n\t\ttitle: null,\n\n\t\tprofile: null,\n\n\t\tonSave: null,\n\n\t\tonCancel: null,\n\n\t\tonDelete: null,\n\n\t\tdata: null,\n\n\t\tkeyNotRequired: Ember.computed('data.securityType', function () {\n\t\t\tif (this.get('data.securityType') === 'None') {\n\t\t\t\tthis.set('data.secretKey', '');\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}),\n\n\t\tinit: function init() {\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tthis._bindModelEditor('data', 'profile', wifiPropNames);\n\t\t},\n\n\n\t\tactions: {\n\t\t\tselectSecurityType: function selectSecurityType(securityType) {\n\t\t\t\tthis.set('data.securityType', securityType);\n\t\t\t},\n\t\t\tselectType: function selectType(type) {\n\t\t\t\tthis.set('data.type', type);\n\t\t\t},\n\t\t\tsave: function save() {\n\t\t\t\tvar wifiProps = this.get('data').getProperties(wifiPropNames);\n\t\t\t\tthis.get('onSave')(this.get('profile'), wifiProps);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.set('state.isDirty', false);\n\t\t\t\tthis.get('onCancel')(this.get('profile'));\n\t\t\t},\n\t\t\tdelete: function _delete() {\n\t\t\t\tif (confirm('Are you sure?')) {\n\t\t\t\t\tthis.get('onDelete')(this.get('profile'));\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tsecurityOptions: [{ text: 'None', id: 'None' }, { text: 'WEP', id: 'WEP' }, { text: 'WPA', id: 'WPA' }, { text: 'WPA2', id: 'WPA2' }, { text: 'WPA2_PSK', id: 'WPA2_PSK' }],\n\n\t\ttypeOptions: [{ text: 'WIFI', id: 'WIFI' }, { text: 'HOTSPOT', id: 'HOTSPOT' }, { text: 'MIFI', id: 'MIFI' }]\n\t});\n});","define(\"aira-mgmt/components/wifi-profile/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"JsN4nuc1\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[1,[22,\\\"title\\\"],false],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-1\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Favorite\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"form-control\\\",[24,[\\\"data\\\",\\\"priority\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"SSID\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"data-input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"SSID\\\",true,[24,[\\\"data\\\",\\\"ssid\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Security Type\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"securityOptions\\\"]],[24,[\\\"data\\\",\\\"securityType\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectSecurityType\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"label\\\",true],[8],[0,\\\"Secret Key\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"Security Key\\\",[24,[\\\"keyNotRequired\\\"]],[24,[\\\"data\\\",\\\"secretKey\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[[24,[\\\"typeOptions\\\"]],[24,[\\\"data\\\",\\\"type\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectType\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"data\\\",\\\"priority\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row content-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-12\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"text-muted\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"When setting a favorite, be sure to uncheck any existing favorites as well.\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onDelete\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"delete\\\"]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\"]],[8],[0,\\\"Save Wifi Profile \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/components/wifi-profile/template.hbs\" } });\n});","define('aira-mgmt/controllers/login', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    isLoading: false\n  });\n});","define('aira-mgmt/helpers/active', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.active = active;\n  function active(params /*, hash*/) {\n    var activeTab = params[0];\n    if (params.slice(1).any(function (tab) {\n      return activeTab === tab;\n    })) {\n      return 'active';\n    }\n  }\n\n  exports.default = Ember.Helper.helper(active);\n});","define('aira-mgmt/helpers/and', ['exports', 'ember-truth-helpers/helpers/and'], function (exports, _and) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n  Object.defineProperty(exports, 'and', {\n    enumerable: true,\n    get: function () {\n      return _and.and;\n    }\n  });\n});","define('aira-mgmt/helpers/app-version', ['exports', 'aira-mgmt/config/environment', 'ember-cli-app-version/utils/regexp'], function (exports, _environment, _regexp) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.appVersion = appVersion;\n  function appVersion(_) {\n    var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n    var version = _environment.default.APP.version;\n    // e.g. 1.0.0-alpha.1+4jds75hf\n\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n    var versionOnly = hash.versionOnly || hash.hideSha;\n    var shaOnly = hash.shaOnly || hash.hideVersion;\n\n    var match = null;\n\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      }\n      // Fallback to just version\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n\n    return match ? match[0] : version;\n  }\n\n  exports.default = Ember.Helper.helper(appVersion);\n});","define(\"aira-mgmt/helpers/bannable\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.bannable = bannable;\n  function bannable(deviceSerial) {\n    return !deviceSerial[0];\n  }\n\n  exports.default = Ember.Helper.helper(bannable);\n});","define('aira-mgmt/helpers/build-ia-status', ['exports'], function (exports) {\n    'use strict';\n\n    Object.defineProperty(exports, \"__esModule\", {\n        value: true\n    });\n    exports.buildIaStatus = buildIaStatus;\n    function buildIaStatus(params /*, hash*/) {\n        var onlyValue = params[1];\n        if (params[0] == null) {\n            if (onlyValue) {\n                return '';\n            }\n            return 'Can only be enabled by the explorer on the call history page';\n        }\n        var print = '';\n        var status = params[0];\n\n        print = status.toLowerCase().split('_').map(function (word) {\n            return word.charAt(0).toUpperCase() + word.slice(1);\n        }).join(' ');\n        if (onlyValue) {\n            return print;\n        }\n        return \"Can not be changed reason: \" + print;\n    }\n\n    exports.default = Ember.Helper.helper(buildIaStatus);\n});","define('aira-mgmt/helpers/cancel-all', ['exports', 'ember-concurrency/helpers/cancel-all'], function (exports, _cancelAll) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _cancelAll.default;\n    }\n  });\n});","define('aira-mgmt/helpers/change-ISO-to-PST', ['exports', 'luxon'], function (exports, _luxon) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.changeISOtoPST = changeISOtoPST;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function changeISOtoPST(_ref) {\n    var _ref2 = _slicedToArray(_ref, 1),\n        date = _ref2[0];\n\n    if (!date || date === '') return '';\n\n    var parsedOnlyDate = _luxon.DateTime.fromFormat(date, 'yyyy-MM-dd', { zone: 'America/Los_Angeles' });\n    if (parsedOnlyDate.isValid) {\n      return date;\n    }\n\n    var dateTime = _luxon.DateTime.fromISO(date, { zone: 'UTC' });\n    if (dateTime.isValid) {\n      return dateTime.setZone('America/Los_Angeles').toFormat('yyyy-MM-dd HH:mm');\n    } else {\n      return date;\n    }\n  }\n\n  exports.default = Ember.Helper.helper(changeISOtoPST);\n});","define('aira-mgmt/helpers/change-PST-to-ISO', ['exports', 'luxon'], function (exports, _luxon) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.changePSTtoISO = changePSTtoISO;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function changePSTtoISO(_ref) {\n    var _ref2 = _slicedToArray(_ref, 1),\n        date = _ref2[0];\n\n    if (!date || date === '') return '';\n\n    var parsedOnlyDate = _luxon.DateTime.fromFormat(date, 'yyyy-MM-dd', { zone: 'America/Los_Angeles' });\n    if (parsedOnlyDate.isValid) {\n      return date;\n    }\n\n    var parsedDate = _luxon.DateTime.fromFormat(date, 'yyyy-MM-dd HH:mm', { zone: 'America/Los_Angeles' });\n\n    if (!parsedDate.isValid) {\n      return date;\n    }\n\n    return parsedDate.setZone('UTC').toISO({ suppressMilliseconds: true });\n  }\n\n  exports.default = Ember.Helper.helper(changePSTtoISO);\n});","define('aira-mgmt/helpers/changeset-get', ['exports', 'ember-changeset/helpers/changeset-get'], function (exports, _changesetGet) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _changesetGet.default;\n    }\n  });\n});","define('aira-mgmt/helpers/changeset-set', ['exports', 'ember-changeset/helpers/changeset-set'], function (exports, _changesetSet) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.default;\n    }\n  });\n  Object.defineProperty(exports, 'changesetSet', {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.changesetSet;\n    }\n  });\n});","define('aira-mgmt/helpers/changeset', ['exports', 'ember-changeset/helpers/changeset'], function (exports, _changeset) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _changeset.default;\n    }\n  });\n  Object.defineProperty(exports, 'changeset', {\n    enumerable: true,\n    get: function () {\n      return _changeset.changeset;\n    }\n  });\n});","define(\"aira-mgmt/helpers/contains\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.contains = contains;\n  /**\n   * {{contains searchItem arrayOfItemsToSearch}}\n   * @param params\n   * @returns {boolean} True if found\n   */\n  function contains(params /*, hash*/) {\n    return params[1] && params[1].length > 0 && params[1].indexOf(params[0]) !== -1;\n  }\n\n  exports.default = Ember.Helper.helper(contains);\n});","define('aira-mgmt/helpers/duration-allowed', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.durationAllowed = durationAllowed;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function durationAllowed(_ref) {\n    var _ref2 = _slicedToArray(_ref, 1),\n        access = _ref2[0];\n\n    if (access.userType !== 'business') {\n      return '';\n    } else if (access.durationAllowed === -1) {\n      return 'Unlimited';\n    }\n    return Math.ceil(access.durationAllowed / 60) + (access.resetDurationUsed === 'UTC_MONTH' ? '/month' : '');\n  }\n\n  exports.default = Ember.Helper.helper(durationAllowed);\n});","define('aira-mgmt/helpers/duration-used', ['exports', 'ember-inflector'], function (exports, _emberInflector) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.durationUsed = durationUsed;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function durationUsed(_ref) {\n    var _ref2 = _slicedToArray(_ref, 1),\n        access = _ref2[0];\n\n    if (access.userType !== 'business') {\n      return '';\n    }\n    return (0, _emberInflector.pluralize)(Math.ceil(access.durationUsed / 60), 'minute');\n  }\n\n  exports.default = Ember.Helper.helper(durationUsed);\n});","define('aira-mgmt/helpers/duration', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.duration = duration;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function duration(_ref) {\n    var _ref2 = _slicedToArray(_ref, 2),\n        minutes = _ref2[0],\n        seconds = _ref2[1];\n\n    if (minutes === 0) {\n      return seconds + ' seconds';\n    }\n    seconds = seconds - minutes * 60;\n    return minutes + ' minutes ' + seconds + ' seconds';\n  }\n\n  exports.default = Ember.Helper.helper(duration);\n});","define(\"aira-mgmt/helpers/either\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.either = either;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function either(_ref) /*, hash*/{\n    var _ref2 = _slicedToArray(_ref, 2),\n        leftSide = _ref2[0],\n        rightSide = _ref2[1];\n\n    return leftSide || rightSide;\n  }\n\n  exports.default = Ember.Helper.helper(either);\n});","define('aira-mgmt/helpers/ember-power-select-is-group', ['exports', 'ember-power-select/helpers/ember-power-select-is-group'], function (exports, _emberPowerSelectIsGroup) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsGroup.default;\n    }\n  });\n  Object.defineProperty(exports, 'emberPowerSelectIsGroup', {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsGroup.emberPowerSelectIsGroup;\n    }\n  });\n});","define('aira-mgmt/helpers/ember-power-select-is-selected', ['exports', 'ember-power-select/helpers/ember-power-select-is-selected'], function (exports, _emberPowerSelectIsSelected) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsSelected.default;\n    }\n  });\n  Object.defineProperty(exports, 'emberPowerSelectIsSelected', {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsSelected.emberPowerSelectIsSelected;\n    }\n  });\n});","define('aira-mgmt/helpers/ember-power-select-true-string-if-present', ['exports', 'ember-power-select/helpers/ember-power-select-true-string-if-present'], function (exports, _emberPowerSelectTrueStringIfPresent) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectTrueStringIfPresent.default;\n    }\n  });\n  Object.defineProperty(exports, 'emberPowerSelectTrueStringIfPresent', {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectTrueStringIfPresent.emberPowerSelectTrueStringIfPresent;\n    }\n  });\n});","define('aira-mgmt/helpers/eq', ['exports', 'ember-truth-helpers/helpers/equal'], function (exports, _equal) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _equal.default;\n    }\n  });\n  Object.defineProperty(exports, 'equal', {\n    enumerable: true,\n    get: function () {\n      return _equal.equal;\n    }\n  });\n});","define(\"aira-mgmt/helpers/equal\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.equal = equal;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function equal(_ref) /*, hash*/{\n    var _ref2 = _slicedToArray(_ref, 2),\n        leftSide = _ref2[0],\n        rightSide = _ref2[1];\n\n    return leftSide === rightSide;\n  }\n\n  exports.default = Ember.Helper.helper(equal);\n});","define('aira-mgmt/helpers/find-by-type', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.findByType = findByType;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function findByType(_ref) /*, hash*/{\n    var _ref2 = _slicedToArray(_ref, 3),\n        type = _ref2[0],\n        array = _ref2[1],\n        property = _ref2[2];\n\n    if (!array || !Array.isArray(array)) {\n      return undefined;\n    }\n\n    var item = array.find(function (item) {\n      return item.type === type;\n    });\n    if (!item) {\n      return undefined;\n    }\n\n    // Handle boolean conversion for checkbox values\n    if (property === 'value' && (item[property] === 'true' || item[property] === 'false')) {\n      return item[property] === 'true';\n    }\n\n    return item[property];\n  }\n\n  exports.default = Ember.Helper.helper(findByType);\n});","define('aira-mgmt/helpers/format-money', ['exports', 'accounting/helpers/format-money'], function (exports, _formatMoney) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _formatMoney.default;\n});","define('aira-mgmt/helpers/format-number', ['exports', 'accounting/helpers/format-number'], function (exports, _formatNumber) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _formatNumber.default;\n});","define(\"aira-mgmt/helpers/get-epoch-date\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.getEpochDate = getEpochDate;\n  function getEpochDate(epoch) {\n    return new Date(Number(epoch)).toUTCString();\n  }\n\n  exports.default = Ember.Helper.helper(getEpochDate);\n});","define('aira-mgmt/helpers/gt', ['exports', 'ember-truth-helpers/helpers/gt'], function (exports, _gt) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _gt.default;\n    }\n  });\n  Object.defineProperty(exports, 'gt', {\n    enumerable: true,\n    get: function () {\n      return _gt.gt;\n    }\n  });\n});","define('aira-mgmt/helpers/gte', ['exports', 'ember-truth-helpers/helpers/gte'], function (exports, _gte) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _gte.default;\n    }\n  });\n  Object.defineProperty(exports, 'gte', {\n    enumerable: true,\n    get: function () {\n      return _gte.gte;\n    }\n  });\n});","define(\"aira-mgmt/helpers/has-role\", [\"exports\"], function (exports) {\n\t\"use strict\";\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.hasRole = hasRole;\n\n\tvar _slicedToArray = function () {\n\t\tfunction sliceIterator(arr, i) {\n\t\t\tvar _arr = [];\n\t\t\tvar _n = true;\n\t\t\tvar _d = false;\n\t\t\tvar _e = undefined;\n\n\t\t\ttry {\n\t\t\t\tfor (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n\t\t\t\t\t_arr.push(_s.value);\n\n\t\t\t\t\tif (i && _arr.length === i) break;\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_d = true;\n\t\t\t\t_e = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_n && _i[\"return\"]) _i[\"return\"]();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_d) throw _e;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn _arr;\n\t\t}\n\n\t\treturn function (arr, i) {\n\t\t\tif (Array.isArray(arr)) {\n\t\t\t\treturn arr;\n\t\t\t} else if (Symbol.iterator in Object(arr)) {\n\t\t\t\treturn sliceIterator(arr, i);\n\t\t\t} else {\n\t\t\t\tthrow new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n\t\t\t}\n\t\t};\n\t}();\n\n\tfunction hasRole(_ref) {\n\t\tvar _ref2 = _slicedToArray(_ref, 3),\n\t\t    appName = _ref2[0],\n\t\t    roleName = _ref2[1],\n\t\t    appRoles = _ref2[2];\n\n\t\tfor (var i = 0, il = appRoles.length; i < il; i++) {\n\t\t\tif (appName === appRoles[i].appName) {\n\t\t\t\tfor (var j = 0, jl = appRoles[i].roles.length; j < jl; j++) {\n\t\t\t\t\tif (roleName === appRoles[i].roles[j]) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\texports.default = Ember.Helper.helper(hasRole);\n});","define('aira-mgmt/helpers/is-after', ['exports', 'ember-moment/helpers/is-after'], function (exports, _isAfter) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isAfter.default;\n    }\n  });\n});","define('aira-mgmt/helpers/is-array', ['exports', 'ember-truth-helpers/helpers/is-array'], function (exports, _isArray) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isArray.default;\n    }\n  });\n  Object.defineProperty(exports, 'isArray', {\n    enumerable: true,\n    get: function () {\n      return _isArray.isArray;\n    }\n  });\n});","define('aira-mgmt/helpers/is-before', ['exports', 'ember-moment/helpers/is-before'], function (exports, _isBefore) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isBefore.default;\n    }\n  });\n});","define('aira-mgmt/helpers/is-between', ['exports', 'ember-moment/helpers/is-between'], function (exports, _isBetween) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isBetween.default;\n    }\n  });\n});","define('aira-mgmt/helpers/is-emergency-contact', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.isEmergencyContact = isEmergencyContact;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function isEmergencyContact(_ref) /*, hash*/{\n    var _ref2 = _slicedToArray(_ref, 1),\n        contact = _ref2[0];\n\n    var type = contact.get('type');\n    return type === 'Emergency' || type === 'emergency';\n  }\n\n  exports.default = Ember.Helper.helper(isEmergencyContact);\n});","define('aira-mgmt/helpers/is-empty', ['exports', 'ember-truth-helpers/helpers/is-empty'], function (exports, _isEmpty) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isEmpty.default;\n    }\n  });\n});","define('aira-mgmt/helpers/is-equal', ['exports', 'ember-truth-helpers/helpers/is-equal'], function (exports, _isEqual) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isEqual.default;\n    }\n  });\n  Object.defineProperty(exports, 'isEqual', {\n    enumerable: true,\n    get: function () {\n      return _isEqual.isEqual;\n    }\n  });\n});","define('aira-mgmt/helpers/is-multi', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.isMulti = isMulti;\n  function isMulti(type) {\n    return type.toString().startsWith('MULTI');\n  }\n\n  exports.default = Ember.Helper.helper(isMulti);\n});","define('aira-mgmt/helpers/is-same-or-after', ['exports', 'ember-moment/helpers/is-same-or-after'], function (exports, _isSameOrAfter) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isSameOrAfter.default;\n    }\n  });\n});","define('aira-mgmt/helpers/is-same-or-before', ['exports', 'ember-moment/helpers/is-same-or-before'], function (exports, _isSameOrBefore) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isSameOrBefore.default;\n    }\n  });\n});","define('aira-mgmt/helpers/is-same', ['exports', 'ember-moment/helpers/is-same'], function (exports, _isSame) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _isSame.default;\n    }\n  });\n});","define('aira-mgmt/helpers/last', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.last = last;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function last(_ref) /*, hash*/{\n    var _ref2 = _slicedToArray(_ref, 2),\n        item = _ref2[0],\n        array = _ref2[1];\n\n    if (!array || !array.length) return false;\n    return item === array[array.length - 1];\n  }\n\n  exports.default = Ember.Helper.helper(last);\n});","define('aira-mgmt/helpers/lt', ['exports', 'ember-truth-helpers/helpers/lt'], function (exports, _lt) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _lt.default;\n    }\n  });\n  Object.defineProperty(exports, 'lt', {\n    enumerable: true,\n    get: function () {\n      return _lt.lt;\n    }\n  });\n});","define('aira-mgmt/helpers/lte', ['exports', 'ember-truth-helpers/helpers/lte'], function (exports, _lte) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _lte.default;\n    }\n  });\n  Object.defineProperty(exports, 'lte', {\n    enumerable: true,\n    get: function () {\n      return _lte.lte;\n    }\n  });\n});","define('aira-mgmt/helpers/min-effective-to', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.minEffectiveTo = minEffectiveTo;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function minEffectiveTo(_ref) {\n    var _ref2 = _slicedToArray(_ref, 1),\n        access = _ref2[0];\n\n    if (access.userType !== 'business') {\n      return '';\n    } else if (access.effectiveTo === null) {\n      return 'No end date';\n    }\n    return access.effectiveTo;\n  }\n\n  exports.default = Ember.Helper.helper(minEffectiveTo);\n});","define('aira-mgmt/helpers/minutes', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.minutes = minutes;\n  function minutes(input) {\n    var minutes = ~~(input / 60); // ~~ removes the decimal\n    var seconds = input % 60;\n    return minutes + ' minutes ' + seconds + ' seconds';\n  }\n\n  exports.default = Ember.Helper.helper(minutes);\n});","define('aira-mgmt/helpers/moment-add', ['exports', 'ember-moment/helpers/moment-add'], function (exports, _momentAdd) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentAdd.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-calendar', ['exports', 'ember-moment/helpers/moment-calendar'], function (exports, _momentCalendar) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentCalendar.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-diff', ['exports', 'ember-moment/helpers/moment-diff'], function (exports, _momentDiff) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentDiff.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-duration', ['exports', 'ember-moment/helpers/moment-duration'], function (exports, _momentDuration) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentDuration.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-format', ['exports', 'ember-moment/helpers/moment-format'], function (exports, _momentFormat) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentFormat.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-from-now', ['exports', 'ember-moment/helpers/moment-from-now'], function (exports, _momentFromNow) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentFromNow.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-from', ['exports', 'ember-moment/helpers/moment-from'], function (exports, _momentFrom) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentFrom.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-subtract', ['exports', 'ember-moment/helpers/moment-subtract'], function (exports, _momentSubtract) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentSubtract.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-to-date', ['exports', 'ember-moment/helpers/moment-to-date'], function (exports, _momentToDate) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentToDate.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-to-now', ['exports', 'ember-moment/helpers/moment-to-now'], function (exports, _momentToNow) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentToNow.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-to', ['exports', 'ember-moment/helpers/moment-to'], function (exports, _momentTo) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _momentTo.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment-unix', ['exports', 'ember-moment/helpers/unix'], function (exports, _unix) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _unix.default;\n    }\n  });\n});","define('aira-mgmt/helpers/moment', ['exports', 'ember-moment/helpers/moment'], function (exports, _moment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n});","define('aira-mgmt/helpers/money', ['exports', 'accounting/format-money'], function (exports, _formatMoney) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.money = money;\n\tfunction money(params /*, hash*/) {\n\t\tif (Ember.$.isNumeric(params[0])) {\n\t\t\tvar value = Math.abs(params[0]) >= 100 ? params[0] / 100 : params[0];\n\t\t\treturn (0, _formatMoney.default)(value, params[1], 2, ',', '.', '%v %s');\n\t\t}\n\t}\n\n\texports.default = Ember.Helper.helper(money);\n});","define('aira-mgmt/helpers/not-eq', ['exports', 'ember-truth-helpers/helpers/not-equal'], function (exports, _notEqual) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _notEqual.default;\n    }\n  });\n  Object.defineProperty(exports, 'notEq', {\n    enumerable: true,\n    get: function () {\n      return _notEqual.notEq;\n    }\n  });\n});","define('aira-mgmt/helpers/not', ['exports', 'ember-truth-helpers/helpers/not'], function (exports, _not) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _not.default;\n    }\n  });\n  Object.defineProperty(exports, 'not', {\n    enumerable: true,\n    get: function () {\n      return _not.not;\n    }\n  });\n});","define('aira-mgmt/helpers/now', ['exports', 'ember-moment/helpers/now'], function (exports, _now) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _now.default;\n    }\n  });\n});","define('aira-mgmt/helpers/or', ['exports', 'ember-truth-helpers/helpers/or'], function (exports, _or) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _or.default;\n    }\n  });\n  Object.defineProperty(exports, 'or', {\n    enumerable: true,\n    get: function () {\n      return _or.or;\n    }\n  });\n});","define('aira-mgmt/helpers/perform', ['exports', 'ember-concurrency/helpers/perform'], function (exports, _perform) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _perform.default;\n    }\n  });\n});","define('aira-mgmt/helpers/pluralize', ['exports', 'ember-inflector/lib/helpers/pluralize'], function (exports, _pluralize) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _pluralize.default;\n});","define('aira-mgmt/helpers/repeat', ['exports', 'ember-composable-helpers/helpers/repeat'], function (exports, _repeat) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _repeat.default;\n    }\n  });\n  Object.defineProperty(exports, 'repeat', {\n    enumerable: true,\n    get: function () {\n      return _repeat.repeat;\n    }\n  });\n});","define('aira-mgmt/helpers/route-action', ['exports', 'ember-route-action-helper/helpers/route-action'], function (exports, _routeAction) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _routeAction.default;\n    }\n  });\n});","define('aira-mgmt/helpers/shorten-key', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.shortenKey = shortenKey;\n  function shortenKey(key) {\n    var result = key.toString();\n    return result.substring(result.lastIndexOf('.') + 1);\n  }\n\n  exports.default = Ember.Helper.helper(shortenKey);\n});","define('aira-mgmt/helpers/singularize', ['exports', 'ember-inflector/lib/helpers/singularize'], function (exports, _singularize) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _singularize.default;\n});","define('aira-mgmt/helpers/sr-status', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.active = active;\n  function active(params /*, hash*/) {\n    var print = '';\n    var status = params[0];\n    switch (status) {\n      case 'CANCEL':\n        print = 'User Cancelled';\n        break;\n      case 'TIMEOUT':\n        print = 'Timed Out Waiting';\n        break;\n      case 'OUT_OF_MINUTES':\n        print = 'Out of Minutes';\n        break;\n      default:\n        print = status;\n        break;\n    }\n\n    return print;\n  }\n\n  exports.default = Ember.Helper.helper(active);\n});","define('aira-mgmt/helpers/task', ['exports', 'ember-concurrency/helpers/task'], function (exports, _task) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _task.default;\n    }\n  });\n});","define('aira-mgmt/helpers/unix', ['exports', 'ember-moment/helpers/unix'], function (exports, _unix) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _unix.default;\n    }\n  });\n});","define('aira-mgmt/helpers/utc', ['exports', 'ember-moment/helpers/utc'], function (exports, _utc) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _utc.default;\n    }\n  });\n  Object.defineProperty(exports, 'utc', {\n    enumerable: true,\n    get: function () {\n      return _utc.utc;\n    }\n  });\n});","define('aira-mgmt/helpers/xor', ['exports', 'ember-truth-helpers/helpers/xor'], function (exports, _xor) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _xor.default;\n    }\n  });\n  Object.defineProperty(exports, 'xor', {\n    enumerable: true,\n    get: function () {\n      return _xor.xor;\n    }\n  });\n});","define('aira-mgmt/initializers/app-version', ['exports', 'ember-cli-app-version/initializer-factory', 'aira-mgmt/config/environment'], function (exports, _initializerFactory, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  var name = void 0,\n      version = void 0;\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n\n  exports.default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n});","define('aira-mgmt/initializers/container-debug-adapter', ['exports', 'ember-resolver/resolvers/classic/container-debug-adapter'], function (exports, _containerDebugAdapter) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'container-debug-adapter',\n\n    initialize: function initialize() {\n      var app = arguments[1] || arguments[0];\n\n      app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n      app.inject('container-debug-adapter:main', 'namespace', 'application:main');\n    }\n  };\n});","define('aira-mgmt/initializers/ember-concurrency', ['exports', 'ember-concurrency/initializers/ember-concurrency'], function (exports, _emberConcurrency) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _emberConcurrency.default;\n    }\n  });\n});","define('aira-mgmt/initializers/ember-data', ['exports', 'ember-data/setup-container', 'ember-data'], function (exports, _setupContainer) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'ember-data',\n    initialize: _setupContainer.default\n  };\n});","define('aira-mgmt/initializers/ember-simple-auth', ['exports', 'aira-mgmt/config/environment', 'ember-simple-auth/configuration', 'ember-simple-auth/initializers/setup-session', 'ember-simple-auth/initializers/setup-session-service', 'ember-simple-auth/initializers/setup-session-restoration'], function (exports, _environment, _configuration, _setupSession, _setupSessionService, _setupSessionRestoration) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'ember-simple-auth',\n\n    initialize: function initialize(registry) {\n      var config = _environment.default['ember-simple-auth'] || {};\n      config.rootURL = _environment.default.rootURL || _environment.default.baseURL;\n      _configuration.default.load(config);\n\n      (0, _setupSession.default)(registry);\n      (0, _setupSessionService.default)(registry);\n      (0, _setupSessionRestoration.default)(registry);\n    }\n  };\n});","define('aira-mgmt/initializers/export-application-global', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.initialize = initialize;\n  function initialize() {\n    var application = arguments[1] || arguments[0];\n    if (_environment.default.exportApplicationGlobal !== false) {\n      var theGlobal;\n      if (typeof window !== 'undefined') {\n        theGlobal = window;\n      } else if (typeof global !== 'undefined') {\n        theGlobal = global;\n      } else if (typeof self !== 'undefined') {\n        theGlobal = self;\n      } else {\n        // no reasonable global, just bail\n        return;\n      }\n\n      var value = _environment.default.exportApplicationGlobal;\n      var globalName;\n\n      if (typeof value === 'string') {\n        globalName = value;\n      } else {\n        globalName = Ember.String.classify(_environment.default.modulePrefix);\n      }\n\n      if (!theGlobal[globalName]) {\n        theGlobal[globalName] = application;\n\n        application.reopen({\n          willDestroy: function willDestroy() {\n            this._super.apply(this, arguments);\n            delete theGlobal[globalName];\n          }\n        });\n      }\n    }\n  }\n\n  exports.default = {\n    name: 'export-application-global',\n\n    initialize: initialize\n  };\n});","define('aira-mgmt/instance-initializers/ember-data', ['exports', 'ember-data/initialize-store-service'], function (exports, _initializeStoreService) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'ember-data',\n    initialize: _initializeStoreService.default\n  };\n});","define('aira-mgmt/instance-initializers/ember-simple-auth', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'ember-simple-auth',\n\n    initialize: function initialize() {}\n  };\n});","define('aira-mgmt/mixins/model-editor', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\n\n\tvar _dataKey = null;\n\tvar _modelKey = null;\n\tvar _propNames = null;\n\n\t/**\n  * Enables dirty checking for the route that this is mixed into.\n  * Relies on state.isDirty flag.\n  * Route should inspect this flag in willTransition() and reset it to false on successful save.\n  */\n\texports.default = Ember.Mixin.create({\n\n\t\tstate: Ember.inject.service(),\n\n\t\t_bindModelEditor: function _bindModelEditor(datakey, modelKey, propNames) {\n\t\t\t_dataKey = datakey;\n\t\t\t_modelKey = modelKey;\n\t\t\t_propNames = propNames;\n\t\t},\n\t\tdidReceiveAttrs: function didReceiveAttrs() {\n\t\t\tvar _this = this;\n\n\t\t\tthis._super.apply(this, arguments);\n\t\t\tthis.set(_dataKey, Ember.Object.create(this.get(_modelKey).getProperties(_propNames)));\n\t\t\t_propNames.forEach(function (name) {\n\t\t\t\treturn _this.get(_dataKey).addObserver(name, _this, _this._modelEditorOnChange);\n\t\t\t});\n\t\t},\n\n\n\t\t_modelEditorOnChange: function _modelEditorOnChange(data, key) {\n\t\t\tvar model = this.get(_modelKey);\n\t\t\tvar newValue = data.get(key);\n\t\t\tvar oldValue = model.get(key);\n\n\t\t\tif (newValue === '') {\n\t\t\t\tnewValue = null;\n\t\t\t}\n\n\t\t\tif (newValue !== oldValue) {\n\t\t\t\tthis.set('state.isDirty', true);\n\t\t\t} else {\n\t\t\t\tvar dirty = false;\n\t\t\t\t_propNames.forEach(function (name) {\n\t\t\t\t\tdirty = model.get(name) !== data.get(name);\n\t\t\t\t});\n\n\t\t\t\tthis.set('state.isDirty', dirty);\n\t\t\t}\n\t\t}\n\t});\n});","define('aira-mgmt/models/address', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.Model.extend({\n\n\t\taddress1: _emberData.default.attr('string'),\n\t\taddress2: _emberData.default.attr('string'),\n\t\taddress3: _emberData.default.attr('string'),\n\t\taddresstype: _emberData.default.attr('string'),\n\t\tcity: _emberData.default.attr('string'),\n\t\tcountry: _emberData.default.attr('string'),\n\t\tcounty: _emberData.default.attr('string'),\n\t\tstate: _emberData.default.attr('string'),\n\t\tvalidfrom: _emberData.default.attr('string'),\n\t\tzip: _emberData.default.attr('string'),\n\n\t\tuserId: _emberData.default.belongsTo('user')\n\t});\n});","define('aira-mgmt/models/answer', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.Model.extend({\n\n\t\tquestionText: _emberData.default.attr('string'),\n\t\tanswerText: _emberData.default.attr('string'),\n\t\tqcode: _emberData.default.attr('string'),\n\t\tcontrolType: _emberData.default.attr('string'),\n\t\tcontrolValues: _emberData.default.attr(),\n\n\t\tuser: _emberData.default.belongsTo('user')\n\t\t/* question: DS.belongsTo('question') For the future... */\n\t});\n});","define('aira-mgmt/models/app', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.Model.extend({\n\n\t\tdevice: _emberData.default.attr('string'),\n\t\tappId: _emberData.default.attr('string'),\n\t\tversion: _emberData.default.attr('string'),\n\t\ttype: _emberData.default.attr('string'),\n\t\taction: _emberData.default.attr('string'),\n\t\turl: _emberData.default.attr('string'),\n\t\tsize: _emberData.default.attr('number'),\n\t\tchecksum: _emberData.default.attr('string'),\n\t\tpackageName: _emberData.default.attr('string'),\n\t\tclassName: _emberData.default.attr('string')\n\t});\n});","define('aira-mgmt/models/contact', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.Model.extend({\n\n\t\tfirstName: _emberData.default.attr('string'),\n\t\tlastName: _emberData.default.attr('string'),\n\t\temail: _emberData.default.attr('string'),\n\t\tphone: _emberData.default.attr('string'),\n\t\trelationship: _emberData.default.attr('string'),\n\t\ttype: _emberData.default.attr('string'),\n\n\t\tuser: _emberData.default.belongsTo('user')\n\t});\n});","define('aira-mgmt/models/service', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.Model.extend({\n\n\t\tagentLogin: _emberData.default.attr('string'),\n\t\tstart: _emberData.default.attr('date'),\n\t\tend: _emberData.default.attr('date'),\n\t\trequest: _emberData.default.attr('date'),\n\t\ttype: _emberData.default.attr('string'),\n\t\tstatus: _emberData.default.attr('string'),\n\t\tdurationMinutes: _emberData.default.attr('number'),\n\t\trequestSource: _emberData.default.attr('string'),\n\t\ttestCall: _emberData.default.attr('string')\n\t});\n});","define('aira-mgmt/models/setting', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.Model.extend({\n\t\ttestUser: _emberData.default.attr('boolean')\n\t});\n});","define('aira-mgmt/models/user', ['exports', 'ember-data'], function (exports, _emberData) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _emberData.default.Model.extend({\n\n    accountCode: _emberData.default.attr('string'),\n    uuid: _emberData.default.attr('string'),\n    status: _emberData.default.attr('string'),\n    firstName: _emberData.default.attr('string'),\n    lastName: _emberData.default.attr('string'),\n    phoneticFirstName: _emberData.default.attr('string'),\n    login: _emberData.default.attr('string'),\n    password: _emberData.default.attr('string'),\n    language: _emberData.default.attr(),\n    gender: _emberData.default.attr('string'),\n    phoneNumber: _emberData.default.attr('string'),\n    phoneVerified: _emberData.default.attr('boolean'),\n    dateOfBirth: _emberData.default.attr('string'),\n    appRoles: _emberData.default.attr(),\n    properties: _emberData.default.attr(),\n    accounts: _emberData.default.attr(),\n    guest: _emberData.default.attr('boolean'),\n\n    contacts: _emberData.default.hasMany('contact'),\n    addresses: _emberData.default.hasMany('address'),\n    answers: _emberData.default.hasMany('answer'),\n\n    notes: Ember.computed('properties', function () {\n      var props = this.get('properties');\n      if (props && props.hasOwnProperty('notes') && props.notes.length > 0) {\n        return props.notes[0].value;\n      } else {\n        return null;\n      }\n    }),\n    buildAiProgramJoined: Ember.computed('properties', function () {\n      var props = this.get('properties');\n      if (props && props.hasOwnProperty('buildAiProgramJoined') && props.buildAiProgramJoined.length > 0) {\n        return props.buildAiProgramJoined[0].value;\n      } else {\n        return null;\n      }\n    }),\n\n    isBts: Ember.computed('properties', function () {\n      var props = this.get('properties');\n      if (!props || !props.hasOwnProperty('btsUser')) {\n        return false;\n      }\n\n      if (Array.isArray(props.btsUser) && props.btsUser.length > 0) {\n        return props.btsUser[0].value;\n      }\n      return false;\n    }),\n\n    isSecondary: Ember.computed('accounts', function () {\n      var accounts = this.get('accounts');\n      if (accounts) {\n        return accounts.some(function (account) {\n          return account.userType === 'secondary';\n        });\n      } else {\n        return false;\n      }\n    }),\n\n    isGuest: Ember.computed('guest', function () {\n      return this.get('guest');\n    })\n  });\n});","define('aira-mgmt/models/wifi', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.Model.extend({\n\t\tuserId: _emberData.default.attr('number'),\n\t\tpriority: _emberData.default.attr('number'),\n\t\tssid: _emberData.default.attr('string'),\n\t\tsecurityType: _emberData.default.attr('string'),\n\t\tsecretKey: _emberData.default.attr('string'),\n\t\ttype: _emberData.default.attr('string')\n\t});\n});","define('aira-mgmt/onboard/google/route', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\n\t\tgoogleAccount: Ember.inject.service(),\n\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\tcontroller.set('googleUrl', this.get('googleAccount').getCreateAccountUrl(model));\n\t\t\tthis.send('updateSubtitle', 'Google Accounts');\n\t\t},\n\n\n\t\tactions: {\n\t\t\tback: function back() {\n\t\t\t\tthis.transitionTo('onboard.index');\n\t\t\t},\n\t\t\tnext: function next() {\n\t\t\t\t// Pass model.id to force model() in step3 to get called\n\t\t\t\tthis.transitionTo('onboard.wifi', this.get('currentModel.id'));\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/onboard/google/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"HbW812Zz\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-12\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center content-group-lg\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[22,\\\"googleUrl\\\"]]]],[10,\\\"class\\\",\\\"btn btn-info\\\"],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"Create Google Account\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row content-group-lg\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-10 col-md-offset-1\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                    All users must have a Google and Google Plus account to link a Glass. Use this link to quickly\\\\n                    create a Google Account and be redirected to Google Plus. Continue to the next step after completion.\\\\n                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"back\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Back\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"next\\\"]],[8],[0,\\\"Next \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/google/template.hbs\" } });\n});","define('aira-mgmt/onboard/index/route', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\n\t\tactions: {\n\t\t\tnext: function next(user, userProps) {\n\t\t\t\tvar _this = this;\n\n\t\t\t\tuser.setProperties(userProps);\n\t\t\t\tuser.save().then(function () {\n\t\t\t\t\treturn _this.transitionTo('onboard.google', user);\n\t\t\t\t}, function (error) {\n\t\t\t\t\treturn _this.send('error', error);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/onboard/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"ch9ecYNY\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-profile\\\",null,[[\\\"profile\\\",\\\"onCancel\\\",\\\"onNext\\\",\\\"autofocusFirstName\\\",\\\"disableEmail\\\",\\\"showPassword\\\"],[[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"next\\\"],null],true,false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/index/template.hbs\" } });\n});","define('aira-mgmt/onboard/interview/route', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\tthis.send('updateSubtitle', 'Info and Preferences');\n\t\t},\n\n\n\t\tactions: {\n\t\t\tback: function back() {\n\t\t\t\tthis.transitionTo('onboard.wifi', this.get('currentModel.id'));\n\t\t\t},\n\t\t\tnext: function next() {\n\t\t\t\t// Pass model.id to force model() in step3 to get called\n\t\t\t\tthis.transitionTo('onboard.sendmail', this.get('currentModel.id'));\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/onboard/interview/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"HEI0Mgqn\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-12\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center content-group\\\"],[8],[0,\\\"Coming Soon. Will replace:\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"content-group-lg\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Go to www.aira.io\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Log in as user\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Once logged in go to aira.io/profile\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Ask user preferences questions\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"back\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Back\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"next\\\"]],[8],[0,\\\"Next \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/interview/template.hbs\" } });\n});","define('aira-mgmt/onboard/route', ['exports', 'ember-simple-auth/mixins/authenticated-route-mixin'], function (exports, _authenticatedRouteMixin) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n\n\t\t/*beforeModel() {\n   \tthis._super(...arguments);\n   \t// Must call super for AuthenticatedRouteMixin\n   },*/\n\n\t\tmodel: function model() {\n\t\t\treturn this.get('store').createRecord('user', {\n\t\t\t\tlogin: null,\n\t\t\t\tfirstName: null,\n\t\t\t\tlastName: null,\n\t\t\t\tpassword: null,\n\t\t\t\tstatus: 'Active',\n\t\t\t\tgender: null,\n\t\t\t\tphoneNumber: null,\n\t\t\t\tappRoles: [{ appName: \"AGENT DASHBOARD\", roles: [\"AIRA AGENT\"] }],\n\t\t\t\tlanguage: ['English']\n\t\t\t});\n\t\t},\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\tcontroller.set('title', 'New User');\n\t\t\tcontroller.set('subtitle', 'Basic Info');\n\t\t},\n\t\tdeactivate: function deactivate() {\n\t\t\t// Not done in cancel incase user navigates away by another means\n\t\t\tthis.get('currentModel').rollbackAttributes();\n\t\t},\n\n\n\t\tactions: {\n\t\t\tnext: function next() {\n\t\t\t\tconsole.log('NEXT');\n\t\t\t},\n\t\t\tupdateTitle: function updateTitle(title) {\n\t\t\t\tthis.set('controller.title', title);\n\t\t\t},\n\t\t\tupdateSubtitle: function updateSubtitle(subtitle) {\n\t\t\t\tthis.set('controller.subtitle', subtitle);\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.transitionTo('users');\n\t\t\t}\n\t\t}\n\t});\n});","define('aira-mgmt/onboard/sendmail/route', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\tthis.send('updateSubtitle', 'Welcome Email and Links');\n\t\t},\n\n\n\t\tactions: {\n\t\t\tback: function back() {\n\t\t\t\tthis.transitionTo('onboard.interview', this.get('currentModel.id'));\n\t\t\t},\n\t\t\tnext: function next() {\n\t\t\t\t// Pass model.id to force model() in step3 to get called\n\t\t\t\tthis.transitionTo('users.user', this.get('currentModel.id'));\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/onboard/sendmail/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"/B+H2NRG\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-12\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center content-group\\\"],[8],[0,\\\"Coming Soon. Will replace:\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"content-group-lg\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Obtain app store links\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Send welcome email and FAQ\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"back\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Back\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"next\\\"]],[8],[0,\\\"View User \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/sendmail/template.hbs\" } });\n});","define(\"aira-mgmt/onboard/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"UIFnF1ZF\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[2,\\\" Grid \\\"],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-offset-2 col-md-8\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"simple-panel\\\",null,[[\\\"title\\\"],[[28,\\\"concat\\\",[\\\"Onboard \\\",[24,[\\\"title\\\"]],\\\": \\\",[24,[\\\"subtitle\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/template.hbs\" } });\n});","define('aira-mgmt/onboard/wifi/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define(\"aira-mgmt/onboard/wifi/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"M0LBewJT\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center content-group-sm\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-sm btn-info\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"addWifiProfile\\\"]],[8],[0,\\\"Add Wifi Profile\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/wifi/index/template.hbs\" } });\n});","define('aira-mgmt/onboard/wifi/new/route', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\n\t\tstate: Ember.inject.service(),\n\n\t\tnotify: Ember.inject.service(),\n\n\t\tmodel: function model() {\n\t\t\tvar login = this.modelFor('onboard.wifi').user.get('login');\n\n\t\t\treturn this.get('store').createRecord('wifi', {\n\t\t\t\tusername: login,\n\t\t\t\tpriority: null,\n\t\t\t\tssid: null,\n\t\t\t\tsecurityType: null,\n\t\t\t\tsecretkey: null,\n\t\t\t\ttype: null\n\t\t\t});\n\t\t},\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\tthis.send('toggleNext', false);\n\t\t},\n\t\tdeactivate: function deactivate() {\n\t\t\t// Not done in cancel incase user navigates away by another means\n\t\t\tthis.get('currentModel').rollbackAttributes();\n\t\t\tthis.send('toggleNext', true);\n\t\t},\n\n\n\t\tactions: {\n\t\t\twillTransition: function willTransition(transition) {\n\t\t\t\tif (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n\t\t\t\t\ttransition.abort();\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tsave: function save(profile, wifiProps) {\n\t\t\t\tvar _this = this;\n\n\t\t\t\tprofile.setProperties(wifiProps);\n\t\t\t\tprofile.save().then(function () {\n\t\t\t\t\t_this.set('state.isDirty', false);\n\t\t\t\t\t_this.send('newWifiProfile', _this.get('currentModel'));\n\t\t\t\t\t_this.get('notify').success('Wifi profile was added.');\n\t\t\t\t\t_this.transitionTo('onboard.wifi');\n\t\t\t\t});\n\t\t\t},\n\t\t\tcancel: function cancel() {\n\t\t\t\tthis.transitionTo('onboard.wifi');\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/onboard/wifi/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"SNmHBGNA\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content-group-lg\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"wifi-profile\\\",null,[[\\\"title\\\",\\\"profile\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"New Wifi Profile\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"hr\\\",true],[8],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/wifi/new/template.hbs\" } });\n});","define('aira-mgmt/onboard/wifi/route', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\t\tmodel: function model(p) {\n\t\t\t// Because wifi profiles can't be queries on userId right now.\n\t\t\treturn new Ember.RSVP.Promise(function (resolve, reject) {\n\t\t\t\tvar _this = this;\n\n\t\t\t\t// Find user first\n\t\t\t\tthis.get('store').findRecord('user', p.user_id).then(function (user) {\n\t\t\t\t\tconsole.log(user);\n\t\t\t\t\t// Use login of found user to find wifi profiles\n\t\t\t\t\tresolve(Ember.RSVP.hash({\n\t\t\t\t\t\tuser: user,\n\t\t\t\t\t\tprofiles: _this.get('store').query('wifi', { filter: { userId: p.user_id } })\n\t\t\t\t\t}));\n\t\t\t\t}, reject);\n\t\t\t}.bind(this));\n\t\t},\n\t\tsetupController: function setupController(controller, model) {\n\t\t\tthis._super(controller, model);\n\t\t\t// Provide state service to generated controller, avoids making our own.\n\t\t\t//controller.set('state', this.get('state'));\n\t\t\tthis.send('updateSubtitle', 'Wifi Profiles');\n\t\t\tcontroller.set('nextDisabled', false);\n\t\t\tcontroller.set('helpEnabled', true);\n\t\t},\n\n\n\t\tactions: {\n\t\t\taddWifiProfile: function addWifiProfile() {\n\t\t\t\tthis.transitionTo('onboard.wifi.new');\n\t\t\t},\n\t\t\ttoggleNext: function toggleNext(shouldEnable) {\n\t\t\t\t// Reversed to make template easier\n\t\t\t\tthis.set('controller.nextDisabled', !shouldEnable);\n\t\t\t},\n\t\t\ttoggleHelp: function toggleHelp(shouldEnable) {\n\t\t\t\tthis.set('controller.helpEnabled', shouldEnable);\n\t\t\t},\n\n\n\t\t\t// received from wifi/new route. Need to reload all profiles because API\n\t\t\t// does not return the id of the newly created profile.\n\t\t\tnewWifiProfile: function newWifiProfile() {\n\t\t\t\tthis.get('currentModel.profiles').update();\n\t\t\t},\n\t\t\tback: function back() {\n\t\t\t\tthis.transitionTo('onboard.google', this.get('currentModel.user.id'));\n\t\t\t},\n\t\t\tnext: function next() {\n\t\t\t\tthis.transitionTo('onboard.interview', this.get('currentModel.user.id'));\n\t\t\t}\n\t\t}\n\t});\n});","define(\"aira-mgmt/onboard/wifi/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"+FKg1+9S\", \"block\": \"{\\\"symbols\\\":[\\\"profile\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"profiles\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Favorite\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"SSID\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Security Type\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Security Key\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"profiles\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"priority\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-star-full2\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"sr-only\\\"],[8],[0,\\\"Yes\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-star-empty3\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"sr-only\\\"],[8],[0,\\\"No\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"ssid\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"securityType\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"secretkey\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"type\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center content-group-lg\\\"],[8],[1,[24,[\\\"model\\\",\\\"user\\\",\\\"firstName\\\"]],false],[0,\\\" has not yet provided any profiles.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"helpEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"h6\\\",true],[8],[0,\\\"iPhone Help\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"ol\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                    Go to \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Settings\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"General\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"About\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Name\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tThe hotspot uses this name by default and can be changed here.\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tGo to \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Settings\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Personal Hotspot\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Wifi Password\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tThe current password can be seen and changed here.\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"h6\\\",true],[8],[0,\\\"Android Help\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ol\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                    Go to \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Settings\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Wireless Network\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Section\\\"],[9],[0,\\\" > \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Mobile Hotspot\\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                    Both the name and password can be changed in \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Setup Network Name and Password\\\"],[9],[0,\\\".\\\\n                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center content-group-lg\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"javascript:;\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"toggleHelp\\\",false]],[8],[0,\\\"Hide Help\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center content-group-lg\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"javascript:;\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"toggleHelp\\\",true]],[8],[0,\\\"Show Help\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"back\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Back\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"btn btn-primary \\\",[28,\\\"if\\\",[[24,[\\\"nextDisabled\\\"]],\\\"disabled\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"next\\\"]],[8],[0,\\\"Next \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/onboard/wifi/template.hbs\" } });\n});","define('aira-mgmt/resolver', ['exports', 'ember-resolver'], function (exports, _emberResolver) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _emberResolver.default;\n});","define('aira-mgmt/router', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  var Router = Ember.Router.extend({\n    location: _environment.default.locationType,\n    rootURL: _environment.default.rootURL\n  });\n\n  Router.map(function () {\n    this.route('users', function () {\n      this.route('user', { path: '/:user_id' }, function () {\n        this.route('contacts', function () {\n          this.route('new');\n          this.route('edit', { path: '/:contact_id' });\n        });\n        this.route('address', function () {\n          this.route('new');\n          this.route('edit', { path: '/:address_id' });\n        });\n        this.route('service');\n        this.route('chats');\n        this.route('chats-v2');\n        this.route('wifi', function () {\n          this.route('new');\n          this.route('edit', { path: '/:wifi_id' });\n        });\n        this.route('questions', function () {\n          this.route('edit', { path: '/:question_id' });\n        });\n        this.route('comments');\n        this.route('access', function () {\n          this.route('edit', { path: '/:user_id' });\n        });\n        this.route('activity');\n        this.route('delete');\n        this.route('roles');\n        this.route('settings');\n        this.route('support');\n        this.route('credit');\n        this.route('password');\n\n        this.route('subscription', function () {\n          this.route('upgrade');\n          this.route('downgrade');\n          this.route('date');\n          this.route('pause');\n          this.route('cancel');\n          this.route('minutes');\n        });\n        this.route('onboard');\n        this.route('referrals');\n        this.route('properties', function () {\n          this.route('property', { path: '/:property_key' }, function () {\n            this.route('edit', { path: '/:value_id' });\n            this.route('new');\n          });\n        });\n        this.route('accounts');\n      });\n      this.route('new');\n    });\n    this.route('login');\n    this.route('onboard', function () {\n      this.route('google', { path: '/:user_id/google' });\n      this.route('wifi', { path: '/:user_id/wifi' }, function () {\n        this.route('new');\n      });\n      this.route('interview', { path: '/:user_id/interview' });\n      this.route('sendmail', { path: '/:user_id/sendmail' });\n    });\n    this.route('apps', function () {\n      this.route('app', { path: '/:app_id' });\n    });\n    this.route('explorers');\n\n    this.route('accounts', function () {\n      this.route('new');\n      this.route('account', { path: '/:account_id' }, function () {\n        this.route('users');\n        this.route('usage');\n        this.route('resources');\n        this.route('products', function () {\n          this.route('product', function () {\n            this.route('new');\n            this.route('edit', { path: '/:product_id' });\n          });\n        });\n        this.route('sites', function () {\n          this.route('new');\n          this.route('site', { path: '/:site_id' }, function () {\n            this.route('edit');\n            this.route('resources');\n          });\n        });\n      });\n    });\n  });\n\n  exports.default = Router;\n});","define(\"aira-mgmt/routes/application\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n    state: Ember.inject.service(),\n\n    session: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    moment: Ember.inject.service(),\n\n    beforeModel: function beforeModel() {\n      this.get(\"moment\").setTimeZone(Intl.DateTimeFormat().resolvedOptions().timeZone);\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide session service to generated controller, avoids making our own.\n      controller.set(\"session\", this.get(\"session\"));\n      controller.set(\"state\", this.get(\"state\"));\n    },\n\n\n    actions: {\n      account: function account() {\n        alert(\"Coming Soon.\");\n      },\n      logout: function logout() {\n        var _this = this;\n\n        this.get(\"session\").invalidate().then(function () {\n          return _this.transitionTo(\"login\");\n        });\n      },\n\n\n      /**\n      * Handle all errors.\n      * @param error One of: {errors:string}, {message:string}, {errorCode:string,errorMessage:string}, string\n       **/\n      error: function error(_error) {\n        var _this2 = this;\n\n        var message = \"An unknown error has occurred.\";\n\n        if (_error && _error.errors) {\n          message = _error.errors[0].detail;\n          var code = _error.errors[0].status;\n          if (code === \"SEC-001\") {\n            this.get(\"session\").invalidate().then(function () {\n              return _this2.transitionTo(\"login\");\n            });\n          }\n        } else if (_error && _error.message) {\n          message = _error.message;\n        } else if (_error && _error.errorCode && _error.errorMessage) {\n          message = [_error.errorCode, _error.errorMessage].join(\": \");\n        } else if (_error) {\n          message = _error;\n        }\n\n        this.get(\"notify\").error(message);\n      }\n    }\n  });\n});","define('aira-mgmt/routes/explorers', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\t\tmodel: function model() {\n\t\t\treturn $.ajax({\n\t\t\t\turl: [_environment.default.APP.host, _environment.default.APP.namespace, 'registration', 'count'].join('/') + '?plan=explorer',\n\t\t\t\theaders: {\n\t\t\t\t\t'X-API-Key': _environment.default.APP.X_API_Key\n\t\t\t\t}\n\t\t\t}).then(function (data) {\n\t\t\t\treturn {\n\t\t\t\t\tcount: data\n\t\t\t\t};\n\t\t\t});\n\t\t},\n\t\tactivate: function activate() {\n\t\t\tvar self = this;\n\t\t\tEmber.run.later(function () {\n\t\t\t\tself.tick();\n\t\t\t}, 1000 * 60);\n\t\t},\n\t\ttick: function tick() {\n\t\t\tthis.refresh();\n\t\t}\n\t});\n});","define('aira-mgmt/routes/index', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Route.extend({\n\n\t\tsession: Ember.inject.service(),\n\n\t\tbeforeModel: function beforeModel() {\n\t\t\tif (this.get('session.isAuthenticated')) {\n\t\t\t\tthis.transitionTo('users');\n\t\t\t} else {\n\t\t\t\tthis.transitionTo('login');\n\t\t\t}\n\t\t}\n\t});\n});","define('aira-mgmt/routes/login', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n    firebase: Ember.inject.service(),\n    session: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      var _this = this;\n\n      this._super(controller, model);\n\n      if (_environment.default.environment !== 'development') {\n        // Handle the sign-in with redirect result.\n        this.set('controller.isLoading', true);\n        this.get('session').authenticate('authenticator:firebase').then(function () {\n          return _this.transitionTo('users');\n        }).catch(function () {}) // This is expected when we're not authenticated. Ignore.\n        .finally(function () {\n          return _this.set('controller.isLoading', false);\n        });\n      }\n    },\n\n    actions: {\n      login: function login() {\n        var _this2 = this;\n\n        if (_environment.default.environment !== 'development') {\n          // Sign-in with redirect.\n          this.get('firebase').login();\n        } else {\n          // Sign-in with popup.\n          this.set('controller.isLoading', true);\n          this.get('session').authenticate('authenticator:firebase').then(function () {\n            return _this2.transitionTo('users');\n          }).catch(function () {}) // This is expected when we're not authenticated. Ignore.\n          .finally(function () {\n            return _this2.set('controller.isLoading', false);\n          });\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/sentry\", [\"exports\", \"@sentry/browser\", \"@sentry/integrations/esm/ember\", \"aira-mgmt/config/environment\"], function (exports, _browser, _ember, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.startSentry = startSentry;\n  function startSentry() {\n    if (_environment.default.APP.mgmt_version === undefined) {\n      _environment.default.APP.mgmt_version = 'local'; // if running locally\n    }\n    _browser.init({\n      dsn: _environment.default.APP.sentry,\n      environment: _environment.default.APP.env,\n      release: _environment.default.APP.mgmt_version,\n      integrations: [new _ember.Ember()],\n\n      beforeSend: function beforeSend(event, hint) {\n        var error = hint.originalException;\n        // ignore errors from localhost\n        if (event.request.url.includes('localhost')) {\n          return null;\n        }\n        // ignore aborted route transitions from the router\n        if (error && error.name === \"TransitionAborted\") {\n          return null;\n        }\n        console.log(event);\n        return event;\n      }\n    });\n  }\n});","define('aira-mgmt/serializers/app', ['exports', 'aira-mgmt/serializers/application'], function (exports, _application) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _application.default.extend({\n\t\tnormalizeQueryResponse: function normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\treturn this._super(store, primaryModelClass, payload.versions, id, requestType);\n\t\t}\n\t});\n});","define('aira-mgmt/serializers/application', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.JSONSerializer.extend({\n\t\tnormalizeDeleteRecordResponse: function normalizeDeleteRecordResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\treturn this.normalizeSaveResponse(store, primaryModelClass, { id: id }, id, requestType);\n\t\t}\n\t});\n});","define('aira-mgmt/serializers/service', ['exports', 'aira-mgmt/serializers/application'], function (exports, _application) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _application.default.extend({\n\t\tnormalizeQueryResponse: function normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\tvar response = [];\n\t\t\tvar requests = payload.requests;\n\n\t\t\trequests.forEach(function (raw) {\n\t\t\t\tvar request = {\n\t\t\t\t\tid: raw.serviceid,\n\t\t\t\t\tagentLogin: raw.agentname,\n\t\t\t\t\tstart: raw.startTimeStamp,\n\t\t\t\t\tend: raw.endTimeStamp,\n\t\t\t\t\trequest: raw.requestTimeStamp,\n\t\t\t\t\ttype: raw.requestType,\n\t\t\t\t\tstatus: raw.status,\n\t\t\t\t\tdurationMinutes: raw.durationMinutes,\n\t\t\t\t\trequestSource: raw.requestSource,\n\t\t\t\t\ttestCall: raw.testCall\n\t\t\t\t};\n\n\t\t\t\tresponse.push(request);\n\t\t\t});\n\n\t\t\tconsole.log(response);\n\n\t\t\treturn this._super(store, primaryModelClass, response, id, requestType);\n\t\t}\n\t});\n});","define('aira-mgmt/serializers/setting', ['exports', 'ember-data'], function (exports, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _emberData.default.JSONSerializer.extend({\n\t\tnormalizeUpdateRecordResponse: function normalizeUpdateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\tpayload.id = id;\n\t\t\treturn { data: payload };\n\t\t}\n\t});\n});","define('aira-mgmt/serializers/user', ['exports', 'aira-mgmt/serializers/application', 'ember-data'], function (exports, _application, _emberData) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _application.default.extend(_emberData.default.EmbeddedRecordsMixin, {\n\n\t\tattrs: {\n\t\t\tcontacts: { embedded: 'always' },\n\t\t\taddresses: { embedded: 'always' },\n\t\t\tappRoles: { embedded: 'always' }\n\t\t},\n\n\t\t/**\n   * The search API returns an old style User so we reformat the payload here\n      */\n\t\tnormalizeQueryResponse: function normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\tvar users = payload.users;\n\t\t\tvar i = 0;\n\t\t\tvar l = users.length;\n\t\t\tfor (; i < l; i++) {\n\t\t\t\t// dateofbirth -> dateOfBirth\n\t\t\t\tusers[i].dateOfBirth = users[i].dateofbirth;\n\t\t\t}\n\t\t\treturn this._super(store, primaryModelClass, users, id, requestType);\n\t\t},\n\t\tnormalizeQueryRecordResponse: function normalizeQueryRecordResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\tdelete payload.response;\n\t\t\treturn this._super(store, primaryModelClass, payload, id, requestType);\n\t\t},\n\t\tnormalizeCreateRecordResponse: function normalizeCreateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\tpayload.id = payload.userid;\n\t\t\tpayload.dateOfBirth = payload.dateofbirth;\n\t\t\tpayload.approles = payload.appRoles;\n\n\t\t\treturn { data: payload };\n\t\t},\n\t\tserialize: function serialize(snapshot, options) {\n\t\t\tvar payload = this._super(snapshot, options);\n\n\t\t\tdelete payload.addresses;\n\t\t\tdelete payload.contacts;\n\n\t\t\tif (snapshot.record.get('isNew')) {\n\t\t\t\tpayload['dateofbirth'] = payload['dateOfBirth'];\n\t\t\t\tdelete payload.dateOfBirth;\n\n\t\t\t\t// hack to lowercase approles and appname when using the create user api.\n\t\t\t\tvar approles = [];\n\t\t\t\tvar appRoles = payload.appRoles;\n\t\t\t\tfor (var i = 0, l = appRoles.length; i < l; i++) {\n\t\t\t\t\tapproles.push({\n\t\t\t\t\t\tappname: appRoles[i].appName,\n\t\t\t\t\t\troles: appRoles[i].roles\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tpayload['approles'] = approles;\n\t\t\t\tdelete payload.appRoles;\n\t\t\t}\n\n\t\t\treturn payload;\n\t\t}\n\t});\n});","define('aira-mgmt/serializers/wifi', ['exports', 'aira-mgmt/serializers/application'], function (exports, _application) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = _application.default.extend({\n\n\t\tprimaryKey: 'profileId',\n\n\t\tnormalizeQueryResponse: function normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\tvar profiles = payload.profiles;\n\t\t\treturn this._super(store, primaryModelClass, profiles, id, requestType);\n\t\t},\n\t\tnormalizeCreateRecordResponse: function normalizeCreateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\t// Ridiculous hack because delete api doesn't provide the data in response\n\t\t\treturn { data: { id: 0 } };\n\t\t},\n\t\tnormalizeUpdateRecordResponse: function normalizeUpdateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\t// Ridiculous hack because update api doesn't provide the data in response\n\t\t\tvar profile = store.peekRecord('wifi', id);\n\t\t\treturn { data: profile.toJSON({ includeId: true }) };\n\t\t},\n\t\tnormalizeDeleteRecordResponse: function normalizeDeleteRecordResponse(store, primaryModelClass, payload, id, requestType) {\n\t\t\t// Ridiculous hack because delete api doesn't provide the data in response\n\t\t\tvar profile = store.peekRecord('wifi', id);\n\t\t\treturn { data: profile.toJSON({ includeId: true }) };\n\t\t}\n\t});\n});","define('aira-mgmt/services/ajax', ['exports', 'ember-ajax/services/ajax'], function (exports, _ajax) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _ajax.default;\n    }\n  });\n});","define('aira-mgmt/services/cookies', ['exports', 'ember-cookies/services/cookies'], function (exports, _cookies) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _cookies.default;\n});","define('aira-mgmt/services/firebase', ['exports', '@firebase/app', '@firebase/auth', 'aira-mgmt/config/environment'], function (exports, _app, _auth, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Service.extend({\n    firebaseApp: Ember.computed(function () {\n      return (0, _app.initializeApp)({\n        apiKey: _environment.default.APP.firebase_api_key,\n        authDomain: _environment.default.APP.firebase_auth_domain,\n        projectId: _environment.default.APP.firebase_project_id,\n        appId: _environment.default.APP.firebase_app_id\n      });\n    }),\n\n    firebaseAuth: Ember.computed(function () {\n      return (0, _auth.getAuth)(this.get('firebaseApp'));\n    }),\n\n    user: null,\n\n    login: function login() {\n      return (0, _auth.signInWithRedirect)(this.get('firebaseAuth'), new _auth.OAuthProvider('oidc.okta'));\n    },\n    handleAuthentication: function handleAuthentication() {\n      if (_environment.default.environment === 'development') {\n        // HACK: When using localhost, supporting sign-in with redirect is going\n        // to take effort that we don't have time for (see\n        // https://github.com/firebase/firebase-js-sdk/issues/7342). So, since\n        // accessibility is less of an issue while developing, we're using sign-in\n        // with popup instead.\n        return (0, _auth.signInWithPopup)(this.get('firebaseAuth'), new _auth.OAuthProvider('oidc.okta'));\n      }\n      return (0, _auth.getRedirectResult)(this.get('firebaseAuth'));\n    },\n    loginWithCustomToken: function loginWithCustomToken(customToken) {\n      var _this = this;\n\n      return this.logout().then(function () {\n        return (0, _auth.signInWithCustomToken)(_this.get('firebaseAuth'), customToken);\n      }).then(function (userCredential) {\n        return _this.set('user', userCredential.user);\n      }).then(function () {\n        return console.log('login successful', _this.get('user').uid);\n      }).catch(function (error) {\n        return console.error('login failed', error);\n      });\n    },\n    getIdToken: function getIdToken() {\n      return this.get('user').getIdToken();\n    },\n    logout: function logout() {\n      var _this2 = this;\n\n      return (0, _auth.signOut)(this.get('firebaseAuth')).then(function () {\n        return _this2.set('user', null);\n      });\n    }\n  });\n});","define('aira-mgmt/services/google-account', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Service.extend({\n\t\tgetCreateAccountUrl: function getCreateAccountUrl(user) {\n\t\t\tvar dateOfBirth = (user.get('dateOfBirth') || '--').split('-'); // year-month-day\n\n\t\t\tvar gmail = '';\n\t\t\tif (user.get('firstName') && user.get('lastName')) {\n\t\t\t\tgmail = user.get('firstName').toLowerCase() + '.' + user.get('lastName').toLowerCase() + '.aira';\n\t\t\t}\n\n\t\t\tvar url = 'https://accounts.google.com/SignUp?' + ['continue=https%3A%2F%2Fplus.google.com%2F', 'FirstName=' + (user.get('firstName') || ''), 'LastName=' + (user.get('lastName') || ''), 'GmailAddress=' + gmail, 'BirthMonth=' + dateOfBirth[1], 'BirthDay=' + dateOfBirth[2], 'BirthYear=' + dateOfBirth[0], 'Gender=' + (user.get('gender') || '').toUpperCase(), 'RecoveryPhoneNumber=' + (user.get('phoneNumber') || ''), 'RecoveryEmailAddress=support%40aira.io'].join('&');\n\n\t\t\treturn url;\n\t\t}\n\t});\n});","define('aira-mgmt/services/moment', ['exports', 'ember-moment/services/moment', 'aira-mgmt/config/environment'], function (exports, _moment, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  var get = Ember.get;\n  exports.default = _moment.default.extend({\n    defaultFormat: get(_environment.default, 'moment.outputFormat')\n  });\n});","define('aira-mgmt/services/notify', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Service.extend({\n\t\tsuccess: function success(message) {\n\t\t\tconsole.info(message);\n\t\t\tEmber.$.jGrowl(message, {\n\t\t\t\theader: 'Success!',\n\t\t\t\tspeed: 200,\n\t\t\t\tcloseTemplate: '',\n\t\t\t\ttheme: 'bg-success',\n\t\t\t\tposition: 'bottom-right'\n\t\t\t});\n\t\t},\n\t\terror: function error(message) {\n\t\t\tconsole.error(message);\n\t\t\tEmber.$.jGrowl(message, {\n\t\t\t\theader: 'Error!',\n\t\t\t\tspeed: 200,\n\t\t\t\tlife: 30000,\n\t\t\t\ttheme: 'bg-danger',\n\t\t\t\tposition: 'bottom-right'\n\t\t\t});\n\t\t}\n\t});\n});","define('aira-mgmt/services/platform', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Service.extend({\n\n    session: Ember.inject.service('session'),\n\n    doGet: function doGet(endpoint) {\n      var _this = this;\n\n      var self = this;\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        Ember.$.ajax({\n          url: [_environment.default.APP.host, _environment.default.APP.namespace, endpoint].join('/'),\n          method: 'GET',\n          contentType: 'application/json',\n          headers: _this._getHeaders(self),\n          dataType: 'json',\n          success: function success(responseData) {\n            resolve(responseData);\n          },\n          error: function error(jqXHR, textStatus, errorThrown) {\n            self._error(reject, jqXHR, textStatus, errorThrown);\n          }\n        });\n      });\n    },\n    doPost: function doPost(endpoint, data) {\n      var _this2 = this;\n\n      var self = this;\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        Ember.$.ajax({\n          url: [_environment.default.APP.host, _environment.default.APP.namespace, endpoint].join('/'),\n          method: 'POST',\n          contentType: 'application/json',\n          headers: _this2._getHeaders(self),\n          dataType: 'json',\n          data: JSON.stringify(data),\n          success: function success(responseData) {\n            resolve(responseData);\n          },\n          error: function error(jqXHR, textStatus, errorThrown) {\n            self._error(reject, jqXHR, textStatus, errorThrown);\n          }\n        });\n      });\n    },\n    doPut: function doPut(endpoint, data) {\n      var url = [_environment.default.APP.host, _environment.default.APP.namespace, endpoint].join('/');\n      return this.doPutRawUrl(url, data);\n    },\n    doPutRawUrl: function doPutRawUrl(endpoint, data) {\n      var _this3 = this;\n\n      var self = this;\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        Ember.$.ajax({\n          url: endpoint,\n          method: 'PUT',\n          contentType: 'application/json',\n          headers: _this3._getHeaders(self),\n          dataType: 'json',\n          data: JSON.stringify(data),\n          success: function success(responseData) {\n            resolve(responseData);\n          },\n          error: function error(jqXHR, textStatus, errorThrown) {\n            self._error(reject, jqXHR, textStatus, errorThrown);\n          }\n        });\n      });\n    },\n    doDelete: function doDelete(endpoint, data) {\n      var _this4 = this;\n\n      var self = this;\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        Ember.$.ajax({\n          url: [_environment.default.APP.host, _environment.default.APP.namespace, endpoint].join('/'),\n          method: 'DELETE',\n          contentType: 'application/json',\n          headers: _this4._getHeaders(self),\n          dataType: 'json',\n          data: JSON.stringify(data),\n          success: function success(responseData) {\n            resolve(responseData);\n          },\n          error: function error(jqXHR, textStatus, errorThrown) {\n            self._error(reject, jqXHR, textStatus, errorThrown);\n          }\n        });\n      });\n    },\n    _error: function _error(reject, jqXHR) {\n      switch (jqXHR.status) {\n        case 0:\n          console.error('Platform is offline');\n          reject({ errorCode: 0, errorMessage: 'Platform gone missing' });\n          break;\n        case 503:\n          console.error('503 Service Unavailable received from Platform');\n          reject({ errorCode: 0, errorMessage: '503 Service Unavailable received from Platform' });\n          break;\n        case 500:\n          console.error('500 Internal Server Error received from Platform');\n          reject({ errorCode: 0, errorMessage: '500 Internal Server Error received from Platform' });\n          break;\n        case 401:\n          console.error('401 Unauthorized received from Platform');\n          this._logout();\n          break;\n        case 403:\n          console.error('403 Forbidden received from Platform');\n          this._logout();\n          break;\n        default:\n          reject({\n            errorCode: jqXHR.responseJSON.response.errorCode,\n            errorMessage: jqXHR.responseJSON.response.errorMessage\n          });\n          break;\n      }\n    },\n    _generateId: function _generateId() {\n      // Large number without leading zeroes\n      return Math.floor(100000000 + Math.random() * 900000000);\n    },\n\n\n    _getHeaders: function _getHeaders(self) {\n      var headers = {\n        'X-API-Key': _environment.default.APP.X_API_Key,\n        'X-Client-Id': _environment.default.APP.X_Client_Id,\n        'X-Aira-Token': self.get('session.data.authenticated.token'),\n        'X-User-Id': self.get('session.data.authenticated.id'),\n        'X-Trace-Id': self._generateId()\n      };\n\n      return headers;\n    },\n\n    _logout: function _logout() {\n      console.log('Logging out...');\n      this.get(\"session\").invalidate();\n    }\n  });\n});","define('aira-mgmt/services/raven', ['exports', 'ember-cli-deply-sentry/services/raven'], function (exports, _raven) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _raven.default;\n});","define('aira-mgmt/services/session', ['exports', 'ember-simple-auth/services/session'], function (exports, _session) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _session.default;\n});","define('aira-mgmt/services/state', ['exports'], function (exports) {\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t\tvalue: true\n\t});\n\texports.default = Ember.Service.extend({\n\n\t\tusers: {\n\n\t\t\tuser: {\n\t\t\t\tcontacts: {\n\t\t\t\t\t// Selected table row\n\t\t\t\t\tselectedContactId: -1\n\t\t\t\t},\n\n\t\t\t\taddress: {\n\t\t\t\t\t// Selected table row\n\t\t\t\t\tselectedAddressId: -1\n\t\t\t\t},\n\n\t\t\t\twifi: {\n\t\t\t\t\t// Selected table row\n\t\t\t\t\tselectedWifiProfileId: -1\n\t\t\t\t},\n\n\t\t\t\tquestions: {\n\t\t\t\t\tselectedAnswerId: -1\n\t\t\t\t},\n\n\t\t\t\tsupport: {\n\t\t\t\t\tmqttConnected: false\n\t\t\t\t},\n\n\t\t\t\tproperties: {\n\t\t\t\t\tproperty: {\n\t\t\t\t\t\tselectedPropertyValueId: -1\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// This flag is toggled by the ModelEditor mixin to indicate unsaved changes.\n\t\t// Routes use this flag in willTransition() hooks to pause transitions for confirmation.\n\t\tisDirty: false,\n\n\t\tariaLive: ''\n\t});\n});","define('aira-mgmt/services/text-measurer', ['exports', 'ember-text-measurer/services/text-measurer'], function (exports, _textMeasurer) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(exports, 'default', {\n    enumerable: true,\n    get: function () {\n      return _textMeasurer.default;\n    }\n  });\n});","define('aira-mgmt/session-stores/application', ['exports', 'ember-simple-auth/session-stores/adaptive'], function (exports, _adaptive) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _adaptive.default.extend();\n});","define(\"aira-mgmt/templates/application\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"lufd+vA1\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[2,\\\" Main navbar \\\"],[0,\\\"\\\\n\\\"],[7,\\\"nav\\\",true],[10,\\\"class\\\",\\\"navbar navbar-inverse\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"navbar-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"a\\\",true],[10,\\\"aria-hidden\\\",\\\"true\\\"],[10,\\\"class\\\",\\\"navbar-brand\\\"],[10,\\\"href\\\",\\\"/\\\"],[8],[7,\\\"img\\\",true],[10,\\\"src\\\",\\\"/images/logo.png\\\"],[10,\\\"alt\\\",\\\"Aira Logo\\\"],[8],[9],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"navbar-toggle collapsed\\\"],[10,\\\"data-toggle\\\",\\\"collapse\\\"],[10,\\\"data-target\\\",\\\"#navbar\\\"],[10,\\\"aria-expanded\\\",\\\"false\\\"],[10,\\\"aria-controls\\\",\\\"navbar\\\"],[10,\\\"style\\\",\\\"border: none; outline: none;\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"sr-only\\\"],[8],[0,\\\"Toggle navigation\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon-tree5\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"session\\\",\\\"isAuthenticated\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"id\\\",\\\"navbar\\\"],[10,\\\"class\\\",\\\"navbar-collapse collapse\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"nav navbar-nav navbar-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"dropdown\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"a\\\",true],[10,\\\"class\\\",\\\"dropdown-toggle\\\"],[10,\\\"data-toggle\\\",\\\"dropdown\\\"],[10,\\\"role\\\",\\\"button\\\"],[10,\\\"aria-haspopup\\\",\\\"true\\\"],[10,\\\"aria-expanded\\\",\\\"false\\\"],[10,\\\"href\\\",\\\"#\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[8],[1,[24,[\\\"session\\\",\\\"data\\\",\\\"authenticated\\\",\\\"login\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"caret\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"dropdown-menu\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"account\\\"]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-cog5\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tAccount settings\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"logout\\\"]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-switch2\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tLogout\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"],[2,\\\" /main navbar \\\"],[0,\\\"\\\\n\\\\n\\\\n\\\"],[2,\\\" Page container \\\"],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-container\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[2,\\\" Page content \\\"],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-content\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[2,\\\" Main content \\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content-wrapper\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[2,\\\" Page header \\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"page-header page-header-xs\\\"],[10,\\\"aria-labelledby\\\",\\\"appTitle\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-header-content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-title\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"h4\\\",true],[10,\\\"id\\\",\\\"appTitle\\\"],[8],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"text-semibold\\\"],[8],[0,\\\"Aira\\\"],[9],[0,\\\" - Management Dashboard\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-elements\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn-group\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-link btn-float has-text\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-users4 text-primary\\\"],[8],[9],[7,\\\"span\\\",true],[8],[0,\\\"Manage Users\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"link-to\\\",null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-link btn-float has-text\\\",\\\"accounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-user-tie text-primary\\\"],[8],[9],[0,\\\" \\\"],[7,\\\"span\\\",true],[8],[0,\\\"Manage Accounts\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"link-to\\\",null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-link btn-float has-text\\\",\\\"apps\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-android text-primary\\\"],[8],[9],[0,\\\" \\\"],[7,\\\"span\\\",true],[8],[0,\\\"App Versions\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[2,\\\"<a href=\\\\\\\"#\\\\\\\" class=\\\\\\\"btn btn-link btn-float has-text\\\\\\\"><i class=\\\\\\\"icon-database-edit2 text-primary\\\\\\\"></i> <span>System Config</span></a>\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[2,\\\" /page header \\\"],[0,\\\"\\\\n\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[2,\\\" Content area \\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sr-only\\\"],[10,\\\"aria-live\\\",\\\"assertive\\\"],[10,\\\"aria-relevant\\\",\\\"all\\\"],[8],[1,[24,[\\\"state\\\",\\\"ariaLive\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[2,\\\" /content area \\\"],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[2,\\\" /main content \\\"],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[2,\\\" /page content \\\"],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[2,\\\" /page container \\\"],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"footer\\\",true],[10,\\\"class\\\",\\\"page-footer\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12 text-center text-muted\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t© Aira Tech Corp. 2016-2021\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/templates/application.hbs\" } });\n});","define(\"aira-mgmt/templates/components/data-input\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"ZIwYKzFl\", \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/templates/components/data-input.hbs\" } });\n});","define(\"aira-mgmt/templates/components/simple-panel\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"q3tC8LT8\", \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-heading\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"panel-title\\\"],[10,\\\"id\\\",\\\"rightTitle\\\"],[8],[7,\\\"span\\\",true],[8],[1,[22,\\\"title\\\"],true],[9],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"small-text\\\"],[8],[1,[22,\\\"rightText\\\"],true],[9],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/templates/components/simple-panel.hbs\" } });\n});","define(\"aira-mgmt/templates/explorers\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"VvxRNo4+\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h1\\\",true],[10,\\\"style\\\",\\\"text-align: center; font-size: 60px;\\\"],[8],[0,\\\"\\\\n\\\\tExplorer Signups:\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"count\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/templates/explorers.hbs\" } });\n});","define(\"aira-mgmt/templates/index\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"cVPMC5ng\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/templates/index.hbs\" } });\n});","define(\"aira-mgmt/templates/loading\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"OC2tYQZ7\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"LOADING\\\"],[9],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/templates/loading.hbs\" } });\n});","define(\"aira-mgmt/templates/login\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"vYqnPk7a\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"row\\\"],[10,\\\"aria-labelledby\\\",\\\"rightTitle\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-offset-4 col-md-4\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"simple-panel\\\",null,[[\\\"title\\\"],[\\\"<i class='icon-lock2 position-right' aria-hidden='true'></i><span class='sr-only'>Login</span>\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary btn-xlg\\\"],[12,\\\"disabled\\\",[22,\\\"isLoading\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"login\\\"]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tLogin with Okta\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/templates/login.hbs\" } });\n});","define('aira-mgmt/users/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    queryParams: ['type', 'q'],\n\n    activeId: null,\n\n    // Binds search input to query param\n    q: null,\n    type: \"\",\n    search: null,\n    searchType: \"\",\n    activeUserId: -1,\n\n    propertyOptions: [{ text: 'Test Mode', id: 'TEST' }, { text: 'Test User', id: 'TEST_USER' }],\n\n    actions: {\n      selectPropertyType: function selectPropertyType(property) {\n        this.set(\"propertyType\", property);\n        console.log(this.get(\"propertyType\"));\n      }\n    }\n  });\n});","define('aira-mgmt/users/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define(\"aira-mgmt/users/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"aJAdH3qv\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"simple-panel\\\",null,[[\\\"title\\\"],[\\\"User Details\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center tex-muted\\\"],[8],[0,\\\"Search and select a user on the left.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/index/template.hbs\" } });\n});","define('aira-mgmt/users/new/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define(\"aira-mgmt/users/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"+uc5qOXO\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"simple-panel\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Coming Soon.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/new/template.hbs\" } });\n});","define('aira-mgmt/users/route', ['exports', 'ember-simple-auth/mixins/authenticated-route-mixin'], function (exports, _authenticatedRouteMixin) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n\n    queryParams: {\n      q: {\n        refreshModel: true\n      },\n      type: {\n        refreshModel: true\n      }\n    },\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model(params) {\n      var _this = this;\n\n      if (params.q && params.type) {\n        return Ember.RSVP.hash({\n          user: new Ember.RSVP.Promise(function (resolve, reject) {\n            _this.get('platform').doGet('search/user?type=' + encodeURIComponent(params.type) + '&q=' + encodeURIComponent(params.q)).then(function (response) {\n              resolve(response);\n            }, function (_ref) {\n              var errorCode = _ref.errorCode,\n                  errorMessage = _ref.errorMessage;\n\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n              return [];\n            });\n          })\n        });\n      } else {\n        return [];\n      }\n    },\n    afterModel: function afterModel(model) {\n      if (model.user) {\n        this.set('state.ariaLive', model.user.result.length + ' results.');\n      }\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('users', this.get('users'));\n      controller.set('search', controller.get('q'));\n      controller.set('propertyType', \"\");\n      if (controller.get('q') !== null && model.length < 1) {\n        this.get('notify').error('404 Error: No User was found');\n      }\n    },\n\n\n    actions: {\n      loading: function loading(transition) {\n        var controller = this.get('controller');\n        if (controller) {\n          controller.set('isSearching', true);\n          transition.promise.finally(function () {\n            controller.set('isSearching', false);\n          });\n        } else {}\n      },\n\n\n      /**\n       * searchByName: This method gets called by a button click or pressing enter when searching for a name\n       */\n      searchByName: function searchByName() {\n        //creates first and last name\n        var firstName = \"?\";\n        var lastName = \"?\";\n        var searchType = \"NAME\";\n\n        //Checks if the first name search bar has a non-empty value\n        if (this.get(\"controller.firstN\")) {\n          firstName = this.get(\"controller.firstN\");\n          //if it has a valid value reassign firstName variable\n        }\n\n        //Checks if the last name search bar has a non-empty value\n        if (this.get(\"controller.lastN\")) {\n          lastName = this.get(\"controller.lastN\");\n          //if it has a valid value reassign lastName variable\n        }\n        //Actually what does this do? Do I need it?\n        this.controller.set('activeId', -1);\n\n        //search is the query that will get passed to platform\n        //if either firstName or lastName didn't have a valid search parameter, then it will be sent as a ?\n        var search = firstName + \"/\" + lastName;\n        //transition with the query\n\n        this.transitionTo('users', {\n          queryParams: {\n            q: search,\n            type: searchType\n          }\n        });\n      },\n\n\n      /**\n       * searchByAddress: This method gets called by a button click or pressing enter when searching for by address\n       */\n      searchByAddress: function searchByAddress() {\n        //Assigns all the search parameter to ?\n        var city = \"?\";\n        var state = \"?\";\n        var country = \"?\";\n        var zip = \"?\";\n        var searchType = \"ADDRESS\";\n\n        //Checks each search bar, for city, state, country and zip, checks if they have non empty values, if they do\n        //assign the variables above to them, if not they stay as ?\n        if (this.get(\"controller.city\")) {\n          city = this.get(\"controller.city\");\n        }\n        if (this.get(\"controller.state\")) {\n          state = this.get(\"controller.state\");\n        }\n        if (this.get(\"controller.country\")) {\n          country = this.get(\"controller.country\");\n        }\n        if (this.get(\"controller.zip\")) {\n          zip = this.get(\"controller.zip\");\n        }\n\n        //Creating the search query that will be sent to platform\n        var search = city + \"/\" + state + \"/\" + country + \"/\" + zip;\n\n        this.transitionTo('users', {\n          queryParams: {\n            q: search,\n            type: searchType\n          }\n        });\n      },\n\n      /**\n       * searchByEmail: This method gets called by a button click or pressing enter when searching for by Email\n       */\n      searchByEmail: function searchByEmail() {\n\n        //assigns email variable to ?\n        var email = \"?\";\n        var searchType = \"EMAIL\";\n\n        //checks if the phone search bar is non empty, if it is copy it's value into phone\n        if (this.get(\"controller.email\") !== \"\") {\n          email = this.get(\"controller.email\");\n        }\n\n        //creates the search query passed to platform\n        var search = email;\n\n        //transition with query\n        this.transitionTo('users', {\n          queryParams: {\n            q: search,\n            type: searchType\n          }\n        });\n      },\n\n\n      /**\n       * searchByPhone: This method gets called by a button click or pressing enter when searching for by Phone\n       */\n\n      searchByPhone: function searchByPhone() {\n        //assigns the phone variable to ?\n        var phone = \"?\";\n        var searchType = \"PHONE\";\n\n        //checks if the phone search bar is non empty, if it is copy it's value into phone\n        if (this.get(\"controller.phone\") !== \"\") {\n          phone = this.get(\"controller.phone\");\n        }\n\n        //create a search query the value in the search, or ? otherwise\n        var search = phone;\n\n        this.transitionTo('users', {\n          queryParams: {\n            q: search,\n            type: searchType\n\n          }\n        });\n      },\n\n\n      /**\n       * searchByUserId: This method gets called by a button click or pressing enter when searching by User Id\n       */\n      searchByUserId: function searchByUserId() {\n        //sets the intial value to ?\n        var userId = \"?\";\n        var searchType = \"USER_ID\";\n\n        //checks if the value in the user is non empty\n        if (this.get(\"controller.userId\") !== \"\") {\n          userId = this.get(\"controller.userId\");\n        }\n\n        var search = userId;\n        this.transitionTo('users', {\n          queryParams: {\n            q: search,\n            type: searchType\n          }\n        });\n      },\n      searchByUserProperty: function searchByUserProperty() {\n        var search = this.get(\"controller.propertyType\");\n        var searchType = \"PROPERTY\";\n        this.transitionTo('users', {\n          queryParams: {\n            q: search,\n            type: searchType\n          }\n        });\n      },\n      select: function select(userId) {\n        this.controller.set('activeId', userId);\n        try {\n          var activeTab = this.controllerFor('users.user').get('activeTab');\n          // Don't pass whole model because it's currently incomplete.\n          // This will trigger a call to the api that fetches the whole model\n          this.transitionTo('users.user.' + activeTab, userId);\n        } catch (e) {\n          // Just means no user had been selected yet so there's\n          // no controller initialized so there's no activeTab to maintain.\n          // Don't pass whole model because it's currently incomplete.\n          // This will trigger a call to the api that fetches the whole model\n          this.transitionTo('users.user', userId);\n        }\n      },\n\n\n      /**\n       *\n       * @param {String} searchType\n       * This method takes a string when it's called by one of the toolbar buttons\n       * That String will denote which search bars we want to display\n       */\n      displaySearch: function displaySearch(searchType) {\n\n        var nameToIdMap = new Map([[\"Name\", \"searchNames\"], [\"Address\", \"searchAddress\"], [\"Email\", \"searchByEmail\"], [\"Phone\", \"searchByPhone\"], [\"UserId\", \"searchByUserId\"], [\"Property\", \"searchByUserProperty\"]]);\n\n        var setOfSearchDisplays = new Set();\n        setOfSearchDisplays.add(document.getElementById(\"searchNames\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchAddress\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByEmail\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByPhone\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByUserId\"));\n        setOfSearchDisplays.add(document.getElementById(\"searchByUserProperty\"));\n\n        var _iteratorNormalCompletion = true;\n        var _didIteratorError = false;\n        var _iteratorError = undefined;\n\n        try {\n          for (var _iterator = setOfSearchDisplays[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n            var searchDisplay = _step.value;\n\n            if (nameToIdMap.get(searchType) === searchDisplay.id) {\n              searchDisplay.style.display = \"block\";\n            } else {\n              searchDisplay.style.display = \"none\";\n            }\n          }\n        } catch (err) {\n          _didIteratorError = true;\n          _iteratorError = err;\n        } finally {\n          try {\n            if (!_iteratorNormalCompletion && _iterator.return) {\n              _iterator.return();\n            }\n          } finally {\n            if (_didIteratorError) {\n              throw _iteratorError;\n            }\n          }\n        }\n      }\n    }\n\n  });\n});","define(\"aira-mgmt/users/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"eYmLzP0n\", \"block\": \"{\\\"symbols\\\":[\\\"user\\\"],\\\"statements\\\":[[2,\\\" Grid \\\"],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[10,\\\"aria-labelledby\\\",\\\"leftTitle\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[2,\\\" Table \\\"],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-heading\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"h5\\\",true],[10,\\\"id\\\",\\\"leftTitle\\\"],[10,\\\"class\\\",\\\"panel-title\\\"],[8],[0,\\\"Search All Users\\\"],[9],[0,\\\"\\\\n        \\\"],[2,\\\"Add toolbar here for different searches \\\"],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"container col-xs-12\\\"],[10,\\\"style\\\",\\\"width: 100%; height: 100%; border: 1px solid black;\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabbable\\\"],[10,\\\"style\\\",\\\"\\\"],[10,\\\"role\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"nav nav-tabs nav-tabs-highlight row nav-tabs-top  \\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Name\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"Name\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-user position-left\\\"],[8],[9],[0,\\\" Name\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Address\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"Address\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-home2 position-left\\\"],[8],[9],[0,\\\"Address\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Email\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"Email\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-mail5 position-left\\\"],[8],[9],[0,\\\"Email\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Phone\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"Phone\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-phone position-left\\\"],[8],[9],[0,\\\" Phone\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"UserID\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"UserId\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-info3 position-left\\\"],[8],[9],[0,\\\" User ID\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"Property\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"displaySearch\\\",\\\"Property\\\"]],[8],[0,\\\"\\\\n                  \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users\\\",null]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-question7 position-left\\\"],[8],[9],[0,\\\" User Property\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n            \\\"],[2,\\\" Below are the different search bar blocksin the page, the page starts off by displaying the name search\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\twhile everything else has to be navigated to\\\"],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: block\\\"],[10,\\\"id\\\",\\\"searchNames\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Only users with the given first and last name exists they will be displayed\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-6\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"First Name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formFirstName\\\",\\\"text\\\",\\\"Search for First Name\\\",\\\"Search for First Name\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"firstN\\\"]],\\\"searchByName\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-6\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Last Name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formLastName\\\",\\\"text\\\",\\\"Search for Last Name\\\",\\\"Search for Last Name\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"lastN\\\"]],\\\"searchByName\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByName\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchAddress\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Search by City, State code, two character Country code, or Zip code. Only users that match all given search attributes will be displayed\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-6\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"City\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formCity\\\",\\\"text\\\",\\\"Search by City\\\",\\\"Search by city\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"city\\\"]],\\\"searchByAddress\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-6\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"State\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formState\\\",\\\"text\\\",\\\"Search by State\\\",\\\"Search by State\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"state\\\"]],\\\"searchByAddress\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-6\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Country\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formCountry\\\",\\\"text\\\",\\\"Search by Country\\\",\\\"Search by Country\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"country\\\"]],\\\"searchByAddress\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-6\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Zip\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formZip\\\",\\\"text\\\",\\\"Search by Zip\\\",\\\"Search by Zip\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"zip\\\"]],\\\"searchByAddress\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByAddress\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByEmail\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"If what is searched by exists in an email, the corresponding user will be displayed\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Email Address\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formEmail\\\",\\\"text\\\",\\\"Search by Email\\\",\\\"Search By Email\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"email\\\"]],\\\"searchByEmail\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByEmail\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByPhone\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"If what's searched exists in any phone, the user associated will be displayed\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Phone Number\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formPhone\\\",\\\"text\\\",\\\"Search by Phone\\\",\\\"Search By Phone\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"phone\\\"]],\\\"searchByPhone\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByPhone\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByUserId\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Must search with exact User ID\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"User ID\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"title\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"formUserId\\\",\\\"text\\\",\\\"Search by user ID\\\",\\\"Search with User ID\\\",\\\"form-control\\\",\\\"off\\\",true,[24,[\\\"isSearching\\\"]],[24,[\\\"userId\\\"]],\\\"searchByUserId\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByUserId\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[10,\\\"style\\\",\\\"display: none\\\"],[10,\\\"id\\\",\\\"searchByUserProperty\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Displays a list of users with the selected user property\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-12\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"User Property\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"label\\\",\\\"options\\\",\\\"onSelect\\\"],[\\\"User Property\\\",[24,[\\\"propertyOptions\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectPropertyType\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-icon search-btn col-lg-2\\\"],[12,\\\"style\\\",\\\"margin:10px 0px\\\"],[12,\\\"title\\\",\\\"Search\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"searchByUserProperty\\\"]],[8],[0,\\\"Search\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"heading-btn\\\"],[10,\\\"style\\\",\\\"\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-lg-5\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSearching\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Searching...\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"user\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ID\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Status\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Name\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Email/Login\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n            \\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"user\\\",\\\"result\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"select\\\",[23,1,[\\\"id\\\"]]],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"id\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"status\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"firstName\\\"]],false],[0,\\\" \\\"],[1,[23,1,[\\\"lastName\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"login\\\"]],false],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"No Results.\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[2,\\\" /table \\\"],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"col-md-7\\\"],[10,\\\"aria-labelledby\\\",\\\"rightTitle\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[2,\\\" /grid \\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/template.hbs\" } });\n});","define('aira-mgmt/users/user/access/edit/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      return this.modelFor('users.user.access');\n    },\n\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n\n      if (this.get('controller.model.access').durationAllowed === -1) {\n        this.set('controller.accessLimitDuration', false);\n      } else {\n        this.set('controller.accessLimitDuration', true);\n      }\n      if (this.get('controller.model.access').durationPerCall === -1) {\n        this.set('controller.accessLimitDurationPerCall', false);\n      } else {\n        this.set('controller.accessLimitDurationPerCall', true);\n      }\n      if (this.get('controller.model.access').callsPerPeriod === -1) {\n        this.set('controller.accessLimitCallFrequency', false);\n      } else {\n        this.set('controller.accessLimitCallFrequency', true);\n      }\n    },\n\n    actions: {\n      saveAccess: function saveAccess() {\n        var _this = this;\n\n        var dataIsGood = true;\n        var errorMessage = [];\n        if (this.get('controller.accessLimitDuration')) {\n          if (this.get('controller.model.access').durationAllowed === '' || this.get('controller.model.access').durationAllowed === undefined) {\n            dataIsGood = false;\n            errorMessage.push('Must fill \"Maximum Duration Allowed\" when \"Enforce Maximum Duration Allowed\" checkbox checked');\n          }\n          if (this.get('controller.model.access').durationAllowed < 0 && this.get('controller.model.access').durationAllowed !== -1) {\n            dataIsGood = false;\n            errorMessage.push('\"Maximum Duration Allowed\" must be greater than 0.');\n          }\n        } else {\n          this.set('controller.model.access.durationAllowed', -1);\n        }\n        if (this.get('controller.accessLimitDurationPerCall')) {\n          if (this.get('controller.model.access').durationPerCall === '' || this.get('controller.model.access').durationPerCall === undefined) {\n            dataIsGood = false;\n            errorMessage.push('Must fill \"Maximum Call Duration\" when \"Enforce Maximum Call Duration\" checkbox checked');\n          }\n          if (this.get('controller.model.access').durationPerCall < 0 && this.get('controller.model.access').durationPerCall !== -1) {\n            dataIsGood = false;\n            errorMessage.push('\"Maximum Duration Per Call\" must be greater than 0.');\n          }\n        } else {\n          this.set('controller.model.access.durationPerCall', -1);\n        }\n        if (this.get('controller.accessLimitCallFrequency')) {\n          if (this.get('controller.model.access').callsPerPeriod === '' || this.get('controller.model.access').callsPerPeriod === undefined) {\n            dataIsGood = false;\n            errorMessage.push('Must fill \"Calls Per Period\" when \"Enforce Call Frequency\" checkbox checked');\n          }\n          if (this.get('controller.model.access').callsPerPeriod < 0 && this.get('controller.model.access').callsPerPeriod !== -1) {\n            dataIsGood = false;\n            errorMessage.push('\"Calls Per Period\" must be greater than 0.');\n          }\n          if (this.get('controller.model.access').callPeriodLength === '' || this.get('controller.model.access').callPeriodLength === undefined) {\n            dataIsGood = false;\n            errorMessage.push('Must fill \"Call Period Length\" when \"Enforce Call Frequency\" checkbox checked');\n          }\n          if (this.get('controller.model.access').callPeriodLength < 0) {\n            dataIsGood = false;\n            errorMessage.push('\"Call Period Length\" must be greater than 0.');\n          }\n        } else {\n          this.set('controller.model.access.callsPerPeriod', -1);\n          this.set('controller.model.access.callPeriodLength', 0);\n        }\n        if (this.get('controller.accessRenewalEnabled')) {\n          if (this.get('controller.model.access').accessRenewalCron === '' || this.get('controller.model.access').accessRenewalCron === undefined || this.get('controller.model.access').accessRenewalCron === null) {\n            dataIsGood = false;\n            errorMessage.push('Must fill \"Access Renewal Cron\" when \"Enforce Access Renewal\" checkbox checked');\n          }\n        }\n\n        if (dataIsGood) {\n          var userId = this.get('controller.model').access.userId;\n          var newAccess = {\n            durationAllowed: this.get('controller.model.access').durationAllowed === -1 ? -1 : parseInt(this.get('controller.model.access').durationAllowed),\n            durationPerCall: this.get('controller.model.access').durationPerCall === -1 ? -1 : parseInt(this.get('controller.model.access').durationPerCall),\n            callsPerPeriod: this.get('controller.model.access').callsPerPeriod === -1 ? -1 : parseInt(this.get('controller.model.access').callsPerPeriod),\n            callPeriodLength: this.get('controller.model.access').callPeriodLength === 0 ? 0 : parseInt(this.get('controller.model.access').callPeriodLength),\n            accessRenewalEnabled: this.get('controller.model.access').accessRenewalEnabled,\n            accessRenewalCron: this.get('controller.model.access').accessRenewalCron,\n            accessRenewalCronType: 'QUARTZ'\n          };\n          if (newAccess) {\n            this.get('platform').doPut(['mgmt', userId, 'access', 'default'].join('/'), newAccess).then(function () {\n              _this.get('notify').success('Access updated!');\n              _this.transitionTo('users.user.access', userId);\n            }, function (error) {\n              _this.send('error', error.errorMessage);\n            });\n          }\n        } else {\n          this.set('controller.errorMessage', errorMessage);\n        }\n      },\n      cancelEditAccess: function cancelEditAccess() {\n        this.transitionTo('users.user.access');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/access/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"LMSmL4NP\", \"block\": \"{\\\"symbols\\\":[\\\"err\\\"],\\\"statements\\\":[[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Update Access\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"form\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"accessDurationAllowedLimit\\\",\\\"checkbox\\\",\\\"durationAllowed\\\",[24,[\\\"accessLimitDuration\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessDurationAllowedLimit\\\"],[8],[0,\\\"Enforce Maximum Duration Allowed\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Unchecked allows no total limit. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessDurationAllowed\\\"],[8],[0,\\\"Maximum Duration Allowed\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"accessDurationAllowed\\\",\\\"number\\\",\\\"form-control\\\",\\\"Maximum duration allowed (seconds)\\\",[28,\\\"if\\\",[[24,[\\\"accessLimitDuration\\\"]],false,true],null],[24,[\\\"model\\\",\\\"access\\\",\\\"durationAllowed\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Specify, in seconds, the total amount of duration this Explorer can consume on this Five Minutes Free access. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Maximum Duration Allowed\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"accessDurationPerCallLimit\\\",\\\"checkbox\\\",\\\"durationPerCall\\\",[24,[\\\"accessLimitDurationPerCall\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessDurationPerCallLimit\\\"],[8],[0,\\\"Enforce Maximum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Unchecked allows no limit per call. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessDurationPerCall\\\"],[8],[0,\\\"Maximum Call Duration\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"accessDurationPerCall\\\",\\\"number\\\",\\\"form-control\\\",\\\"Maximum call duration (seconds)\\\",[28,\\\"if\\\",[[24,[\\\"accessLimitDurationPerCall\\\"]],false,true],null],[24,[\\\"model\\\",\\\"access\\\",\\\"durationPerCall\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"How long, in seconds, we wish to limit per call. Value must be greater than 0. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Maximum Call Duration\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"accessProductCallFrequency\\\",\\\"checkbox\\\",\\\"callFrequency\\\",[24,[\\\"accessLimitCallFrequency\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessProductCallFrequency\\\"],[8],[0,\\\"Enforce Call Frequency\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Unchecked allows back to back calls. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessCallsPerPeriodEnabled\\\"],[8],[0,\\\"Calls Per Period\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"accessCallsPerPeriodEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Calls per period\\\",[28,\\\"if\\\",[[24,[\\\"accessLimitCallFrequency\\\"]],false,true],null],[24,[\\\"model\\\",\\\"access\\\",\\\"callsPerPeriod\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"The number of calls allowed per call period length (set below). \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessCallPeriodLengthEnabled\\\"],[8],[0,\\\"Call Period Length\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"accessCallPeriodLengthEnabled\\\",\\\"number\\\",\\\"form-control\\\",\\\"Call period length (seconds)\\\",[28,\\\"if\\\",[[24,[\\\"accessLimitCallFrequency\\\"]],false,true],null],[24,[\\\"model\\\",\\\"access\\\",\\\"callPeriodLength\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"\\\\n      How long, in seconds, the user can call (set above) per period. Eg. 5 calls per period and 3600 call period length would allow the user 5 calls every 60 minutes.\\\\n      \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Call Frequency\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"disabled\\\",\\\"checked\\\"],[\\\"accessRenewalEnabled\\\",\\\"checkbox\\\",\\\"accessRenewalEnabled\\\",[28,\\\"if\\\",[[24,[\\\"accessLimitDuration\\\"]],false,true],null],[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalEnabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessRenewalEnabled\\\"],[8],[0,\\\"Enforce Access Renewal\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Whether to enable resetting the duration used after a scheduled period of time. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Optional field\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"accessRenewalCron\\\"],[8],[0,\\\"Access Renewal Cron\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"accessRenewalCron\\\",\\\"text\\\",\\\"form-control\\\",\\\"0 0 1 * *\\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalEnabled\\\"]],false,true],null],[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalCron\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"small\\\",true],[10,\\\"class\\\",\\\"form-text text-muted\\\"],[8],[0,\\\"Define the renewal frequency via a \\\"],[7,\\\"a\\\",true],[10,\\\"href\\\",\\\"https://www.freeformatter.com/cron-expression-generator-quartz.html\\\"],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"cron expression\\\"],[9],[0,\\\". Eg. 0 0 1 * * ? means renew on first day of each month. \\\"],[7,\\\"i\\\",true],[8],[0,\\\"Required field, if \\\\\\\"Enforce Access Renewal\\\\\\\" checkbox is checked\\\"],[9],[0,\\\".\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[24,[\\\"errorMessage\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-danger alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"cancelEditAccess\\\"],null]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"saveAccess\\\"],null]]],[8],[0,\\\"Save Access \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/access/edit/template.hbs\" } });\n});","define('aira-mgmt/users/user/access/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    model: function model() {\n      return this.modelFor('users.user.access');\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n    },\n\n\n    actions: {\n      editAccess: function editAccess(access) {\n        this.transitionTo('users.user.access.edit', access);\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/access/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"URDbyICI\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"access\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Access\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"accessName\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Access Name: \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"accessName\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Access Key: \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"accessKey\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Has free call: \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"hasFreeCall\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Next free call:\\\\n          \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"timeUntilNextFreeCall\\\"]],null],null]],null,{\\\"statements\\\":[[0,\\\"now\\\\n          \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"timeUntilNextFreeCall\\\"]],\\\"MM/DD/YYYY h:mm:ssa z\\\",\\\"X\\\"],null],false],[0,\\\" \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Usage\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Duration Limit: \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"durationUsed\\\"]],false],[0,\\\" seconds used of\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"durationAllowed\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"            no limit\\\\n          \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"durationAllowed\\\"]],false],[0,\\\" seconds \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Duration per call: \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"durationPerCall\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n          No limit\\\\n        \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"durationPerCall\\\"]],false],[0,\\\" seconds \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Call frequency: \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"callsPerPeriod\\\"]],-1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n          Unlimited\\\\n        \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[24,[\\\"model\\\",\\\"access\\\",\\\"callsPerPeriod\\\"]],false]],\\\"parameters\\\":[]}],[0,\\\" call(s) per \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"callPeriodLength\\\"]],false],[0,\\\" seconds\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Enforcement conditions\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Calls must be at least: \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"enforcedOnDuration\\\"]],false],[0,\\\" seconds long\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Access renewals\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Access renews: \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalEnabled\\\"]],null],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n          no renewal created\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalEnabled\\\"]],false]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Next refresh: \\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalNextExecution\\\"]],null],null]],null,{\\\"statements\\\":[[0,\\\"none\\\\n        \\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalNextExecution\\\"]],\\\"MM/DD/YYYY h:mm:ssa z\\\",\\\"X\\\"],null],false],[0,\\\" \\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Cron type: \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalCronType\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Cron expression: \\\"],[1,[24,[\\\"model\\\",\\\"access\\\",\\\"accessRenewalCron\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"editAccess\\\",[24,[\\\"model\\\",\\\"access\\\",\\\"userId\\\"]]]],[8],[0,\\\"Edit Access\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      No access found\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/access/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/access/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    platform: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    model: function model() {\n      var _this = this;\n\n      return Ember.RSVP.hash({\n        access: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('mgmt/' + _this.modelFor('users.user').id + '/access/default').then(function (response) {\n            response.userId = parseInt(_this.modelFor('users.user').id);\n            console.log('response data with userID', response);\n            resolve(response);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n            return [];\n          });\n        })\n      });\n    }\n  });\n});","define(\"aira-mgmt/users/user/access/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"TlXVAo7W\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/access/template.hbs\" } });\n});","define('aira-mgmt/users/user/accounts/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    beforeModel: function beforeModel() {},\n\n\n    actions: {\n      selectAccount: function selectAccount(accountId) {\n        this.transitionTo('accounts.account', accountId);\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/accounts/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"ROzurCBM\", \"block\": \"{\\\"symbols\\\":[\\\"account\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"accounts\\\"]]],null,{\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Account ID\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Account Name\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Account Type\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"User Type\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Minutes Used\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Minutes Allowed\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ASL account\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n    \\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"accounts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectAccount\\\",[23,1,[\\\"accountId\\\"]]],null],[28,\\\"equal\\\",[[24,[\\\"activeId\\\"]],[23,1,[\\\"accountId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"accountId\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"account\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"account\\\",\\\"accountType\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"userType\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"duration-used\\\",[[23,1,[]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"duration-allowed\\\",[[23,1,[]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"asl\\\"]],false],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[7,\\\"p\\\",true],[8],[0,\\\"This user has no accounts\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/accounts/template.hbs\" } });\n});","define('aira-mgmt/users/user/activity/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    actions: {\n      // update(p, input) {\n      //   this.get('pendingUpdates')[p.property.key] = input;\n      // }\n    }\n  });\n});","define('aira-mgmt/users/user/activity/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model(p) {\n      var _this = this;\n\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        Ember.RSVP.hash({\n          activity: _this.get('platform').doGet('mgmt/' + _this.modelFor('users.user').id + '/login')\n        }).then(function (response) {\n          var activity = response;\n          // console.log('activity', activity);\n          resolve(activity);\n        }, function (_ref) {\n          var errorCode = _ref.errorCode,\n              errorMessage = _ref.errorMessage;\n\n          reject({ errorCode: errorCode, errorMessage: errorMessage });\n        });\n      });\n    },\n\n\n    actions: {\n      logoutApp: function logoutApp(appName) {\n        var _this2 = this;\n\n        var user = this.modelFor('users.user');\n        var fullName = user.get('lastName') != null ? user.get('firstName') + ' ' + user.get('lastName') : user.get('firstName');\n        var userId = user.get('id');\n        if (confirm('Are you sure you want to logout ' + fullName + ' with user ID ' + userId + ' from ' + appName + '?')) {\n          this.get('platform').doPost(['mgmt', userId, 'login', appName, 'logout'].join('/')).then(function () {\n            _this2.get('notify').success('User has been logged out of ' + appName);\n            _this2.transitionTo('users.user');\n          }, function (error) {\n            _this2.send('error', error);\n          });\n        }\n      },\n      banApp: function banApp(appName) {\n        var _this3 = this;\n\n        var user = this.modelFor('users.user');\n        var fullName = user.get('lastName') != null ? user.get('firstName') + ' ' + user.get('lastName') : user.get('firstName');\n        var userId = user.get('id');\n        if (confirm('Are you sure you want to ban ' + fullName + ' with user ID ' + userId + ' from ' + appName + '?')) {\n          this.get('platform').doPost(['mgmt', userId, 'login', appName, 'blacklist'].join('/')).then(function () {\n            _this3.get('notify').success('User has been banned from ' + appName);\n            _this3.transitionTo('users.user');\n          }, function (error) {\n            _this3.send('error', error);\n          });\n        }\n      },\n      logoutUser: function logoutUser() {\n        var _this4 = this;\n\n        var user = this.modelFor('users.user');\n        // console.log('logoutUser', user);\n        var fullName = user.get('lastName') != null ? user.get('firstName') + ' ' + user.get('lastName') : user.get('firstName');\n        var userId = user.get('id');\n        if (confirm('Are you sure you want to logout ' + fullName + ' with user ID ' + userId + '?')) {\n          this.get('platform').doDelete(['mgmt', userId, 'login'].join('/')).then(function () {\n            _this4.get('notify').success('User has been logged out of everything');\n            _this4.transitionTo('users.user');\n          }, function (error) {\n            _this4.send('error', error);\n          });\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/activity/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"FENuMgTR\", \"block\": \"{\\\"symbols\\\":[\\\"a\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form mb-20\\\"],[8],[0,\\\"Login Activity\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"App\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Login\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Logout\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Status\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Device Serial\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Logout\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Ban\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"log\\\",[[24,[\\\"model\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"activity\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"appName\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"get-epoch-date\\\",[[23,1,[\\\"loginDateTime\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"get-epoch-date\\\",[[23,1,[\\\"logoutDateTime\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"status\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"deviceSerial\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"logoutApp\\\",[23,1,[\\\"appName\\\"]]]],[8],[0,\\\"\\\\n                    Logout\\\\n                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger\\\"],[12,\\\"disabled\\\",[28,\\\"bannable\\\",[[23,1,[\\\"deviceSerial\\\"]]],null]],[3,\\\"action\\\",[[23,0,[]],\\\"banApp\\\",[23,1,[\\\"appName\\\"]]]],[8],[0,\\\"\\\\n                    Ban\\\\n                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"logoutUser\\\"]],[8],[0,\\\"\\\\n        Logout All\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/activity/template.hbs\" } });\n});","define('aira-mgmt/users/user/address/edit/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    address: Ember.computed.alias('state.users.user.address'),\n\n    notify: Ember.inject.service(),\n\n    model: function model(p) {\n      return this.get('store').findRecord('address', p.address_id);\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // applies row highlight on transition from row click\n      this.set('address.selectedAddressId', model.id);\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        } else {\n          this.set('address.selectedAddressId', -1);\n        }\n      },\n\n      save: function save(address, addressProps) {\n        var _this = this;\n\n        address.setProperties(addressProps);\n        return address.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Address was updated.');\n          _this.transitionTo('users.user.address');\n        });\n      },\n      cancel: function cancel(address) {\n        address.rollbackAttributes();\n        this.transitionTo('users.user.address');\n      },\n      delete: function _delete(address) {\n        var _this2 = this;\n\n        address.destroyRecord().then(function () {\n          console.log('delete');\n          _this2.set('state.isDirty', false);\n          _this2.get('notify').success('Address was deleted.');\n          _this2.transitionTo('users.user.address');\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/address/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"SZl/kxc7\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-address\\\",null,[[\\\"title\\\",\\\"address\\\",\\\"onDelete\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"Edit Address\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"delete\\\"],null],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/address/edit/template.hbs\" } });\n});","define(\"aira-mgmt/users/user/address/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"zUWRp/Oe\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-primary\\\",\\\"users.user.address.new\\\"]],{\\\"statements\\\":[[0,\\\"    New Address \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/address/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/address/new/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    address: Ember.computed.alias('state.users.user.address'),\n\n    notify: Ember.inject.service(),\n\n    model: function model() {\n      this.set('address.selectedAddressId', -1);\n\n      return this.get('store').createRecord('address', {\n        userId: this.modelFor('users.user'),\n        address1: null,\n        address2: null,\n        address3: null,\n        addresstype: null,\n        city: null,\n        country: null,\n        county: null,\n        state: null,\n        status: null,\n        validfrom: null,\n        zip: null\n      });\n    },\n    deactivate: function deactivate() {\n      // Not done in cancel incase user navigates away by another means\n      this.get('currentModel').rollbackAttributes();\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        }\n      },\n\n      save: function save(address, addressProps) {\n        var _this = this;\n\n        address.setProperties(addressProps);\n        address.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Address was added.');\n          _this.transitionTo('users.user.address');\n        });\n      },\n      cancel: function cancel() {\n        this.transitionTo('users.user.address');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/address/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"7jj031wb\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-address\\\",null,[[\\\"title\\\",\\\"address\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"New Address\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/address/new/template.hbs\" } });\n});","define('aira-mgmt/users/user/address/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide state service to generated controller, avoids making our own.\n      controller.set('state', this.get('state'));\n    },\n\n\n    actions: {\n      // received from table row click\n      selectAddress: function selectAddress(address) {\n        this.transitionTo('users.user.address.edit', address);\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/address/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"AsvXJwdw\", \"block\": \"{\\\"symbols\\\":[\\\"address\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"addresses\\\"]]],null,{\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Street\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Apt/Suite\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"City\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"State\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Zip\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n    \\\"],[2,\\\"-o below is the html that shows all the possible addresses for a user in the result table\\\"],[0,\\\"\\\\n    \\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"addresses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectAddress\\\",[23,1,[]]],null],[28,\\\"equal\\\",[[24,[\\\"state\\\",\\\"users\\\",\\\"user\\\",\\\"address\\\",\\\"selectedAddressId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"addresstype\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"address1\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"address2\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"city\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"state\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"zip\\\"]],false],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[1,[24,[\\\"model\\\",\\\"firstName\\\"]],false],[0,\\\" has not yet provided any addresses.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/address/template.hbs\" } });\n});","define('aira-mgmt/users/user/chats-v2/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    queryParams: ['pg'],\n\n    pg: 1,\n\n    timezone: null,\n\n    disableBack: Ember.computed('pg', function () {\n      return parseInt(this.pg) === 1;\n    }),\n\n    disableNext: Ember.computed('model.rooms.hasNext', function () {\n      return this.model.rooms.hasNext !== true;\n    }),\n\n    actions: {\n      previousPage: function previousPage() {\n        this.decrementProperty('pg');\n      },\n      nextPage: function nextPage() {\n        this.incrementProperty('pg');\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/chats-v2/route', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n    queryParams: {\n      pg: {\n        refreshModel: true\n      }\n    },\n\n    firebase: Ember.inject.service(),\n\n    model: function model(params) {\n      var _this = this;\n\n      var userId = this.modelFor('users.user').id;\n      return Ember.RSVP.hash({\n        rooms: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.firebase.getIdToken().then(function (idToken) {\n            $.ajax({\n              url: _environment.default.APP.aira_api_base_url + '/chat/user/' + userId + '/rooms?page=' + (parseInt(params.pg) > 1 ? params.pg : 1),\n              method: 'GET',\n              contentType: 'application/json',\n              headers: {\n                'Authorization': 'Bearer ' + idToken\n              },\n              success: function success(data) {\n                resolve(data);\n              },\n              error: function error(jqXHR) {\n                reject(jqXHR);\n              }\n            });\n          }).catch(function (error) {\n            return reject(error);\n          });\n        })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('timezone', new Date().toLocaleTimeString('en-us', { timeZoneName: 'short' }).split(' ')[2]);\n    },\n\n\n    actions: {\n      openChatReport: function openChatReport(room) {\n        window.open(_environment.default.APP.ssp + '/internal/chatReport?chatId=' + room.roomId, '_blank');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/chats-v2/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"rHsl+d95\", \"block\": \"{\\\"symbols\\\":[\\\"room\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"rooms\\\",\\\"rooms\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Room ID\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Created (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Title\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"rooms\\\",\\\"rooms\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"allowActive\\\"],[[28,\\\"route-action\\\",[\\\"openChatReport\\\",[23,1,[]]],null],false]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"roomId\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isFlagged\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Flagged as inappropriate\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-exclamation-sign\\\"],[10,\\\"style\\\",\\\"color: red; font-size: 13px;\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"createdAt\\\"]],\\\"M/D/YY h:mm:ss a\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"disableBack\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"previousPage\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Newer Rooms\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"disableNext\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"nextPage\\\"]],[8],[0,\\\"Older Rooms \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Explorer does not have any chat rooms.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/chats-v2/template.hbs\" } });\n});","define('aira-mgmt/users/user/chats/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    queryParams: ['pg'],\n\n    pg: 0,\n\n    timezone: null,\n\n    disableBack: Ember.computed('pg', function () {\n      return parseInt(this.pg) === 0;\n    }),\n\n    disableNext: Ember.computed('model.service.response.hasMore', function () {\n      return this.model.chats.response.hasMore === false;\n    }),\n\n    actions: {\n      previousPage: function previousPage() {\n        this.decrementProperty('pg');\n      },\n      nextPage: function nextPage() {\n        this.incrementProperty('pg');\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/chats/route', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n    queryParams: {\n      pg: {\n        refreshModel: true\n      }\n    },\n\n    platform: Ember.inject.service(),\n\n    model: function model(params) {\n      var _this = this;\n\n      var userId = this.modelFor('users.user').id;\n      return Ember.RSVP.hash({\n        chats: new Promise(function (resolve, reject) {\n          _this.platform.doGet('chat?userId=' + userId + '&page=' + params.pg).then(function (chats) {\n            resolve(Ember.Object.create(chats));\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('timezone', new Date().toLocaleTimeString('en-us', { timeZoneName: 'short' }).split(' ')[2]);\n    },\n\n\n    actions: {\n      openChatReport: function openChatReport(chat) {\n        window.open(_environment.default.APP.ssp + '/internal/chatReport?chatId=' + chat.id, '_blank');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/chats/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"7+ac+2TP\", \"block\": \"{\\\"symbols\\\":[\\\"chat\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"chats\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ID\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Created (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Title\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"chats\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"allowActive\\\"],[[28,\\\"route-action\\\",[\\\"openChatReport\\\",[23,1,[]]],null],false]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"id\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"flagged\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"title\\\",\\\"Flagged as inappropriate\\\"],[10,\\\"class\\\",\\\"glyphicon glyphicon-exclamation-sign\\\"],[10,\\\"style\\\",\\\"color: red; font-size: 13px;\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"createdAt\\\"]],\\\"M/D/YY h:mm:ss a\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"disableBack\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"previousPage\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Newer Chats\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"disableNext\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"nextPage\\\"]],[8],[0,\\\"Older Chats \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Explorer does not have any chat sessions.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/chats/template.hbs\" } });\n});","define('aira-mgmt/users/user/comments/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n    beforeModel: function beforeModel() {}\n  });\n});","define(\"aira-mgmt/users/user/comments/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"jI+hhiyw\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/comments/template.hbs\" } });\n});","define('aira-mgmt/users/user/contacts/edit/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    contacts: Ember.computed.alias('state.users.user.contacts'),\n\n    notify: Ember.inject.service(),\n\n    model: function model(p) {\n      return this.get('store').findRecord('contact', p.contact_id);\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // applies row highlight on transition from row click\n      this.set('contacts.selectedContactId', model.id);\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        } else {\n          this.set('contacts.selectedContactId', -1);\n        }\n      },\n\n      save: function save(contact, contactProps) {\n        var _this = this;\n\n        contact.setProperties(contactProps);\n        return contact.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Contact was updated.');\n          _this.transitionTo('users.user.contacts');\n        }, function (error) {\n          _this.send('error', error);\n        });\n      },\n      cancel: function cancel(contact) {\n        contact.rollbackAttributes();\n        this.transitionTo('users.user.contacts');\n      },\n      delete: function _delete(contact) {\n        var _this2 = this;\n\n        contact.destroyRecord().then(function () {\n          _this2.set('state.isDirty', false);\n          _this2.get('notify').success('Contact was deleted.');\n          _this2.transitionTo('users.user.contacts');\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/contacts/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"0dncMd3o\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-contact\\\",null,[[\\\"title\\\",\\\"contact\\\",\\\"onDelete\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"Edit Contact\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"delete\\\"],null],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/contacts/edit/template.hbs\" } });\n});","define(\"aira-mgmt/users/user/contacts/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"OVl+cCsS\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"contacts\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"text-muted\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Users are limited to one emergency contact. Edit or delete the existing contact above.\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-primary\\\",\\\"users.user.contacts.new\\\"]],{\\\"statements\\\":[[0,\\\"      New Contact \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/contacts/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/contacts/new/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    contacts: Ember.computed.alias('state.users.user.contacts'),\n\n    notify: Ember.inject.service(),\n\n    model: function model() {\n      this.set('contacts.selectedContactId', -1);\n\n      return this.get('store').createRecord('contact', {\n        user: this.modelFor('users.user'),\n        firstName: null,\n        lastName: null,\n        email: null,\n        phone: null,\n        relationship: null,\n        type: 'Emergency'\n      });\n    },\n    deactivate: function deactivate() {\n      // Not done in cancel incase user navigates away by another means\n      this.get('currentModel').rollbackAttributes();\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        }\n      },\n\n      save: function save(contact, contactProps) {\n        var _this = this;\n\n        contact.setProperties(contactProps);\n        return contact.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Contact was added.');\n          _this.transitionTo('users.user.contacts');\n        }, function (error) {\n          _this.send('error', error);\n        });\n      },\n      cancel: function cancel() {\n        this.transitionTo('users.user.contacts');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/contacts/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"ETRnIkCI\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-contact\\\",null,[[\\\"title\\\",\\\"contact\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"New Contact\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/contacts/new/template.hbs\" } });\n});","define('aira-mgmt/users/user/contacts/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide state service to generated controller, avoids making our own.\n      controller.set('state', this.get('state'));\n    },\n\n\n    actions: {\n      // received from table row click\n      selectContact: function selectContact(contact) {\n        this.transitionTo('users.user.contacts.edit', contact);\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/contacts/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"+d28MeW3\", \"block\": \"{\\\"symbols\\\":[\\\"contact\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"contacts\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"First Name\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Last Name\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Phone\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Email\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Relationship\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"contacts\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"is-emergency-contact\\\",[[23,1,[]]],null]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectContact\\\",[23,1,[]]],null],[28,\\\"equal\\\",[[24,[\\\"state\\\",\\\"users\\\",\\\"user\\\",\\\"contacts\\\",\\\"selectedContactId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"firstName\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"lastName\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"phone\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"email\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"relationship\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[1,[24,[\\\"model\\\",\\\"firstName\\\"]],false],[0,\\\" has not yet provided an emergency contact.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/contacts/template.hbs\" } });\n});","define('aira-mgmt/users/user/credit/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    minutesToCredit: null,\n\n    internalReason: null,\n\n    externalReason: null,\n\n    salesforceCaseNumber: null,\n\n    actions: {\n      selectInternalReason: function selectInternalReason(content) {\n        this.set('internalReason', content);\n      },\n      selectExternalReason: function selectExternalReason(content) {\n        this.set('externalReason', content);\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/credit/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    session: Ember.inject.service('session'),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('minutesToCredit', null);\n      controller.set('internalReason', null);\n      controller.set('externalReason', null);\n      controller.set('salesforceCaseNumber', null);\n    },\n\n    model: function model() {\n      var _this = this;\n\n      return Ember.RSVP.hash({\n        history: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('credit/history?userId=' + _this.modelFor('users.user').id).then(function (response) {\n            var list = [];\n\n            response.payload.reverse().forEach(function (credit) {\n              credit['minutes'] = credit['seconds'] / 60;\n              list.push(Ember.Object.create(credit));\n            });\n\n            resolve(list);\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        }),\n        internalReasons: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('credit/internal').then(function (response) {\n            resolve(response.payload.map(function (item) {\n              return {\n                id: item.reason,\n                text: item.reason\n              };\n            }));\n          }, function (_ref2) {\n            var errorCode = _ref2.errorCode,\n                errorMessage = _ref2.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        }),\n        externalReasons: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('credit/external').then(function (response) {\n            resolve(response.payload.map(function (item) {\n              return {\n                id: item.reason,\n                text: item.reason\n              };\n            }));\n          }, function (_ref3) {\n            var errorCode = _ref3.errorCode,\n                errorMessage = _ref3.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        })\n      });\n    },\n\n\n    actions: {\n      credit: function credit() {\n        var _this2 = this;\n\n        var userId = this.modelFor('users.user').get('id');\n\n        var minutesToCredit = this.get('controller.minutesToCredit');\n        var internalReason = this.get('controller.internalReason');\n        var externalReason = this.get('controller.externalReason');\n        var salesforceCaseNumber = this.get('controller.salesforceCaseNumber');\n        if (minutesToCredit && $.isNumeric(minutesToCredit) && internalReason && externalReason) {\n          this.get('platform').doPost(['mgmt', userId, 'credit'].join('/'), {\n            minutes: minutesToCredit,\n            internalReason: internalReason,\n            externalReason: externalReason,\n            salesforceCaseNumber: salesforceCaseNumber\n          }).then(function () {\n            _this2.get('notify').success('Minutes were credited!');\n            _this2.transitionTo('users.user');\n          }, function (error) {\n            _this2.send('error', error);\n          });\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/credit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"8JtjSrFq\", \"block\": \"{\\\"symbols\\\":[\\\"credit\\\"],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Credit History\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Date\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Minutes\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"External Reason\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Internal Reason\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Salesforce Case Number\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"history\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"creditDate\\\"]],\\\"M/D/YY h:mm:ss a\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"minutes\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"externalReason\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"internalReason\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[7,\\\"a\\\",true],[11,\\\"href\\\",[28,\\\"concat\\\",[\\\"https://airatechcorp.lightning.force.com/lightning/r/Case/\\\",[23,1,[\\\"salesforceCaseNumber\\\"]],\\\"/view\\\"],null]],[8],[1,[23,1,[\\\"salesforceCaseNumber\\\"]],false],[9],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center mb-20\\\"],[8],[0,\\\"No minute credits have been given.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Add New Credit\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"form\\\",true],[10,\\\"class\\\",\\\"form-horizontal\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"minuteCredit\\\"],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-2 control-label\\\"],[8],[0,\\\"\\\\n      Minutes to Credit\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"minuteCredit\\\",\\\"text\\\",\\\"form-control\\\",\\\"Minutes to Credit\\\",[24,[\\\"minutesToCredit\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"minuteCreditReason\\\"],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-2 control-label\\\"],[8],[0,\\\"\\\\n      Internal Credit Reason\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"onSelect\\\"],[[24,[\\\"model\\\",\\\"internalReasons\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectInternalReason\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"minuteCreditReason\\\"],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-2 control-label\\\"],[8],[0,\\\"\\\\n      External Credit Reason\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"onSelect\\\"],[[24,[\\\"model\\\",\\\"externalReasons\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectExternalReason\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"minuteCreditSalesforceCaseNumber\\\"],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-2 control-label\\\"],[8],[0,\\\"\\\\n      Salesforce Case Number (Optional)\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"minuteCreditSalesforceCaseNumber\\\",\\\"text\\\",\\\"form-control\\\",\\\"Salesforce Case #\\\",[24,[\\\"salesforceCaseNumber\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"credit\\\"],null]]],[8],[0,\\\"Credit \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/credit/template.hbs\" } });\n});","define('aira-mgmt/users/user/delete/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    actions: {\n      deleteUser: function deleteUser(user) {\n        var _this = this;\n\n        var fullName = user.get('lastName') != null ? user.get('firstName') + ' ' + user.get('lastName') : user.get('firstName');\n        var userId = user.get('id');\n        if (confirm('Are you sure you want to delete ' + fullName + ' with user ID ' + userId + '?')) {\n          user.destroyRecord().then(function () {\n            _this.set('state.users.selectedUserId', -1);\n            _this.get('notify').success('User was deleted.');\n            _this.transitionTo('users.index');\n          });\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/delete/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"fpiZQ8ag\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[7,\\\"strong\\\",true],[8],[0,\\\"Warning:\\\"],[9],[0,\\\" This user will lose all access to Aira.\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"deleteUser\\\",[24,[\\\"model\\\"]]]],[8],[0,\\\"\\\\n    Delete User: \\\"],[1,[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"firstName\\\"]],\\\" \\\",[24,[\\\"model\\\",\\\"lastName\\\"]],\\\" (\\\",[24,[\\\"model\\\",\\\"id\\\"]],\\\") \\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/delete/template.hbs\" } });\n});","define('aira-mgmt/users/user/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    beforeModel: function beforeModel() {},\n\n\n    actions: {\n      save: function save(profile, profileProps) {\n        var _this = this;\n\n        profile.setProperties(profileProps);\n        return profile.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Profile was updated.');\n        }, function (error) {\n          _this.send('error', error);\n          _this.modelFor('users.user').rollbackAttributes();\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"5fFR9t9x\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-profile\\\",null,[[\\\"profile\\\",\\\"onSave\\\"],[[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/onboard/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    pendingUpdates: {},\n\n    inProgress: false,\n\n    resetPendingUpdates: function resetPendingUpdates() {\n      this.set('pendingUpdates', {});\n    },\n\n\n    actions: {\n      update: function update(q, input) {\n        this.get('pendingUpdates')[q.property.key] = input;\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/onboard/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      var _this = this;\n\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        _this.get('platform').doGet('user/' + _this.modelFor('users.user').id + '/question?category=management').then(function (response) {\n          resolve(response.payload);\n        }, function (_ref) {\n          var errorCode = _ref.errorCode,\n              errorMessage = _ref.errorMessage;\n\n          reject({ errorCode: errorCode, errorMessage: errorMessage });\n        });\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.resetPendingUpdates();\n    },\n\n\n    /*\n     [\n     {\"key\":\"mobilityTool\",\"values\":[{\"value\":\"Guide Dog\"}]},\n     {\"key\":\"mobilityTool.guideDog\",\"values\":[{\"value\":\"boss\"}]},\n     {\"key\":\"orientationPref\",\"values\":[{\"value\":\"Left & Right\"}]},\n     {\"key\":\"escalator\",\"values\":[{\"value\":\"true\"}]}\n     ]\n     */\n    actions: {\n      save: function save(pendingUpdates) {\n        var _this2 = this;\n\n        this.set('controller.inProgress', true);\n\n        var payload = Object.keys(pendingUpdates).map(function (key) {\n          var values = void 0;\n          if (Ember.typeOf(pendingUpdates[key]) === 'string') {\n            values = pendingUpdates[key] === '' ? [] : [{ value: pendingUpdates[key] }];\n          } else if (Ember.typeOf(pendingUpdates[key]) === 'boolean') {\n            values = { value: pendingUpdates[key] ? 'true' : 'false' };\n          } else {\n            values = pendingUpdates[key].map(function (answer) {\n              return { value: answer };\n            });\n          }\n          return { key: key, values: values };\n        });\n\n        this.get('platform').doPost('user/' + this.modelFor('users.user').id + '/property/value/batch', payload).then(function () {\n          _this2.get('notify').success('Profile Successfully Changed!');\n          _this2.get('controller').resetPendingUpdates();\n        }, function (error) {\n          _this2.send('error', error);\n        }).finally(function () {\n          _this2.set('controller.inProgress', false);\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/onboard/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"HbdFLwYP\", \"block\": \"{\\\"symbols\\\":[\\\"q\\\"],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form mb-20\\\"],[8],[0,\\\"Onboarding Answers\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"form\\\",true],[10,\\\"class\\\",\\\"form-horizontal mb-20\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"log\\\",[[23,1,[]]],null],false],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"MULTI_SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"questions/question-multi-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"SELECT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"questions/question-select\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"TEXT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"questions/question-text\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"BOOLEAN\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"questions/question-boolean\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"property\\\",\\\"type\\\"]],\\\"MULTI_TEXT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"questions/question-multi-text\\\",null,[[\\\"q\\\",\\\"update\\\"],[[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"Unsupported Type: \\\"],[1,[23,1,[\\\"property\\\",\\\"type\\\"]],false],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"inProgress\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\",[24,[\\\"pendingUpdates\\\"]]]],[8],[0,\\\"Save \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/onboard/template.hbs\" } });\n});","define('aira-mgmt/users/user/password/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('newPassword', null);\n    },\n\n    actions: {\n      changePassword: function changePassword(newPassword) {\n        var _this = this;\n\n        var userId = this.modelFor('users.user').get('id');\n\n        if (newPassword) {\n          this.get('platform').doPut(['mgmt', userId, 'password'].join('/'), {\n            newPassword: newPassword\n          }).then(function () {\n            _this.get('notify').success('Password updated!');\n            _this.transitionTo('users.user');\n          }, function (error) {\n            _this.send('error', error);\n          });\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/password/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"V6sfvn4J\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Change Password\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"form\\\",true],[10,\\\"class\\\",\\\"form-horizontal\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"password\\\"],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-2 control-label\\\"],[8],[0,\\\"\\\\n      New Password\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"password\\\",\\\"text\\\",\\\"form-control\\\",\\\"New Password\\\",[24,[\\\"newPassword\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],[28,\\\"route-action\\\",[\\\"changePassword\\\",[24,[\\\"newPassword\\\"]]],null]]],[8],[0,\\\"Change Password \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/password/template.hbs\" } });\n});","define('aira-mgmt/users/user/properties/index/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    pendingUpdates: {},\n\n    inProgress: false,\n\n    resetPendingUpdates: function resetPendingUpdates() {\n      this.set('pendingUpdates', {});\n    },\n\n\n    actions: {\n      update: function update(p, input) {\n        this.get('pendingUpdates')[p.key] = input;\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/properties/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      var _this = this;\n\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        /**\n         * Gets all properties, and all properties set on a user and merges the values from\n         * the properties set on the user into the list of all properties. This allows us\n         * to display all properties for updating, even if there is no value for the user.\n         */\n        Ember.RSVP.hash({\n          properties: _this.get('platform').doGet('user/property'),\n          values: _this.get('platform').doGet('user/' + _this.modelFor('users.user').id + '/property/value')\n        }).then(function (response) {\n          var properties = response.properties.payload;\n          var values = response.values.payload;\n          var propsUnordered = {};\n          var propsOrdered = {};\n\n          // console.log('properties', properties);\n          // console.log('values', values);\n\n          properties.forEach(function (prop) {\n            var pv = values[prop.key];\n            if (pv) prop['value'] = pv.map(function (v) {\n              return v.value;\n            });\n            propsUnordered[prop.key] = prop;\n            propsUnordered[prop.key]['childrenList'] = [];\n            prop.children.forEach(function (child) {\n              var moreChildren = _this.getChildren(child);\n              Object.keys(moreChildren).forEach(function (key) {\n                propsUnordered[prop.key]['childrenList'].push(moreChildren[key].name);\n              });\n              propsUnordered = Object.assign(propsUnordered, moreChildren);\n            });\n          });\n\n          Object.keys(propsUnordered).sort().forEach(function (key) {\n            propsOrdered[key] = propsUnordered[key];\n          });\n\n          resolve(propsOrdered);\n        }, function (_ref) {\n          var errorCode = _ref.errorCode,\n              errorMessage = _ref.errorMessage;\n\n          reject({ errorCode: errorCode, errorMessage: errorMessage });\n        });\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.resetPendingUpdates();\n    },\n    getChildren: function getChildren(prop) {\n      var _this2 = this;\n\n      // console.log('getChildren', prop);\n      var children = {};\n      prop['parent'] = prop.key.split('.')[0];\n      prop['depth'] = prop.key.split('.').length - 1;\n      children[prop.key] = prop;\n      if (prop.hasOwnProperty('children')) {\n        prop.children.forEach(function (child) {\n          var moreChildren = _this2.getChildren(child);\n          children = Object.assign(children, moreChildren);\n        });\n      }\n      return children;\n    },\n\n\n    actions: {\n      selectRow: function selectRow(key) {\n        this.transitionTo('users.user.properties.property', key);\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/properties/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"J04XPg1o\", \"block\": \"{\\\"symbols\\\":[\\\"pv\\\",\\\"pk\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n\\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped content-group-lg\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Property\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Values\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"model\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"parent\\\"]]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\"],[[28,\\\"route-action\\\",[\\\"selectRow\\\",[23,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[7,\\\"strong\\\",true],[8],[1,[23,2,[]],false],[9],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"value\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[\\\"childrenList\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\"],[[28,\\\"route-action\\\",[\\\"selectRow\\\",[23,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[7,\\\"strong\\\",true],[8],[1,[23,2,[]],false],[0,\\\" nested properties\\\"],[9],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"childrenList\\\"]],false],[0,\\\" (click to see more)\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/properties/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/properties/property/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    pendingUpdates: {},\n\n    inProgress: false,\n\n    resetPendingUpdates: function resetPendingUpdates() {\n      this.set('pendingUpdates', {});\n    },\n\n\n    actions: {\n      update: function update(p, input) {\n        this.get('pendingUpdates')[p.property.key] = input;\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/properties/property/edit/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    pendingUpdates: {},\n\n    inProgress: false,\n\n    resetPendingUpdates: function resetPendingUpdates() {\n      this.set('pendingUpdates', {});\n    },\n\n\n    actions: {\n      update: function update(p, input) {\n        this.get('pendingUpdates')[p.property.key] = input;\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/properties/property/edit/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    notify: Ember.inject.service(),\n    platform: Ember.inject.service(),\n\n    model: function model(p) {\n      return p;\n    },\n    afterModel: function afterModel(model) {\n      // redirect if doesn't have model\n      if (!model.id) {\n        this.transitionTo('users.user.properties.property');\n      }\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // applies row highlight on transition from row click\n      this.set('state.users.user.properties.property.selectedPropertyValueId', model.id);\n    },\n\n\n    // SAVE HELPER FUNCTIONS\n    getChildrenData: function getChildrenData(data, parentKey) {\n      // console.log('getChildrenData~BEGIN', data, parentKey);\n      var childrenData = {};\n\n      Object.keys(data).forEach(function (key) {\n        if (key.startsWith(parentKey) && key !== parentKey) {\n          childrenData[key] = data[key];\n        }\n      });\n\n      // console.log('getChildrenData~END', childrenData);\n      return childrenData;\n    },\n    getChildrenPayload: function getChildrenPayload(data, depth) {\n      var _this = this;\n\n      // console.log('getChildrenPayload~BEGIN', data, depth);\n\n      var childrenPayload = {};\n\n      Object.keys(data).forEach(function (key) {\n        if (key.split('.').length === depth) {\n          var childrenValue = {};\n          childrenValue['value'] = data[key];\n          childrenPayload[key] = [];\n\n          var moreChildrenData = _this.getChildrenData(data, key);\n\n          if (!Ember.isEmpty(moreChildrenData)) {\n            var moreChildrenPayload = _this.getChildrenPayload(moreChildrenData, depth + 1);\n            childrenValue['children'] = moreChildrenPayload;\n          }\n\n          childrenPayload[key].push(childrenValue);\n        }\n      });\n\n      // console.log('getChildrenPayload~END', childrenPayload);\n      return childrenPayload;\n    },\n    makeDataHelper: function makeDataHelper(data) {\n      // console.log('makeDataHelper~BEGIN', data);\n      var dataBefore = {};\n      dataBefore[data.property.key] = data.value;\n\n      var dataChildren = this.makeData(data.children);\n      if (!Ember.isEmpty(dataChildren)) dataBefore = Object.assign(dataBefore, dataChildren);\n\n      // console.log('makeDataHelper~END', dataBefore);\n      return dataBefore;\n    },\n    makeData: function makeData(data) {\n      var _this2 = this;\n\n      // console.log('makeData~BEGIN', data);\n\n      var dataChildren = {};\n\n      Object.keys(data).forEach(function (key) {\n        data[key].forEach(function (value) {\n          dataChildren[key] = value.value;\n\n          var dataMoreChildren = _this2.makeData(value.children);\n          if (!Ember.isEmpty(dataMoreChildren)) dataChildren = Object.assign(dataChildren, dataMoreChildren);\n        });\n      });\n\n      // console.log('makeData~END', dataChildren);\n      return dataChildren;\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        } else {\n          this.set('state.users.user.properties.property.selectedPropertyValueId', -1);\n        }\n      },\n\n      delete: function _delete() {\n        var _this3 = this;\n\n        this.set('controller.inProgress', true);\n\n        // console.log('delete user property value id', this.modelFor('users.user.properties.property.edit').id);\n\n        this.get('platform').doDelete('user/' + this.modelFor('users.user').id + '/property/' + this.modelFor('users.user.properties.property.edit').key + '/value/' + this.modelFor('users.user.properties.property.edit').id).then(function () {\n          _this3.get('notify').success('Property Value Successfully Deleted!');\n          _this3.get('controller').resetPendingUpdates();\n        }, function (error) {\n          _this3.send('error', error);\n        }).finally(function () {\n          _this3.set('controller.inProgress', false);\n          _this3.modelFor('users.user.properties.property').reload();\n        });\n      },\n      save: function save(data) {\n        var _this4 = this;\n\n        this.set('controller.inProgress', true);\n        // console.log('save', data);\n\n        var dataBefore = this.makeDataHelper(this.modelFor('users.user.properties.property.edit').value);\n        // console.log('dataBefore', dataBefore);\n\n        var dataNew = dataBefore;\n\n        Object.keys(data).forEach(function (key) {\n          dataNew[key] = data[key];\n        });\n\n        // console.log('dataNew', dataNew)\n\n        var payload = {};\n        var parentKey = this.modelFor('users.user.properties.property.edit').value.property.key;\n\n        payload['value'] = dataNew[parentKey];\n        var childrenData = this.getChildrenData(dataNew, parentKey);\n\n        if (!Ember.isEmpty(childrenData)) {\n          var childrenPayload = this.getChildrenPayload(childrenData, 2);\n          payload['children'] = childrenPayload;\n        }\n\n        // console.log('payload', payload);\n\n        this.get('platform').doPut('user/' + this.modelFor('users.user').id + '/property/' + parentKey + '/value/' + this.modelFor('users.user.properties.property.edit').id, payload).then(function () {\n          _this4.get('notify').success('Edit Property Value Successfully Updated!');\n          _this4.get('controller').resetPendingUpdates();\n          _this4.transitionTo('users.user.properties');\n        }, function (error) {\n          _this4.send('error', error);\n        }).finally(function () {\n          _this4.set('controller.inProgress', false);\n        });\n      },\n      cancel: function cancel() {\n        this.transitionTo('users.user.properties.property');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/properties/property/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"wrNkKdO7\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"value\\\",\\\"property\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[0,\\\"Edit \\\"],[1,[24,[\\\"model\\\",\\\"value\\\",\\\"property\\\",\\\"key\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"model\\\",\\\"value\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"delete\\\"]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\",[24,[\\\"pendingUpdates\\\"]]]],[8],[0,\\\"Save \\\"],[1,[24,[\\\"model\\\",\\\"value\\\",\\\"property\\\",\\\"key\\\"]],false],[0,\\\" \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[0,\\\"Edit\\\"],[9],[0,\\\"\\\\n  Please choose a value from the table above to edit.\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/properties/property/edit/template.hbs\" } });\n});","define(\"aira-mgmt/users/user/properties/property/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"k0Hi/4Vn\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"property\\\",\\\"isMulti\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-info\\\",\\\"users.user.properties\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Back \\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-primary\\\",\\\"users.user.properties.property.new\\\"]],{\\\"statements\\\":[[0,\\\"      New \\\"],[1,[24,[\\\"model\\\",\\\"key\\\"]],false],[0,\\\" \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/properties/property/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/properties/property/new/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    pendingUpdates: {},\n\n    inProgress: false,\n\n    resetPendingUpdates: function resetPendingUpdates() {\n      this.set('pendingUpdates', {});\n    },\n\n\n    actions: {\n      update: function update(p, input) {\n        this.get('pendingUpdates')[p.key] = input;\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/properties/property/new/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    notify: Ember.inject.service(),\n    platform: Ember.inject.service(),\n\n    // SAVE HELPER FUNCTIONS\n    getChildrenData: function getChildrenData(data, parentKey) {\n      // console.log('getChildrenData~BEGIN', data, parentKey);\n      var childrenData = {};\n\n      Object.keys(data).forEach(function (key) {\n        if (key.startsWith(parentKey) && key !== parentKey) {\n          childrenData[key] = data[key];\n        }\n      });\n\n      // console.log('getChildrenData~END', childrenData);\n      return childrenData;\n    },\n    getChildrenPayload: function getChildrenPayload(data, depth) {\n      var _this = this;\n\n      // console.log('getChildrenPayload~BEGIN', data, depth);\n\n      var childrenPayload = {};\n\n      Object.keys(data).forEach(function (key) {\n        if (key.split('.').length === depth) {\n          var childrenValue = {};\n          childrenValue['value'] = data[key];\n          childrenPayload[key] = [];\n\n          var moreChildrenData = _this.getChildrenData(data, key);\n\n          if (!Ember.isEmpty(moreChildrenData)) {\n            var moreChildrenPayload = _this.getChildrenPayload(moreChildrenData, depth + 1);\n            childrenValue['children'] = moreChildrenPayload;\n          }\n\n          childrenPayload[key].push(childrenValue);\n        }\n      });\n\n      // console.log('getChildrenPayload~END', childrenPayload);\n      return childrenPayload;\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.resetPendingUpdates();\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        }\n      },\n\n      save: function save(data) {\n        var _this2 = this;\n\n        this.set('controller.inProgress', true);\n        // console.log(this.refresh());\n\n        // console.log('save DATA', data);\n\n        var payload = {};\n        var parentKey = this.modelFor('users.user.properties.property').key;\n\n        payload['value'] = data[parentKey];\n        var childrenData = this.getChildrenData(data, parentKey);\n\n        if (!Ember.isEmpty(childrenData)) {\n          var childrenPayload = this.getChildrenPayload(childrenData, 2);\n          payload['children'] = childrenPayload;\n        }\n\n        // console.log('payload', payload);\n\n        this.get('platform').doPost('user/' + this.modelFor('users.user').id + '/property/' + parentKey + '/value', payload).then(function () {\n          _this2.get('notify').success('New Property Value Successfully Added!');\n          _this2.get('controller').resetPendingUpdates();\n          _this2.transitionTo('users.user.properties');\n        }, function (error) {\n          _this2.send('error', error);\n        }).finally(function () {\n          _this2.set('controller.inProgress', false);\n        });\n      },\n      cancel: function cancel() {\n        this.transitionTo('users.user.properties.property');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/properties/property/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"QlfSyNR0\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-divided\\\"],[8],[0,\\\"New \\\"],[1,[24,[\\\"model\\\",\\\"key\\\"]],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"model\\\",\\\"property\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\",[24,[\\\"pendingUpdates\\\"]]]],[8],[0,\\\"Save \\\"],[1,[24,[\\\"model\\\",\\\"key\\\"]],false],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/properties/property/new/template.hbs\" } });\n});","define('aira-mgmt/users/user/properties/property/route', ['exports'], function (exports) {\n    'use strict';\n\n    Object.defineProperty(exports, \"__esModule\", {\n        value: true\n    });\n    exports.default = Ember.Route.extend({\n\n        notify: Ember.inject.service(),\n\n        platform: Ember.inject.service(),\n\n        state: Ember.inject.service(),\n\n        model: function model(p) {\n            var _this = this;\n\n            return new Ember.RSVP.Promise(function (resolve, reject) {\n                Ember.RSVP.hash({\n                    property: _this.get('platform').doGet('user/property/' + p.property_key),\n                    values: _this.get('platform').doGet('user/' + _this.modelFor('users.user').id + '/property/' + p.property_key + '/value')\n                }).then(function (response) {\n                    var property = response.property;\n                    var values = response.values.payload;\n\n                    // console.log('property', property);\n                    // if(values) console.log('values', values);\n\n                    var props = {\n                        key: p.property_key,\n                        property: property,\n                        isMulti: false\n                    };\n                    if (values) {\n                        props.property.values = values;\n                        props.values = _this.setProperties(property, values);\n                        props.depth = _this.getValueDepth(props.values) - 1;\n                    }\n                    if (props.property.type.startsWith('MULTI')) {\n                        props.property.isMulti = true;\n                    } else {\n                        if (values && values.length) {\n                            props.value = values[0].value;\n                            props.children = values[0].children;\n                        }\n                    }\n\n                    resolve(props);\n                }, function (_ref) {\n                    var errorCode = _ref.errorCode,\n                        errorMessage = _ref.errorMessage;\n\n                    reject({ errorCode: errorCode, errorMessage: errorMessage });\n                });\n            });\n        },\n        setupController: function setupController(controller, model) {\n            this._super(controller, model);\n            controller.set('state', this.get('state'));\n            controller.resetPendingUpdates();\n        },\n        setProperties: function setProperties(property, values) {\n            var newValues = [];\n            values.forEach(function (value) {\n                value.property = property;\n                value.type = property.type;\n                if (value.property.type.startsWith('MULTI')) {\n                    value.property['isMulti'] = true;\n                } else {\n                    value.property['isMulti'] = false;\n                }\n                newValues.push(value);\n            });\n            return newValues;\n        },\n        getValueDepth: function getValueDepth(values) {\n            var _this2 = this;\n\n            // console.log('getValueDepth~BEGIN', values);\n            var max = 0;\n            values.forEach(function (value) {\n                var count = _this2.getValueDepthHelper(value);\n                if (count > max) max = count;\n            });\n            return max;\n        },\n        getValueDepthHelper: function getValueDepthHelper(value) {\n            var _this3 = this;\n\n            // console.log('getValueDepthHelper~BEGIN', value);\n            var count = 1; // count self\n            if (value.children) {\n                Object.keys(value.children).forEach(function (child) {\n                    var max = 0;\n                    value.children[child].forEach(function (childValue) {\n                        var childCount = _this3.getValueDepthHelper(childValue);\n                        if (childCount > max) max = childCount;\n                    });\n                    count += max; // add max children count\n                });\n            }\n            return count;\n        },\n\n\n        // SAVE HELPER FUNCTIONS\n        getChildrenData: function getChildrenData(data, parentKey) {\n            // console.log('getChildrenData~BEGIN', data, parentKey);\n            var childrenData = {};\n\n            Object.keys(data).forEach(function (key) {\n                if (key.startsWith(parentKey) && key !== parentKey) {\n                    childrenData[key] = data[key];\n                }\n            });\n\n            // console.log('getChildrenData~END', childrenData);\n            return childrenData;\n        },\n        getChildrenPayload: function getChildrenPayload(data, depth) {\n            var _this4 = this;\n\n            // console.log('getChildrenPayload~BEGIN', data, depth);\n\n            var childrenPayload = {};\n\n            Object.keys(data).forEach(function (key) {\n                if (key.split('.').length === depth) {\n                    var childrenValue = {};\n                    childrenValue['value'] = data[key];\n                    childrenPayload[key] = [];\n\n                    var moreChildrenData = _this4.getChildrenData(data, key);\n\n                    if (!Ember.isEmpty(moreChildrenData)) {\n                        var moreChildrenPayload = _this4.getChildrenPayload(moreChildrenData, depth + 1);\n                        childrenValue['children'] = moreChildrenPayload;\n                    }\n\n                    childrenPayload[key].push(childrenValue);\n                }\n            });\n\n            // console.log('getChildrenPayload~END', childrenPayload);\n            return childrenPayload;\n        },\n        makeDataHelper: function makeDataHelper(data) {\n            // console.log('makeDataHelper~BEGIN', data);\n            var dataBefore = {};\n            dataBefore[data.property.key] = data.value;\n\n            var dataChildren = this.makeData(data.children);\n            if (!Ember.isEmpty(dataChildren)) dataBefore = Object.assign(dataBefore, dataChildren);\n\n            // console.log('makeDataHelper~END', dataBefore);\n            return dataBefore;\n        },\n        makeData: function makeData(data) {\n            var _this5 = this;\n\n            // console.log('makeData~BEGIN', data);\n\n            var dataChildren = {};\n\n            Object.keys(data).forEach(function (key) {\n                data[key].forEach(function (value) {\n                    dataChildren[key] = value.value;\n\n                    var dataMoreChildren = _this5.makeData(value.children);\n                    if (!Ember.isEmpty(dataMoreChildren)) dataChildren = Object.assign(dataChildren, dataMoreChildren);\n                });\n            });\n\n            // console.log('makeData~END', dataChildren);\n            return dataChildren;\n        },\n\n\n        actions: {\n            // received from table row click\n            selectValue: function selectValue(value) {\n                this.transitionTo('users.user.properties.property.edit', { value: value, id: value.id });\n            },\n            save: function save(data) {\n                var _this6 = this;\n\n                this.set('controller.inProgress', true);\n                // console.log('save', data);\n                // console.log('model', this.modelFor('users.user.properties.property').key);\n\n                if (Ember.isEmpty(data)) return;\n\n                var dataBefore = this.modelFor('users.user.properties.property').values;\n                if (dataBefore && dataBefore.length) {\n                    dataBefore = this.makeDataHelper(dataBefore[0]);\n                }\n                // console.log('dataBefore', dataBefore);\n\n                var dataNew = dataBefore || {};\n\n                Object.keys(data).forEach(function (key) {\n                    dataNew[key] = data[key];\n                });\n\n                var payload = {};\n                var parentKey = this.modelFor('users.user.properties.property').key;\n\n                payload['value'] = dataNew[parentKey];\n                var childrenData = this.getChildrenData(dataNew, parentKey);\n\n                if (!Ember.isEmpty(childrenData)) {\n                    var childrenPayload = this.getChildrenPayload(childrenData, 2);\n                    payload['children'] = childrenPayload;\n                }\n\n                // console.log('payload', payload);\n\n                this.get('platform').doPut('user/' + this.modelFor('users.user').id + '/property/' + parentKey + '/value', [payload]).then(function () {\n                    _this6.get('notify').success('Edit Property Value Successfully Updated!');\n                    _this6.get('controller').resetPendingUpdates();\n                    _this6.transitionTo('users.user.properties');\n                }, function (error) {\n                    _this6.send('error', error);\n                }).finally(function () {\n                    _this6.set('controller.inProgress', false);\n                });\n            }\n        }\n    });\n});","define(\"aira-mgmt/users/user/properties/property/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"u6C4gX2/\", \"block\": \"{\\\"symbols\\\":[\\\"v\\\",\\\"empty\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel panel-flat\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-body\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"property\\\",\\\"parent\\\"]]],null,{\\\"statements\\\":[[0,\\\"    Error: You shouldn't be on this page.\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"property\\\",\\\"isMulti\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h5\\\",true],[8],[1,[24,[\\\"model\\\",\\\"key\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-bordered table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"scope\\\",\\\"col\\\"],[8],[0,\\\"Value(s)\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"repeat\\\",[[24,[\\\"model\\\",\\\"depth\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\",true],[10,\\\"scope\\\",\\\"col\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectValue\\\",[23,1,[]]],null],[28,\\\"equal\\\",[[24,[\\\"state\\\",\\\"users\\\",\\\"user\\\",\\\"properties\\\",\\\"property\\\",\\\"selectedPropertyValueId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\",true],[10,\\\"scope\\\",\\\"row\\\"],[8],[1,[23,1,[\\\"value\\\"]],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"properties/property-display\\\",null,[[\\\"c\\\",\\\"tagName\\\"],[[23,1,[\\\"children\\\"]],\\\"\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"properties/property-property\\\",null,[[\\\"p\\\",\\\"update\\\"],[[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"update\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-info\\\",\\\"users.user.properties\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Back \\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"inProgress\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\",[24,[\\\"pendingUpdates\\\"]]]],[8],[0,\\\"\\\\n        Save \\\"],[1,[24,[\\\"model\\\",\\\"key\\\"]],false],[0,\\\" \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/properties/property/template.hbs\" } });\n});","define('aira-mgmt/users/user/properties/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service()\n\n  });\n});","define(\"aira-mgmt/users/user/properties/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"HBWP3xeD\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form mb-20\\\"],[8],[0,\\\"User Properties\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/properties/template.hbs\" } });\n});","define('aira-mgmt/users/user/questions/edit/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    questions: Ember.computed.alias('state.users.user.questions'),\n\n    notify: Ember.inject.service(),\n\n    model: function model(p) {\n      return this.get('store').findRecord('answer', p.question_id);\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // applies row highlight on transition from row click\n      this.set('questions.selectedAnswerId', model.id);\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        } else {\n          this.set('questions.selectedAnswerId', -1);\n        }\n      },\n\n      save: function save(answer, answerProps) {\n        var _this = this;\n\n        answer.setProperties(answerProps);\n        return answer.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Response was updated.');\n          _this.transitionTo('users.user.questions');\n        });\n      },\n      cancel: function cancel(answer) {\n        answer.rollbackAttributes();\n        this.transitionTo('users.user.questions');\n      },\n      delete: function _delete(answer) {\n        var _this2 = this;\n\n        answer.destroyRecord().then(function () {\n          _this2.set('state.isDirty', false);\n          _this2.get('notify').success('Response was deleted.');\n          _this2.transitionTo('users.user.questions');\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/questions/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"cHsCa28G\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-answer\\\",null,[[\\\"title\\\",\\\"answer\\\",\\\"onDelete\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"Edit Answer\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"delete\\\"],null],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/questions/edit/template.hbs\" } });\n});","define('aira-mgmt/users/user/questions/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    model: function model() {\n      var id = this.modelFor('users.user').get('id');\n\n      return Ember.RSVP.hash({\n        user: this.get('store').findRecord('user', id),\n        answers: this.get('store').query('answer', { userId: id })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide state service to generated controller, avoids making our own.\n      controller.set('state', this.get('state'));\n    },\n\n\n    actions: {\n      // received from table row click\n      selectAnswer: function selectAnswer(answer) {\n        this.transitionTo('users.user.questions.edit', answer);\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/questions/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"gfvx5imj\", \"block\": \"{\\\"symbols\\\":[\\\"answer\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"answers\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Code\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Question\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Answer\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"answers\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectAnswer\\\",[23,1,[]]],null],[28,\\\"equal\\\",[[24,[\\\"state\\\",\\\"users\\\",\\\"user\\\",\\\"questions\\\",\\\"selectedAnswerId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"qcode\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"questionText\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"answerText\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[1,[24,[\\\"model\\\",\\\"user\\\",\\\"firstName\\\"]],false],[0,\\\" has not yet provided any responses.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/questions/template.hbs\" } });\n});","define('aira-mgmt/users/user/referrals/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    userReferralCode: null,\n    refereeEmail: null,\n    actions: {}\n  });\n});","define('aira-mgmt/users/user/referrals/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    model: function model() {\n      var _this = this;\n\n      var self = this;\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        _this.get('platform').doGet('user/referrals/' + _this.modelFor('users.user').id).then(function (response) {\n          resolve(Ember.A(response.referrals));\n        }, function (_ref) {\n          var errorCode = _ref.errorCode,\n              errorMessage = _ref.errorMessage;\n\n          reject({ errorCode: errorCode, errorMessage: errorMessage });\n        });\n      });\n    },\n    setupController: function setupController(controller, model) {\n      var _this2 = this;\n\n      this._super(controller, model);\n      controller.set('refereeEmail', null);\n      new Ember.RSVP.Promise(function (resolve, reject) {\n        _this2.get('platform').doGet('user/' + _this2.modelFor('users.user').id + '/property/referralCode/value').then(function (response) {\n          controller.set('userReferralCode', response.payload[0].value);\n        }, function (_ref2) {\n          var errorCode = _ref2.errorCode,\n              errorMessage = _ref2.errorMessage;\n\n          reject({ errorCode: errorCode, errorMessage: errorMessage });\n        });\n      });\n    },\n\n\n    actions: {\n      sendReferralFromUserAccount: function sendReferralFromUserAccount() {\n        var _this3 = this;\n\n        var userReferralCode = this.controller.get(\"userReferralCode\");\n        var refereeEmail = this.controller.get(\"refereeEmail\");\n        if (userReferralCode && refereeEmail) {\n          new Ember.RSVP.Promise(function (resolve, reject) {\n            _this3.get('platform').doPost('user/referral', {\n              referralCode: userReferralCode,\n              referralEmail: refereeEmail\n            }).then(function (response) {\n              _this3.get('notify').success('Sent referral to ' + refereeEmail + ' from user account.');\n              _this3.refresh();\n            }, function (_ref3) {\n              var errorCode = _ref3.errorCode,\n                  errorMessage = _ref3.errorMessage;\n\n              _this3.get('notify').error(errorMessage);\n            });\n          });\n        } else {\n          this.get('notify').error('No referral code or refereeEmail; ignoring sending referral');\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/referrals/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"Vs5UR+pt\", \"block\": \"{\\\"symbols\\\":[\\\"referral\\\"],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Referrals\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row content-group\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-offset-2 col-md-8\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table dataTable table-striped responsive\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"User ID\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Email\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Name\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Status\\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"referralUserId\\\"]],false],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"email\\\"]],false],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"firstName\\\"]],false],[0,\\\" \\\"],[1,[23,1,[\\\"lastName\\\"]],false],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"status\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"strong\\\",true],[8],[0,\\\"Referred\\\"],[9],[0,\\\": An email has been sent to the referral to signup. The user should pester\\\\n                    their\\\\n                    referral to follow through.\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",true],[8],[7,\\\"strong\\\",true],[8],[0,\\\"Pending\\\"],[9],[0,\\\": The referral has signed up, but not yet activated their subscription.\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",true],[8],[7,\\\"strong\\\",true],[8],[0,\\\"Accepted\\\"],[9],[0,\\\": The referral has activated their subscription, this Explorer will get a\\\\n                    credit equal to the first payment their referral makes\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\",true],[8],[7,\\\"strong\\\",true],[8],[0,\\\"Declined\\\"],[9],[0,\\\": This person accepted a referral from a different Explorer.\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"This user does not have any referrals.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-5\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[7,\\\"h5\\\",true],[8],[0,\\\"Send Referral On Behalf Of User\\\"],[9],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-8\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"insert-newline\\\"],[\\\"form-control\\\",\\\"Referee Email\\\",[24,[\\\"refereeEmail\\\"]],[28,\\\"route-action\\\",[\\\"sendReferralFromUserAccount\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"sendReferralFromUserAccount\\\"]],[8],[0,\\\"Send Referral\\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/referrals/template.hbs\" } });\n});","define('aira-mgmt/users/user/roles/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide state service to generated controller, avoids making our own.\n      controller.set('state', this.get('state'));\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        }\n      },\n\n      save: function save(updatedRoles) {\n        var _this = this;\n\n        this.set('currentModel.appRoles', updatedRoles);\n        this.get('currentModel').save().then(function () {\n          _this.get('notify').success('Roles were updated.');\n          _this.set('state.isDirty', false);\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/roles/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"TBt2/tJ+\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-roles\\\",null,[[\\\"appRoles\\\",\\\"onSave\\\"],[[24,[\\\"model\\\",\\\"appRoles\\\"]],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/roles/template.hbs\" } });\n});","define('aira-mgmt/users/user/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    initialTab: null,\n\n    beforeModel: function beforeModel(t) {\n      // Handles setting the activeTab when deep-linking\n      // targetName is: users.user.{activeTab}.index\n      this.initialTab = t.targetName.split('.')[2];\n    },\n\n\n    model: function model(p) {\n      return this.get('store').findRecord('user', p.user_id, { reload: true });\n    },\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      this.controllerFor('users').set('activeId', model.get('id'));\n      controller.set('activeTab', this.initialTab);\n    },\n\n    deactivate: function deactivate() {\n      this.controllerFor('users').set('activeId', -1);\n    },\n\n\n    actions: {\n      loading: function loading(transition) {\n        var controller = this.get('controller');\n        if (controller) {\n          controller.set('isLoading', true);\n          transition.promise.finally(function () {\n            controller.set('isLoading', false);\n          });\n        }\n      },\n      willTransition: function willTransition(t) {\n        // Handles keeping the activeTab updated when changing\n        // targetName is: users.user.{activeTab}.index\n        var target = t.targetName.split('.')[2];\n        this.controller.set('activeTab', target);\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/service/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n    queryParams: ['pg'],\n    notify: Ember.inject.service(),\n    platform: Ember.inject.service(),\n    router: Ember.inject.service(),\n\n    /**\n     * This is set either by:\n     * 1) the #link-to in the \"user\" template\n     * 2) Directly from the URL\n     * 3) The setup method in the route\n     */\n    pg: null,\n\n    timezone: null,\n\n    disableBack: Ember.computed(function () {\n      return parseInt(this.get('pg')) <= 0;\n    }).property('pg'),\n\n    disableNext: Ember.computed(function () {\n      return this.get('model.service.response.hasMore') === false;\n    }).property('pg'),\n\n    actions: {\n      previousPage: function previousPage() {\n        this.decrementProperty('pg');\n      },\n      nextPage: function nextPage() {\n        this.incrementProperty('pg');\n      },\n      editShareSession: function editShareSession(service) {\n        var _iteratorNormalCompletion = true;\n        var _didIteratorError = false;\n        var _iteratorError = undefined;\n\n        try {\n          for (var _iterator = this.model.service.payload[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n            var s = _step.value;\n\n            if (s.id === service.id) {\n              Ember.set(s, 'isEditShareSession', true);\n            } else {\n              Ember.set(s, 'isEditShareSession', false);\n            }\n          }\n        } catch (err) {\n          _didIteratorError = true;\n          _iteratorError = err;\n        } finally {\n          try {\n            if (!_iteratorNormalCompletion && _iterator.return) {\n              _iterator.return();\n            }\n          } finally {\n            if (_didIteratorError) {\n              throw _iteratorError;\n            }\n          }\n        }\n      },\n      cancelShareSession: function cancelShareSession(service) {\n        var _iteratorNormalCompletion2 = true;\n        var _didIteratorError2 = false;\n        var _iteratorError2 = undefined;\n\n        try {\n          for (var _iterator2 = this.model.service.payload[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n            var s = _step2.value;\n\n            if (s.id === service.id) {\n              Ember.set(s, 'shareSession', !s.shareSession);\n              Ember.set(s, 'isEditShareSession', false);\n            }\n          }\n        } catch (err) {\n          _didIteratorError2 = true;\n          _iteratorError2 = err;\n        } finally {\n          try {\n            if (!_iteratorNormalCompletion2 && _iterator2.return) {\n              _iterator2.return();\n            }\n          } finally {\n            if (_didIteratorError2) {\n              throw _iteratorError2;\n            }\n          }\n        }\n      },\n      saveChangeShareSession: function saveChangeShareSession(service) {\n        var _this = this;\n\n        this.platform.doPut('mgmt/service-request/' + service.id + '/build-ai/allow-sharing', {\n          value: !service.buildAi.explorerAllowSharing\n        }).then(function () {\n          _this.notify.success('Updated share for service with ID ' + service.id + '.');\n          var _iteratorNormalCompletion3 = true;\n          var _didIteratorError3 = false;\n          var _iteratorError3 = undefined;\n\n          try {\n            for (var _iterator3 = _this.model.service.payload[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n              var s = _step3.value;\n\n              if (s.id === service.id) {\n                Ember.set(s, 'isEditShareSession', false);\n              }\n            }\n          } catch (err) {\n            _didIteratorError3 = true;\n            _iteratorError3 = err;\n          } finally {\n            try {\n              if (!_iteratorNormalCompletion3 && _iterator3.return) {\n                _iterator3.return();\n              }\n            } finally {\n              if (_didIteratorError3) {\n                throw _iteratorError3;\n              }\n            }\n          }\n\n          _this.send('forceRefreshUserService');\n        }, function (_ref) {\n          var errorMessage = _ref.errorMessage;\n\n          _this.notify.error(errorMessage);\n        });\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/service/route', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    queryParams: {\n      pg: {\n        refreshModel: true\n      }\n    },\n\n    platform: Ember.inject.service(),\n\n    model: function model(params) {\n      var _this = this;\n\n      var id = this.modelFor('users.user').get('id');\n      var pg = params.pg == null ? 0 : params.pg;\n\n      return Ember.RSVP.hash({\n        user: this.get('store').findRecord('user', id),\n        service: new Promise(function (resolve, reject) {\n          _this.get('platform').doGet('user/' + id + '/service-request?&page=' + pg + '&includeTestCalls=true').then(function (services) {\n            services.payload.forEach(function (service) {\n              service.isEditShareSession = false;\n            });\n            resolve(Ember.Object.create(services));\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            reject({ errorCode: errorCode, errorMessage: errorMessage });\n          });\n        })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      if (controller.get('pg') == null) {\n        controller.set('pg', 0);\n      }\n      controller.set('timezone', new Date().toLocaleTimeString('en-us', { timeZoneName: 'short' }).split(' ')[2]);\n    },\n\n\n    actions: {\n      selectServiceRequest: function selectServiceRequest(request) {\n        window.open(_environment.default.APP.ssp + \"/internal/report?serviceID=\" + request.id, \"_blank\");\n      },\n      forceRefreshUserService: function forceRefreshUserService() {\n        this.refresh();\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/service/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"f2Ge7+ex\", \"block\": \"{\\\"symbols\\\":[\\\"request\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"service\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-responsive\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"ID\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Agent\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Requested (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Start-End (\\\"],[1,[23,0,[\\\"timezone\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Duration\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Source\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Test Call\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Build AI\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"Allow Sharing\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Build AI status\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"service\\\",\\\"payload\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"allowActive\\\"],[[28,\\\"route-action\\\",[\\\"selectServiceRequest\\\",[23,1,[]]],null],false]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"d-flex align-items-center\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"id\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"context\\\",\\\"intents\\\"]],[28,\\\"contains\\\",[\\\"AI Visual Interpreter\\\",[23,1,[\\\"context\\\",\\\"intents\\\",\\\"firstObject\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"img\\\",true],[10,\\\"src\\\",\\\"/icons/call_aira_ai_icon.svg\\\"],[10,\\\"alt\\\",\\\"Aira AI\\\"],[10,\\\"title\\\",\\\"Aira AI call\\\"],[10,\\\"style\\\",\\\"width: 16px; height: 16px; margin-left: 5px;\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"agentFirstName\\\"]],false],[0,\\\" \\\"],[1,[23,1,[\\\"agentLastName\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"requestTimestamp\\\"]],\\\"M/D/YY h:mm:ss a\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"startTimestamp\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"endTimestamp\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"startTimestamp\\\"]],\\\"h:mm:ss a\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[0,\\\" - \\\"],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"endTimestamp\\\"]],\\\"h:mm:ss a\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"duration\\\",[[28,\\\"moment-diff\\\",[[23,1,[\\\"startTimestamp\\\"]],[23,1,[\\\"endTimestamp\\\"]]],[[\\\"precision\\\"],[\\\"minutes\\\"]]],[28,\\\"moment-diff\\\",[[23,1,[\\\"startTimestamp\\\"]],[23,1,[\\\"endTimestamp\\\"]]],[[\\\"precision\\\"],[\\\"seconds\\\"]]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,1,[\\\"startTimestamp\\\"]],\\\"h:mm:ss a\\\",\\\"YYYY-MM-DDThh:mm:ssZ\\\"],null],false],[0,\\\" - Now\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"status\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"source\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"context\\\",\\\"intents\\\"]],[28,\\\"eq\\\",[[23,1,[\\\"context\\\",\\\"intents\\\",\\\"firstObject\\\"]],\\\"AI Visual Interpreter\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            (Supervised Aira AI)\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"context\\\",\\\"intents\\\"]],[28,\\\"eq\\\",[[23,1,[\\\"context\\\",\\\"intents\\\",\\\"firstObject\\\"]],\\\"Unobserved AI Visual Interpreter\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            (Unsupervised Aira AI)\\\\n          \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"test\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"noop\\\"],[[\\\"bubbles\\\"],[false]]],[8],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditShareSession\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"input\\\",true],[10,\\\"style\\\",\\\"height:25px; width: 25px; bottom:0px;\\\"],[10,\\\"name\\\",\\\"shareSession\\\"],[11,\\\"checked\\\",[28,\\\"not\\\",[[23,1,[\\\"buildAi\\\",\\\"explorerAllowSharing\\\"]]],null]],[10,\\\"type\\\",\\\"checkbox\\\"],[8],[9],[0,\\\" \\\\n              \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-success btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"saveChangeShareSession\\\",[23,1,[]]]],[8],[0,\\\"Save\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger btn-sm\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancelShareSession\\\",[23,1,[]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"buildAi\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"checkbox\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"input\\\",true],[10,\\\"style\\\",\\\"height:25px; width: 25px; bottom:0px;\\\"],[10,\\\"name\\\",\\\"shareSession\\\"],[11,\\\"disabled\\\",[28,\\\"unless\\\",[[28,\\\"and\\\",[[23,1,[\\\"buildAi\\\",\\\"explorerCanChangeAllowSharing\\\"]],[23,1,[\\\"buildAi\\\",\\\"explorerAllowSharing\\\"]]],null],true],null]],[11,\\\"checked\\\",[23,1,[\\\"buildAi\\\",\\\"explorerAllowSharing\\\"]]],[10,\\\"type\\\",\\\"checkbox\\\"],[8],[9],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"buildAi\\\",\\\"explorerCanChangeAllowSharing\\\"]],[23,1,[\\\"buildAi\\\",\\\"explorerAllowSharing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[12,\\\"title\\\",\\\"Edit\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"editShareSession\\\",[23,1,[]]]],[8],[0,\\\"\\\\n\\\\t\\\\t                \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-pencil\\\"],[10,\\\"style\\\",\\\"font-size: 13px\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[11,\\\"title\\\",[28,\\\"build-ia-status\\\",[[23,1,[\\\"buildAi\\\",\\\"cannotChangeAllowSharingReason\\\"]],false],null]],[10,\\\"class\\\",\\\"glyphicon glyphicon-info-sign\\\"],[10,\\\"style\\\",\\\"padding-top: 10px;cursor:pointer;\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[9],[0,\\\" \\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"noop\\\"],[[\\\"bubbles\\\"],[false]]],[8],[1,[28,\\\"build-ia-status\\\",[[23,1,[\\\"buildAi\\\",\\\"status\\\"]],true],null],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"disableBack\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"previousPage\\\"]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-left13 position-left\\\"],[8],[9],[0,\\\" Newer Calls\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"disabled\\\",[22,\\\"disableNext\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"nextPage\\\"]],[8],[0,\\\"Older Calls \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[1,[24,[\\\"model\\\",\\\"user\\\",\\\"firstName\\\"]],false],[0,\\\" has not made any service requests.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/service/template.hbs\" } });\n});","define('aira-mgmt/users/user/settings/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    model: function model() {\n      var id = this.modelFor('users.user').get('id');\n\n      return Ember.RSVP.hash({\n        user: this.get('store').findRecord('user', id),\n        settings: this.get('store').findRecord('setting', id)\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide state service to generated controller, avoids making our own.\n      controller.set('isSecondary', !model.settings.get('primary'));\n    },\n\n\n    actions: {\n      save: function save(settings, updatedSettings) {\n        var _this = this;\n\n        settings.setProperties(updatedSettings);\n\n        settings.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Settings were updated.');\n        }, function (error) {\n          _this.send('error', error);\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/settings/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"iwSQ22pS\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"user-setting\\\",null,[[\\\"settings\\\",\\\"isSecondary\\\",\\\"onSave\\\"],[[24,[\\\"model\\\",\\\"settings\\\"]],[24,[\\\"isSecondary\\\"]],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/settings/template.hbs\" } });\n});","define('aira-mgmt/users/user/subscription/cancel/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define('aira-mgmt/users/user/subscription/date/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define('aira-mgmt/users/user/subscription/downgrade/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define('aira-mgmt/users/user/subscription/index/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n\n      var planUpgradesDisabled = model.orderOptions.getWithDefault('primaryPlans', []).length === 0;\n      var canModifyPlan = model.usage.getWithDefault('canModifyPlan', true);\n      controller.set('planUpgradesDisabled', planUpgradesDisabled || !canModifyPlan);\n\n      var addonMinutesDisabled = model.orderOptions.getWithDefault('minuteAddOnAdjustments', []).length === 0;\n\n      var canPurchaseMinutes = model.usage.get('canPurchaseMinutes');\n\n      controller.set('addonMinutesDisabled', addonMinutesDisabled || !canPurchaseMinutes);\n    }\n  });\n});","define(\"aira-mgmt/users/user/subscription/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"RPuhDD+7\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Manage Subscription\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"isSecondary\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n    This is a secondary user sharing an account. \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user\\\",[24,[\\\"model\\\",\\\"billing\\\",\\\"primaryUserId\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    Go to the primary user\\\"]],\\\"parameters\\\":[]},null],[0,\\\" to make changes.\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"addonMinutesDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"noSubscription\\\"]]],null,{\\\"statements\\\":[[0,\\\"        Add-on minute purchases require an active subscription.\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        This Explorer cannot purchase add-on minutes for an unknown reason. Please escalate to engineering to have the reason added here.\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n    \\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"class\\\",\\\"disabled\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-primary\\\",[24,[\\\"addonMinutesDisabled\\\"]],\\\"users.user.subscription.minutes\\\"]],{\\\"statements\\\":[[0,\\\"Purchase Minutes\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"showActivateButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"class\\\",\\\"disabled\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-primary\\\",[24,[\\\"planUpgradesDisabled\\\"]],\\\"users.user.subscription.upgrade\\\"]],{\\\"statements\\\":[[0,\\\"Change Subscription\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/subscription/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/subscription/minutes/controller', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    userId: null,\n\n    inProgress: false,\n\n    calculating: false,\n\n    calculated: false,\n\n    purchaseOption: null,\n\n    invoiceCollection: null,\n\n    billingInfo: null,\n\n    purchaseOptions: [],\n\n    isPreviewDisabled: Ember.computed('inProgress', 'purchaseOption', function () {\n      // Disable the Preview button if we're loading or if a bundle hasn't been selected.\n      return this.inProgress || !this.purchaseOption;\n    }),\n\n    actions: {\n      purchaseOptionSelected: function purchaseOptionSelected(addonCode) {\n        var _this = this;\n\n        // Default the overrides to the values from the bundle.\n        this.get('model.orderOptions.minuteAddOnAdjustments').forEach(function (bundle) {\n          if (bundle.code === addonCode) {\n            _this.set('overrideBundleQuantity', bundle.minutes);\n            _this.set('overridePrice', bundle.price / 100);\n          }\n        });\n\n        this.set('purchaseOption', addonCode);\n        this.set('calculated', false);\n        this.set('calculating', true);\n      },\n      overrideChanged: function overrideChanged() {\n        // If an override changed, require another preview.\n        this.set('calculated', false);\n      },\n      preview: function preview() {\n        var _this2 = this;\n\n        this.set('inProgress', true);\n\n        this.get('platform').doPost('care/order/' + this.get('userId') + '/addon/preview', {\n          'addOnCode': this.get('purchaseOption'),\n          'overrideBundleQuantity': this.get('overrideBundleQuantity'),\n          'overridePrice': this.get('overridePrice')\n        }).then(function (response) {\n          _this2.set('calculated', true);\n\n          _this2.set('invoiceCollection', response.invoiceCollection);\n\n          _this2.set('planTotal', response.addOn.price);\n          _this2.set('accountBalance', response.accountBalance.balanceInCents['unitAmount' + response.addOn.currency]);\n\n          var sub = response.invoiceCollection.chargeInvoice == null ? 0 : response.invoiceCollection.chargeInvoice.totalInCents;\n          var newPlanAdjustment = response.addOn.price - sub;\n\n          var otherAdjustment = response.invoiceCollection.creditInvoices.reduce(function (acc, val) {\n            return acc + val.totalInCents;\n          }, 0);\n\n          _this2.set('proratedAdjustments', otherAdjustment - newPlanAdjustment);\n\n          var totalCharge = response.invoiceCollection.creditInvoices.reduce(function (acc, val) {\n            return acc + val.balanceInCents;\n          }, response.invoiceCollection.chargeInvoice.balanceInCents);\n\n          _this2.set('totalCharge', Math.max(totalCharge, 0));\n\n          _this2.set('billingInfo', response.billingInfo);\n        }, function (error) {\n          _this2.send('error', error);\n        }).finally(function () {\n          _this2.set('inProgress', false);\n        });\n      }\n    }\n  });\n});","define('aira-mgmt/users/user/subscription/minutes/route', ['exports', 'accounting/format-money'], function (exports, _formatMoney) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('userId', this.modelFor('users.user').get('id'));\n      controller.set('calculating', false);\n      controller.set('calculated', false);\n      controller.set('purchaseOption', null);\n\n      var purchaseOptions = [];\n      model.orderOptions.getWithDefault('minuteAddOnAdjustments', []).forEach(function (addon) {\n        var price = Math.abs(addon.price) >= 100 ? addon.price / 100 : addon.price;\n        price = (0, _formatMoney.default)(price, addon.currency, 2, ',', '.', '%v %s');\n        var discount = '';\n        if (addon.discountPercent) {\n          discount = ' (' + addon.discountPercent + '% off)';\n        }\n\n        purchaseOptions.push({\n          id: addon.code,\n          text: addon.minutes + ' minutes for ' + price + discount\n        });\n      });\n      controller.set('purchaseOptions', purchaseOptions);\n    },\n\n\n    actions: {\n      cancel: function cancel() {\n        this.transitionTo('users.user.subscription');\n      },\n      save: function save(addOnCode) {\n        var _this = this;\n\n        if (addOnCode == null) {\n          return;\n        }\n\n        this.set('controller.inProgress', true);\n\n        var overrideBundleQuantity = this.get('controller.overrideBundleQuantity');\n        var overridePrice = this.get('controller.overridePrice');\n\n        var cvv = null;\n        if (overridePrice === null || overridePrice.toString() !== '0') {\n          var billingInfo = this.get('controller.billingInfo');\n          cvv = prompt(\"Please provide the CVV for the \" + billingInfo.cardType + \" ending in \" + billingInfo.lastFour);\n          var isError = false;\n\n          if (cvv === null) {\n            isError = true;\n          } else if (isNaN(cvv)) {\n            this.get('notify').error('CVV contains non-number characters');\n            isError = true;\n          } else if (cvv.length !== 3 && cvv.length !== 4) {\n            this.get('notify').error('CVV number is the incorrect length');\n            isError = true;\n          }\n\n          if (isError) {\n            this.set('controller.inProgress', false);\n            return;\n          }\n        }\n\n        this.get('platform').doPost('care/order/' + this.get('controller.userId') + '/addon', {\n          \"addOnCode\": addOnCode,\n          \"cvv\": cvv,\n          'overrideBundleQuantity': overrideBundleQuantity,\n          'overridePrice': overridePrice\n        }).then(function (response) {\n          _this.set('controller.inProgress', false);\n          _this.get('notify').success('Minutes Purchased!');\n          _this.transitionTo('users.user.subscription', { queryParams: { refreshModel: true } });\n        }, function (error) {\n          _this.set('controller.inProgress', false);\n          _this.send('error', error);\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/subscription/minutes/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"rXritym7\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Purchase Minutes\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"form\\\",true],[10,\\\"class\\\",\\\"form-horizontal\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-6\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"purchaseOptions\\\"],[10,\\\"class\\\",\\\"control-label\\\"],[8],[0,\\\"\\\\n        Bundle\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"id\\\",\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[\\\"purchaseOptions\\\",[24,[\\\"purchaseOptions\\\"]],[24,[\\\"purchaseOption\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"purchaseOptionSelected\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"purchaseOption\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"overrideBundleQuantity\\\"],[10,\\\"class\\\",\\\"control-label\\\"],[8],[0,\\\"\\\\n          Minutes\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"input\\\"],[\\\"overrideBundleQuantity\\\",\\\"number\\\",\\\"form-control\\\",[24,[\\\"overrideBundleQuantity\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"overrideChanged\\\"],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-3\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"overridePrice\\\"],[10,\\\"class\\\",\\\"control-label\\\"],[8],[0,\\\"\\\\n          Price\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[1,[28,\\\"data-input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"input\\\"],[\\\"overridePrice\\\",\\\"number\\\",\\\"form-control\\\",[24,[\\\"overridePrice\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"overrideChanged\\\"],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"help-block\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"calculated\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Estimated Prorated Adjustment: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"proratedAdjustments\\\"]],[24,[\\\"invoiceCollection\\\",\\\"chargeInvoice\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Account Balance: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"accountBalance\\\"]],[24,[\\\"invoiceCollection\\\",\\\"chargeInvoice\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Total Charge Today: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"totalCharge\\\"]],[24,[\\\"invoiceCollection\\\",\\\"chargeInvoice\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"calculated\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"inProgress\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\",[24,[\\\"purchaseOption\\\"]]]],[8],[0,\\\"\\\\n      Purchase Minutes \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"isPreviewDisabled\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"preview\\\"]],[8],[0,\\\"\\\\n      Preview\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/subscription/minutes/template.hbs\" } });\n});","define('aira-mgmt/users/user/subscription/pause/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({});\n});","define('aira-mgmt/users/user/subscription/route', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    queryParams: {\n      // HACK: Because I'm an Ember noob, I don't know of a better way to forcibly refresh the model on a transition.\n      refreshModel: {\n        refreshModel: true\n      }\n    },\n\n    model: function model() {\n      var _this = this;\n\n      var recurlyUrlPrefix = _environment.default.APP.env === 'prod' ? \"https://aira.recurly.com/accounts/\" : \"https://aira-\" + _environment.default.APP.env + \".recurly.com/accounts/\";\n\n      return Ember.RSVP.hash({\n        // API Call #1 - Subscription details\n        billing: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('subscription?userId=' + _this.modelFor('users.user').id).then(function (subscription) {\n            resolve(Ember.Object.create({\n              noAccount: false,\n              noSubscription: false,\n              subscription: subscription.subscription,\n              name: subscription.name,\n              planCode: subscription.planCode,\n              showActivateButton: subscription.subscription == null || subscription.subscription.state !== 'active',\n              primaryUserId: subscription.primaryUserId,\n              accountType: subscription.accountType,\n              recurlyUrlPrefix: recurlyUrlPrefix\n            }));\n          }, function (_ref) {\n            var errorCode = _ref.errorCode,\n                errorMessage = _ref.errorMessage;\n\n            if (errorCode === 'KN-ACC-002') {\n              resolve(Ember.Object.create({\n                noAccount: true,\n                isPrimary: false,\n                isSecondary: false,\n                isBusiness: false,\n                noSubscription: true,\n                recurlyUrlPrefix: recurlyUrlPrefix,\n                accountCode: _this.modelFor('users.user').accountCode\n              }));\n            } else if (errorCode === 'BIZ-SUB-002') {\n              console.log(_this.modelFor('users.user'));\n              resolve(Ember.Object.create({\n                noAccount: false,\n                isPrimary: _this.modelFor('users.user').accounts.find(function (acc) {\n                  return acc.userType === 'primary';\n                }),\n                isSecondary: _this.modelFor('users.user').accounts.find(function (acc) {\n                  return acc.userType === 'secondary';\n                }),\n                isBusiness: _this.modelFor('users.user').accounts.find(function (acc) {\n                  return acc.userType === 'business';\n                }),\n                noSubscription: true,\n                recurlyUrlPrefix: recurlyUrlPrefix,\n                accountCode: _this.modelFor('users.user').accountCode\n              }));\n            } else {\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n            }\n          });\n        }),\n        // API Call #2 - Usage details\n        usage: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('smartapp/usage/' + _this.modelFor('users.user').id).then(function (usage) {\n            resolve(Ember.Object.create(usage));\n          }, function (_ref2) {\n            var errorCode = _ref2.errorCode,\n                errorMessage = _ref2.errorMessage;\n\n            if (errorCode === 'KN-ACC-002') {\n              resolve(Ember.Object.create({\n                noAccount: true,\n                noSubscription: true\n              }));\n            } else if (errorCode === 'BIZ-SUB-002') {\n              resolve(Ember.Object.create({\n                noSubscription: true\n              }));\n            } else {\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n            }\n          });\n        }),\n        // API Call #3 - Orders options\n        orderOptions: new Ember.RSVP.Promise(function (resolve, reject) {\n          _this.get('platform').doGet('care/order/options?userId=' + _this.modelFor('users.user').id).then(function (orderOptions) {\n            resolve(Ember.Object.create(orderOptions));\n          }, function (_ref3) {\n            var errorCode = _ref3.errorCode,\n                errorMessage = _ref3.errorMessage;\n\n            if (errorCode === 'KN-ACC-002') {\n              resolve(Ember.Object.create({\n                noAccount: true,\n                noSubscription: true\n              }));\n            } else if (errorCode === 'BIZ-SUB-002') {\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n            } else if (errorCode === 'KN-ACC-009') {\n              // Create a dummy response - routes handle this\n              resolve(Ember.Object.create({}));\n            } else {\n              reject({ errorCode: errorCode, errorMessage: errorMessage });\n            }\n          });\n        })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('inProgress', false);\n      controller.set('ssp', _environment.default.APP.ssp);\n      controller.set('phoneNumber', this.modelFor('users.user').phoneNumber);\n    },\n\n\n    actions: {\n      activate: function activate() {\n        var _this2 = this;\n\n        this.controller.set('inProgress', true);\n        this.get('platform').doPost('activate', {\n          userId: this.modelFor('users.user').id\n        }).then(function () {\n          _this2.get('notify').success('Subscription activated!');\n          _this2.refresh();\n        }, function (error) {\n          _this2.controller.set('inProgress', false);\n          _this2.send('error', error);\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/subscription/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"tWb+/fcL\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"isBusiness\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-info alert-styled-left alert-arrow-left alert-bordered\\\"],[8],[0,\\\"\\\\n        This Explorer has a payment profile which enables usage of Business Access minutes.\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"noAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"This user does not have a recurly account. This means they are either an agent or need their account created, please contact engineering to do so.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"noSubscription\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"This user does not have a subscription, you can add a subscription or update the recurly account using the links below.\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[22,\\\"ssp\\\"],\\\"/internal/signup?phoneNumber=\\\",[22,\\\"phoneNumber\\\"]]]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"Guest Upgrade Form\\\"],[9],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[24,[\\\"model\\\",\\\"billing\\\",\\\"recurlyUrlPrefix\\\"]],[24,[\\\"model\\\",\\\"billing\\\",\\\"accountCode\\\"]]]]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"View Recurly Account\\\"],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Account\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Account Code: \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[24,[\\\"model\\\",\\\"billing\\\",\\\"recurlyUrlPrefix\\\"]],[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"account\\\",\\\"accountCode\\\"]]]]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[1,[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"account\\\",\\\"accountCode\\\"]],false],[9],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Account Type: \\\"],[1,[24,[\\\"model\\\",\\\"billing\\\",\\\"accountType\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Status: \\\"],[1,[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"state\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Name on Account: \\\"],[1,[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"account\\\",\\\"firstName\\\"]],false],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"account\\\",\\\"lastName\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Account Created: \\\"],[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"account\\\",\\\"createdAt\\\"]],\\\"MMMM D, YYYY\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Plan\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Name: \\\"],[1,[24,[\\\"model\\\",\\\"billing\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Code: \\\"],[1,[24,[\\\"model\\\",\\\"billing\\\",\\\"planCode\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Subscription\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"Current Billing Cycle: \\\"],[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"currentPeriodStartedAt\\\"]],\\\"MMMM D, YYYY\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t- \\\"],[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"currentPeriodEndsAt\\\"]],\\\"MMMM D, YYYY\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"Subscribed since: \\\"],[1,[28,\\\"moment-format\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"activatedAt\\\"]],\\\"MMMM D, YYYY\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"li\\\",true],[8],[0,\\\"Cost per Cycle: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"unitAmountInCents\\\"]],[24,[\\\"model\\\",\\\"billing\\\",\\\"subscription\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Usage\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n      Summary: \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalMinutesUsed\\\"]],false],[0,\\\" of \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalMinutes\\\"]],false],[0,\\\" minutes used in current billing cycle.\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalMinutesLeft\\\"]],false],[0,\\\" minutes available.\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Plan Minutes: \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalPrimaryMinutesUsed\\\"]],false],[0,\\\" of \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalPrimaryMinutes\\\"]],false],[0,\\\" used\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Credited Minutes: \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalCreditMinutesUsed\\\"]],false],[0,\\\" of \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalCreditMinutes\\\"]],false],[0,\\\" used\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Purchased Minutes: \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalFixedMinutesUsed\\\"]],false],[0,\\\" of \\\"],[1,[24,[\\\"model\\\",\\\"usage\\\",\\\"totalFixedMinutes\\\"]],false],[0,\\\" used\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/subscription/template.hbs\" } });\n});","define('aira-mgmt/users/user/subscription/upgrade/controller', ['exports', 'accounting/format-money'], function (exports, _formatMoney) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Controller.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    userId: null,\n\n    newPlan: null,\n\n    invoiceCollection: null,\n\n    billingInfo: null,\n\n    inProgress: false,\n\n    calculating: false,\n\n    calculated: false,\n\n    actions: {\n      newPlanSelected: function newPlanSelected(newPlan) {\n        var _this = this;\n\n        this.set('newPlan', newPlan);\n\n        this.set('calculated', false);\n        this.set('calculating', true);\n\n        this.get('platform').doPost('care/order/' + this.get('userId') + '/primary/preview', {\n          \"orderlines\": [{\n            \"productCode\": newPlan,\n            \"quantity\": 1,\n            \"productType\": \"primary\"\n          }]\n        }).then(function (response) {\n          _this.set('calculated', true);\n          _this.set('calculating', false);\n\n          _this.set('invoiceCollection', response.invoiceCollection);\n\n          _this.set('planTotal', response.plan.price);\n          _this.set('accountBalance', response.accountBalance.balanceInCents['unitAmount' + response.plan.currency]);\n\n          var sub = response.invoiceCollection.chargeInvoice == null ? 0 : response.invoiceCollection.chargeInvoice.totalInCents;\n          var newPlanAdjustment = response.plan.price - sub;\n\n          var otherAdjustment = response.invoiceCollection.creditInvoices.reduce(function (acc, val) {\n            console.log(acc);\n            return acc + val.totalInCents;\n          }, 0);\n\n          console.log(newPlanAdjustment);\n          console.log(otherAdjustment);\n          _this.set('proratedAdjustments', otherAdjustment - newPlanAdjustment);\n\n          var totalCharge = response.invoiceCollection.creditInvoices.reduce(function (acc, val) {\n            return acc + val.balanceInCents;\n          }, response.invoiceCollection.chargeInvoice.balanceInCents);\n\n          _this.set('totalCharge', Math.max(totalCharge, 0));\n\n          _this.set('billingInfo', response.billingInfo);\n        }, function (error) {\n          _this.set('calculated', false);\n          _this.set('calculating', false);\n\n          _this.send('error', error);\n        });\n      }\n    },\n\n    newPlanOptions: Ember.computed(function () {\n      return this.get('model.orderOptions.primaryPlans').map(function (plan) {\n        console.log(plan);\n        var dollars = Math.abs(plan.price) >= 100 ? plan.price / 100 : plan.price;\n        var price = (0, _formatMoney.default)(dollars, plan.currency, 2, ',', '.', '%v %s');\n        var text = ' - ' + price + '/mo - ' + plan.minutes;\n        // if(!plan.supportsHardware) { // todo broken on platform AC-48\n        //   text += ' (No Glasses)';\n        // }\n        return { id: plan.planCode, text: plan.planName + text };\n      });\n    })\n  });\n});","define('aira-mgmt/users/user/subscription/upgrade/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    notify: Ember.inject.service(),\n\n    platform: Ember.inject.service(),\n\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      controller.set('newPlan', null);\n      controller.set('inProgress', true);\n      controller.set('userId', this.modelFor('users.user').get('id'));\n    },\n\n\n    actions: {\n      cancel: function cancel() {\n        this.transitionTo('users.user.subscription');\n      },\n      save: function save(newPlan) {\n        var _this = this;\n\n        if (newPlan == null) {\n          return;\n        }\n\n        this.set('controller.inProgress', true);\n        var billingInfo = this.get('controller.billingInfo');\n        var cvv = prompt(\"Please provide the CVV for the \" + billingInfo.card_type + \" ending in \" + billingInfo.last_four);\n        var isError = false;\n\n        if (cvv === null) {\n          isError = true;\n        } else if (isNaN(cvv)) {\n          this.get('notify').error('CVV contains non-number characters');\n          isError = true;\n        } else if (cvv.length !== 3 && cvv.length !== 4) {\n          this.get('notify').error('CVV number is the incorrect length');\n          isError = true;\n        }\n        if (isError) {\n          this.set('controller.inProgress', false);\n        } else {\n          this.get('platform').doPut('care/order/' + this.get('controller.userId') + '/primary', {\n            \"orderlines\": [{\n              \"productCode\": newPlan,\n              \"quantity\": 1,\n              \"productType\": \"primary\"\n            }],\n            \"cvv\": cvv\n          }).then(function (response) {\n            _this.set('controller.inProgress', false);\n            _this.get('notify').success('Subscription Successfully Changed!');\n            _this.transitionTo('users.user');\n          }, function (error) {\n            _this.set('controller.inProgress', false);\n            _this.send('error', error);\n          });\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/subscription/upgrade/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"qVp0tKpK\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"heading-form\\\"],[8],[0,\\\"Change Subscription\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"form\\\",true],[10,\\\"class\\\",\\\"form-horizontal\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"newPlanSelected\\\"],[10,\\\"class\\\",\\\"col-md-offset-1 col-md-2 control-label\\\"],[8],[0,\\\"\\\\n      New Plan Choice\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-md-4\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"id\\\",\\\"options\\\",\\\"selectedOptionId\\\",\\\"onSelect\\\"],[\\\"newPlanChoice\\\",[24,[\\\"newPlanOptions\\\"]],[24,[\\\"newPlan\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"newPlanSelected\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"help-block\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"calculating\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Calculating new price...\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"calculated\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Plan Total: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"planTotal\\\"]],[24,[\\\"invoiceCollection\\\",\\\"chargeInvoice\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Estimated Prorated Adjustment: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"proratedAdjustments\\\"]],[24,[\\\"invoiceCollection\\\",\\\"chargeInvoice\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Account Balance: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"accountBalance\\\"]],[24,[\\\"invoiceCollection\\\",\\\"chargeInvoice\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"Total Charge Today: \\\"],[1,[28,\\\"money\\\",[[24,[\\\"totalCharge\\\"]],[24,[\\\"invoiceCollection\\\",\\\"chargeInvoice\\\",\\\"currency\\\"]]],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-muted\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"inProgress\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"save\\\",[24,[\\\"newPlan\\\"]]]],[8],[0,\\\"Change Subscription \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/subscription/upgrade/template.hbs\" } });\n});","define('aira-mgmt/users/user/support/route', ['exports', 'aira-mgmt/config/environment'], function (exports, _environment) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    session: Ember.inject.service(),\n\n    notify: Ember.inject.service(),\n\n    support: Ember.computed.alias('state.users.user.support'),\n\n    mqtt: null,\n\n    userId: null,\n\n    apiKey: null,\n\n    serial: null,\n\n    selectedProfile: null,\n\n    beforeModel: function beforeModel() {\n      var self = this;\n\n      console.log(this.get('session.data.authenticated.id'));\n      var clientId = \"mgmt-\" + this.get('session.data.authenticated.id');\n      var mqttHost = _environment.default.APP.mqtt_host;\n      var port = Number(_environment.default.APP.mqtt_port);\n      var mqttPath = _environment.default.APP.mqtt_path;\n      self.apiKey = _environment.default.APP.X_API_Key;\n      self.userId = self.get('session.data.authenticated.id');\n      this.set('mqtt', new Paho.MQTT.Client(mqttHost, port, mqttPath, clientId));\n\n      this.mqtt.onMessageArrived = function (message) {\n        self.onMessageArrived.call(self, message);\n      };\n      this.mqtt.onConnectionLost = function () {\n        self.onConnectionLost.call(self);\n      };\n    },\n    model: function model() {\n      var userId = this.modelFor('users.user').get('id');\n\n      return Ember.RSVP.hash({\n        settings: this.get('store').findRecord('setting', userId),\n        profiles: this.get('store').query('wifi', { filter: { userId: userId } })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide state service to generated controller, avoids making our own.\n      controller.set('state', this.get('state'));\n\n      this.set('controller.smartappStatus', 'offline');\n      this.set('controller.glassStatus', 'offline');\n      this.set('controller.getWifi', '');\n      this.set('controller.status', '');\n      this.set('controller.profileOptions', model.profiles.map(function (item) {\n        return {\n          id: item.get('id'),\n          text: item.get('ssid')\n        };\n      }));\n    },\n    onConnected: function onConnected() {\n      var _this = this;\n\n      console.log('onConnected');\n      var self = this;\n      this.userId = this.modelFor('users.user').get('id');\n      this.serial = this.currentModel.settings.get('glassPublicSerial');\n\n      Ember.RSVP.all([new Ember.RSVP.Promise(function (resolve, reject) {\n        _this.mqtt.subscribe(_environment.default.APP.mqtt_env + '/sys/glass/session/' + _this.userId, {\n          qos: 0,\n          onSuccess: resolve,\n          onFailure: reject\n        });\n      }), new Ember.RSVP.Promise(function (resolve, reject) {\n        _this.mqtt.subscribe(_environment.default.APP.mqtt_env + '/sys/smartapp/+/session/' + _this.userId, {\n          qos: 0,\n          onSuccess: resolve,\n          onFailure: reject\n        });\n      }), new Ember.RSVP.Promise(function (resolve, reject) {\n        _this.mqtt.subscribe(_environment.default.APP.mqtt_env + '/si/sg/' + _this.userId, {\n          qos: 0,\n          onSuccess: resolve,\n          onFailure: reject\n        });\n      }), new Ember.RSVP.Promise(function (resolve, reject) {\n        _this.mqtt.subscribe(_environment.default.APP.mqtt_env + '/si/gs/' + _this.userId, {\n          qos: 0,\n          onSuccess: resolve,\n          onFailure: reject\n        });\n      }), new Ember.RSVP.Promise(function (resolve, reject) {\n        _this.mqtt.subscribe('devices/' + _this.serial + '/+', { qos: 0, onSuccess: resolve, onFailure: reject });\n      })]).then(function () {\n        self.onSubscribed.call(self);\n      });\n    },\n    onSubscribed: function onSubscribed() {\n      console.log('onSubscribed');\n\n      this.set('support.mqttConnected', true);\n      this.set('controller.mqttConnecting', false);\n\n      this.sendTelemetryPing();\n    },\n    onConnectionLost: function onConnectionLost() {\n      this.set('support.mqttConnected', false);\n      alert('connection to mqtt lost');\n    },\n    onMessageArrived: function onMessageArrived(message) {\n      console.log('IN', message.destinationName, \":\", message.payloadString);\n      var topic = message.destinationName;\n\n      if (topic.startsWith(_environment.default.APP.mqtt_env + '/sys/glass/')) {\n        this.onGlassSessionMessage(message.payloadString);\n      } else if (topic.startsWith(_environment.default.APP.mqtt_env + '/sys/smartapp/')) {\n        this.onSmartappSessionMessage(message.payloadString);\n      } else if (topic.startsWith(_environment.default.APP.mqtt_env + '/si/sg/')) {\n        this.onSmartappToGlassMessage(message.payloadString);\n      } else if (topic.startsWith(_environment.default.APP.mqtt_env + '/si/gs/')) {\n        this.onGlassToSmartappMessage(message.payloadString);\n      } else if (/devices\\/\\w+\\/accepted/.test(topic)) {\n        this.onDeviceAcceptedMessage(message.payloadString);\n      } else if (/devices\\/\\w+\\/rejected/.test(topic)) {\n        this.onDeviceRejectedMessage(message.payloadString);\n      }\n    },\n    onGlassSessionMessage: function onGlassSessionMessage(payload) {\n      var obj = JSON.parse(payload);\n      if (obj.type === 'online') {\n        this.set('controller.glassStatus', 'online');\n      } else {\n        this.set('controller.glassStatus', 'offline');\n      }\n    },\n    onSmartappSessionMessage: function onSmartappSessionMessage(payload) {\n      var obj = JSON.parse(payload);\n      if (obj.type === 'online') {\n        this.set('controller.smartappStatus', 'online');\n      } else {\n        this.set('controller.smartappStatus', 'offline');\n      }\n    },\n    onSmartappToGlassMessage: function onSmartappToGlassMessage(payload) {\n      var splits = payload.split('###');\n      if (splits[0] === 'STS') {}\n    },\n    onGlassToSmartappMessage: function onGlassToSmartappMessage(payload) {\n      var splits = payload.split('###');\n      if (splits[0] === 'ACK' && splits[1] === 'STS') {\n        this.set('controller.glassStatus', 'online');\n        this.set('controller.status', payload);\n      }\n    },\n    sendTelemetryPing: function sendTelemetryPing() {\n      this.sendTelemetryMessage({ req: 'ping' });\n    },\n    sendTelemetryGetWifi: function sendTelemetryGetWifi() {\n      this.sendTelemetryMessage({ req: 'getWifi' });\n    },\n    sendTelemetryRestart: function sendTelemetryRestart() {\n      this.sendTelemetryMessage({ req: 'restart' });\n    },\n    sendTelemetryMessage: function sendTelemetryMessage(payload) {\n      this.sendMessage('devices/' + this.serial, JSON.stringify(payload));\n    },\n    onDeviceAcceptedMessage: function onDeviceAcceptedMessage(payload) {\n      var obj = JSON.parse(payload);\n      if (obj.res === 'pong') {\n        this.set('controller.telemetryStatus', 'online');\n      } else if (obj.res === 'getWifi') {\n        this.set('controller.getWifi', obj.ssid);\n      } else if (obj.res === 'restart') {\n        this.get('notify').success('Restarting Aira');\n      }\n    },\n    onDeviceRejectedMessage: function onDeviceRejectedMessage(payload) {\n      var obj = JSON.parse(payload);\n      alert(obj.error);\n    },\n    sendMessage: function sendMessage(topic, payload) {\n      console.log('OUT', topic, \":\", payload);\n      var message = new Paho.MQTT.Message(payload);\n      message.destinationName = topic;\n      this.mqtt.send(message);\n    },\n\n\n    actions: {\n      willTransition: function willTransition() {\n        if (this.get('support.mqttConnected')) {\n          this.set('support.mqttConnected', false);\n\n          // Avoid the alert when leaving the support tab.\n          this.mqtt.onConnectionLost = function () {};\n\n          try {\n            this.mqtt.disconnect();\n          } catch (e) {\n            // already disconnected\n          }\n        }\n\n        return true; // allow bubbling\n      },\n      connectMqtt: function connectMqtt() {\n        this.set('controller.mqttConnecting', true);\n        var self = this;\n        this.mqtt.connect({\n          timeout: 30,\n          useSSL: true,\n          cleanSession: true,\n          userName: 'Key-' + self.apiKey, // TODO use proper token based auth\n          password: self.userId.toString(),\n          onSuccess: function onSuccess() {\n            self.onConnected.call(self);\n          },\n          onFailure: function onFailure() {\n            self.onConnectionLost.call(self);\n          }\n        });\n      },\n      getWifi: function getWifi() {\n        this.sendTelemetryGetWifi();\n      },\n      restart: function restart() {\n        this.sendTelemetryRestart();\n      },\n      testCall: function testCall() {\n        if (this.modelFor('users.user').get('status') === 'Test Mode') {\n          this.sendMessage(_environment.default.APP.mqtt_env + '/si/sg/' + this.userId, 'CAA###');\n        } else {\n          alert('Please enable the test mode status first.');\n        }\n      },\n      status: function status() {\n        this.sendMessage(_environment.default.APP.mqtt_env + '/si/sg/' + this.userId, 'STS###');\n      },\n      selectWifi: function selectWifi(id) {\n        this.selectedProfile = this.currentModel.profiles.findBy('id', id);\n      },\n      switchWifi: function switchWifi() {\n        if (this.selectedProfile != null) {\n          this.sendMessage(_environment.default.APP.mqtt_env + '/si/sg/' + this.userId, 'SHS###' + JSON.stringify({\n            ssid: this.selectedProfile.get('ssid'),\n            securityType: this.selectedProfile.get('securityType'),\n            secretkey: this.selectedProfile.get('secretkey'),\n            type: this.selectedProfile.get('type')\n          }));\n        } else {\n          alert('You must select wifi');\n        }\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/support/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"CnTUMjhd\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"state\\\",\\\"users\\\",\\\"user\\\",\\\"support\\\",\\\"mqttConnected\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"form-header\\\"],[8],[0,\\\"Smart App\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"State: \\\"],[1,[22,\\\"smartappStatus\\\"],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"form-header\\\"],[8],[0,\\\"Glass App\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-sm-3\\\"],[8],[0,\\\"State: \\\"],[1,[22,\\\"glassStatus\\\"],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row mt-20\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-sm-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"input-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"input-group-btn\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info btn-block\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"status\\\"]],[8],[0,\\\"Get Status\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"input\\\",true],[10,\\\"class\\\",\\\"form-control\\\"],[11,\\\"value\\\",[22,\\\"status\\\"]],[10,\\\"type\\\",\\\"text\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row mt-20\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-sm-12\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"input-group\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"select-single\\\",null,[[\\\"options\\\",\\\"onSelect\\\"],[[24,[\\\"profileOptions\\\"]],[28,\\\"route-action\\\",[\\\"selectWifi\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"input-group-btn\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"switchWifi\\\"]],[8],[0,\\\"Switch Wi-Fi\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row mt-20\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-sm-3\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-warning\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"testCall\\\"]],[8],[0,\\\"Test Call\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"form-header\\\"],[8],[0,\\\"Glass Telemetry\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-sm-3\\\"],[8],[0,\\\"State: \\\"],[1,[22,\\\"telemetryStatus\\\"],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row mt-20\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-sm-3\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"input-group\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"input-group-btn\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-info\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"getWifi\\\"]],[8],[0,\\\"Get Wifi\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"input\\\",true],[10,\\\"class\\\",\\\"form-control\\\"],[11,\\\"value\\\",[22,\\\"getWifi\\\"]],[10,\\\"type\\\",\\\"text\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row mt-20\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-sm-3\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-warning\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"restart\\\"]],[8],[0,\\\"Restart\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Establishes connection to user's devices to perform remote control commands.\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"There is a known issue when a user's Aira app is already open on the phone when connecting, it may not show online.\\\\n    You should ask the user to force-close and re-open the Aira app after you activate the tools.\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[22,\\\"mqttConnecting\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"connectMqtt\\\"]],[8],[0,\\\"Activate\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/support/template.hbs\" } });\n});","define(\"aira-mgmt/users/user/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"kvEMbxyX\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"simple-panel\\\",null,[[\\\"title\\\",\\\"rightText\\\"],[[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"firstName\\\"]],\\\" \\\",[24,[\\\"model\\\",\\\"lastName\\\"]],\\\"'s Details\\\"],null],[28,\\\"concat\\\",[\\\"UUID: \\\",[24,[\\\"model\\\",\\\"uuid\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabbable\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"nav nav-tabs nav-tabs-highlight\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"index\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.index\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-user position-left\\\"],[8],[9],[0,\\\" Profile\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"subscription\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.subscription\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-coin-dollar position-left\\\"],[8],[9],[0,\\\" Billing\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"accounts\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.accounts\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-user-tie\\\"],[8],[9],[0,\\\" Accounts\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"service\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"query\\\",\\\"route\\\",\\\"model\\\"],[[28,\\\"hash\\\",null,[[\\\"pg\\\"],[\\\"0\\\"]]],\\\"users.user.service\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-headset position-left\\\"],[8],[9],[0,\\\" Service\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"chats-v2\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"query\\\",\\\"route\\\",\\\"model\\\"],[[28,\\\"hash\\\",null,[[\\\"pg\\\"],[\\\"1\\\"]]],\\\"users.user.chats-v2\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-bubbles3 position-left\\\"],[8],[9],[0,\\\" Chats\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"credit\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.credit\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-ticket position-left\\\"],[8],[9],[0,\\\" Credit Minutes\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"referrals\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.referrals\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-gift position-left\\\"],[8],[9],[0,\\\" Referrals\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"access\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.access\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-mention position-left\\\"],[8],[9],[0,\\\" Access\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[\\\"dropdown \\\",[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"activity\\\",\\\"address\\\",\\\"chats\\\",\\\"contacts\\\",\\\"onboard\\\",\\\"property\\\",\\\"roles\\\",\\\"settings\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[10,\\\"href\\\",\\\"#\\\"],[10,\\\"class\\\",\\\"dropdown-toggle\\\"],[10,\\\"data-toggle\\\",\\\"dropdown\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-gear position-left\\\"],[8],[9],[0,\\\" More \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"caret\\\"],[8],[9],[9],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"dropdown-menu dropdown-menu-right\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"activity\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.activity\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-history position-left\\\"],[8],[9],[0,\\\" Activity\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"address\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.address\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-home2 position-left\\\"],[8],[9],[0,\\\" Address\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"chats\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"query\\\",\\\"route\\\",\\\"model\\\"],[[28,\\\"hash\\\",null,[[\\\"pg\\\"],[\\\"0\\\"]]],\\\"users.user.chats\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-bubbles3 position-left\\\"],[8],[9],[0,\\\" Chats (Legacy)\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"contacts\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.contacts\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-mention position-left\\\"],[8],[9],[0,\\\" Contacts\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"onboard\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.onboard\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-info3 position-left\\\"],[8],[9],[0,\\\" Onboard\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"property\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.properties\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-dots position-left\\\"],[8],[9],[0,\\\" Properties\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"roles\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.roles\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-key position-left\\\"],[8],[9],[0,\\\" Roles\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[[28,\\\"active\\\",[[24,[\\\"activeTab\\\"]],\\\"settings\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"users.user.settings\\\",[24,[\\\"model\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-equalizer4 position-left\\\"],[8],[9],[0,\\\" Settings\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-content\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-pane active\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"Loading...\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/template.hbs\" } });\n});","define('aira-mgmt/users/user/wifi/edit/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    wifi: Ember.computed.alias('state.users.user.wifi'),\n\n    notify: Ember.inject.service(),\n\n    model: function model(p) {\n      // Ugly, but currently cannot query wifi profiles by id.\n      // This find the correct wifi profile in the array of profiles in our parent route's model\n      return this.modelFor('users.user.wifi').profiles.findBy('id', p.wifi_id);\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // applies row highlight on transition from row click\n      this.set('wifi.selectedWifiProfileId', model.id);\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        } else {\n          this.set('wifi.selectedWifiProfileId', -1);\n        }\n      },\n\n      save: function save(profile, wifiProps) {\n        var _this = this;\n\n        profile.setProperties(wifiProps);\n        return profile.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.get('notify').success('Wifi profile was updated.');\n          _this.transitionTo('users.user.wifi');\n        });\n      },\n      cancel: function cancel(profile) {\n        profile.rollbackAttributes();\n        this.transitionTo('users.user.wifi');\n      },\n      delete: function _delete(profile) {\n        var _this2 = this;\n\n        profile.destroyRecord().then(function () {\n          _this2.set('state.isDirty', false);\n          _this2.get('notify').success('Wifi profile was deleted.');\n          _this2.transitionTo('users.user.wifi');\n        });\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/wifi/edit/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"18Pm/Dny\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"wifi-profile\\\",null,[[\\\"title\\\",\\\"profile\\\",\\\"onDelete\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"Edit Wifi Profile\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"delete\\\"],null],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/wifi/edit/template.hbs\" } });\n});","define(\"aira-mgmt/users/user/wifi/index/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"9EIa0DLf\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"route\\\"],[\\\"button\\\",\\\"btn btn-primary\\\",\\\"users.user.wifi.new\\\"]],{\\\"statements\\\":[[0,\\\"    New Wifi Profile \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-arrow-right14 position-right\\\"],[8],[9]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/wifi/index/template.hbs\" } });\n});","define('aira-mgmt/users/user/wifi/new/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n    wifi: Ember.computed.alias('state.users.user.wifi'),\n\n    notify: Ember.inject.service(),\n\n    model: function model() {\n      this.set('wifi.selectedWifiProfileId', -1);\n\n      var userId = this.modelFor('users.user').get('id');\n      var login = this.modelFor('users.user').get('login');\n\n      return this.get('store').createRecord('wifi', {\n        username: login,\n        priority: 0,\n        ssid: null,\n        securityType: 'WPA2',\n        secretKey: null,\n        type: 'WIFI',\n        userId: userId\n      });\n    },\n    deactivate: function deactivate() {\n      // Not done in cancel incase user navigates away by another means\n      this.get('currentModel').rollbackAttributes();\n    },\n\n\n    actions: {\n      willTransition: function willTransition(transition) {\n        if (this.get('state.isDirty') && !confirm('Are you sure? You have unsaved changes.')) {\n          transition.abort();\n        }\n      },\n\n      save: function save(profile, wifiProps) {\n        var _this = this;\n\n        profile.setProperties(wifiProps);\n        profile.save().then(function () {\n          _this.set('state.isDirty', false);\n          _this.send('newWifiProfile', _this.get('currentModel'));\n          _this.get('notify').success('Wifi profile was added.');\n          _this.transitionTo('users.user.wifi');\n        });\n      },\n      cancel: function cancel(profile) {\n        console.log(profile);\n        this.transitionTo('users.user.wifi');\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/wifi/new/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"gFUqjC4t\", \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"wifi-profile\\\",null,[[\\\"title\\\",\\\"profile\\\",\\\"onCancel\\\",\\\"onSave\\\"],[\\\"New Wifi Profile\\\",[24,[\\\"model\\\"]],[28,\\\"route-action\\\",[\\\"cancel\\\"],null],[28,\\\"route-action\\\",[\\\"save\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/wifi/new/template.hbs\" } });\n});","define('aira-mgmt/users/user/wifi/route', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Route.extend({\n\n    state: Ember.inject.service(),\n\n    model: function model() {\n      var userId = this.modelFor('users.user').get('id');\n\n      return Ember.RSVP.hash({\n        user: this.get('store').findRecord('user', userId),\n        profiles: this.get('store').query('wifi', { filter: { userId: userId } })\n      });\n    },\n    setupController: function setupController(controller, model) {\n      this._super(controller, model);\n      // Provide state service to generated controller, avoids making our own.\n      controller.set('state', this.get('state'));\n    },\n\n\n    actions: {\n      // received from wifi/new route. Need to reload all profiles because API\n      // does not return the id of the newly created profile.\n      newWifiProfile: function newWifiProfile() {\n        this.get('currentModel.profiles').update();\n      },\n      selectWifiProfile: function selectWifiProfile(profile) {\n        this.transitionTo('users.user.wifi.edit', profile);\n      }\n    }\n  });\n});","define(\"aira-mgmt/users/user/wifi/template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"vqQnMavz\", \"block\": \"{\\\"symbols\\\":[\\\"profile\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"profiles\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"id\\\",\\\"datatable\\\"],[10,\\\"class\\\",\\\"table dataTable table-striped responsive content-group-lg\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Favorite\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"SSID\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Security Type\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Security Key\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Type\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"profiles\\\"]]],null,{\\\"statements\\\":[[4,\\\"table-row\\\",null,[[\\\"select\\\",\\\"active\\\"],[[28,\\\"route-action\\\",[\\\"selectWifiProfile\\\",[23,1,[]]],null],[28,\\\"equal\\\",[[24,[\\\"state\\\",\\\"users\\\",\\\"user\\\",\\\"wifi\\\",\\\"selectedWifiProfileId\\\"]],[23,1,[\\\"id\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"priority\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-star-full2\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"sr-only\\\"],[8],[0,\\\"\\\\n                Yes\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-star-empty3\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"sr-only\\\"],[8],[0,\\\"\\\\n                No\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"ssid\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"securityType\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"secretKey\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"type\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[1,[24,[\\\"model\\\",\\\"user\\\",\\\"firstName\\\"]],false],[0,\\\" has not yet provided any wifi profiles.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\", \"meta\": { \"moduleName\": \"aira-mgmt/users/user/wifi/template.hbs\" } });\n});","define('aira-mgmt/utils/validate-dates', ['exports', 'luxon'], function (exports, _luxon) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.validateDate = validateDate;\n  function validateDate(dateValue, fieldName) {\n    var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n    if (dateValue == null || dateValue === '') {\n      return isRequired ? 'Missing ' + fieldName : null;\n    }\n\n    var parseOnlyDate = _luxon.DateTime.fromFormat(dateValue, 'yyyy-MM-dd', { zone: 'America/Los_Angeles' });\n    if (parseOnlyDate.isValid) {\n      return 'Invalid ' + fieldName + ' date';\n    }\n\n    var dateObject = _luxon.DateTime.fromFormat(dateValue, 'yyyy-MM-dd HH:mm', { zone: 'America/Los_Angeles' });\n\n    if (!dateObject.isValid) {\n      return 'Invalid ' + fieldName + ' date';\n    }\n\n    return null;\n  }\n});","\n","define('aira-mgmt/config/environment', [], function() {\n  var prefix = 'aira-mgmt';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"aira-mgmt/app\")[\"default\"].create({\"env\":\"prod\",\"host\":\"https://platform.aira.io\",\"portal\":\"https://portal.aira.io\",\"ssp\":\"https://my.aira.io\",\"website\":\"https://aira.io\",\"namespace\":\"api\",\"X_Client_Id\":\"mgmt\",\"X_API_Key\":\"9nqTLwKyM18r8145q5x7B7ovbR3t1Hjn\",\"ep\":{\"user_login\":\"/user/login\"},\"mqtt_host\":\"web-mqtt.aira.io\",\"mqtt_port\":\"443\",\"mqtt_path\":\"/ws\",\"mqtt_env\":\"prod\",\"firebase_api_key\":\"AIzaSyBtpqUUkHzjG9XPSHPQXKrWQMJLUAn1vCA\",\"firebase_app_id\":\"1:176571152403:web:80d957e7e03bb19cbce7e6\",\"firebase_auth_domain\":\"acct-mgmt.aira.io\",\"firebase_project_id\":\"aira-explorer\",\"aira_api_base_url\":\"https://api.aira.io\",\"name\":\"aira-mgmt\",\"version\":\"0.95.0+d2517a5e\"});\n          }\n        \n"],"names":[],"mappings":"AAAA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7QA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxeA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrKA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrQA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5NA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnTA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzSA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3KA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpOA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClJA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxQA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;","file":"aira-mgmt.js"}