{"version":3,"sources":["webpack:///./src/views/Subscription/subscription2.vue?6d6c","webpack:///./src/views/Subscription/subscription2.vue?41df","webpack:///src/views/Subscription/subscription2.vue","webpack:///./src/views/Subscription/subscription2.vue?b019","webpack:///./src/views/Subscription/subscription2.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","class","_m","attrs","_v","ref","on","handleOnChange","handleOnComplete","model","value","callback","$$v","emailCode","expression","$event","subscription3","staticRenderFns","component"],"mappings":"kHAAA,W,kECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACG,MAAM,CAAC,YAAY,IAAO,CAACP,EAAIQ,GAAG,GAAGJ,EAAG,OAAO,CAACE,YAAY,mBAAmBG,MAAM,CAAC,SAAW,iBAAiB,CAACL,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACE,YAAY,qFAAqF,CAACF,EAAG,MAAM,CAACE,YAAY,0EAA0E,CAACF,EAAG,OAAO,CAACE,YAAY,cAAc,CAACN,EAAIU,GAAG,yCAAyCN,EAAG,cAAc,CAACO,IAAI,WAAWL,YAAY,YAAYG,MAAM,CAAC,UAAY,IAAI,aAAa,EAAE,qBAAoB,EAAK,gBAAe,GAAMG,GAAG,CAAC,YAAYZ,EAAIa,eAAe,cAAcb,EAAIc,kBAAkBC,MAAM,CAACC,MAAOhB,EAAa,UAAEiB,SAAS,SAAUC,GAAMlB,EAAImB,UAAUD,GAAKE,WAAW,gBAAgB,KAAKhB,EAAG,SAAS,CAACE,YAAY,0BAA0BM,GAAG,CAAC,MAAQ,SAASS,GAAQ,OAAOrB,EAAIsB,cAActB,EAAImB,cAAc,CAACf,EAAG,OAAO,CAACJ,EAAIU,GAAG,2BAA2BN,EAAG,WAAW,CAACO,IAAI,WAAWF,MAAM,CAAC,SAAW,aAAa,SAAW,QAAQ,UAAY,GAAG,MAAQ,OAAO,SAAW,QAAS,IACtuCc,EAAkB,CAAC,WAAa,IAAIvB,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,YAAY,oBAAoB,CAACF,EAAG,KAAK,CAACJ,EAAIU,GAAG,kB,+SCiExK,GACA,cACA,kRACA,2BACA,gBACA,wBACA,gBACA,4BACA,yBAGA,uBACA,aACA,OACA,oFACA,kFAGA,wDACA,gBACA,yBAEA,gBACA,uBALA,IAOA,YAPA,SAOA,GACA,gCACA,6BAEA,WAXA,WAYA,eAEA,iBAdA,SAcA,GACMT,KAAKkB,UAAYH,GAEvB,eAjBA,SAiBA,GACA,gCAEA,SApBA,SAoBA,GACA,oCACA,yBACA,GACA,sBAEA,yBACA,wBACA,YAIA,cAhCA,SAgCA,cACA,gBACA,eACA,gFACA,kBACA,eACA,gBACA,uBACA,oFAGA,gDAOA,QApEA,WAqEA,wCCvIsW,I,wBCQlWQ,EAAY,eACd,EACAzB,EACAwB,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"js/chunk-854041b0.367d6d44.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./subscription2.vue?vue&type=style&index=0&id=d3d0252a&scoped=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"b-container\"},[_c('div',{staticClass:\"b-wrapper-page\"},[_c('div',{class:{'b-filter': true}},[_vm._m(0),_c('form',{staticClass:\"b-filter__hidden\",attrs:{\"onsubmit\":\"return false\"}},[_c('div',{staticClass:\"b-filter__form\"},[_c('div',{staticClass:\"b-input b-input--dual b-input--dual b-input--clinical b-input--search input-group\"},[_c('div',{staticClass:\"b-input b-input--dual b-input--dual b-input--clinical1 b-input--search\"},[_c('span',{staticClass:\"email-text\"},[_vm._v(\"Подтвердите ваш e-mail для подписки\")]),_c('v-otp-input',{ref:\"otpInput\",staticClass:\"otp-input\",attrs:{\"separator\":\" \",\"num-inputs\":4,\"should-auto-focus\":true,\"is-input-num\":true},on:{\"on-change\":_vm.handleOnChange,\"on-complete\":_vm.handleOnComplete},model:{value:(_vm.emailCode),callback:function ($$v) {_vm.emailCode=$$v},expression:\"emailCode\"}})],1)]),_c('button',{staticClass:\"b-button b-button--fill\",on:{\"click\":function($event){return _vm.subscription3(_vm.emailCode)}}},[_c('span',[_vm._v(\"Отправить\")])])])])])])]),_c('snackbar',{ref:\"snackbar\",attrs:{\"position\":\"top-center\",\"baseSize\":\"100px\",\"wrapClass\":'',\"color\":\"info\",\"holdTime\":4000}})],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"b-filter__button\"},[_c('h2',[_vm._v(\"Подписки\")])])}]\n\nexport { render, staticRenderFns }","<template>\r\n\t<div>\r\n\t\t<div class=\"b-container\">\r\n\t\t\t<div class=\"b-wrapper-page\">\r\n\t\t\t\t<div :class=\"{'b-filter': true}\">\r\n\t\t\t\t\t<button class=\"b-filter__button\">\r\n\t\t\t\t\t\t<h2>Подписки</h2>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<form class=\"b-filter__hidden\" onsubmit=\"return false\">\r\n\t\t\t\t\t\t<div class=\"b-filter__form\">\r\n\t\t\t\t\t\t\t<div class=\"b-input b-input--dual b-input--dual b-input--clinical b-input--search input-group\">\t\t\t\t\t\t\t\t\t<!-- Наименование КР-->\r\n\t\t\t\t\t\t\t\t<div class=\"b-input b-input--dual b-input--dual b-input--clinical1 b-input--search\">\r\n\t\t\t\t\t\t\t\t\t<span class=\"email-text\">Подтвердите ваш e-mail для подписки</span>\r\n\t\t\t\t\t\t\t\t\t\t<v-otp-input\r\n\t\t\t\t\t\t\t\t\t\tref=\"otpInput\"\r\n\t\t\t\t\t\t\t\t\t\tclass=\"otp-input\"\r\n\t\t\t\t\t\t\t\t\t\tseparator=\" \"\r\n\t\t\t\t\t\t\t\t\t\t:num-inputs=\"4\"\r\n\t\t\t\t\t\t\t\t\t\t:should-auto-focus=\"true\"\r\n\t\t\t\t\t\t\t\t\t\t:is-input-num=\"true\"\r\n\t\t\t\t\t\t\t\t\t\tv-model=\"emailCode\"\r\n\t\t\t\t\t\t\t\t\t\t@on-change=\"handleOnChange\"\r\n \t\t\t\t\t\t\t\t@on-complete=\"handleOnComplete\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t<!-- <div class=\"code-block\">\r\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" onkeyup=\"testJump(this)\" oninput=\"this.value = this.value.slice(0, 1)\" id=\"code-name\" maxlength=\"1\" v-model=\"emailCode[0]\" class=\"b-input__input-field1 b-input__input-field--dual b-input__input-field--dual b-input__input-field--clinical b-input__input-field--search\" />\r\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" onkeyup=\"testJump(this)\" oninput=\"this.value = this.value.slice(0, 1)\" id=\"code-name\" maxlength=\"1\" v-model=\"emailCode[1]\" class=\"b-input__input-field1 b-input__input-field--dual b-input__input-field--dual b-input__input-field--clinical b-input__input-field--search\" />\r\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" onkeyup=\"testJump(this)\" oninput=\"this.value = this.value.slice(0, 1)\" id=\"code-name\" maxlength=\"1\" v-model=\"emailCode[2]\" class=\"b-input__input-field1 b-input__input-field--dual b-input__input-field--dual b-input__input-field--clinical b-input__input-field--search\" />\r\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" onkeyup=\"testJump(this)\" oninput=\"this.value = this.value.slice(0, 1)\" id=\"code-name\" maxlength=\"1\" v-model=\"emailCode[3]\" class=\"b-input__input-field1 b-input__input-field--dual b-input__input-field--dual b-input__input-field--clinical b-input__input-field--search\" />\r\n\t\t\t\t\t\t\t\t\t</div> -->\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t<button @click=\"subscription3(emailCode)\" class=\"b-button b-button--fill\">\r\n\t\t\t\t\t\t\t\t<span>Отправить</span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n \t\t<snackbar position=\"top-center\" ref=\"snackbar\" baseSize=\"100px\" :wrapClass=\"''\" color=\"info\" :holdTime=\"4000\"/>\r\n\t\t</div>\r\n</template>\r\n\r\n<script>\r\nimport iconSvg from \"../../assets/icons/svg/filter.svg\"\r\nimport iconCloseSvg from \"../../assets/icons/svg/close.svg\"\r\nimport iconSearchSvg from \"../../assets/icons/svg/search.svg\"\r\nimport iconAngleDownSvg from \"../../assets/icons/svg/angle-down.svg\"\r\nimport iconAngleleftSvg from \"../../assets/icons/svg/angle-left.svg\"\r\nimport iconAnglerightSvg from \"../../assets/icons/svg/angle-right.svg\"\r\nimport iconDownloadSvg from \"../../assets/icons/svg/download.svg\"\r\nimport iconSortdownSvg from \"../../assets/icons/svg/sort-down.svg\"\r\nimport iconSortupSvg from \"../../assets/icons/svg/sort-up.svg\"\r\nimport iconEditSvg from \"../../assets/icons/svg/edit.svg\"\r\nimport iconEyeSvg from \"../../assets/icons/svg/eye.svg\"\r\n\r\nimport { RingLoader } from '@saeris/vue-spinners'\r\n\r\n\r\nimport Dropdown from '../../components/Dropdown/index'\r\nimport Dashboards from '../../components/Dashboards/index'\r\nimport {mapGetters, mapActions, mapMutations} from 'vuex'\r\n\r\n\r\nexport default {\r\n\tname: 'listCr',\r\n\tcomponents: { RingLoader, Dashboards, Dropdown, iconEditSvg, iconEyeSvg, iconSvg, iconSearchSvg, iconAngleDownSvg, iconCloseSvg, iconDownloadSvg, iconSortdownSvg, iconSortupSvg, iconAngleleftSvg, iconAnglerightSvg },\r\n\tcomputed: {\r\n\t\t\t...mapGetters({\r\n\t\t\t\tmedia: 'layout/getMedia',\r\n\t\t\t\tapiUrl: 'apiUrl',\r\n\t\t\t\tapiUrlPortal: 'apiUrlPortal',\r\n\t\t\t\tgetCode: 'sub/getCode'\r\n\t\t\t}),\r\n\t},\r\n\tdata: () => ({\r\n\t\temailCode: [],\r\n\t\trules: {\r\n\t\t\trequired: v => (!!v || v === 0 || v.length === 0) || 'Обязательно для заполнения!',\r\n\t\t\trequiredMultiple: (v) => v.length > 0 || 'Обязательно для заполнения.',\r\n\t\t},\r\n\t}),\r\n\tmethods: {\r\n\t\t...mapMutations({\r\n\t\t\tsetCode: 'sub/setCode'\r\n\t\t}),\r\n\t\t...mapActions({\r\n\t\t\tapiAll: 'api/apiAll'\r\n\t\t}),\r\n\t\tisNumberKey(evt) {\r\n\t\t\tvar charCode = (evt.which) ? evt.which : evt.keyCode;\r\n\t\t\treturn !(charCode > 31 && (charCode < 48 || charCode > 57));\r\n\t\t},\r\n\t\tchangeCode(){\r\n\t\t\tconsole.log();\r\n\t\t},\r\n\t\thandleOnComplete(value) {\r\n this.emailCode = value\r\n\t\t},\r\n\t\thandleOnChange(value) {\r\n\t\t\tconsole.log('OTP changed: ', value);\r\n\t\t},\r\n\t\t testJump(x){\r\n\t\t\tvar ml = ~~x.getAttribute('maxlength');\r\n\t\t\tif(ml && x.value.length >= ml){\r\n\t\t\t\tdo{\r\n\t\t\t\t\t\tx = x.nextSibling;\r\n\t\t\t\t}\r\n\t\t\t\twhile(x && !(/text/.test(x.type)));\r\n\t\t\t\tif(x && /text/.test(x.type)){\r\n\t\t\t\t\t\tx.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tsubscription3(emailCode) {\r\n\t\t\tthis.setCode(emailCode)\r\n\t\t\tconsole.log(emailCode);\r\n\t\t\tthis.api.put(`${this.apiUrl}api/Subscription/Confirm?code=${emailCode}`)\r\n\t\t.then(res => {\r\n\t\t\tconsole.log(res);\r\n\t\t\tif(res.data.success) {\r\n\t\t\t\tconsole.log(this.getCode);\r\n\t\t\t\tthis.$router.push(`/subscription-third/${this.$route.params.email}/${emailCode}`)\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tthis.$refs.snackbar.info(res.data.userMessage);\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\t},\r\n\r\n},\r\n\tcreated() {\r\n\t\tconsole.log(this.$route.params.email);\r\n\t}\r\n}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n@import \"../../views/Subscription/style/stylePages.css\";\r\n@import \"../../views/Subscription/style/mobile.css\";\r\n\r\n.ring-load {\r\n\tposition: absolute;\r\n\tcursor: progress;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\t/* opacity: 0.4; */\r\n\tz-index: 10;\r\n\tbackground-color: rgba(88, 88, 88, 0.2);\r\n}\r\n\r\n.ring-load-loading {\r\n\tleft: 42%;\r\n top: 42%;\r\n}\r\n\r\ntable tbody tr:hover {\r\n\tbackground: #f1f1f1;\r\n\tbox-shadow: 0 1.5px 6px #00000080;\r\n\tcursor: pointer;\r\n}\r\n.code-block{\r\n\tdisplay: flex;\r\n}\r\n#code-name{\r\n\tmargin-right: 5px;\r\n}\r\ninput[type=\"number\"]::-webkit-inner-spin-button,\r\ninput[type=\"number\"]::-webkit-outer-spin-button {\r\n -webkit-appearance: none;\r\n margin: 0;\r\n}\r\n.otp-input {\r\n\t width: 300px;\r\n font-size: 20px;\r\n\t margin-top: 10px;\r\n text-align: center;\r\n &.error {\r\n border: 1px solid red !important;\r\n }\r\n\t div{\r\n\t\tinput{\r\n\t\tmargin-left: 5px;\r\n\t }\r\n\t }\r\n\r\n }\r\n\r\n\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--10-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./subscription2.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--10-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./subscription2.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./subscription2.vue?vue&type=template&id=d3d0252a&scoped=true&\"\nimport script from \"./subscription2.vue?vue&type=script&lang=js&\"\nexport * from \"./subscription2.vue?vue&type=script&lang=js&\"\nimport style0 from \"./subscription2.vue?vue&type=style&index=0&id=d3d0252a&scoped=true&lang=scss&\"\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 \"d3d0252a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}