{"version":3,"sources":["webpack:///./src/views/CCLWriteIn.vue?b8ed","webpack:///./src/models/CCLWriteIn.ts","webpack:///./src/views/CCLWriteIn.vue","webpack:///./src/views/CCLWriteIn.vue?acc9","webpack:///./src/views/CCLWriteIn.vue?1bb0"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$store","state","licenses","ccl","overrideLabel","$t","domProps","writeInDescription","attrs","staticStyle","ref","on","$event","submitWriteIn","directives","name","rawName","value","cclWriteIn","expression","target","composing","$set","staticRenderFns","CCLWriteIn","constructor","title","authors","catalogPublisher","CCLWriteInView","Vue","submitted","Date","toISOString","split","bus","$emit","resetForm","dispatch","toastr","success","toString","__decorate","Component","components","Icon","Form","component"],"mappings":"sHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,KAAK,CAACE,YAAY,aAAa,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,OAAOC,MAAMC,SAASC,IAAIC,cAAcb,EAAIS,OAAOC,MAAMC,SAASC,IAAIC,cAAc,4BAA4B,MAAMb,EAAIQ,GAAGR,EAAIc,GAAG,qBAAqBV,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwBS,SAAS,CAAC,UAAYf,EAAIQ,GAAGR,EAAIS,OAAOC,MAAMC,SAASC,IAAII,uBAAuBZ,EAAG,MAAM,CAACE,YAAY,4BAA4B,CAAEN,EAAa,UAAEI,EAAG,MAAM,CAACE,YAAY,oCAAoC,CAACF,EAAG,OAAO,CAACa,MAAM,CAAC,QAAU,yCAAyCb,EAAG,MAAM,CAACE,YAAY,0DAA0DY,YAAY,CAAC,MAAQ,SAAS,CAACd,EAAG,MAAM,CAACJ,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,EAAY,eACd,EACAzD,EACAiC,GACA,EACA,KACA,WACA,MAIa,aAAAwB,E","file":"js/e16d79e0dc.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h1',{staticClass:\"font-24px\"},[_vm._v(_vm._s(_vm.$store.state.licenses.ccl.overrideLabel?_vm.$store.state.licenses.ccl.overrideLabel:'Church Copyright License')+\" - \"+_vm._s(_vm.$t('O.LIT_WriteIn')))]),_c('div',{staticClass:\"panel\"},[_c('div',{staticClass:\"panel-body\"},[_c('div',{staticClass:\"grid-x grid-margin-x\"},[_c('div',{staticClass:\"cell small-12 large-7\",domProps:{\"innerHTML\":_vm._s(_vm.$store.state.licenses.ccl.writeInDescription)}}),_c('div',{staticClass:\"cell small-12 large-auto\"},[(_vm.submitted)?_c('div',{staticClass:\"callout primary no-margin-bottom\"},[_c('Icon',{attrs:{\"classes\":\"fal fa-check-circle show-for-medium\"}}),_c('div',{staticClass:\"text-center medium-text-left medium-flex-center-between\",staticStyle:{\"width\":\"100%\"}},[_c('div',[_vm._v(_vm._s(_vm.$t('O.LIT_SuccessWriteInMsg')))]),_c('div',{staticClass:\"margin-left-halfr show-for-medium\"}),_c('div',{staticClass:\"show-for-small-only margin-top-1r\"}),_c('router-link',{staticClass:\"primary button small no-margin-bottom\",attrs:{\"to\":\"/search\"}},[_vm._v(_vm._s(_vm.$t('O.LIT_BackToSearch')))])],1)],1):_c('Form',{ref:\"form\",attrs:{\"initFoundation\":true},on:{\"successSubmit\":function($event){return _vm.submitWriteIn()}}},[_c('label',[_vm._v(\" \"+_vm._s(_vm.$t('O.LIT_SongTitle'))+\" (\"+_vm._s(_vm.$t('O.LIT_Required'))+\") \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.cclWriteIn.title),expression:\"cclWriteIn.title\"}],ref:\"titleInput\",attrs:{\"type\":\"text\",\"required\":\"\"},domProps:{\"value\":(_vm.cclWriteIn.title)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.cclWriteIn, \"title\", $event.target.value)}}})]),_c('label',[_vm._v(\" \"+_vm._s(_vm.$t('O.LIT_AuthorsComposers'))+\" (\"+_vm._s(_vm.$t('O.LIT_Required'))+\") \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.cclWriteIn.authors),expression:\"cclWriteIn.authors\"}],attrs:{\"type\":\"text\",\"required\":\"\"},domProps:{\"value\":(_vm.cclWriteIn.authors)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.cclWriteIn, \"authors\", $event.target.value)}}})]),_c('label',[_vm._v(\" \"+_vm._s(_vm.$t('G.LIT_Catalog'))+\" / \"+_vm._s(_vm.$t('G.LIT_Publisher'))+\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.cclWriteIn.catalogPublisher),expression:\"cclWriteIn.catalogPublisher\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.cclWriteIn.catalogPublisher)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.cclWriteIn, \"catalogPublisher\", $event.target.value)}}})]),_c('div',{staticClass:\"margin-top-1r\"},[_c('button',{staticClass:\"no-margin-bottom button primary margin-right-1r\",attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('G.LIT_Submit')))])])])],1)])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n// DO NOT DIRECTLY MODIFY THIS FILE\r\n// It was generated automatically, from the C# file: CCLWriteIn.cs\r\n// Any changes made directly here would be lost next time the C# class was changed\r\n\r\n// It was created using Visual Studio extension 'TypeWriter', using the template in VueModels.tst\r\n// More info: http://frhagn.github.io/Typewriter/\r\n\r\n\r\n \r\n\r\nexport default class CCLWriteIn { \r\n title: string = '';\r\n authors: string = '';\r\n catalogPublisher: string = '';\r\n}\r\n\r\n\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from 'vue-property-decorator';\r\nimport { bus, toastr } from '@/main';\r\nimport Icon from '@/components/Icon.vue';\r\nimport Form from '@/components/Form.vue';\r\nimport CCLWriteIn from '@/models/CCLWriteIn';\r\n\r\n@Component({\r\n components:{\r\n Icon, \r\n Form\r\n }\r\n})\r\nexport default class CCLWriteInView extends Vue {\r\n submitted = false;\r\n cclWriteIn: CCLWriteIn = new CCLWriteIn();\r\n \r\n get currentDate(){ \r\n return (new Date()).toISOString().split('T')[0];\r\n }\r\n\r\n async mounted() { \r\n bus.$emit('showBusy'); \r\n await this.resetForm();\r\n bus.$emit('hideBusy');\r\n }\r\n\r\n async resetForm(){ \r\n this.cclWriteIn = new CCLWriteIn();\r\n }\r\n\r\n async submitWriteIn() {\r\n bus.$emit('showBusy');\r\n await this.$store.dispatch('submitCCLWriteIn', this.cclWriteIn);\r\n this.submitted = true;\r\n bus.$emit('hideBusy');\r\n toastr.success(this.$t('O.LIT_SuccessWriteInMsg').toString());\r\n }\r\n}\r\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!./CCLWriteIn.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!./CCLWriteIn.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CCLWriteIn.vue?vue&type=template&id=68c099a8&scoped=true\"\nimport script from \"./CCLWriteIn.vue?vue&type=script&lang=ts\"\nexport * from \"./CCLWriteIn.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 \"68c099a8\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}