{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.array.reduce.js","webpack:///./src/app/authentication/views/OutstandingInvoiceDetail.vue","webpack:///./src/app/authentication/views/OutstandingInvoiceDetail.vue?c9a9","webpack:///./src/app/authentication/views/OutstandingInvoiceDetail.vue?3a0f","webpack:///./src/app/authentication/views/OutstandingInvoiceDetail.vue?3cb1","webpack:///./node_modules/core-js/internals/array-reduce.js"],"names":["$","$reduce","left","arrayMethodIsStrict","CHROME_VERSION","IS_NODE","STRICT_METHOD","CHROME_BUG","target","proto","forced","reduce","callbackfn","length","arguments","this","undefined","render","_vm","_c","_self","_setupProxy","staticClass","_m","_v","attrs","_s","i18n","getRezToursLanguageEnum","payments","on","onClickGoHome","home","translateValue","destination","file","departure","dateDepart","return","dateReturn","total","currency","paymentsDone","_l","g_PaymentsByInvoice","paymentByInvoice","paymentInvoice","key","invoice","payment","paymentIndex","issuer","ccNumber","amount","staticStyle","getPaymentTotal","balanceDue","balance","pay","directives","name","rawName","value","amountInputProxy","expression","modifiers","domProps","$event","type","indexOf","_k","keyCode","onClickPay","apply","composing","_n","$forceUpdate","getErrorMessage","_e","multiplePayments","onClickGoBack","previous","staticRenderFns","OutstandingInvoiceDetail","LanguageModel","amountInput","errorCode","isNaN","valueFiltred","parseFloat","toFixed","accumulator","result","forEach","push","$router","replace","RoutesEnum","OutstandingInvoiceList","query","InvoiceQuery","$apiManager","getDetailAsync","outstandingInvoiceDetail","moment","format","$tStore","state","configState","setting","license","dateFormat","listReceipt","Package","paymentIsNumber","paymentNotNegative","isAddPaymentValid","PaymentRedirectInvoiceQuery","clientName","lang","g_Language","getURLInvoiceAsync","paymentURL","sessionStorage","setItem","process","VUE_APP_LICENSE","window","location","url","errorCommPCVWeb","components","FormatMoney","Vue","__decorate","Prop","String","Component","component","aCallable","toObject","IndexedObject","lengthOfArrayLike","$TypeError","TypeError","createMethod","IS_RIGHT","that","argumentsLength","memo","O","self","index","i","module","exports","right"],"mappings":"kHACA,IAAIA,EAAI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W,+CAGrB,KAAMG,EAAWM,GAAS,EAAI3I,EAAS2I,EAAOA,GAASC,EAAOD,KAASD,IACrEF,EAAOzI,EAAWyI,EAAME,EAAKC,GAAQA,EAAOF,IAE9C,OAAOD,IAIXK,EAAOC,QAAU,CAGfzJ,KAAM+I,GAAa,GAGnBW,MAAOX,GAAa","file":"js/chunk-778c7041.d94e42aa.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"template_account_page\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"container white-box p-0\"},[_c('div',{staticClass:\"px-2 px-md-5 pb-3\"},[_c('div',{staticClass:\"d-flex justify-content-between align-items-center container pt-2 pt-md-5 pb-3\"},[_c('span',{staticClass:\"title ml-0 ml-md-2\"},[_c('pcv-icon',{staticClass:\"icon mr-3\",attrs:{\"icon\":['fal','wallet']}}),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.payments)))])],1),_vm._v(\" \"),_c('button',{staticClass:\"b-secondary-medium\",on:{\"click\":_vm.onClickGoHome}},[_c('pcv-icon',{staticClass:\"b-secondary-medium__icon\",attrs:{\"icon\":['fal','home-lg']}}),_vm._v(\" \"),_c('div',{staticClass:\"b-secondary-medium__tag\"},[_c('span',{staticClass:\"ml-2 show\"},[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.home)))])])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"container box-resume\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 col-md-4 box1\"},[_c('div',{staticClass:\"d-flex justify-content-center align-items-center py-4 h-100\"},[_c('div',[_c('div',{staticClass:\"box-resume-title\"},[_vm._v(_vm._s(_vm.translateValue(_vm.destination)))]),_vm._v(\" \"),_c('div',[_c('h2',[_c('span',[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.file))+\": \"),_c('strong',[_vm._v(_vm._s(_vm.file))])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-12 col-md-5\"},[_c('div',{staticClass:\"d-flex justify-content-center align-items-center py-2 py-md-4 h-100\"},[_c('div',{staticClass:\"d-flex flex-column\"},[_c('div',{staticClass:\"d-flex\"},[_c('div',{staticClass:\"d-flex cirle mt-2 mr-2\"}),_vm._v(\" \"),_c('div',[_c('div',[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.departure))+\":\")]),_vm._v(\" \"),_c('div',{staticClass:\"date\"},[_c('strong',[_vm._v(\" \"+_vm._s(_vm.dateDepart))])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"d-flex flex-column ml-5 ml-md-2 ml-lg-5\"},[_c('div',{staticClass:\"d-flex\"},[_c('div',{staticClass:\"d-flex cirle mt-2 mr-2\"}),_vm._v(\" \"),_c('div',[_c('div',[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.return)))]),_vm._v(\" \"),_c('div',{staticClass:\"date\"},[_c('strong',[_vm._v(\" \"+_vm._s(_vm.dateReturn))])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-12 col-md-3 box2\"},[_c('div',{staticClass:\"d-flex justify-content-center align-items-center py-4 h-100\"},[_c('span',{staticClass:\"box-resume-price\"},[_vm._v(\"\\n \"+_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.total))+\":\\n \"),_c('strong',{staticClass:\"number\"},[_c('format-money',{attrs:{\"amount\":_vm.total,\"currency\":_vm.currency,\"showCents\":\"\"}})],1)])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"backgroundTest mt-4 mb-3\"},[_c('div',{staticClass:\"PaymentReceivedType d-flex justify-content-center align-items-center pb-3 pt-4\"},[_c('pcv-icon',{attrs:{\"icon\":['fal','check-circle']}}),_vm._v(\" \"),_c('div',{staticClass:\"pl-2\"},[_vm._v(\"\\n \"+_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.paymentsDone))+\"\\n \")])],1),_vm._v(\" \"),_vm._l((_vm.g_PaymentsByInvoice),function(paymentByInvoice,paymentInvoice){return _c('div',{key:paymentInvoice,staticClass:\"container p-0\"},[_c('div',{staticClass:\"row status-payment-style m-0 p-0\"},[_c('div',{staticClass:\"col-12 p-0\"},[_c('div',{staticClass:\"d-flex justify-content-center justify-content-md-start mx-4\"},[_c('div',{staticClass:\"facturation mt-2\"},[_c('div',{staticClass:\"mx-3 my-1\"},[_c('span',[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.invoice))+\": \"),_c('strong',[_vm._v(_vm._s(paymentInvoice))])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"facturation_trace mx-4\"}),_vm._v(\" \"),_vm._l((paymentByInvoice),function(payment,paymentIndex){return _c('div',{key:paymentIndex,staticClass:\"facturation_box d-flex justify-content-between mx-4 mx-md-5 my-2 pb-2\"},[_c('div',{staticClass:\"d-flex flex-column flex-md-row pt-2\"},[_c('div',{staticClass:\"name pr-5\"},[_vm._v(\"\\n \"+_vm._s(payment.issuer)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"credit-card-number\"},[_c('pcv-icon',{staticClass:\"icon mr-1\",attrs:{\"icon\":['fal','credit-card']}}),_vm._v(\"\\n \"+_vm._s(payment.ccNumber)+\"\\n \")],1)]),_vm._v(\" \"),_c('div',{staticClass:\"d-flex align-items-center price pt-2\"},[_c('div',[_c('strong',[_c('format-money',{attrs:{\"amount\":payment.amount,\"onlyCurrency\":\"\",\"showCents\":\"\"}})],1)])])])})],2)])])}),_vm._v(\" \"),_c('div',{staticClass:\"container p-0 m-0 pb-3\"},[_c('div',{staticClass:\"d-flex justify-content-end mx-3 mx-md-4 px-2 px-md-4 py-2 sum-payment-received\",staticStyle:{\"background-color\":\"#e4e4e4\"}},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.total))+\":\\n \"),_c('strong',[_c('format-money',{attrs:{\"amount\":_vm.getPaymentTotal,\"onlyCurrency\":\"\",\"showCents\":\"\"}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"d-flex justify-content-center align-items-baseline row status-payment-style\"},[_c('div',{staticClass:\"paymentDue\"},[_vm._v(\"\\n \"+_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.balanceDue))+\":\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"value-paymentDue pl-2\"},[_c('format-money',{attrs:{\"amount\":_vm.balance,\"onlyCurrency\":\"\",\"showCents\":\"\"}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"mx-3 mx-md-5 py-3\"},[_c('div',{staticClass:\"col d-flex flex-column flex-md-row justify-content-center align-items-center\"},[_c('div',{staticClass:\"labelPay pb-2 pb-md-0 pr-md-3\",attrs:{\"for\":\"paymentAmount\"}},[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.pay))+\":\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.amountInputProxy),expression:\"amountInputProxy\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control__model3 mb-3 mb-md-0\",attrs:{\"disabled\":_vm.balance <= 0,\"type\":\"number\",\"id\":\"paymentAmount\",\"autocomplete\":\"off\",\"min\":\"0\",\"step\":\"0.01\"},domProps:{\"value\":(_vm.amountInputProxy)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.onClickPay.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.amountInputProxy=_vm._n($event.target.value)},\"blur\":function($event){return _vm.$forceUpdate()}}}),_vm._v(\" \"),_c('button',{staticClass:\"b-primary ml-0 ml-md-3 px-3\",attrs:{\"disabled\":_vm.balance <= 0},on:{\"click\":_vm.onClickPay}},[_c('pcv-icon',{staticClass:\"pl-3 b-primary__icon\",attrs:{\"icon\":['fal','credit-card']}}),_vm._v(\" \"),_c('div',{staticClass:\"b-primary__tag\"},[_c('span',[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.pay)))])])],1)]),_vm._v(\" \"),(_vm.getErrorMessage.length > 0)?_c('div',[_c('div',{staticClass:\"d-flex justify-content-center align-items-center pt-3 error-style-payment\"},[_c('pcv-icon',{staticClass:\"mr-1\",attrs:{\"icon\":['far','exclamation-circle']}}),_vm._v(\"\\n \"+_vm._s(_vm.getErrorMessage)+\"\\n \")],1)]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"d-flex observation-payment justify-content-center pt-3 px-4\"},[_vm._v(\"\\n \"+_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.multiplePayments))+\"\\n \")])])],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"d-flex container justify-content-center justify-content-md-end mt-2 mb-5\"},[_c('div',{staticClass:\"d-flex mr-5\"},[_c('div',{staticClass:\"mr-4\"},[_c('button',{staticClass:\"b-secondary\",on:{\"click\":_vm.onClickGoBack}},[_c('pcv-icon',{staticClass:\"b-secondary__icon\",attrs:{\"icon\":['fal','arrow-circle-left']}}),_vm._v(\" \"),_c('div',{staticClass:\"b-secondary__tag\"},[_c('span',[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.previous)))])])],1)]),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"b-secondary-medium\",on:{\"click\":_vm.onClickGoHome}},[_c('pcv-icon',{staticClass:\"b-secondary-medium__icon\",attrs:{\"icon\":['fal','home-lg']}}),_vm._v(\" \"),_c('div',{staticClass:\"b-secondary-medium__tag\"},[_c('span',{staticClass:\"ml-2 show\"},[_vm._v(_vm._s(_vm.i18n(_vm.getRezToursLanguageEnum.home)))])])],1)])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('div',{staticClass:\"cutBackground\"},[_c('div',{staticClass:\"background\"})])])\n}]\n\nexport { render, staticRenderFns }","\r\n import { Component, Prop, Vue } from \"vue-property-decorator\";\r\n import RoutesEnum from \"@/router/routesEnum\";\r\n import moment from \"moment\";\r\n import FormatMoney from \"@/app/common/components/FormatMoney.vue\";\r\n import { PaymentRedirectInvoiceQuery, PaymentURLModel } from \"@/apiManager/payment/paymentData\";\r\n import { InvoiceModel, InvoiceQuery, InvoiceReceiptModel } from \"@/apiManager/invoice/invoiceData\";\r\n import LanguageModel from \"@/apiManager/_common/languageModel\";\r\n import { RezToursLanguageEnum } from \"@/apiManager/_common/enums\";\r\n\r\n @Component\r\n export default class OutstandingInvoiceDetail extends Vue\r\n {\r\n @Prop({ type: String }) private file!: string;\r\n\r\n private invoice: string = \"\";\r\n private dateDepart: string = \"\";\r\n private dateReturn: string = \"\";\r\n private destination: LanguageModel = new LanguageModel();\r\n private total: number = 0;\r\n private balance: number = 0;\r\n private currency: string = \"\";\r\n private payments: InvoiceReceiptModel[] = [];\r\n\r\n private amountInput: number = 0;\r\n private errorCode: string = \"\";\r\n\r\n get amountInputProxy(): number\r\n {\r\n return this.amountInput;\r\n }\r\n set amountInputProxy(value: number)\r\n {\r\n\r\n if (isNaN(value) || typeof value !== \"number\")\r\n {\r\n this.amountInput = 0;\r\n }\r\n else\r\n {\r\n let valueFiltred: number = parseFloat(value.toFixed(2));\r\n this.amountInput = valueFiltred;\r\n }\r\n }\r\n\r\n get getPaymentTotal(): number\r\n {\r\n return this.payments.reduce(\r\n (accumulator: number, payment: InvoiceReceiptModel) =>\r\n {\r\n return accumulator + payment.amount;\r\n }, 0);\r\n }\r\n\r\n get getErrorMessage(): string\r\n {\r\n if (this.errorCode.length > 0)\r\n {\r\n return this.i18n(this.errorCode as RezToursLanguageEnum) ?? \"\";\r\n }\r\n else\r\n {\r\n return \"\";\r\n }\r\n }\r\n\r\n get g_PaymentsByInvoice(): Record\r\n {\r\n let result: Record = {};\r\n\r\n this.payments.forEach(\r\n (payment) =>\r\n {\r\n if (!result[payment.invoice])\r\n {\r\n result[payment.invoice] = [];\r\n }\r\n result[payment.invoice].push(payment);\r\n }\r\n );\r\n\r\n return result;\r\n }\r\n\r\n async mounted()\r\n {\r\n if (this.file === null || this.file.length === 0)\r\n {\r\n this.$router.replace({ name: RoutesEnum.OutstandingInvoiceList });\r\n }\r\n\r\n try\r\n {\r\n let query: InvoiceQuery = new InvoiceQuery(this.file);\r\n let outstandingInvoiceDetail: InvoiceModel = await this.$apiManager.invoice.getDetailAsync(query);\r\n\r\n this.invoice = outstandingInvoiceDetail.invoice;\r\n this.dateDepart = moment(outstandingInvoiceDetail.dateDepart).format(this.$tStore.state.configState.setting.license.dateFormat);\r\n this.dateReturn = moment(outstandingInvoiceDetail.dateReturn).format(this.$tStore.state.configState.setting.license.dateFormat);\r\n this.destination = outstandingInvoiceDetail.destination;\r\n this.balance = outstandingInvoiceDetail.balance;\r\n this.total = outstandingInvoiceDetail.total;\r\n this.currency = outstandingInvoiceDetail.currency;\r\n this.payments = outstandingInvoiceDetail.listReceipt;\r\n\r\n if (this.balance <= 0)\r\n {\r\n this.amountInputProxy = 0;\r\n }\r\n else\r\n {\r\n this.amountInputProxy = this.balance;\r\n }\r\n }\r\n catch(ex)\r\n {\r\n this.$router.replace({ name: RoutesEnum.Package });\r\n }\r\n }\r\n\r\n isAddPaymentValid()\r\n {\r\n if (isNaN(this.amountInputProxy))\r\n {\r\n this.errorCode = this.getRezToursLanguageEnum.paymentIsNumber;\r\n return false;\r\n }\r\n\r\n if (this.amountInputProxy <= 0)\r\n {\r\n this.errorCode = this.getRezToursLanguageEnum.paymentNotNegative;\r\n return false;\r\n }\r\n\r\n this.errorCode = \"\";\r\n return true;\r\n }\r\n\r\n onClickGoHome()\r\n {\r\n this.$router.push({ name: RoutesEnum.Package });\r\n }\r\n\r\n onClickGoBack()\r\n {\r\n this.$router.push({ name: RoutesEnum.OutstandingInvoiceList });\r\n }\r\n\r\n async onClickPay()\r\n {\r\n if (this.isAddPaymentValid())\r\n {\r\n try\r\n {\r\n let query: PaymentRedirectInvoiceQuery = new PaymentRedirectInvoiceQuery();\r\n query.invoice = this.invoice;\r\n query.amount = this.amountInputProxy;\r\n query.clientName = \"\";\r\n query.lang = this.g_Language;\r\n\r\n let paymentURL: PaymentURLModel = await this.$apiManager.payment.getURLInvoiceAsync(query);\r\n sessionStorage.setItem((process.env?.VUE_APP_LICENSE ?? \"\") + \"_invoiceCode\", this.file);\r\n window.location.replace(paymentURL.url);\r\n }\r\n catch\r\n {\r\n this.errorCode = this.getRezToursLanguageEnum.errorCommPCVWeb;\r\n }\r\n }\r\n }\r\n\r\n get components()\r\n {\r\n let components =\r\n {\r\n \"format-money\": FormatMoney\r\n };\r\n return components;\r\n }\r\n\r\n }\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OutstandingInvoiceDetail.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OutstandingInvoiceDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OutstandingInvoiceDetail.vue?vue&type=template&id=7f051c50&\"\nimport script from \"./OutstandingInvoiceDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./OutstandingInvoiceDetail.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n"],"sourceRoot":""}