芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/test.ezed.pk/wp-content/plugins/better-wp-security/dist/core/admin-notices-api.js
/*! For license information please see admin-notices-api.js.LICENSE.txt */ (globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[7161],{2873:t=>{t.exports=function(){return this.wp.hooks}()},3075:t=>{t.exports=function(){return this.wp.i18n}()},8601:t=>{t.exports=function(){return this.wp.element}()},21020:(t,e,i)=>{"use strict";var n=i(51609),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(t,e,i){var n,s={},d=null,a=null;for(n in void 0!==i&&(d=""+i),void 0!==e.key&&(d=""+e.key),void 0!==e.ref&&(a=e.ref),e)r.call(e,n)&&!u.hasOwnProperty(n)&&(s[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===s[n]&&(s[n]=e[n]);return{$$typeof:o,type:t,key:d,ref:a,props:s,_owner:c.current}}e.Fragment=s,e.jsx=d,e.jsxs=d},31987:t=>{t.exports=function(){return this.wp.data}()},51286:(t,e,i)=>{"use strict";i.r(e),i.d(e,{store:()=>J});var n={};i.r(n),i.d(n,{FAILED_NOTICE_ACTION:()=>C,FAILED_UPDATE_MUTED_HIGHLIGHT:()=>w,FINISH_NOTICE_ACTION:()=>U,FINISH_UPDATE_MUTED_HIGHLIGHT:()=>v,RECEIVE_MUTED_HIGHLIGHTS:()=>D,RECEIVE_NOTICES:()=>N,START_NOTICE_ACTION:()=>O,START_UPDATE_MUTED_HIGHLIGHT:()=>S,doNoticeAction:()=>E,failedNoticeAction:()=>f,failedUpdateMutedHighlight:()=>H,finishNoticeAction:()=>m,finishUpdateMutedHighlight:()=>T,receiveMutedHighlights:()=>y,receiveNotices:()=>I,startNoticeAction:()=>p,startUpdateMutedHighlight:()=>_,updateMutedHighlight:()=>A});var o={};i.r(o),i.d(o,{areNoticesLoaded:()=>b,getInProgressActions:()=>x,getMutedHighlightUpdatesInFlight:()=>$,getMutedHighlights:()=>k,getNotices:()=>P,isDoingAction:()=>G,isNoticeDismissed:()=>L,isResolved:()=>R,isResolving:()=>F});var s={};i.r(s),i.d(s,{getMutedHighlights:()=>j,getNotices:()=>W});var r=i(31987),c=i(66087),u=i(85631),d=i.n(u),a=i(2873),l=i(62932);function h(t){return{type:"API_FETCH",request:t}}const g={API_FETCH:({request:t})=>d()(t).catch(l.dD),SELECT:({selectorName:t,args:e})=>(0,r.select)("ithemes-security/admin-notices")[t](...e),CREATE_NOTICE({status:t,content:e,options:i}){i.autoDismiss&&(i.id=i.id||(0,c.uniqueId)("itsec-auto-dismiss-"),setTimeout((()=>(0,r.dispatch)("core/notices").removeNotice(i.id,i.context)),i.autoDismiss)),(0,r.dispatch)("core/notices").createNotice(t,e,i)},DO_ACTION:(0,r.createRegistryControl)((t=>({action:e,args:i})=>{(0,a.doAction)(`ithemes-security.${e}`,t,...i)}))};function I(t){return{type:N,notices:t}}function p(t,e){return{type:O,noticeId:t,actionId:e}}function m(t,e,i){return{type:U,noticeId:t,actionId:e,response:i}}function f(t,e,i){return{type:C,noticeId:t,actionId:e,error:i}}function y(t){return{type:D,mutedHighlights:t}}function _(t,e){return{type:S,slug:t,mute:e}}function T(t,e){return{type:v,slug:t,mute:e}}function H(t,e,i){return{type:w,slug:t,mute:e,error:i}}function*E(t,e,i={}){let n;yield p(t,e),yield function(t,...e){return{type:"DO_ACTION",action:"admin-notices.triggerAction",args:e}}(0,t,e,i);try{n=yield h({path:`/ithemes-security/v1/admin-notices/${t}/${e}`,method:"POST",data:i})}catch(i){return yield f(t,e,i),i}return yield m(t,e,n),n}function*A(t,e){let i;yield _(t,e);try{i=yield h({path:"/ithemes-security/v1/admin-notices/settings",method:"PUT",data:{muted_highlights:{[t]:e}}})}catch(i){return yield H(t,e,i),i}return yield T(t,e),i}const N="RECEIVE_NOTICES",O="START_NOTICE_ACTION",U="FINISH_NOTICE_ACTION",C="FAILED_NOTICE_ACTION",D="RECEIVE_MUTED_HIGHLIGHTS",S="START_UPDATE_MUTED_HIGHLIGHT",v="FINISH_UPDATE_MUTED_HIGHLIGHT",w="FAILED_UPDATE_MUTED_HIGHLIGHT";function F(t,...e){return(0,r.select)("core/data").isResolving("ithemes-security/admin-notices",t,e)}function R(t,...e){return(0,r.select)("core/data").hasFinishedResolution("ithemes-security/admin-notices",t,e)}function P(t){return t.notices}function L(t,e){return!t.notices.find((t=>t.id===e))}function b(){return R("getNotices")}function G(t,e,i=""){return!!t.doingActions[e]&&(""===i||t.doingActions[e].includes(i))}const M=[];function x(t,e){return t.doingActions[e]||M}function k(t){return t.mutedHighlights}function $(t){return t.mutedHighlightUpdatesInFlight}const V={notices:[],doingActions:{},mutedHighlights:{},mutedHighlightUpdatesInFlight:{}},W={*fulfill(){const t=yield h({path:"/ithemes-security/v1/admin-notices"});yield I(t)},shouldInvalidate:t=>t.type===U||t.type===v};function*j(){const t=yield h({path:"/ithemes-security/v1/admin-notices/settings"});yield y((0,c.isEmpty)(t.muted_highlights)?{}:t.muted_highlights)}const q=(0,r.createReduxStore)("ithemes-security/admin-notices",{controls:g,actions:n,selectors:o,resolvers:s,reducer:function(t=V,e){switch(e.type){case N:return{...t,notices:[...e.notices]};case O:return{...t,doingActions:{...t.doingActions,[e.noticeId]:[...t.doingActions[e.noticeId]||[],e.actionId]}};case U:case C:return{...t,doingActions:{...t.doingActions,[e.noticeId]:(t.doingActions[e.noticeId]||[]).filter((t=>t!==e.actionId))}};case D:return{...t,mutedHighlights:e.mutedHighlights};case S:return{...t,mutedHighlightUpdatesInFlight:{...t.mutedHighlightUpdatesInFlight,[e.slug]:{mute:e.mute}}};case v:return{...t,mutedHighlightUpdatesInFlight:(0,c.omit)(t.mutedHighlightUpdatesInFlight,e.slug),mutedHighlights:{...t.mutedHighlights,[e.slug]:e.mute}};case w:return{...t,mutedHighlightUpdatesInFlight:(0,c.omit)(t.mutedHighlightUpdatesInFlight,e.slug)};default:return t}}});(0,r.register)(q);const J=q;i.p=window.itsecWebpackPublicPath},51609:t=>{"use strict";t.exports=window.React},66087:t=>{"use strict";t.exports=window.lodash},74848:(t,e,i)=>{"use strict";t.exports=i(21020)},77172:t=>{t.exports=function(){return this.wp.url}()},82284:(t,e,i)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}i.d(e,{A:()=>n})},85631:t=>{t.exports=function(){return this.wp.apiFetch}()}},t=>{t.O(0,[2038,2932],(()=>t(t.s=51286)));var e=t.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{})["admin-notices-api"]=e}]);