!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]="32fe01dd-f1e4-3b19-b4b3-0bbad2052cb3")}catch(e){}}(); define(["require","exports","./c_core_notify","./c_pap-events_enums_flexible_sharing_entry_point_variant-utils","./c_security_csrf_hmac","react-dom","react","./c_flux_action_type","./e_core_exception","./c_security_crypto","./c_init_data_debug_panel","./c_pap-events_docsend_view_docsend_hub_entry_button"],(function(e,t,n,o,i,s,r,c,a,_,u,f){"use strict";const l="toast";async function d(e,t){const n=await i.readHmacCookieToken(e,t);if(null==n)return null;if(n.startsWith("er:"))return[!0,n.substring(3)];if(n.startsWith("ok:"))return[!1,n.substring(3)];throw new Error("unrecognized format of message in toast cookie")}t.decodeToastCookie=d,t.showToastFromCookie=async function(){var t;const i=o.Cookies.read(l);if(i){const s=await d(i,null!==(t=o.readCsrfToken())&&void 0!==t?t:void 0);if(null!=s){const t=n.require_css("/static/metaserver/static/css/notify-vflPup1uz.css"),[i,r]=s,{default:c}=await new Promise((function(t,n){e(["./c_core_notify"],t,n)})).then((function(e){return e.purify_es})),a=c.sanitize(r),_=document.getElementById("flash");null!=_&&(_.innerHTML=a,_.style.display="block");setTimeout((()=>o.Cookies.delete(l)),2e3),await t,i?n.Notify.error(new n.HTML(a),10):n.Notify.success(new n.HTML(a),10)}}}})); //# sourceMappingURL=c_core_toast_toast_on_init.js-vfl26Qn-9.map //# debugId=32fe01dd-f1e4-3b19-b4b3-0bbad2052cb3