{"version":3,"sources":["webpack:///./src/common/utils/fileUtils.ts","webpack:///./src/common/components/CForm.vue?f82c","webpack:///./src/common/components/CForm.vue","webpack:///./src/common/components/CForm.vue?8ca1","webpack:///./src/common/components/CForm.vue?393b","webpack:///./src/store/products-module.ts","webpack:///./src/components/subs/Subs.vue?5b5e","webpack:///./src/components/subs/SubMember.vue?e7c5","webpack:///./src/components/subs/SubMember.vue","webpack:///./src/components/subs/SubMember.vue?7272","webpack:///./src/components/subs/SubMember.vue?37a7","webpack:///./src/components/subs/Subs.vue","webpack:///./src/components/subs/Subs.vue?c47b","webpack:///./src/components/subs/Subs.vue?639b","webpack:///./src/store/payments-module.ts","webpack:///./src/common/validators/rules.ts","webpack:///./src/common/components/CPayDialog.vue?06e7","webpack:///./node_modules/@stripe/stripe-js/dist/stripe.esm.js","webpack:///./src/common/components/CPayDialog.vue","webpack:///./src/common/components/CPayDialog.vue?a623","webpack:///./src/common/components/CPayDialog.vue?cadc","webpack:///./src/store/teams-api.ts"],"names":["objectToFormData","obj","formData","options","pre","this","isFormData","indices","FormData","isUndefined","isNull","isArray","forEach","value","index","key","isFile","isDate","append","toISOString","isObject","isBlob","name","Object","keys","prop","length","lastIndexOf","substring","undefined","Array","Date","size","type","slice","lastModifiedDate","lastModified","render","_vm","_h","$createElement","_c","_self","attrs","loading","ref","on","$event","preventDefault","submit","close","_v","_e","_t","staticRenderFns","validate","$refs","form","reset","resetValidation","Boolean","String","default","CForm","components","VProgressLinear","VForm","VDivider","component","VBtn","VCard","VCardText","VIcon","VSpacer","VToolbar","VToolbarItems","VToolbarTitle","getAll","get","getAllActive","save","product","id","put","post","delete","productId","ProductsModule","dynamic","namespaced","store","staticClass","_l","member","idx","teams","members","remove","model","callback","$$v","$set","expression","add","slot","_s","firstName","lastName","payment","pay","clear","validators","required","maxLength","periods","team","period","text","SubMember","VCardTitle","VCol","VRow","VSelect","VTextField","paymentsStore","teamsStore","isMounted","mounted","teamCategory","then","res","push","splice","subs","payDialog","open","data","Subs","CPayDialog","VAlert","VCardActions","shop","basket","items","map","item","productVariants","pv","camp","PaymentsModule","v","toString","trim","email","test","requiredIf","other","message","payWithCard","scopedSlots","_u","fn","disablePayButton","proxy","error","V3_URL","V3_URL_REGEX","EXISTING_SCRIPT_MESSAGE","findScript","scripts","document","querySelectorAll","concat","i","script","src","injectScript","params","queryString","advancedFraudSignals","createElement","headOrBody","head","body","Error","appendChild","registerWrapper","stripe","startTime","_registerWrapper","version","stripePromise","loadScript","Promise","resolve","reject","window","Stripe","console","warn","addEventListener","initStripe","maybeStripe","args","apply","stripePromise$1","loadCalled","err","loadStripe","_len","arguments","_key","now","productsStore","products","selected","busy","success","stripeKey","stripeInstance","elements","style","base","color","fontFamily","fontSmoothing","fontSize","invalid","iconColor","card","create","mount","confirmCardPayment","payment_method","result","paymentIntent","$emit","VDialog","getPrevious","teamId","getOptions"],"mappings":"iVAAA,+BA+FA,OA9FW,EAAAA,iBAAP,SAAwBC,EAAUC,EAAgBC,EAAeC,GAAjE,WA0BI,OAVIC,KAAKC,WAAWH,KAChBC,EAAMF,EACNA,EAAWC,EACXA,EAAU,MAGdA,EAAUA,GAAW,GACrBA,EAAQI,QAAUJ,EAAQI,UAAW,EACrCL,EAAWA,GAAY,IAAIM,SAEvBH,KAAKI,YAAYR,IAAQI,KAAKK,OAAOT,KAE9BI,KAAKM,QAAQV,GACpBA,EAAIW,SAAQ,SAACC,EAAYC,GAErB,IAAIC,EAAMX,EACL,EAAKY,OAAOH,KACbE,EAAMX,EAAM,KAAOD,EAAQI,QAAUO,EAAQ,IAAM,KAEvD,EAAKd,iBAAiBa,EAAOX,EAAUC,EAASY,MAE7CV,KAAKY,OAAOhB,GACnBC,EAASgB,OAAOd,EAAKH,EAAIkB,gBAClBd,KAAKe,SAASnB,IAASI,KAAKW,OAAOf,IAASI,KAAKgB,OAAOpB,GAaxDI,KAAKgB,OAAOpB,GACnBC,EAASgB,OAAOd,EAAKH,EAAKA,EAAIqB,MAE9BpB,EAASgB,O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/BI,YAAAY,OAAA,SAAO,G,IAAEmD,EAAY,eACjB,OAAO,OAAMlD,IAAY,aAAc,CAAEmG,OAAQ,CAAEjD,aAAY,MAGnE,YAAA8G,YAAA,WACI,OAAO,OAAMhK,IAAY,oBAG7B,YAAAA,IAAA,SAAI,G,IAAEiK,EAAM,SACR,OAAKA,EAGE,OAAMjK,IAAU,UAAUiK,GAFtB9C,QAAQC,QAAQ,CAAE1D,KAAM,MAKvC,YAAAxD,KAAA,SAAK,G,IAAEmC,EAAI,OACDjH,EAAW,OAAUF,iBAAiBmH,GAC5C,OAAMA,EAAKjC,IAAMiC,EAAKjC,IAAM,EACjB,OAAMC,IAAI,SAAUjF,GAEpB,OAAMkF,KAAK,SAAUlF,IAIpC,YAAAmF,OAAA,SAAO,G,IAAE0J,EAAM,SACX,OAAO,OAAM1J,OAAO,UAAU0J,IAGlC,YAAAC,WAAA,WACI,OAAO,OAAMlK,IAAiB,mBAEtC,EAhCA","file":"js/subs.ea5da427.js","sourcesContent":["export default class FileUtils {\n static objectToFormData(obj: any, formData?: any, options?: any, pre?: any) {\n // takes a {} object and returns a FormData object\n // https://gist.github.com/ghinda/8442a57f22099bdb2e34\n // https://github.com/therealparmesh/object-to-formdata/blob/master/index.js\n //objectToFormData(\n // object,\n // existingFormData, // optional\n // options, // optional\n // keyPrefix // optional\n //)\n\n // whether or not to include array indices in FormData keys\n // defaults to true\n // const options = {\n // indices: true\n //}\n if (this.isFormData(options)) {\n pre = formData;\n formData = options;\n options = null;\n }\n\n options = options || {};\n options.indices = options.indices || true;\n formData = formData || new FormData();\n\n if (this.isUndefined(obj) || this.isNull(obj)) {\n return formData;\n } else if (this.isArray(obj)) {\n obj.forEach((value: any, index: any) => {\n // FILES do not appear to work with an index anymore on core\n let key = pre;\n if (!this.isFile(value)) {\n key = pre + \"[\" + (options.indices ? index : \"\") + \"]\";\n }\n this.objectToFormData(value, formData, options, key);\n });\n } else if (this.isDate(obj)) {\n formData.append(pre, obj.toISOString());\n } else if (this.isObject(obj) && !this.isFile(obj) && !this.isBlob(obj)) {\n Object.keys(obj).forEach((prop) => {\n const value = obj[prop];\n if (this.isArray(value)) {\n while (prop.length > 2 && prop.lastIndexOf(\"[]\") === prop.length - 2) {\n prop = prop.substring(0, prop.length - 2);\n }\n }\n\n const key = pre ? pre + \".\" + prop : prop;\n\n this.objectToFormData(value, formData, options, key);\n });\n } else if (this.isBlob(obj)) {\n formData.append(pre, obj, obj.name);\n } else {\n formData.append(pre, obj);\n }\n\n return formData;\n }\n\n static isUndefined(value: any) {\n return value === undefined;\n }\n static isNull(value: any) {\n return value === null;\n }\n static isObject(value: any) {\n return value === Object(value);\n }\n static isArray(value: any) {\n return Array.isArray(value);\n }\n static isDate(value: any) {\n return value instanceof Date;\n }\n static isBlob(value: any) {\n return (\n value &&\n typeof value.size === \"number\" &&\n typeof value.type === \"string\" &&\n typeof value.slice === \"function\"\n );\n }\n static isFile(value: any) {\n return (\n this.isBlob(value) &&\n (typeof value.lastModifiedDate === \"object\" || typeof value.lastModified === \"number\") &&\n typeof value.name === \"string\"\n );\n }\n static isFormData(value: any) {\n return value instanceof FormData;\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{attrs:{\"loading\":_vm.loading}},[_c('v-form',{ref:\"form\",on:{\"submit\":function($event){$event.preventDefault();return _vm.submit($event)}}},[_c('v-toolbar',{attrs:{\"flat\":\"\",\"dark\":\"\",\"color\":\"primary\"}},[(_vm.allowClose)?_c('v-btn',{attrs:{\"icon\":\"\",\"dark\":\"\"},on:{\"click\":_vm.close}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1):_vm._e(),_c('v-toolbar-title',[_vm._t(\"header\")],2),_c('v-spacer'),_c('v-toolbar-items',[_vm._t(\"actions\",[_c('v-btn',{attrs:{\"dark\":\"\",\"text\":\"\",\"type\":\"submit\"}},[_vm._v(\"Save\")])])],2)],1),_c('v-divider'),_c('v-card-text',[_vm._t(\"default\")],2)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Emit, Prop } from \"vue-property-decorator\";\nimport { VProgressLinear, VForm, VDivider } from \"vuetify/lib\";\n\n@Component({ components: { VProgressLinear, VForm, VDivider } })\nexport default class CForm extends Vue {\n @Prop({ type: Boolean }) loading!: boolean | false;\n @Prop({ type: String }) title!: string;\n @Prop({ type: Boolean, default: true }) allowClose!: boolean;\n\n validate() {\n return (this.$refs.form as any).validate();\n }\n\n reset() {\n return (this.$refs.form as any).reset();\n }\n\n resetValidation() {\n return (this.$refs.form as any).resetValidation();\n }\n\n @Emit()\n close() {\n return;\n }\n\n @Emit()\n submit() {\n return true;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CForm.vue?vue&type=template&id=71560bd6&\"\nimport script from \"./CForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./CForm.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarItems } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCard,VCardText,VDivider,VForm,VIcon,VSpacer,VToolbar,VToolbarItems,VToolbarTitle})\n","import { axios } from \"./axios\";\nimport { VuexModule, Module, Action } from \"vuex-module-decorators\";\nimport store from \"../store\";\nimport FileUtils from \"@/common/utils/fileUtils\";\n\n@Module({\n dynamic: true,\n namespaced: true,\n store,\n name: \"products\",\n})\nexport class ProductsModule extends VuexModule {\n @Action\n getAll() {\n return axios.get(\"/products\");\n }\n\n @Action\n getAllActive() {\n return axios.get(\"/products/active\");\n }\n\n @Action\n save({ product }: { product: Product }) {\n const formData = FileUtils.objectToFormData(product);\n if (!!product.id && product.id > -1) {\n return axios.put(\"/products\", formData);\n } else {\n return axios.post(\"/products\", formData);\n }\n }\n\n @Action\n delete({ productId }: { productId: number }) {\n return axios.delete(`/products/${productId}`);\n }\n}\n\nexport interface Product {\n id: number;\n name: string;\n description: string;\n display: boolean;\n additionalInfo: string;\n infoLength: string;\n mediaUri: string;\n imageUpload: Blob;\n productVariants: ProductVariant[];\n}\n\nexport interface ProductVariant {\n id: number;\n size: string;\n quantityAvailable: number;\n cost: number;\n additionalInformationCost: number;\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h1',[_vm._v(\"Membership Subscriptions\")]),_c('v-divider',{staticClass:\"my-4\"}),_c('v-alert',{attrs:{\"border\":\"left\",\"type\":\"success\",\"text\":\"\"}},[_c('p',[_vm._v(\"Fees are paid via Clubforce.\")]),_c('p',[_vm._v(\" This page should only be used if specifically requested by the Treasurer. \")])]),_c('v-form',{ref:\"form\"},[_c('v-row',[_c('v-col',{staticClass:\"d-flex\",attrs:{\"cols\":\"12\",\"sm\":\"9\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_vm._l((_vm.members),function(member,idx){return _c('v-col',{key:idx,attrs:{\"cols\":\"12\",\"md\":\"9\",\"lg\":\"4\"}},[_c('sub-member',{staticClass:\"ma-2\",attrs:{\"teams\":_vm.teams,\"can-remove\":_vm.members.length > 1},on:{\"remove\":function($event){return _vm.remove(idx)}},model:{value:(_vm.members[idx]),callback:function ($$v) {_vm.$set(_vm.members, idx, $$v)},expression:\"members[idx]\"}})],1)}),_c('v-col',{staticClass:\"ma-2\",attrs:{\"cols\":\"12\",\"md\":\"3\"}},[_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"Add Another\")])],1)],2)],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"3\"}},[_c('v-card',{staticClass:\"mx-auto my-2\",attrs:{\"max-width\":\"374\"}},[_c('template',{slot:\"progress\"},[_c('v-progress-linear',{attrs:{\"color\":\"deep-purple\",\"height\":\"10\",\"indeterminate\":\"\"}})],1),_c('v-card-title',[_vm._v(\"Summary\")]),_c('v-card-text',[_vm._l((_vm.members),function(member,idx){return _c('v-row',{key:idx},[(member.firstName)?_c('v-col',{attrs:{\"cols\":\"10\"}},[(_vm.members.length > 1)?_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.remove(idx)}}},[_c('v-icon',[_vm._v(\"mdi-trash-can-outline\")])],1):_vm._e(),_vm._v(\" Payment for \"+_vm._s(member.firstName)+\" \"+_vm._s(member.lastName)+\" \")],1):_vm._e()],1)}),_c('v-row',[_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Amount to Pay\",\"type\":\"number\"},model:{value:(_vm.payment),callback:function ($$v) {_vm.payment=$$v},expression:\"payment\"}})],1)],1)],2),_c('v-card-actions',[_c('v-btn',{attrs:{\"color\":\"primary\",\"block\":\"\",\"disabled\":_vm.payment == 0},on:{\"click\":_vm.pay}},[_vm._v(\"Pay €\"+_vm._s(_vm.payment))]),_c('c-pay-dialog',{ref:\"payDialog\",on:{\"success\":function($event){return _vm.clear()}}})],1)],2)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',[_c('v-card-title',[_vm._v(\"Member Payment Details\")]),_c('v-card-text',[_c('v-row',{attrs:{\"no-gutter\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"lg\":\"6\"}},[_c('v-text-field',{staticClass:\"ma-1 flex-grow-1\",attrs:{\"label\":\"First Name\",\"rules\":[_vm.validators.required(), _vm.validators.maxLength(20)]},model:{value:(_vm.member.firstName),callback:function ($$v) {_vm.$set(_vm.member, \"firstName\", $$v)},expression:\"member.firstName\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"lg\":\"6\"}},[_c('v-text-field',{staticClass:\"ma-1 flex-grow-1\",attrs:{\"label\":\"Last Name\",\"rules\":[_vm.validators.required(), _vm.validators.maxLength(20)]},model:{value:(_vm.member.lastName),callback:function ($$v) {_vm.$set(_vm.member, \"lastName\", $$v)},expression:\"member.lastName\"}})],1)],1),_c('v-row',{attrs:{\"no-gutter\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"lg\":\"6\"}},[_c('v-select',{staticClass:\"ma-1 flex-grow-1\",attrs:{\"multiple\":\"\",\"label\":\"Teams\",\"items\":_vm.teams,\"item-value\":\"id\",\"item-text\":\"name\",\"rules\":[_vm.validators.required()]},model:{value:(_vm.member.teams),callback:function ($$v) {_vm.$set(_vm.member, \"teams\", $$v)},expression:\"member.teams\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"lg\":\"6\"}},[_c('v-select',{staticClass:\"ma-1 flex-grow-1\",attrs:{\"label\":\"Subs Period\",\"items\":_vm.periods,\"rules\":[_vm.validators.required()]},model:{value:(_vm.member.period),callback:function ($$v) {_vm.$set(_vm.member, \"period\", $$v)},expression:\"member.period\"}})],1),(_vm.canRemove)?_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-btn',{attrs:{\"icon\":\"\",\"color\":\"error\"},on:{\"click\":_vm.remove}},[_c('v-icon',[_vm._v(\"mdi-trash-can-outline\")])],1)],1):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Model, Prop, Emit } from \"vue-property-decorator\";\nimport { Member } from \"@/store/payments-module\";\nimport { Team } from \"@/store/teams-api\";\nimport CForm from \"@/common/components/CForm.vue\";\nimport { required, maxLength } from \"@/common/validators/rules\";\n\n@Component({ components: { CForm } })\nexport default class SubMember extends Vue {\n @Model(\"change\") member!: Member;\n @Prop() teams!: Team[];\n @Prop({ required: true, type: Boolean }) canRemove!: boolean;\n\n validators = { required, maxLength };\n firstName = \"\";\n lastName = \"\";\n team: string[] = [];\n period = 0;\n periods = [\n { value: \"1\", text: \"Annual\" },\n { value: \"2\", text: \"Term 1\" },\n { value: \"3\", text: \"Term 2\" },\n ];\n\n @Emit()\n remove() {\n return;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubMember.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubMember.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SubMember.vue?vue&type=template&id=533c770a&\"\nimport script from \"./SubMember.vue?vue&type=script&lang=ts&\"\nexport * from \"./SubMember.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCard,VCardText,VCardTitle,VCol,VIcon,VRow,VSelect,VTextField})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { getModule } from \"vuex-module-decorators\";\nimport { PaymentsModule, Member } from \"@/store/payments-module\";\nimport { TeamsApi, Team } from \"@/store/teams-api\";\nimport CForm from \"@/common/components/CForm.vue\";\nimport CPayDialog from \"@/common/components/CPayDialog.vue\";\nimport SubMember from \"./SubMember.vue\";\n\n@Component({ components: { CForm, CPayDialog, SubMember } })\nexport default class Subs extends Vue {\n paymentsStore = getModule(PaymentsModule);\n teamsStore = new TeamsApi();\n isMounted = false;\n teams: Team[] = [];\n payment = 0;\n members: Member[] = [{} as Member];\n\n mounted() {\n // get the teams\n this.teamsStore.getAll({ teamCategory: \"\" }).then((res) => (this.teams = res.data));\n }\n\n add() {\n this.members.push({} as Member);\n }\n\n remove(index: number) {\n this.members.splice(index, 1);\n }\n\n clear() {\n this.payment = 0;\n }\n\n pay() {\n if (!(this.$refs.form as any).validate()) {\n return;\n }\n\n this.paymentsStore\n .subs({ members: this.members, payment: this.payment })\n .then((res) => (this.$refs.payDialog as any).open(res.data.clientSecret));\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Subs.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Subs.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Subs.vue?vue&type=template&id=6e809a39&\"\nimport script from \"./Subs.vue?vue&type=script&lang=ts&\"\nexport * from \"./Subs.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardActions,VCardText,VCardTitle,VCol,VDivider,VForm,VIcon,VProgressLinear,VRow,VTextField})\n","import { axios } from \"./axios\";\nimport { VuexModule, Module, Action } from \"vuex-module-decorators\";\nimport store from \"../store\";\nimport { Product } from \"./products-module\";\n\n@Module({\n dynamic: true,\n namespaced: true,\n store,\n name: \"payments\",\n})\nexport class PaymentsModule extends VuexModule {\n @Action\n shop({ basket }: { basket: Product[] }) {\n const items = basket.map((item) => ({\n productId: item.id,\n productVariants: item.productVariants.map((pv) => ({ id: pv.id })),\n }));\n return axios.post(\"/payments/shop\", { items });\n }\n\n @Action\n subs({ members, payment }: { members: Member[]; payment: number }) {\n return axios.post(\"/payments/subs\", { members, payment });\n }\n\n @Action\n camp({ camp, payment }: { camp: Camp; payment: number }) {\n return axios.post(\"/payments/camp\", { camp, payment });\n }\n}\n\nexport interface Member {\n firstName: string;\n lastName: string;\n teams: number[];\n period: number;\n}\n\nexport interface Camp {\n firstName: string;\n lastName: string;\n member: boolean;\n session: string;\n tshirt: string;\n dateOfBirth: Date;\n gender: string;\n medical: string;\n information: string;\n address: string;\n contactName1: string;\n contactPhone1: string;\n contactEmail1: string;\n contactName2: string;\n contactPhone2: string;\n agreeTerms: boolean;\n}\n","export const required = () => (v: any) => (Array.isArray(v) ? v.length > 0 : v && !!v.toString().trim()) || \"Required\";\nexport const dateAfter = (otherDate: Date, message: string) => (v: any) =>\n (otherDate && new Date(v) > new Date(otherDate)) || message;\nexport const dateBefore = (otherDate: Date, message: string) => (v: any) =>\n (otherDate && new Date(v) < new Date(otherDate)) || message;\nexport const maxLength = (length: number) => (v: string) =>\n typeof v !== \"string\" || (v || \"\").length <= length || `Max length of ${length}`;\nexport const minLength = (length: number) => (v: string) => (v && v.length >= length) || `Min length of ${length}`;\n\n// Regex - @.\n// Dot or comma or whitespace should NOT be the last character\n// Shouldn't be surrounded by angular brackets\nexport const email = () => (v: any) => !v || /^[^<]\\S+@\\S+\\.\\S+[^.^,^>]$/.test(v.trim()) || \"Must be a valid email\";\n\nexport const multiEmail = (maxEmails?: number) => (v: string) => {\n const emails = (v || \"\").split(\",\").map((p) => p.trim());\n\n if (maxEmails && emails.length > maxEmails) {\n return `Only ${maxEmails} emails are allowed`;\n }\n\n return emails.every((v) => !v || email()(v) === true) || \"Must be comma separated list of valid emails\";\n};\nexport const numeric = () => (v: string) => /\\d+/.test(v) || \"Must include numbers (0-9)\";\nexport const alphaLower = () => (v: string) => /[a-z]/.test(v) || \"Must include lowercase letter (a-z)\";\nexport const alphaUpper = () => (v: string) => /[A-Z]/.test(v) || \"Must include uppercase letter (A-Z)\";\nexport const equal = (other: string, message: string) => (v: string) => other === v || message;\nexport const requiredIf = (other: boolean, message?: string) => (v: any) =>\n !other || (Array.isArray(v) ? v.length > 0 : !!v) || message || \"Required\";\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"400\"},model:{value:(_vm.payDialog),callback:function ($$v) {_vm.payDialog=$$v},expression:\"payDialog\"}},[_c('c-form',{attrs:{\"id\":\"payment-form\"},on:{\"submit\":_vm.payWithCard,\"close\":_vm.close},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('v-btn',{attrs:{\"dark\":\"\",\"text\":\"\",\"type\":\"submit\",\"disabled\":_vm.disablePayButton}},[_vm._v(\"Pay\")])]},proxy:true}])},[(_vm.busy)?_c('v-progress-linear',{staticClass:\"mb-2\",attrs:{\"indeterminate\":\"\"}}):_vm._e(),_c('div',{attrs:{\"id\":\"card-element\"}}),(_vm.success)?_c('v-alert',{staticClass:\"mt-4\",attrs:{\"type\":\"success\",\"dense\":\"\",\"outlined\":\"\"}},[_vm._v(\"Payment succeded - thank you. You will receive an email shortly.\")]):_vm._e(),(_vm.error)?_c('v-alert',{staticClass:\"mt-4\",attrs:{\"type\":\"error\",\"dense\":\"\",\"outlined\":\"\"}},[_vm._v(_vm._s(_vm.error))]):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var V3_URL = 'https://js.stripe.com/v3';\nvar V3_URL_REGEX = /^https:\\/\\/js\\.stripe\\.com\\/v3\\/?(\\?.*)?$/;\nvar EXISTING_SCRIPT_MESSAGE = 'loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used';\nvar findScript = function findScript() {\n var scripts = document.querySelectorAll(\"script[src^=\\\"\".concat(V3_URL, \"\\\"]\"));\n\n for (var i = 0; i < scripts.length; i++) {\n var script = scripts[i];\n\n if (!V3_URL_REGEX.test(script.src)) {\n continue;\n }\n\n return script;\n }\n\n return null;\n};\n\nvar injectScript = function injectScript(params) {\n var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';\n var script = document.createElement('script');\n script.src = \"\".concat(V3_URL).concat(queryString);\n var headOrBody = document.head || document.body;\n\n if (!headOrBody) {\n throw new Error('Expected document.body not to be null. Stripe.js requires a element.');\n }\n\n headOrBody.appendChild(script);\n return script;\n};\n\nvar registerWrapper = function registerWrapper(stripe, startTime) {\n if (!stripe || !stripe._registerWrapper) {\n return;\n }\n\n stripe._registerWrapper({\n name: 'stripe-js',\n version: \"1.12.1\",\n startTime: startTime\n });\n};\n\nvar stripePromise = null;\nvar loadScript = function loadScript(params) {\n // Ensure that we only attempt to load Stripe.js at most once\n if (stripePromise !== null) {\n return stripePromise;\n }\n\n stripePromise = new Promise(function (resolve, reject) {\n if (typeof window === 'undefined') {\n // Resolve to null when imported server side. This makes the module\n // safe to import in an isomorphic code base.\n resolve(null);\n return;\n }\n\n if (window.Stripe && params) {\n console.warn(EXISTING_SCRIPT_MESSAGE);\n }\n\n if (window.Stripe) {\n resolve(window.Stripe);\n return;\n }\n\n try {\n var script = findScript();\n\n if (script && params) {\n console.warn(EXISTING_SCRIPT_MESSAGE);\n } else if (!script) {\n script = injectScript(params);\n }\n\n script.addEventListener('load', function () {\n if (window.Stripe) {\n resolve(window.Stripe);\n } else {\n reject(new Error('Stripe.js not available'));\n }\n });\n script.addEventListener('error', function () {\n reject(new Error('Failed to load Stripe.js'));\n });\n } catch (error) {\n reject(error);\n return;\n }\n });\n return stripePromise;\n};\nvar initStripe = function initStripe(maybeStripe, args, startTime) {\n if (maybeStripe === null) {\n return null;\n }\n\n var stripe = maybeStripe.apply(undefined, args);\n registerWrapper(stripe, startTime);\n return stripe;\n};\n\n// own script injection.\n\nvar stripePromise$1 = Promise.resolve().then(function () {\n return loadScript(null);\n});\nvar loadCalled = false;\nstripePromise$1[\"catch\"](function (err) {\n if (!loadCalled) {\n console.warn(err);\n }\n});\nvar loadStripe = function loadStripe() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n loadCalled = true;\n var startTime = Date.now();\n return stripePromise$1.then(function (maybeStripe) {\n return initStripe(maybeStripe, args, startTime);\n });\n};\n\nexport { loadStripe };\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { getModule } from \"vuex-module-decorators\";\nimport { ProductsModule, Product } from \"@/store/products-module\";\nimport CForm from \"@/common/components/CForm.vue\";\nimport { loadStripe, Stripe, StripeCardElement } from \"@stripe/stripe-js\";\n\n@Component({ components: { CForm } })\nexport default class CPayDialog extends Vue {\n productsStore = getModule(ProductsModule);\n isMounted = false;\n products: Product[] = [];\n basket: Product[] = [];\n selected = {};\n stripeInstance!: Stripe | null;\n payDialog = false;\n stripeKey!: string;\n card!: StripeCardElement;\n busy = false;\n error: string | undefined = \"\";\n success: string | undefined = \"\";\n\n get disablePayButton() {\n return !!this.error || !!this.success || this.busy;\n }\n\n open(stripeKey: string) {\n this.stripeKey = stripeKey;\n this.payDialog = true;\n\n loadStripe(process.env.VUE_APP_STRIPE).then((res) => {\n if (!res) {\n return;\n }\n\n this.stripeInstance = res;\n\n var elements = this.stripeInstance.elements();\n var style = {\n base: {\n color: \"#32325d\",\n fontFamily: \"Arial, sans-serif\",\n fontSmoothing: \"antialiased\",\n fontSize: \"16px\",\n \"::placeholder\": {\n color: \"#32325d\",\n },\n },\n invalid: {\n fontFamily: \"Arial, sans-serif\",\n color: \"#fa755a\",\n iconColor: \"#fa755a\",\n },\n };\n\n this.card = elements.create(\"card\", { style: style });\n // Stripe injects an iframe into the DOM\n this.card.mount(\"#card-element\");\n //this.$nextTick(() => this.card.focus())\n this.card.on(\"change\", () => (this.error = \"\"));\n this.busy = false;\n this.success = this.error = \"\";\n });\n }\n\n payWithCard() {\n this.busy = true;\n this.stripeInstance\n ?.confirmCardPayment(this.stripeKey, {\n payment_method: {\n card: this.card,\n },\n })\n .then((result) => {\n this.busy = false;\n if (result.error) {\n // Show error to your customer\n this.error = result.error.message;\n } else {\n // The payment succeeded!\n this.success = result.paymentIntent?.id;\n this.$emit(\"success\");\n }\n });\n }\n\n close() {\n this.payDialog = false;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CPayDialog.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CPayDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CPayDialog.vue?vue&type=template&id=f9ff9148&\"\nimport script from \"./CPayDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./CPayDialog.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\ninstallComponents(component, {VAlert,VBtn,VDialog,VProgressLinear})\n","import { axios } from \"./axios\";\nimport { ValueText } from \"@/common/models/interfaces\";\nimport FileUtils from \"@/common/utils/fileUtils\";\n\nexport class TeamsApi {\n getAll({ teamCategory }: { teamCategory?: string }) {\n return axios.get(\"/teams/all\", { params: { teamCategory } });\n }\n\n getPrevious() {\n return axios.get(\"/teams/previous\");\n }\n\n get({ teamId }: { teamId: number }) {\n if (!teamId) {\n return Promise.resolve({ data: {} as Team });\n }\n return axios.get(`/teams/${teamId}`);\n }\n\n save({ team }: { team: Team }) {\n const formData = FileUtils.objectToFormData(team);\n if (!!team.id && team.id > -1) {\n return axios.put(\"/teams\", formData);\n } else {\n return axios.post(\"/teams\", formData);\n }\n }\n\n delete({ teamId }: { teamId?: number }) {\n return axios.delete(`/teams/${teamId}`);\n }\n\n getOptions() {\n return axios.get(\"/teams/options\");\n }\n}\n\nexport interface Team {\n id: number;\n name: string;\n alias: string;\n description: string;\n teamCategoryId: number;\n seasonStartYear: string;\n externalLeagueUri: string;\n imageUpload: Blob;\n coaches: string[];\n assistants: string[];\n managers: string[];\n contributors: string[];\n officials: Official[];\n mediaUri: string;\n isNonCompetitiveLeague: boolean;\n}\n\nexport interface TeamOptions {\n venues: ValueText[];\n officials: ValueText[];\n teamCategories: ValueText[];\n seasons: ValueText[];\n}\n\nexport interface Official {\n firstName: string;\n lastName: string;\n officialType: number;\n officialTypeString: string;\n imageUri: string;\n email: string;\n}\n"],"sourceRoot":""}