{"version":3,"sources":["webpack:///javascripts/56-257c10c0995a4d25fa59.min.js","webpack:///./app/assets/html/settings/subscription/subscription-current-plan.html","webpack:///./app/assets/javascripts/settings/subscription/SubscriptionCurrentPlan.ts"],"names":["webpackJsonp","dYBL","module","exports","__webpack_require__","p","x7II","Object","defineProperty","value","Strings_1","underscore_extensions_1","SubscriptionCurrentPlan","this","productName","Utils","getProduct","toLocaleLowerCase","prototype","$onChanges","planNameText","capitalize","planName","text","split","reduce","initText","word","Strings","angular","component","bindings","nextPaymentValue","nextPaymentDate","switchPeriod","expirationDate","switchSave","onSwitchTo","onCancel","controller","templateUrl"],"mappings":"AAAAA,cAAc,KAERC,KACA,SAAUC,EAAQC,EAASC,GCHjCF,EAAAC,QAAAC,EAAAC,EAAA,wEDSMC,KACA,SAAUJ,EAAQC,EAASC,GAEjC,YAEAG,QAAOC,eAAeL,EAAS,cAAgBM,OAAO,GEdtD,IAAAC,GAAAN,EAAA,QACAO,EAAAP,EAAA,QAEAQ,EAAA,mBAAAA,KACIC,KAAAC,YAAcH,EAAAI,MAAMC,aAAaC,oBAmBrC,MARIL,GAAAM,UAAAC,WAAA,WACIN,KAAKO,aAAeP,KAAKQ,WAAWR,KAAKS,SAASL,sBAG9CL,EAAAM,UAAAG,WAAR,SAAmBE,GAEf,MADgBA,GAAKC,MAAM,KACZC,OAAO,SAACC,EAAUC,GAAS,MAAGD,GAAQ,IAAIhB,EAAAkB,QAAQP,WAAWM,IAAS,KAE7Ff,IAEAiB,SAAQ3B,OAAO,2CACV4B,UAAU,2BACPC,UACIT,SAAU,IACVU,iBAAkB,IAClBC,gBAAiB,IACjBC,aAAc,IACdC,eAAgB,IAChBC,WAAY,IACZC,WAAY,KACZC,SAAU,MAEdC,WAAY3B,EACZ4B,YACIpC,EAAQ","file":"javascripts/56-257c10c0995a4d25fa59.min.js","sourcesContent":["webpackJsonp([56],{\n\n/***/ \"dYBL\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__.p + \"html/subscription-current-plan_2915a0ccf112a686992d710afc3f1118.html\";\n\n/***/ }),\n\n/***/ \"x7II\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar Strings_1 = __webpack_require__(\"fxc3\");\r\nvar underscore_extensions_1 = __webpack_require__(\"R0iF\");\r\nvar SubscriptionCurrentPlan = (function () {\r\n function SubscriptionCurrentPlan() {\r\n this.productName = underscore_extensions_1.Utils.getProduct().toLocaleLowerCase();\r\n }\r\n SubscriptionCurrentPlan.prototype.$onChanges = function () {\r\n this.planNameText = this.capitalize(this.planName.toLocaleLowerCase());\r\n };\r\n SubscriptionCurrentPlan.prototype.capitalize = function (text) {\r\n var textArr = text.split(' ');\r\n return textArr.reduce(function (initText, word) { return initText + \" \" + Strings_1.Strings.capitalize(word); }, '');\r\n };\r\n return SubscriptionCurrentPlan;\r\n}());\r\nangular.module('animatronApp.SubscriptionCurrentPlan', [])\r\n .component('subscriptionCurrentPlan', {\r\n bindings: {\r\n planName: '<',\r\n nextPaymentValue: '<',\r\n nextPaymentDate: '<',\r\n switchPeriod: '<',\r\n expirationDate: '<',\r\n switchSave: '<',\r\n onSwitchTo: '&?',\r\n onCancel: '&?'\r\n },\r\n controller: SubscriptionCurrentPlan,\r\n templateUrl: __webpack_require__(\"dYBL\")\r\n});\r\n\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// javascripts/56-257c10c0995a4d25fa59.min.js","module.exports = __webpack_public_path__ + \"html/subscription-current-plan_2915a0ccf112a686992d710afc3f1118.html\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/assets/html/settings/subscription/subscription-current-plan.html\n// module id = dYBL\n// module chunks = 56","import {Strings} from '../../Strings';\nimport {Utils} from '../../underscore-extensions';\n\nclass SubscriptionCurrentPlan implements ng.IComponentController {\n productName = Utils.getProduct().toLocaleLowerCase();\n planName: string;\n nextPaymentValue: string;\n nextPaymentDate: Date;\n switchSave: number;\n expirationDate: number;\n switchPeriod: anm.BillingPeriod;\n planNameText: string;\n onSwitchTo: (period: anm.BillingPeriod) => {};\n onCancel: () => {};\n\n $onChanges() {\n this.planNameText = this.capitalize(this.planName.toLocaleLowerCase());\n }\n\n private capitalize(text: string) {\n const textArr = text.split(' ');\n return textArr.reduce((initText, word) => `${initText} ${Strings.capitalize(word)}`, '');\n }\n}\n\nangular.module('animatronApp.SubscriptionCurrentPlan', [])\n .component('subscriptionCurrentPlan', {\n bindings: {\n planName: '<',\n nextPaymentValue: '<',\n nextPaymentDate: '<',\n switchPeriod: '<',\n expirationDate: '<',\n switchSave: '<',\n onSwitchTo: '&?',\n onCancel: '&?'\n },\n controller: SubscriptionCurrentPlan,\n templateUrl:\n require('settings/subscription/subscription-current-plan.html')\n })\n;\n\n\n\n// WEBPACK FOOTER //\n// ./app/assets/javascripts/settings/subscription/SubscriptionCurrentPlan.ts"],"sourceRoot":""}