{"version":3,"sources":["webpack:///./src/components/shares/NewShareIssuanceForm.vue?4ab9","webpack:///./src/components/shares/NewShareIssuanceForm.vue","webpack:///./src/components/shares/NewShareIssuanceForm.vue?1944","webpack:///./src/components/shares/NewShareIssuanceForm.vue?dc73","webpack:///./src/components/menu-actions/MenuActions.vue?ec23","webpack:///./src/components/menu-actions/MenuActions.vue","webpack:///./src/components/menu-actions/MenuActions.vue?f6e3","webpack:///./src/components/menu-actions/MenuActions.vue?0554","webpack:///./src/components/menu-actions/index.ts","webpack:///./src/views/shares/ViewShareIssuance.vue?902a","webpack:///./src/views/shares/ViewShareIssuance.vue","webpack:///./src/views/shares/ViewShareIssuance.vue?2525","webpack:///./src/views/shares/ViewShareIssuance.vue?badd","webpack:///./src/views/shares/ViewShareIssuancesList.vue?84f5","webpack:///./src/views/shares/ViewShareIssuancesList.vue","webpack:///./src/views/shares/ViewShareIssuancesList.vue?0b11","webpack:///./src/views/shares/ViewShareIssuancesList.vue?7ee6","webpack:///./src/views/shares/ViewEditShareIssuance.vue?34e5","webpack:///./src/views/shares/ViewEditShareIssuance.vue","webpack:///./src/views/shares/ViewEditShareIssuance.vue?cf80","webpack:///./src/views/shares/ViewEditShareIssuance.vue?7eb9","webpack:///./src/components/ComplexConfirmDialog.vue?0b02","webpack:///./src/components/ComplexConfirmDialog.vue","webpack:///./src/components/ComplexConfirmDialog.vue?9b37","webpack:///./src/components/ComplexConfirmDialog.vue?45ac","webpack:///./src/components/DateField.vue?cae9","webpack:///./src/components/DateField.vue","webpack:///./src/components/DateField.vue?caea","webpack:///./src/components/DateField.vue?72bc","webpack:///./src/components/ConfirmDialog.vue?6ec9","webpack:///./src/components/ConfirmDialog.vue","webpack:///./src/components/ConfirmDialog.vue?1db7","webpack:///./src/components/ConfirmDialog.vue?9545","webpack:///./src/views/shares/CreateBatchShareIssuances.vue?05bc","webpack:///./src/components/shares/NewShareIssuanceDialog.vue?92b9","webpack:///./src/components/shares/NewShareIssuanceDialog.vue","webpack:///./src/components/shares/NewShareIssuanceDialog.vue?8efe","webpack:///./src/components/shares/NewShareIssuanceDialog.vue?f0fc","webpack:///./src/views/shares/CreateBatchShareIssuances.vue","webpack:///./src/views/shares/CreateBatchShareIssuances.vue?d3e0","webpack:///./src/views/shares/CreateBatchShareIssuances.vue?54d7","webpack:///./src/components/Section.vue?9348","webpack:///./src/components/Section.vue","webpack:///./src/components/Section.vue?5ffe","webpack:///./src/components/Section.vue?beaa","webpack:///./src/views/shares/CreateShareIssuance.vue?d1bd","webpack:///./src/views/shares/CreateShareIssuance.vue","webpack:///./src/views/shares/CreateShareIssuance.vue?adc0","webpack:///./src/views/shares/CreateShareIssuance.vue?0885"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","scopedSlots","_u","key","fn","ref","invalid","attrs","errors","loading","stakeHolders","$t","model","value","form","stakeholder","callback","$$v","$set","expression","on","$event","$router","push","path","_v","_s","selectedStakeholder","contact","firstName","lastName","email","phone","stakeHolderFullAddress","address","postCode","_e","_n","$n","companySharePercent","maximumFractionDigits","shareClasses","shareClass","totalInvestment","documents","slot","_g","_b","isFreeCompany","_t","staticRenderFns","extend","components","DateField","props","required","type","Object","data","computed","sharePriceNumber","sharesSizeNumber","parseFloat","sharePrice","sharesSize","state","current","shares","id","find","x","undefined","selectedShareClass","streetAddress","city","country","watch","deep","handler","$emit","name","mounted","fetchData","methods","currentId","isFree","Promise","all","entity","getAllShareClassesOfCompany","results","snackbar","toString","component","actions","_l","action","index","clickHandler","context","text","default","Array","inline","Boolean","toActionableItem","item","proxy","shareholder","getStatusText","sharesIssuance","status","$d","issueDate","count","grantPrice","totalPrice","params","shareholderFile","statusTextMap","pending","drafted","issued","MenuActions","Section","String","loadData","$can","headers","items","Grid","align","sortable","selectedStakeholderId","calculateTotalInvestment","shareClassId","issuanceDate","directorFile","shareHolderFile","createCertificate","go","saveAsDraft","onCommitClick","showDeleteDialog","onConfirmClick","showConfirmDialog","onDeleteConfirm","ComplexConfirmDialog","ConfirmDialog","filter","startOf","format","documentTypeFilter","newValue","loadShareIssuanceData","error","stakeholderId","utc","toDate","fetchList","si","toISOString","substr","f","File","mimeType","opened","message","randomCode","indexOf","_k","keyCode","confirm","code","cancel","isCodeCorrect","Math","floor","random","get","set","v","label","savedValue","menu","allowedDates","localValue","save","noPastDates","val","isBefore","n","o","staticStyle","JSON","stringify","uploading","getUploadingState","editItem","deleteItem","addItem","issuances","length","selectedItem","onNewShareIssuanceDialogCommit","showNewShareIssuanceDialog","formData","NewShareIssuanceForm","NewShareIssuanceDialog","selectdIssuanceIndex","uploadedItems","splice","issuance","console","debug","rowIndex","map","uploaded","total","directives","rawName","$route","title"],"mappings":"0GAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,YAAY,qBAAqB,CAACF,EAAG,sBAAsB,CAACG,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAC7N,IAAIC,EAAUD,EAAIC,QAClB,MAAO,CAACR,EAAG,cAAc,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACS,MAAM,CAAC,KAAO,OAAO,CAACT,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,sBAAsB,CAACS,MAAM,CAAC,MAAQ,WAAW,KAAO,IAAIN,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GACvN,IAAIG,EAASH,EAAIG,OACjB,MAAO,CAACV,EAAG,iBAAiB,CAACE,YAAY,YAAYO,MAAM,CAAC,QAAUb,EAAIe,QAAQ,MAAQf,EAAIgB,aAAa,YAAY,OAAO,aAAa,KAAK,MAAQhB,EAAIiB,GAAG,eAAe,iBAAiBH,GAAQI,MAAM,CAACC,MAAOnB,EAAIoB,KAAKC,YAAc,GAAEC,SAAS,SAAUC,GAAMvB,EAAIwB,KAAKxB,EAAIoB,KA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ErB,aAAc,EAAKqE,SAASrE,aAC5BnB,gBAAiB,EAAKwF,SAASxF,gBAC/BH,WAAYrD,WAAW,EAAKgJ,SAAS/I,YACrCgD,OAAQ,EAAK8B,YAAc,UAAY,UACvCF,kBAAmB,EAAKmE,SAASnE,kBACjCJ,aAAc,EAAKuE,SAASpK,WAAW0B,KAbzB,UAgBX,EAAKyE,YAhBM,gCAkBR,OAAekB,YAlBP,OAqBhB,EAAKzI,QAAQsH,IAAI,GArBD,qDAuBhB,EAAKwD,WAAY,EACjB,OAASzG,SAAS,EAAKhF,GAAG,uBAAuBiF,WAAY,SAxB7C,gECnFwY,I,YCO5ZC,EAAY,eACd,EACApG,EACAyD,GACA,EACA,KACA,KACA,MAIa,aAAA2C,E","file":"js/shares.63929d52.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pa-5 min-height-1\"},[_c('validation-observer',{scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('v-container',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"d-flex\"},[_c('validation-provider',{attrs:{\"rules\":\"required\",\"slim\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-autocomplete',{staticClass:\"flex-fill\",attrs:{\"loading\":_vm.loading,\"items\":_vm.stakeHolders,\"item-text\":\"name\",\"item-value\":\"id\",\"label\":_vm.$t('stakeholder'),\"error-messages\":errors},model:{value:(_vm.form.stakeholder.id),callback:function ($$v) {_vm.$set(_vm.form.stakeholder, \"id\", $$v)},expression:\"form.stakeholder.id\"}})]}}],null,true)}),_c('v-btn',{staticClass:\"ml-3 align-self-center\",attrs:{\"color\":\"primary\",\"depressed\":\"\",\"small\":\"\"},on:{\"click\":function($event){return _vm.$router.push({ path: '/create-stakeholder' })}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"addStakeholder\"))+\" \")])],1)])],1),(_vm.selectedStakeholder)?_c('v-row',[_c('v-col',[_c('v-alert',[_c('v-container',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"firstName\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.firstName)+\" \")])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"lastName\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.lastName)+\" \")])])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"email\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.email)+\" \")])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"phone\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.phone)+\" \")])])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"address\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(_vm._s(_vm.stakeHolderFullAddress))])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"postCode\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.address.postCode)+\" \")])])])],1)],1)],1)],1)],1):_vm._e(),_c('v-row',{staticClass:\"grey lighten-4\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{attrs:{\"rules\":\"required|numeric|min_value:1\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-text-field',{attrs:{\"label\":_vm.$t('shares'),\"error-messages\":errors},model:{value:(_vm.form.sharesSize),callback:function ($$v) {_vm.$set(_vm.form, \"sharesSize\", _vm._n($$v))},expression:\"form.sharesSize\"}})]}}],null,true)})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-4\"},[_c('div',{staticClass:\"text-caption grey--text text--darken-3\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"companySharePercent\"))+\" \")]),_c('div',{staticClass:\"grey-darken-1--text d-inline\"},[_vm._v(\" \"+_vm._s(_vm.$n(_vm.companySharePercent, { maximumFractionDigits : 2 }))+\"% \")])])])],1),_c('v-row',{staticClass:\"my-2\"},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('validation-provider',{attrs:{\"name\":\"shareClass\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-select',{attrs:{\"items\":_vm.shareClasses,\"loading\":_vm.loading,\"item-text\":\"name\",\"item-value\":\"id\",\"label\":_vm.$t('shareClass'),\"error-messages\":errors},model:{value:(_vm.form.shareClass.id),callback:function ($$v) {_vm.$set(_vm.form.shareClass, \"id\", $$v)},expression:\"form.shareClass.id\"}})]}}],null,true)})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('DateField',{attrs:{\"label\":_vm.$t('issuanceDate'),\"error-messages\":errors},model:{value:(_vm.form.issueDate),callback:function ($$v) {_vm.$set(_vm.form, \"issueDate\", $$v)},expression:\"form.issueDate\"}})]}}],null,true)})],1)],1),_c('v-row',{staticClass:\"grey lighten-4\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{attrs:{\"rules\":\"required|decimal_greater_than_zero|decimal\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-text-field',{attrs:{\"label\":_vm.$t('sharePrice'),\"error-messages\":errors},model:{value:(_vm.form.sharePrice),callback:function ($$v) {_vm.$set(_vm.form, \"sharePrice\", $$v)},expression:\"form.sharePrice\"}})]}}],null,true)})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-4\"},[_c('div',{staticClass:\"text-caption grey--text text--darken-3\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"Total Investment (€)\"))+\" \")]),_c('div',{staticClass:\"grey-darken-1--text d-inline\"},[_vm._v(\" \"+_vm._s(_vm.$n(_vm.totalInvestment, { maximumFractionDigits : 2 }))+\" \")])])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-autocomplete',{staticClass:\"flex-fill\",attrs:{\"items\":_vm.documents,\"loading\":_vm.loading,\"item-text\":\"name\",\"item-value\":\"id\",\"label\":_vm.$t('optionsModule.directorShareholderResolution'),\"truncate-length\":\"20\",\"error-messages\":errors},model:{value:(_vm.form.directorFile),callback:function ($$v) {_vm.$set(_vm.form, \"directorFile\", $$v)},expression:\"form.directorFile\"}},[_c('v-tooltip',{attrs:{\"slot\":\"prepend\",\"top\":\"\"},slot:\"prepend\",scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-icon',_vm._g(_vm._b({},'v-icon',attrs,false),on),[_vm._v(\" mdi-information-outline \")])]}}],null,true)},[_c('span',[_vm._v(_vm._s(_vm.$t(\"optionsModule.documentInstuctions\")))])])],1)]}}],null,true)})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',[_c('v-file-input',{attrs:{\"label\":_vm.$t('optionsModule.directorShareholderResolution'),\"truncate-length\":\"20\"},model:{value:(_vm.form.shareholderFile),callback:function ($$v) {_vm.$set(_vm.form, \"shareholderFile\", $$v)},expression:\"form.shareholderFile\"}})],1)],1)],1),(!_vm.isFreeCompany)?_c('v-col',{attrs:{\"cols\":\"12\"}}):_vm._e(),(!_vm.isFreeCompany)?_c('v-checkbox',{attrs:{\"label\":_vm.$t('optionsModule.createCertificate')},model:{value:(_vm.form.createCertificate),callback:function ($$v) {_vm.$set(_vm.form, \"createCertificate\", $$v)},expression:\"form.createCertificate\"}}):_vm._e(),_c('v-row',[_vm._t(\"actions\",null,null,{ invalid: invalid })],2)],1)]}}],null,true)})],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\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\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\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\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 Vue, { PropType } from \"vue\";\n\nimport { companiesStore } from \"@/service/companies/companies.store\";\nimport { appStore } from \"@/app.store\";\nimport DateField from \"@/components/DateField.vue\";\nimport {\n getStakeholdersOfCompany,\n StakeholderDto,\n} from \"@/service/stakeholders/stakeholders.service\";\nimport { shareClassesService } from \"@/service\";\nimport { DocumentDto } from \"@/service/documents/documents.service.dto\";\nimport { getDocumentsOf } from \"@/service/documents/documents.service\";\nimport { ShareIssuanceFormData } from \"./NewShareIssuanceDialog\";\nimport { cloneDeep } from \"lodash\";\nimport { ShareClassDto } from \"@/service/share-classes/share-classes.service.dto\";\n\nexport default Vue.extend({\n components: {\n DateField,\n },\n props: {\n value: {\n required: true,\n type: Object as PropType,\n },\n },\n data() {\n return {\n loading: false,\n stakeHolders: [] as Array,\n documents: [] as Array,\n shareClasses: [] as Array,\n isFreeCompany: true,\n form: cloneDeep(this.value)\n };\n },\n computed: {\n totalInvestment(): number {\n return this.sharePriceNumber * this.sharesSizeNumber;\n },\n sharePriceNumber(): number {\n return parseFloat(this.form.sharePrice) || 0;\n },\n sharesSizeNumber(): number {\n return parseFloat(this.form.sharesSize) || 0;\n },\n companySharePercent(): number {\n return ((this.sharesSizeNumber / (this.sharesSizeNumber + companiesStore.state.current!.shares)) * 100) || 0;\n },\n selectedStakeholder(): StakeholderDto | undefined{\n return !this.form.stakeholder.id ? undefined : this.stakeHolders.find(x => x.id == this.form.stakeholder.id);\n },\n selectedShareClass(): ShareClassDto | undefined{\n return !this.form.shareClass.id ? undefined : this.shareClasses.find(x => x.id == this.form.shareClass.id);\n },\n stakeHolderFullAddress(): string {\n return this.selectedStakeholder && this.selectedStakeholder.contact\n ? `${this.selectedStakeholder.contact.address.streetAddress}, ${this.selectedStakeholder.contact.address.city} ${this.selectedStakeholder.contact.address.state}, ${this.selectedStakeholder.contact.address.country}`\n : \"\";\n },\n },\n watch: {\n form: {\n deep: true,\n handler(value) {\n this.$emit(\"input\", cloneDeep(value));\n }\n },\n 'selectedStakeholder.name'() {\n this.form.stakeholder.name = this.selectedStakeholder?.name\n },\n 'selectedShareClass.name'() {\n this.form.shareClass.name = this.selectedShareClass?.name;\n }\n \n },\n async mounted() {\n this.fetchData();\n },\n methods: {\n async fetchData() {\n if (!companiesStore.state.currentId) return;\n\n this.loading = true;\n try {\n \n this.isFreeCompany = companiesStore.state.current!.isFree;\n\n var results = await Promise.all([\n getStakeholdersOfCompany(companiesStore.state.currentId, [\"contact\"]),\n getDocumentsOf({\n entity: \"company\",\n id: companiesStore.state.currentId,\n }),\n shareClassesService.getAllShareClassesOfCompany(\n companiesStore.state.currentId\n )\n ]);\n\n this.stakeHolders = results[0];\n this.documents = results[1];\n this.shareClasses = results[2]\n } catch (error) {\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n } finally {\n this.loading = false;\n }\n }\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!./NewShareIssuanceForm.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!./NewShareIssuanceForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NewShareIssuanceForm.vue?vue&type=template&id=fb776850&\"\nimport script from \"./NewShareIssuanceForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./NewShareIssuanceForm.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.actions.length)?_c('v-menu',{attrs:{\"offset-y\":\"\"},scopedSlots:_vm._u([(_vm.inline)?{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\",\"color\":\"grey darken-2\",\"dark\":\"\"}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-dots-horizontal\")])],1)]}}:{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"min-width-2\",attrs:{\"color\":\"secondary\",\"dark\":\"\",\"depressed\":\"\"}},'v-btn',attrs,false),on),[_vm._v(\" \"+_vm._s(_vm.$t(\"actions\"))+\" \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-chevron-down\")])],1)]}}],null,true)},[_c('v-list',_vm._l((_vm.actions),function(action,index){return _c('v-list-item',{key:index,on:{\"click\":function($event){return action.clickHandler(_vm.context)}}},[_c('v-list-item-title',[_vm._v(_vm._s(action.text))])],1)}),1)],1):_vm._e()],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\nimport Vue, { PropType } from \"vue\";\nimport { MenuAction } from \".\";\n\nexport default Vue.extend({\n props: {\n context: {\n required: false,\n type: Object,\n default: undefined,\n },\n actions: {\n required: true,\n type: Array as PropType>,\n },\n inline: {\n required: false,\n type: Boolean,\n default: false,\n },\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!./MenuActions.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!./MenuActions.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MenuActions.vue?vue&type=template&id=7fbceba8&\"\nimport script from \"./MenuActions.vue?vue&type=script&lang=ts&\"\nexport * from \"./MenuActions.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","export { default as MenuActions } from \"./MenuActions.vue\";\nexport interface MenuActionFor {\n text: string;\n clickHandler: (item: TItem) => void;\n}\n\nexport interface MenuAction {\n text: string;\n clickHandler: () => void;\n}\n\nexport type ActionableItem = TItem & { actions: Array> }\n\nexport function toActionableItem(item: TItem, actions: Array> = []): ActionableItem {\n return {\n ...item,\n actions: actions\n }\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Section',{attrs:{\"title\":_vm.$t('sharesIssuance')},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('div',{staticClass:\"text-right\"},[_c('MenuActions',{attrs:{\"actions\":_vm.actions}})],1)]},proxy:true}])},[(!_vm.loading)?[_c('v-row',[_c('v-col',[_c('v-container',[_c('v-row',{staticClass:\"grey lighten-4\"},[(_vm.shareholder)?_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"shareHolder\")))]),_c('router-link',{attrs:{\"to\":{ path: (\"/stakeholders/\" + (_vm.shareholder.id)) }}},[_vm._v(\" \"+_vm._s(_vm.shareholder.name)+\" \")])],1)]):_vm._e()],1)],1)],1)],1),_c('v-row',[_c('v-col',[_c('v-container',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"status\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(_vm._s(_vm.getStatusText(_vm.sharesIssuance.status)))])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"issuanceDate\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.$d(_vm.sharesIssuance.issueDate))+\" \")])])])],1),_c('v-row',{staticClass:\"grey lighten-4\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"shares\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.$n(_vm.sharesIssuance.count))+\" \")])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"sharePrice\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.$n(_vm.sharesIssuance.grantPrice, 'currency'))+\" \")])])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"TotalInvestment\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.$n(_vm.totalPrice, 'currency'))+\" \")])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"docType.sharesAgreement\")))]),(_vm.sharesIssuance.shareholderFile)?_c('router-link',{attrs:{\"to\":{ name: 'view-document', params: { id: _vm.sharesIssuance.shareholderFile.id } }}},[_vm._v(\" \"+_vm._s(_vm.sharesIssuance.shareholderFile.name)+\" \")]):_c('div',{staticClass:\"body-1\"},[_vm._v(\" - \")])],1)])],1)],1)],1)],1)]:_vm._e()],2)}\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\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 Vue from \"vue\";\nimport { MenuAction, MenuActions } from \"@/components/menu-actions\";\nimport Section from \"@/components/Section.vue\";\nimport { appStore } from \"@/app.store\";\nimport {\n getSharesIssuancesAnalysis,\n SharesIssuanceAnalysisDto,\n SharesIssuanceStatus,\n} from \"@/service/shares-issuances/shares-issuances.service\";\nimport { StakeholderDto } from \"@/service/stakeholders/stakeholders.service.dto\";\n\nconst statusTextMap: Record = {\n pending: \"pending\",\n drafted: \"draft\",\n issued: \"issued\",\n};\n\nexport default Vue.extend({\n components: {\n MenuActions,\n Section,\n },\n props: {\n id: {\n type: String,\n required: true,\n },\n },\n data: () => ({\n loading: true,\n actions: [] as Array,\n sharesIssuance: undefined! as SharesIssuanceAnalysisDto,\n shareholder: undefined as StakeholderDto | undefined,\n }),\n computed: {\n totalPrice(): number {\n return this.sharesIssuance.grantPrice * this.sharesIssuance.count;\n },\n },\n mounted() {\n this.loadData();\n },\n methods: {\n async loadData() {\n try {\n this.loading = true;\n this.sharesIssuance = await getSharesIssuancesAnalysis(this.id);\n this.shareholder = this.sharesIssuance.stakeholder;\n this.loading = false;\n } catch (error) {\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\n getStatusText(status: SharesIssuanceStatus): string {\n return this.$t(statusTextMap[status]).toString();\n },\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!./ViewShareIssuance.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!./ViewShareIssuance.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ViewShareIssuance.vue?vue&type=template&id=12e14e7f&\"\nimport script from \"./ViewShareIssuance.vue?vue&type=script&lang=ts&\"\nexport * from \"./ViewShareIssuance.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Section',{attrs:{\"title\":_vm.$t('sharesIssuances')},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('div',{staticClass:\"text-right\"},[_c('v-menu',{scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [(_vm.$can('create', 'Valuation'))?_c('v-btn',_vm._g(_vm._b({staticClass:\"min-width-2\",attrs:{\"color\":\"secondary\",\"depressed\":\"\",\"dark\":\"\"}},'v-btn',attrs,false),on),[_vm._v(\" \"+_vm._s(_vm.$t(\"shared.new\"))+\" \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-plus\")])],1):_vm._e()]}}])},[_c('v-list',[_c('v-list-item',{attrs:{\"link\":\"\"}},[_c('v-list-item-title',{on:{\"click\":function($event){return _vm.$router.push({ path: '/shares/create-shares-issuance' })}}},[_vm._v(_vm._s(_vm.$t(\"addOne\")))])],1),_c('v-list-item',{attrs:{\"link\":\"\"}},[_c('v-list-item-title',{on:{\"click\":function($event){return _vm.$router.push({ path: '/shares/create-batch-shares-issuance' })}}},[_vm._v(_vm._s(_vm.$t(\"addBatch\")))])],1)],1)],1)],1)]},proxy:true}])},[_c('v-row',[_c('v-col',[_c('div',{staticClass:\"d-flex justify-center mt-5\"},[_c('div',{staticClass:\"mx-5\"},[_c('span',{staticClass:\"ma-2 text-subtitle-1\"},[_vm._v(_vm._s(_vm.$t(\"sharesIssued\")))]),_c('span',{staticClass:\"text-h5\"},[_vm._v(_vm._s(_vm.$n(_vm.shares)))])]),_c('div',{staticClass:\"mx-5\"},[_c('span',{staticClass:\"ma-2 text-subtitle-1\"},[_vm._v(_vm._s(_vm.$t(\"sharePrice\")))]),_c('span',{staticClass:\"text-h5\"},[_vm._v(_vm._s(_vm.$n(_vm.sharePrice, \"currency\")))])])])])],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('Grid',{attrs:{\"headers\":_vm.headers,\"items\":_vm.items,\"loading\":_vm.loading,\"search\":\"\"},scopedSlots:_vm._u([{key:\"item.stakeholder.name\",fn:function(ref){\nvar item = ref.item;\nreturn [(!item.stakeholder)?_c('span',[_vm._v(_vm._s(_vm.$t('notSelected')))]):(item.status == 'drafted')?_c('router-link',{attrs:{\"to\":{\n name: 'edit-shares-issuance',\n params: { id: item.id },\n }}},[_vm._v(\" \"+_vm._s(item.stakeholder.name)+\" \")]):_c('router-link',{attrs:{\"to\":{\n name: 'view-shares-issuance',\n params: { id: item.id },\n }}},[_vm._v(\" \"+_vm._s(item.stakeholder.name)+\" \")])]}},{key:\"item.count\",fn:function(ref){\n var item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm.$n(item.count))+\" \")]}},{key:\"item.grantPrice\",fn:function(ref){\n var item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm.$n(item.grantPrice, \"currency\"))+\" \")]}},{key:\"item.issueDate\",fn:function(ref){\n var item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm.$d(item.issueDate))+\" \")]}},{key:\"item.status\",fn:function(ref){\n var item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm.getStatusText(item.status))+\" \")]}}])})],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\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 Vue from \"vue\";\nimport { companiesStore } from \"@/service/companies/companies.store\";\nimport { appStore } from \"@/app.store\";\nimport {\n getSharesIssuancesAnalysisOfCompany,\n SharesIssuanceDto,\n SharesIssuanceStatus,\n} from \"@/service/shares-issuances/shares-issuances.service\";\nimport Section from \"@/components/Section.vue\";\nimport Grid from \"@/components/grid/Grid.vue\";\n\nconst statusTextMap: Record = {\n drafted: \"draft\",\n pending: \"pending\",\n issued: \"issued\",\n};\n\nexport default Vue.extend({\n components: {\n Section,\n Grid,\n },\n data() {\n return {\n loading: false,\n sharePrice: companiesStore.state.current?.sharePrice ?? 0,\n shares: companiesStore.state.current?.shares ?? 0,\n items: [] as Array,\n headers: [\n {\n text: this.$t(\"shareHolder\").toString(),\n align: \"start\",\n sortable: false,\n value: \"stakeholder.name\",\n },\n {\n text: this.$t(\"shares\").toString(),\n align: \"start\",\n sortable: false,\n value: \"count\",\n },\n {\n text: this.$t(\"grantPrice\").toString(),\n align: \"start\",\n sortable: false,\n value: \"grantPrice\",\n },\n {\n text: this.$t(\"issueDate\").toString(),\n align: \"start\",\n sortable: false,\n value: \"issueDate\",\n },\n {\n text: this.$t(\"status\").toString(),\n align: \"start\",\n sortable: false,\n value: \"status\",\n },\n ],\n };\n },\n async mounted() {\n if (!companiesStore.state.currentId || !companiesStore.state.current)\n return;\n\n try {\n this.loading = true;\n this.items = await getSharesIssuancesAnalysisOfCompany(\n companiesStore.state.current.id\n );\n this.loading = false;\n } catch (error) {\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\n methods: {\n getStatusText(status: SharesIssuanceStatus): string {\n return this.$t(statusTextMap[status]).toString();\n },\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!./ViewShareIssuancesList.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!./ViewShareIssuancesList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ViewShareIssuancesList.vue?vue&type=template&id=f0c4e20e&\"\nimport script from \"./ViewShareIssuancesList.vue?vue&type=script&lang=ts&\"\nexport * from \"./ViewShareIssuancesList.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pa-5 min-height-1\"},[_c('validation-observer',{scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('v-row',[_c('v-col'),_c('v-col',{attrs:{\"md\":\"4\"}},[_c('h2',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.$t(\"newSharesIssuance\")))])]),_c('v-col')],1),_c('v-container',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"d-flex\"},[_c('validation-provider',{attrs:{\"rules\":\"required\",\"slim\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-autocomplete',{staticClass:\"flex-fill\",attrs:{\"items\":_vm.stakeHolders,\"loading\":_vm.loading,\"item-text\":\"name\",\"item-value\":\"id\",\"label\":_vm.$t('stakeholder'),\"error-messages\":errors},model:{value:(_vm.selectedStakeholderId),callback:function ($$v) {_vm.selectedStakeholderId=$$v},expression:\"selectedStakeholderId\"}})]}}],null,true)}),_c('v-btn',{staticClass:\"ml-3 align-self-center\",attrs:{\"color\":\"primary\",\"depressed\":\"\",\"small\":\"\"},on:{\"click\":function($event){return _vm.$router.push({ path: '/create-stakeholder' })}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"addStakeholder\"))+\" \")])],1)])],1),(_vm.selectedStakeholder)?_c('v-row',[_c('v-col',[_c('v-alert',[_c('v-container',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"firstName\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.firstName)+\" \")])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"lastName\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.lastName)+\" \")])])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"email\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.email)+\" \")])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"phone\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.phone)+\" \")])])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"address\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(_vm._s(_vm.stakeHolderFullAddress))])])]),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.$t(\"postCode\")))]),_c('div',{staticClass:\"body-1\"},[_vm._v(\" \"+_vm._s(_vm.selectedStakeholder.contact.address.postCode)+\" \")])])])],1)],1)],1)],1)],1):_vm._e(),_c('v-row',{staticClass:\"grey lighten-4\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{attrs:{\"rules\":\"required|numeric|min_value:1\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-text-field',{attrs:{\"label\":_vm.$t('shares'),\"error-messages\":errors},on:{\"change\":function($event){return _vm.calculateTotalInvestment()}},model:{value:(_vm.sharesSize),callback:function ($$v) {_vm.sharesSize=_vm._n($$v)},expression:\"sharesSize\"}})]}}],null,true)})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-4\"},[_c('div',{staticClass:\"text-caption grey--text text--darken-3\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"companySharePercent\"))+\" \")]),_c('div',{staticClass:\"grey-darken-1--text d-inline\"},[_vm._v(\" \"+_vm._s(_vm.$n(_vm.companySharePercent, { maximumFractionDigits : 2 }))+\"% \")])])])],1),_c('v-row',{staticClass:\"my-2\"},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('validation-provider',{attrs:{\"name\":\"shareClass\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-select',{attrs:{\"items\":_vm.shareClasses,\"loading\":_vm.loading,\"item-text\":\"name\",\"item-value\":\"id\",\"label\":_vm.$t('shareClass'),\"error-messages\":errors},model:{value:(_vm.shareClassId),callback:function ($$v) {_vm.shareClassId=$$v},expression:\"shareClassId\"}})]}}],null,true)})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('DateField',{attrs:{\"label\":_vm.$t('issuanceDate'),\"error-messages\":errors,\"no-past-dates\":\"\"},model:{value:(_vm.issuanceDate),callback:function ($$v) {_vm.issuanceDate=$$v},expression:\"issuanceDate\"}})]}}],null,true)})],1)],1),_c('v-row',{staticClass:\"grey lighten-4\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{attrs:{\"rules\":\"required|decimal_greater_than_zero|decimal\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-text-field',{attrs:{\"label\":_vm.$t('sharePrice'),\"error-messages\":errors},on:{\"change\":function($event){return _vm.calculateTotalInvestment()}},model:{value:(_vm.sharePrice),callback:function ($$v) {_vm.sharePrice=$$v},expression:\"sharePrice\"}})]}}],null,true)})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',{staticClass:\"mb-4\"},[_c('div',{staticClass:\"text-caption grey--text text--darken-3\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"Total Investment (€)\"))+\" \")]),_c('div',{staticClass:\"grey-darken-1--text d-inline\"},[_vm._v(\" \"+_vm._s(_vm.$n(_vm.totalInvestment, { maximumFractionDigits : 2 }))+\" \")])])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',{scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-autocomplete',{staticClass:\"flex-fill\",attrs:{\"items\":_vm.documents,\"loading\":_vm.loading,\"item-text\":\"name\",\"item-value\":\"id\",\"label\":_vm.$t('optionsModule.directorShareholderResolution'),\"truncate-length\":\"20\",\"error-messages\":errors},model:{value:(_vm.directorFile),callback:function ($$v) {_vm.directorFile=$$v},expression:\"directorFile\"}},[_c('v-tooltip',{attrs:{\"slot\":\"prepend\",\"top\":\"\"},slot:\"prepend\",scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-icon',_vm._g(_vm._b({},'v-icon',attrs,false),on),[_vm._v(\" mdi-information-outline \")])]}}],null,true)},[_c('span',[_vm._v(_vm._s(_vm.$t(\"optionsModule.documentInstuctions\")))])])],1)]}}],null,true)})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('validation-provider',[_c('v-file-input',{attrs:{\"label\":_vm.$t('optionsModule.directorShareholderResolution'),\"truncate-length\":\"20\"},model:{value:(_vm.shareHolderFile),callback:function ($$v) {_vm.shareHolderFile=$$v},expression:\"shareHolderFile\"}})],1)],1)],1),(!_vm.isFreeCompany)?_c('v-col',{attrs:{\"cols\":\"12\"}}):_vm._e(),(!_vm.isFreeCompany)?_c('v-checkbox',{attrs:{\"label\":_vm.$t('optionsModule.createCertificate')},model:{value:(_vm.createCertificate),callback:function ($$v) {_vm.createCertificate=$$v},expression:\"createCertificate\"}}):_vm._e(),_c('v-row',[_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"shared.cancel\"))+\" \")]),_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"color\":\"secondary\",\"depressed\":\"\",\"disabled\":invalid && !_vm.saveAsDraft,\"loading\":_vm.loading},on:{\"click\":_vm.onCommitClick}},[_vm._v(\" \"+_vm._s(_vm.$t(\"submit\"))+\" \")]),_c('v-checkbox',{attrs:{\"label\":_vm.$t('saveAsDraft')},model:{value:(_vm.saveAsDraft),callback:function ($$v) {_vm.saveAsDraft=$$v},expression:\"saveAsDraft\"}}),_c('v-spacer'),_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"color\":\"red\",\"outlined\":\"\"},on:{\"click\":function($event){_vm.showDeleteDialog = true}}},[_c('v-icon',{attrs:{\"dark\":\"\",\"left\":\"\"}},[_vm._v(\" mdi-delete \")]),_vm._v(\" \"+_vm._s(_vm.$t(\"shared.delete\"))+\" \")],1)],1)],1)]}}])}),_c('ComplexConfirmDialog',{attrs:{\"message\":_vm.$t('confirmShareIssuanceMessage')},on:{\"confirm\":_vm.onConfirmClick},model:{value:(_vm.showConfirmDialog),callback:function ($$v) {_vm.showConfirmDialog=$$v},expression:\"showConfirmDialog\"}}),_c('ConfirmDialog',{attrs:{\"message\":_vm.$t('confirmSharesIssuanceDeleteMessage')},on:{\"confirm\":_vm.onDeleteConfirm},model:{value:(_vm.showDeleteDialog),callback:function ($$v) {_vm.showDeleteDialog=$$v},expression:\"showDeleteDialog\"}})],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\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\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\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\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue, { PropType } from \"vue\";\n\nimport { companiesStore } from \"@/service/companies/companies.store\";\nimport { appStore } from \"@/app.store\";\nimport DateField from \"@/components/DateField.vue\";\nimport {\n getStakeholder,\n getStakeholdersOfCompany,\n StakeholderDto,\n} from \"@/service/stakeholders/stakeholders.service\";\nimport {\n updateSharesIssuance,\n getSharesIssuanceDraft,\n deleteSharesIssuance,\n} from \"@/service/shares-issuances/shares-issuances.service\";\nimport ComplexConfirmDialog from \"@/components/ComplexConfirmDialog.vue\";\nimport ConfirmDialog from \"@/components/ConfirmDialog.vue\";\nimport dayjs from \"dayjs\";\nimport { shareClassesService } from \"@/service\";\nimport { DocumentDto } from \"@/service/documents/documents.service.dto\";\nimport { Filter, getDocumentsOf } from \"@/service/documents/documents.service\";\n\nexport default Vue.extend({\n components: {\n DateField,\n ComplexConfirmDialog,\n ConfirmDialog\n },\n props: {\n id: {\n type: String,\n required: true\n },\n filter: {\n type: Object as PropType,\n required: false,\n default: undefined,\n }\n },\n data() {\n return {\n loading: false,\n stakeHolders: [] as Array,\n documents: [] as Array,\n selectedStakeholderId: \"\" as string | undefined,\n selectedStakeholder: null as StakeholderDto | null,\n sharesSize: undefined as number | undefined,\n sharePrice: \"\",\n issuanceDate: dayjs().startOf('day').format('YYYY-MM-DD'),\n directorFile: undefined as string | undefined,\n shareHolderFile: undefined as File | undefined,\n saveAsDraft: !!this.id,\n showConfirmDialog: false,\n showDeleteDialog: false,\n shareClasses: [] as Array,\n shareClassId: \"\",\n documentTypeFilter: \"\" as DocumentType | \"\",\n createCertificate: false,\n isFreeCompany: true,\n totalInvestment: 0\n };\n },\n computed: {\n companySharePercent(): number {\n return ((this.sharesSize! /( this.sharesSize! + companiesStore.state.current!.shares)) * 100) || 0;\n },\n stakeHolderFullAddress(): string {\n return this.selectedStakeholder && this.selectedStakeholder.contact\n ? `${this.selectedStakeholder.contact.address.streetAddress}, ${this.selectedStakeholder.contact.address.city} ${this.selectedStakeholder.contact.address.state}, ${this.selectedStakeholder.contact.address.country}`\n : \"\";\n },\n },\n watch: {\n async selectedStakeholderId(newValue) {\n if (newValue) this.selectedStakeholder = await getStakeholder(newValue);\n },\n },\n async mounted() {\n if (!companiesStore.state.currentId) return;\n\n try {\n this.loading = true;\n this.fetchData();\n \n var results = await Promise.all([\n getStakeholdersOfCompany(companiesStore.state.currentId, [\"contact\"]),\n this.loadShareIssuanceData(),\n getDocumentsOf(this.filter || {\n entity: \"company\",\n id: companiesStore.state.currentId,\n },\n this.documentTypeFilter == \"\" ? undefined : this.documentTypeFilter\n ),\n shareClassesService.getAllShareClassesOfCompany(companiesStore.state.currentId)\n ]);\n\n this.stakeHolders = results[0];\n this.documents = results[2];\n this.shareClasses =results[3];\n \n this.loading = false;\n } catch (error) {\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\n methods: {\n async fetchData() {\n if (!companiesStore.state.currentId) return;\n\n try {\n if(companiesStore.state.current)\n this.isFreeCompany = companiesStore.state.current.isFree;\n \n } catch (error) {\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\n async onCommitClick() {\n if (this.saveAsDraft) this.onConfirmClick();\n else this.showConfirmDialog = true;\n },\n async onConfirmClick() {\n try {\n this.loading = true;\n \n await updateSharesIssuance({\n id: this.id,\n stakeholderId: this.selectedStakeholderId,\n sharesSize: this.sharesSize,\n issueDate: dayjs.utc(this.issuanceDate, 'YYYY-MM-DD').startOf('day').toDate(),\n directorFile: this.directorFile,\n shareholderFile: this.shareHolderFile,\n grantPrice: parseFloat(this.sharePrice),\n status: this.saveAsDraft ? \"drafted\" : \"pending\",\n });\n\n if (!this.saveAsDraft) {\n // invalidate current company's shares count\n await companiesStore.fetchList();\n }\n\n this.$router.go(-1);\n } catch (error) {\n this.loading = false;\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\n async loadShareIssuanceData() {\n try {\n const si = await getSharesIssuanceDraft(this.id);\n\n this.selectedStakeholderId = si.stakeholder?.id;\n this.sharesSize = si.count;\n this.sharePrice = si.grantPrice?.toString() ?? '';\n this.issuanceDate = si.issueDate.toISOString().substr(0, 10);\n if (si.shareholderFile) {\n const f = new File([\"\"], si.shareholderFile.name, {\n type: si.shareholderFile.mimeType,\n });\n this.shareHolderFile = f;\n }\n } catch (error) {\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\n async onDeleteConfirm() {\n if (!this.id) return;\n\n try {\n this.loading = true;\n await deleteSharesIssuance(this.id);\n appStore.snackbar(\n this.$t(\"shared.successfulExecution\").toString(),\n \"success\"\n );\n this.loading = false;\n this.$router.go(-1);\n } catch (error) {\n this.loading = false;\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\n async calculateTotalInvestment(){\n if(this.sharesSize && this.sharePrice){\n this.totalInvestment = this.sharesSize*parseFloat(this.sharePrice);\n }\n },\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!./ViewEditShareIssuance.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!./ViewEditShareIssuance.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ViewEditShareIssuance.vue?vue&type=template&id=51a12461&\"\nimport script from \"./ViewEditShareIssuance.vue?vue&type=script&lang=ts&\"\nexport * from \"./ViewEditShareIssuance.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"max-width\":\"400\"},model:{value:(_vm.opened),callback:function ($$v) {_vm.opened=$$v},expression:\"opened\"}},[_c('v-card',[_c('div',{staticClass:\"pa-5 text-h6\"},[_c('v-icon',{attrs:{\"color\":\"yellow darken-2\"}},[_vm._v(\" mdi-alert \")]),_vm._v(\" \"+_vm._s(_vm.message)+\" \")],1),_c('div',{staticClass:\"pa-6 pt-0\"},[_c('div',{staticClass:\"text-center text-h5 mt-2\"},[_vm._v(_vm._s(_vm.randomCode))]),_c('v-text-field',{attrs:{\"type\":\"number\",\"label\":_vm.$t('typeConfirmCodePrompt')},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.confirm($event)}},model:{value:(_vm.code),callback:function ($$v) {_vm.code=$$v},expression:\"code\"}})],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"outlined\":\"\",\"text\":\"\"},on:{\"click\":_vm.cancel}},[_vm._v(\" \"+_vm._s(_vm.$t(\"cancel\"))+\" \")]),_c('v-btn',{attrs:{\"color\":\"secondary\",\"depressed\":\"\",\"disabled\":!_vm.isCodeCorrect},on:{\"click\":_vm.confirm}},[_vm._v(\" \"+_vm._s(_vm.$t(\"ok\"))+\" \")])],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\nimport Vue from \"vue\";\n\nexport default Vue.extend({\n props: {\n value: {\n required: true,\n type: Boolean,\n },\n message: {\n required: true,\n type: String,\n },\n },\n data() {\n return {\n code: \"\",\n randomCode: Math.floor(Math.random() * 8999 + 1000).toString(),\n };\n },\n computed: {\n opened: {\n get(): boolean {\n return this.value;\n },\n set(v: boolean): void {\n this.$emit(\"input\", v);\n },\n },\n isCodeCorrect(): boolean {\n return this.code == this.randomCode;\n },\n },\n methods: {\n confirm() {\n this.$emit(\"confirm\");\n this.opened = false;\n },\n cancel() {\n this.$emit(\"cancel\");\n this.opened = false;\n },\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!./ComplexConfirmDialog.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!./ComplexConfirmDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ComplexConfirmDialog.vue?vue&type=template&id=1abd6f12&\"\nimport script from \"./ComplexConfirmDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./ComplexConfirmDialog.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-menu',{attrs:{\"close-on-content-click\":false,\"transition\":\"scale-transition\",\"offset-y\":\"\",\"min-width\":\"auto\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-text-field',_vm._g(_vm._b({attrs:{\"append-icon\":\"mdi-calendar\",\"readonly\":\"\",\"label\":_vm.label},model:{value:(_vm.savedValue),callback:function ($$v) {_vm.savedValue=$$v},expression:\"savedValue\"}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.menu),callback:function ($$v) {_vm.menu=$$v},expression:\"menu\"}},[_c('v-date-picker',{attrs:{\"no-title\":\"\",\"scrollable\":\"\",\"allowed-dates\":_vm.allowedDates,\"show-current\":false},model:{value:(_vm.localValue),callback:function ($$v) {_vm.localValue=$$v},expression:\"localValue\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){_vm.menu = false}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"cancel\"))+\" \")]),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.save()}}},[_vm._v(_vm._s(_vm.$t(\"ok\")))])],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\nimport Vue from \"vue\";\nimport dayjs from \"dayjs\";\n\nexport default Vue.extend({\n props: {\n label: {\n required: false,\n type: String,\n default: () => \"\"\n },\n value: {\n required: true,\n type: String,\n },\n noPastDates: {\n required: false,\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n menu: false,\n localValue: this.value,\n savedValue: this.value\n };\n },\n computed: {\n allowedDates(): (val: string) => boolean {\n return this.noPastDates ? (val) => {\n return dayjs().isBefore(val, 'day');\n } : () => true\n }\n },\n watch: {\n value(n, o) {\n this.localValue = n;\n this.savedValue = n;\n },\n },\n methods: {\n save() {\n this.savedValue = this.localValue;\n this.$emit(\"input\", this.localValue);\n this.menu = false;\n },\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!./DateField.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!./DateField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DateField.vue?vue&type=template&id=20ae6c6d&\"\nimport script from \"./DateField.vue?vue&type=script&lang=ts&\"\nexport * from \"./DateField.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"max-width\":\"400\"},model:{value:(_vm.opened),callback:function ($$v) {_vm.opened=$$v},expression:\"opened\"}},[_c('v-card',[_c('div',{staticClass:\"pa-5 text-h6\"},[_c('v-icon',{attrs:{\"color\":\"yellow darken-2\",\"left\":\"\"}},[_vm._v(\" mdi-alert \")]),_vm._v(\" \"+_vm._s(_vm.$t('confirmation'))+\" \"),_c('div',{staticClass:\"mt-5\"},[_vm._v(\" \"+_vm._s(_vm.message)+\" \")])],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.cancel}},[_vm._v(\" \"+_vm._s(_vm.$t(\"cancel\"))+\" \")]),_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":_vm.confirm}},[_vm._v(\" \"+_vm._s(_vm.$t(\"ok\"))+\" \")])],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\nimport Vue from \"vue\";\n\nexport default Vue.extend({\n props: {\n value: {\n required: true,\n type: Boolean,\n },\n message: {\n required: true,\n type: String,\n },\n },\n computed: {\n opened: {\n get(): boolean {\n return this.value;\n },\n set(v: boolean): void {\n this.$emit(\"input\", v);\n },\n },\n },\n methods: {\n confirm() {\n this.$emit(\"confirm\");\n this.opened = false;\n },\n cancel() {\n this.$emit(\"cancel\");\n this.opened = false;\n },\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!./ConfirmDialog.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!./ConfirmDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ConfirmDialog.vue?vue&type=template&id=13a0947a&\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./ConfirmDialog.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pa-5 min-height-1\"},[_c('validation-observer',{scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('v-row',{staticClass:\"py-3\",attrs:{\"justify\":\"center\"}},[_c('h2',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.$t(\"newBatchSharesIssuance\")))])]),_c('v-container',{staticStyle:{\"min-height\":\"80vh\"}},[_c('v-row',[_c('v-col',[_c('v-simple-table',{scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(_vm._s(_vm.$t(\"name\")))]),_c('th',{staticClass:\"text-left\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"shares\"))+\" \")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"shareClass\"))+\" \")]),_c('th')])]),_c('tbody',[_vm._l((_vm.issuances),function(item,index){return _c('tr',{key:JSON.stringify(item)},[_c('td',[_vm._v(_vm._s(item.stakeholder.name))]),_c('td',[_vm._v(_vm._s(_vm.$n(parseFloat(item.sharesSize))))]),_c('td',[_vm._v(\" \"+_vm._s(item.shareClass.name)+\" \")]),_c('td',{staticClass:\"text-right\"},[(!_vm.uploading)?[_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.editItem(index)}}},[_c('v-icon',{attrs:{\"dark\":\"\"}},[_vm._v(\" mdi-pencil \")])],1),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"error\"},on:{\"click\":function($event){return _vm.deleteItem(index)}}},[_c('v-icon',{attrs:{\"dark\":\"\"}},[_vm._v(\" mdi-close \")])],1)]:(_vm.getUploadingState(index) == 'pending')?[_c('v-progress-circular',{attrs:{\"value\":0,\"color\":\"primary\"}})]:(_vm.getUploadingState(index) == 'uploading')?[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})]:(_vm.getUploadingState(index) == 'done')?[_c('v-icon',{staticClass:\"px-1\",attrs:{\"color\":\"green\"}},[_vm._v(\"mdi-check-circle\")])]:_vm._e()],2)])}),_c('tr',[_c('td',{staticClass:\"text-center\",attrs:{\"colspan\":\"4\"}},[(_vm.$can('create', 'Valuation'))?_c('v-btn',{staticClass:\"min-width-3 my-2\",attrs:{\"color\":\"secondary\",\"outlined\":\"\",\"disabled\":_vm.uploading,\"text\":\"\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.addItem()}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"shared.add\"))+\" \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-plus\")])],1):_vm._e()],1)])],2)]},proxy:true}],null,true)})],1)],1),_c('v-row',{staticClass:\"mt-15\"},[_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"outlined\":\"\",\"disabled\":_vm.uploading},on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"shared.cancel\"))+\" \")]),_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"color\":\"secondary\",\"depressed\":\"\",\"disabled\":invalid || _vm.uploading || _vm.issuances.length == 0},on:{\"click\":_vm.onCommitClick}},[_vm._v(\" \"+_vm._s(_vm.$t(\"submit\"))+\" \")])],1)],1)]}}])}),(_vm.showNewShareIssuanceDialog)?_c('NewShareIssuanceDialog',{attrs:{\"form-data\":_vm.selectedItem},on:{\"confirm\":_vm.onNewShareIssuanceDialogCommit},model:{value:(_vm.showNewShareIssuanceDialog),callback:function ($$v) {_vm.showNewShareIssuanceDialog=$$v},expression:\"showNewShareIssuanceDialog\"}}):_vm._e(),_c('ComplexConfirmDialog',{attrs:{\"message\":_vm.$t('confirmShareIssuanceMessage')},on:{\"confirm\":_vm.onConfirmClick},model:{value:(_vm.showConfirmDialog),callback:function ($$v) {_vm.showConfirmDialog=$$v},expression:\"showConfirmDialog\"}}),_c('ConfirmDialog',{attrs:{\"message\":_vm.$t('confirmSharesIssuanceRowDeleteMessage')},on:{\"confirm\":_vm.onDeleteConfirm},model:{value:(_vm.showDeleteDialog),callback:function ($$v) {_vm.showDeleteDialog=$$v},expression:\"showDeleteDialog\"}})],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-dialog',{attrs:{\"max-width\":\"1200\"},model:{value:(_vm.opened),callback:function ($$v) {_vm.opened=$$v},expression:\"opened\"}},[_c('v-card',[_c('v-container',{staticClass:\"pa-5 min-height-1\"},[_c('v-row',[_c('v-col'),_c('v-col',{attrs:{\"md\":\"4\"}},[_c('h2',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.$t(\"newSharesIssuance\")))])]),_c('v-col')],1),_c('NewShareIssuanceForm',{scopedSlots:_vm._u([{key:\"actions\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){_vm.opened=false}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"shared.cancel\"))+\" \")]),_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"color\":\"secondary\",\"depressed\":\"\",\"disabled\":invalid},on:{\"click\":_vm.onCommitClick}},[_vm._v(\" \"+_vm._s(_vm.$t(\"ok\"))+\" \")]),_c('v-spacer')]}}]),model:{value:(_vm.formData),callback:function ($$v) {_vm.formData=$$v},expression:\"formData\"}})],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\nimport Vue from \"vue\";\nimport dayjs from \"dayjs\";\nimport { shareClassesService } from \"@/service\";\nimport { ShareIssuanceFormData } from \"./NewShareIssuanceDialog\";\nimport NewShareIssuanceForm from './NewShareIssuanceForm.vue';\n\nexport default Vue.extend({\n components: {\n NewShareIssuanceForm\n },\n props: {\n value: {\n required: true,\n type: Boolean,\n }\n },\n data() {\n return {\n loading: false,\n shareClasses: [] as Array,\n isFreeCompany: true,\n formData : {\n stakeholder: { \n id: \"\",\n name: \"\"\n },\n sharesSize: \"\",\n sharePrice: \"\",\n shareClass: {\n id: '',\n name: ''\n },\n issueDate: dayjs().startOf('day').format('YYYY-MM-DD'),\n directorFile: undefined as string | undefined,\n shareHolderFile: undefined as File | undefined,\n createCertificate: false,\n } as ShareIssuanceFormData\n };\n },\n computed: {\n opened: {\n get(): boolean {\n return this.value;\n },\n set(v: boolean): void {\n this.$emit(\"input\", v);\n },\n },\n },\n methods: {\n confirm() {\n this.$emit(\"confirm\");\n this.opened = false;\n },\n cancel() {\n this.$emit(\"cancel\");\n this.opened = false;\n },\n async onCommitClick() {\n \n this.$emit('confirm', this.formData);\n\n this.opened = false;\n },\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!./NewShareIssuanceDialog.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!./NewShareIssuanceDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NewShareIssuanceDialog.vue?vue&type=template&id=7fcbdca6&\"\nimport script from \"./NewShareIssuanceDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./NewShareIssuanceDialog.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\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\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 Vue from \"vue\";\n\nimport { companiesStore } from \"@/service/companies/companies.store\";\nimport { appStore } from \"@/app.store\";\nimport ComplexConfirmDialog from \"@/components/ComplexConfirmDialog.vue\";\nimport NewShareIssuanceDialog from \"@/components/shares/NewShareIssuanceDialog.vue\";\nimport {ShareIssuanceFormData} from \"@/components/shares/NewShareIssuanceDialog\";\nimport ConfirmDialog from \"@/components/ConfirmDialog.vue\";\nimport dayjs from \"dayjs\";\nimport { createBatchSharesIssuance } from \"@/service/shares-issuances/shares-issuances.service\";\n\nexport default Vue.extend({\n components: {\n ComplexConfirmDialog,\n NewShareIssuanceDialog,\n ConfirmDialog\n },\n data() {\n return {\n uploading: false,\n showConfirmDialog: false,\n showDeleteDialog: false,\n showNewShareIssuanceDialog: false,\n issuances: [] as Array,\n selectdIssuanceIndex: -1,\n uploadedItems: 0\n };\n },\n computed: {\n selectedItem(): ShareIssuanceFormData | undefined {\n return this.selectdIssuanceIndex == -1 ? undefined : this.issuances[this.selectdIssuanceIndex];\n }\n },\n methods: {\n addItem() {\n this.selectdIssuanceIndex = -1;\n this.showNewShareIssuanceDialog = true;\n },\n editItem(index: number) {\n this.selectdIssuanceIndex = index;\n this.showNewShareIssuanceDialog = true;\n },\n deleteItem(index: number) {\n this.selectdIssuanceIndex = index;\n this.showDeleteDialog = true;\n },\n onDeleteConfirm() {\n\n this.issuances.splice(this.selectdIssuanceIndex, 1);\n },\n onNewShareIssuanceDialogCommit(issuance: ShareIssuanceFormData) {\n console.debug('issuance', issuance);\n if (this.selectdIssuanceIndex == -1) {\n this.issuances.push(issuance);\n }\n else {\n Vue.set(this.issuances, this.selectdIssuanceIndex, issuance);\n }\n },\n async onCommitClick() {\n this.showConfirmDialog = true;\n },\n getUploadingState(rowIndex: number) : 'pending' | 'uploading' | 'done' {\n if (rowIndex > this.uploadedItems)\n return 'pending';\n if (rowIndex == this.uploadedItems) \n return 'uploading';\n \n return 'done';\n },\n async onConfirmClick() {\n try {\n this.uploading = true;\n this.uploadedItems = 0;\n await createBatchSharesIssuance(this.issuances.map( x=> ({\n stakeholderId: x.stakeholder.id!,\n sharesSize: parseFloat(x.sharesSize),\n issueDate: dayjs.utc(x.issueDate, 'YYYY-MM-DD').startOf('day').toDate(),\n directorFile: x.directorFile,\n shareholderFile: x.shareholderFile,\n grantPrice: parseFloat(x.sharePrice),\n status: \"pending\",\n createCertificate: x.createCertificate,\n shareClassId: x.shareClass.id!\n })), (uploaded, total) => {\n this.uploadedItems = uploaded;\n });\n\n \n // invalidate current company's shares count\n await companiesStore.fetchList();\n \n\n this.$router.go(-1);\n } catch (error) {\n this.uploading = false;\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\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!./CreateBatchShareIssuances.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!./CreateBatchShareIssuances.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreateBatchShareIssuances.vue?vue&type=template&id=60bb5821&\"\nimport script from \"./CreateBatchShareIssuances.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreateBatchShareIssuances.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pa-5\"},[_c('v-row',[_c('v-col',[_c('div',{staticClass:\"d-flex align-center\"},[_c('v-btn',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.$route.path != '/options'),expression:\"$route.path != '/options'\"}],staticClass:\"min-width-2\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_c('v-icon',{attrs:{\"dark\":\"\"}},[_vm._v(\" mdi-arrow-left \")]),_vm._v(\" \"+_vm._s(_vm.$t('back'))+\" \")],1)],1)]),_c('v-col',[_c('h2',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.title))])]),_c('v-col',[_vm._t(\"actions\")],2)],1),_c('v-row',[_c('v-col',[_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\n\n\n\n\n\n\nimport Vue from \"vue\";\n\nexport default Vue.extend({\n props:{\n title: {\n type: String,\n required: false,\n default: \"\"\n }\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!./Section.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!./Section.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Section.vue?vue&type=template&id=2fdad56a&\"\nimport script from \"./Section.vue?vue&type=script&lang=ts&\"\nexport * from \"./Section.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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pa-5 min-height-1\"},[_c('v-row',{staticClass:\"py-3\",attrs:{\"justify\":\"center\"}},[_c('h2',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.$t(\"newSharesIssuance\")))])]),_c('v-container',{staticStyle:{\"min-height\":\"80vh\"}},[_c('NewShareIssuanceForm',{scopedSlots:_vm._u([{key:\"actions\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"outlined\":\"\",\"disabled\":_vm.uploading},on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"shared.cancel\"))+\" \")]),_c('v-btn',{staticClass:\"min-width-2 mr-2 mt-3\",attrs:{\"color\":\"secondary\",\"depressed\":\"\",\"disabled\":(invalid && !_vm.saveAsDraft) || _vm.uploading},on:{\"click\":_vm.onCommitClick}},[_vm._v(\" \"+_vm._s(_vm.$t(\"submit\"))+\" \")]),_c('v-checkbox',{attrs:{\"label\":_vm.$t('saveAsDraft')},model:{value:(_vm.saveAsDraft),callback:function ($$v) {_vm.saveAsDraft=$$v},expression:\"saveAsDraft\"}})]}}]),model:{value:(_vm.formData),callback:function ($$v) {_vm.formData=$$v},expression:\"formData\"}})],1),_c('ComplexConfirmDialog',{attrs:{\"message\":_vm.$t('confirmShareIssuanceMessage')},on:{\"confirm\":_vm.onConfirmClick},model:{value:(_vm.showConfirmDialog),callback:function ($$v) {_vm.showConfirmDialog=$$v},expression:\"showConfirmDialog\"}})],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\nimport Vue from \"vue\";\n\nimport { companiesStore } from \"@/service/companies/companies.store\";\nimport { appStore } from \"@/app.store\";\nimport ComplexConfirmDialog from \"@/components/ComplexConfirmDialog.vue\";\nimport {ShareIssuanceFormData} from \"@/components/shares/NewShareIssuanceDialog\";\nimport dayjs from \"dayjs\";\nimport { createSharesIssuance } from \"@/service/shares-issuances/shares-issuances.service\";\nimport NewShareIssuanceForm from '@/components/shares/NewShareIssuanceForm.vue';\n\nexport default Vue.extend({\n components: {\n ComplexConfirmDialog,\n NewShareIssuanceForm\n },\n data() {\n return {\n uploading: false,\n showConfirmDialog: false,\n saveAsDraft: false,\n formData : {\n stakeholder: { \n id: \"\",\n name: \"\"\n },\n sharesSize: \"\",\n sharePrice: \"\",\n shareClass: {\n id: '',\n name: ''\n },\n issueDate: dayjs().startOf('day').format('YYYY-MM-DD'),\n directorFile: undefined as string | undefined,\n shareHolderFile: undefined as File | undefined,\n createCertificate: false,\n } as ShareIssuanceFormData\n };\n },\n methods: {\n async onCommitClick() {\n if (this.saveAsDraft) this.onConfirmClick();\n else this.showConfirmDialog = true;\n },\n async onConfirmClick() {\n try {\n this.uploading = true;\n \n await createSharesIssuance({\n stakeholderId: this.formData.stakeholder.id!,\n sharesSize: parseFloat(this.formData.sharesSize),\n issueDate: dayjs.utc(this.formData.issueDate, 'YYYY-MM-DD').startOf('day').toDate(),\n directorFile: this.formData.directorFile,\n shareholderFile: this.formData.shareholderFile,\n grantPrice: parseFloat(this.formData.sharePrice),\n status: this.saveAsDraft ? \"drafted\" : \"pending\",\n createCertificate: this.formData.createCertificate,\n shareClassId: this.formData.shareClass.id!\n });\n\n if (!this.saveAsDraft) {\n // invalidate current company's shares count\n await companiesStore.fetchList();\n }\n\n this.$router.go(-1);\n } catch (error) {\n this.uploading = false;\n appStore.snackbar(this.$t(\"shared.genericError\").toString(), \"error\");\n }\n },\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!./CreateShareIssuance.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!./CreateShareIssuance.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreateShareIssuance.vue?vue&type=template&id=0a38540c&\"\nimport script from \"./CreateShareIssuance.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreateShareIssuance.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"],"sourceRoot":""}