2 lines
6.3 KiB
JavaScript
2 lines
6.3 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.keycodes=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./node_modules/@wordpress/keycodes/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");var o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),u=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(u.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},"./node_modules/@wordpress/keycodes/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"BACKSPACE",(function(){return a})),n.d(t,"TAB",(function(){return s})),n.d(t,"ENTER",(function(){return l})),n.d(t,"ESCAPE",(function(){return d})),n.d(t,"SPACE",(function(){return f})),n.d(t,"LEFT",(function(){return b})),n.d(t,"UP",(function(){return m})),n.d(t,"RIGHT",(function(){return p})),n.d(t,"DOWN",(function(){return j})),n.d(t,"DELETE",(function(){return y})),n.d(t,"F10",(function(){return O})),n.d(t,"ALT",(function(){return h})),n.d(t,"CTRL",(function(){return v})),n.d(t,"COMMAND",(function(){return A})),n.d(t,"SHIFT",(function(){return _})),n.d(t,"ZERO",(function(){return g})),n.d(t,"modifiers",(function(){return w})),n.d(t,"rawShortcut",(function(){return S})),n.d(t,"displayShortcutList",(function(){return T})),n.d(t,"displayShortcut",(function(){return C})),n.d(t,"shortcutAriaLabel",(function(){return P})),n.d(t,"isKeyboardEvent",(function(){return x}));var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),u=n("lodash"),i=n("@wordpress/i18n");function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(u.includes)(["iPad","iPhone"],t)}var a=8,s=9,l=13,d=27,f=32,b=37,m=38,p=39,j=40,y=46,O=121,h="alt",v="ctrl",A="meta",_="shift",g=48,w={primary:function(e){return e()?[A]:[v]},primaryShift:function(e){return e()?[_,A]:[v,_]},primaryAlt:function(e){return e()?[h,A]:[v,h]},secondary:function(e){return e()?[_,h,A]:[v,_,h]},access:function(e){return e()?[v,h]:[_,h]},ctrl:function(){return[v]},alt:function(){return[h]},ctrlShift:function(){return[v,_]},shift:function(){return[_]},shiftAlt:function(){return[_,h]}},S=Object(u.mapValues)(w,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return[].concat(Object(o.a)(e(n)),[t.toLowerCase()]).join("+")}})),T=Object(u.mapValues)(w,(function(e){return function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,a=i(),s=(n={},Object(r.a)(n,h,a?"⌥":"Alt"),Object(r.a)(n,v,a?"⌃":"Ctrl"),Object(r.a)(n,A,"⌘"),Object(r.a)(n,_,a?"⇧":"Shift"),n),l=e(i).reduce((function(e,t){var n=Object(u.get)(s,t,t);return[].concat(Object(o.a)(e),a?[n]:[n,"+"])}),[]),d=Object(u.capitalize)(t);return[].concat(Object(o.a)(l),[d])}})),C=Object(u.mapValues)(T,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return e(t,n).join("")}})),P=Object(u.mapValues)(w,(function(e){return function(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,s=a(),l=(n={},Object(r.a)(n,_,"Shift"),Object(r.a)(n,A,s?"Command":"Control"),Object(r.a)(n,v,"Control"),Object(r.a)(n,h,s?"Option":"Alt"),Object(r.a)(n,",",Object(i.__)("Comma")),Object(r.a)(n,".",Object(i.__)("Period")),Object(r.a)(n,"`",Object(i.__)("Backtick")),n);return[].concat(Object(o.a)(e(a)),[t]).map((function(e){return Object(u.capitalize)(Object(u.get)(l,e,e))})).join(s?" ":" + ")}}));function E(e){return[h,v,A,_].filter((function(t){return e["".concat(t,"Key")]}))}var x=Object(u.mapValues)(w,(function(e){return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,o=e(r),i=E(t);return!Object(u.xor)(o,i).length&&(n?t.key===n:Object(u.includes)(o,t.key.toLowerCase()))}}))},"@wordpress/i18n":function(e,t){e.exports=window.wp.i18n},lodash:function(e,t){e.exports=window.lodash}}); |