!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a8cc8895-b823-3b7f-9310-bdbb4ec2ba31")}catch(e){}}(); define(["exports","react-dom","react","./c_pap-events_enums_flexible_sharing_entry_point_variant-utils"],(function(e,t,n,r){"use strict";function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=o(t),a=o(n);const s=/[^\w@\.\ \-\(\)\,\$~%#\[\]\{\}\!\^]/g,l=e=>`&#${e.charCodeAt(0)};`,c=e=>`${e}`.replace(s,l);function u(e){return"object"==typeof e&&"function"==typeof e.toHTML}class d{constructor(e){this._str_DONT_TOUCH=e}toHTML(){return this._str_DONT_TOUCH}toString(){return"[object HTML]"}static tmpl(e,t){if(!/[^\w:.-]/.test(e)){const t=document.getElementById(e);e=t.innerHTML,window.CSP_SCRIPT_NONCE!==(t.nonce||t.getAttribute("nonce"))&&(e="")}const n=e.replace(/[\r\t\n]/g," ").replace(/'(?=[^%]*%>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<%=(.*?)%>/g,"',__no_conflict_HTML__._raw_escape($1),'").split("<%").join("');").split("%>").join("p.push('"),r=function(e,...t){return function(...n){return e(...t,...n)}}(new Function("__no_conflict_HTML__","TEMPLATE_DATA","var p=[],print=function(){p.push.apply(p,arguments);}; p.push('"+n+"'); return new __no_conflict_HTML__(p.join('').trim());"),d);return t?r(t):r}static escape(e){return e instanceof d?e:new d(c(e))}static _raw_escape(e){return e instanceof d?e.toHTML():"number"==typeof e?e:c(e)}}var f=Object.hasOwnProperty,p=Object.setPrototypeOf,m=Object.isFrozen,h=Object.freeze,y=Object.seal,g=Object.create,_="undefined"!=typeof Reflect&&Reflect,v=_.apply,T=_.construct;v||(v=function(e,t,n){return e.apply(t,n)}),h||(h=function(e){return e}),y||(y=function(e){return e}),T||(T=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),o=1;o/gm),$=y(/^data-[\-\w.\u00B7-\uFFFF]/),V=y(/^aria-[\-\w]+$/),K=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=y(/^(?:\w+script|data):/i),X=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function J(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(t){return e(t)};if(n.version="2.1.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,s=t.Node,l=t.NodeFilter,c=t.NamedNodeMap,u=void 0===c?t.NamedNodeMap||t.MozNamedAttrMap:c,d=t.Text,f=t.Comment,p=t.DOMParser,m=t.trustedTypes;if("function"==typeof a){var y=o.createElement("template");y.content&&y.content.ownerDocument&&(o=y.content.ownerDocument)}var g=function(e,t){if("object"!==(void 0===e?"undefined":Z(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,r),_=g&&Me?g.createHTML(""):"",v=o,T=v.implementation,b=v.createNodeIterator,k=v.getElementsByTagName,ee=v.createDocumentFragment,te=r.importNode,ne={};try{ne=H(o).documentMode?o.documentMode:{}}catch(e){}var re={};n.isSupported=T&&void 0!==T.createHTMLDocument&&9!==ne;var oe=B,ie=G,ae=$,se=V,le=Y,ce=X,ue=K,de=null,fe=D({},[].concat(J(R),J(j),J(F),J(I),J(z))),pe=null,me=D({},[].concat(J(P),J(U),J(q),J(W))),he=null,ye=null,ge=!0,_e=!0,ve=!1,Te=!1,be=!1,Ae=!1,we=!1,Se=!1,Ee=!1,Le=!1,Me=!1,xe=!0,Ce=!0,Oe=!1,Ne={},ke=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),De=null,He=D({},["audio","video","img","source","image","track"]),Re=null,je=D({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Fe=null,Ie=o.createElement("form"),ze=function(e){Fe&&Fe===e||(e&&"object"===(void 0===e?"undefined":Z(e))||(e={}),e=H(e),de="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS):fe,pe="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR):me,Re="ADD_URI_SAFE_ATTR"in e?D(H(je),e.ADD_URI_SAFE_ATTR):je,De="ADD_DATA_URI_TAGS"in e?D(H(He),e.ADD_DATA_URI_TAGS):He,he="FORBID_TAGS"in e?D({},e.FORBID_TAGS):{},ye="FORBID_ATTR"in e?D({},e.FORBID_ATTR):{},Ne="USE_PROFILES"in e&&e.USE_PROFILES,ge=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=e.SAFE_FOR_TEMPLATES||!1,be=e.WHOLE_DOCUMENT||!1,Se=e.RETURN_DOM||!1,Ee=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_DOM_IMPORT||!1,Me=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Ce=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,Te&&(_e=!1),Ee&&(Se=!0),Ne&&(de=D({},[].concat(J(z))),pe=[],!0===Ne.html&&(D(de,R),D(pe,P)),!0===Ne.svg&&(D(de,j),D(pe,U),D(pe,W)),!0===Ne.svgFilters&&(D(de,F),D(pe,U),D(pe,W)),!0===Ne.mathMl&&(D(de,I),D(pe,q),D(pe,W))),e.ADD_TAGS&&(de===fe&&(de=H(de)),D(de,e.ADD_TAGS)),e.ADD_ATTR&&(pe===me&&(pe=H(pe)),D(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&D(Re,e.ADD_URI_SAFE_ATTR),Ce&&(de["#text"]=!0),be&&D(de,["html","head","body"]),de.table&&(D(de,["tbody"]),delete he.tbody),h&&h(e),Fe=e)},Pe=function(e){S(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=_}},Ue=function(e,t){try{S(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){S(n.removed,{attribute:null,from:t})}t.removeAttribute(e)},qe=function(e){var t=void 0,n=void 0;if(we)e=""+e;else{var r=L(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=g?g.createHTML(e):e;try{t=(new p).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var a=(t=T.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=i}return e&&n&&t.body.insertBefore(o.createTextNode(n),t.body.childNodes[0]||null),k.call(t,be?"html":"body")[0]},We=function(e){return b.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,(function(){return l.FILTER_ACCEPT}),!1)},Be=function(e){return"object"===(void 0===s?"undefined":Z(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ge=function(e,t,r){re[e]&&A(re[e],(function(e){e.call(n,t,r,Fe)}))},$e=function(e){var t,r=void 0;if(Ge("beforeSanitizeElements",e,null),!((t=e)instanceof d||t instanceof f||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof u&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI))return Pe(e),!0;if(L(e.nodeName,/[\u0080-\uFFFF]/))return Pe(e),!0;var o=E(e.nodeName);if(Ge("uponSanitizeElement",e,{tagName:o,allowedTags:de}),("svg"===o||"math"===o)&&0!==e.querySelectorAll("p, br").length)return Pe(e),!0;if(!Be(e.firstElementChild)&&(!Be(e.content)||!Be(e.content.firstElementChild))&&O(/<[!/\w]/g,e.innerHTML)&&O(/<[!/\w]/g,e.textContent))return Pe(e),!0;if(!de[o]||he[o]){if(Ce&&!ke[o]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",g?g.createHTML(i):i)}catch(e){}return Pe(e),!0}return"noscript"!==o&&"noembed"!==o||!O(/<\/no(script|embed)/i,e.innerHTML)?(Te&&3===e.nodeType&&(r=e.textContent,r=M(r,oe," "),r=M(r,ie," "),e.textContent!==r&&(S(n.removed,{element:e.cloneNode()}),e.textContent=r)),Ge("afterSanitizeElements",e,null),!1):(Pe(e),!0)},Ve=function(e,t,n){if(xe&&("id"===t||"name"===t)&&(n in o||n in Ie))return!1;if(_e&&O(ae,t));else if(ge&&O(se,t));else{if(!pe[t]||ye[t])return!1;if(Re[t]);else if(O(ue,M(n,ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==x(n,"data:")||!De[e]){if(ve&&!O(le,M(n,ce,"")));else if(n)return!1}else;}return!0},Ke=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;Ge("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(i=a.length;i--;){var l=t=a[i],c=l.name,u=l.namespaceURI;if(r=C(t.value),o=E(c),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Ge("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Ue(c,e),s.keepAttr))if(O(/\/>/i,r))Ue(c,e);else{Te&&(r=M(r,oe," "),r=M(r,ie," "));var d=e.nodeName.toLowerCase();if(Ve(d,o,r))try{u?e.setAttributeNS(u,c,r):e.setAttribute(c,r),w(n.removed)}catch(e){}}}Ge("afterSanitizeAttributes",e,null)}},Ye=function e(t){var n=void 0,r=We(t);for(Ge("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ge("uponSanitizeShadowNode",n,null),$e(n)||(n.content instanceof i&&e(n.content),Ke(n));Ge("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,l=void 0,c=void 0,u=void 0,d=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw N("toString is not a function");if("string"!=typeof(e=e.toString()))throw N("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Z(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Be(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ae||ze(o),n.removed=[],"string"==typeof e&&(Oe=!1),Oe);else if(e instanceof s)1===(l=(a=qe("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?a=l:a.appendChild(l);else{if(!Se&&!Te&&!be&&-1===e.indexOf("<"))return g&&Me?g.createHTML(e):e;if(!(a=qe(e)))return Se?null:_}a&&we&&Pe(a.firstChild);for(var f=We(Oe?e:a);c=f.nextNode();)3===c.nodeType&&c===u||$e(c)||(c.content instanceof i&&Ye(c.content),Ke(c),u=c);if(u=null,Oe)return e;if(Se){if(Ee)for(d=ee.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Le&&(d=te.call(r,d,!0)),d}var p=be?a.outerHTML:a.innerHTML;return Te&&(p=M(p,oe," "),p=M(p,ie," ")),g&&Me?g.createHTML(p):p},n.setConfig=function(e){ze(e),Ae=!0},n.clearConfig=function(){Fe=null,Ae=!1},n.isValidAttribute=function(e,t,n){Fe||ze({});var r=E(e),o=E(t);return Ve(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],S(re[e],t))},n.removeHook=function(e){re[e]&&w(re[e])},n.removeHooks=function(e){re[e]&&(re[e]=[])},n.removeAllHooks=function(){re={}},n}(),te=Object.freeze({__proto__:null,default:ee});function ne(e){return r.assert(e.startsWith("/static/"),`'${e}' is not a /static url`),new r.URI({scheme:"https",authority:(null===window||void 0===window?void 0:window.EDISON_LOCALMODE)?"www.dropboxstatic.com":"cfl.dropboxstatic.com",path:e}).toString()}const re=["edison:preloadCss","js:requireCssWithComponent","js:require_css","ensemble","css-modules"],oe=["css-modules"];function ie(e,t,n){if(n[t].length>0){if(oe.includes(t)){const r=n[t];for(let t=0;te.path)return[n,t]}}return[n[t][n[t].length-1].elem.nextElementSibling,null]}const r=re.indexOf(t);for(let e=r-1;e>=0;e--){const t=n[re[e]]||[];if(t.length>0)return[t[t.length-1].elem.nextElementSibling,null]}for(let e=r+1;e0)return[t[0].elem,null]}return[null,null]}function ae(e,t,n,r,o){e.elem.setAttribute("data-loader",t),e.elem instanceof HTMLStyleElement&&e.elem.setAttribute("path",e.path);let i=null,a=null;if(!o){if(oe.includes(t)&&function(e,t,n){if(n.hasOwnProperty(t)&&null!=n[t]&&n[t].length>0)return n[t].map((({path:e})=>e)).includes(e.path);return!1}(e,t,n))return!1;[i,a]=ie(e,t,n)}return null===a?n[t].push(e):n[t].splice(a,0,e),i?r.insertBefore(e.elem,i):r.appendChild(e.elem),!0}function se(e,t,n=document){const r=n.defaultView;r.__injectCssCache||(r.__injectCssCache=function(){const e={};for(const t of["edison:preloadCss","js:require_css","js:requireCssWithComponent","ensemble","css-modules"])e[t]=[];return e}());const o=r.__injectCssCache;o[t]=o[t]?o[t]:[];const i=oe.includes(t);if(!i&&e.length>1){const[r]=ie(e[0],t,o),a=n.createDocumentFragment();let s=0;for(const n of e){ae(n,t,o,a,!i)&&s++}return null===r?n.head.appendChild(a):n.head.insertBefore(a,r),s}{let r=0;for(const i of e){ae(i,t,o,n.head,!1)&&r++}return r}}function le(e){try{const t=new URL(e);return t.pathname?decodeURIComponent(t.pathname):""}catch(e){return""}}function ce(e=document){const t=ue(e),n=e.querySelectorAll('link[rel="stylesheet"]');for(let e=0;e{const s=e.createElement("link");return s.href=n.toString(),s.rel="stylesheet",s.type="text/css",s.crossOrigin="anonymous",s.onload=function(){return t.already_loaded_css_paths[o]="loaded",i()},s.onerror=a,se([{elem:s,path:n.pathname}],r,e),s})),t.loaded_css[o]=i,t.already_loaded_css_paths[o]="downloading"),i}(r,ue(r),new URL(ne(e)),o).then(t,n)}ce();class fe{static polite(e,t=10){return this.announce("polite",e,t)}static assertive(e,t=10){return this.announce("assertive",e,t)}static clear(){this.lastTimeout&&clearTimeout(this.lastTimeout);Array.from(document.querySelectorAll("#accessible-announce")).forEach((e=>{e.setAttribute("aria-live","off"),e.innerHTML=""}))}static announce(e,t,n=10){return de("/static/metaserver/static/css/accessibility-vfliGZNRm.css",(()=>{if(document)return document.querySelector("#accessible-announce")?(this.setMessage(t,e),this.scheduleClear(n)):(document.body.insertAdjacentHTML("afterend","
"),setTimeout((()=>(this.setMessage(t,e),this.scheduleClear(n))),this.TIMEOUT_LENGTH))}))}static setMessage(e,t){this.clear();Array.from(document.querySelectorAll("#accessible-announce")).forEach((n=>{n.setAttribute("aria-live",t),e instanceof HTMLElement?n.innerHTML=ee.sanitize(e.innerHTML):u(e)?n.innerHTML=ee.sanitize(e.toHTML()):n.textContent=e}))}static scheduleClear(e){return this.lastTimeout=setTimeout((()=>{this.clear()}),1e3*e)}}var pe;fe.TIMEOUT_LENGTH=50,function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Success=3]="Success",e[e.Confirm=4]="Confirm"}(pe||(pe={}));const me=e=>{if(!e.message)return null;let t="";switch(e.notificationType){case pe.Error:t="server-error";break;case pe.Warning:t="server-warning";break;case pe.Info:t="server-info";break;case pe.Success:t="server-success";break;case pe.Confirm:t="server-confirm"}const n="notify-wrapper"+(e.hasTopNotification?" with-top-notification":"");return a.createElement("div",{id:"notify-wrapper",className:n},a.createElement("div",{id:"notify",className:t,style:{display:"inline-block"}},u(e.message)?a.createElement("span",{id:"notify-msg",className:"notify-msg",dangerouslySetInnerHTML:{__html:ee.sanitize(e.message.toHTML())}}):a.createElement("span",{id:"notify-msg",className:"notify-msg"},e.message)))};me.displayName="NotificationComponent";class he extends a.Component{constructor(e){super(e),this.state={message:"",hasTopNotification:!1,notificationType:pe.Info,visible:!1}}show(e,t,n){const r=document.querySelectorAll(".maestro .has-top-notification").length>0;this.setState({message:e,hasTopNotification:r,notificationType:t,onHide:n,visible:!0})}hide(){this.setState({visible:!1})}render(){return this.state.visible?a.createElement(me,{message:this.state.message,hasTopNotification:this.state.hasTopNotification,notificationType:this.state.notificationType}):null}}he.displayName="NotifyPortalComponent";class ye{current(){return this._notification}isShown(){return null!=this.current()}}const ge=new class extends ye{constructor(){super(...arguments),this._portal=a.createRef()}customSuccess(e,t,n=10,r){return fe.polite(t,n+1),this.show(e,n,pe.Success,r)}success(e,t=10,n){return fe.polite(e,t+1),this.show(e,t,pe.Success,n)}error(e,t=10,n){return fe.assertive(e,t+1),this.show(e,t,pe.Error,n)}warning(e,t=10,n){return fe.polite(e,t+1),this.show(e,t,pe.Warning,n)}info(e,t=10,n){return fe.polite(e,t+1),this.show(e,t,pe.Info,n)}confirm(e,t=10,n){return fe.polite(e,t+1),this.show(e,t,pe.Confirm,n)}clear(){this._portal.current&&(this._portal.current.hide(),null!=this._notification&&(clearTimeout(this._notification.timeoutId),this._notification=null))}show(e,t,n,r){const o=1e3*t;if(this._portal.current)this._portal.current.show(e,n,r);else{const t=document.createElement("div");t.classList.add("notify-portal-component"),document.body.appendChild(t),i.render(a.createElement(he,{ref:this._portal}),t,(()=>{this._portal.current&&this._portal.current.show(e,n,r)}))}null!=this._notification&&clearTimeout(this._notification.timeoutId);const s=setTimeout((()=>{this._portal.current&&this._portal.current.hide(),this._notification=null,r&&r()}),o);return this._notification={timeoutId:s,durationMs:o,shownAtMs:Date.now()},s}};e.AccessibleAnnounce=fe,e.HTML=d,e.Notify=ge,e.injectCss=se,e.is_loaded=function(e,t=document){const n=ue(t),r=e.map((e=>new URL(ne(e)).pathname));return!!r.every((e=>"loaded"===n.already_loaded_css_paths[e]))||(ce(t),r.every((e=>"loaded"===n.already_loaded_css_paths[e])))},e.purify=ee,e.purify_es=te,e.require_css=de,e.require_css_multi=function(e,t,n,r=document,o="js:require_css",i="undefined"!=typeof jest){const a=e.map((e=>de(e,void 0,void 0,r,o,i)));return Promise.all(a).then(t,n)},e.static_url=ne})); //# sourceMappingURL=c_core_notify.js-vflNzzF8P.map //# debugId=a8cc8895-b823-3b7f-9310-bdbb4ec2ba31