{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_object-gopd.js","webpack:///./src/components/text-input/text-input.vue?5f94","webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///./src/components/text-input/text-input.ts","webpack:///./src/components/text-input/text-input.ts?1232","webpack:///./src/components/text-input/text-input.vue","webpack:///./node_modules/core-js/modules/es6.object.keys.js","webpack:///./node_modules/core-js/modules/_object-sap.js","webpack:///./src/helper-functions/validators.ts","webpack:///./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack:///./node_modules/core-js/modules/_object-gopn.js","webpack:///./node_modules/core-js/modules/_own-keys.js","webpack:///./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///./src/views/console/add-google-certificate/add-google-certificate.vue?0c78","webpack:///./src/views/console/add-google-certificate/add-google-certificate.ts","webpack:///./src/views/console/add-google-certificate/add-google-certificate.ts?2fbd","webpack:///./src/views/console/add-google-certificate/add-google-certificate.vue","webpack:///./node_modules/core-js/modules/_create-property.js","webpack:///./src/views/console/add-details/add-details.vue?a1c1","webpack:///./src/views/console/add-details/add-details.ts","webpack:///./src/views/console/add-details/add-details.ts?29a5","webpack:///./src/views/console/add-details/add-details.vue"],"names":["pIE","createDesc","toIObject","toPrimitive","has","IE8_DOM_DEFINE","gOPD","Object","getOwnPropertyDescriptor","exports","f","O","P","e","call","render","_vm","this","_h","$createElement","_c","_self","class","showHints","attrs","id","_v","_s","label","_e","_g","_b","className","type","placeholder","domProps","value","on","handleInput","indicators","handleNotice","$attrs","Listeners","length","isValid","staticClass","_t","staticRenderFns","_objectWithoutPropertiesLoose","source","excluded","key","i","target","sourceKeys","keys","indexOf","_objectWithoutProperties","getOwnPropertySymbols","sourceSymbolKeys","prototype","propertyIsEnumerable","TextField","_Vue","_inherits","_super","_createSuper","_this","_classCallCheck","_createClass","get","_this$$listeners","$listeners","otherListeners","input","_excluded","_objectSpread","event","$emit","Vue","__decorate","Prop","Component","component","toObject","$keys","it","$export","core","fails","module","KEY","exec","fn","exp","S","F","validEmail","email","test","validUserName","userName","validDomain","domain","isBetween","min","max","str","isGreaterThan","num","validPassword","password","username","includes","ownKeys","createProperty","getOwnPropertyDescriptors","object","desc","getDesc","result","undefined","hiddenKeys","concat","getOwnPropertyNames","gOPN","gOPS","anObject","Reflect","getSymbols","_defineProperty","obj","defineProperty","enumerable","configurable","writable","existingCertificates","scopedSlots","_u","ref","isLoading","imported","error","alertMessage","handleFileUpload","enabled","$event","preventDefault","addCertificate","AddGoogleCertificate","namespace","uploadedCertificate","clientEmailsAndIds","ClientEmailsAndIds","getCertificates","_getCertificates","_asyncToGenerator","regeneratorRuntime","mark","_callee","response","wrap","_context","prev","next","$axios","$apiUrl","sent","data","map","client","clientEmail","clientId","t0","console","stop","apply","arguments","_this2","setTimeout","_addCertificate","_callee2","formData","_context2","FormData","append","name","post","headers","alertReset","certificate","$refs","certificateInput","files","components","Multiselect","$defineProperty","index","incompleteServices","_l","service","hasSerpBook","toggleInput","hasGoogleAnalytic","addSerpBookOpen","model","callback","$$v","serpbookCatName","trim","expression","SerpBookEnabled","saveSerpBook","addAnalyticOpen","ClientCerificates","analyticClientId","toggleCertificate","AnalyticEnabled","analyticViewId","saveGoogleAnalytic","addCertificateOpen","AddDetails","currentService","getClientEmailsAndIds","getIncompleteServices","serviceId","_saveSerpBook","categoryName","_x","_saveGoogleAnalytic","viewId","_getIncompleteServices","_callee3","_context3","_getClientEmailsAndIds","_callee4","_context4","textInput"],"mappings":"sHAAA,IAAIA,EAAM,EAAQ,QACdC,EAAa,EAAQ,QACrBC,EAAY,EAAQ,QACpBC,EAAc,EAAQ,QACtBC,EAAM,EAAQ,QACdC,EAAiB,EAAQ,QACzBC,EAAOC,OAAOC,yBAElBC,EAAQC,EAAI,EAAQ,QAAoBJ,EAAO,SAAkCK,EAAGC,GAGlF,GAFAD,EAAIT,EAAUS,GACdC,EAAIT,EAAYS,GA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AAAH,mBAAAI,MAAA,SAAA2E,GAAA,eAAAA,EAAAzE,KAAAyE,EAAAxE,MAAA,cAAAwE,EAAAzE,KAAA,EAAAyE,EAAAxE,KAAA,EAImBnJ,KAAKoJ,OAAO/F,IAAI,GAADqD,OAAI1G,KAAKqJ,QAAUrJ,KAAKqI,UAAS,wBAAsB,OAAvFU,EAAQ4E,EAAArE,KAEdtJ,KAAKuI,mBAAqBQ,EAASQ,KAAKoE,EAAAxE,KAAA,gBAAAwE,EAAAzE,KAAA,EAAAyE,EAAA/D,GAAA+D,EAAA,YAGxC9D,QAAQhC,MAAK8F,EAAA/D,IAAM,yBAAA+D,EAAA7D,UAAA4D,EAAA,kBAEtB,SAAAZ,IAAA,OAAAW,EAAA1D,MAAA,KAAAC,WAAA,OAAA8C,EAbA,MAaAF,EA/K4B,CAAS9I,QAAnB8I,EAAU7I,eAAA,CAR9BE,eAAU,CACTgH,WAAY,CACV2C,iBACAzF,4BACA+C,oBAIiB0B,WCfkX,I,YCOnY1I,EAAY,eACd,EACApE,EACAgC,GACA,EACA,KACA,KACA,MAIa,aAAAoC,E","file":"js/chunk-c4dcd33c.d33159c5.js","sourcesContent":["var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['input', _vm.showHints ? 'hint-visible' : false]},[(_vm.label)?_c('label',{attrs:{\"for\":_vm.id}},[_vm._v(_vm._s(_vm.label))]):_vm._e(),_c('input',_vm._g(_vm._b({class:['input-control', _vm.className],attrs:{\"id\":_vm.id,\"type\":[_vm.type ? _vm.type : 'text'],\"placeholder\":_vm.placeholder},domProps:{\"value\":_vm.value},on:{\"input\":_vm.handleInput,\"blur\":function () { return _vm.indicators ? _vm.handleNotice() : false; }}},'input',_vm.$attrs,false),_vm.Listeners)),(_vm.indicators)?_c('span',{class:['input-checker', !_vm.label ? 'no-label' : false]},[(_vm.value.length > 0 && _vm.isValid)?_c('i',{staticClass:\"mdi mdi-check text-success\",attrs:{\"area-hidden\":\"true\"}}):(_vm.value.length > 0)?_c('i',{staticClass:\"mdi mdi-close text-danger\",attrs:{\"area-hidden\":\"true\"}}):_vm._e()]):_vm._e(),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.showHints)?_c('small',{staticClass:\"input-notice\"},[_vm._t(\"default\")],2):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import { Component, Vue, Prop } from 'vue-property-decorator'\r\n\r\n@Component\r\n\r\nexport default class TextField extends Vue {\r\n\r\n private showHints: boolean = false;\r\n\r\n @Prop()\r\n private indicators!: boolean;\r\n\r\n @Prop()\r\n private id?: string;\r\n\r\n @Prop()\r\n private className?: string;\r\n \r\n @Prop()\r\n private label?: string;\r\n\r\n @Prop()\r\n private type?: string;\r\n\r\n @Prop()\r\n private placeholder?: string;\r\n\r\n @Prop()\r\n private isValid?: boolean;\r\n\r\n @Prop()\r\n private value!: string;\r\n\r\n private get Listeners () {\r\n\r\n const {input, ...otherListeners} = this.$listeners;\r\n\r\n return {...otherListeners};\r\n }\r\n\r\n private handleInput (event: Event) {\r\n\r\n this.$emit('input', (event.target as HTMLInputElement).value)\r\n }\r\n\r\n private handleNotice () {\r\n \r\n if (!this.isValid && this.value.length > 0) {\r\n \r\n return this.showHints = true;\r\n }\r\n\r\n return this.showHints = false;\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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!./text-input.ts?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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!./text-input.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./text-input.vue?vue&type=template&id=3ab64c11&\"\nimport script from \"./text-input.ts?vue&type=script&lang=ts&\"\nexport * from \"./text-input.ts?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","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n","export const validEmail = (email: string): boolean =>\r\n typeof email === 'string' && /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9åäöÅÄÖ.-]+\\.[a-zA-Z]{2,}$/.test(email);\r\n\r\nexport const validUserName = (userName: string) =>\r\n typeof userName === 'string' && /^[a-zA-Z0-9\\\\-\\\\ ._@+]{5,50}$/.test(userName);\r\n\r\nexport const validDomain = (domain: string): boolean =>\r\n typeof domain === 'string' && /^(https?:\\/\\/)?[a-zA-Z0-9åäöÅÄÖ.-]+\\.[a-zA-Z]{2,}(?:\\/[a-zA-Z0-9+&@#\\/%=~_|!:,.;]*)?(?:\\\\?[A-Z0-9+&@#/%=~_|!:,.;]*)?$/.test(domain); \r\n // /?:https?://)?((?:[a-z0-9]+(?:-[a-z0-9]+)*\\\\.)+[a-z]{2,}(?:/[a-zA-Z0-9+&@#/%=~_|!:,.;]*)?(?:\\\\?[A-Z0-9+&@#/%=~_|!:,.;]*)?.test(domain)\r\n\r\nexport const isBetween = (min: number, max: number, str: string): boolean => \r\n typeof str === 'string' && str.length >= min && str.length <= max;\r\n\r\nexport const isGreaterThan = (num: number, str: string): boolean =>\r\n typeof str === 'string' && str.length > num;\r\n\r\nexport const isLessThan = (num: number, str: string): boolean =>\r\n typeof str === 'string' && str.length < num;\r\n\r\nexport const validPassword = (password: string, username: string) => {\r\n \r\n let message = '';\r\n\r\n const validPassword = /\\S{8,100}/.test(password) \r\n && /[A-ZÅÄÖ]/.test(password) \r\n && /[a-zåäö]/.test(password) \r\n && /[0-9]/.test(password) \r\n && !password.includes(username);\r\n\r\n return typeof password === 'string' && validPassword;\r\n}\r\n","// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = require('./_export');\nvar ownKeys = require('./_own-keys');\nvar toIObject = require('./_to-iobject');\nvar gOPD = require('./_object-gopd');\nvar createProperty = require('./_create-property');\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIObject(object);\n var getDesc = gOPD.f;\n var keys = ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) createProperty(result, key, desc);\n }\n return result;\n }\n});\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// all object keys, includes non-enumerable and symbols\nvar gOPN = require('./_object-gopn');\nvar gOPS = require('./_object-gops');\nvar anObject = require('./_an-object');\nvar Reflect = require('./_global').Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = gOPN.f(anObject(it));\n var getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('loader',{attrs:{\"has-content\":_vm.existingCertificates != undefined,\"delay-acceptance\":500,\"position\":\"middle\",\"color\":\"black\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar isLoading = ref.isLoading;\nreturn [(!isLoading)?_c('div',{class:[_vm.imported ? false : 'container-form']},[_c('alert',{attrs:{\"is-error\":_vm.error,\"alert-message\":_vm.alertMessage}}),_c('heading',{attrs:{\"stroked\":true,\"content\":\"Add Certificate\"}}),_c('form',{staticClass:\"form\"},[_c('div',{staticClass:\"input-group mb-2\"},[_c('input',{ref:\"certificateInput\",staticClass:\"form-control\",attrs:{\"type\":\"text\",\"readonly\":\"\"}}),_c('input',{ref:\"certificate\",staticClass:\"form-control-file\",attrs:{\"type\":\"file\",\"id\":\"fileInput\",\"hidden\":\"\"},on:{\"change\":_vm.handleFileUpload}}),_c('label',{staticClass:\"form-control-file-label\",attrs:{\"for\":\"fileInput\"}},[_vm._v(\"Browse...\")])]),_c('div',{staticClass:\"form-group\"},[_c('button',{staticClass:\"btn btn-info text-white btn-block\",attrs:{\"disabled\":!_vm.enabled},on:{\"click\":function($event){$event.preventDefault();return _vm.addCertificate($event)}}},[_vm._v(\"Add Certificate\")])]),_c('multiselect',{attrs:{\"options\":_vm.existingCertificates,\"label\":\"label\",\"track-by\":\"label\",\"placeholder\":\"Existing Google API Certificates\"}}),_vm._t(\"default\")],2)],1):_vm._e()]}}],null,true)})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Vue, Prop } from 'vue-property-decorator'\r\nimport Multiselect from 'vue-multiselect'\r\n\r\n@Component({\r\n components: {\r\n Multiselect,\r\n }\r\n})\r\n\r\nexport default class AddGoogleCertificate extends Vue {\r\n\r\n private namespace: string = '/Console';\r\n\r\n private uploadedCertificate: any = null;\r\n\r\n private alertMessage: string = '';\r\n\r\n private error: boolean = false;\r\n\r\n @Prop()\r\n private clientEmailsAndIds?: {label: string, clientId: string}[];\r\n\r\n @Prop()\r\n private imported?: boolean;\r\n\r\n private existingCertificates: {label: string, clientId: string}[] | null = null;\r\n\r\n private get ClientEmailsAndIds () {\r\n\r\n if (this.clientEmailsAndIds != undefined) {\r\n\r\n this.existingCertificates = this.clientEmailsAndIds;\r\n\r\n return this.existingCertificates;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n private get enabled () {\r\n\r\n return this.uploadedCertificate != null;\r\n }\r\n\r\n mounted () {\r\n\r\n if (this.ClientEmailsAndIds === undefined) {\r\n\r\n return this.getCertificates();\r\n }\r\n\r\n }\r\n\r\n private async getCertificates () {\r\n\r\n try {\r\n\r\n const response = await this.$axios.get(`${this.$apiUrl + this.namespace}/ClientCertificates`);\r\n \r\n this.existingCertificates = response.data.map((client: {clientEmail: string, clientId: string}) => {\r\n return {label: client.clientEmail, clientId: client.clientId}\r\n });\r\n } catch (err) {\r\n\r\n console.error(err);\r\n }\r\n }\r\n\r\n alertReset () {\r\n\r\n setTimeout(() => { \r\n\r\n if (this.error) {\r\n\r\n this.error = !this.error;\r\n }\r\n\r\n this.alertMessage = '';\r\n }, 5000);\r\n }\r\n\r\n private async addCertificate () {\r\n\r\n const formData: any = new FormData();\r\n formData.append('File', this.uploadedCertificate, this.uploadedCertificate.name);\r\n\r\n try {\r\n\r\n const response = await this.$axios.post(`${this.$apiUrl + this.namespace}/AddGoogleApiCertificate`, formData, {\r\n headers: {'Content-Type': 'multipart/form-data'}\r\n });\r\n \r\n this.alertMessage = 'Certificate successfuly submited.';\r\n this.alertReset();\r\n\r\n } catch (err) {\r\n\r\n this.error = !this.error;\r\n this.alertMessage = 'Something went wrong.';\r\n this.alertReset();\r\n }\r\n }\r\n\r\n private handleFileUpload () {\r\n\r\n const certificate = this.$refs.certificate as HTMLInputElement;\r\n const input = this.$refs.certificateInput as HTMLInputElement;\r\n\r\n if (certificate.files != null) {\r\n\r\n this.uploadedCertificate = certificate.files[0];\r\n input.value = this.uploadedCertificate.name;\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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!./add-google-certificate.ts?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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!./add-google-certificate.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./add-google-certificate.vue?vue&type=template&id=b88267ac&\"\nimport script from \"./add-google-certificate.ts?vue&type=script&lang=ts&\"\nexport * from \"./add-google-certificate.ts?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","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('loader',{attrs:{\"has-content\":_vm.incompleteServices != null && _vm.clientEmailsAndIds != null,\"delay-acceptance\":500,\"position\":\"middle\",\"color\":\"black\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar isLoading = ref.isLoading;\nreturn [(!isLoading)?_c('div',{staticClass:\"container-form col-sm-8\"},[_c('alert',{attrs:{\"alert-message\":_vm.alertMessage,\"is-error\":_vm.error}}),_c('heading',{attrs:{\"stroked\":true,\"content\":\"Incomplete Services\"}}),_vm._l((_vm.incompleteServices),function(service,i){return _c('div',{key:i,staticClass:\"row no-gutters py-2\"},[_c('div',{staticClass:\"col-6 align-self-center text-break\"},[_vm._v(\"\\n \"+_vm._s(service.domain)+\"\\n \")]),_c('div',{staticClass:\"col-3\"},[_c('button',{staticClass:\"btn btn-info btn-block text-white\",attrs:{\"disabled\":service.hasSerpBook},on:{\"click\":function($event){return _vm.toggleInput('serpbook', service)}}},[_vm._v(\"Add Tracked Keywords\")])]),_c('div',{staticClass:\"col-3\"},[_c('button',{staticClass:\"btn btn-info btn-block text-white ml-2\",attrs:{\"disabled\":service.hasGoogleAnalytic},on:{\"click\":function($event){return _vm.toggleInput('analytic', service)}}},[_vm._v(\"Add Analytic\")])])])}),_c('popover',{attrs:{\"open\":_vm.addSerpBookOpen}},[_c('heading',{attrs:{\"stroked\":true,\"content\":\"Add Tracked Keywords Name\"}}),_c('div',{staticClass:\"form\"},[_c('text-input',{attrs:{\"indicators\":false},model:{value:(_vm.serpbookCatName),callback:function ($$v) {_vm.serpbookCatName=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"serpbookCatName\"}})],1),_c('button',{staticClass:\"btn btn-info text-white float-right ml-2\",attrs:{\"disabled\":!_vm.SerpBookEnabled},on:{\"click\":_vm.saveSerpBook}},[_vm._v(\"Save\")]),_c('button',{staticClass:\"btn btn-light float-right\",on:{\"click\":function($event){return _vm.toggleInput('serpbook')}}},[_vm._v(\"Cancel\")])],1),_c('popover',{attrs:{\"open\":_vm.addAnalyticOpen}},[_c('heading',{attrs:{\"stroked\":true,\"content\":\"Add Google Analytic's Profile View ID\"}}),_c('div',{staticClass:\"form-group\"},[_c('multiselect',{staticClass:\"inline\",attrs:{\"options\":_vm.ClientCerificates,\"label\":\"label\",\"track-by\":\"label\",\"placeholder\":\"select a Google API Email\"},model:{value:(_vm.analyticClientId),callback:function ($$v) {_vm.analyticClientId=$$v},expression:\"analyticClientId\"}}),_c('button',{staticClass:\"btn btn-info text-white\",on:{\"click\":_vm.toggleCertificate}},[_vm._v(\"+\")])],1),_c('text-input',{attrs:{\"placeholder\":\"Google Analytic's Profile View ID\",\"indicators\":true,\"is-valid\":_vm.AnalyticEnabled},model:{value:(_vm.analyticViewId),callback:function ($$v) {_vm.analyticViewId=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"analyticViewId\"}},[_vm._v(\"\\n Invalid analytic view id\\n \")]),_c('button',{staticClass:\"btn btn-info text-white float-right ml-2\",attrs:{\"disabled\":!_vm.AnalyticEnabled && _vm.analyticClientId == null},on:{\"click\":_vm.saveGoogleAnalytic}},[_vm._v(\"Save\")]),_c('button',{staticClass:\"btn btn-light float-right\",on:{\"click\":function($event){return _vm.toggleInput('analytic')}}},[_vm._v(\"Cancel\")])],1),_c('popover',{attrs:{\"open\":_vm.addCertificateOpen}},[_c('add-certificate',{attrs:{\"client-emails-and-ids\":_vm.ClientCerificates,\"imported\":true}},[_c('button',{staticClass:\"btn btn-info text-white modal-close-btn\",on:{\"click\":function($event){$event.preventDefault();return _vm.toggleCertificate($event)}}},[_vm._v(\"Close\")])])],1)],2):_vm._e()]}}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Vue } from 'vue-property-decorator'\r\nimport textInput from '../../../components/text-input/text-input.vue'\r\nimport { isGreaterThan, isBetween } from '../../../helper-functions/validators'\r\nimport addCertificate from '../add-google-certificate/add-google-certificate.vue'\r\nimport Multiselect from 'vue-multiselect'\r\nimport { IService, ICurrentService } from '@/types'\r\n\r\n@Component({\r\n components: {\r\n textInput,\r\n addCertificate,\r\n Multiselect\r\n }\r\n})\r\n\r\nexport default class AddDetails extends Vue {\r\n\r\n private namespace: string = '/Console';\r\n\r\n private clientEmailsAndIds: any = null;\r\n\r\n private incompleteServices: IService[] | null = null;\r\n\r\n private currentService: ICurrentService | null = null;\r\n\r\n private serpbookCatName: string = '';\r\n\r\n private analyticViewId: string = '';\r\n\r\n private analyticClientId: {label: string, clientId: string} | null = null;\r\n\r\n private addSerpBookOpen: boolean = false;\r\n\r\n private addAnalyticOpen: boolean = false;\r\n\r\n private addCertificateOpen: boolean = false;\r\n\r\n private alertMessage: string = '';\r\n\r\n private error: boolean = false;\r\n\r\n private get ClientCerificates (): {label: string, clientId: string}[] {\r\n\r\n return this.clientEmailsAndIds.map((client: {clientEmail: string, clientId: string}) => {\r\n\r\n return {label: client.clientEmail, clientId: client.clientId};\r\n });\r\n }\r\n\r\n private get SerpBookEnabled () {\r\n\r\n return isGreaterThan(0, this.serpbookCatName);\r\n }\r\n\r\n private get AnalyticEnabled () {\r\n\r\n return isBetween(5, 15, this.analyticViewId);\r\n }\r\n\r\n beforeMount () {\r\n\r\n this.getClientEmailsAndIds();\r\n this.getIncompleteServices();\r\n }\r\n\r\n private toggleCertificate () {\r\n\r\n this.addAnalyticOpen = !this.addAnalyticOpen;\r\n this.addCertificateOpen = !this.addAnalyticOpen;\r\n }\r\n\r\n private toggleInput (type: string, service?: IService) {\r\n\r\n if (service != undefined) {\r\n \r\n this.currentService = {\r\n serviceId: service.id,\r\n domain: service.domain\r\n } as ICurrentService;\r\n }\r\n\r\n if ('serpbook' === type) {\r\n \r\n return this.addSerpBookOpen = !this.addSerpBookOpen;\r\n }\r\n \r\n this.addAnalyticOpen = !this.addAnalyticOpen;\r\n }\r\n\r\n private alertReset () {\r\n\r\n setTimeout(() => { \r\n\r\n if (this.error) {\r\n\r\n this.error = !this.error;\r\n }\r\n\r\n this.alertMessage = '';\r\n }, 5000);\r\n }\r\n\r\n private async saveSerpBook (type: string) {\r\n\r\n if (this.addSerpBookOpen) {\r\n\r\n this.addSerpBookOpen = !this.addSerpBookOpen;\r\n }\r\n\r\n try {\r\n\r\n const response = await this.$axios.post(`${this.$apiUrl + this.namespace}/AddSerpBook`, {\r\n categoryName: this.serpbookCatName,\r\n ...this.currentService,\r\n });\r\n \r\n if (this.currentService) {\r\n \r\n this.alertMessage = `SerpBook successfully added to ${this.currentService.domain}`;\r\n this.serpbookCatName = '';\r\n this.currentService = null;\r\n this.alertReset();\r\n }\r\n \r\n this.getIncompleteServices();\r\n\r\n } catch (err) {\r\n\r\n this.error = !this.error;\r\n this.alertMessage = 'Ooops...';\r\n this.alertReset();\r\n }\r\n }\r\n\r\n private async saveGoogleAnalytic () {\r\n \r\n if (this.addAnalyticOpen) {\r\n\r\n this.addAnalyticOpen = !this.addAnalyticOpen;\r\n }\r\n\r\n try {\r\n\r\n const response = await this.$axios.post(`${this.$apiUrl + this.namespace}/AddGoogleAnalytic`, {\r\n clientId: (this.analyticClientId as {label: string, clientId: string}).clientId,\r\n viewId: this.analyticViewId,\r\n ...this.currentService,\r\n });\r\n \r\n if (this.currentService) {\r\n\r\n this.alertMessage = `SerpBook successfully added to ${this.currentService.domain}`;\r\n this.analyticClientId = null;\r\n this.analyticViewId = '';\r\n this.alertReset();\r\n }\r\n\r\n } catch (err) {\r\n\r\n this.error = !this.error;\r\n this.alertMessage = 'Ooops...';\r\n this.alertReset();\r\n }\r\n }\r\n\r\n private async getIncompleteServices () {\r\n\r\n try {\r\n\r\n const response = await this.$axios.get(`${this.$apiUrl + this.namespace}/IncompleteServices`);\r\n\r\n this.incompleteServices = response.data;\r\n\r\n } catch (err) {\r\n\r\n console.error(err);\r\n }\r\n }\r\n\r\n private async getClientEmailsAndIds () {\r\n\r\n try {\r\n\r\n const response = await this.$axios.get(`${this.$apiUrl + this.namespace}/ClientCertificates`);\r\n\r\n this.clientEmailsAndIds = response.data;\r\n } catch (err) {\r\n\r\n console.error(err);\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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!./add-details.ts?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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!./add-details.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./add-details.vue?vue&type=template&id=be0480b8&\"\nimport script from \"./add-details.ts?vue&type=script&lang=ts&\"\nexport * from \"./add-details.ts?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":""}