first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
/**
|
||||
* This file is generated by Webpack, do not edit it directly.
|
||||
*/
|
||||
return [
|
||||
'handle' => 'elementor-v2-locations',
|
||||
'deps' => [
|
||||
'react',
|
||||
],
|
||||
];
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,45 @@
|
||||
/*! ./components/injected-component-wrapper */
|
||||
|
||||
/*! ./create-location */
|
||||
|
||||
/*! ./create-replaceable-location */
|
||||
|
||||
/*! ./error-boundary */
|
||||
|
||||
/*! ./injections */
|
||||
|
||||
/*! ./types */
|
||||
|
||||
/*! react */
|
||||
|
||||
/*!**************************!*\
|
||||
!*** external ["React"] ***!
|
||||
\**************************/
|
||||
|
||||
/*!*******************************************************!*\
|
||||
!*** ./packages/packages/libs/locations/src/index.ts ***!
|
||||
\*******************************************************/
|
||||
|
||||
/*!*******************************************************!*\
|
||||
!*** ./packages/packages/libs/locations/src/types.ts ***!
|
||||
\*******************************************************/
|
||||
|
||||
/*!*************************************************************!*\
|
||||
!*** ./packages/packages/libs/locations/src/injections.tsx ***!
|
||||
\*************************************************************/
|
||||
|
||||
/*!******************************************************************!*\
|
||||
!*** ./packages/packages/libs/locations/src/create-location.tsx ***!
|
||||
\******************************************************************/
|
||||
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./packages/packages/libs/locations/src/components/error-boundary.tsx ***!
|
||||
\****************************************************************************/
|
||||
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./packages/packages/libs/locations/src/create-replaceable-location.tsx ***!
|
||||
\******************************************************************************/
|
||||
|
||||
/*!****************************************************************************************!*\
|
||||
!*** ./packages/packages/libs/locations/src/components/injected-component-wrapper.tsx ***!
|
||||
\****************************************************************************************/
|
||||
1
wp-content/plugins/elementor/assets/js/packages/locations/locations.min.js
vendored
Normal file
1
wp-content/plugins/elementor/assets/js/packages/locations/locations.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var n={d:function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r:function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}},e={};n.r(e),n.d(e,{__flushAllInjections:function(){return u},createLocation:function(){return f},createReplaceableLocation:function(){return d}});var t=window.React;class r extends t.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}function o({children:n}){return t.createElement(r,{fallback:null},t.createElement(t.Suspense,{fallback:null},n))}const i=10,c=[];function u(){c.forEach(n=>n())}function a(n){return()=>[...n.values()].sort((n,e)=>n.priority-e.priority)}function l(n){return()=>(0,t.useMemo)(()=>n(),[])}function s(n){return e=>t.createElement(o,null,t.createElement(n,e))}function p(){return p=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},p.apply(null,arguments)}function f(){const n=new Map,e=a(n),r=l(e),o=function(n){return e=>{const r=n();return t.createElement(t.Fragment,null,r.map(({id:n,component:r})=>t.createElement(r,p({},e,{key:n}))))}}(r),u=function(n){return({component:e,id:t,options:r={}})=>{!n.has(t)||r?.overwrite?n.set(t,{id:t,component:s(e),priority:r.priority??i}):console.warn(`An injection with the id "${t}" already exists. Did you mean to use "options.overwrite"?`)}}(n);return c.push(()=>n.clear()),{inject:u,getInjections:e,useInjections:r,Slot:o}}function d(){const n=new Map,e=a(n),r=l(e),o=function(n){return e=>{const r=n(),{component:o}=r.find(({condition:n})=>n?.(e))??{};return o?t.createElement(o,e):e.children}}(r),u=function(n){return({component:e,id:t,condition:r=()=>!0,options:o={}})=>{n.set(t,{id:t,component:s(e),condition:r,priority:o.priority??i})}}(n);return c.push(()=>n.clear()),{getInjections:e,useInjections:r,inject:u,Slot:o}}(window.elementorV2=window.elementorV2||{}).locations=e}(),window.elementorV2.locations?.init?.();
|
||||
Reference in New Issue
Block a user