{"version":3,"sources":["webpack:///./src/views/MRLWriteIn.vue?91bd","webpack:///./src/models/PublicationWriteIn.ts","webpack:///./src/views/MRLWriteIn.vue","webpack:///./src/views/MRLWriteIn.vue?88eb","webpack:///./src/views/MRLWriteIn.vue?2cdf"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","song","title","attrs","playbackUrl","authors","join","ccliSongNo","domProps","copyright","on","$event","showSongInfo","staticStyle","_e","submitted","ref","submitWriteIn","directives","name","rawName","value","publicationWriteIn","expression","target","composing","$set","staticRenderFns","PublicationWriteIn","constructor","publisher","isbn","songId","songTitle","MRLWriteIn","Vue","Song","bus","$emit","resetForm","$refs","titleInput","focus","$route","query","params","$store","dispatch","id","toastr","success","toString","ccliSongNos","showCTA","__decorate","Component","components","InfoDisplay","SongRowPreview","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,GAAG,gCAAgCL,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,IAAI,CAACJ,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAG,4CAA4CL,EAAG,MAAMA,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,KAAK,CAACE,YAAY,8BAA8B,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIU,KAAKC,OAAO,OAAOP,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,iBAAiB,CAACQ,MAAM,CAAC,MAAQZ,EAAIU,KAAKC,MAAM,WAAaX,EAAIU,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f,KAAKmD,OAAOE,OAAOtC,aACvFf,KAAK8B,mBAAmBU,OAASxC,KAAKS,KAAK+C,GAC3CxD,KAAK8B,mBAAmBW,UAAYzC,KAAKS,KAAKC,MAGhD,sBACEmC,SAAIC,MAAM,kBACJ9C,KAAKsD,OAAOC,SAAS,mBAAoBvD,KAAK8B,oBACpD9B,KAAKuB,WAAY,EACjBsB,SAAIC,MAAM,YACVW,YAAOC,QAAQ1D,KAAKQ,GAAG,2BAA2BmD,YAGpDvC,eACEyB,SAAIC,MAAM,eAAe,CACvBc,YAAY,CAAC5D,KAAKS,KAAKM,YACvB8C,SAAS,MA1CMnB,EAAUoB,eAAA,CAR9BC,eAAU,CACTC,WAAW,CACTC,mBACAC,sBACAC,YACAC,gBAGiB1B,WCpF+W,I,YCOhY2B,EAAY,eACd,EACAvE,EACAqC,GACA,EACA,KACA,WACA,MAIa,aAAAkC,E","file":"js/87d48a1b1e.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.$t('O.LIT_PublicationWriteIn')))]),_c('div',{staticClass:\"panel\"},[_c('div',{staticClass:\"panel-body\"},[_c('p',[_vm._v(_vm._s(_vm.$t('O.LIT_PublicationWriteInInstructions')))]),_c('hr'),_c('div',{staticClass:\"grid-x grid-margin-x\"},[_c('div',{staticClass:\"cell small-12 large-6\"},[_c('div',{staticClass:\"flex-center-start\"},[_c('h4',{staticClass:\"font-24px bold color-black\"},[_vm._v(_vm._s(_vm.song.title)+\" \")]),_c('div',{staticClass:\"margin-left-1r\"},[_c('SongRowPreview',{attrs:{\"title\":_vm.song.title,\"previewUrl\":_vm.song.playbackUrl}})],1)]),_c('div',[_c('InfoDisplay',{attrs:{\"title\":_vm.$t('G.LIT_Authors')}},[_vm._v(_vm._s(_vm.song.authors.join(', ')))])],1),_c('div',[_c('InfoDisplay',{attrs:{\"title\":_vm.$t('O.LIT_CCLISongNumber')}},[_vm._v(_vm._s(_vm.song.ccliSongNo))])],1),_c('div',[_c('InfoDisplay',{attrs:{\"title\":_vm.$t('G.LIT_Copyrights')}},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.song.copyright.join('
'))}})])],1),_c('div',{staticClass:\"margin-bottom-2r margin-top-1r\"},[_c('button',{staticClass:\"util-button-2\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.showSongInfo()}}},[_c('Icon',{attrs:{\"classes\":\"fal fa-info-circle\"}}),_vm._v(_vm._s(_vm.$t('O.LIT_ViewFullSongInfo')))],1)])]),_c('div',{staticClass:\"cell small-12 large-6\"},[(_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):_vm._e(),(!_vm.submitted)?_c('Form',{ref:\"form\",attrs:{\"initFoundation\":true},on:{\"successSubmit\":function($event){return _vm.submitWriteIn()}}},[_c('label',[_vm._v(\" \"+_vm._s(_vm.$t('O.LIT_PublicationTitleWebsite'))+\" (\"+_vm._s(_vm.$t('O.LIT_Required'))+\") \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.publicationWriteIn.title),expression:\"publicationWriteIn.title\"}],ref:\"titleInput\",attrs:{\"type\":\"text\",\"required\":\"\"},domProps:{\"value\":(_vm.publicationWriteIn.title)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.publicationWriteIn, \"title\", $event.target.value)}}})]),_c('label',[_vm._v(\" \"+_vm._s(_vm.$t('O.LIT_PublisherName'))+\" (\"+_vm._s(_vm.$t('O.LIT_Required'))+\") \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.publicationWriteIn.publisher),expression:\"publicationWriteIn.publisher\"}],attrs:{\"type\":\"text\",\"required\":\"\"},domProps:{\"value\":(_vm.publicationWriteIn.publisher)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.publicationWriteIn, \"publisher\", $event.target.value)}}})]),_c('label',[_vm._v(\" \"+_vm._s(_vm.$t('O.LIT_ISBN'))+\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.publicationWriteIn.isbn),expression:\"publicationWriteIn.isbn\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.publicationWriteIn.isbn)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.publicationWriteIn, \"isbn\", $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')))])])]):_vm._e()],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: PublicationWriteIn.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 PublicationWriteIn { \r\n title: string = '';\r\n publisher: string = '';\r\n isbn: string = '';\r\n ccliSongNo: string = '';\r\n songId: string = '';\r\n songTitle: 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\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 PublicationWriteIn from '@/models/PublicationWriteIn';\r\nimport InfoDisplay from '@/components/InfoDisplay.vue';\r\nimport SongRowPreview from '@/components/SongRowPreview.vue';\r\nimport Song from '@/models/Song';\r\nimport Icon from '@/components/Icon.vue';\r\nimport Form from '@/components/Form.vue';\r\n\r\n@Component({\r\n components:{\r\n InfoDisplay,\r\n SongRowPreview, \r\n Icon, \r\n Form\r\n }\r\n})\r\nexport default class MRLWriteIn extends Vue {\r\n submitted = false;\r\n\r\n publicationWriteIn: PublicationWriteIn = new PublicationWriteIn();\r\n\r\n song: Song = new Song();\r\n\r\n async mounted() { \r\n bus.$emit('showBusy');\r\n await this.resetForm();\r\n (this.$refs.titleInput as HTMLElement).focus();\r\n if (this.$route.query.title){\r\n this.publicationWriteIn.title = this.$route.query.title as string;\r\n }\r\n if (this.$route.query.publisher){\r\n this.publicationWriteIn.publisher = this.$route.query.publisher as string;\r\n }\r\n if (this.$route.query.isbn){\r\n this.publicationWriteIn.isbn = this.$route.query.isbn as string;\r\n }\r\n bus.$emit('hideBusy');\r\n }\r\n\r\n async resetForm(){ \r\n this.publicationWriteIn = new PublicationWriteIn();\r\n this.publicationWriteIn.ccliSongNo = this.$route.params.ccliSongNo;\r\n this.song = await this.$store.dispatch('getSongInfo', { ccliSongNo: this.$route.params.ccliSongNo});\r\n this.publicationWriteIn.songId = this.song.id;\r\n this.publicationWriteIn.songTitle = this.song.title;\r\n }\r\n\r\n async submitWriteIn() { \r\n bus.$emit('showBusy');\r\n await this.$store.dispatch('submitMRLWriteIn', this.publicationWriteIn);\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 showSongInfo(){ \r\n bus.$emit('showSongInfo',{ \r\n ccliSongNos:[this.song.ccliSongNo], \r\n showCTA: false\r\n })\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!./MRLWriteIn.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!./MRLWriteIn.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./MRLWriteIn.vue?vue&type=template&id=2b0198a6&scoped=true\"\nimport script from \"./MRLWriteIn.vue?vue&type=script&lang=ts\"\nexport * from \"./MRLWriteIn.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 \"2b0198a6\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}