Linux webm002.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
/
home
/
a
/
r
/
i
/
ariannadhf
/
www
/
wp-content
/
plugins
/
simple-history
/
build
/
/home/a/r/i/ariannadhf/www/wp-content/plugins/simple-history/build/index-command-palette.js
(()=>{"use strict";var t={20:(t,e,o)=>{var r=o(609),s=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),n=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};e.jsx=function(t,e,o){var r,l={},a=null,d=null;for(r in void 0!==o&&(a=""+o),void 0!==e.key&&(a=""+e.key),void 0!==e.ref&&(d=e.ref),e)i.call(e,r)&&!p.hasOwnProperty(r)&&(l[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===l[r]&&(l[r]=e[r]);return{$$typeof:s,type:t,key:a,ref:d,props:l,_owner:n.current}}},848:(t,e,o)=>{t.exports=o(20)},609:t=>{t.exports=window.React}},e={};const o=window.wp.commands,r=window.wp.data,s=window.wp.editor,i=window.wp.plugins,n=window.wp.primitives;var p=function o(r){var s=e[r];if(void 0!==s)return s.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,o),i.exports}(848);const l=(0,p.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,p.jsx)(n.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})}),a=window.wp.i18n;(0,i.registerPlugin)("simple-history-command-palette",{render:function(){var t;const{postId:e,postTitle:i,postType:n}=(0,r.useSelect)((t=>{const e=t(s.store);return{postId:e.getCurrentPostId(),postTitle:e.getEditedPostAttribute("title"),postType:e.getCurrentPostType()}}),[]),p=null!==(t=window.simpleHistoryCommandPalette?.historyPageUrl)&&void 0!==t?t:"",d=(i||n||(0,a.__)("this post","simple-history")).replace(/"/g,"");return(0,o.useCommand)({name:"simple-history/view-post-history",label:(0,a.sprintf)( // translators: %s: post title or post type label. // translators: %s: post title or post type label. (0,a.__)("Go to: Simple History > History for %s","simple-history"),d),icon:l,callback:({close:t})=>{if(p&&e){const t=encodeURIComponent(`post_id:${e}`);document.location.href=`${p}&context=${t}&date=allDates`}t()}}),null}})})();