res.public.onecdn.static.microsoft Open in urlscan Pro
2a02:26f0:480:799::af8  Public Scan

Submitted URL: http://res.public.onecdn.static.microsoft/owamail/hashed-v1/scripts/owa.40636.m.6903268f.js
Effective URL: https://res.public.onecdn.static.microsoft/owamail/hashed-v1/scripts/owa.40636.m.6903268f.js
Submission: On June 23 via manual from GR — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

"use strict";(globalThis.webpackChunkOwa=globalThis.webpackChunkOwa||[]).push([[40636],{944617:(e,t,n)=>{let a;n.d(t,{TK:()=>D,mU:()=>N,TM:()=>B,yt:()=>F,Ec:()=>j,vo:()=>Z,Uc:()=>T,Hp:()=>L,nA:()=>U,FX:()=>A,aH:()=>O});var l=((a=l||{})[a.Unshaded=0]="Unshaded",a[a.Shade1=1]="Shade1",a[a.Shade2=2]="Shade2",a[a.Shade3=3]="Shade3",a[a.Shade4=4]="Shade4",a[a.Shade5=5]="Shade5",a[a.Shade6=6]="Shade6",a[a.Shade7=7]="Shade7",a[a.Shade8=8]="Shade8",a);let r=[.537,.349,.216,.184,.145,.082,.043,.027],i=[.537,.45,.349,.216,.184,.145,.082,.043],o=[.88,.77,.66,.55,.44,.33,.22,.11],s=[.11,.22,.33,.44,.55,.66,.77,.88],c=[.96,.84,.7,.4,.12],m=[.1,.24,.44];function d(e,t){let n=e.saturationv(),a=e.value();return e=(e=e.saturationv(f(n-n*t,100,0))).value(f(a+(100-a)*t,100,0))}function u(e,t){let n=e.value();return e=e.value(f(n-n*t,100,0))}function f(e,t,n=0){return e<n?n:e>t?t:e}var p=n(896847),h=n.n(p);function g(e,t,n){let a=h()(e.rgb());if(t===l.Unshaded||!("number"==typeof t&&t>=l.Unshaded&&t<=l.Shade8))return e.hex();let f=e.l(),p=e.red(),g=e.green(),v=e.blue(),E=t-1,k=d,b=u;return n&&(k=u,b=d),(a=255===p&&255===g&&255===v?u(a,r[E]):0===p&&0===g&&0===v?d(a,i[E]):f/100>.94?b(a,s[E]):f/100<.2?k(a,o[E]):E<c.length?k(a,c[E]):b(a,m[E-c.length])).hex()}var v=n(621001),E=n(64906),k=n(302140),b=n(865867),P=n(206339),y=n(787012),S=n(75953);function w(){let e=b.lN;return e&&e.toUpperCase()!==C?e.toUpperCase():x}let C="#0078D7",x=b.lN;function Z(){return B((0,b.y$)().neutralLight)}function A(e){return e.calPrimary.toUpperCase()===w().toUpperCase()}function M(){return{[w()]:()=>(0,k.ZP)("SsRi5d"),"#00CC6A":()=>(0,k.ZP)("wKbT$d"),"#F7630C":()=>(0,k.ZP)("YB46kb"),"#69797E":()=>(0,k.ZP)("mxlYVd"),"#FDE300":()=>(0,k.ZP)("upfHy"),"#038387":()=>(0,k.ZP)("Kl$QGb"),"#BF0077":()=>(0,k.ZP)("XeAqDe"),"#8E562E":()=>(0,k.ZP)("gr$JYb"),"#D13438":()=>(0,k.ZP)("t1kNrc"),"#A4262C":()=>(0,k.ZP)("Ypny0c"),"#107C10":()=>(0,k.ZP)("FiGZ3c"),"#0099BC":()=>(0,k.ZP)("jziI4c"),"#0027B4":()=>(0,k.ZP)("sprLMb"),"#5C2E91":()=>(0,k.ZP)("abmdPb"),"#B146C2":()=>(0,k.ZP)("Hq89db")}}function D(e,t){return(0,P.cr)("cal-surface-perf-memoize-event-utils")?(0,S._)(R)(e,t):R(e,t)}function R(e,t){return h()(e).alpha(t).toString()}function B(e,t){return(0,P.cr)("cal-surface-perf-memoize-event-utils")?(0,S._)(I,{equals:y.comparer.shallow})(e,t):I(e,t)}function I(e,t){let n=void 0===t?(0,E.BR)():t,a=function(e,t){let n=h()(e);return{text:"",textAlt:"",accessibleText:{calPrimaryBackground:"",calLighterBackground:"",msColorWhiteBackground:"",msColorNeutralLighterBackground:""},calPrimary:g(n,l.Unshaded,t),calLighterAlt:g(n,l.Shade1,t),calLighter:g(n,l.Shade2,t),calLight:g(n,l.Shade3,t),calTertiary:g(n,l.Shade4,t),calSecondary:g(n,l.Shade5,t),calDarkAlt:g(n,l.Shade6,t),calDark:g(n,l.Shade7,t),calDarker:g(n,l.Shade8,t)}}(e,n);return a.accessibleText=q(a,n),a.text=a.accessibleText.calPrimaryBackground,a.textAlt=a.accessibleText.calLighterBackground,a}function N(...e){let t=h()(e[e.length-1]);for(let n=e.length-2;n>=0;n--){let a=h()(e[n]),l=a.alpha()+t.alpha()*(1-a.alpha());t=h()({r:Math.floor((a.alpha()*a.red()+t.alpha()*(1-a.alpha())*t.red())/l),g:Math.floor((a.alpha()*a.green()+t.alpha()*(1-a.alpha())*t.green())/l),b:Math.floor((a.alpha()*a.blue()+t.alpha()*(1-a.alpha())*t.blue())/l),alpha:l})}return t.toString()}function T(e,t,n,a=4.5,l=!1,r=!1){let i,o;let s=h()(n);if(l)return function(e,t=11){let n;let a=h()({r:255,g:255,b:255}),l=h()({r:0,g:0,b:0}),r=h()(e),i=r.contrast(a)<r.contrast(l),o=i?l:a,s=0;for(;s<51;){let e=function(e,t,n=5){return t?e+n:e-n}(o.red(),i,5);if((n=h()({r:e,g:e,b:e})).contrast(r)<t)break;o=n,s++}return o.hex()}(e,a=r?(0,P.cr)("cal-surface-cancelledDeclinedUxSimplification")?6:8:11);let c=h()(e);if(V(s,c)>=a)return s.hex();let m=21,d=0;if(Object.keys(t).forEach(e=>{let n=t[e];if(n&&"string"==typeof n){let e=h()(n),t=V(e,c);t>=a&&t<m?(i=e,m=t):t<a&&t>d&&(o=e,d=t)}}),i)return i.hex();let u=h()({r:255,g:255,b:255}),f=u.contrast(c);if(f>=a)return u.hex();f<a&&f>d&&(o=u,d=f);let p=h()(t.calPrimary),g=0,v=p.value();for(let e=0;e<7;e++){let e=(v+g)/2,t=(p=p.value(e)).contrast(c);t<a&&t>d&&(o=p,d=t),t<a+.1?v=e:g=e}let E=p.contrast(c);return(E<a&&o&&E<d&&(p=o,E=d),f>=4.5&&.3>Math.abs(f-E))?u.hex():p.hex()}function F(){return Object.keys(M()).map(e=>B(e))}function O(e){return(0,v.jG)({palette:{...(0,b.XN)(),themePrimary:e.calPrimary,themeLighterAlt:e.calLighterAlt,themeLighter:e.calLighter,themeLight:e.calLight,themeTertiary:e.calTertiary,themeSecondary:e.calSecondary,themeDarkAlt:e.calDarkAlt,themeDark:e.calDark,themeDarker:e.calDarker},semanticColors:{menuHeader:e.accessibleText?.msColorWhiteBackground||void 0}})}function L(){let e=(0,v.gh)();return e.palette={...e.palette,...(0,b.XN)()},e}let z=(0,y.computed)(()=>{let e=(0,b.y$)(),t={accessibleText:{calPrimaryBackground:"",calLighterBackground:"",msColorWhiteBackground:"",msColorNeutralLighterBackground:""},calDarker:e.themeDarker,calDark:e.themeDark,calDarkAlt:e.themeDarkAlt,calPrimary:e.themePrimary,calSecondary:e.themeSecondary,calTertiary:e.themeTertiary,calLight:e.themeLight,calLighter:e.themeLighter,calLighterAlt:e.themeLighterAlt};return t.accessibleText=q(t),t},{equals:y.comparer.shallow});function U(){return z.get()}function q(e,t){return(0,P.cr)("cal-surface-perf-memoize-event-utils")?(0,S._)(W,{equals:y.comparer.shallow})(e,t):W(e,t)}function W(e,t){let n=(0,b.y$)(void 0,t);return{calPrimaryBackground:T(e.calPrimary,e,n.white,4.5),calLighterBackground:T(e.calLighter,e,n.white,4.5),msColorWhiteBackground:T(n.white,e,n.white,4.5),msColorNeutralLighterBackground:T(n.neutralLighter,e,n.white,4.5)}}function j(e){let t=M();return t[e]?t[e]():e}function V(e,t){return Math.floor(100*e.contrast(t))/100}},265200:(e,t,n)=>{let a,l,r;n.d(t,{$t:()=>s,HK:()=>m,KI:()=>c,Wq:()=>i,_J:()=>d,cf:()=>o});var i=((a=i||{})[a.daNone=0]="daNone",a[a.daNotifyUser=1]="daNotifyUser",a[a.daBlockAccess=2]="daBlockAccess",a[a.daDeviceRestriction=3]="daDeviceRestriction",a),o=((l=o||{})[l.dooNotAllowed=1]="dooNotAllowed",l[l.dooAllowFalsePositiveOverride=2]="dooAllowFalsePositiveOverride",l[l.dooAllowWithJustification=4]="dooAllowWithJustification",l[l.dooAllowWithoutJustification=8]="dooAllowWithoutJustification",l[l.dooAllowWithAcknowledgement=16]="dooAllowWithAcknowledgement",l[l.dooUndefined=32]="dooUndefined",l),s=((r=s||{})[r.predicateMin=0]="predicateMin",r[r.ContentContainsSensitiveInformation=1]="ContentContainsSensitiveInformation",r[r.ContentContainsLabel=2]="ContentContainsLabel",r[r.AccessScopeRecipientIs=3]="AccessScopeRecipientIs",r[r.SentTo=4]="SentTo",r[r.RecipientDomainIs=5]="RecipientDomainIs",r[r.SentToMemberOf=6]="SentToMemberOf",r[r.SubjectContainsWords=7]="SubjectContainsWords",r[r.From=8]="From",r[r.FromMemberOf=9]="FromMemberOf",r[r.UnknownPredicate=10]="UnknownPredicate",r[r.AttachmentIsNotLabeled=11]="AttachmentIsNotLabeled",r[r.ContentExtensionMatchesWords=12]="ContentExtensionMatchesWords",r[r.SenderDomainIs=13]="SenderDomainIs",r[r.predicateMax=14]="predicateMax",r);let c=new Map([["none",0],["notifyUser",1],["blockAccess",2],["deviceRestriction",3]]),m=new Map([["notallowed",1],["allowfalsepositiveoverride",2],["allowwithjustification",4],["allowwithoutjustification",8],["allowwithacknowledgement",16],["unknownfuturevalue",32]]),d=new Map([["ContentContainsSensitiveInformation",1],["ContentContainsLabel",2],["AccessScopeRecipientIs",3],["SubjectContainsWords",7],["SentTo",4],["RecipientDomainIs",5],["SentToMemberOf",6],["From",8],["FromMemberOf",9],["AttachmentIsNotLabeled",11],["ContentExtensionMatchesWords",12],["SenderDomainIs",13]])},124506:(e,t,n)=>{n.d(t,{Df:()=>c,GH:()=>o,ki:()=>i,lP:()=>s,ns:()=>r,qO:()=>l});var a=n(265200);function l(e){return e.dlpAnnotationResult.dlpOverrideOption!==a.cf.dooNotAllowed&&e.dlpAnnotationResult.dlpOverrideOption!==a.cf.dooUndefined}function r(e){return!i(e)&&!o(e)}function i(e){return!!(e.dlpAnnotationResult.dlpOverrideOption&a.cf.dooAllowWithJustification)}function o(e){return!!(e.dlpAnnotationResult.dlpOverrideOption&a.cf.dooAllowWithAcknowledgement)}function s(e){return e.dlpAnnotationResult.dlpOverrideOption===a.cf.dooAllowFalsePositiveOverride}function c(e){return!!(e.dlpAnnotationResult.dlpOverrideOption&a.cf.dooAllowFalsePositiveOverride)}},252455:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(265200);function l(e,t){let n=[],l=e.mapMatchedConditions.get(t);return l&&(n.push(...l),t===a.$t.ContentContainsSensitiveInformation&&(n=n.map(e=>{let t=e.split("|");return 2===t.length?t[1].trim():e}))),n}},852970:(e,t,n)=>{n.d(t,{GF:()=>c,KU:()=>i,Nk:()=>o,SS:()=>s,iU:()=>m,zI:()=>r});var a=n(402392);let l=new a.nI(()=>Promise.all([n.e(19875),n.e(78342)]).then(n.bind(n,378342)),{name:"InfoBarView"}),r=(0,a.$y)(l,e=>e.InfoBar);(0,a.$y)(l,e=>e.InfoBarAnnouncements);let i=(0,a.$y)(l,e=>e.InfoBarMessage);(0,a.$y)(l,e=>e.InfoBarMessageInfoIcon);let o=(0,a.$y)(l,e=>e.InfoBarMessagePart),s=(0,a.$y)(l,e=>e.InfoBarMessageWithCalloutAction),c=(0,a.$y)(l,e=>e.InfoBarMessageWithCustomAction);(0,a.$y)(l,e=>e.InfoBarMessageWithOptionsAction),(0,a.$y)(l,e=>e.InfoBarMessageWithShowDetailsAction);let m=(0,a.$y)(l,e=>e.InfobarShowHideDetailsPart)},380664:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(944617),l=n(819957),r=n(865867);function i(e,t){let n=t||(0,r.y$)().white,i=e?(0,a.Uc)(n,e,e.calPrimary):(0,r.XN)().themePrimary,o=e?(0,a.Uc)(n,e,e.calDarker):(0,r.XN)().themeDarker;return(0,l.y)({color:i,selectors:{":hover":{color:o},":active":{color:o}}})}},617933:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(399152),l=n(302140),r=n(345301);let i=({recipient:e,recipientMessage:t,messageTemplate:n=(0,l.ZP)(a.uh)})=>{let i=e.EmailAddress;return r.createElement(r.Fragment,null,(0,l.l$)(n,r.createElement("span",{key:i},e.Name),r.createElement("span",{key:`${i}-message`},t)))}},461450:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(345301),l=n(996986),r=n(617933);let i=e=>a.createElement(a.Fragment,null,e.recipientsInfo.map(e=>a.createElement("div",{key:e.recipient.EmailAddress},a.createElement(r.Z,{recipient:e.recipient,recipientMessage:e.customMessage}))));var o=n(12325);let s=e=>{if(!e.length)return null;let t=e.map(e=>({recipient:e.recipient,customMessage:(0,o.Z)(e.message)}));return{key:"Custom",message:e.map(e=>e.message).join(" "),messageElement:a.createElement(i,{recipientsInfo:t}),rank:l.ux.Info,source:l.yk.Compose}}},386511:(e,t,n)=>{n.d(t,{Z:()=>ev});var a=n(206339),l=n(484523),r=n(343767),i=n(302140),o=n(996986),s=n(67199),c=n(216120);let m=(e,t,n)=>{if(!e.length)return null;let a=[],l=1===e.length?(0,i.WU)((0,i.ZP)("P_nI3c"),e[0].Name):(0,i.ZP)("LSrT6d");return a.push(l,{text:(0,i.ZP)(r.g),action:()=>{(function(e,t){e();let n=1===t?c.Q1.SingleRecipient:c.Q1.MultipleRecipients;(0,s.y8)(c.c7,[c.AN.AccCheckerClick,c.MP.PreferAccessibleContent,n,t])})(t,e.length)},isDisabled:n}),{key:"PreferAccessibleContent",message:l,messageParts:a,rank:o.ux.Info,source:o.yk.Compose}};var d=n(345301),u=n(852970),f=n(234553),p=n(569167),h=n(510265),g=n(399152);function v(e,t,n,a,l){e(t),(0,s.y8)(c.c7,[c.AN.RemoveRecipient,n,a,l])}let E=(e,t,n)=>({text:(0,i.ZP)("$kKa9d"),action:()=>v(t,e,n,c.Q1.MultipleRecipients,e.length)}),k=(e,t,n)=>({text:(0,i.ZP)(g.QX),action:()=>v(t,[e],n,c.Q1.SingleRecipient,1)});var b=n(900041),P=n(819957),y=n(865867),S=n(18635),w="GdOHe",C="Kq7f0",x=n(150064);let Z={iconName:"Cancel",styles:{root:{fontSize:"12px",height:"12px"}}},A={gapSpace:0,ariaLabel:(0,i.ZP)(g.QX)},M=e=>{let{onClick:t,recipient:n,colorScheme:a}=e;return d.createElement(S.G,{id:"removeButtonID",content:(0,i.ZP)(g.QX),calloutProps:A},d.createElement(b.X,{appearance:"icon","aria-describedby":"removeButtonID",onClick:()=>t(n),className:(0,x.Z)("qpOuW",function(e){let t=e?e.calDarker:(0,y.XN)().themeDarker;return(0,P.y)({selectors:{":hover":{color:t},":active":{color:t}}})}(a)),iconProps:Z,"aria-label":(0,i.ZP)(g.QX)}))};var D=n(617933),R=n(12325);let B=e=>d.createElement(d.Fragment,null,e.recipientsInfo.map(t=>d.createElement("div",{key:t.recipient.EmailAddress},d.createElement(D.Z,{recipient:t.recipient,recipientMessage:(0,R.Z)(t.automaticReply)}),e.onRemove&&d.createElement(M,{colorScheme:e.colorScheme,onClick:t=>e.onRemove?.([t]),recipient:t.recipient}))));var I=n(380664);function N(e){let[t,n]=d.useState(e.controlledIsDetailShown??!1),l=(0,a.cr)("mon-new-message-bars",e.mailboxInfo),r=()=>{let{mailTipsCategory:a,recipientCount:l,setDetailShownCallback:r}=e,i=t?c.AN.ShowDetails:c.AN.HideDetails;(0,s.y8)(c.c7,[i,a,c.Q1.MultipleRecipients,(0,c.Sz)(l??0)]),r?r():n(!t)},i=()=>{if(!e.showHideDetails)return null;let n={...e.showHideDetails,isShowingDetails:e.setDetailShownCallback?!!e.controlledIsDetailShown:t,clickHandler:r,className:(0,x.Z)(C,!l&&(0,I.Z)(e.colorScheme)),mailboxInfo:e.mailboxInfo,isDarkMode:e.isDarkMode};return d.createElement(u.iU,{...n})},o=e.removeAllActionElement||e.showHideDetails;return l?d.createElement("div",null,d.createElement("span",{className:(0,x.Z)({[w]:o})},e.messageInfoElement),i(),(e.setDetailShownCallback?!!e.controlledIsDetailShown:t)&&e.detailsRenderer()):d.createElement(d.Fragment,null,d.createElement("span",{className:(0,x.Z)({[w]:o})},e.messageInfoElement),i(),e.removeAllActionElement&&e.showHideDetails?d.createElement("span",null," | "):null,e.removeAllActionElement,t&&e.detailsRenderer())}let T="lNjDyd",F="vaTjSd",O="DB6Tmd",L="HBXLTc";var z=n(733562);let U=e=>(0,z.Z)(e).length!==e.length,q=(0,h.P)(function(e){let[t,n]=d.useState(!1),{recipientInfo:l,colorScheme:r,isExpanded:o=!1}=e,m=(0,a.cr)("mon-new-message-bars"),f=()=>{m||n(!t);let a=o?c.AN.ShowMore:c.AN.ShowLess;(0,s.y8)(c.c7,[a,c.MP.OutOfOffice,c.Q1.SingleRecipient,1]),e.onClickCallback?.(e.keyValue)},p=U(l.automaticReply),h=(0,R.Z)(l.automaticReply,p&&(m?!o:!t),e.mailboxInfo,e.isDarkMode),g=(0,x.Z)(C,(0,I.Z)(r));return m?d.createElement(d.Fragment,null,d.createElement("span",{className:(0,x.Z)(w)},d.createElement(D.Z,{recipient:l.recipient,recipientMessage:h,messageTemplate:(0,i.ZP)(F)})),p&&d.createElement(d.Fragment,null,d.createElement(u.iU,{showDetailsText:(0,i.ZP)(O),hideDetailsText:(0,i.ZP)(L),detailsElement:null,clickHandler:f,isShowingDetails:o,mailboxInfo:e.mailboxInfo,isDarkMode:e.isDarkMode}))):d.createElement(d.Fragment,null,d.createElement("span",{className:w},d.createElement(D.Z,{recipient:l.recipient,recipientMessage:h,messageTemplate:(0,i.ZP)(F)})),p&&d.createElement(d.Fragment,null,d.createElement(u.iU,{showDetailsText:(0,i.ZP)(O),hideDetailsText:(0,i.ZP)(L),detailsElement:null,clickHandler:f,isShowingDetails:t,className:g}),d.createElement("span",null," | ")),e.removeRecipientActionElement)},"SingleRecipientAutomaticReplyDetails"),W={showDetailsText:(0,i.ZP)(p.e),hideDetailsText:(0,i.ZP)(f.Y),detailsElement:void 0},j=(0,h.P)(function(e){let{recipientsInfo:t}=e,n=d.useMemo(()=>{let n=(0,i.WU)((0,i.ZP)(T),t.length);return d.createElement(u.Nk,{colorScheme:e.colorScheme,messagePart:n})},[e.colorScheme,t]),a=d.useMemo(()=>e.onRemove?d.createElement(u.Nk,{colorScheme:e.colorScheme,messagePart:E(t.map(e=>e.recipient),e.onRemove,c.MP.OutOfOffice)}):void 0,[e.onRemove,e.colorScheme,t]),l=d.useCallback(()=>d.createElement(B,{...e}),[e]);return 0===t.length?null:1===t.length?(()=>{let t=e.recipientsInfo[0];return d.createElement(q,{recipientInfo:t,colorScheme:e.colorScheme,removeRecipientActionElement:d.createElement(u.Nk,{colorScheme:e.colorScheme,messagePart:k(t.recipient,e.onRemove,c.MP.OutOfOffice)})})})():(()=>{let{colorScheme:r}=e;return d.createElement(N,{colorScheme:r,messageInfoElement:n,removeAllActionElement:a,showHideDetails:W,detailsRenderer:l,mailTipsCategory:c.MP.OutOfOffice,recipientCount:t.length,mailboxInfo:e.mailboxInfo})})()},"OofMailtip");var V=n(754807),$=n(81227),H=n(423719);let G={showDetailsText:(0,i.ZP)(p.e),hideDetailsText:(0,i.ZP)(f.Y),detailsElement:d.createElement(d.Fragment,null)},K=(0,V.Z)({messageBarGroupVertical:{display:"flex",flexDirection:"column",...$.shorthands.gap("0px")}}),X=(0,h.P)(function(e){let{recipientsInfo:t}=e,n=K(),[a,l]=d.useState(!1),[r,o]=d.useState([]),[s,m]=d.useState([]),f=d.useCallback(n=>{if("AutomaticReply"===n){let n=[];t.forEach(t=>{if(e.infoBarMessageProps&&t.recipient.EmailAddress){let a=p(e.infoBarMessageProps.infoBarMessage.key,t.recipient.EmailAddress);s.includes(a)||n.push(a)}}),m(e=>[...e,...n])}s.includes(n)||m(e=>[...e,n])},[s,t]);d.useEffect(()=>{o(e=>e.filter(e=>e.oofKey&&!s.includes(e.oofKey)))},[s]);let p=d.useCallback((e,t)=>`${e}-${t}`,[]),h=d.useCallback(()=>{let e=0;return t.forEach(t=>{if(!t.recipient.EmailAddress)return;let n=p("AutomaticReply",t.recipient.EmailAddress);!s.includes(n)&&e++}),e},[t,s]),g=d.useCallback(t=>d.createElement(u.Nk,{colorScheme:e.colorScheme,messagePart:k(t.recipient,e.onRemove??(()=>{}),c.MP.OutOfOffice)}),[t,e.onRemove,e.colorScheme]),v=e=>{o(t=>t.map(t=>e===t.oofKey?{...t,isExpanded:!t.isExpanded,messageElement:t.messageElement?d.cloneElement(t.messageElement,{isExpanded:!t.isExpanded}):void 0}:t))},E=d.useCallback((t,n,a)=>d.createElement(q,{key:a,keyValue:a,isDarkMode:e.infoBarMessageProps?.isDarkMode,recipientInfo:t,colorScheme:e.colorScheme,removeRecipientActionElement:g(t),onClickCallback:v,indexValue:n,isExpanded:r[n]?.isExpanded}),[e.colorScheme,v,r]),b=d.useMemo(()=>{let e=(0,i.WU)((0,i.ZP)(T),h());return d.createElement(d.Fragment,null,e)},[e.colorScheme,t]),P=d.useCallback(()=>d.createElement(B,{...e}),[e]),y=()=>{l(!a)},S=()=>{let{colorScheme:t}=e,n=h();return d.createElement(N,{colorScheme:t,messageInfoElement:b,showHideDetails:G,detailsRenderer:P,mailTipsCategory:c.MP.OutOfOffice,recipientCount:n,setDetailShownCallback:y,mailboxInfo:e.mailboxInfo,isDarkMode:e.infoBarMessageProps?.isDarkMode})};d.useEffect(()=>{let n=[];if(!e.infoBarMessageProps)return;let l=h();a||1===l?t.forEach((t,a)=>{if(!e.infoBarMessageProps||!t.recipient.EmailAddress)return;let l=p(e.infoBarMessageProps.infoBarMessage.key,t.recipient.EmailAddress);s.includes(l)||n.push({...e.infoBarMessageProps.infoBarMessage,oofKey:l,messageElement:E(t,a,l),isExpanded:r[a]?.isExpanded})}):l>1&&(n=[{...e.infoBarMessageProps.infoBarMessage,oofKey:"AutomaticReply",messageElement:S()}]);let i=[...s];s.includes("AutomaticReply")&&(i=i.filter(e=>"AutomaticReply"!==e));let c=t.filter(e=>!!e.recipient.EmailAddress).map(e=>p("AutomaticReply",e.recipient.EmailAddress));m(i=i.filter(e=>c.includes(e))),o(n)},[e.recipientsInfo,e.infoBarMessageProps,a]);let w=d.useMemo(()=>{let t=[];return r.forEach((n,a)=>{e.infoBarMessageProps&&t.push(d.createElement(u.KU,{key:n.oofKey,isSingleLineListView:e.infoBarMessageProps.isSingleLineListView,infoBarMessage:n,clpLabel:e.infoBarMessageProps.clpLabel,mailboxInfo:e.infoBarMessageProps.mailboxInfo,isDarkMode:e.infoBarMessageProps.isDarkMode,dismissAction:f,indexValue:a,layout:n.isExpanded?"multiline":"auto"}))}),t},[e.infoBarMessageProps,r]);return d.createElement(d.Fragment,null,e.infoBarMessageProps?d.createElement(H.A,{className:n.messageBarGroupVertical},w):null)},"OofMailtipV2"),Y=(e,t,n)=>{let l=(0,a.cr)("mon-new-message-bars",t),r=e.map(e=>({recipient:e.recipient,automaticReply:e.message})),s={key:"AutomaticReply",message:1==r.length?(0,i.ZP)(F,r[0].recipient.Name,r[0].automaticReply):(0,i.ZP)(T,r.length),rank:l?o.ux.OOF:o.ux.Info,source:o.yk.Compose,isStandalone:l&&!0,mailboxInfo:t};return e.length?{...s,messageElement:l?d.createElement(X,{recipientsInfo:r,onRemove:n,mailboxInfo:t}):d.createElement(j,{recipientsInfo:r,onRemove:n,mailboxInfo:t})}:null},Q="PMK5Me",_=e=>e?{key:"CannotEditRecipients",source:o.yk.Compose,rank:o.ux.Info,message:(0,i.ZP)(Q),messageElement:d.createElement("div",null,(0,i.ZP)(Q))}:null;var J=n(461450);let ee=e=>d.createElement(d.Fragment,null,e.recipientEmails.map(t=>d.createElement("div",{key:t.EmailAddress},d.createElement("span",null,t.Name),e.onRemove&&d.createElement(M,{colorScheme:e.colorScheme,onClick:t=>v(e.onRemove,[t],e.mailTipsCategory,c.Q1.SingleRecipient,1),recipient:t})))),et={showDetailsText:(0,i.ZP)(p.e),hideDetailsText:(0,i.ZP)(f.Y),detailsElement:void 0},en=e=>{let t=(0,a.cr)("mon-new-message-bars",e.mailboxInfo),[n,l]=d.useState(!1),[r,i]=d.useState(),o=d.useCallback(()=>{l(!n)},[n]),s=d.useMemo(()=>t?d.createElement(d.Fragment,null,e.messageInfoText):d.createElement(u.Nk,{colorScheme:e.colorScheme,messagePart:e.messageInfoText}),[e.colorScheme,e.messageInfoText,t]),c=d.useCallback(()=>d.createElement(ee,{colorScheme:e.colorScheme,recipientEmails:e.recipientEmails,onRemove:e.onRemove,mailTipsCategory:e.mailTipsCategory}),[e.colorScheme,e.recipientEmails,e.onRemove,e.mailTipsCategory]),m=d.useMemo(()=>e.onRemove&&d.createElement(u.Nk,{colorScheme:e.colorScheme,messagePart:E(e.recipientEmails,e.onRemove,e.mailTipsCategory)}),[e.colorScheme,e.recipientEmails,e.onRemove,e.mailTipsCategory]),f=()=>d.createElement(N,{colorScheme:e.colorScheme,messageInfoElement:s,removeAllActionElement:e.onRemove&&!t?m:void 0,showHideDetails:et,detailsRenderer:c,mailTipsCategory:e.mailTipsCategory,recipientCount:e.recipientEmails.length,mailboxInfo:e.mailboxInfo,controlledIsDetailShown:n,setDetailShownCallback:o});return d.useEffect(()=>{if(!e.infoBarMessageProps)return;let t=f();i({...e.infoBarMessageProps.infoBarMessage,messageElement:t})},[e.infoBarMessageProps,n]),d.createElement(d.Fragment,null,r&&e.infoBarMessageProps&&t?d.createElement(u.KU,{isSingleLineListView:e.infoBarMessageProps.isSingleLineListView,isDarkMode:e.infoBarMessageProps.isDarkMode,dismissAction:e.infoBarMessageProps.dismissAction,layout:e.infoBarMessageProps.layout,infoBarMessage:r,mailboxInfo:e.infoBarMessageProps.mailboxInfo}):d.createElement(N,{colorScheme:e.colorScheme,messageInfoElement:s,removeAllActionElement:e.onRemove&&!t?m:void 0,showHideDetails:et,detailsRenderer:c,mailTipsCategory:e.mailTipsCategory,recipientCount:e.recipientEmails.length,mailboxInfo:e.mailboxInfo}))},ea=(e,t,n,a)=>[(0,i.WU)(t,e.Name),n?k(e,n,a):void 0],el=(e,t,n,a,l,r)=>{let o=1===e.length?ea(e[0],t,a,l):null;if(o)return[null,o,o[0]];{let t=(0,i.WU)(n,e.length);return[d.createElement(en,{messageInfoText:t,recipientEmails:e,onRemove:a,mailTipsCategory:l,mailboxInfo:r}),null,t]}},er=(e,t,n)=>{let l=(0,a.cr)("mon-new-message-bars",n);if(!e.length)return null;let[r,s,m]=el(e,(0,i.ZP)(g.Xg),(0,i.ZP)(g.gz),t,c.MP.DeliveryRestricted,n);return{key:"DeliveryRestricted",message:m,messageElement:r,messageParts:s,rank:o.ux.Error,source:o.yk.Compose,isStandalone:l&&!!r}},ei=(e,t,n)=>{if(!e.length)return null;let l=(0,a.cr)("mon-new-message-bars",n),r=1===e.length&&1===e[0].count?ea(e[0].recipient,(0,i.ZP)(g.hU),t,c.MP.ExternalMemberCount):null,s=e.map(e=>e.recipient),m=!r&&d.createElement(en,{messageInfoText:(0,i.WU)((0,i.ZP)(g.GD)),recipientEmails:s,onRemove:t,mailTipsCategory:c.MP.ExternalMemberCount,mailboxInfo:n});return{key:"ExternalMemberCount",message:r?r[0]:(0,i.ZP)(g.GD),messageElement:m,messageParts:r,rank:o.ux.Info,source:o.yk.Compose,isStandalone:l&&!!m}},eo=(e,t,n)=>{if(!e.length)return null;let l=(0,a.cr)("mon-new-message-bars",n),[r,s,m]=el(e,(0,i.ZP)("fSmxsc"),(0,i.ZP)("BJew4b"),t,c.MP.GuestsDisabledGroupsWithGuests,n);return{key:"GuestsDisabledGroupWithGuests",message:m,messageElement:r,messageParts:s,rank:o.ux.Info,source:o.yk.Compose,isStandalone:l&&!!r}},es=(e,t,n)=>{if(!e.length)return null;let l=(0,a.cr)("mon-new-message-bars",n),[r,s,m]=el(e,(0,i.ZP)(g.Zx),(0,i.ZP)(g.v9),t,c.MP.InvalidRecipient,n);return{key:"InvalidRecipient",message:m,messageElement:r,messageParts:s,rank:o.ux.Info,source:o.yk.Compose,isStandalone:l&&!!r}};var ec=n(566526);let em=(e,t,n)=>{let{totalNumberCount:a,isMemberCountApproximate:l}=t.reduce((t,n)=>({totalNumberCount:t.totalNumberCount+n.totalMemberCount,isMemberCountApproximate:t.isMemberCountApproximate||n.totalMemberCount>=e}),{totalNumberCount:0,isMemberCountApproximate:!1});if(a>=n)return(0,i.WU)((0,i.ZP)("$43mJd"),n);let r=l?(0,i.WU)((0,i.ZP)(g.m1),a):a.toString();return(0,i.WU)((0,i.ZP)("r0s8ve"),r)},ed=e=>{let t=0;return d.createElement(d.Fragment,null,e.recipientsInfo.map(n=>{let{totalMemberCount:a}=n,l=n.recipient.EmailAddress;if(!(a>1))return t+=a,null;{let t=a>=e.approximateMemberLimit?(0,i.WU)((0,i.ZP)(g.m1),a):a.toString();return d.createElement("div",{key:l},d.createElement("span",null,(0,i.l$)((0,i.ZP)(g.uh),d.createElement("span",{className:"KdVWI",key:l},n.recipient.Name),d.createElement("span",{key:`${l}-groupCount`},t))),e.onRecipientRemoveClick&&d.createElement(M,{colorScheme:e.colorScheme,onClick:e.onRecipientRemoveClick,recipient:n.recipient}))}}),!!t&&d.createElement("span",null,(0,i.WU)((0,i.ZP)("$3zLnc"),t)))},eu={showDetailsText:(0,i.ZP)(p.e),hideDetailsText:(0,i.ZP)(f.Y),detailsElement:void 0},ef=e=>{let[t,n]=d.useState(),[l,r]=d.useState(!1),{onRemoveRecipientClick:i,recipientsInfo:o,extraLargeMemberLimit:s=1e3,approximateMemberLimit:m=100,colorScheme:f,mailboxInfo:p,infoBarMessageProps:h}=e,g=()=>{r(!l)},v=()=>d.createElement(N,{colorScheme:f,messageInfoElement:b,showHideDetails:eu,detailsRenderer:P,mailTipsCategory:c.MP.LargeAudience,recipientCount:o.length,mailboxInfo:p,setDetailShownCallback:g,controlledIsDetailShown:l});d.useEffect(()=>{if(!h)return;let e=v();n({...h.infoBarMessage,messageElement:e})},[e.infoBarMessageProps,l]);let E=(0,a.cr)("mon-new-message-bars",p),k=d.useMemo(()=>em(m,o,s),[m,o,s]),b=d.useMemo(()=>E?d.createElement(d.Fragment,null,k):d.createElement(u.Nk,{colorScheme:f,messagePart:k}),[k,E]),P=d.useCallback(()=>d.createElement(ed,{colorScheme:f,recipientsInfo:o,onRecipientRemoveClick:i,approximateMemberLimit:m}),[f,o,i,m]);return d.createElement(d.Fragment,null,t&&h&&d.createElement(u.KU,{isSingleLineListView:h.isSingleLineListView,infoBarMessage:t,clpLabel:h?.clpLabel,mailboxInfo:h.mailboxInfo,isDarkMode:h.isDarkMode,dismissAction:h.dismissAction}))},ep=(e,t,n)=>{if(!e.length||!(0,ec.Z)(e))return null;let l=(0,a.cr)("mon-new-message-bars",n),r=e.map(e=>({recipient:e.recipient,totalMemberCount:e.count}));return{key:"LargeAudience",message:em(100,r,1e3),messageElement:d.createElement(ef,{recipientsInfo:r,onRemoveRecipientClick:t?e=>v(t,[e],c.MP.LargeAudience,c.Q1.SingleRecipient,1):void 0,mailboxInfo:n}),rank:o.ux.Info,source:o.yk.Compose,isStandalone:l&&!0}},eh=(e,t,n)=>{if(!e.length)return null;let l=(0,a.cr)("mon-new-message-bars",n),[r,s,m]=el(e,(0,i.ZP)("$5IqBd"),(0,i.ZP)("V6Mp6c"),t,c.MP.MailboxFull,n);return{key:"MailboxFull",message:m,messageElement:r,messageParts:s,rank:o.ux.Error,source:o.yk.Compose,isStandalone:l&&!!r}},eg=(e,t,n)=>{if(!e.length)return null;let l=(0,a.cr)("mon-new-message-bars",n),[r,s,m]=el(e,(0,i.ZP)(g.d9),(0,i.ZP)(g.Eo),t,c.MP.IsModerated,n);return{key:"IsModerated",message:m,messageElement:r,messageParts:s,rank:o.ux.Info,source:o.yk.Compose,isStandalone:l&&!!r}},ev=(e,t,n,r,i,o,s=!1,c=!1)=>{let d=(0,l.Z)(e,t,n),u=(0,a.cr)("mon-new-message-bars",o),f=[er(d.DeliveryRestricted,r,o),ei(d.ExternalMemberCount,u?void 0:r,o),es(d.InvalidRecipient,r,o),eg(d.IsModerated,r,o),eh(d.MailboxFull,r,o),Y(d.OutOfOffice,o,r),m(d.PreferAccessibleContent,i,c),ep(d.TotalMemberCount,u?void 0:r,o),eo(d.GuestsDisabledGroupsWithGuests,r,o),(0,J.Z)(d.CustomMailTip),_(s)],p=[];return f.forEach(e=>{null!==e&&p.push(e)}),p}},12325:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(345301),l=n(67199),r=n(216120),i=n(206339),o=n(307846);let s=/([a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,})/gi;function c(){(0,l.y8)(r.c7,[r.AN.EmailClicked,r.MP.OutOfOffice,r.Q1.None,-1])}let m=(e="",t,n,l)=>{let r;if(!e)return a.createElement(a.Fragment,null);let m=[],d=0,u=(0,i.cr)("mon-new-message-bars",n);for(;null!==(r=s.exec(e));){r.index>d&&m.push(e.substring(d,r.index)),d=s.lastIndex;let t={key:r.index,href:`mailto:${r[0]}`,onClick:c,style:{color:l?"#479ef5":"#115EA3"}};m.push(u?a.createElement(o.r,{...t,as:"a"},r[0]):a.createElement("a",{...t},r[0]))}return d!==e.length&&m.push(e.substring(d,e.length)),t&&m.push("..."),a.createElement("span",null,m)};var d=n(733562);let u=(e,t,n,a)=>t?m((0,d.Z)(e),!0,n,a):m(e,!1,n,a)},733562:(e,t,n)=>{n.d(t,{Z:()=>a});let a=e=>e.split(" ").reduce((e,t)=>e.length>=100?e:e+" "+t)},746467:(e,t,n)=>{n.d(t,{Z:()=>a});let a=(0,n(845407).aD)("setIsFalsePositive")(function(e,t){e.isReportedFalsePositive=t})},322766:(e,t,n)=>{n.d(t,{Z:()=>a});let a=(0,n(795839).lr)("setOverrideJustification",function(e,t){e.isOverridden=null!=t,t&&(e.overrideJustification=t)})},942466:(e,t,n)=>{n.d(t,{d:()=>el,n:()=>er});var a=n(569167),l=n(302140),r=n(345301),i=n(900041),o=n(510265),s=n(380664),c=n(746467),m=n(226707),d=n(150064);let u=(0,o.P)(function(e){let{complianceUrl:t,succeededPolicyMatch:n,isReportedFalsePositive:a}=e.viewState,o=(0,m.z)(n),u=(0,d.Z)("ueHmj",(0,s.Z)());return r.createElement("div",{className:"MN7Bp"},o?.Classifications&&r.createElement("div",null,r.createElement("span",null,(0,l.ZP)("gyZsmb")),r.createElement("ul",null,o.Classifications.map((e,t)=>r.createElement("li",{key:t},e)))),t&&t.length>0&&r.createElement("div",null,r.createElement("span",null,(0,l.ZP)("zTRWye"))," ",r.createElement("a",{className:u,onClick:()=>{window.open(t,"_blank")}},(0,l.ZP)("Jxh1sc"))),!a&&r.createElement("div",null,r.createElement("label",{htmlFor:"reportButton"},(0,l.ZP)("WPY7$d")),r.createElement("div",{className:"H4eTM"},r.createElement(i.X,{id:"reportButton",onClick:()=>{(0,c.Z)(e.viewState,!0)},text:(0,l.ZP)("m2Ekod")}))))},"PolicyTipsPeek");var f=n(754807),p=n(81227),h=n(738151),g=n(474010),v=n(252455),E=n(265200),k=n(124506);let b=(0,f.Z)({root:{...p.shorthands.padding("16px")}}),P=(0,f.Z)({root:{display:"flex",flexDirection:"row",justifyContent:"flex-end","> *":{width:"96px",height:"32px"},"> :not(:last-child)":{marginRight:"8px"},marginTop:"12px"}}),y=(0,f.Z)({root:{listStylePosition:"inside",paddingInlineStart:"8px",maxHeight:"3em",overflowY:"auto","&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-button":{display:"none"},"&::-webkit-scrollbar-thumb":{WebkitBorderRadius:"8px",backgroundClip:"content-box",backgroundColor:h.T.colorNeutralForeground4},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:h.T.colorNeutralForeground3},"> li":{whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis"}}}),S=(0,o.P)(function(e){let t=e.dlpAnnotationViewState.isReportedFalsePositive,n=e.dlpAnnotationViewState.dlpAnnotationResult.policyTipUrl,a=t?(0,l.ZP)("_UU$Lc"):(0,l.ZP)("uMxXle"),i=t?(0,l.ZP)("z0j_qe"):(0,l.ZP)("$I5RQc"),o=(0,r.useCallback)(()=>{e.dlpAnnotationViewState.isReportedFalsePositive=!t,(!(0,k.GH)(e.dlpAnnotationViewState)&&(0,k.Df)(e.dlpAnnotationViewState)||(0,k.lP)(e.dlpAnnotationViewState))&&(e.dlpAnnotationViewState.isOverridden=!!e.dlpAnnotationViewState.isReportedFalsePositive)},[t,a]),s=(0,r.useCallback)(()=>{window.open(n,"_blank")},[n]),c=(0,v.Z)(e.dlpAnnotationViewState.dlpAnnotationResult,E.$t.ContentContainsSensitiveInformation),m=P(),d=b(),u=y();return r.createElement("div",{className:d.root},r.createElement("div",null,r.createElement("span",null,c.length>0?(0,l.ZP)("$Wivoc"):(0,l.ZP)("WeByib")),r.createElement("ul",{className:u.root},c.map((e,t)=>r.createElement("li",{key:t},e)))),r.createElement("span",null,i),r.createElement("div",{className:m.root},r.createElement(g.z,{id:"reportButton",onClick:o,appearance:"primary"},a),n&&n.length>0&&r.createElement(g.z,{id:"learnMoreButton",onClick:s},(0,l.ZP)("Dlixed"))))},"PolicyTipsPeekAugloop");var w=n(170397),C=n(927221),x=n(654537),Z=n(804328),A=n(337428),M=n(519472),D=n(559976),R=n(124447),B=n(890742),I=n(449736),N=n(352378),T=n(526426),F=n(661204);let O=(0,o.P)(function(e){let t,n;let[a,i]=r.useState(!1),[o,s]=r.useState(""),[c,m]=r.useState(""),[d,u]=r.useState(!1),[f,p]=r.useState(e.dlpAnnotationViewState.isReportedFalsePositive),[h,b]=r.useState(!0),[P,y]=r.useState(!1),S=(0,k.Df)(e.dlpAnnotationViewState),O=(0,k.ki)(e.dlpAnnotationViewState),L=(0,k.GH)(e.dlpAnnotationViewState),z=e.dlpAnnotationViewState.dlpAnnotationResult.policyTipUrl,U=e=>(t,n)=>{"boolean"==typeof n.checked&&e(n.checked)},q=r.useCallback(()=>{window.open(z,"_blank")},[z]),W=r.useCallback(()=>{b(!1),e.onDismiss()},[]),j=r.useCallback(()=>{e.dlpAnnotationViewState.isOverridden=!0,f&&(e.dlpAnnotationViewState.isReportedFalsePositive=!0),""!==o&&(e.dlpAnnotationViewState.overriddenJustificationText=o),b(!1),e.onDismiss()},[f,o]),V=r.useCallback(e=>{e.preventDefault(),i(!0)},[]),$=r.useCallback(e=>{e.preventDefault(),i(!1)},[]),H=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",className:a?T.oI:T.tO},r.createElement("path",{d:"M8.68149 2.78544C9.24892 1.73813 10.752 1.73821 11.3193 2.78557L17.8198 14.7865C18.3612 15.786 17.6375 17.0009 16.5009 17.0009H3.4982C2.36147 17.0009 1.63783 15.7858 2.17934 14.7864L8.68149 2.78544ZM10.5 7.5C10.5 7.22386 10.2761 7 10 7C9.72386 7 9.5 7.22386 9.5 7.5V11.5C9.5 11.7761 9.72386 12 10 12C10.2761 12 10.5 11.7761 10.5 11.5V7.5ZM10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75Z"}));return r.createElement(M.V,{modalType:"alert",open:h,onOpenChange:W},r.createElement(D.c,null,r.createElement(R.a,null,r.createElement(B.$,{className:T.AD},(0,l.ZP)(F.aO)),r.createElement(I.c,null,(()=>{let t=(0,v.Z)(e.dlpAnnotationViewState.dlpAnnotationResult,E.$t.ContentContainsSensitiveInformation);return r.createElement("div",{className:T.kZ},r.createElement("div",null,r.createElement("div",{className:T.r0},r.createElement(H,null),r.createElement("span",{className:T.Sz},r.createElement("span",{className:T._8},(0,l.ZP)(F.dZ)),e.dlpAnnotationViewState.dlpAnnotationResult.isDefaultPolicyTip?(0,l.ZP)(F.ry):e.dlpAnnotationViewState.dlpAnnotationResult.policyTip+" ",a?r.createElement("button",{className:T.p4,onClick:$},(0,l.ZP)(F.O4)):r.createElement("button",{className:T.p4,onClick:V},(0,l.ZP)(F.wq)))),a&&r.createElement("div",{className:`${T.Sz} ${a?T.dz:""}`},0===t.length?(0,l.ZP)(F.YW):r.createElement(r.Fragment,null,(0,l.ZP)(F.Bm),r.createElement("div",null,r.createElement("ul",{className:T.Dp},t.map((e,t)=>r.createElement("li",{key:t,className:T.Yc},e))))))))})(),e.dlpAnnotationViewState.dlpAnnotationResult.mapMatchedConditions.get(E.$t.ContentContainsLabel)?r.createElement(r.Fragment,null,(0,l.ZP)(F.hJ),r.createElement("br",null),(0,l.ZP)(F.xS),e.dlpAnnotationViewState.selectedCLPLabelDisplayText,(0,l.ZP)(F.Lw),r.createElement("br",null)):r.createElement(r.Fragment,null,(0,l.ZP)(F.Ig)),O&&r.createElement(r.Fragment,null,r.createElement("div",{className:T.Rz},(0,l.ZP)(F.V5)),r.createElement(w.E,{value:o,onChange:(e,t)=>{s(t.value),y(!(t.value===(0,l.ZP)(F.T5)||t.value===(0,l.ZP)(F.bM)))}},r.createElement(C.Y,{value:(0,l.ZP)(F.T5),label:(0,l.ZP)(F.T5)}),r.createElement(C.Y,{value:(0,l.ZP)(F.bM),label:(0,l.ZP)(F.bM)}),r.createElement(C.Y,{value:c||(0,l.ZP)(F.C4),label:(0,l.ZP)(F.C4)})),r.createElement(x.g,{className:T.$S},r.createElement(Z.g,{className:T.eL,value:c,onChange:(e,t)=>{let n=t.value;m(n),s(""===n?(0,l.ZP)(F.C4):n)},placeholder:(0,l.ZP)(F.lG),disabled:!P}))),S&&r.createElement(r.Fragment,null,r.createElement("div",{className:T.Rz},(0,l.ZP)(F.l2)),r.createElement(A.X,{label:(0,l.ZP)(F.j0),checked:f,defaultChecked:f,onChange:U(p)})),L&&r.createElement(r.Fragment,null,r.createElement("div",{className:T.Rz},(0,l.ZP)(F.p4)),r.createElement(A.X,{label:(0,l.ZP)(F.UQ),checked:d,onChange:U(u)}))),r.createElement(N.k,{position:"start"},z&&z.length>0&&r.createElement(g.z,{className:T.LI,appearance:"secondary",onClick:q},(0,l.ZP)(F.AS))),r.createElement(N.k,{position:"end"},r.createElement(g.z,{className:T.LI,appearance:"primary",disabled:(t=!1,n=!1,(S||O)&&(t=!0,S&&f?n=!0:O&&""!==o&&o!==(0,l.ZP)(F.C4)&&(n=!0)),t&&!n||!!L&&!d),onClick:j},(0,l.ZP)(F.h6)),r.createElement(g.z,{className:T.LI,appearance:"secondary",onClick:W},(0,l.ZP)(F.kr))))))},"PolicyTipsOverrideDialogAugloop");var L=n(13885);function z(e){return{text:(0,l.ZP)("R9FG5c"),calloutContent:r.createElement(u,{viewState:e}),maxWidth:320,position:"after-top"}}var U=n(234553);let q="w3Mwyc";var W=n(322766),j=n(422540),V=n(725811),$=n(542398),H=n(850217),G=n(420309);let K=(0,o.P)(function(e){let[t,n]=r.useState(!1),[a,o]=r.useState(null),[s,c]=r.useState(void 0),m=r.useCallback(()=>{t||a&&a.length>0?e.onDismiss({justification:a,isFalsePositive:t}):c((0,l.ZP)("F6ODde"))},[t,a,e.onDismiss]),d=r.useCallback(()=>{e.onDismiss(null)},[e.onDismiss]),u=r.useCallback((e,t)=>{n(t?.key=="FalsePositive")},[]),f=r.useCallback((e,t)=>{o(t),c(void 0)},[]);return r.createElement($.V,{hidden:!1,onDismiss:d,subText:e.justificationMessage?e.justificationMessage:(0,l.ZP)("C2hndb")},r.createElement(V.F,{defaultSelectedKey:"Override",onChange:u,options:[{key:"Override",text:(0,l.ZP)("bTYdK"),onRenderField:(e,t)=>r.createElement(r.Fragment,null,t(e),r.createElement(G.n,{onChange:f,errorMessage:s,placeholder:(0,l.ZP)("PsvX7c")}))},{key:"FalsePositive",text:(0,l.ZP)("Lw6fVd")}]}),r.createElement(H.c,null,r.createElement(i.X,{appearance:"primary",onClick:m},(0,l.ZP)(q)),r.createElement(i.X,{onClick:d},(0,l.ZP)(j.T))))},"PolicyTipsOverrideDialog");var X=n(662629);function Y(e){return 2==e.Action||3==e.Action}var Q=n(852970);let _=e=>r.createElement(r.Fragment,null,r.createElement("span",null,(0,l.ZP)("waSHPd"))," ",r.createElement(Q.SS,{...z(e.viewState),className:e.linkStyle})),J=e=>r.createElement(r.Fragment,null,r.createElement("span",null,e.emailAddresses.reduce((e,t,n,a)=>t?e+t.Name+(n==a.length-1?": ":", "):e,"")),r.createElement("span",null,(0,l.ZP)("fpkqVe"))," ",r.createElement(Q.GF,{customAction:{text:e.emailAddresses.length>1?(0,l.ZP)("HYhHje"):(0,l.ZP)("Lq1mPb"),action:()=>{e.onRecipientRemoveClick(e.emailAddresses)}},className:e.classNameForLink}));var ee="B5gQQ";let et=e=>{let t=r.useContext(X.Z),n=e.viewState,a=n.succeededPolicyMatch,i=r.useMemo(()=>(0,m.z)(a),[a,a?.policyMatchDetails.length]),o=r.useCallback(()=>{2==i.Action?(0,W.Z)(n,""):function(e,t){let n=(0,m.z)(e.succeededPolicyMatch),[a]=(0,L.K)(({onDismiss:e})=>r.createElement(K,{onDismiss:e,justificationMessage:n.JustificationMessage}),t);a.then(t=>{t&&(t.isFalsePositive?(0,c.Z)(e,!0):t.justification&&t.justification.length>0&&(0,W.Z)(e,t.justification))})}(n,t)},[i,n,t]),u=(0,d.Z)(ee,(0,s.Z)()),f=i.Recipients?.map(t=>e.getRecipientByEmailAddress(t.EmailAddress)),p=f?.filter(e=>!!e);return r.createElement(r.Fragment,null,i.Recipients&&i.Recipients.length>0&&r.createElement("div",null,p&&p.length>0&&r.createElement(J,{emailAddresses:p,onRecipientRemoveClick:e.onRecipientRemoveClick,classNameForLink:u})),Y(i)&&r.createElement(r.Fragment,null,r.createElement("span",null,(0,l.ZP)("S0jXz"))," ",r.createElement("a",{className:u,onClick:o},(0,l.ZP)(q))),r.createElement("div",null,r.createElement(_,{viewState:n,linkStyle:u})))},en=[E.$t.SentTo,E.$t.RecipientDomainIs,E.$t.SentToMemberOf],ea=e=>{let t=e.viewState.dlpAnnotationResult.mapMatchedConditions,n=(0,d.Z)(ee,(0,s.Z)()),a=[];en.forEach(e=>{let n=t.get(e);n&&a.push(...n)});let l=a.map(t=>e.getRecipientByEmailAddress(t)),i=l?.filter(e=>!!e);return r.createElement(r.Fragment,null,i&&r.createElement("div",null,i&&i.length>0&&r.createElement(J,{emailAddresses:i,onRecipientRemoveClick:e.onRecipientRemoveClick,classNameForLink:n})))};function el(e,t,n){var i;let o=(0,m.z)(e.succeededPolicyMatch);return o?!(o.Recipients&&o.Recipients.length>0||Y(o))||e.isOverridden?z(e):(i=e=>{let n=t.filter(t=>t.EmailAddress==e);return n.length>0?n[0]:null},{showDetailsText:(0,l.ZP)(a.e),hideDetailsText:(0,l.ZP)(U.Y),detailsElement:r.createElement(et,{viewState:e,getRecipientByEmailAddress:i,onRecipientRemoveClick:n})}):null}function er(e,t,n){var i;let o=[];if(en.some(t=>e.dlpAnnotationResult.mapMatchedConditions.has(t))){let s=(i=e=>{let n=t.filter(t=>t.EmailAddress==e);return n.length>0?n[0]:null},{showDetailsText:(0,l.ZP)(a.e),hideDetailsText:(0,l.ZP)(U.Y),detailsElement:r.createElement(ea,{viewState:e,getRecipientByEmailAddress:i,onRecipientRemoveClick:n})});o.push(s)}else{let t={text:(0,l.ZP)(a.e),calloutContent:r.createElement(S,{dlpAnnotationViewState:e}),maxWidth:320,position:"below"};o.push(t)}return!(0,k.qO)(e)||(0,k.lP)(e)||e.isOverridden||e.isReportedFalsePositive&&(0,k.Df)(e)||o.push({text:"Override",floatRight:!0,action:()=>{(0,k.ns)(e)?e.isOverridden=!0:function(e){let[t]=(0,L.K)(({onDismiss:t})=>r.createElement(O,{dlpAnnotationViewState:e,onDismiss:t}));return t}(e)}}),o}},18110:(e,t,n)=>{n.d(t,{s:()=>i});var a=n(459091),l=n(302140),r=n(226707);function i(e){let t=(0,r.z)(e.succeededPolicyMatch);if(t){if(e.isOverridden||e.isReportedFalsePositive){if(e.isReportedFalsePositive)return(0,l.ZP)(a.Ue);if(e.isOverridden)return(0,l.ZP)(a.I9)}else{if(t.PolicyTipMessage)return t.PolicyTipMessage;switch(t.Action){case 1:case 4:return e.notifyString;case 2:case 3:return e.overrideString;case 5:return e.blockString}}}return""}},307846:(e,t,n)=>{n.d(t,{r:()=>E});var a=n(345301),l=n(467866),r=n(442957),i=n(58007),o=n(91561);let s=e=>{let{disabled:t,disabledFocusable:n}=e,{onClick:a,onKeyDown:l,role:r,tabIndex:i}=e.root;return"a"===e.root.as&&(e.root.href=t?void 0:e.root.href,(t||n)&&(e.root.role=r||"link")),("a"===e.root.as||"span"===e.root.as)&&(e.root.tabIndex=null!=i?i:t&&!n?void 0:0),e.root.onClick=e=>{t||n?e.preventDefault():null==a||a(e)},e.root.onKeyDown=e=>{(t||n)&&(e.key===o.Ce2||e.key===o.TaI)?(e.preventDefault(),e.stopPropagation()):null==l||l(e)},e.disabled=t||n,e.root["aria-disabled"]=t||n||void 0,"button"===e.root.as&&(e.root.disabled=t&&!n),e},c=(e,t)=>{let n=(0,i.Us)(),{appearance:a="default",disabled:o=!1,disabledFocusable:c=!1,inline:m=!1}=e,d=e.as||(e.href?"a":"button"),u={role:"span"===d?"button":void 0,type:"button"===d?"button":void 0,...e,as:d},f={appearance:a,disabled:o,disabledFocusable:c,inline:m,components:{root:d},root:l.Bx((0,r.h)(d,{ref:t,...u}),{elementType:d}),backgroundAppearance:n};return s(f),f};var m=n(729218),d=n(456934);let u={root:"fui-Link"},f=(0,m.s)({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),p=e=>{let t=f(),{appearance:n,disabled:a,inline:l,root:r,backgroundAppearance:i}=e;return e.root.className=(0,d.z)(u.root,t.root,t.focusIndicator,"a"===r.as&&r.href&&t.href,"button"===r.as&&t.button,"subtle"===n&&t.subtle,"inverted"===i&&t.inverted,l&&t.inline,a&&t.disabled,e.root.className),e};var h=n(641306),g=n(75581);let v=e=>((0,g.a)(e),(0,h.tZ)(e.root,{})),E=a.forwardRef((e,t)=>{let n=c(e,t);return p(n),v(n)});E.displayName="Link"},423719:(e,t,n)=>{n.d(t,{A:()=>y});var a=n(345301),l=n(592630),r=n(467866),i=n(442957);let o=(e,t)=>{var n,l;let o=a.Children.map(null!==(n=e.children)&&void 0!==n?n:[],e=>a.isValidElement(e)&&e.type!==a.Fragment?e:null).filter(Boolean);return{components:{root:"div"},root:r.Bx((0,i.h)("div",{ref:t,...e}),{elementType:"div"}),children:o,animate:null!==(l=e.animate)&&void 0!==l?l:"exit-only",enterStyles:"",exitStyles:""}};var s=n(641306),c=n(75581),m=n(309691),d=n(542608),u=n(633314);let f=(e,t,n,a)=>{switch(e){case"entering":case"entered":return"both"===a?t:"";case"exiting":case"exited":return n;default:return""}},p=({children:e,enterClassName:t,exitClassName:n,animate:l,...r})=>{let i=a.useRef(null);return a.createElement(d.ZP,{timeout:250,nodeRef:i,...r},r=>a.createElement(h,{animate:l,enterClassName:t,exitClassName:n,nodeRef:i,state:r},e))},h=({children:e,state:t,enterClassName:n,exitClassName:l,animate:r,nodeRef:i})=>{let o=f(t,n,l,r),s=a.useMemo(()=>({className:o,nodeRef:i}),[o,i]);return a.createElement(u.s2,{value:s},e)},g=e=>((0,c.a)(e),(0,s.tZ)(e.root,{children:(0,s.tZ)(m.Z,{component:null,children:e.children.map(t=>(0,s.tZ)(p,{animate:e.animate,enterClassName:e.enterStyles,exitClassName:e.exitStyles,children:t},t.key))})}));var v=n(729218),E=n(456934);let k={root:"fui-MessageBarGroup"},b=(0,v.s)({base:{Bf5fcs:"f4cll0y",vin17d:"fy8si0b"},enter:{Bv12yb3:"f1dg9w1v"},exit:{Bv12yb3:"fu80iee"}},{d:[".f4cll0y{animation-fill-mode:forwards;}",".fy8si0b{animation-duration:var(--durationNormal);}",".f1dg9w1v{animation-name:fngeioi;}",".fu80iee{animation-name:fk0lfw7;}"],k:["@keyframes fngeioi{from{opacity:0;transform:translateY(-100%);}to{opacity:1;transform:translateY(0);}}","@keyframes fk0lfw7{from{opacity:1;}to{opacity:0;}}"]}),P=e=>{let t=b();return e.root.className=(0,E.z)(k.root,e.root.className),e.enterStyles=(0,E.z)(t.base,t.enter),e.exitStyles=(0,E.z)(t.base,t.exit),e},y=a.forwardRef((e,t)=>{let n=o(e,t);return P(n),(0,l.oj)("useMessageBarGroupStyles_unstable")(n),g(n)});y.displayName="MessageBarGroup"},633314:(e,t,n)=>{n.d(t,{iX:()=>o,s2:()=>i});var a=n(345301);let l=a.createContext(void 0),r={className:"",nodeRef:a.createRef()},i=l.Provider,o=()=>{var e;return null!==(e=a.useContext(l))&&void 0!==e?e:r}},58007:(e,t,n)=>{n.d(t,{Ed:()=>r,Us:()=>i});var a=n(345301);let l=a.createContext(void 0),r=l.Provider;function i(){return a.useContext(l)}},526426:(e,t,n)=>{n.d(t,{$S:()=>h,AD:()=>r,Dp:()=>o,LI:()=>l,Rz:()=>f,Sz:()=>d,Yc:()=>s,_8:()=>a,dz:()=>u,eL:()=>p,kZ:()=>c,oI:()=>v,p4:()=>i,r0:()=>m,tO:()=>g});var a="s3ZWr",l="RWYC0",r="dbDZh",i="k0SPs",o="Whh0j",s="q6Zp3",c="plSoC",m="uiiUQ",d="TiWdE",u="vPD45",f="qgdIA",p="BFpTs",h="wI1Ya",g="YH10_",v="pr442"},399152:(e,t,n)=>{n.d(t,{Eo:()=>d,GD:()=>o,QX:()=>r,Xg:()=>s,Zx:()=>u,d9:()=>m,gz:()=>c,hU:()=>i,m1:()=>a,uh:()=>l,v9:()=>f});let a="RUur4",l="_GqDL",r="hmiO$c",i="tmAQK",o="VkX$Ue",s="X$Xsrb",c="PtEBHc",m="GvxjSe",d="OrDSib",u="$8nw_",f="dpg4he"},661204:(e,t,n)=>{n.d(t,{AS:()=>S,Bm:()=>i,C4:()=>v,Ig:()=>f,Lw:()=>u,O4:()=>c,T5:()=>h,UQ:()=>b,V5:()=>p,YW:()=>o,aO:()=>a,bM:()=>g,dZ:()=>l,h6:()=>w,hJ:()=>m,j0:()=>y,kr:()=>C,l2:()=>P,lG:()=>E,p4:()=>k,ry:()=>r,wq:()=>s,xS:()=>d});let a="Ad8DY",l="FOs62b",r="JvWv8b",i="Z$xAx",o="n8HvTd",s="qcU33",c="hiGVAe",m="QsqK",d="iWnE4c",u="jWnE4c",f="miKbI",p="f3dbLc",h="pPm84d",g="tKg2lb",v="No9vCb",E="_HHS8d",k="r5TVoe",b="OSPXI",P="lGMIae",y="OA51x",S="q9z2U",w="SsUSDe",C="VUAgTb"},459091:(e,t,n)=>{n.d(t,{I9:()=>l,Ue:()=>a});let a="QC1H8c",l="K7Kg4c"},234553:(e,t,n)=>{n.d(t,{Y:()=>a});let a="TgKbjd"},569167:(e,t,n)=>{n.d(t,{e:()=>a});let a="C4azUb"}}]),self.scriptsLoaded=self.scriptsLoaded||{},self.scriptsLoaded["owa.40636.m.6903268f.js"]=1;