diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/js/dist/notices.min.js --- a/wp/wp-includes/js/dist/notices.min.js Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/js/dist/notices.min.js Fri Sep 05 18:40:08 2025 +0200 @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(){"use strict";var t={d:function(e,n){for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{store:function(){return E}});var n={};t.r(n),t.d(n,{createErrorNotice:function(){return v},createInfoNotice:function(){return g},createNotice:function(){return a},createSuccessNotice:function(){return f},createWarningNotice:function(){return p},removeNotice:function(){return w}});var o={};t.r(o),t.d(o,{getNotices:function(){return b}});var i=window.wp.data,r=window.lodash;var c=t=>e=>function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;const i=o[t];if(void 0===i)return n;const r=e(n[i],o);return r===n[i]?n:{...n,[i]:r}};const u=c("context")((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CREATE_NOTICE":return[...(0,r.reject)(t,{id:e.notice.id}),e.notice];case"REMOVE_NOTICE":return(0,r.reject)(t,{id:e.id})}return t}));var s=u;const l="global",d="info";function a(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{speak:o=!0,isDismissible:i=!0,context:c=l,id:u=(0,r.uniqueId)(c),actions:s=[],type:a="default",__unstableHTML:f,icon:g=null,explicitDismiss:v=!1,onDismiss:p}=n;return e=String(e),{type:"CREATE_NOTICE",context:c,notice:{id:u,status:t,content:e,spokenMessage:o?e:null,__unstableHTML:f,isDismissible:i,actions:s,type:a,icon:g,explicitDismiss:v,onDismiss:p}}}function f(t,e){return a("success",t,e)}function g(t,e){return a("info",t,e)}function v(t,e){return a("error",t,e)}function p(t,e){return a("warning",t,e)}function w(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return{type:"REMOVE_NOTICE",id:t,context:e}}const y=[];function b(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return t[e]||y}const E=(0,i.createReduxStore)("core/notices",{reducer:s,actions:n,selectors:o});(0,i.register)(E),(window.wp=window.wp||{}).notices=e}(); \ No newline at end of file +(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:()=>b});var n={};e.r(n),e.d(n,{createErrorNotice:()=>E,createInfoNotice:()=>f,createNotice:()=>l,createSuccessNotice:()=>d,createWarningNotice:()=>p,removeAllNotices:()=>O,removeNotice:()=>y,removeNotices:()=>N});var i={};e.r(i),e.d(i,{getNotices:()=>_});const r=window.wp.data,o=e=>t=>(n={},i)=>{const r=i[e];if(void 0===r)return n;const o=t(n[r],i);return o===n[r]?n:{...n,[r]:o}},c=o("context")(((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter((({id:e})=>e!==t.notice.id)),t.notice];case"REMOVE_NOTICE":return e.filter((({id:e})=>e!==t.id));case"REMOVE_NOTICES":return e.filter((({id:e})=>!t.ids.includes(e)));case"REMOVE_ALL_NOTICES":return e.filter((({type:e})=>e!==t.noticeType))}return e})),s="global",u="info";let a=0;function l(e=u,t,n={}){const{speak:i=!0,isDismissible:r=!0,context:o=s,id:c=`${o}${++a}`,actions:l=[],type:d="default",__unstableHTML:f,icon:E=null,explicitDismiss:p=!1,onDismiss:y}=n;return{type:"CREATE_NOTICE",context:o,notice:{id:c,status:e,content:t=String(t),spokenMessage:i?t:null,__unstableHTML:f,isDismissible:r,actions:l,type:d,icon:E,explicitDismiss:p,onDismiss:y}}}function d(e,t){return l("success",e,t)}function f(e,t){return l("info",e,t)}function E(e,t){return l("error",e,t)}function p(e,t){return l("warning",e,t)}function y(e,t=s){return{type:"REMOVE_NOTICE",id:e,context:t}}function O(e="default",t=s){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function N(e,t=s){return{type:"REMOVE_NOTICES",ids:e,context:t}}const T=[];function _(e,t=s){return e[t]||T}const b=(0,r.createReduxStore)("core/notices",{reducer:c,actions:n,selectors:i});(0,r.register)(b),(window.wp=window.wp||{}).notices=t})(); \ No newline at end of file