{"version":3,"sources":["webpack:///./src/views/Settings/Settings.vue","webpack:///./src/views/Settings/EmailSettings.vue","webpack:///./src/scripts/settings/emailSettings.js","webpack:///./src/scripts/settings/emailSettings.js?1f45","webpack:///./src/views/Settings/EmailSettings.vue?95d0","webpack:///./src/views/Settings/NotificationSettings.vue","webpack:///./src/scripts/settings/notificationSettings.js","webpack:///./src/scripts/settings/notificationSettings.js?9ee1","webpack:///./src/views/Settings/NotificationSettings.vue?fe14","webpack:///./src/scripts/settings/settings.js","webpack:///./src/scripts/settings/settings.js?bf31","webpack:///./src/views/Settings/Settings.vue?bf41","webpack:///./src/views/Settings/Settings.vue?61be"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","_m","staticStyle","attrs","slot","_v","staticRenderFns","directives","name","rawName","value","isLoading","expression","on","modify","model","request","machineStatus","callback","$$v","$set","promotion","billing","advertisement","extends","base","components","data","disabledSaveChanges","emailBilling","emailMachineStatus","emailPromotion","emailAdvertisement","created","userSettingsView","methods","processingEvent","param","event","change","_this","feedStatusLoading","API_CALL_STATUS","LOADING","api","baseRequest","SETTINGS_USER_API","EMAIL_SETTINGS_VIEW","then","res","responsedData","SUCCESS","machineList","catch","error","processCatchApiRequest","_this2","deviceInformation","JSON","stringify","getInformationClient","EMAIL_SETTINGS_MODIFY","notificationSuccess","notificationError","component","bootSuccess","balanceChange","recharge","NOTIFICATION_SETTINGS_VIEW","NOTIFICATION_SETTINGS_MODIFY","EmailSettings","NotificationSettings"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAACL,EAAIM,GAAG,GAAGJ,EAAG,MAAM,CAACG,YAAY,+BAA+BE,YAAY,CAAC,OAAS,OAAO,QAAU,OAAO,mBAAmB,YAAY,CAACL,EAAG,UAAU,CAACK,YAAY,CAAC,aAAa,QAAQC,MAAM,CAAC,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AAIC,YAAYC,OAAkBuB,6BAA8B1C,GAC7DqB,MAAK,WACJQ,EAAKM,oBAAoB,gBAAiB,8CAC1CN,EAAK5B,qBAAsB,EAC3B4B,EAAKf,kBAAkBC,OAAgBS,YAExCE,OAAM,SAAAC,GACLE,EAAKO,kBAAkB,cAAe,0CACtCP,EAAKD,uBAAuBD,EAAO,yBC1FoQ,ICO7S,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,I,QCAA,GAEb9B,QAASC,OAETC,WAAY,CACV4C,gBACAC,wBAGF5C,KAAI,WACF,MAAO,IAITM,QAAO,aAGPE,QAAS,CAEPC,gBAAe,SAACC,GACdzC,KAAKyC,EAAMC,OAAOD,EAAMV,SCtCuQ,ICQjS,G,UAAY,eACd,EACAjC,EACAY,GACA,EACA,KACA,KACA,OAIa,e,6CCnBf,W","file":"js/chunk-e41b9280.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"settings-container\"},[_vm._m(0),_c('div',{staticClass:\"d-flex flex-column flex-fill\",staticStyle:{\"height\":\"100%\",\"padding\":\"1rem\",\"background-color\":\"#f5f5f5\"}},[_c('el-tabs',{staticStyle:{\"box-shadow\":\"none\"},attrs:{\"type\":\"border-card\"}},[_c('el-tab-pane',{attrs:{\"label\":\"Account details\"}},[_c('span',{attrs:{\"slot\":\"label\"},slot:\"label\"},[_c('i',{staticClass:\"el-icon-news\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Notifications\")])]),_c('NotificationSettings')],1),_c('el-tab-pane',{attrs:{\"label\":\"Account details\"}},[_c('span',{attrs:{\"slot\":\"label\"},slot:\"label\"},[_c('i',{staticClass:\"el-icon-message\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Email\")])]),_c('EmailSettings')],1)],1)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"d-flex align-items-center justify-content-between\",staticStyle:{\"height\":\"3.5rem\",\"border-bottom\":\"1px solid #e0e0e0\",\"padding\":\"0 1rem\"}},[_c('div',{staticClass:\"pt-1\",staticStyle:{\"color\":\"#42a5f5\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{staticClass:\"ml-2\",staticStyle:{\"font-family\":\"Montserrat\"}},[_vm._v(\"Settings\")])])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('VuePerfectScrollbar',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticStyle:{\"height\":\"calc(100vh - 12.1rem - 30px)\",\"background-color\":\"white\",\"padding\":\"1rem\"}},[_c('div',{staticClass:\"d-flex flex-row mt-5 ml-5 mr-5\"},[_c('div',{staticClass:\"col p-0\",staticStyle:{\"margin-right\":\"5rem\"}},[_c('div',{staticClass:\"setting-item mt-0\"},[_c('div',{staticClass:\"d-flex flex-column flex-fill\"},[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"\\n Machine status messages\\n \")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Receive notification of the machine's status during\\n use. These messages include: notification of\\n successful boot, warning when changing service pack\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.machineStatus),callback:function ($$v) {_vm.$set(_vm.request, \"machineStatus\", $$v)},expression:\"request.machineStatus\"}})],1)]),_c('div',{staticClass:\"setting-item\"},[_c('div',{staticClass:\"d-flex flex-column flex-fill\"},[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"Promotion\")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Receive notifications of promotions, discounts,\\n programs for loyal customers ...\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.promotion),callback:function ($$v) {_vm.$set(_vm.request, \"promotion\", $$v)},expression:\"request.promotion\"}})],1)])]),_c('div',{staticClass:\"col p-0\"},[_c('div',{staticClass:\"setting-item mt-0\"},[_c('div',{staticClass:\"d-flex flex-column flex-fill\"},[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"\\n Billing service messages\\n \")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Receive service billing notifications. These notices\\n include: billing using the machine, billing rental\\n plan machine.\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.billing),callback:function ($$v) {_vm.$set(_vm.request, \"billing\", $$v)},expression:\"request.billing\"}})],1)]),_c('div',{staticClass:\"setting-item\"},[_c('div',{staticClass:\"d-flex flex-column flex-fill\"},[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"Advertisement\")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Receive advertising notifications related to newly\\n launched services, new service packs, upcoming\\n services ...\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.advertisement),callback:function ($$v) {_vm.$set(_vm.request, \"advertisement\", $$v)},expression:\"request.advertisement\"}})],1)])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// CSS \r\n\r\n//Lib \r\nimport moment from 'moment';\r\n\r\n// Api \r\nimport api from '@/api/baseApi';\r\n\r\n// Constant\r\nimport { SETTINGS_USER_API } from \"@/constant/apiSettings\";\r\nimport { API_CALL_STATUS } from \"@/constant/baseConstant\";\r\n\r\n// Extend\r\nimport base from '@/scripts/base';\r\n\r\n// Component \r\n\r\n// Function \r\n\r\nexport default {\r\n\r\n extends: base,\r\n\r\n components: {\r\n },\r\n\r\n data() {\r\n return {\r\n disabledSaveChanges: true,\r\n request: {\r\n emailBilling: true,\r\n emailMachineStatus: true,\r\n emailPromotion: true,\r\n emailAdvertisement: true,\r\n }\r\n }\r\n },\r\n\r\n created() {\r\n this.userSettingsView();\r\n },\r\n\r\n methods: {\r\n\r\n //#region Processing event\r\n processingEvent(param) {\r\n this[param.event](param.data);\r\n },\r\n //#endregion \r\n\r\n //#region Notification change\r\n change() {\r\n this.disabledSaveChanges = false;\r\n },\r\n //#endregion\r\n\r\n //#region Email settings ___ View\r\n userSettingsView() {\r\n this.feedStatusLoading(API_CALL_STATUS.LOADING);\r\n api.baseRequest(SETTINGS_USER_API.EMAIL_SETTINGS_VIEW, null)\r\n .then((res) => {\r\n let responsedData = res.data;\r\n this.request = responsedData;\r\n this.feedStatusLoading(API_CALL_STATUS.SUCCESS, this.machineList);\r\n })\r\n .catch(error => {\r\n this.processCatchApiRequest(error, \"Request failed ...\")\r\n });\r\n },\r\n //#endregion \r\n\r\n //#region Email settings ___ Modify\r\n modify() {\r\n let data = {\r\n billing: this.request.billing,\r\n machineStatus: this.request.machineStatus,\r\n promotion: this.request.promotion,\r\n advertisement: this.request.advertisement,\r\n deviceInformation: JSON.stringify(this.getInformationClient())\r\n }\r\n api.baseRequest(SETTINGS_USER_API.EMAIL_SETTINGS_MODIFY, data)\r\n .then(() => {\r\n this.notificationSuccess('Success ... !', `Your settings have been successfully saved`);\r\n this.disabledSaveChanges = true;\r\n this.feedStatusLoading(API_CALL_STATUS.SUCCESS);\r\n })\r\n .catch(error => {\r\n this.notificationError('Error ... !', `Oops, an unexpected error has occurred`);\r\n this.processCatchApiRequest(error, \"Boot failed ...\")\r\n });\r\n },\r\n //#endregion\r\n },\r\n}","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./emailSettings.js?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./emailSettings.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./EmailSettings.vue?vue&type=template&id=13478c48\"\nimport script from \"@/scripts/settings/emailSettings.js?vue&type=script&lang=js&external\"\nexport * from \"@/scripts/settings/emailSettings.js?vue&type=script&lang=js&external\"\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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('VuePerfectScrollbar',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticStyle:{\"height\":\"calc(100vh - 12.1rem - 30px)\",\"background-color\":\"white\",\"padding\":\"1rem\"}},[_c('div',{staticClass:\"d-flex flex-row mt-5 ml-5 mr-5\"},[_c('div',{staticClass:\"col p-0\",staticStyle:{\"margin-right\":\"5rem\"}},[_c('div',{staticClass:\"setting-item mt-0\"},[_c('div',[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"\\n Machine booted successfully\\n \")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Receive notification that your machine has\\n successfully booted.\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.bootSuccess),callback:function ($$v) {_vm.$set(_vm.request, \"bootSuccess\", $$v)},expression:\"request.bootSuccess\"}})],1)]),_c('div',{staticClass:\"setting-item\"},[_c('div',[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"\\n Account balance changes\\n \")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Notice when your account balance changes.\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.balanceChange),callback:function ($$v) {_vm.$set(_vm.request, \"balanceChange\", $$v)},expression:\"request.balanceChange\"}})],1)]),_c('div',{staticClass:\"setting-item\"},[_c('div',{staticClass:\"d-flex flex-column flex-fill\"},[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"Promotion\")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Receive notifications of promotions, discounts,\\n programs for loyal customers ...\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.promotion),callback:function ($$v) {_vm.$set(_vm.request, \"promotion\", $$v)},expression:\"request.promotion\"}})],1)])]),_c('div',{staticClass:\"col p-0\"},[_c('div',{staticClass:\"setting-item mt-0\"},[_c('div',{staticClass:\"d-flex flex-column flex-fill\"},[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"\\n Deposit is successful\\n \")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Notification when you have successfully deposited\\n into your account.\\n \")])]),_c('div',{staticClass:\"setting-item-switch\"},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.recharge),callback:function ($$v) {_vm.$set(_vm.request, \"recharge\", $$v)},expression:\"request.recharge\"}})],1)]),_c('div',{staticClass:\"setting-item\"},[_c('div',{staticClass:\"d-flex flex-column flex-fill\"},[_c('div',{staticClass:\"setting-item-title\"},[_vm._v(\"Advertisement\")]),_c('div',{staticClass:\"setting-item-description\"},[_vm._v(\"\\n Receive advertising notifications related to newly\\n launched services, new service packs, upcoming\\n services ...\\n \")])]),_c('div',{staticClass:\"d-flex flex-row justify-content-end\",staticStyle:{\"width\":\"10rem\"}},[_c('el-switch',{on:{\"change\":_vm.modify},model:{value:(_vm.request.advertisement),callback:function ($$v) {_vm.$set(_vm.request, \"advertisement\", $$v)},expression:\"request.advertisement\"}})],1)])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// CSS \r\n\r\n//Lib \r\nimport moment from 'moment';\r\n\r\n// Api \r\nimport api from '@/api/baseApi';\r\n\r\n// Constant\r\nimport { SETTINGS_USER_API } from \"@/constant/apiSettings\";\r\nimport { API_CALL_STATUS } from \"@/constant/baseConstant\";\r\n\r\n// Extend\r\nimport base from '@/scripts/base';\r\n\r\n// Component \r\n\r\n// Function \r\n\r\nexport default {\r\n\r\n extends: base,\r\n\r\n components: {\r\n },\r\n\r\n data() {\r\n return {\r\n disabledSaveChanges: true,\r\n request: {\r\n bootSuccess: true,\r\n recharge: true,\r\n balanceChange: true,\r\n promotion: true,\r\n advertisement: true,\r\n }\r\n }\r\n },\r\n\r\n created() {\r\n this.userSettingsView();\r\n },\r\n\r\n methods: {\r\n\r\n //#region Processing event\r\n processingEvent(param) {\r\n this[param.event](param.data);\r\n },\r\n //#endregion \r\n\r\n //#region Notification change\r\n change() {\r\n this.disabledSaveChanges = false;\r\n },\r\n //#endregion\r\n\r\n //#region Notification ___ View\r\n userSettingsView() {\r\n this.feedStatusLoading(API_CALL_STATUS.LOADING);\r\n api.baseRequest(SETTINGS_USER_API.NOTIFICATION_SETTINGS_VIEW, null)\r\n .then((res) => {\r\n let responsedData = res.data;\r\n this.request = responsedData;\r\n this.feedStatusLoading(API_CALL_STATUS.SUCCESS, this.machineList);\r\n })\r\n .catch(error => {\r\n this.processCatchApiRequest(error, \"Request failed ...\")\r\n });\r\n },\r\n //#endregion \r\n\r\n //#region Notification ___ Modify\r\n modify() {\r\n let data = {\r\n bootSuccess: this.request.bootSuccess,\r\n recharge: this.request.recharge,\r\n balanceChange: this.request.balanceChange,\r\n promotion: this.request.promotion,\r\n advertisement: this.request.advertisement,\r\n deviceInformation: JSON.stringify(this.getInformationClient())\r\n }\r\n api.baseRequest(SETTINGS_USER_API.NOTIFICATION_SETTINGS_MODIFY, data)\r\n .then(() => {\r\n this.notificationSuccess('Success ... !', `Your settings have been successfully saved`);\r\n this.disabledSaveChanges = true;\r\n this.feedStatusLoading(API_CALL_STATUS.SUCCESS);\r\n })\r\n .catch(error => {\r\n this.notificationError('Error ... !', `Oops, an unexpected error has occurred`);\r\n this.processCatchApiRequest(error, \"Boot failed ...\")\r\n });\r\n },\r\n //#endregion\r\n },\r\n}","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./notificationSettings.js?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./notificationSettings.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./NotificationSettings.vue?vue&type=template&id=5767e744\"\nimport script from \"@/scripts/settings/notificationSettings.js?vue&type=script&lang=js&external\"\nexport * from \"@/scripts/settings/notificationSettings.js?vue&type=script&lang=js&external\"\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","// CSS \r\nimport '@/assets/css/settings.scss';\r\n\r\n//Lib \r\n\r\n// Api \r\n\r\n// Constant \r\n\r\n// Extend\r\nimport base from '@/scripts/base';\r\n\r\n// Component \r\nimport EmailSettings from \"@/views/Settings/EmailSettings\";\r\nimport NotificationSettings from \"@/views/Settings/NotificationSettings\";\r\n\r\n// Function \r\n\r\nexport default {\r\n\r\n extends: base,\r\n\r\n components: {\r\n EmailSettings,\r\n NotificationSettings,\r\n },\r\n\r\n data() {\r\n return {\r\n }\r\n },\r\n\r\n created() {\r\n },\r\n\r\n methods: {\r\n //#region Processing event\r\n processingEvent(param) {\r\n this[param.event](param.data);\r\n },\r\n //#endregion \r\n },\r\n}","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./settings.js?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./settings.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./Settings.vue?vue&type=template&id=4bc88a17\"\nimport script from \"@/scripts/settings/settings.js?vue&type=script&lang=js&external\"\nexport * from \"@/scripts/settings/settings.js?vue&type=script&lang=js&external\"\nimport style0 from \"./Settings.vue?vue&type=style&index=0&id=4bc88a17&prod&lang=css\"\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","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.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/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Settings.vue?vue&type=style&index=0&id=4bc88a17&prod&lang=css\""],"sourceRoot":""}