react-align 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
- (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".wrapper{height:100%;display:flex;justify-content:space-between}.section{display:flex;flex-direction:column;justify-content:space-between}.area{display:flex;border:0 solid transparent;box-sizing:border-box;border-radius:8px;position:relative}.area-transition-in{transition:all .3s ease-in-out,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.area-transition-out{transition:all .3s ease-in-out .4s,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.item{position:relative;border:0 solid transparent;margin:6px;border-radius:6px}.stretch{flex:auto}.middle{flex-grow:0;flex:auto}.just-centered{justify-content:center}.just-end{justify-content:flex-end}.end{align-items:flex-end}.hide{display:none}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;background:rgba(0,0,0,.6)}.overlay-buttons{display:flex;padding:6px;box-sizing:border-box;justify-content:space-between}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(f,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("react"),require("react-beautiful-dnd")):typeof define=="function"&&define.amd?define(["exports","react","react-beautiful-dnd"],i):(f=typeof globalThis!="undefined"?globalThis:f||self,i(f.ReactAlign={},f.React,f.ReactBeautifulDnd))})(this,function(f,i,R){"use strict";var Tr=Object.defineProperty,Pr=Object.defineProperties;var Dr=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable;var Ue=(f,i,R)=>i in f?Tr(f,i,{enumerable:!0,configurable:!0,writable:!0,value:R}):f[i]=R,b=(f,i)=>{for(var R in i||(i={}))ze.call(i,R)&&Ue(f,R,i[R]);if(oe)for(var R of oe(i))Ge.call(i,R)&&Ue(f,R,i[R]);return f},ae=(f,i)=>Pr(f,Dr(i));var qe=(f,i)=>{var R={};for(var A in f)ze.call(f,A)&&i.indexOf(A)<0&&(R[A]=f[A]);if(f!=null&&oe)for(var A of oe(f))i.indexOf(A)<0&&Ge.call(f,A)&&(R[A]=f[A]);return R};const A=n=>n&&typeof n=="object"&&"default"in n?n:{default:n};function Je(n){if(n&&n.__esModule)return n;const m=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const C=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(m,s,C.get?C:{enumerable:!0,get:()=>n[s]})}}return m.default=n,Object.freeze(m)}const $=A(i),o=Je(i),Ce=i.createContext({editing:!1,isDragging:!1}),ie=()=>i.useContext(Ce),Wr="";var le={exports:{}},U={};/**
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(".reactalign.wrapper{height:100%;display:flex;justify-content:space-between}.reactalign .section{display:flex;flex-direction:column;justify-content:space-between}.reactalign .area{display:flex;border:0 solid transparent;box-sizing:border-box;border-radius:8px;position:relative}.reactalign .area-transition-in{transition:all .3s ease-in-out,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.reactalign .area-transition-out{transition:all .3s ease-in-out .4s,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.reactalign .item{position:relative;border:0 solid transparent;margin:6px;border-radius:6px}.reactalign .stretch{flex:auto}.reactalign .just-centered{justify-content:center}.reactalign .just-end{justify-content:flex-end}.reactalign .middle{align-items:center}.reactalign .bottom{align-items:flex-end}.reactalign .hide{display:none}.reactalign .overlay{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;background:rgba(0,0,0,.6)}.reactalign .overlay-buttons{display:flex;padding:6px;box-sizing:border-box;justify-content:space-between}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ (function(f,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("react"),require("react-beautiful-dnd")):typeof define=="function"&&define.amd?define(["exports","react","react-beautiful-dnd"],i):(f=typeof globalThis!="undefined"?globalThis:f||self,i(f.ReactAlign={},f.React,f.ReactBeautifulDnd))})(this,function(f,i,S){"use strict";var Tr=Object.defineProperty,Pr=Object.defineProperties;var Dr=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Ge=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var ze=(f,i,S)=>i in f?Tr(f,i,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[i]=S,w=(f,i)=>{for(var S in i||(i={}))Ge.call(i,S)&&ze(f,S,i[S]);if(ae)for(var S of ae(i))qe.call(i,S)&&ze(f,S,i[S]);return f},ie=(f,i)=>Pr(f,Dr(i));var Je=(f,i)=>{var S={};for(var A in f)Ge.call(f,A)&&i.indexOf(A)<0&&(S[A]=f[A]);if(f!=null&&ae)for(var A of ae(f))i.indexOf(A)<0&&qe.call(f,A)&&(S[A]=f[A]);return S};const A=n=>n&&typeof n=="object"&&"default"in n?n:{default:n};function Ke(n){if(n&&n.__esModule)return n;const C=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const E=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(C,s,E.get?E:{enumerable:!0,get:()=>n[s]})}}return C.default=n,Object.freeze(C)}const Ce=A(i),o=Ke(i),Ee=i.createContext({editing:!1,isDragging:!1}),le=()=>i.useContext(Ee),Wr="";var se={exports:{}},H={};/**
2
3
  * @license React
3
4
  * react-jsx-runtime.production.min.js
4
5
  *
@@ -6,7 +7,7 @@
6
7
  *
7
8
  * This source code is licensed under the MIT license found in the
8
9
  * LICENSE file in the root directory of this source tree.
9
- */var Ee;function Ke(){if(Ee)return U;Ee=1;var n=$.default,m=Symbol.for("react.element"),s=Symbol.for("react.fragment"),C=Object.prototype.hasOwnProperty,g=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function v(E,h,P){var _,x={},M=null,D=null;P!==void 0&&(M=""+P),h.key!==void 0&&(M=""+h.key),h.ref!==void 0&&(D=h.ref);for(_ in h)C.call(h,_)&&!L.hasOwnProperty(_)&&(x[_]=h[_]);if(E&&E.defaultProps)for(_ in h=E.defaultProps,h)x[_]===void 0&&(x[_]=h[_]);return{$$typeof:m,type:E,key:M,ref:D,props:x,_owner:g.current}}return U.Fragment=s,U.jsx=v,U.jsxs=v,U}var z={};/**
10
+ */var ke;function Xe(){if(ke)return H;ke=1;var n=Ce.default,C=Symbol.for("react.element"),s=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,R=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function k(g,d,j){var _,O={},D=null,T=null;j!==void 0&&(D=""+j),d.key!==void 0&&(D=""+d.key),d.ref!==void 0&&(T=d.ref);for(_ in d)E.call(d,_)&&!v.hasOwnProperty(_)&&(O[_]=d[_]);if(g&&g.defaultProps)for(_ in d=g.defaultProps,d)O[_]===void 0&&(O[_]=d[_]);return{$$typeof:C,type:g,key:D,ref:T,props:O,_owner:R.current}}return H.Fragment=s,H.jsx=k,H.jsxs=k,H}var U={};/**
10
11
  * @license React
11
12
  * react-jsx-runtime.development.js
12
13
  *
@@ -14,14 +15,14 @@
14
15
  *
15
16
  * This source code is licensed under the MIT license found in the
16
17
  * LICENSE file in the root directory of this source tree.
17
- */var ke;function Xe(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var n=$.default,m=Symbol.for("react.element"),s=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),E=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),d=Symbol.iterator,V="@@iterator";function N(e){if(e===null||typeof e!="object")return null;var r=d&&e[d]||e[V];return typeof r=="function"?r:null}var O=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];T("error",e,t)}}function T(e,r,t){{var a=O.ReactDebugCurrentFrame,c=a.getStackAddendum();c!==""&&(r+="%s",t=t.concat([c]));var p=t.map(function(u){return String(u)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var G=!1,ce=!1,Y=!1,q=!1,or=!1,ye;ye=Symbol.for("react.module.reference");function ar(e){return!!(typeof e=="string"||typeof e=="function"||e===C||e===L||or||e===g||e===P||e===_||q||e===D||G||ce||Y||typeof e=="object"&&e!==null&&(e.$$typeof===M||e.$$typeof===x||e.$$typeof===v||e.$$typeof===E||e.$$typeof===h||e.$$typeof===ye||e.getModuleId!==void 0))}function ir(e,r,t){var a=e.displayName;if(a)return a;var c=r.displayName||r.name||"";return c!==""?t+"("+c+")":t}function be(e){return e.displayName||"Context"}function F(e){if(e==null)return null;if(typeof e.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case s:return"Portal";case L:return"Profiler";case g:return"StrictMode";case P:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return be(r)+".Consumer";case v:var t=e;return be(t._context)+".Provider";case h:return ir(e,e.render,"ForwardRef");case x:var a=e.displayName||null;return a!==null?a:F(e.type)||"Memo";case M:{var c=e,p=c._payload,u=c._init;try{return F(u(p))}catch(l){return null}}}return null}var Z=Object.assign,J=0,we,_e,Re,Se,xe,je,Me;function Oe(){}Oe.__reactDisabledLog=!0;function lr(){{if(J===0){we=console.log,_e=console.info,Re=console.warn,Se=console.error,xe=console.group,je=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function sr(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},e,{value:we}),info:Z({},e,{value:_e}),warn:Z({},e,{value:Re}),error:Z({},e,{value:Se}),group:Z({},e,{value:xe}),groupCollapsed:Z({},e,{value:je}),groupEnd:Z({},e,{value:Me})})}J<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=O.ReactCurrentDispatcher,de;function Q(e,r,t){{if(de===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);de=a&&a[1]||""}return`
18
- `+de+e}}var ve=!1,ee;{var ur=typeof WeakMap=="function"?WeakMap:Map;ee=new ur}function Te(e,r){if(!e||ve)return"";{var t=ee.get(e);if(t!==void 0)return t}var a;ve=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=fe.current,fe.current=null,lr();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(I){a=I}Reflect.construct(e,[],u)}else{try{u.call()}catch(I){a=I}e.call(u.prototype)}}else{try{throw Error()}catch(I){a=I}e()}}catch(I){if(I&&a&&typeof I.stack=="string"){for(var l=I.stack.split(`
19
- `),j=a.stack.split(`
20
- `),y=l.length-1,w=j.length-1;y>=1&&w>=0&&l[y]!==j[w];)w--;for(;y>=1&&w>=0;y--,w--)if(l[y]!==j[w]){if(y!==1||w!==1)do if(y--,w--,w<0||l[y]!==j[w]){var W=`
21
- `+l[y].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,W),W}while(y>=1&&w>=0);break}}}finally{ve=!1,fe.current=p,sr(),Error.prepareStackTrace=c}var B=e?e.displayName||e.name:"",Be=B?Q(B):"";return typeof e=="function"&&ee.set(e,Be),Be}function cr(e,r,t){return Te(e,!1)}function fr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,t){if(e==null)return"";if(typeof e=="function")return Te(e,fr(e));if(typeof e=="string")return Q(e);switch(e){case P:return Q("Suspense");case _:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return cr(e.render);case x:return re(e.type,r,t);case M:{var a=e,c=a._payload,p=a._init;try{return re(p(c),r,t)}catch(u){}}}return""}var te=Object.prototype.hasOwnProperty,Pe={},De=O.ReactDebugCurrentFrame;function ne(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);De.setExtraStackFrame(t)}else De.setExtraStackFrame(null)}function dr(e,r,t,a,c){{var p=Function.call.bind(te);for(var u in e)if(p(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var j=Error((a||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}l=e[u](r,u,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(ne(c),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,u,typeof l),ne(null)),l instanceof Error&&!(l.message in Pe)&&(Pe[l.message]=!0,ne(c),k("Failed %s type: %s",t,l.message),ne(null))}}}var vr=Array.isArray;function pe(e){return vr(e)}function pr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function hr(e){try{return We(e),!1}catch(r){return!0}}function We(e){return""+e}function Ae(e){if(hr(e))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pr(e)),We(e)}var K=O.ReactCurrentOwner,gr={key:!0,ref:!0,__self:!0,__source:!0},Ve,Fe,he;he={};function Lr(e){if(te.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function mr(e){if(te.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Cr(e,r){if(typeof e.ref=="string"&&K.current&&r&&K.current.stateNode!==r){var t=F(K.current.type);he[t]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',F(K.current.type),e.ref),he[t]=!0)}}function Er(e,r){{var t=function(){Ve||(Ve=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function kr(e,r){{var t=function(){Fe||(Fe=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var yr=function(e,r,t,a,c,p,u){var l={$$typeof:m,type:e,key:r,ref:t,props:u,_owner:p};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function br(e,r,t,a,c){{var p,u={},l=null,j=null;t!==void 0&&(Ae(t),l=""+t),mr(r)&&(Ae(r.key),l=""+r.key),Lr(r)&&(j=r.ref,Cr(r,c));for(p in r)te.call(r,p)&&!gr.hasOwnProperty(p)&&(u[p]=r[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)u[p]===void 0&&(u[p]=y[p])}if(l||j){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&Er(u,w),j&&kr(u,w)}return yr(e,l,j,c,a,K.current,u)}}var ge=O.ReactCurrentOwner,Ie=O.ReactDebugCurrentFrame;function H(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(t)}else Ie.setExtraStackFrame(null)}var Le;Le=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function Ne(){{if(ge.current){var e=F(ge.current.type);if(e)return`
18
+ */var ye;function Qe(){return ye||(ye=1,process.env.NODE_ENV!=="production"&&function(){var n=Ce.default,C=Symbol.for("react.element"),s=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),g=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),h=Symbol.iterator,N="@@iterator";function V(e){if(e===null||typeof e!="object")return null;var r=h&&e[h]||e[N];return typeof r=="function"?r:null}var m=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];z("error",e,t)}}function z(e,r,t){{var a=m.ReactDebugCurrentFrame,c=a.getStackAddendum();c!==""&&(r+="%s",t=t.concat([c]));var p=t.map(function(u){return String(u)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var G=!1,q=!1,Z=!1,M=!1,J=!1,we;we=Symbol.for("react.module.reference");function ar(e){return!!(typeof e=="string"||typeof e=="function"||e===E||e===v||J||e===R||e===j||e===_||M||e===T||G||q||Z||typeof e=="object"&&e!==null&&(e.$$typeof===D||e.$$typeof===O||e.$$typeof===k||e.$$typeof===g||e.$$typeof===d||e.$$typeof===we||e.getModuleId!==void 0))}function ir(e,r,t){var a=e.displayName;if(a)return a;var c=r.displayName||r.name||"";return c!==""?t+"("+c+")":t}function be(e){return e.displayName||"Context"}function F(e){if(e==null)return null;if(typeof e.tag=="number"&&L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case s:return"Portal";case v:return"Profiler";case R:return"StrictMode";case j:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return be(r)+".Consumer";case k:var t=e;return be(t._context)+".Provider";case d:return ir(e,e.render,"ForwardRef");case O:var a=e.displayName||null;return a!==null?a:F(e.type)||"Memo";case D:{var c=e,p=c._payload,u=c._init;try{return F(u(p))}catch(l){return null}}}return null}var $=Object.assign,K=0,_e,Se,Re,xe,je,Me,Oe;function Te(){}Te.__reactDisabledLog=!0;function lr(){{if(K===0){_e=console.log,Se=console.info,Re=console.warn,xe=console.error,je=console.group,Me=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}K++}}function sr(){{if(K--,K===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:_e}),info:$({},e,{value:Se}),warn:$({},e,{value:Re}),error:$({},e,{value:xe}),group:$({},e,{value:je}),groupCollapsed:$({},e,{value:Me}),groupEnd:$({},e,{value:Oe})})}K<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=m.ReactCurrentDispatcher,de;function ee(e,r,t){{if(de===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);de=a&&a[1]||""}return`
19
+ `+de+e}}var pe=!1,re;{var ur=typeof WeakMap=="function"?WeakMap:Map;re=new ur}function Pe(e,r){if(!e||pe)return"";{var t=re.get(e);if(t!==void 0)return t}var a;pe=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=fe.current,fe.current=null,lr();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(I){a=I}Reflect.construct(e,[],u)}else{try{u.call()}catch(I){a=I}e.call(u.prototype)}}else{try{throw Error()}catch(I){a=I}e()}}catch(I){if(I&&a&&typeof I.stack=="string"){for(var l=I.stack.split(`
20
+ `),P=a.stack.split(`
21
+ `),y=l.length-1,b=P.length-1;y>=1&&b>=0&&l[y]!==P[b];)b--;for(;y>=1&&b>=0;y--,b--)if(l[y]!==P[b]){if(y!==1||b!==1)do if(y--,b--,b<0||l[y]!==P[b]){var W=`
22
+ `+l[y].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,W),W}while(y>=1&&b>=0);break}}}finally{pe=!1,fe.current=p,sr(),Error.prepareStackTrace=c}var B=e?e.displayName||e.name:"",Ue=B?ee(B):"";return typeof e=="function"&&re.set(e,Ue),Ue}function cr(e,r,t){return Pe(e,!1)}function fr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function te(e,r,t){if(e==null)return"";if(typeof e=="function")return Pe(e,fr(e));if(typeof e=="string")return ee(e);switch(e){case j:return ee("Suspense");case _:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return cr(e.render);case O:return te(e.type,r,t);case D:{var a=e,c=a._payload,p=a._init;try{return te(p(c),r,t)}catch(u){}}}return""}var ne=Object.prototype.hasOwnProperty,De={},We=m.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=te(e.type,e._source,r?r.type:null);We.setExtraStackFrame(t)}else We.setExtraStackFrame(null)}function dr(e,r,t,a,c){{var p=Function.call.bind(ne);for(var u in e)if(p(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var P=Error((a||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}l=e[u](r,u,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(oe(c),L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,u,typeof l),oe(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,oe(c),L("Failed %s type: %s",t,l.message),oe(null))}}}var pr=Array.isArray;function ve(e){return pr(e)}function vr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function hr(e){try{return Ae(e),!1}catch(r){return!0}}function Ae(e){return""+e}function Ve(e){if(hr(e))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",vr(e)),Ae(e)}var X=m.ReactCurrentOwner,gr={key:!0,ref:!0,__self:!0,__source:!0},Fe,Ie,he;he={};function Lr(e){if(ne.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function mr(e){if(ne.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Cr(e,r){if(typeof e.ref=="string"&&X.current&&r&&X.current.stateNode!==r){var t=F(X.current.type);he[t]||(L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',F(X.current.type),e.ref),he[t]=!0)}}function Er(e,r){{var t=function(){Fe||(Fe=!0,L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function kr(e,r){{var t=function(){Ie||(Ie=!0,L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var yr=function(e,r,t,a,c,p,u){var l={$$typeof:C,type:e,key:r,ref:t,props:u,_owner:p};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function wr(e,r,t,a,c){{var p,u={},l=null,P=null;t!==void 0&&(Ve(t),l=""+t),mr(r)&&(Ve(r.key),l=""+r.key),Lr(r)&&(P=r.ref,Cr(r,c));for(p in r)ne.call(r,p)&&!gr.hasOwnProperty(p)&&(u[p]=r[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)u[p]===void 0&&(u[p]=y[p])}if(l||P){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&Er(u,b),P&&kr(u,b)}return yr(e,l,P,c,a,X.current,u)}}var ge=m.ReactCurrentOwner,Ne=m.ReactDebugCurrentFrame;function Y(e){if(e){var r=e._owner,t=te(e.type,e._source,r?r.type:null);Ne.setExtraStackFrame(t)}else Ne.setExtraStackFrame(null)}var Le;Le=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function Ze(){{if(ge.current){var e=F(ge.current.type);if(e)return`
22
23
 
23
- Check the render method of \``+e+"`."}return""}}function wr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
+ Check the render method of \``+e+"`."}return""}}function br(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
25
 
25
- Check your code at `+r+":"+t+"."}return""}}var Ze={};function _r(e){{var r=Ne();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
+ Check your code at `+r+":"+t+"."}return""}}var $e={};function _r(e){{var r=Ze();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
27
 
27
- Check the top-level render call using <`+t+">.")}return r}}function $e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if(Ze[t])return;Ze[t]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+F(e._owner.type)+"."),H(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),H(null)}}function Ye(e,r){{if(typeof e!="object")return;if(pe(e))for(var t=0;t<e.length;t++){var a=e[t];me(a)&&$e(a,r)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var c=N(e);if(typeof c=="function"&&c!==e.entries)for(var p=c.call(e),u;!(u=p.next()).done;)me(u.value)&&$e(u.value,r)}}}function Rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===x))t=r.propTypes;else return;if(t){var a=F(r);dr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Le){Le=!0;var c=F(r);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){H(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),H(null);break}}e.ref!==null&&(H(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),H(null))}}function He(e,r,t,a,c,p){{var u=ar(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j=wr(c);j?l+=j:l+=Ne();var y;e===null?y="null":pe(e)?y="array":e!==void 0&&e.$$typeof===m?(y="<"+(F(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var w=br(e,r,t,c,p);if(w==null)return w;if(u){var W=r.children;if(W!==void 0)if(a)if(pe(W)){for(var B=0;B<W.length;B++)Ye(W[B],e);Object.freeze&&Object.freeze(W)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(W,e)}return e===C?Sr(w):Rr(w),w}}function xr(e,r,t){return He(e,r,t,!0)}function jr(e,r,t){return He(e,r,t,!1)}var Mr=jr,Or=xr;z.Fragment=C,z.jsx=Mr,z.jsxs=Or}()),z}(function(n){process.env.NODE_ENV==="production"?n.exports=Ke():n.exports=Xe()})(le);const S=le.exports.jsx,se=le.exports.jsxs,Qe=({className:n,children:m,editing:s,vertical:C,stretch:g,style:L,editorStyle:v,onMove:E,onAlignChange:h,onExtend:P})=>{const[_,x]=i.useState(!1),M=i.useCallback(()=>{x(!0)},[]),D=i.useCallback((d,V)=>{x(!1),!(!d.destination||d.reason!=="DROP"||d.destination.droppableId===d.source.droppableId&&d.destination.index===d.source.index)&&(E==null||E(d.draggableId,d.destination.droppableId,d.destination.index,d.source.droppableId,d.source.index))},[E]);return S("div",{className:`wrapper ${n} ${C&&"vertical"} ${g&&"stretch"}`,style:s?v:L,children:S(R.DragDropContext,{onDragStart:M,onDragEnd:D,children:S(Ce.Provider,{value:{editing:!!s,onAlignChange:h,onExtend:P,isDragging:_},children:m})})})},er=({className:n,children:m,horizontal:s,stretch:C,fixedWidth:g,fixedHeight:L,style:v,editorStyle:E})=>{const{editing:h}=ie();return S("div",{className:`section ${n} ${s?"horizontal":""} ${C?"stretch":""}`,style:b(b(b({},h?E:v),typeof L=="number"?{height:L+"px"}:{}),typeof g=="number"?{width:g+"px"}:{}),children:m})},rr={horizontalExtend:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M0.999999 20.25L1 3.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M23 20.25L23 3.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L20.5 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M17.5 9L20.5 12L17.5 15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L4 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M7 15L4 12L7 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),horizontalNormal:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M1 12L6 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3 9L6 12L3 15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M23 12L18 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21 15L18 12L21 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("rect",{x:8.75,y:2.75,width:6.5,height:18.5,rx:1.25,stroke:"currentColor",strokeWidth:1.5})),verticalExtend:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M3.75 0.999999L20.25 1",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.75 23L20.25 23",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L12 20.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15 17.5L12 20.5L9 17.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L12 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9 7L12 4L15 7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),verticalNormal:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M12 1L12 6",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15 3L12 6L9 3",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 23L12 18",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9 21L12 18L15 21",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("rect",{x:21.25,y:8.75,width:6.5,height:18.5,rx:1.25,transform:"rotate(90 21.25 8.75)",stroke:"currentColor",strokeWidth:1.5})),moveArrows:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M14.6514 19.0977L11.9998 21.7493L9.34814 19.0977",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 15V21.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.34814 4.90163L11.9998 2.25L14.6514 4.90163",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 9V2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M4.90163 14.6509L2.25 11.9993L4.90163 9.34766",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9 12H2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.0981 9.34766L21.7498 11.9993L19.0981 14.6509",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15 12H21.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),alignStart:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{width:24,height:24,rx:4,fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5H19V19H5V5ZM4 4H5H19H20V5V19V20H19H5H4V19V5V4ZM6 10C6 9.44772 6.44772 9 7 9C7.55228 9 8 9.44772 8 10V14C8 14.5523 7.55228 15 7 15C6.44772 15 6 14.5523 6 14V10ZM9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10V14C11 14.5523 10.5523 15 10 15C9.44772 15 9 14.5523 9 14V10ZM13 9C12.4477 9 12 9.44772 12 10V14C12 14.5523 12.4477 15 13 15C13.5523 15 14 14.5523 14 14V10C14 9.44772 13.5523 9 13 9Z",fill:"currentColor"})),alignCenter:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{width:24,height:24,rx:4,fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM16 14C16 14.5523 15.5523 15 15 15C14.4477 15 14 14.5523 14 14L14 10C14 9.44772 14.4477 9 15 9C15.5523 9 16 9.44771 16 10L16 14ZM13 14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14L11 10C11 9.44771 11.4477 9 12 9C12.5523 9 13 9.44771 13 10L13 14ZM9 15C9.55228 15 10 14.5523 10 14L10 10C10 9.44771 9.55228 9 9 9C8.44771 9 8 9.44771 8 10L8 14C8 14.5523 8.44772 15 9 15Z",fill:"currentColor"})),alignEnd:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{width:24,height:24,rx:4,fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM18 14C18 14.5523 17.5523 15 17 15C16.4477 15 16 14.5523 16 14L16 10C16 9.44772 16.4477 9 17 9C17.5523 9 18 9.44771 18 10L18 14ZM15 14C15 14.5523 14.5523 15 14 15C13.4477 15 13 14.5523 13 14L13 10C13 9.44772 13.4477 9 14 9C14.5523 9 15 9.44772 15 10L15 14ZM11 15C11.5523 15 12 14.5523 12 14L12 10C12 9.44772 11.5523 9 11 9C10.4477 9 10 9.44772 10 10L10 14C10 14.5523 10.4477 15 11 15Z",fill:"currentColor"})),alignStartV:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{y:24,width:24,height:24,rx:4,transform:"rotate(-90 0 24)",fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 6C14.5523 6 15 6.44772 15 7C15 7.55229 14.5523 8 14 8L10 8C9.44772 8 9 7.55229 9 7C9 6.44772 9.44772 6 10 6L14 6ZM14 9C14.5523 9 15 9.44772 15 10C15 10.5523 14.5523 11 14 11L10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9L14 9ZM15 13C15 12.4477 14.5523 12 14 12L10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14L14 14C14.5523 14 15 13.5523 15 13Z",fill:"currentColor"})),alignCenterV:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{y:24,width:24,height:24,rx:4,transform:"rotate(-90 0 24)",fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 8C14.5523 8 15 8.44772 15 9C15 9.55228 14.5523 10 14 10L10 10C9.44772 10 9 9.55229 9 9C9 8.44772 9.44771 8 10 8L14 8ZM14 11C14.5523 11 15 11.4477 15 12C15 12.5523 14.5523 13 14 13L10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44771 11 10 11L14 11ZM15 15C15 14.4477 14.5523 14 14 14L10 14C9.44772 14 9 14.4477 9 15C9 15.5523 9.44772 16 10 16L14 16C14.5523 16 15 15.5523 15 15Z",fill:"currentColor"})),alignEndV:n=>o.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{y:24,width:24,height:24,rx:4,transform:"rotate(-90 0 24)",fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 19L5 5L19 5L19 19L5 19ZM4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20L19 20L5 20L4 20ZM10 18C9.44772 18 9 17.5523 9 17C9 16.4477 9.44772 16 10 16L14 16C14.5523 16 15 16.4477 15 17C15 17.5523 14.5523 18 14 18L10 18ZM10 15C9.44772 15 9 14.5523 9 14C9 13.4477 9.44771 13 10 13L14 13C14.5523 13 15 13.4477 15 14C15 14.5523 14.5523 15 14 15L10 15ZM9 11C9 11.5523 9.44771 12 10 12L14 12C14.5523 12 15 11.5523 15 11C15 10.4477 14.5523 10 14 10L10 10C9.44771 10 9 10.4477 9 11Z",fill:"currentColor"}))},X=({className:n,name:m,onClick:s})=>{const C=rr[m];return S(C,{className:n,onClick:s})},ue=["start","centered","end"];function tr({id:n,className:m,vertical:s,stretch:C,end:g,disabled:L,align:v,onAlignChange:E,children:h,style:P,editorStyle:_,iconColor:x="#FFFFFF"}){const[M,D]=i.useState(!1);i.useEffect(()=>{const T=requestAnimationFrame(()=>D(!0));return()=>{cancelAnimationFrame(T),D(!1)}},[]);const{editing:d,onAlignChange:V}=ie(),N=i.useCallback(()=>{const T=ue[(v?ue.indexOf(v)+1:0)%ue.length];E==null||E(T),V==null||V(n,T)},[v,E,V,n]),O=i.useMemo(()=>({position:"absolute",left:s?g?0:void 0:"50%",right:s?g?void 0:0:"50%",bottom:!s&&!g?0:s?"50%":void 0,top:s?"50%":g?0:void 0,opacity:!L&&d&&v?1:0,pointerEvents:!L&&d&&v?"auto":"none",transition:"all 0.5s ease-in-out"}),[s,g,L,d,v]),k=i.useMemo(()=>$.default.Children.map(h,T=>$.default.cloneElement(T,{end:g,vertical:s})),[h,g,s]);return M?S(R.Droppable,{droppableId:n,direction:s?"vertical":"horizontal",isDropDisabled:L,children:(T,G)=>se("div",ae(b({ref:T.innerRef},T.droppableProps),{className:[m,"area",C&&"stretch",g&&"end",v==="centered"?"just-centered":v==="end"?"just-end":"start",d?"area-transition-in":"area-transition-out"].filter(Boolean).join(" "),style:b({flexDirection:s?"column":"row",minHeight:!$.default.Children.count(h)&&!d?"0px":"26px",minWidth:!$.default.Children.count(h)&&!d?"0px":"46px",opacity:G.isDraggingOver?.8:1},d?_:P),children:[k,T.placeholder,S("div",{style:O,children:S("div",{onClick:N,style:{cursor:"pointer",color:x},children:S(X,{name:v==="centered"?s?"alignCenterV":"alignCenter":v==="end"?s?"alignEndV":"alignEnd":s?"alignStartV":"alignStart"})})})]}))}):null}function nr(x){var M=x,{className:n,children:m,id:s,index:C,extendable:g=!1,extended:L=!1,disabled:v=!1,style:E,editorStyle:h,iconColor:P="rgb(255, 255, 255)"}=M,_=qe(M,["className","children","id","index","extendable","extended","disabled","style","editorStyle","iconColor"]);const{vertical:D}=_,{editing:d,isDragging:V,onExtend:N}=ie(),[O,k]=i.useState(!1),T=i.useCallback(()=>{!g||(k(!1),N==null||N(s,!L))},[g,N,L,s]),G=i.useMemo(()=>({alignItems:"start",float:"left",color:P}),[P]),ce=i.useMemo(()=>({id:s,editing:d,isDragging:V,isHovered:O,extended:L,extendable:g,disabled:v,index:C}),[v,d,g,L,s,C,V,O]);return S(R.Draggable,{draggableId:s,index:C,isDragDisabled:v,children:(Y,q)=>S("div",ae(b({ref:Y.innerRef},Y.draggableProps),{className:`${n} item`,style:b(b({flex:L&&!q.isDragging?"auto":void 0,opacity:q.isDragging?.5:1},d?h:E),Y.draggableProps.style),children:se("div",{style:{display:"inline-block",position:"relative",minHeight:O&&!v?"35px":void 0,width:!D&&L?"100%":void 0,minWidth:O&&!v?g?"70px":"35px":void 0,height:D&&L?"100%":void 0},onMouseEnter:()=>d&&k(!0),onMouseLeave:()=>d&&k(!1),children:[typeof m=="function"?m(ce):m,S("div",{className:"overlay",style:{display:!v&&d&&O&&(q.isDragging||!V)?"block":"none"},children:se("div",{className:"overlay-buttons",style:G,children:[S("div",ae(b({},Y.dragHandleProps),{style:{cursor:"grab"},children:S(X,{name:"moveArrows"})})),g&&S("div",{style:{cursor:"pointer",marginLeft:"8px"},onClick:T,children:S(X,{name:D?"verticalExtend":"horizontalExtend"})})]})})]})}))})}f.GridArea=tr,f.GridItem=nr,f.GridSection=er,f.GridWrapper=Qe,f.Icon=X,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
28
+ Check the top-level render call using <`+t+">.")}return r}}function Ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if($e[t])return;$e[t]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+F(e._owner.type)+"."),Y(e),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),Y(null)}}function Be(e,r){{if(typeof e!="object")return;if(ve(e))for(var t=0;t<e.length;t++){var a=e[t];me(a)&&Ye(a,r)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var c=V(e);if(typeof c=="function"&&c!==e.entries)for(var p=c.call(e),u;!(u=p.next()).done;)me(u.value)&&Ye(u.value,r)}}}function Sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===O))t=r.propTypes;else return;if(t){var a=F(r);dr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Le){Le=!0;var c=F(r);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Rr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){Y(e),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),L("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}function He(e,r,t,a,c,p){{var u=ar(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=br(c);P?l+=P:l+=Ze();var y;e===null?y="null":ve(e)?y="array":e!==void 0&&e.$$typeof===C?(y="<"+(F(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var b=wr(e,r,t,c,p);if(b==null)return b;if(u){var W=r.children;if(W!==void 0)if(a)if(ve(W)){for(var B=0;B<W.length;B++)Be(W[B],e);Object.freeze&&Object.freeze(W)}else L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Be(W,e)}return e===E?Rr(b):Sr(b),b}}function xr(e,r,t){return He(e,r,t,!0)}function jr(e,r,t){return He(e,r,t,!1)}var Mr=jr,Or=xr;U.Fragment=E,U.jsx=Mr,U.jsxs=Or}()),U}(function(n){process.env.NODE_ENV==="production"?n.exports=Xe():n.exports=Qe()})(se);const x=se.exports.jsx,ue=se.exports.jsxs,er=({className:n,children:C,editing:s,vertical:E,stretch:R,style:v,editorStyle:k,onMove:g,onAlignChange:d,onExtend:j})=>{const[_,O]=i.useState(!1),D=i.useCallback(()=>{O(!0)},[]),T=i.useCallback((h,N)=>{O(!1),!(!h.destination||h.reason!=="DROP"||h.destination.droppableId===h.source.droppableId&&h.destination.index===h.source.index)&&(g==null||g(h.draggableId,h.destination.droppableId,h.destination.index,h.source.droppableId,h.source.index))},[g]);return x("div",{className:["reactalign","wrapper",n,E&&"vertical",R&&"stretch"].filter(Boolean).join(" "),style:s?k:v,children:x(S.DragDropContext,{onDragStart:D,onDragEnd:T,children:x(Ee.Provider,{value:{editing:!!s,onAlignChange:d,onExtend:j,isDragging:_},children:C})})})},rr=({className:n,children:C,horizontal:s,stretch:E,fixedWidth:R,fixedHeight:v,style:k,editorStyle:g})=>{const{editing:d}=le();return x("div",{className:`section ${n} ${s?"horizontal":""} ${E?"stretch":""}`,style:w(w(w({},d?g:k),typeof v=="number"?{height:v+"px"}:{}),typeof R=="number"?{width:R+"px"}:{}),children:C})},tr={horizontalExtend:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M0.999999 20.25L1 3.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M23 20.25L23 3.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L20.5 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M17.5 9L20.5 12L17.5 15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L4 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M7 15L4 12L7 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),horizontalNormal:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M1 12L6 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3 9L6 12L3 15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M23 12L18 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21 15L18 12L21 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("rect",{x:8.75,y:2.75,width:6.5,height:18.5,rx:1.25,stroke:"currentColor",strokeWidth:1.5})),verticalExtend:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M3.75 0.999999L20.25 1",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.75 23L20.25 23",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L12 20.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15 17.5L12 20.5L9 17.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 12L12 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9 7L12 4L15 7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),verticalNormal:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M12 1L12 6",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15 3L12 6L9 3",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 23L12 18",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9 21L12 18L15 21",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("rect",{x:21.25,y:8.75,width:6.5,height:18.5,rx:1.25,transform:"rotate(90 21.25 8.75)",stroke:"currentColor",strokeWidth:1.5})),moveArrows:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M14.6514 19.0977L11.9998 21.7493L9.34814 19.0977",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 15V21.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.34814 4.90163L11.9998 2.25L14.6514 4.90163",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 9V2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M4.90163 14.6509L2.25 11.9993L4.90163 9.34766",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9 12H2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.0981 9.34766L21.7498 11.9993L19.0981 14.6509",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M15 12H21.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),alignStart:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{width:24,height:24,rx:4,fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5H19V19H5V5ZM4 4H5H19H20V5V19V20H19H5H4V19V5V4ZM6 10C6 9.44772 6.44772 9 7 9C7.55228 9 8 9.44772 8 10V14C8 14.5523 7.55228 15 7 15C6.44772 15 6 14.5523 6 14V10ZM9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10V14C11 14.5523 10.5523 15 10 15C9.44772 15 9 14.5523 9 14V10ZM13 9C12.4477 9 12 9.44772 12 10V14C12 14.5523 12.4477 15 13 15C13.5523 15 14 14.5523 14 14V10C14 9.44772 13.5523 9 13 9Z",fill:"currentColor"})),alignCenter:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{width:24,height:24,rx:4,fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM16 14C16 14.5523 15.5523 15 15 15C14.4477 15 14 14.5523 14 14L14 10C14 9.44772 14.4477 9 15 9C15.5523 9 16 9.44771 16 10L16 14ZM13 14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14L11 10C11 9.44771 11.4477 9 12 9C12.5523 9 13 9.44771 13 10L13 14ZM9 15C9.55228 15 10 14.5523 10 14L10 10C10 9.44771 9.55228 9 9 9C8.44771 9 8 9.44771 8 10L8 14C8 14.5523 8.44772 15 9 15Z",fill:"currentColor"})),alignEnd:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{width:24,height:24,rx:4,fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM18 14C18 14.5523 17.5523 15 17 15C16.4477 15 16 14.5523 16 14L16 10C16 9.44772 16.4477 9 17 9C17.5523 9 18 9.44771 18 10L18 14ZM15 14C15 14.5523 14.5523 15 14 15C13.4477 15 13 14.5523 13 14L13 10C13 9.44772 13.4477 9 14 9C14.5523 9 15 9.44772 15 10L15 14ZM11 15C11.5523 15 12 14.5523 12 14L12 10C12 9.44772 11.5523 9 11 9C10.4477 9 10 9.44772 10 10L10 14C10 14.5523 10.4477 15 11 15Z",fill:"currentColor"})),alignStartV:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{y:24,width:24,height:24,rx:4,transform:"rotate(-90 0 24)",fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 6C14.5523 6 15 6.44772 15 7C15 7.55229 14.5523 8 14 8L10 8C9.44772 8 9 7.55229 9 7C9 6.44772 9.44772 6 10 6L14 6ZM14 9C14.5523 9 15 9.44772 15 10C15 10.5523 14.5523 11 14 11L10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9L14 9ZM15 13C15 12.4477 14.5523 12 14 12L10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14L14 14C14.5523 14 15 13.5523 15 13Z",fill:"currentColor"})),alignCenterV:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{y:24,width:24,height:24,rx:4,transform:"rotate(-90 0 24)",fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 8C14.5523 8 15 8.44772 15 9C15 9.55228 14.5523 10 14 10L10 10C9.44772 10 9 9.55229 9 9C9 8.44772 9.44771 8 10 8L14 8ZM14 11C14.5523 11 15 11.4477 15 12C15 12.5523 14.5523 13 14 13L10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44771 11 10 11L14 11ZM15 15C15 14.4477 14.5523 14 14 14L10 14C9.44772 14 9 14.4477 9 15C9 15.5523 9.44772 16 10 16L14 16C14.5523 16 15 15.5523 15 15Z",fill:"currentColor"})),alignEndV:n=>o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("rect",{y:24,width:24,height:24,rx:4,transform:"rotate(-90 0 24)",fill:"black",fillOpacity:.5}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 19L5 5L19 5L19 19L5 19ZM4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20L19 20L5 20L4 20ZM10 18C9.44772 18 9 17.5523 9 17C9 16.4477 9.44772 16 10 16L14 16C14.5523 16 15 16.4477 15 17C15 17.5523 14.5523 18 14 18L10 18ZM10 15C9.44772 15 9 14.5523 9 14C9 13.4477 9.44771 13 10 13L14 13C14.5523 13 15 13.4477 15 14C15 14.5523 14.5523 15 14 15L10 15ZM9 11C9 11.5523 9.44771 12 10 12L14 12C14.5523 12 15 11.5523 15 11C15 10.4477 14.5523 10 14 10L10 10C9.44771 10 9 10.4477 9 11Z",fill:"currentColor"}))},Q=({className:n,name:C,onClick:s})=>{const E=tr[C];return x(E,{className:n,onClick:s})},ce=["start","centered","end"];function nr({id:n,className:C,vertical:s,stretch:E,middle:R,bottom:v,disabled:k,align:g,realignable:d,children:j,style:_,editorStyle:O,iconColor:D="#FFFFFF",onAlignChange:T,onClick:h}){const[N,V]=i.useState(!1);i.useEffect(()=>{const M=requestAnimationFrame(()=>V(!0));return()=>{cancelAnimationFrame(M),V(!1)}},[]);const{editing:m,onAlignChange:L}=le(),z=i.useCallback(()=>{if(!d)return;const M=ce[(g?ce.indexOf(g)+1:0)%ce.length];T==null||T(M),L==null||L(n,M)},[g,d,T,L,n]),G=i.useCallback(()=>{!m||h==null||h(n)},[n,m,h]),q=i.useMemo(()=>({position:"absolute",left:s?v?0:void 0:"50%",right:s?v?void 0:0:"50%",bottom:!s&&!v?0:s?"50%":void 0,top:s?"50%":v?0:void 0,opacity:!k&&m&&d?1:0,pointerEvents:!k&&m&&d?"auto":"none",transition:"all 0.5s ease-in-out"}),[s,v,k,m,d]),Z=i.useMemo(()=>i.Children.map(j,M=>i.cloneElement(M,{bottom:v,vertical:s})),[j,v,s]);return N?x(S.Droppable,{droppableId:n,direction:s?"vertical":"horizontal",isDropDisabled:k,children:(M,J)=>ue("div",ie(w({ref:M.innerRef},M.droppableProps),{className:[C,"area",E&&"stretch",R&&"middle",v&&"bottom",g==="centered"?"just-centered":g==="end"?"just-end":"start",m?"area-transition-in":"area-transition-out"].filter(Boolean).join(" "),style:w({flexDirection:s?"column":"row",minHeight:!i.Children.count(j)&&!m?"0px":"26px",minWidth:!i.Children.count(j)&&!m?"0px":"46px",opacity:J.isDraggingOver?.8:1},m?O:_),onClick:G,children:[Z,M.placeholder,x("div",{style:q,children:x("div",{onClick:z,style:{cursor:"pointer",color:D},children:x(Q,{name:g==="centered"?s?"alignCenterV":"alignCenter":g==="end"?s?"alignEndV":"alignEnd":s?"alignStartV":"alignStart"})})})]}))}):null}function or(O){var D=O,{className:n,children:C,id:s,index:E,extendable:R=!1,extended:v=!1,disabled:k=!1,style:g,editorStyle:d,iconColor:j="rgb(255, 255, 255)"}=D,_=Je(D,["className","children","id","index","extendable","extended","disabled","style","editorStyle","iconColor"]);const{vertical:T}=_,{editing:h,isDragging:N,onExtend:V}=le(),[m,L]=i.useState(!1),z=i.useCallback(()=>{!R||(L(!1),V==null||V(s,!v))},[R,V,v,s]),G=i.useMemo(()=>({alignItems:"start",float:"left",color:j}),[j]),q=i.useMemo(()=>({id:s,editing:h,isDragging:N,isHovered:m,extended:v,extendable:R,disabled:k,index:E}),[k,h,R,v,s,E,N,m]);return x(S.Draggable,{draggableId:s,index:E,isDragDisabled:k,children:(Z,M)=>x("div",ie(w({ref:Z.innerRef},Z.draggableProps),{className:`${n} item`,style:w(w({flex:v&&!M.isDragging?"auto":void 0,opacity:M.isDragging?.5:1},h?d:g),Z.draggableProps.style),children:ue("div",{style:{display:"inline-block",position:"relative",minHeight:m&&!k?"35px":void 0,width:!T&&v?"100%":void 0,minWidth:m&&!k?R?"70px":"35px":void 0,height:T&&v?"100%":void 0},onMouseEnter:()=>h&&L(!0),onMouseLeave:()=>h&&L(!1),onClick:J=>J.stopPropagation(),children:[typeof C=="function"?C(q):C,x("div",{className:"overlay",style:{display:!k&&h&&m&&(M.isDragging||!N)?"block":"none"},children:ue("div",{className:"overlay-buttons",style:G,children:[x("div",ie(w({},Z.dragHandleProps),{style:{cursor:"grab"},children:x(Q,{name:"moveArrows"})})),R&&x("div",{style:{cursor:"pointer",marginLeft:"8px"},onClick:z,children:x(Q,{name:T?"verticalExtend":"horizontalExtend"})})]})})]})}))})}f.GridArea=nr,f.GridItem=or,f.GridSection=rr,f.GridWrapper=er,f.Icon=Q,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-align",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "author": "KaWaite",
5
5
  "license": "MIT",
6
6
  "main": "./dist/react-align.umd.js",
@@ -35,28 +35,23 @@
35
35
  "trailingComma": "es5"
36
36
  },
37
37
  "devDependencies": {
38
- "@babel/core": "^7.18.6",
39
- "@types/react": "^18.0.15",
38
+ "@types/react": "^18.0.24",
40
39
  "@types/react-beautiful-dnd": "^13.1.2",
41
- "@types/react-dom": "^18.0.6",
42
- "@vitejs/plugin-react": "^2.0.0",
43
- "babel-loader": "^8.2.5",
44
- "eslint": "^8.19.0",
45
- "eslint-config-prettier": "^8.5.0",
46
- "eslint-config-react-app": "^7.0.1",
47
- "eslint-plugin-prettier": "^4.2.1",
48
- "postcss": "^8.4.14",
40
+ "@types/react-dom": "^18.0.8",
41
+ "@vitejs/plugin-react": "^2.2.0",
42
+ "eslint": "^8.26.0",
43
+ "eslint-config-reearth": "^0.2.1",
44
+ "husky": "^8.0.1",
45
+ "postcss": "^8.4.18",
49
46
  "prettier": "^2.7.1",
50
47
  "react": "^18.2.0",
51
- "react-beautiful-dnd": "^13.1.0",
48
+ "react-beautiful-dnd": "^13.1.1",
52
49
  "react-dom": "^18.2.0",
53
- "typescript": "^4.7.4",
54
- "vite": "^3.0.0",
55
- "vite-plugin-css-injected-by-js": "^1.5.1",
56
- "vite-plugin-dts": "^1.3.0",
57
- "vitest": "^0.18.0"
58
- },
59
- "dependencies": {
60
- "vite-plugin-svgr": "^2.2.0"
50
+ "typescript": "^4.8.4",
51
+ "vite": "^3.2.1",
52
+ "vite-plugin-css-injected-by-js": "^2.1.1",
53
+ "vite-plugin-dts": "^1.6.6",
54
+ "vite-plugin-svgr": "^2.2.2",
55
+ "vitest": "^0.24.3"
61
56
  }
62
57
  }
package/src/GridArea.tsx CHANGED
@@ -1,10 +1,13 @@
1
- import React, {
1
+ import {
2
2
  CSSProperties,
3
3
  PropsWithChildren,
4
4
  useCallback,
5
5
  useMemo,
6
6
  useState,
7
7
  useEffect,
8
+ cloneElement,
9
+ Children,
10
+ ReactElement,
8
11
  } from "react";
9
12
  import { Droppable } from "react-beautiful-dnd";
10
13
 
@@ -19,14 +22,17 @@ export type AreaProps = {
19
22
  className?: string;
20
23
  vertical?: boolean;
21
24
  stretch?: boolean;
22
- end?: boolean;
25
+ middle?: boolean;
26
+ bottom?: boolean;
23
27
  align?: Alignment;
28
+ realignable?: boolean;
24
29
  disabled?: boolean;
25
30
  /** Extra customizable parts only for the really picky */
26
31
  style?: CSSProperties;
27
32
  editorStyle?: CSSProperties;
28
33
  iconColor?: string;
29
34
  onAlignChange?: (alignment: Alignment) => void;
35
+ onClick?: (id?: string) => void;
30
36
  };
31
37
 
32
38
  const alignments = ["start", "centered", "end"] as const;
@@ -36,15 +42,18 @@ export default function GridArea({
36
42
  className,
37
43
  vertical,
38
44
  stretch,
39
- end,
45
+ middle,
46
+ bottom,
40
47
  disabled,
41
48
  align,
42
- onAlignChange,
49
+ realignable,
43
50
  children,
44
51
  // Picky stuff
45
52
  style,
46
53
  editorStyle,
47
54
  iconColor = "#FFFFFF",
55
+ onAlignChange,
56
+ onClick,
48
57
  }: PropsWithChildren<AreaProps>) {
49
58
  // ***** Keeps everything working inside dev environment with React 18 StrictMode *****
50
59
  const [enableDrop, setEnableDrop] = useState(false);
@@ -62,47 +71,49 @@ export default function GridArea({
62
71
  const { editing: enabled, onAlignChange: onAlignChange2 } = useAlignContext();
63
72
 
64
73
  const handleAlignChange = useCallback(() => {
65
- const a =
66
- alignments[
67
- (align ? alignments.indexOf(align) + 1 : 0) % alignments.length
68
- ];
74
+ if (!realignable) return;
75
+ const a = alignments[(align ? alignments.indexOf(align) + 1 : 0) % alignments.length];
69
76
  onAlignChange?.(a);
70
77
  onAlignChange2?.(id, a);
71
- }, [align, onAlignChange, onAlignChange2, id]);
78
+ }, [align, realignable, onAlignChange, onAlignChange2, id]);
79
+
80
+ const handleClick = useCallback(() => {
81
+ if (!enabled) return;
82
+ onClick?.(id);
83
+ }, [id, enabled, onClick]);
72
84
 
73
85
  const buttonStyle: CSSProperties = useMemo(
74
86
  () => ({
75
87
  position: "absolute",
76
- left: vertical ? (end ? 0 : undefined) : "50%",
77
- right: vertical ? (!end ? 0 : undefined) : "50%",
78
- bottom: !vertical && !end ? 0 : vertical ? "50%" : undefined,
79
- top: vertical ? "50%" : end ? 0 : undefined,
80
- opacity: !disabled && enabled && align ? 1 : 0,
81
- pointerEvents: !disabled && enabled && align ? "auto" : "none",
88
+ left: vertical ? (bottom ? 0 : undefined) : "50%",
89
+ right: vertical ? (!bottom ? 0 : undefined) : "50%",
90
+ bottom: !vertical && !bottom ? 0 : vertical ? "50%" : undefined,
91
+ top: vertical ? "50%" : bottom ? 0 : undefined,
92
+ opacity: !disabled && enabled && realignable ? 1 : 0,
93
+ pointerEvents: !disabled && enabled && realignable ? "auto" : "none",
82
94
  transition: "all 0.5s ease-in-out",
83
95
  }),
84
- [vertical, end, disabled, enabled, align]
96
+ [vertical, bottom, disabled, enabled, realignable],
85
97
  );
86
98
 
87
99
  // Rebuilds the GridItem children to receive their parent GridArea's 'end' and 'vertical' values.
88
100
  // Used to know where to align the overlay buttons (end) and how to extend the GridItems (vertical).
89
101
  const childrenWithParentProps = useMemo(
90
102
  () =>
91
- React.Children.map(children, (child) =>
92
- React.cloneElement(child as React.ReactElement<any>, {
93
- end,
103
+ Children.map(children, child =>
104
+ cloneElement(child as ReactElement<any>, {
105
+ bottom,
94
106
  vertical,
95
- })
107
+ }),
96
108
  ),
97
- [children, end, vertical]
109
+ [children, bottom, vertical],
98
110
  );
99
111
 
100
112
  return enableDrop ? (
101
113
  <Droppable
102
114
  droppableId={id}
103
115
  direction={vertical ? "vertical" : "horizontal"}
104
- isDropDisabled={disabled}
105
- >
116
+ isDropDisabled={disabled}>
106
117
  {(provided, snapshot) => (
107
118
  <div
108
119
  ref={provided.innerRef}
@@ -111,26 +122,21 @@ export default function GridArea({
111
122
  className,
112
123
  "area",
113
124
  stretch && "stretch",
114
- end && "end",
115
- align === "centered"
116
- ? "just-centered"
117
- : align === "end"
118
- ? "just-end"
119
- : "start",
125
+ middle && "middle",
126
+ bottom && "bottom",
127
+ align === "centered" ? "just-centered" : align === "end" ? "just-end" : "start",
120
128
  enabled ? "area-transition-in" : "area-transition-out",
121
129
  ]
122
130
  .filter(Boolean)
123
131
  .join(" ")}
124
132
  style={{
125
133
  flexDirection: vertical ? "column" : "row",
126
- minHeight:
127
- !React.Children.count(children) && !enabled ? "0px" : "26px",
128
- minWidth:
129
- !React.Children.count(children) && !enabled ? "0px" : "46px",
134
+ minHeight: !Children.count(children) && !enabled ? "0px" : "26px",
135
+ minWidth: !Children.count(children) && !enabled ? "0px" : "46px",
130
136
  opacity: snapshot.isDraggingOver ? 0.8 : 1,
131
137
  ...(enabled ? editorStyle : style),
132
138
  }}
133
- >
139
+ onClick={handleClick}>
134
140
  {childrenWithParentProps}
135
141
  {provided.placeholder}
136
142
  <div style={buttonStyle}>
@@ -139,8 +145,7 @@ export default function GridArea({
139
145
  style={{
140
146
  cursor: "pointer",
141
147
  color: iconColor,
142
- }}
143
- >
148
+ }}>
144
149
  <Icon
145
150
  name={
146
151
  align === "centered"
package/src/GridItem.tsx CHANGED
@@ -1,10 +1,4 @@
1
- import React, {
2
- useMemo,
3
- CSSProperties,
4
- useState,
5
- useCallback,
6
- ReactNode,
7
- } from "react";
1
+ import { useMemo, CSSProperties, useState, useCallback, ReactNode } from "react";
8
2
  import { Draggable } from "react-beautiful-dnd";
9
3
 
10
4
  import { useAlignContext } from "./context";
@@ -52,7 +46,7 @@ export default function GridItem({
52
46
  ...props
53
47
  }: ItemProps) {
54
48
  const { vertical } = props as {
55
- end?: boolean;
49
+ startBottom?: boolean;
56
50
  vertical?: boolean;
57
51
  };
58
52
  const { editing, isDragging, onExtend } = useAlignContext();
@@ -69,7 +63,7 @@ export default function GridItem({
69
63
  float: "left",
70
64
  color: iconColor,
71
65
  }),
72
- [iconColor]
66
+ [iconColor],
73
67
  );
74
68
 
75
69
  const ctx = useMemo(
@@ -83,7 +77,7 @@ export default function GridItem({
83
77
  disabled,
84
78
  index,
85
79
  }),
86
- [disabled, editing, extendable, extended, id, index, isDragging, isHovered]
80
+ [disabled, editing, extendable, extended, id, index, isDragging, isHovered],
87
81
  );
88
82
 
89
83
  return (
@@ -98,50 +92,35 @@ export default function GridItem({
98
92
  opacity: snapshot.isDragging ? 0.5 : 1,
99
93
  ...(editing ? editorStyle : style),
100
94
  ...provided.draggableProps.style,
101
- }}
102
- >
95
+ }}>
103
96
  <div
104
97
  style={{
105
98
  display: "inline-block",
106
99
  position: "relative",
107
100
  minHeight: isHovered && !disabled ? "35px" : undefined,
108
101
  width: !vertical && extended ? "100%" : undefined,
109
- minWidth:
110
- isHovered && !disabled
111
- ? extendable
112
- ? "70px"
113
- : "35px"
114
- : undefined,
102
+ minWidth: isHovered && !disabled ? (extendable ? "70px" : "35px") : undefined,
115
103
  height: vertical && extended ? "100%" : undefined,
116
104
  }}
117
105
  onMouseEnter={() => editing && setHovered(true)}
118
106
  onMouseLeave={() => editing && setHovered(false)}
119
- >
107
+ onClick={e => e.stopPropagation()}>
120
108
  {typeof children === "function" ? children(ctx) : children}
121
109
  <div
122
110
  className="overlay"
123
111
  style={{
124
112
  display:
125
- !disabled &&
126
- editing &&
127
- isHovered &&
128
- (snapshot.isDragging || !isDragging)
113
+ !disabled && editing && isHovered && (snapshot.isDragging || !isDragging)
129
114
  ? "block"
130
115
  : "none",
131
- }}
132
- >
116
+ }}>
133
117
  <div className="overlay-buttons" style={buttonStyles}>
134
118
  <div {...provided.dragHandleProps} style={{ cursor: "grab" }}>
135
119
  <Icon name="moveArrows" />
136
120
  </div>
137
121
  {extendable && (
138
- <div
139
- style={{ cursor: "pointer", marginLeft: "8px" }}
140
- onClick={handleExtend}
141
- >
142
- <Icon
143
- name={vertical ? "verticalExtend" : "horizontalExtend"}
144
- />
122
+ <div style={{ cursor: "pointer", marginLeft: "8px" }} onClick={handleExtend}>
123
+ <Icon name={vertical ? "verticalExtend" : "horizontalExtend"} />
145
124
  </div>
146
125
  )}
147
126
  </div>
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties, ReactNode } from "react";
1
+ import { CSSProperties, ReactNode } from "react";
2
2
 
3
3
  import { useAlignContext } from "./context";
4
4
  import "./grid.css";
@@ -44,8 +44,7 @@ const GridSection: React.FC<GridSectionProps> = ({
44
44
  width: fixedWidth + "px",
45
45
  }
46
46
  : {}),
47
- }}
48
- >
47
+ }}>
49
48
  {children}
50
49
  </div>
51
50
  );
@@ -1,9 +1,5 @@
1
- import React, { CSSProperties, ReactNode, useCallback, useState } from "react";
2
- import {
3
- DragDropContext,
4
- DropResult,
5
- ResponderProvided,
6
- } from "react-beautiful-dnd";
1
+ import { CSSProperties, ReactNode, useCallback, useState } from "react";
2
+ import { DragDropContext, DropResult, ResponderProvided } from "react-beautiful-dnd";
7
3
 
8
4
  import { Context } from "./context";
9
5
  import { Alignment } from "./GridArea";
@@ -23,7 +19,7 @@ export type GridWrapperProps = {
23
19
  destAreaId: string,
24
20
  destIndex: number,
25
21
  prevAreaId: string,
26
- prevIndex: number
22
+ prevIndex: number,
27
23
  ) => void;
28
24
  onAlignChange?: (areaId: string, align: Alignment) => void;
29
25
  onExtend?: (id: string, extended: boolean) => void;
@@ -62,23 +58,20 @@ const GridWrapper: React.FC<GridWrapperProps> = ({
62
58
  result.destination.droppableId,
63
59
  result.destination.index,
64
60
  result.source.droppableId,
65
- result.source.index
61
+ result.source.index,
66
62
  );
67
63
  },
68
- [onMove]
64
+ [onMove],
69
65
  );
70
66
 
71
67
  return (
72
68
  <div
73
- className={`wrapper ${className} ${vertical && "vertical"} ${
74
- stretch && "stretch"
75
- }`}
76
- style={editing ? editorStyle : style}
77
- >
69
+ className={["reactalign", "wrapper", className, vertical && "vertical", stretch && "stretch"]
70
+ .filter(Boolean)
71
+ .join(" ")}
72
+ style={editing ? editorStyle : style}>
78
73
  <DragDropContext onDragStart={handleDragStart} onDragEnd={handleDragEnd}>
79
- <Context.Provider
80
- value={{ editing: !!editing, onAlignChange, onExtend, isDragging }}
81
- >
74
+ <Context.Provider value={{ editing: !!editing, onAlignChange, onExtend, isDragging }}>
82
75
  {children}
83
76
  </Context.Provider>
84
77
  </DragDropContext>
package/src/Icon/icons.ts CHANGED
@@ -1,14 +1,14 @@
1
+ import { ReactComponent as AlignCenter } from "./Icons/alignCenter.svg";
2
+ import { ReactComponent as AlignCenterV } from "./Icons/alignCenterV.svg";
3
+ import { ReactComponent as AlignEnd } from "./Icons/alignEnd.svg";
4
+ import { ReactComponent as AlignEndV } from "./Icons/alignEndV.svg";
5
+ import { ReactComponent as AlignStart } from "./Icons/alignStart.svg";
6
+ import { ReactComponent as AlignStartV } from "./Icons/alignStartV.svg";
1
7
  import { ReactComponent as HorizontalExtend } from "./Icons/horizontalExtend.svg";
2
8
  import { ReactComponent as HorizontalNormal } from "./Icons/horizontalNormal.svg";
9
+ import { ReactComponent as MoveArrows } from "./Icons/moveArrows.svg";
3
10
  import { ReactComponent as VerticalExtend } from "./Icons/verticalExtend.svg";
4
11
  import { ReactComponent as VerticalNormal } from "./Icons/verticalNormal.svg";
5
- import { ReactComponent as MoveArrows } from "./Icons/moveArrows.svg";
6
- import { ReactComponent as AlignStart } from "./Icons/alignStart.svg";
7
- import { ReactComponent as AlignCenter } from "./Icons/alignCenter.svg";
8
- import { ReactComponent as AlignEnd } from "./Icons/alignEnd.svg";
9
- import { ReactComponent as AlignStartV } from "./Icons/alignStartV.svg";
10
- import { ReactComponent as AlignCenterV } from "./Icons/alignCenterV.svg";
11
- import { ReactComponent as AlignEndV } from "./Icons/alignEndV.svg";
12
12
 
13
13
  export default {
14
14
  horizontalExtend: HorizontalExtend,
package/src/context.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createContext, useContext } from "react";
2
+
2
3
  import { Alignment } from ".";
3
4
 
4
5
  export const Context = createContext<{