{"version":3,"sources":["webpack:///./src/views/Notification.vue?72b9","webpack:///./src/views/Notification.vue","webpack:///./src/views/Notification.vue?f146","webpack:///./src/views/Notification.vue?0299","webpack:///src/views/Notification.vue","webpack:///./src/views/Notification.vue?ef18"],"names":["component","mixins","components","data","items","computed","fields","userAccess","this","$store","state","adminConsole","userAccessLevel","subId","$msal","user","idTokenClaims","sub","notificationData","preloadNoti","isFirstTime","mounted","commit","methods","checkAllPMC","k","checkOrUncheck","v","Portal_Message_Centre","indexOf","checkAllAN","Activity_Notification","map","i","checkKey","type","method","updateNotification","forEach","push","list","subid","subscriptioncode","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","labelScript","_l","index","key","class","_v","_s","title","disabled","on","$event","model","value","callback","$$v","$set","expression","staticRenderFns"],"mappings":"kHAAA,yG,oCCAA,8IAQIA,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,WACA,MAIa,aAAAA,E,6CCnBf,iHAAyiB,eAAG,G,oCCA5iB,wGAAsV,2B,iJCwFtV,cACEC,OAAQ,CAAC,EAAX,YACEC,WAAY,CAAd,iDACEC,KAHF,WAGA,MACI,MAAO,CACLC,MAAO,CACb,CACQ,MAAR,6CACQ,IAAR,GACQ,sBAAR,UACQ,sBAAR,WAEA,CACQ,MAAR,aACQ,IAAR,YACQ,sBAAR,QACQ,sBAAR,SAEA,CACQ,MAAR,YACQ,IAAR,uBAEQ,sBAAR,QACQ,sBAAR,QACQ,SAAR,YAEA,CACQ,MAAR,oBACQ,IAAR,+BAEQ,sBAAR,QACQ,sBAAR,QACQ,SAAR,YAEA,CACQ,MAAR,uBACQ,IAAR,gBAEQ,sBAAR,QACQ,sBAAR,QACQ,SAAR,YAEA,CACQ,MAAR,qBACQ,IAAR,kBAEQ,sBAAR,QACQ,sBAAR,QACQ,SAAR,YAEA,CACQ,MAAR,2BACQ,IAAR,eAEQ,sBAAR,QACQ,sBAAR,QACQ,SAAR,YAEA,CACQ,MAAR,0BACQ,IAAR,wBAEQ,sBAA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AIA,KAEA,YAEIC,YAAa,WACX,OAAOZ,KAAKC,OAAOC,MAAMU,cAG7BC,QA7VF,WA6VA,WACIb,KAAKC,OAAOa,OAAO,uBAAuB,GAC1Cd,KAAKC,OACT,4BAAM,MAAN,aACA,iBACM,EAAN,6BACA,QACA,eACA,uBACA,8CAEM,EAAN,6BACA,QACA,eACA,gCACA,cAEM,EAAN,6BACA,QACA,eACA,0BACA,aAEM,EAAN,6BACA,QACA,eACA,iCACA,qBAEM,EAAN,6BACA,QACA,eACA,0BACA,wBAEM,EAAN,6BACA,QACA,eACA,4BACA,sBAEM,EAAN,6BACA,QACA,eACA,0BACA,4BAEM,EAAN,6BACA,QACA,eACA,0BACA,2BAEM,EAAN,6BACA,QACA,eACA,0BACA,uBAEM,EAAN,6BACA,QACA,eACA,yBACA,8DAEM,EAAN,8BACA,QACA,eACA,kCACA,cAEM,EAAN,8BACA,QACA,eACA,4BACA,aAEM,EAAN,8BACA,QACA,eACA,mCACA,qBAEM,EAAN,8BACA,QACA,eACA,4BACA,wBAEM,EAAN,8BACA,QACA,eACA,8BACA,sBAEM,EAAN,8BACA,QACA,eACA,4BACA,4BAEM,EAAN,8BACA,QACA,eACA,4BACA,2BAEM,EAAN,8BACA,QACA,eACA,4BACA,uBAEM,EAAN,8BACA,QACA,eACA,yBACA,yDAEM,EAAN,8BACA,QACA,eACA,kCACA,cAEM,EAAN,8BACA,QACA,eACA,4BACA,aAEM,EAAN,8BACA,QACA,eACA,mCACA,qBAEM,EAAN,8BACA,QACA,eACA,4BACA,wBAEM,EAAN,8BACA,QACA,eACA,8BACA,sBAEM,EAAN,8BACA,QACA,eACA,4BACA,gCAEM,EAAN,8BACA,QACA,eACA,4BACA,2BAEM,EAAN,8BACA,QACA,eACA,4BACA,uBAEM,EAAN,8BACA,QACA,eACA,2BACA,uGAEM,EAAN,8BACA,QACA,eACA,oCACA,cAEM,EAAN,8BACA,QACA,eACA,8BACA,aAEM,EAAN,8BACA,QACA,eACA,qCACA,qBAE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AI,CAACgB,EAAIY,GAAG,IAAIZ,EAAIa,GAAGxB,EAAEyB,OAAO,OAAOX,EAAG,kBAAkB,CAACE,YAAY,QAAQM,MAAiC,WAA3BtB,EAAEL,sBAAqC,SAAW,GAAGsB,MAAM,CAAC,MAAQ,OAAO,kBAAkB,QAAQ,SAAWjB,EAAE0B,UAAUC,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOjB,EAAIpB,YAAYS,EAAEqB,IAAKrB,EAAEL,yBAAyBkC,MAAM,CAACC,MAAO9B,EAAuB,sBAAE+B,SAAS,SAAUC,GAAMrB,EAAIsB,KAAKjC,EAAG,wBAAyBgC,IAAME,WAAW,6BAA6BpB,EAAG,kBAAkB,CAACE,YAAY,QAAQM,MAAiC,WAA3BtB,EAAEF,sBAAqC,SAAW,GAAGmB,MAAM,CAAC,MAAQ,OAAO,kBAAkB,QAAQ,SAAWjB,EAAE0B,UAAUC,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOjB,EAAId,WAAWG,EAAEqB,IAAKrB,EAAEF,yBAAyB+B,MAAM,CAACC,MAAO9B,EAAuB,sBAAE+B,SAAS,SAAUC,GAAMrB,EAAIsB,KAAKjC,EAAG,wBAAyBgC,IAAME,WAAW,8BAA8B,OAAM,GAAGpB,EAAG,WAAW,CAACE,YAAY,wBAAwBW,GAAG,CAAC,MAAQhB,EAAIP,qBAAqB,CAACO,EAAIY,GAAGZ,EAAIa,GAAGb,EAAIO,YAAa,QAAS,eAAgB,2BAA4B,WAAY,OAAOJ,EAAG,OAAO,CAACE,YAAY,cAAc,MAAM,IACnkDmB,EAAkB,I","file":"js/chunk-553e943d.35a1ef3edd7c0984a4b8.1741903125656.js","sourcesContent":["export * from \"-!../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"453159ce-vue-loader-template\\\"}!../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Notification.vue?vue&type=template&id=2b13dfad&scoped=true&\"","import { render, staticRenderFns } from \"./Notification.vue?vue&type=template&id=2b13dfad&scoped=true&\"\nimport script from \"./Notification.vue?vue&type=script&lang=js&\"\nexport * from \"./Notification.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Notification.vue?vue&type=style&index=0&id=2b13dfad&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  \"2b13dfad\",\n  null\n  \n)\n\nexport default component.exports","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/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Notification.vue?vue&type=style&index=0&id=2b13dfad&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/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Notification.vue?vue&type=style&index=0&id=2b13dfad&lang=scss&scoped=true&\"","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/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Notification.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/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!./Notification.vue?vue&type=script&lang=js&\"","<template>\r\n  <div class=\"mainContainer\">\r\n    <FlowTitle\r\n      :title=\"\r\n        labelScript(\r\n          'LABEL',\r\n          'NOTIFICATION',\r\n          'NotificationTitle',\r\n          'Notification preferences'\r\n        )\r\n      \"\r\n    />\r\n    <FlowContent\r\n      :title=\"\r\n        labelScript(\r\n          'LABEL',\r\n          'NOTIFICATION',\r\n          'NotificationSubTitle',\r\n          'Notification preferences'\r\n        )\r\n      \"\r\n    >\r\n      <div class=\"notification\">\r\n        <div class=\"NotiTable\">\r\n          <div class=\"row\">\r\n            <h6\r\n              v-for=\"(i, index) in fields\"\r\n              :key=\"index\"\r\n              class=\"text-center font-weight-bold pb-3\"\r\n              :class=\"i == '' ? 'col-6' : 'col-3'\"\r\n            >\r\n              {{ i }}\r\n            </h6>\r\n          </div>\r\n          <div\r\n            v-for=\"(i, index) in notificationData\"\r\n            :key=\"index\"\r\n            class=\"row pt-3 pb-3 border\"\r\n          >\r\n            <p\r\n              class=\"col-6 text-left\"\r\n              :class=\"\r\n                i.Portal_Message_Centre == 'nothing' ? 'font-weight-bold' : ''\r\n              \"\r\n            >\r\n              {{ i.title }}\r\n            </p>\r\n            <b-form-checkbox\r\n              class=\"col-3\"\r\n              v-model=\"i.Portal_Message_Centre\"\r\n              value=\"true\"\r\n              unchecked-value=\"false\"\r\n              :class=\"i.Portal_Message_Centre == 'nothing' ? 'd-none' : ''\"\r\n              @change=\"checkAllPMC(i.key, i.Portal_Message_Centre)\"\r\n              :disabled=\"i.disabled\"\r\n            ></b-form-checkbox>\r\n            <b-form-checkbox\r\n              class=\"col-3\"\r\n              v-model=\"i.Activity_Notification\"\r\n              value=\"true\"\r\n              unchecked-value=\"false\"\r\n              :class=\"i.Activity_Notification == 'nothing' ? 'd-none' : ''\"\r\n              @change=\"checkAllAN(i.key, i.Activity_Notification)\"\r\n              :disabled=\"i.disabled\"\r\n            ></b-form-checkbox>\r\n          </div>\r\n        </div>\r\n        <b-button class=\"button subButton mt-4\" @click=\"updateNotification\"\r\n          >{{\r\n            labelScript(\r\n              \"LABEL\",\r\n              \"NOTIFICATION\",\r\n              \"NotificationUpdateButton\",\r\n              \"Update\"\r\n            )\r\n          }}\r\n        </b-button>\r\n        <span class=\"clearfix\"></span>\r\n      </div>\r\n    </FlowContent>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport { okModal } from \"@/components/bvModal.js\";\r\nimport FlowTitle from \"@/components/flowComponents/FlowTitle.vue\";\r\nimport FlowContent from \"@/components/flowComponents/FlowContent.vue\";\r\nimport labelMixin from \"@/mixin/labelMixin\";\r\nexport default {\r\n  mixins: [labelMixin],\r\n  components: { FlowTitle, FlowContent },\r\n  data() {\r\n    return {\r\n      items: [\r\n        {\r\n          title: \"Notify me when a process is assigned to me\",\r\n          key: \"\",\r\n          Portal_Message_Centre: \"nothing\",\r\n          Activity_Notification: \"nothing\",\r\n        },\r\n        {\r\n          title: \"Select all\",\r\n          key: \"assignAll\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n        },\r\n        {\r\n          title: \"Enrolment\",\r\n          key: \"EnrollmentAssignedMe\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignMe\",\r\n        },\r\n        {\r\n          title: \"Enrolment Request\",\r\n          key: \"EnrolmentRequestAssignedToMe\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignMe\",\r\n        },\r\n        {\r\n          title: \"Change of Employment\",\r\n          key: \"COEAssignedMe\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignMe\",\r\n        },\r\n        {\r\n          title: \"Leave Notification\",\r\n          key: \"LeaveAssignedMe\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignMe\",\r\n        },\r\n        {\r\n          title: \"Pension Estimate Request\",\r\n          key: \"PEAssignedMe\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignMe\",\r\n        },\r\n        {\r\n          title: \"Termination Application\",\r\n          key: \"TerminationAssignedMe\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignMe\",\r\n        },\r\n        {\r\n          title: \"Pension Application\",\r\n          key: \"PAAssignedMe\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignMe\",\r\n        },\r\n        {\r\n          title: \"Notify me when a process is assigned to someone on my team\",\r\n          key: \"\",\r\n          Portal_Message_Centre: \"nothing\",\r\n          Activity_Notification: \"nothing\",\r\n        },\r\n        {\r\n          title: \"Select all\",\r\n          key: \"assignAllElse\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n        },\r\n        {\r\n          title: \"Enrolment\",\r\n          key: \"EnrollmentAssignedOther\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignElse\",\r\n        },\r\n        {\r\n          title: \"Enrolment Request\",\r\n          key: \"EnrolmentRequestAssignedOther\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignElse\",\r\n        },\r\n        {\r\n          title: \"Change of Employment\",\r\n          key: \"COEAssignedOther\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignElse\",\r\n        },\r\n        {\r\n          title: \"Leave Notification\",\r\n          key: \"LeaveAssignedOther\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignElse\",\r\n        },\r\n        {\r\n          title: \"Pension Estimate Request\",\r\n          key: \"PEAssignedOther\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignElse\",\r\n        },\r\n        {\r\n          title: \"Termination Application\",\r\n          key: \"TerminationAssignedOther\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignElse\",\r\n        },\r\n        {\r\n          title: \"Pension Application\",\r\n          key: \"PAAssignedOther\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"assignElse\",\r\n        },\r\n        {\r\n          title: \"Notify me when a process request is submitted to CAAT\",\r\n          key: \"\",\r\n          Portal_Message_Centre: \"nothing\",\r\n          Activity_Notification: \"nothing\",\r\n        },\r\n        {\r\n          title: \"Select all\",\r\n          key: \"submitAll\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n        },\r\n        {\r\n          title: \"Enrolment\",\r\n          key: \"EnrollmentSubmittedToCAAT\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"submitCAAT\",\r\n        },\r\n        {\r\n          title: \"Enrolment Request\",\r\n          key: \"EnrolmentRequestSubmitedToCAAT\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"submitCAAT\",\r\n        },\r\n        {\r\n          title: \"Change of Employment\",\r\n          key: \"COESubmittedToCAAT\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"submitCAAT\",\r\n        },\r\n        {\r\n          title: \"Leave Notification\",\r\n          key: \"LeaveSubmittedToCAAT\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"submitCAAT\",\r\n        },\r\n        {\r\n          title: \"Pension Estimate Application\",\r\n          key: \"PESubmittedToCAAT\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"submitCAAT\",\r\n        },\r\n        {\r\n          title: \"Termination Application\",\r\n          key: \"TerminationSubmittedToCAAT\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"submitCAAT\",\r\n        },\r\n        {\r\n          title: \"Pension Application\",\r\n          key: \"PASubmittedToCAAT\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"submitCAAT\",\r\n        },\r\n        {\r\n          title:\r\n            \"Notify me when an incomplete process is cancelled, declined, or deleted prior to submitting to CAAT\",\r\n          key: \"\",\r\n          Portal_Message_Centre: \"nothing\",\r\n          Activity_Notification: \"nothing\",\r\n        },\r\n        {\r\n          title: \"Select all\",\r\n          key: \"cancelSubmitAll\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n        },\r\n        {\r\n          title: \"Enrolment\",\r\n          key: \"EnrollmentNotCompleted\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"cancelSubmit\",\r\n        },\r\n        {\r\n          title: \"Enrolment Request\",\r\n          key: \"EnrolmentRequestDeclined\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"cancelSubmit\",\r\n        },\r\n        {\r\n          title: \"Notify me when a process is overdue\",\r\n          key: \"\",\r\n          Portal_Message_Centre: \"nothing\",\r\n          Activity_Notification: \"nothing\",\r\n        },\r\n        {\r\n          title: \"Select all\",\r\n          key: \"overDueAll\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n        },\r\n        {\r\n          title: \"Leave Notification\",\r\n          key: \"LeaveOverDue\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"overDue\",\r\n        },\r\n        {\r\n          title: \"Pension Estimate Request\",\r\n          key: \"PEOverDue\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"overDue\",\r\n        },\r\n        {\r\n          title: \"Notify me when a request is received from an employee\",\r\n          key: \"\",\r\n          Portal_Message_Centre: \"nothing\",\r\n          Activity_Notification: \"nothing\",\r\n        },\r\n        {\r\n          title: \"Select all\",\r\n          key: \"RequestReceivedAll\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n        },\r\n        {\r\n          title: \"Enrolment Request\",\r\n          key: \"EnrolmentRequestReceived\",\r\n          //Email_work: \"false\",\r\n          disabled: this.$store.state.adminConsole.userAccessLevel?.CAATEMPLOYERSERVICES ? true : false,\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"receivedSubmit\",\r\n        },\r\n        {\r\n          title: \"Purchase Request\",\r\n          key: \"PurchaseRequestReceived\",\r\n          //Email_work: \"false\",\r\n          Portal_Message_Centre: \"false\",\r\n          Activity_Notification: \"false\",\r\n          checkKey: \"receivedSubmit\",\r\n        },\r\n      ],\r\n    };\r\n  },\r\n  computed: {\r\n    fields: function() {\r\n      return [\r\n        \"\",\r\n        // \"Email_work\",\r\n        this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationTableTitle1\",\r\n          \"Message Centre\"\r\n        ),\r\n        this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationTableTitle2\",\r\n          \"Activity Log\"\r\n        ),\r\n      ];\r\n    },\r\n    userAccess: function() {\r\n      return this.$store.state.adminConsole.userAccessLevel;\r\n    },\r\n    subId: function() {\r\n      return this.$msal.data.user.idTokenClaims.sub;\r\n    },\r\n    notificationData: function() {\r\n      let preloadNoti = this.$store.state.notificationData;\r\n      return preloadNoti\r\n        ? this.items.map((i) => {\r\n            preloadNoti.map((j) => {\r\n              if (i.key == j.subsCode) {\r\n                // if (j.value.indexOf(1) !== -1) {\r\n                //   i.Email_work = \"true\";\r\n                // }\r\n                if (j.value.indexOf(2) !== -1) {\r\n                  i.Portal_Message_Centre = \"true\";\r\n                }\r\n                if (j.value.indexOf(4) !== -1) {\r\n                  i.Activity_Notification = \"true\";\r\n                }\r\n              }\r\n            });\r\n            return i;\r\n          })\r\n        : this.items;\r\n    },\r\n    isFirstTime: function() {\r\n      return this.$store.state.isFirstTime;\r\n    },\r\n  },\r\n  mounted() {\r\n    this.$store.commit(\"switchLoadingStatus\", true);\r\n    this.$store\r\n      .dispatch(\"getNotification\", { subId: this.subId })\r\n      .then(() => {\r\n        this.items[0].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMe\",\r\n          \"Notify me when a process is assigned to me\"\r\n        );\r\n        this.items[1].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMeSelectAll\",\r\n          \"Select all\"\r\n        );\r\n        this.items[2].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMeENR\",\r\n          \"Enrolment\"\r\n        );\r\n        this.items[3].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMeENRRequest\",\r\n          \"Enrolment Request\"\r\n        );\r\n        this.items[4].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMeCOE\",\r\n          \"Change of Employment\"\r\n        );\r\n        this.items[5].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMeLeave\",\r\n          \"Leave Notification\"\r\n        );\r\n        this.items[6].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMePES\",\r\n          \"Pension Estimate Request\"\r\n        );\r\n        this.items[7].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMeTER\",\r\n          \"Termination Application\"\r\n        );\r\n        this.items[8].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignMeRET\",\r\n          \"Pension Application\"\r\n        );\r\n        this.items[9].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElse\",\r\n          \"Notify me when a process is assigned to someone on my team\"\r\n        );\r\n        this.items[10].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElseSelectAll\",\r\n          \"Select all\"\r\n        );\r\n        this.items[11].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElseENR\",\r\n          \"Enrolment\"\r\n        );\r\n        this.items[12].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElseENRRequest\",\r\n          \"Enrolment Request\"\r\n        );\r\n        this.items[13].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElseCOE\",\r\n          \"Change of Employment\"\r\n        );\r\n        this.items[14].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElseLeave\",\r\n          \"Leave Notification\"\r\n        );\r\n        this.items[15].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElsePES\",\r\n          \"Pension Estimate Request\"\r\n        );\r\n        this.items[16].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElseTER\",\r\n          \"Termination Application\"\r\n        );\r\n        this.items[17].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationAssignElseRET\",\r\n          \"Pension Application\"\r\n        );\r\n        this.items[18].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAAT\",\r\n          \"Notify me when a process request is submitted to CAAT\"\r\n        );\r\n        this.items[19].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATSelectAll\",\r\n          \"Select all\"\r\n        );\r\n        this.items[20].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATENR\",\r\n          \"Enrolment\"\r\n        );\r\n        this.items[21].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATENRRequest\",\r\n          \"Enrolment Request\"\r\n        );\r\n        this.items[22].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATCOE\",\r\n          \"Change of Employment\"\r\n        );\r\n        this.items[23].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATLeave\",\r\n          \"Leave Notification\"\r\n        );\r\n        this.items[24].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATPES\",\r\n          \"Pension Estimate Application\"\r\n        );\r\n        this.items[25].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATTER\",\r\n          \"Termination Application\"\r\n        );\r\n        this.items[26].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationSubmitCAATRET\",\r\n          \"Pension Application\"\r\n        );\r\n        this.items[27].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationCancelSubmit\",\r\n          \"Notify me when an incomplete process is cancelled, declined, or deleted prior to submitting to CAAT\"\r\n        );\r\n        this.items[28].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationCancelSubmitSelectAll\",\r\n          \"Select all\"\r\n        );\r\n        this.items[29].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationCancelSubmitENR\",\r\n          \"Enrolment\"\r\n        );\r\n        this.items[30].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationCancelSubmitENRRequest\",\r\n          \"Enrolment Request\"\r\n        );\r\n        this.items[31].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationOverdue\",\r\n          \"Notify me when a process is overdue\"\r\n        );\r\n        this.items[32].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationOverdueSelectAll\",\r\n          \"Select all\"\r\n        );\r\n        this.items[33].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationOverdueLeave\",\r\n          \"Leave Notification\"\r\n        );\r\n        this.items[34].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationOverduePES\",\r\n          \"Pension Estimate Request\"\r\n        );\r\n        this.items[35].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationReceived\",\r\n          \"Notify me when a request is received from an employee\"\r\n        );\r\n        this.items[36].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationReceivedSelectAll\",\r\n          \"Select all\"\r\n        );\r\n        this.items[37].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationReceivedER\",\r\n          \"Enrolment Request\"\r\n        );\r\n        this.items[38].title = this.labelScript(\r\n          \"LABEL\",\r\n          \"NOTIFICATION\",\r\n          \"NotificationReceivedPR\",\r\n          \"Purchase Request\"\r\n        );\r\n        this.$store.commit(\"switchLoadingStatus\", false);\r\n      })\r\n      .then(() => {\r\n        if (this.isFirstTime) {\r\n          this.items.map((i) => {\r\n            if (i.key) {\r\n              if (\r\n                (i.key === \"EnrolmentRequestReceived\" ||\r\n                  i.key === \"RequestReceivedAll\") &&\r\n                this.userAccess?.CAATEMPLOYERSERVICES\r\n              ) {\r\n                i.Portal_Message_Centre = \"false\";\r\n                i.Activity_Notification = \"false\";\r\n              } else {\r\n                i.Portal_Message_Centre = \"true\";\r\n                i.Activity_Notification = \"true\";\r\n              }\r\n            }\r\n            return i;\r\n          });\r\n        }\r\n      });\r\n    this.$store.commit(\"updatQuickSearchValue\", \"\");\r\n  },\r\n  methods: {\r\n    checkAllPMC(k, v) {\r\n      if (k == \"assignAll\") {\r\n        this.checkOrUncheck(v, \"assignMe\", \"Portal_Message_Centre\");\r\n      } else if (k == \"assignAllElse\") {\r\n        this.checkOrUncheck(v, \"assignElse\", \"Portal_Message_Centre\");\r\n      } else if (k == \"submitAll\") {\r\n        this.checkOrUncheck(v, \"submitCAAT\", \"Portal_Message_Centre\");\r\n      } else if (k == \"cancelSubmitAll\") {\r\n        this.checkOrUncheck(v, \"cancelSubmit\", \"Portal_Message_Centre\");\r\n      } else if (k == \"overDueAll\") {\r\n        this.checkOrUncheck(v, \"overDue\", \"Portal_Message_Centre\");\r\n      } else if (k == \"RequestReceivedAll\") {\r\n        this.checkOrUncheck(v, \"receivedSubmit\", \"Portal_Message_Centre\");\r\n      }\r\n      if (\r\n        [\r\n          \"EnrollmentAssignedMe\",\r\n          \"EnrolmentRequestAssignedToMe\",\r\n          \"COEAssignedMe\",\r\n          \"LeaveAssignedMe\",\r\n          \"PEAssignedMe\",\r\n          \"TerminationAssignedMe\",\r\n          \"PAAssignedMe\",\r\n        ].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[1].Portal_Message_Centre = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\r\n          \"EnrollmentAssignedOther\",\r\n          \"EnrolmentRequestAssignedOther\",\r\n          \"COEAssignedOther\",\r\n          \"LeaveAssignedOther\",\r\n          \"PEAssignedOther\",\r\n          \"TerminationAssignedOther\",\r\n          \"PAAssignedOther\",\r\n        ].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[10].Portal_Message_Centre = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\r\n          \"EnrollmentSubmittedToCAAT\",\r\n          \"EnrolmentRequestSubmitedToCAAT\",\r\n          \"COESubmittedToCAAT\",\r\n          \"LeaveSubmittedToCAAT\",\r\n          \"PESubmittedToCAAT\",\r\n          \"TerminationSubmittedToCAAT\",\r\n          \"PASubmittedToCAAT\",\r\n        ].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[19].Portal_Message_Centre = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\"EnrollmentNotCompleted\", \"EnrolmentRequestDeclined\"].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[28].Portal_Message_Centre = \"false\";\r\n        }\r\n      }\r\n      if ([\"LeaveOverDue\", \"PEOverDue\"].indexOf(k) !== -1) {\r\n        if (v == \"true\") {\r\n          this.items[32].Portal_Message_Centre = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\"EnrolmentRequestReceived\", \"PurchaseRequestReceived\"].indexOf(k) !==\r\n        -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[36].Portal_Message_Centre = \"false\";\r\n        }\r\n      }\r\n    },\r\n    checkAllAN(k, v) {\r\n      if (k == \"assignAll\") {\r\n        this.checkOrUncheck(v, \"assignMe\", \"Activity_Notification\");\r\n      } else if (k == \"assignAllElse\") {\r\n        this.checkOrUncheck(v, \"assignElse\", \"Activity_Notification\");\r\n      } else if (k == \"submitAll\") {\r\n        this.checkOrUncheck(v, \"submitCAAT\", \"Activity_Notification\");\r\n      } else if (k == \"cancelSubmitAll\") {\r\n        this.checkOrUncheck(v, \"cancelSubmit\", \"Activity_Notification\");\r\n      } else if (k == \"overDueAll\") {\r\n        this.checkOrUncheck(v, \"overDue\", \"Activity_Notification\");\r\n      } else if (k == \"RequestReceivedAll\") {\r\n        this.checkOrUncheck(v, \"receivedSubmit\", \"Activity_Notification\");\r\n      }\r\n      if (\r\n        [\r\n          \"EnrollmentAssignedMe\",\r\n          \"EnrolmentRequestAssignedToMe\",\r\n          \"COEAssignedMe\",\r\n          \"LeaveAssignedMe\",\r\n          \"PEAssignedMe\",\r\n          \"TerminationAssignedMe\",\r\n          \"PAAssignedMe\",\r\n        ].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[1].Activity_Notification = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\r\n          \"EnrollmentAssignedOther\",\r\n          \"EnrolmentRequestAssignedOther\",\r\n          \"COEAssignedOther\",\r\n          \"LeaveAssignedOther\",\r\n          \"PEAssignedOther\",\r\n          \"TerminationAssignedOther\",\r\n          \"PAAssignedOther\",\r\n        ].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[10].Activity_Notification = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\r\n          \"EnrollmentSubmittedToCAAT\",\r\n          \"EnrolmentRequestSubmitedToCAAT\",\r\n          \"COESubmittedToCAAT\",\r\n          \"LeaveSubmittedToCAAT\",\r\n          \"PESubmittedToCAAT\",\r\n          \"TerminationSubmittedToCAAT\",\r\n          \"PASubmittedToCAAT\",\r\n        ].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[19].Activity_Notification = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\"EnrollmentNotCompleted\", \"EnrolmentRequestDeclined\"].indexOf(k) !== -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[28].Activity_Notification = \"false\";\r\n        }\r\n      }\r\n      if ([\"LeaveOverDue\", \"PEOverDue\"].indexOf(k) !== -1) {\r\n        if (v == \"true\") {\r\n          this.items[32].Activity_Notification = \"false\";\r\n        }\r\n      }\r\n      if (\r\n        [\"EnrolmentRequestReceived\", \"PurchaseRequestReceived\"].indexOf(k) !==\r\n        -1\r\n      ) {\r\n        if (v == \"true\") {\r\n          this.items[36].Activity_Notification = \"false\";\r\n        }\r\n      }\r\n    },\r\n    checkOrUncheck(v, type, method) {\r\n      if (v == \"false\") {\r\n        this.items.map((i) => {\r\n          if (i.checkKey == type) {\r\n            if (\r\n              this.userAccess?.CAATEMPLOYERSERVICES &&\r\n              i.key === \"EnrolmentRequestReceived\"\r\n            )\r\n              i[method] = 'false';\r\n            else i[method] = \"true\";\r\n          }\r\n          return i;\r\n        });\r\n      } else if (v == \"true\") {\r\n        this.items.map((i) => {\r\n          if (i.checkKey == type) {\r\n            i[method] = \"false\";\r\n          }\r\n          return i;\r\n        });\r\n      }\r\n    },\r\n    updateNotification() {\r\n      let list = [];\r\n      this.items.forEach((i) => {\r\n        let v = [];\r\n        // if (i.Email_work == \"true\") {\r\n        //   v.push(1);\r\n        // }\r\n        if (i.Portal_Message_Centre == \"true\") {\r\n          v.push(2);\r\n        }\r\n        if (i.Activity_Notification == \"true\") {\r\n          v.push(4);\r\n        }\r\n        list.push({ SubsCode: i.key, value: v });\r\n      });\r\n      let updateNotificationData = {\r\n        subid: this.subId,\r\n        subscriptioncode: list,\r\n      };\r\n      this.$store.commit(\"switchLoadingStatus\", true);\r\n      this.$store\r\n        .dispatch(\"updateNotification\", updateNotificationData)\r\n        .then(() => {\r\n          this.$store\r\n            .dispatch(\"getNotification\", { subId: this.subId })\r\n            .then(() => {\r\n              this.$bvModal.msgBoxOk(\r\n                this.labelScript(\r\n                  \"MESSAGE\",\r\n                  \"NOTIFICATION\",\r\n                  \"NotificationSuccessUpdateMsg\",\r\n                  \"Your notification preferences have been updated.\"\r\n                ),\r\n                okModal(\r\n                  this.labelScript(\r\n                    \"MESSAGE\",\r\n                    \"COMMON\",\r\n                    \"SuccessTitle\",\r\n                    \"Success\"\r\n                  )\r\n                )\r\n              );\r\n              this.$store.commit(\"switchLoadingStatus\", false);\r\n            });\r\n        })\r\n        .catch(() => {\r\n          this.$bvModal.msgBoxOk(\r\n            this.labelScript(\r\n              \"MESSAGE\",\r\n              \"NOTIFICATION\",\r\n              \"NotificationfailedUpdateMsg\",\r\n              \"Please try again.\"\r\n            ),\r\n            okModal(\r\n              this.labelScript(\"MESSAGE\", \"COMMON\", \"ErrorTitle\", \"Error\")\r\n            )\r\n          );\r\n        });\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.notification {\r\n  height: 800px;\r\n  .NotiTable {\r\n    width: 100%;\r\n    height: 700px;\r\n    overflow-y: auto;\r\n    overflow-x: hidden;\r\n  }\r\n}\r\n</style>\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mainContainer\"},[_c('FlowTitle',{attrs:{\"title\":_vm.labelScript(\n        'LABEL',\n        'NOTIFICATION',\n        'NotificationTitle',\n        'Notification preferences'\n      )}}),_c('FlowContent',{attrs:{\"title\":_vm.labelScript(\n        'LABEL',\n        'NOTIFICATION',\n        'NotificationSubTitle',\n        'Notification preferences'\n      )}},[_c('div',{staticClass:\"notification\"},[_c('div',{staticClass:\"NotiTable\"},[_c('div',{staticClass:\"row\"},_vm._l((_vm.fields),function(i,index){return _c('h6',{key:index,staticClass:\"text-center font-weight-bold pb-3\",class:i == '' ? 'col-6' : 'col-3'},[_vm._v(\" \"+_vm._s(i)+\" \")])}),0),_vm._l((_vm.notificationData),function(i,index){return _c('div',{key:index,staticClass:\"row pt-3 pb-3 border\"},[_c('p',{staticClass:\"col-6 text-left\",class:i.Portal_Message_Centre == 'nothing' ? 'font-weight-bold' : ''},[_vm._v(\" \"+_vm._s(i.title)+\" \")]),_c('b-form-checkbox',{staticClass:\"col-3\",class:i.Portal_Message_Centre == 'nothing' ? 'd-none' : '',attrs:{\"value\":\"true\",\"unchecked-value\":\"false\",\"disabled\":i.disabled},on:{\"change\":function($event){return _vm.checkAllPMC(i.key, i.Portal_Message_Centre)}},model:{value:(i.Portal_Message_Centre),callback:function ($$v) {_vm.$set(i, \"Portal_Message_Centre\", $$v)},expression:\"i.Portal_Message_Centre\"}}),_c('b-form-checkbox',{staticClass:\"col-3\",class:i.Activity_Notification == 'nothing' ? 'd-none' : '',attrs:{\"value\":\"true\",\"unchecked-value\":\"false\",\"disabled\":i.disabled},on:{\"change\":function($event){return _vm.checkAllAN(i.key, i.Activity_Notification)}},model:{value:(i.Activity_Notification),callback:function ($$v) {_vm.$set(i, \"Activity_Notification\", $$v)},expression:\"i.Activity_Notification\"}})],1)})],2),_c('b-button',{staticClass:\"button subButton mt-4\",on:{\"click\":_vm.updateNotification}},[_vm._v(_vm._s(_vm.labelScript( \"LABEL\", \"NOTIFICATION\", \"NotificationUpdateButton\", \"Update\" ))+\" \")]),_c('span',{staticClass:\"clearfix\"})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"sourceRoot":""}