diff options
Diffstat (limited to '')
-rw-r--r-- | wp-includes/js/dist/undo-manager.min.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/js/dist/undo-manager.min.js b/wp-includes/js/dist/undo-manager.min.js index d2cd829..e6a6a20 100644 --- a/wp-includes/js/dist/undo-manager.min.js +++ b/wp-includes/js/dist/undo-manager.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(){"use strict";var n={9127:function(n){n.exports=window.wp.isShallowEqual}},e={};function t(r){var o=e[r];if(void 0!==o)return o.exports;var u=e[r]={exports:{}};return n[r](u,u.exports,t),u.exports}t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};!function(){t.r(r),t.d(r,{createUndoManager:function(){return i}});var n=t(9127),e=t.n(n);function o(n,e){const t={...n};return Object.entries(e).forEach((([n,e])=>{t[n]?t[n]={...t[n],to:e.to}:t[n]=e})),t}const u=(n,t)=>{const r=n?.findIndex((({id:n})=>"string"==typeof n?n===t.id:e()(n,t.id))),u=[...n];return-1!==r?u[r]={id:t.id,changes:o(u[r].changes,t.changes)}:u.push(t),u};function i(){let n=[],t=[],r=0;const o=()=>{n=n.slice(0,r||void 0),r=0},i=()=>{var e;const r=0===n.length?0:n.length-1;let o=null!==(e=n[r])&&void 0!==e?e:[];t.forEach((n=>{o=u(o,n)})),t=[],n[r]=o};return{addRecord(r,c=!1){const f=!r||(n=>!n.filter((({changes:n})=>Object.values(n).some((({from:n,to:t})=>"function"!=typeof n&&"function"!=typeof t&&!e()(n,t))))).length)(r);if(c){if(f)return;r.forEach((n=>{t=u(t,n)}))}else{if(o(),t.length&&i(),f)return;n.push(r)}},undo(){t.length&&(o(),i());const e=n[n.length-1+r];if(e)return r-=1,e},redo(){const e=n[n.length+r];if(e)return r+=1,e},hasUndo(){return!!n[n.length-1+r]},hasRedo(){return!!n[n.length+r]}}}}(),(window.wp=window.wp||{}).undoManager=r}();
\ No newline at end of file +(()=>{"use strict";var e={923:e=>{e.exports=window.wp.isShallowEqual}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{createUndoManager:()=>a});var e=n(923),t=n.n(e);function r(e,t){const n={...e};return Object.entries(t).forEach((([e,t])=>{n[e]?n[e]={...n[e],to:t.to}:n[e]=t})),n}const i=(e,n)=>{const o=e?.findIndex((({id:e})=>"string"==typeof e?e===n.id:t()(e,n.id))),i=[...e];return-1!==o?i[o]={id:n.id,changes:r(i[o].changes,n.changes)}:i.push(n),i};function a(){let e=[],n=[],o=0;const r=()=>{e=e.slice(0,o||void 0),o=0},a=()=>{var t;const o=0===e.length?0:e.length-1;let r=null!==(t=e[o])&&void 0!==t?t:[];n.forEach((e=>{r=i(r,e)})),n=[],e[o]=r};return{addRecord(o,d=!1){const s=!o||(e=>!e.filter((({changes:e})=>Object.values(e).some((({from:e,to:n})=>"function"!=typeof e&&"function"!=typeof n&&!t()(e,n))))).length)(o);if(d){if(s)return;o.forEach((e=>{n=i(n,e)}))}else{if(r(),n.length&&a(),s)return;e.push(o)}},undo(){n.length&&(r(),a());const t=e[e.length-1+o];if(t)return o-=1,t},redo(){const t=e[e.length+o];if(t)return o+=1,t},hasUndo:()=>!!e[e.length-1+o],hasRedo:()=>!!e[e.length+o]}}})(),(window.wp=window.wp||{}).undoManager=o})();
\ No newline at end of file |