mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
2aa1b8ff48
- @wordpress/a11y@2.2.0 - @wordpress/annotations@1.2.0 - @wordpress/api-fetch@3.1.0 - @wordpress/autop@2.2.0 - @wordpress/babel-plugin-import-jsx-pragma@2.1.0 - @wordpress/babel-preset-default@4.1.0 - @wordpress/blob@2.3.0 - @wordpress/block-editor@1.1.0 - @wordpress/block-library@2.4.0 - @wordpress/block-serialization-default-parser@3.1.0 - @wordpress/blocks@6.2.0 - @wordpress/components@7.2.0 - @wordpress/compose@3.2.0 - @wordpress/core-data@2.2.0 - @wordpress/data@4.4.0 - @wordpress/date@3.2.0 - @wordpress/deprecated@2.2.0 - @wordpress/docgen@1.1.0 - @wordpress/dom-ready@2.2.0 - @wordpress/dom@2.2.0 - @wordpress/e2e-test-utils@1.1.0 - @wordpress/e2e-tests@1.1.0 - @wordpress/edit-post@3.3.0 - @wordpress/edit-widgets@0.2.0 - @wordpress/editor@9.2.0 - @wordpress/element@2.3.0 - @wordpress/escape-html@1.2.0 - @wordpress/eslint-plugin@2.1.0 - @wordpress/format-library@1.4.0 - @wordpress/hooks@2.2.0 - @wordpress/html-entities@2.2.0 - @wordpress/i18n@3.3.0 - @wordpress/keycodes@2.2.0 - @wordpress/list-reusable-blocks@1.3.0 - @wordpress/notices@1.3.0 - @wordpress/nux@3.2.0 - @wordpress/plugins@2.2.0 - @wordpress/priority-queue@1.1.0 - @wordpress/redux-routine@3.2.0 - @wordpress/rich-text@3.2.0 - @wordpress/scripts@3.1.0 - @wordpress/shortcode@2.2.0 - @wordpress/url@2.5.0 - @wordpress/viewport@2.3.0 - @wordpress/wordcount@2.2.0 Built from https://develop.svn.wordpress.org/trunk@44960 git-svn-id: http://core.svn.wordpress.org/trunk@44791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
8.7 KiB
JavaScript
1 line
8.7 KiB
JavaScript
this.wp=this.wp||{},this.wp.element=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=374)}({15: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})},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},u=Object.keys(e);for(r=0;r<u.length;r++)n=u[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)n=u[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},27:function(e,t){!function(){e.exports=this.React}()},32:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},374:function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(21),u=n(27),i=n(2);function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t,n){return u.Children.forEach(t,function(t,r){t&&"string"!=typeof t&&(t=Object(u.cloneElement)(t,{key:[n,r].join()})),e.push(t)}),e},[])}function a(e,t){return e&&u.Children.map(e,function(e,n){if(Object(i.isString)(e))return Object(u.createElement)(t,{key:n},e);var c=e.props,a=c.children,f=Object(o.a)(c,["children"]);return Object(u.createElement)(t,Object(r.a)({key:n},f),a)})}var f=n(52),l=function(e){return!Object(i.isNumber)(e)&&(Object(i.isString)(e)||Object(i.isArray)(e)?!e.length:!e)},s=n(32),d=n(69);function p(e){var t=e.children,n=Object(o.a)(e,["children"]);return Object(u.createElement)("div",Object(r.a)({dangerouslySetInnerHTML:{__html:t}},n))}var b=Object(u.createContext)(),m=b.Provider,y=b.Consumer,h=new Set(["string","boolean","number"]),O=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),g=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),v=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),j=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function S(e,t){return t.some(function(t){return 0===e.indexOf(t)})}function w(e){return"key"===e||"children"===e}function C(e,t){switch(e){case"style":return function(e){if(!Object(i.isPlainObject)(e))return e;var t;for(var n in e){var r=e[n];if(null!=r){t?t+=";":t="";var o=k(n),u=E(n,r);t+=o+":"+u}}return t}(t)}return t}function x(e){switch(e){case"htmlFor":return"for";case"className":return"class"}return e.toLowerCase()}function k(e){return Object(i.startsWith)(e,"--")?e:S(e,["ms","O","Moz","Webkit"])?"-"+Object(i.kebabCase)(e):Object(i.kebabCase)(e)}function E(e,t){return"number"!=typeof t||0===t||j.has(e)?t:t+"px"}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return _(e,t,n);switch(Object(s.a)(e)){case"string":return Object(d.escapeHTML)(e);case"number":return e.toString()}var c=e.type,a=e.props;switch(c){case u.StrictMode:case u.Fragment:return _(a.children,t,n);case p:var f=a.children,l=Object(o.a)(a,["children"]);return P(Object(i.isEmpty)(l)?null:"div",Object(r.a)({},l,{dangerouslySetInnerHTML:{__html:f}}),t,n)}switch(Object(s.a)(c)){case"string":return P(c,a,t,n);case"function":return c.prototype&&"function"==typeof c.prototype.render?function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());return M(o.render(),n,r)}(c,a,t,n):M(c(a,n),t,n)}switch(c&&c.$$typeof){case m.$$typeof:return _(a.children,a.value,n);case y.$$typeof:return M(a.children(t||c._currentValue),t,n)}return""}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=_(t.value,n,r),t=Object(i.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=_(t.children,n,r)),!e)return o;var u=function(e){var t="";for(var n in e){var r=x(n);if(Object(d.isValidAttributeName)(r)){var o=C(n,e[n]);if(h.has(Object(s.a)(o))&&!w(n)){var u=g.has(r);if(!u||!1!==o){var i=u||S(n,["data-","aria-"])||v.has(r);("boolean"!=typeof o||i)&&(t+=" "+r,u||("string"==typeof o&&(o=Object(d.escapeAttribute)(o)),t+='="'+o+'"'))}}}}return t}(t);return O.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+"</"+e+">"}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Object(i.castArray)(e);for(var o=0;o<e.length;o++){r+=M(e[o],t,n)}return r}var I=M;n.d(t,"Children",function(){return u.Children}),n.d(t,"cloneElement",function(){return u.cloneElement}),n.d(t,"Component",function(){return u.Component}),n.d(t,"createContext",function(){return u.createContext}),n.d(t,"createElement",function(){return u.createElement}),n.d(t,"createRef",function(){return u.createRef}),n.d(t,"forwardRef",function(){return u.forwardRef}),n.d(t,"Fragment",function(){return u.Fragment}),n.d(t,"isValidElement",function(){return u.isValidElement}),n.d(t,"StrictMode",function(){return u.StrictMode}),n.d(t,"useCallback",function(){return u.useCallback}),n.d(t,"useContext",function(){return u.useContext}),n.d(t,"useDebugValue",function(){return u.useDebugValue}),n.d(t,"useEffect",function(){return u.useEffect}),n.d(t,"useImperativeHandle",function(){return u.useImperativeHandle}),n.d(t,"useLayoutEffect",function(){return u.useLayoutEffect}),n.d(t,"useMemo",function(){return u.useMemo}),n.d(t,"useReducer",function(){return u.useReducer}),n.d(t,"useRef",function(){return u.useRef}),n.d(t,"useState",function(){return u.useState}),n.d(t,"concatChildren",function(){return c}),n.d(t,"switchChildrenNodeName",function(){return a}),n.d(t,"createPortal",function(){return f.createPortal}),n.d(t,"findDOMNode",function(){return f.findDOMNode}),n.d(t,"render",function(){return f.render}),n.d(t,"unmountComponentAtNode",function(){return f.unmountComponentAtNode}),n.d(t,"isEmptyElement",function(){return l}),n.d(t,"renderToString",function(){return I}),n.d(t,"RawHTML",function(){return p})},52:function(e,t){!function(){e.exports=this.ReactDOM}()},69:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},7:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(15);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){Object(r.a)(e,t,n[t])})}return e}}}); |