"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[49810,84686],{586371(e,t,n){var a;n.d(t,{EE:()=>l,Uh:()=>a,Vf:()=>i}),function(e){e.SINGLE="single",e.PLURAL="plural"}(a||(a={}));const i="editActive",l=20},649810(e,t,n){n.r(t),n.d(t,{default:()=>d});var a=n(296540),i=n(217439),l=n(71479),s=n(469733),r=n(372737),o=n(126457),u=n(916537),c=n(705426);const m=(0,l.A)("div")`
  line-height: 1.5;
  word-break: break-word;
`,E=(0,l.A)(i.A)`
  color: ${({theme:{motifPalette:{text01:e}}})=>e} !important;
  padding-right: ${({theme:{spacing:e}})=>e["spacing-xl"]};
`,d=({message:e,title:t,onConfirm:n,children:l=null,messageValues:d={},size:A="small",titleValues:C={},onCancel:f=null,confirmButtonProps:O={},confirmButtonText:p,...N})=>{const k=(0,s.useDispatch)(),h=(0,a.useCallback)(()=>{f?f():k((0,o.AS)())},[f,k]);return(0,a.useEffect)(()=>{function e(e){e.stopPropagation(),e.key===r.U.ENTER?n():e.key===r.U.ESCAPE&&h()}return window.addEventListener("keydown",e,!0),()=>{window.removeEventListener("keydown",e,!0)}},[h,n]),a.createElement(c.A,{actions:[{text:a.createElement(u.sA,{id:"COMMON_ACTION_CANCEL"}),type:"button",onClick:h},{text:a.createElement(u.sA,{id:p??"COMMON_ACTION_CONFIRM"}),type:"button",variant:"primary",onClick:()=>n(),...O}],size:A,title:a.createElement(E,{size:"large",isTruncated:!0},a.createElement(u.sA,{id:t,values:C})),...N},a.createElement(m,null,a.createElement(i.A,{size:"medium"},a.createElement(u.sA,{id:e,values:d}))),l)}},984686(e,t,n){n.r(t),n.d(t,{default:()=>o});var a=n(296540),i=n(469733),l=n(126457),s=n(586371),r=n(649810);const o=({dontHideModalOnConfirm:e,name:t,onConfirm:n,message:o,plural:u,...c})=>{const m=(0,i.useDispatch)();return a.createElement(r.default,{message:o||"COMMON_QUESTION_ARE_YOU_SURE_YOU_WANT_TO_REMOVE",messageValues:{name:t,count:u?s.Uh.PLURAL:s.Uh.SINGLE},title:"COMMON_QUESTION_REMOVE",titleValues:{name:t||null},onConfirm:()=>{n(),e||m((0,l.AS)())},...c})}}}]);