{"version":3,"sources":["webpack:///./node_modules/vuetify/lib/components/VForm/VForm.js","webpack:///./src/modals/account/views/components/AccountSettingsClientSecret.vue?b123","webpack:///src/modals/account/views/components/AccountSettingsClientSecret.vue","webpack:///./src/modals/account/views/components/AccountSettingsClientSecret.vue?f1ef","webpack:///./src/modals/account/views/components/AccountSettingsClientSecret.vue","webpack:///./src/modals/account/views/components/AccountSettingsClientSecret.vue?0693"],"names":["extend","name","form","this","inheritAttrs","props","disabled","Boolean","lazyValidation","readonly","value","data","inputs","watchers","errorBag","watch","val","errors","Object","values","includes","$emit","deep","immediate","methods","input","watcher","$watch","$set","_uid","valid","shouldValidate","hasOwnProperty","filter","validate","length","forEach","reset","resetErrorBag","setTimeout","resetValidation","push","watchInput","found","find","i","unwatch","$delete","h","staticClass","attrs","novalidate","attrs$","on","submit","e","$slots","default","render","_vm","_h","$createElement","_c","_self","$event","preventDefault","onSave","model","callback","$$v","expression","_v","rules","scopedSlots","_u","key","fn","onGenerate","proxy","loading","staticRenderFns","type","String","computed","user","btoa","Math","random","toString","substring","replace","component","VBtn","VCol","VForm","VRow","VTextField"],"mappings":"uLAAA,wCAMe,sBAAO,OAAY,eAAmB,SAEnDA,OAAO,CACPC,KAAM,SAEN,UACE,MAAO,CACLC,KAAMC,OAIVC,cAAc,EACdC,MAAO,CACLC,SAAUC,QACVC,eAAgBD,QAChBE,SAAUF,QACVG,MAAOH,SAETI,KAAM,KAAM,CACVC,OAAQ,GACRC,SAAU,GACVC,SAAU,KAEZC,MAAO,CACLD,SAAU,CACR,QAAQE,GACN,MAAMC,EAASC,OAAOC,OAAOH,GAAKI,UAAS,GAC3CjB,KAAKkB,MAAM,SAAUJ,IAGvBK,MAAM,EACNC,WAAW,IAGfC,QAAS,CACP,WAAWC,GACT,MAAMC,EAAUD,GACPA,EAAME,OAAO,WAAYX,IAC9Bb,KAAKyB,KAAKzB,KAAKW,SAAUW,EAAMI,KAAMb,IACpC,CACDO,WAAW,IAITV,EAAW,CACfgB,KA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MV,EAAIlC,MAAM4C,GAAKC,WAAW,YAAY,IAAI,IAAI,IAAI,IACviDU,EAAkB,G,wBCgDtB,GACE3E,MAAO,CACLK,MAAO,CACLuE,KAAMC,OACNzB,QAAS,MAEXsB,QAASxE,SAEX,OACE,MAAO,CACLuB,OAAO,EACPL,MAAOtB,KAAKO,MACZ8D,MAAO,CACb,mBACA,2CACA,4CAIEW,SAAU,IACZ,gBACMC,KAAM,kBAGV5D,QAAS,CACP,SACOrB,KAAK2B,OACV3B,KAAKkB,MAAM,SAAUlB,KAAKsB,QAE5B,aACEtB,KAAKsB,MAAQ4D,KAAKC,KAAKC,SAASC,SAAS,IAAIC,UAAU,IAAIC,QAAQ,KAAM,OC/E0a,I,yGCQrfC,EAAY,eACd,EACAjC,EACAsB,GACA,EACA,KACA,WACA,MAIa,aAAAW,EAAiB,QAShC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA,KAAKC,QAAA,KAAMC,OAAA,KAAKC,aAAA,Q,kCC5BnD,yBAA2rB,EAAG","file":"js/account-views-components-AccountSettingsClientSecret.modal.9d8a417d.js","sourcesContent":["// Mixins\nimport mixins from '../../util/mixins';\nimport BindsAttrs from '../../mixins/binds-attrs';\nimport { provide as RegistrableProvide } from '../../mixins/registrable';\n/* @vue/component */\n\nexport default mixins(BindsAttrs, RegistrableProvide('form')\n/* @vue/component */\n).extend({\n name: 'v-form',\n\n provide() {\n return {\n form: this\n };\n },\n\n inheritAttrs: false,\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean\n },\n data: () => ({\n inputs: [],\n watchers: [],\n errorBag: {}\n }),\n watch: {\n errorBag: {\n handler(val) {\n const errors = Object.values(val).includes(true);\n this.$emit('input', !errors);\n },\n\n deep: true,\n immediate: true\n }\n },\n methods: {\n watchInput(input) {\n const watcher = input => {\n return input.$watch('hasError', val => {\n this.$set(this.errorBag, input._uid, val);\n }, {\n immediate: true\n });\n };\n\n const watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {}\n };\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', val => {\n if (!val) return; // Only watch if we're not already doing it\n\n if (this.errorBag.hasOwnProperty(input._uid)) return;\n watchers.valid = watcher(input);\n });\n } else {\n watchers.valid = watcher(input);\n }\n\n return watchers;\n },\n\n /** @public */\n validate() {\n return this.inputs.filter(input => !input.validate(true)).length === 0;\n },\n\n /** @public */\n reset() {\n this.inputs.forEach(input => input.reset());\n this.resetErrorBag();\n },\n\n resetErrorBag() {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {};\n }, 0);\n }\n },\n\n /** @public */\n resetValidation() {\n this.inputs.forEach(input => input.resetValidation());\n this.resetErrorBag();\n },\n\n register(input) {\n this.inputs.push(input);\n this.watchers.push(this.watchInput(input));\n },\n\n unregister(input) {\n const found = this.inputs.find(i => i._uid === input._uid);\n if (!found) return;\n const unwatch = this.watchers.find(i => i._uid === found._uid);\n\n if (unwatch) {\n unwatch.valid();\n unwatch.shouldValidate();\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid);\n this.inputs = this.inputs.filter(i => i._uid !== found._uid);\n this.$delete(this.errorBag, found._uid);\n }\n\n },\n\n render(h) {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$\n },\n on: {\n submit: e => this.$emit('submit', e)\n }\n }, this.$slots.default);\n }\n\n});\n//# sourceMappingURL=VForm.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"grey800 pa-4\"},[_c('v-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSave($event)}},model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('label',{staticClass:\"grey100--text d-block font-weight-bold\",attrs:{\"for\":\"fieldClientSecret\"}},[_vm._v(\"New client secret\")]),_c('p',{staticClass:\"text-body-2 mb-3\"},[_vm._v(\" Your client secret is used to generate provably fair outcomes in certain games. Creating a new one will also rotate your server seed. \")]),_c('v-text-field',{staticClass:\"settings-btn rounded-0\",attrs:{\"id\":\"fieldClientSecret\",\"rules\":_vm.rules,\"placeholder\":\"Random words or characters\",\"dense\":\"\",\"solo\":\"\",\"flat\":\"\",\"background-color\":\"grey600\"},scopedSlots:_vm._u([{key:\"append\",fn:function(){return [_c('v-btn',{staticClass:\"font-weight-semibold text-caption rounded-0 mr-n2\",attrs:{\"color\":\"blue400\",\"small\":\"\",\"ripple\":false,\"depressed\":\"\",\"text\":\"\"},on:{\"click\":_vm.onGenerate}},[_vm._v(\" Generate \")])]},proxy:true},{key:\"append-outer\",fn:function(){return [_c('v-btn',{staticClass:\"px-8 font-weight-semibold text-caption green500--text rounded-0\",attrs:{\"color\":\"green800\",\"height\":\"38\",\"ripple\":false,\"depressed\":\"\",\"disabled\":!_vm.valid,\"loading\":_vm.loading},on:{\"click\":_vm.onSave}},[_vm._v(\" Change \")])]},proxy:true}]),model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountSettingsClientSecret.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountSettingsClientSecret.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountSettingsClientSecret.vue?vue&type=template&id=af4086cc&scoped=true&\"\nimport script from \"./AccountSettingsClientSecret.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountSettingsClientSecret.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AccountSettingsClientSecret.vue?vue&type=style&index=0&id=af4086cc&lang=scss&scoped=true&\"\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 \"af4086cc\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCol,VForm,VRow,VTextField})\n","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountSettingsClientSecret.vue?vue&type=style&index=0&id=af4086cc&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountSettingsClientSecret.vue?vue&type=style&index=0&id=af4086cc&lang=scss&scoped=true&\""],"sourceRoot":""}