1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2621],{17814:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/configure/notification",function(){return t(44690)}])},33423:(e,n,t)=>{"use strict";t.d(n,{O:()=>a});var i=t(14232),o=t(43946);let a=()=>{(0,i.useEffect)(()=>{o.d.push({event:"page_view"})},[])}},44690:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>I});var i=t(37876),o=t(52607),a=t(91408),s=t(26888),l=t(60434),c=t(52563),r=t(796),d=t(97384),h=t(62008),u=t(4185),f=t(88057),x=t(21392),g=t(33423),m=t(80792),j=t(97685),C=t(60437),b=t(28563),k=t(58868),p=t(77697),v=t(94630);let A=()=>{let e=(0,C.r)();(0,g.O)();let n=(0,o.Wx)({initialValues:{notificationBookClassInd:!0,notificationCancelClassInd:!0,notificationPackageBoughtInd:!0,submit:null},validationSchema:a.Ik({notificationBookClassInd:a.zM(),notificationCancelClassInd:a.zM(),notificationPackageBoughtInd:a.zM()}),onSubmit:async(n,t)=>{try{console.log(n),j.Ay.success("Notification created"),e.refresh()}catch(e){console.error(e),j.Ay.error("Something went wrong!"),t.setStatus({success:!1}),t.setErrors({submit:e.message}),t.setSubmitting(!1)}}});return(0,i.jsx)("form",{onSubmit:n.handleSubmit,children:(0,i.jsxs)(s.A,{spacing:4,sx:{p:4},children:[(0,i.jsx)("div",{children:(0,i.jsxs)(l.A,{color:"text.primary",component:v.W,href:p.f.dashboard.configure.index,sx:{alignItems:"center",display:"inline-flex"},underline:"hover",children:[(0,i.jsx)(k.A,{sx:{mr:1},children:(0,i.jsx)(b.A,{})}),(0,i.jsx)(c.A,{variant:"subtitle2",children:"Configure"})]})}),(0,i.jsx)(r.A,{sx:{position:"relative"},children:(0,i.jsxs)(d.A,{children:[(0,i.jsxs)(s.A,{children:[(0,i.jsx)(c.A,{variant:"h6",gutterBottom:!0,children:"Studio Notifications"}),(0,i.jsxs)(c.A,{variant:"body2",color:"textSecondary",children:["Currently, the default is for you, the Super Admin to receive email notification each time an action in the defined list below takes place. Do note that we are enhancing the product to enable you to define exactly which action you would like to receive email notification for. For now, the email notification will not be customisable."," "]})]}),(0,i.jsx)(h.A,{sx:{p:1},children:" "}),(0,i.jsxs)("div",{children:[(0,i.jsx)(c.A,{color:"text.secondary",sx:{mb:2},variant:"subtitle1",children:"Email notification triggered when the following takes place"}),(0,i.jsxs)(s.A,{children:[(0,i.jsx)(u.A,{control:(0,i.jsx)(f.A,{name:"notificationBookClassInd"}),label:"When a student books a class",name:"notificationBookClassInd",onChange:e=>n.setFieldValue("notificationBookClassInd",e.target.checked),onBlur:n.handleBlur,checked:n.values.notificationBookClassInd,disabled:!0}),(0,i.jsx)(u.A,{control:(0,i.jsx)(f.A,{name:"notificationCancelClassInd"}),label:"When a student cancels a class",name:"notificationCancelClassInd",onChange:e=>n.setFieldValue("notificationCancelClassInd",e.target.checked),onBlur:n.handleBlur,checked:n.values.notificationCancelClassInd,disabled:!0}),(0,i.jsx)(u.A,{control:(0,i.jsx)(f.A,{name:"notificationPackageBoughtInd"}),label:"When a plan is bought",name:"notificationPackageBoughtInd",onChange:e=>{let t=e.target.checked;n.setFieldValue("notificationPackageBoughtInd",t)},onBlur:n.handleBlur,checked:n.values.notificationPackageBoughtInd,disabled:!0})]})]}),(0,i.jsx)(h.A,{sx:{height:"10px"}}),(0,i.jsx)(s.A,{alignItems:"center",direction:"row",justifyContent:"flex-start",spacing:1,display:"none",children:(0,i.jsx)(x.A,{type:"submit",variant:"contained",children:"Save"})})]})})]})})};A.getLayout=e=>(0,i.jsx)(m.P,{children:e});let I=A},80792:(e,n,t)=>{"use strict";t.d(n,{P:()=>u});var i=t(37876),o=t(95062),a=t.n(o),s=t(81046),l=t(22557),c=t(74190),r=t(41034),d=t(13776),h=t(16493);let u=(0,s.g)(e=>{let n=(0,l.t)(),t=(0,c.W)();return"horizontal"===n.layout?(0,i.jsx)(r.b,{sections:t,navColor:n.navColor,...e}):(0,i.jsx)(h.Q,{children:(0,i.jsx)(d.N,{sections:t,navColor:n.navColor,...e})})});u.propTypes={children:a().node}}},e=>{e.O(0,[2165,7543,3700,163,8230,4610,6752,6377,342,9366,5871,9087,3647,1682,4937,635,1491,636,6593,8792],()=>e(e.s=17814)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.