1"use strict";(self.webpackChunkorderry=self.webpackChunkorderry||[]).push([[7575],{7575:function(V,h,t){t.r(h),t.d(h,{default:function(){return P}});var e=t(74848),s=t(96540),p=t(92630),M=t(70881),u=t(49785),r=t(62770),A=t(78931),x=t(72359),y=t(25716),E=t(89315),I=t(99589),g=t(14854),D=t(22832),j=t(23824),C=t(94119),F=t(14756),T=t(96744);const v={TEMPLATE_ID:"templateId"};var l=t(74422);const S=o=>{const{t:n}=(0,r.Bd)();return(0,s.useMemo)(()=>({[l.Dc.NOTIFICATION]:n("Set new template for the selected notifications"),[l.Dc.REMINDER]:n("Set new template for the selected reminders")}),[])[o]},N=o=>{const{t:n}=(0,r.Bd)();return(0,s.useMemo)(()=>({[l.Dc.NOTIFICATION]:n("Change notifications template"),[l.Dc.REMINDER]:n("Change reminders template")}),[])[o]};var R="s6oEm";function L(o){const{ids:n,formType:a,instanceType:d,templateType:i,onChange:m}=o,{t:c}=(0,r.Bd)(),{closeModal:f}=(0,E.k3)(),{handleSubmit:z,formState:{isSubmitting:H}}=(0,u.xW)(),{data:{data:Z}={},isLoading:G}=(0,T.MQ)({params:{instanceType:d,type:i}}),[Q]=(0,T.DG)(),U=N(a),W=S(a),J=z(async K=>{try{await Q({data:{ids:n,template:K[v.TEMPLATE_ID]}}).unwrap(),m==null||m()}catch{return}f()});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(D.A,{divider:!1,children:(0,e.jsx)(C.A,{title:U,size:"medium"})}),(0,e.jsxs)(I.A,{withoutOverflow:!0,children:[(0,e.jsx)(A.o,{bottomOffset:16,children:W}),(0,e.jsx)(y.A,{children:(0,e.jsx)(x.A,{name:v.TEMPLATE_ID,data:Z,instanceType:d,templateType:i,className:R,withAddButton:!1,disabled:G})})]}),(0,e.jsx)(g.A,{withBackground:!1,children:(0,e.jsx)(j.A,{children:(0,e.jsx)(F.A,{text:c("Change"),isLoading:H,onClick:J})})})]})}var B=(0,s.memo)(L);function O(o){const{ids:n=[],formType:a,instanceType:d,templateType:i,onChange:m,...c}=o,f=(0,s.useMemo)(()=>({shouldUnregister:!1}),[]);return(0,e.jsx)(p.Ay,{...c,formProps:f,size:M.MODAL_SIZE.SIZE_480,checkDirtyState:!1,children:(0,e.jsx)(B,{ids:n,formType:a,instanceType:d,templateType:i,onChange:m})})}var P=O}}]); 2 3//# sourceMappingURL=7575.9aa1a8a421640e0a65b7.js.map
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.