Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
wp-admin-scripts
:
command-palette-analytics.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/*! For license information please see command-palette-analytics.js.LICENSE.txt */ (()=>{"use strict";var e={93359:(e,t,o)=>{var r=o(99196),n=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,o){var r,l={},s=null,d=null;for(r in void 0!==o&&(s=""+o),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(d=t.ref),t)i.call(t,r)&&!c.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:n,type:e,key:s,ref:d,props:l,_owner:a.current}}},81514:(e,t,o)=>{e.exports=o(93359)},99196:e=>{e.exports=window.React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{o.r(r);const e=window.wp.i18n,t=window.wp.primitives;var n=o(81514);const i=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{fillRule:"evenodd",d:"M11.25 5h1.5v15h-1.5V5zM6 10h1.5v10H6V10zm12 4h-1.5v6H18v-6z",clipRule:"evenodd"})}),a=window.wp.element,c=window.wp.plugins,l=window.wp.url,s=window.wp.commands,d=window.wp.data,w=window.wc.tracks,p=window.wp.htmlEntities;(0,c.registerPlugin)("woocommerce-analytics-commands-registration",{render:()=>{const{editedPostType:t}=(()=>{const{currentPostType:e}=(0,d.useSelect)((e=>{const t=e("core/editor");if(!t)return{currentPostType:null};const{getCurrentPostType:o}=t;return{currentPostType:o()}})),{editedPostType:t}=(0,d.useSelect)((e=>{const t=e("core/edit-site");if(!t)return{editedPostType:null};const{getEditedPostType:o}=t;return{editedPostType:o()}}));return{editedPostType:t||e}})(),o=t?t+"-editor":null;return(0,a.useEffect)((()=>{window.hasOwnProperty("wcCommandPaletteAnalytics")&&window.wcCommandPaletteAnalytics.hasOwnProperty("reports")&&Array.isArray(window.wcCommandPaletteAnalytics.reports)&&window.wcCommandPaletteAnalytics.reports.forEach((t=>{(({label:t,path:o,origin:r})=>{(({name:e,label:t,icon:o,callback:r,origin:n})=>{(0,d.dispatch)(s.store).registerCommand({name:e,label:(0,p.decodeEntities)(t),icon:o,callback:(...t)=>{(0,w.queueRecordEvent)("woocommerce_command_palette_submit",{name:e,origin:n}),r(...t)}})})({name:`woocommerce${o}`,label:(0,e.sprintf)((0,e.__)("WooCommerce Analytics: %s","woocommerce"),t),icon:i,callback:()=>{document.location=(0,l.addQueryArgs)("admin.php",{page:"wc-admin",path:o})},origin:r})})({label:t.title,path:t.path,origin:o})}))}),[o]),null}})})(),(window.wc=window.wc||{}).commandPaletteAnalytics=r})();