[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> element.min.js (source)

   1  /*! This file is auto-generated */
   2  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=379)}({18:function(e,t,n){"use strict";var r=n(31);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return o}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(40);function o(e,t){if(null==e)return{};var n,o,u=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}},21:function(e,t){!function(){e.exports=this.React}()},22:function(e,t,n){"use strict";var r=n(35);var o=n(36);function u(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,u=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,u=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw u}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return u}))},31:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},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)}n.d(t,"a",(function(){return r}))},35:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},36:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},379:function(e,t,n){"use strict";n.r(t);var r,o,u,i,c=n(22),a=n(32),l=n(18),f=n(21),s=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}var p=function(e){var t="object"===Object(a.a)(e),n=t&&Object.values(e);return t&&n.length&&n.every((function(e){return Object(f.isValidElement)(e)}))};function b(e){var t=function(){var e=s.exec(r);if(null===e)return["no-more-tokens"];var t=e.index,n=Object(c.a)(e,4),o=n[0],u=n[1],i=n[2],a=n[3],l=o.length;if(a)return["self-closed",i,t,l];if(u)return["closer",i,t,l];return["opener",i,t,l]}(),n=Object(c.a)(t,4),a=n[0],p=n[1],b=n[2],y=n[3],v=i.length,O=b>o?o:null;if(!e[p])return m(),!1;switch(a){case"no-more-tokens":if(0!==v){var g=i.pop(),j=g.leadingTextStart,w=g.tokenStart;u.push(r.substr(j,w))}return m(),!1;case"self-closed":return 0===v?(null!==O&&u.push(r.substr(O,b-O)),u.push(e[p]),o=b+y,!0):(h(new d(e[p],b,y)),o=b+y,!0);case"opener":return i.push(new d(e[p],b,y,b+y,O)),o=b+y,!0;case"closer":if(1===v)return function(e){var t=i.pop(),n=t.element,o=t.leadingTextStart,c=t.prevOffset,a=t.tokenStart,s=t.children,d=e?r.substr(c,e-c):r.substr(c);d&&s.push(d);null!==o&&u.push(r.substr(o,a-o));u.push(f.cloneElement.apply(void 0,[n,null].concat(Object(l.a)(s))))}(b),o=b+y,!0;var S=i.pop(),x=r.substr(S.prevOffset,b-S.prevOffset);S.children.push(x),S.prevOffset=b+y;var k=new d(S.element,S.tokenStart,S.tokenLength,b+y);return k.children=S.children,h(k),o=b+y,!0;default:return m(),!1}}function m(){var e=r.length-o;0!==e&&u.push(r.substr(o,e))}function h(e){var t=e.element,n=e.tokenStart,o=e.tokenLength,u=e.prevOffset,c=e.children,a=i[i.length-1],s=r.substr(a.prevOffset,n-a.prevOffset);s&&a.children.push(s),a.children.push(f.cloneElement.apply(void 0,[t,null].concat(Object(l.a)(c)))),a.prevOffset=u||n+o}var y=function(e,t){if(r=e,o=0,u=[],i=[],s.lastIndex=0,!p(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(b(t));return f.createElement.apply(void 0,[f.Fragment,null].concat(Object(l.a)(u)))},v=n(6),O=n(20),g=n(2);function j(){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 f.Children.forEach(t,(function(t,r){t&&"string"!=typeof t&&(t=Object(f.cloneElement)(t,{key:[n,r].join()})),e.push(t)})),e}),[])}function w(e,t){return e&&f.Children.map(e,(function(e,n){if(Object(g.isString)(e))return Object(f.createElement)(t,{key:n},e);var r=e.props,o=r.children,u=Object(O.a)(r,["children"]);return Object(f.createElement)(t,Object(v.a)({key:n},u),o)}))}var S=n(59),x=function(e){return!Object(g.isNumber)(e)&&(Object(g.isString)(e)||Object(g.isArray)(e)?!e.length:!e)},k={OS:"web",select:function(e){return"web"in e?e.web:e.default}},E=n(61);function C(e){var t=e.children,n=Object(O.a)(e,["children"]);return Object(f.createElement)("div",Object(v.a)({dangerouslySetInnerHTML:{__html:t}},n))}var M=Object(f.createContext)(),I=M.Provider,P=M.Consumer,T=Object(f.forwardRef)((function(){return null})),A=new Set(["string","boolean","number"]),_=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),R=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"]),L=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"]),H=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 N(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}function D(e){return"key"===e||"children"===e}function $(e,t){switch(e){case"style":return function(e){if(!Object(g.isPlainObject)(e))return e;var t;for(var n in e){var r=e[n];if(null!=r){t?t+=";":t="";var o=V(n),u=W(n,r);t+=o+":"+u}}return t}(t)}return t}function z(e){switch(e){case"htmlFor":return"for";case"className":return"class"}return e.toLowerCase()}function V(e){return Object(g.startsWith)(e,"--")?e:N(e,["ms","O","Moz","Webkit"])?"-"+Object(g.kebabCase)(e):Object(g.kebabCase)(e)}function W(e,t){return"number"!=typeof t||0===t||H.has(e)?t:t+"px"}function F(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return G(e,t,n);switch(Object(a.a)(e)){case"string":return Object(E.escapeHTML)(e);case"number":return e.toString()}var r=e.type,o=e.props;switch(r){case f.StrictMode:case f.Fragment:return G(o.children,t,n);case C:var u=o.children,i=Object(O.a)(o,["children"]);return q(Object(g.isEmpty)(i)?null:"div",Object(v.a)({},i,{dangerouslySetInnerHTML:{__html:u}}),t,n)}switch(Object(a.a)(r)){case"string":return q(r,o,t,n);case"function":return r.prototype&&"function"==typeof r.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 F(o.render(),n,r)}(r,o,t,n):F(r(o,n),t,n)}switch(r&&r.$$typeof){case I.$$typeof:return G(o.children,o.value,n);case P.$$typeof:return F(o.children(t||r._currentValue),t,n);case T.$$typeof:return F(r.render(o),t,n)}return""}function q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=G(t.value,n,r),t=Object(g.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=G(t.children,n,r)),!e)return o;var u=function(e){var t="";for(var n in e){var r=z(n);if(Object(E.isValidAttributeName)(r)){var o=$(n,e[n]);if(A.has(Object(a.a)(o))&&!D(n)){var u=R.has(r);if(!u||!1!==o){var i=u||N(n,["data-","aria-"])||L.has(r);("boolean"!=typeof o||i)&&(t+=" "+r,u||("string"==typeof o&&(o=Object(E.escapeAttribute)(o)),t+='="'+o+'"'))}}}}return t}(t);return _.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+"</"+e+">"}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Object(g.castArray)(e);for(var o=0;o<e.length;o++){r+=F(e[o],t,n)}return r}var B=F;n.d(t,"__experimentalCreateInterpolateElement",(function(){return y})),n.d(t,"Children",(function(){return f.Children})),n.d(t,"cloneElement",(function(){return f.cloneElement})),n.d(t,"Component",(function(){return f.Component})),n.d(t,"createContext",(function(){return f.createContext})),n.d(t,"createElement",(function(){return f.createElement})),n.d(t,"createRef",(function(){return f.createRef})),n.d(t,"forwardRef",(function(){return f.forwardRef})),n.d(t,"Fragment",(function(){return f.Fragment})),n.d(t,"isValidElement",(function(){return f.isValidElement})),n.d(t,"memo",(function(){return f.memo})),n.d(t,"StrictMode",(function(){return f.StrictMode})),n.d(t,"useCallback",(function(){return f.useCallback})),n.d(t,"useContext",(function(){return f.useContext})),n.d(t,"useDebugValue",(function(){return f.useDebugValue})),n.d(t,"useEffect",(function(){return f.useEffect})),n.d(t,"useImperativeHandle",(function(){return f.useImperativeHandle})),n.d(t,"useLayoutEffect",(function(){return f.useLayoutEffect})),n.d(t,"useMemo",(function(){return f.useMemo})),n.d(t,"useReducer",(function(){return f.useReducer})),n.d(t,"useRef",(function(){return f.useRef})),n.d(t,"useState",(function(){return f.useState})),n.d(t,"lazy",(function(){return f.lazy})),n.d(t,"Suspense",(function(){return f.Suspense})),n.d(t,"concatChildren",(function(){return j})),n.d(t,"switchChildrenNodeName",(function(){return w})),n.d(t,"createPortal",(function(){return S.createPortal})),n.d(t,"findDOMNode",(function(){return S.findDOMNode})),n.d(t,"render",(function(){return S.render})),n.d(t,"unmountComponentAtNode",(function(){return S.unmountComponentAtNode})),n.d(t,"isEmptyElement",(function(){return x})),n.d(t,"Platform",(function(){return k})),n.d(t,"renderToString",(function(){return B})),n.d(t,"RawHTML",(function(){return C}))},40:function(e,t,n){"use strict";function r(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}n.d(t,"a",(function(){return r}))},59:function(e,t){!function(){e.exports=this.ReactDOM}()},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(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}},61:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},9: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}))}});


Generated: Fri Jan 24 01:00:03 2020 Cross-referenced by PHPXref 0.7.1