summaryrefslogtreecommitdiffhomepage
path: root/BehaviorEditorTab.8e14191e25e0dbdc7845.js
blob: 134aed3c790572b70b71cc1d9c3f944cc245f66f (plain)
1
2
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5868],{97494:function(e,r,n){n.d(r,{Z:function(){return C}});var t=n(45697),o=n.n(t),i=n(93379),a=n.n(i),l=n(7795),c=n.n(l),u=n(90569),s=n.n(u),p=n(3565),d=n.n(p),f=n(19216),b=n.n(f),y=n(44589),m=n.n(y),h=n(33988),v={};v.styleTagTransform=m(),v.setAttributes=d(),v.insert=s().bind(null,"head"),v.domAPI=c(),v.insertStyleElement=b(),a()(h.Z,v);var j=h.Z&&h.Z.locals?h.Z.locals:void 0,g=n(85893);function A(e){return A="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},A(e)}var x=["validator","required","value"];function O(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function w(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?O(Object(n),!0).forEach((function(r){S(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function S(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==A(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==A(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function C(e){var r=e.validator,n=e.required,t=void 0!==n&&n,o=e.value,i=void 0===o?"":o,a=function(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,x),l=r(i)||!i&&t&&"cannot be empty";return(0,g.jsxs)("span",{className:j.wrapper,children:[(0,g.jsx)("input",w({type:"text",value:i},a)),l&&(0,g.jsx)("span",{className:j.error,children:l})]})}C.propTypes={value:o().any.isRequired,required:o().bool,validator:o().func}},77551:function(e,r,n){n.r(r),n.d(r,{default:function(){return Gr}});var t=n(50361),o=n.n(t),i=n(67294),a=n(95998),l=n(27926),c=n(41051),u=n(57557),s=n.n(u),p=n(96186),d=n(64261),f=n(18311),b=n(49443),y=n(85893);function m(e){return m="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},m(e)}function h(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function v(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?h(Object(n),!0).forEach((function(r){j(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function j(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==m(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function g(e){var r=e.node;return(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{children:(0,y.jsx)("code",{children:r.properties.compatible.parsed})}),(0,y.jsx)(b.Z,v({},e))]})}var A=n(93379),x=n.n(A),O=n(7795),w=n.n(O),S=n(90569),C=n.n(S),P=n(3565),E=n.n(P),k=n(19216),Z=n.n(k),B=n(44589),D=n.n(B),I=n(34288),N={};N.styleTagTransform=D(),N.setAttributes=E(),N.insert=C().bind(null,"head"),N.domAPI=w(),N.insertStyleElement=Z(),x()(I.Z,N);var U=I.Z&&I.Z.locals?I.Z.locals:void 0;function T(e){var r=e.property,n=e.schema,t=e.required,o=void 0!==t&&t;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("span",{className:U.propertyName,title:r,children:[r,o&&(0,y.jsx)("span",{className:U.requiredIndicator,children:"*"})]}),n.deprecatedBy&&(0,y.jsx)("sub",{className:U.propertyDeprecation,children:"(deprecated)"})]})}var q=n(45697),R=n.n(q),M=n(15023),z=n(42065);function F(e){return F="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},F(e)}function V(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function _(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?V(Object(n),!0).forEach((function(r){K(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function K(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==F(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==F(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===F(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Y(e){var r=e.prop,n=e.schema,t=e.onUpdate;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.Z,{name:"code",title:"Raw property value"})," ",(0,y.jsx)("input",{required:null==n?void 0:n.required,value:null==r?void 0:r.raw,onChange:function(e){return t(_(_({},r),{},{raw:e.target.value,useRaw:!0}))}})]})}function $(e){var r=e.schema;return(0,y.jsx)("span",{className:[z.Z.propertyValue,z.Z.readonly].join(" "),children:r.const})}function G(e){var r,n=e.prop,t=e.schema,o=e.onUpdate;return(0,y.jsx)("input",{type:"text",className:z.Z.propertyValue,value:null!==(r=null==n?void 0:n.parsed)&&void 0!==r?r:"",placeholder:t.default&&"Default: ".concat(t.default),onChange:function(e){o(_(_({},n),{},{parsed:e.target.value,useRaw:!1}))}})}function W(e){var r,n=e.prop,t=e.schema,o=e.onUpdate;return(0,y.jsx)("input",{type:"number",className:z.Z.propertyValue,value:null!==(r=null==n?void 0:n.parsed)&&void 0!==r?r:"",placeholder:t.default&&"Default: ".concat(t.default),onChange:function(e){o(_(_({},n),{},{parsed:Number(e.target.value),useRaw:!1}))}})}function X(e){var r=e.prop,n=e.onUpdate;return(0,y.jsx)("input",{type:"checkbox",className:z.Z.propertyValue,checked:(null==r?void 0:r.parsed)||!1,onChange:function(e){n({parsed:!!e.target.checked,useRaw:!1})}})}function Q(e){var r=e.prop;return(0,y.jsx)("span",{className:z.Z.barePropertyValue,children:r.parsed})}function H(e){var r=e.schema;return(0,y.jsx)("span",{className:z.Z.barePropertyValue,children:r.const})}function L(e){var r=e.prop;return(0,y.jsx)("span",{className:z.Z.barePropertyValue,children:r.parsed})}function J(e){var r=e.prop;return(0,y.jsx)("span",{className:z.Z.barePropertyValue,children:r.parsed})}function ee(e){var r=e.prop;return(0,y.jsx)("span",{className:z.Z.barePropertyValue,children:(0,y.jsx)("input",{type:"checkbox",checked:r.parsed,disabled:!0})})}var re=n(35161),ne=n.n(re),te=n(91892);function oe(e){return oe="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},oe(e)}function ie(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function ae(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function le(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?ae(Object(n),!0).forEach((function(r){ce(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function ce(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==oe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==oe(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===oe(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function ue(e){var r=e.prop,n=void 0===r?{}:r,t=e.schema,o=e.onUpdate,a=t.enum,l=n.parsed,c=(0,i.useCallback)((function(e){o(le(le({},n),{},{parsed:a[e.target.value],useRaw:!1}))}),[n,a,o]);return(0,y.jsx)("select",{className:z.Z.propertyValue,onChange:c,value:a.indexOf(l),children:a.map((function(e,r){return(0,y.jsx)("option",{value:r,children:e},r)}))})}function se(e){var r=e.prop,n=void 0===r?{}:r,t=e.schema,o=e.onUpdate,a=function(e){var r=(0,i.useContext)(f.v);return(0,i.useMemo)((function(){if(!e.choices)return[];if(Array.isArray(e.choices))return e.choices;if(!e.choices.$source)throw new Error("Expected schema.choices.$source");var n=r[e.choices.$source];return e.choices.$key?ne()(n,e.choices.$key):n}),[r,e.choices])}(t),l=n.parsed,c=void 0===l?[]:l,u=(0,i.useCallback)((function(e){o(le(le({},n),{},{useRaw:!1,parsed:e}))}),[n,o]),s=a.length>20?de:pe;return(0,y.jsx)(s,{selected:c,choices:a,onUpdate:u})}function pe(e){var r=e.selected,n=e.choices,t=e.onUpdate,o=(0,i.useCallback)((function(e){var n;t(r.includes(e)?r.filter((function(r){return r!==e})):[].concat(function(e){if(Array.isArray(e))return ie(e)}(n=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,r){if(e){if("string"==typeof e)return ie(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(e,r):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]))}),[r,t]);return(0,y.jsx)("ol",{className:z.Z.propertyMultiSelect,children:n.map((function(e,n){return(0,y.jsx)("li",{children:(0,y.jsxs)("label",{children:[(0,y.jsx)("input",{type:"checkbox",checked:r.includes(e),onChange:function(r){return o(e)}}),e]})},n)}))})}function de(e){var r=e.selected,n=e.choices,t=e.onUpdate,o=(0,i.useMemo)((function(){return n.map(fe)}),[n]),a=(0,i.useMemo)((function(){return r.map(fe)}),[r]);return(0,y.jsx)(te.Z,{isMulti:!0,isSearchable:!0,options:o,value:a,onChange:function(e){return t(e.map((function(e){return e.value})))}})}function fe(e){return{value:e,label:e}}var be=n(94184),ye=n.n(be),me=n(39693),he=n.n(me),ve=n(76620),je=n(29709),ge=n(35022);function Ae(e){return Ae="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},Ae(e)}function xe(e){return function(e){if(Array.isArray(e))return Pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function we(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Oe(Object(n),!0).forEach((function(r){Se(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function Se(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==Ae(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Ae(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ae(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ce(e,r){if(e){if("string"==typeof e)return Pe(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,r):void 0}}function Pe(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Ee(e){var r,n,t=e.prop,o=void 0===t?{}:t,a=e.schema,u=void 0===a?{}:a,s=e.onUpdate,p=o.parsed,d=void 0===p?[]:p,f=u.length,b=(r=(0,i.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,n)||Ce(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=b[0],h=b[1],v=void 0===f||f&&d.length<f,j=(0,i.useCallback)((function(){s(we(we({},o),{},{useRaw:!1,parsed:[].concat(xe(d),[""])})),h(d.length)}),[o,d,s,h]),g=(0,i.useCallback)((function(e){s(we(we({},o),{},{useRaw:!1,parsed:(0,je.xw)(d,m,e.code)})),h(null)}),[o,d,m,s]),A=(0,i.useCallback)((function(e){s(we(we({},o),{},{useRaw:!1,parsed:(0,je.f5)(d,e)}))}),[o,d,s]);return(0,y.jsxs)("div",{children:[(0,y.jsx)("ol",{className:he()([z.Z.selectable,z.Z.propertyPhandleSelect,1===f&&z.Z.propertyPhandleSingleton]).join(" "),children:d.map((function(e,r){return(0,y.jsxs)("li",{children:[(0,y.jsx)(ge.Z,{schema:u,index:r}),(0,y.jsxs)("span",{className:z.Z.behaviorBind,onClick:function(){return h(r)},children:[e,1!==f&&(0,y.jsx)(c.Z,{name:"times",className:z.Z.phandleRemove,onClick:function(e){e.stopPropagation(),A(r)}})]})]},r)}))}),null!==m&&(0,y.jsx)(ve.Z,{node:{value:d[m],params:[],slot:"behaviour"},type:"value",context:"none",behaviour:{code:d[m]},prompt:"Select Behavior",searchKey:"code",onSelect:g,onCancel:function(){return h(null)}}),v&&(0,y.jsxs)(l.Z,{secondary:!0,onClick:j,children:[(0,y.jsx)(c.Z,{name:"plus"})," Add Behavior"]})]})}function ke(e){var r=e.prop,n=void 0===r?{}:r,t=e.schema,o=void 0===t?{}:t,i=n.parsed,a=void 0===i?[]:i,l=o.length;return(0,y.jsx)("ol",{className:ye()(z.Z.propertyPhandleSelect,Se({},z.Z.propertyPhandleSingleton,1===l)),children:a.map((function(e,r){return(0,y.jsxs)("li",{children:[(0,y.jsx)(ge.Z,{schema:o,index:r}),(0,y.jsx)("span",{className:z.Z.behaviorBind,children:e})]},r)}))})}var Ze=n(82607),Be=n(91118),De=n(61953),Ie=n(80671);function Ne(e){return Ne="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},Ne(e)}function Ue(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Me(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function qe(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Te(Object(n),!0).forEach((function(r){Re(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function Re(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==Ne(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Ne(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ne(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Me(e,r){if(e){if("string"==typeof e)return ze(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,r):void 0}}function ze(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Fe(e){var r,n,t=e.prop,o=void 0===t?{}:t,a=e.schema,u=void 0===a?{}:a,s=e.onUpdate,p=o.parsed,d=void 0===p?[]:p,f=(r=(0,i.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,n)||Me(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=f[0],m=f[1],h=u.length,v=void 0===h||h&&d.length<h,j=(0,i.useCallback)((function(){s(qe(qe({},o),{},{useRaw:!1,parsed:[].concat(Ue(d),[{value:"&none",params:[]}])}))}),[o,d,s]),g=(0,i.useCallback)((function(e){s(qe(qe({},o),{},{useRaw:!1,parsed:(0,je.xw)(d,b,e)})),m(null)}),[o,d,s,b,m]),A=(0,i.useCallback)((function(e){s(qe(qe({},o),{},{useRaw:!1,parsed:(0,je.f5)(d,e)}))}),[o,d,s]);return(0,y.jsxs)(y.Fragment,{children:[null!==b&&(0,y.jsx)(Ie.Z,{binding:d[b],bindingIndex:b,onCancel:function(){return m(null)},onUpdate:g,Heading:function(){return null}}),(0,y.jsx)("ol",{className:z.Z.propertyBindingsValue,children:d.map((function(e,r){return(0,y.jsxs)("li",{children:[(0,y.jsx)(ge.Z,{schema:u,index:r}),(0,y.jsxs)(Be.Z,{children:[(0,y.jsx)(Ze.Z,{binding:e,keyWrapperProps:{themeClass:De.Z.unified,onClick:function(){return m(r)}}}),(0,y.jsx)("div",{className:z.Z.actions,children:(0,y.jsx)(c.Z,{name:"trash",className:z.Z.deleteBind,onClick:function(e){e.stopPropagation(),A(r)}})})]})]},r)}))}),v&&(0,y.jsxs)(l.Z,{secondary:!0,onClick:j,children:[(0,y.jsx)(c.Z,{name:"plus"})," Add binding"]})]})}function Ve(e){var r=e.prop,n=void 0===r?{}:r,t=e.schema,o=void 0===t?{}:t,i=n.parsed,a=void 0===i?[]:i;return(0,y.jsx)("ol",{className:z.Z.propertyBindingsValue,children:a.map((function(e,r){return(0,y.jsxs)("li",{children:[(0,y.jsx)(ge.Z,{schema:o,index:r}),(0,y.jsx)(Ze.Z,{binding:e,keyWrapperProps:{selectable:!1}})]},r)}))})}function _e(e){return _e="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(e)}function Ke(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function Ye(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Ke(Object(n),!0).forEach((function(r){$e(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function $e(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==_e(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==_e(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_e(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ge(e){var r=e.schema,n=void 0===r?{}:r,t=n.type;if("const"in n)return(0,y.jsx)($,Ye({},e));if("enum"in n)return(0,y.jsx)(ue,Ye({},e));if("key-position-picker"===n.helper){var o=e.prop,i=void 0===o?{}:o,a=e.onUpdate;return(0,y.jsx)(M.Z,{value:i.parsed||[],onUpdate:function(e){a(Ye(Ye({},i),{},{useRaw:!1,parsed:e}))}})}if(n.choices)return(0,y.jsx)(se,Ye({},e));switch(t){case"string":return(0,y.jsx)(G,Ye({},e));case"int":return(0,y.jsx)(W,Ye({},e));case"boolean":return(0,y.jsx)(X,Ye({},e));case"phandle":case"phandles":return(0,y.jsx)(Ee,Ye({},e));case"phandle-array":return(0,y.jsx)(Fe,Ye({},e));default:return(0,y.jsx)(Y,Ye({},e))}}function We(e){var r=e.type;if("const"in e)return e.const;if("enum"in e)return e.enum[0];switch(r){case"string":default:return"";case"int":return 0;case"array":return[];case"boolean":return!1;case"phandle":case"phandles":return["&none"];case"phandle-array":return[{value:"&none",params:[]}]}}Ge.propTypes={schema:R().shape({type:R().oneOf(["string","boolean","int","array","phandle","phandles","phandle-array","integer-union"]),required:R().bool,description:R().string,default:R().any,const:R().any,helper:R().any,choices:R().oneOfType([R().array,R().shape({$source:R().string.isRequired,$key:R().string.isRequired})]),omitIfEmpty:R().bool}),prop:R().shape({parsed:R().any,raw:R().string}),onUpdate:R().func.isRequired};var Xe=Ge;function Qe(e){return Qe="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},Qe(e)}function He(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function Le(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?He(Object(n),!0).forEach((function(r){Je(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function Je(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==Qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Qe(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Qe(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function er(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function rr(e){var r,n,t,a=e.node,u=e.onUpdate,b=e.onCancel,m=(0,i.useContext)(f.v).behaviors,h=(n=(0,i.useState)(a),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,t)||function(e,r){if(e){if("string"==typeof e)return er(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?er(e,r):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=h[0],j=h[1],A=m[null===(r=a.properties.compatible)||void 0===r?void 0:r.parsed],x=function(e){return function(r){var n=Le(Le({},v.properties),{},Je({},e,r));Array.isArray(null==r?void 0:r.parsed)&&0===r.parsed.length&&delete n[e],j(Le(Le({},v),{},{properties:n}))}},O=(0,i.useCallback)((function(){u(o()(v))}),[v,u]),w=(null==A?void 0:A.properties)||{},S=(A?Object.keys(w):Object.keys(v.properties)).filter((function(e){var r=w[e],n=r&&"const"in r,t=r&&!!r.deprecatedBy;return!("label"===e||n||t&&!v.properties[e])})),C=Object.keys(w).reduce((function(e,r){var n=w[r].deprecatedBy;return n&&(e[n]=r),e}),{}),P=Object.keys(w).filter((function(e){var r=w[e],n=r.required,t=r.deprecatedBy,o=C[e];return!("const"in w[e])&&!((t||o)in v.properties)&&n})),E=P.filter((function(e){return!v.properties[e]}));return(0,y.jsx)(d.Z,{onDismiss:b,children:(0,y.jsxs)(p.Z,{dismissText:!1,children:[(0,y.jsxs)("h2",{children:["Edit ",a.name," ",(0,y.jsxs)("code",{children:["(&",a.labels[0],")"]})]}),(0,y.jsx)(g,{node:v,onUpdate:j}),(0,y.jsx)("h3",{children:"Configuration"}),(0,y.jsxs)("table",{className:U.editorForm,children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"Property"}),(0,y.jsx)("th",{children:"Value"}),(0,y.jsx)("th",{})]})}),(0,y.jsx)("tbody",{children:S.map((function(e,r){return(0,y.jsxs)("tr",{children:[(0,y.jsx)("td",{className:U.propertyName,children:e in w?(0,y.jsx)(T,{property:e,schema:w[e],required:P.includes(e)}):(0,y.jsx)("input",{value:e,onChange:(n=e,function(e){j(Le(Le({},v),{},{properties:Object.keys(v.properties).reduce((function(r,t){var o=v.properties[t];return t===n&&(t=e.target.value),r[t]=o,r}),{})}))})})}),(0,y.jsx)("td",{className:U.propertyValue,children:(0,y.jsx)(Xe,{name:e,prop:v.properties[e],schema:w[e],onUpdate:x(e)})}),(0,y.jsx)("td",{children:v.properties[e]&&!P.includes(e)&&(0,y.jsx)(c.Z,{name:"trash-can",className:U.action,onClick:function(){return function(e){j(Le(Le({},v),{},{properties:s()(v.properties,e)}))}(e)}})})]},r);var n}))})]}),P.length>0&&(0,y.jsx)("p",{children:(0,y.jsxs)("em",{children:[(0,y.jsx)("span",{className:U.requiredIndicator,children:"*"}),"Property is required."]})}),(0,y.jsxs)("div",{style:{textAlign:"center"},children:[(0,y.jsx)(l.Z,{disabled:E.length>0,onClick:O,children:"Okay"}),(0,y.jsx)(l.Z,{onClick:b,secondary:!0,children:"Cancel"})]})]})})}var nr=n(44326),tr=n(95130),or=n(86075);function ir(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function ar(e){var r,n,t,o=e.onUpdate,c=e.onCancel,u=(n=(0,i.useState)(""),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,t)||function(e,r){if(e){if("string"==typeof e)return ir(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ir(e,r):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1],b=(r=(0,a.v9)(or.l9),(0,i.useMemo)((function(){var e=["zmk,behavior-caps-word","zmk,behavior-hold-tap","zmk,behavior-key-repeat","zmk,behavior-mod-morph","zmk,behavior-mouse-move","zmk,behavior-mouse-scroll","zmk,behavior-send-string","zmk,behavior-sensor-rotate","zmk,behavior-sensor-rotate-var","zmk,behavior-sticky-key","zmk,behavior-tap-dance"].map((function(e){return{compatible:e}}));return(0,nr.I)(e,r).map((function(e){var r=e.compatible;return{value:r,label:tr.behaviorSchemas[r].description}}))}),[r])),m=(0,i.useMemo)((function(){return b.find((function(e){return e.value===s}))}),[b,s]);return(0,y.jsx)(d.Z,{onDismiss:c,children:(0,y.jsxs)(p.Z,{dismissText:null,children:[(0,y.jsx)("h3",{children:"Add new behavior"}),(0,y.jsx)("label",{children:(0,y.jsx)(te.Z,{required:!0,placeholder:"Select a behavior type",value:m,options:b,onChange:function(e){var r=e.value;return f(r)},formatOptionLabel:function(e,r){var n=e.value,t=e.label,o=r.context;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{children:t}),"value"!==o&&(0,y.jsxs)("div",{style:{opacity:"0.6"},children:["(",(0,y.jsx)("em",{children:n}),")"]})]})}})}),(0,y.jsxs)("div",{style:{textAlign:"center",margin:"10px"},children:[(0,y.jsx)(l.Z,{disabled:!s,onClick:function(){return o(s)},children:"Create"}),(0,y.jsx)(l.Z,{onClick:c,secondary:!0,children:"Cancel"})]})]})})}ar.propTypes={onUpdate:R().func.isRequired,onCancel:R().func.isRequired};var lr=n(98913),cr=n.n(lr);function ur(e){return ur="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},ur(e)}function sr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function pr(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?sr(Object(n),!0).forEach((function(r){dr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function dr(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==ur(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==ur(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ur(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function fr(e,r){var n=r.name,t=r.labels,o=r.label,i=tr.behaviorSchemas[e];return{name:n,labels:t,properties:pr({compatible:{raw:'"'.concat(e,'"'),parsed:e},label:{raw:'"'.concat(o,'"'),parsed:o}},Object.keys(i.properties).reduce((function(e,r){var n=i.properties[r];return function(e){return["phandle","phandles","phandle-array"].includes(e.type)}(n)&&n.length?e[r]={parsed:cr()(n.length,(function(){return"phandle-array"===n.type?{value:"&none",params:[]}:"&none"}))}:"const"in n&&(e[r]={parsed:n.const,raw:"<".concat(n.const.toString(),">")}),e}),{}))}}var br=n(28291),yr=n(29520);function mr(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return hr(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hr(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hr(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function vr(){var e=mr((0,i.useState)(null),2),r=e[0],n=e[1],t=mr((0,i.useState)(!1),2),u=t[0],s=t[1],p=(0,a.v9)(br.pR),d=(0,a.I0)(),b=(0,i.useContext)(f.v).behaviors,m=(0,i.useCallback)((function(){s(!0)}),[s]),h=(0,i.useCallback)((function(e){s(!1),n({behaviorIndex:null,behavior:fr(e,{name:"new_behavior",labels:["new_behavior"],label:"NEW_BEHAVIOR"})})}),[s,n]),v=(0,i.useCallback)((function(e){var r=p[e];n({behaviorIndex:e,behavior:r})}),[p,n]),j=(0,i.useCallback)((function(e){var r=o()(p[e]);delete r.index,r.name="new_behavior",r.labels=["new_behavior"],r.properties.label={parsed:"NEW_BEHAVIOR"},n({behaviorIndex:null,behavior:r})}),[p,n]),g=(0,i.useCallback)((function(e){var t=r.behaviorIndex,o=r.behavior.labels,i=e.labels,a=null!==t?(0,br.md)({behaviorIndex:t,behavior:e}):(0,br.F6)({behavior:e});d(a),d((0,yr.Q)(o,i,[],b)),n(null)}),[d,r,n,b]),A=(0,i.useCallback)((function(e){var r=p[e].labels;window.confirm("Really delete behavior: ".concat(p[e].name,"?"))&&(d((0,br.tY)({behaviorIndex:e})),d((0,yr.Q)(r,[],[],b)))}),[p,b,d]);return(0,y.jsxs)("div",{className:U.panel,children:[(0,y.jsx)("h3",{children:"Custom Behaviors"}),(0,y.jsx)("p",{children:"Create customized ZMK behaviors that you can use without conflicting with existing bindings."}),(0,y.jsxs)("table",{style:{width:"100%"},children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"Binding"}),(0,y.jsx)("th",{children:"Compatible"}),(0,y.jsx)("th",{children:"Actions"})]})}),(0,y.jsx)("tbody",{children:p.map((function(e,r){return(0,y.jsxs)("tr",{children:[(0,y.jsx)("td",{children:(0,y.jsxs)("code",{children:["&",e.labels[0]]})}),(0,y.jsx)("td",{children:e.properties.compatible.raw}),(0,y.jsxs)("td",{children:[(0,y.jsx)(c.Z,{title:'Edit behavior "&'.concat(e.labels[0],'"'),className:U.action,onClick:function(){return v(r)},name:"wrench"}),(0,y.jsx)(c.Z,{title:'Create new behavior with configuration from "&'.concat(e.labels[0],'"'),className:U.action,onClick:function(){return j(r)},name:"copy"}),(0,y.jsx)(c.Z,{title:'Delete behavior "&'.concat(e.labels[0],'"'),className:U.action,onClick:function(){return A(r)},name:"trash-can"})]})]},r)}))})]}),(0,y.jsx)(l.Z,{onClick:m,children:"Add New Behavior"}),u&&(0,y.jsx)(ar,{onUpdate:h,onCancel:function(){return s(!1)}}),null!==r&&(0,y.jsx)(rr,{node:r.behavior,onCancel:function(){return n(null)},onUpdate:g})]})}var jr=n(24350),gr=n.n(jr),Ar=n(20058);function xr(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Or(e){var r,n,t,o,c,u=e.onSelect,s=e.onCancel,f=(r=(0,a.v9)(or.l9),n=(0,a.v9)(Ar.E$),t=(0,i.useMemo)((function(){return(0,nr.I)(tr.behaviorBindings,r).filter((function(e){var r=tr.behaviorSchemas[e.compatible];return Object.keys(r.properties).filter((function(e){return!["label","#binding-cells","#sensor-binding-cells"].includes(e)})).length>0&&!n.find((function(r){return r.name===e.code}))}))}),[n,r]),(0,i.useMemo)((function(){return t.map((function(e){return{value:e.code,label:e.name}}))}),[t])),b=(o=(0,i.useState)(""),c=2,function(e){if(Array.isArray(e))return e}(o)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(o,c)||function(e,r){if(e){if("string"==typeof e)return xr(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(e,r):void 0}}(o,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=b[0],h=b[1],v=(0,i.useMemo)((function(){return f.find((function(e){return e.value===m}))}),[f,m]);return(0,y.jsx)(d.Z,{onDismiss:s,children:(0,y.jsxs)(p.Z,{dismissText:null,children:[(0,y.jsx)("h3",{children:"Add new reconfiguration"}),(0,y.jsxs)("p",{children:[(0,y.jsx)("strong",{children:"Note:"})," for the moment this is limited to behaviors defined in the core ZMK repo which specify properties that can be overridden. If you're using a fork with unsupported features your existing reconfigured behaviors will be affected but won't appear here for editing."]}),(0,y.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,y.jsx)(te.Z,{required:!0,placeholder:"Select a behavior binding",value:v,options:f,onChange:function(e){var r=e.value;return h(r)},formatOptionLabel:function(e,r){var n=e.value,t=e.label;return r.context,(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{children:[(0,y.jsx)("code",{children:n})," ",(0,y.jsxs)("span",{style:{opacity:"0.6"},children:["(",(0,y.jsx)("em",{children:t}),")"]})]})})}})}),(0,y.jsxs)("div",{style:{textAlign:"center",margin:"10px"},children:[(0,y.jsx)(l.Z,{disabled:!m,onClick:function(){return u(m)},children:"Create"}),(0,y.jsx)(l.Z,{onClick:s,secondary:!0,children:"Cancel"})]})]})})}Or.propTypes={onSelect:R().func.isRequired,onCancel:R().func.isRequired};var wr=n(82569),Sr=n.n(wr),Cr=n(58887);function Pr(e){return Pr="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},Pr(e)}function Er(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function kr(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Er(Object(n),!0).forEach((function(r){Zr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function Zr(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==Pr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Pr(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Pr(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Br(e){var r=e.schema,n=void 0===r?{}:r,t=n.type;if("const"in n)return(0,y.jsx)(H,kr({},e));if("key-position-picker"===n.helper){var o=e.prop,i=void 0===o?{}:o;return(0,y.jsx)(Cr.Z,{value:i.parsed||[]})}switch(t){case"array":case"integer-union":return(0,y.jsx)(y.Fragment,{children:e.prop.parsed.map((function(e,r){return(0,y.jsx)("span",{className:z.Z.barePropertyValue,children:e},r)}))});case"string":return(0,y.jsx)(L,kr({},e));case"int":return(0,y.jsx)(J,kr({},e));case"boolean":return(0,y.jsx)(ee,kr({},e));case"phandle":case"phandles":return(0,y.jsx)(ke,kr({},e));case"phandle-array":return(0,y.jsx)(Ve,kr({},e));default:return(0,y.jsx)(Q,kr({},e))}}function Dr(e){return Dr="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},Dr(e)}function Ir(e){return function(e){if(Array.isArray(e))return Rr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function Ur(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Nr(Object(n),!0).forEach((function(r){Tr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function Tr(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==Dr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Dr(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Dr(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function qr(e,r){if(e){if("string"==typeof e)return Rr(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rr(e,r):void 0}}function Rr(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}Br.propTypes={schema:R().shape({type:R().oneOf(["string","boolean","int","array","phandle","phandles","phandle-array","integer-union"]),required:R().bool,description:R().string,default:R().any,const:R().any,helper:R().any,choices:R().array,omitIfEmpty:R().bool}),prop:R().shape({parsed:R().any,raw:R().string})};var Mr=gr()(tr.behaviorBindings,"code");function zr(e){var r,n,t=e.node,a=e.onUpdate,c=e.onCancel,u=(0,i.useContext)(f.v).behaviors,b=(r=(0,i.useState)(t),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,n)||qr(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=b[0],h=b[1],v=Mr[t.name],j=u[null==v?void 0:v.compatible],g=Ur(Ur({},j),{},{properties:Object.keys(j.properties).reduce((function(e,r){var n,t;return e[r]=Ur({},j.properties[r]),null!=v&&null!==(n=v.properties)&&void 0!==n&&null!==(t=n[r])&&void 0!==t&&t.parsed&&(e[r].default=v.properties[r].parsed),e}),{})}),A=function(e){return function(r){h(Ur(Ur({},m),{},{properties:Object.keys(m.properties).reduce((function(n,t){var o=m.properties[t];return t===e&&(t=r.target.value),n[t]=o,n}),{})}))}},x=function(e){var r=void 0!==v.properties[e]?o()(v.properties[e]):{parsed:We(g.properties[e])};h(Ur(Ur({},m),{},{properties:Ur(Ur({},m.properties),{},Tr({},e,r))}))},O=function(e){return function(r){var n=Ur(Ur({},m.properties),{},Tr({},e,r));Array.isArray(null==r?void 0:r.parsed)&&0===r.parsed.length&&delete n[e],h(Ur(Ur({},m),{},{properties:n}))}},w=function(e){h(Ur(Ur({},m),{},{properties:s()(m.properties,e)}))},S=function(e){console.log("oh yay!",e),h(Ur(Ur({},m),{},{deletedProperties:[].concat(Ir(m.deletedProperties),[e]),properties:s()(m.properties,e)}))},C=function(e){h(Ur(Ur({},m),{},{deletedProperties:Sr()(m.deletedProperties,e)}))},P=(0,i.useCallback)((function(){a(o()(m))}),[m,a]),E=(null==g?void 0:g.properties)||{},k=(g?Object.keys(E):Object.keys(m.properties)).filter((function(e){var r=E[e],n=r&&"const"in r,t=r&&!!r.deprecatedBy;return!("label"===e||n||t&&!m.properties[e])}));return(0,y.jsx)(d.Z,{onDismiss:c,children:(0,y.jsxs)(p.Z,{dismissText:!1,style:{maxWidth:"none"},children:[(0,y.jsxs)("h2",{children:["Reconfigure ",(0,y.jsx)("code",{children:t.name})]}),(0,y.jsx)("h3",{children:"Configuration"}),(0,y.jsxs)("table",{className:U.editorForm,children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"Property"}),(0,y.jsx)("th",{children:"Default"}),(0,y.jsx)("th",{children:"Custom"}),(0,y.jsx)("th",{})]})}),(0,y.jsx)("tbody",{children:k.map((function(e,r){var n;return(0,y.jsx)(Fr,{name:e,schema:E[e],override:m.properties[e],original:null==v||null===(n=v.properties)||void 0===n?void 0:n[e],originalDeleted:m.deletedProperties.includes(e),handlePropNameChange:A,handleAddPropOverride:x,handleUpdatePropOverride:O,handleDeletePropOverride:w,handleDeleteOriginalProp:S,handleUnDeleteOriginalProp:C},r)}))})]}),(0,y.jsxs)("div",{style:{textAlign:"center"},children:[(0,y.jsx)(l.Z,{onClick:P,children:"Okay"}),(0,y.jsx)(l.Z,{onClick:c,secondary:!0,children:"Cancel"})]})]})})}function Fr(e){var r=e.name,n=e.schema,t=e.override,o=e.original,i=e.originalDeleted,a=e.handlePropNameChange,l=e.handleAddPropOverride,u=e.handleUpdatePropOverride,s=e.handleDeletePropOverride,p=e.handleDeleteOriginalProp,d=e.handleUnDeleteOriginalProp,f="boolean"===n.type,b=i&&f,m=void 0!==(null==t?void 0:t.parsed),h=void 0!==(null==o?void 0:o.parsed),v=f&&!b&&!0===(null==o?void 0:o.parsed);return(0,y.jsxs)("tr",{children:[(0,y.jsx)("td",{className:U.propertyName,children:n?(0,y.jsx)(T,{property:r,schema:n}):(0,y.jsx)("input",{value:r,onChange:a(r)})}),(0,y.jsx)("td",{className:ye()(z.Z.propertyValue,Tr({},z.Z.overridden,m)),children:h&&(0,y.jsx)(Br,{name:r,prop:Ur(Ur({},t),{},{parsed:o.parsed}),schema:n})}),(0,y.jsxs)("td",{className:z.Z.propertyValue,children:[b&&(0,y.jsx)(Vr,{}),m&&(0,y.jsx)(Xe,{name:r,prop:t,schema:n,onUpdate:u(r)}),!m&&!b&&(0,y.jsx)("button",{onClick:function(){v?p(r):l(r)},children:"Override"})]}),(0,y.jsxs)("td",{children:[m&&(0,y.jsx)(c.Z,{name:"trash-can",className:U.action,onClick:function(){return s(r)}}),b&&(0,y.jsx)(c.Z,{name:"trash-can",className:U.action,onClick:function(){return d(r)}})]})]})}function Vr(){return(0,y.jsx)("input",{title:"Boolean properties set to `true` can only be overridden with `false`. Delete this property override to restore the original value.",type:"checkbox",disabled:!0})}function _r(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return Kr(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kr(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kr(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}var Yr=gr()(tr.behaviorBindings,"code");function $r(){var e=(0,a.I0)(),r=(0,a.v9)(Ar.E$),n=_r((0,i.useState)(null),2),t=n[0],o=n[1],u=_r((0,d.X)(),3),s=u[0],p=u[1],f=u[2],b=(0,i.useCallback)((function(e){o({index:e,node:r[e]})}),[r,o]),m=(0,i.useCallback)((function(){return o(null)}),[o]),h=(0,i.useCallback)((function(e){o({index:null,node:{name:e,labels:[],properties:{},deletedProperties:[]}}),f()}),[f,o]),v=(0,i.useCallback)((function(r){var n=t.index;e(null===n?(0,Ar.hd)({reconfiguration:r,reconfigurationIndex:n}):(0,Ar.eG)({reconfiguration:r,reconfigurationIndex:n})),m()}),[t,m,e]),j=(0,i.useCallback)((function(n){var t=r[n];window.confirm("Really delete reconfiguration for: ".concat(t.name,"?"))&&e((0,Ar.x5)({reconfigurationIndex:n}))}),[r,e]);return(0,y.jsxs)("div",{className:U.panel,children:[(0,y.jsx)("h3",{children:"Reconfigurations"}),(0,y.jsx)("p",{children:"Update/override configured properties for pre-defined ZMK behaviors."}),(0,y.jsxs)("table",{style:{width:"100%"},children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"Binding"}),(0,y.jsx)("th",{children:"Compatible"}),(0,y.jsx)("th",{children:"Actions"})]})}),(0,y.jsx)("tbody",{children:r.map((function(e,r){var n;return(0,y.jsxs)("tr",{children:[(0,y.jsx)("td",{children:(0,y.jsx)("code",{children:e.name})}),(0,y.jsx)("td",{children:null===(n=Yr[e.name])||void 0===n?void 0:n.compatible}),(0,y.jsxs)("td",{children:[(0,y.jsx)(c.Z,{className:U.action,onClick:function(){return b(r)},name:"wrench"}),(0,y.jsx)(c.Z,{className:U.action,onClick:function(){return j(r)},name:"trash-can"})]})]},r)}))})]}),(0,y.jsx)(l.Z,{onClick:p,children:"Add Behavior Reconfiguration"}),s&&(0,y.jsx)(Or,{onSelect:h,onCancel:f}),t&&(0,y.jsx)(zr,{onUpdate:v,onCancel:m,node:t.node})]})}var Gr=function(){return(0,y.jsxs)("div",{className:U.main,children:[(0,y.jsx)(vr,{}),(0,y.jsx)($r,{})]})}},49443:function(e,r,n){n.d(r,{Z:function(){return A}});var t=n(27361),o=n.n(t),i=n(67294),a=n(45697),l=n.n(a),c=n(97494),u={useRaw:l().bool,raw:l().string,parsed:l().any},s={name:l().string.isRequired,labels:l().arrayOf(l().string).isRequired,properties:l().objectOf((function(e,r,n,t,o){try{l().checkPropTypes({propValue:l().shape(u).isRequired},{propValue:e},t,n)}catch(e){return new Error("Invalid prop `"+o+"` supplied to `"+n+"`. Validation failed.")}})).isRequired},p=n(62417),d=n(85893);function f(e){return f="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},f(e)}function b(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function y(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?b(Object(n),!0).forEach((function(r){m(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function m(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==f(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function h(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=i.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||v(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,r){if(e){if("string"==typeof e)return j(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,r):void 0}}function j(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function g(e){var r=e.name,n=e.labels,t=h(void 0===n?[]:n,1)[0],o=e.properties.label;return r.toLowerCase()===(t||"").toLowerCase()&&r.toLowerCase()===((null==o?void 0:o.parsed)||"").toLowerCase()}function A(e){var r=e.node,n=e.onUpdate,t=h((0,i.useState)(g(r)),2),a=t[0],l=t[1],u=h((0,i.useState)(g(r)),2),s=u[0],f=u[1],b=function(e,r,n,t){return[(0,i.useCallback)((function(n){r(y(y({},e),{},{name:n.target.value}))}),[e,r]),(0,i.useCallback)((function(o){var i,a=o.target.value,l=[a].concat(function(e){if(Array.isArray(e))return j(e)}(i=e.labels.slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||v(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=n?a:e.name,u=t?y(y({},e.properties),{},{label:{parsed:a.toUpperCase(),raw:'"'.concat(a.toUpperCase(),'"'),useRaw:!1}}):e.properties;r(y(y({},e),{},{name:c,labels:l,properties:u}))}),[e,r,n,t]),(0,i.useCallback)((function(n){return r(y(y({},e),{},{properties:y(y({},e.properties),{},{label:y(y({},e.properties.label),{},{parsed:n.target.value,useRaw:!1})})}))}),[e,r])]}(r,n,a,s),m=h(b,3),A=m[0],x=m[1],O=m[2];return(0,d.jsx)("table",{children:(0,d.jsxs)("tbody",{children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{children:"Bind"}),(0,d.jsx)("td",{children:(0,d.jsx)(c.Z,{type:"text",value:r.labels[0]||"",required:!0,validator:p.zq,onChange:x})})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{children:"Node"}),(0,d.jsxs)("td",{children:[(0,d.jsx)(c.Z,{value:r.name,required:!0,readOnly:a,disabled:a,validator:p.Gk,onChange:A}),(0,d.jsxs)("label",{title:"Set automatically using bind name",children:[(0,d.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){return l(e.target.checked)}})," Automatic"]})]})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{children:"Label"}),(0,d.jsxs)("td",{children:[(0,d.jsx)(c.Z,{type:"text",value:o()(r,"properties.label.parsed",""),readOnly:s,disabled:s,validator:function(){return null},onChange:O}),(0,d.jsxs)("label",{title:"Set automatically using bind name",children:[(0,d.jsx)("input",{type:"checkbox",checked:s,onChange:function(e){return f(e.target.checked)}})," Automatic"]})]})]})]})})}A.propTypes={node:l().shape(s).isRequired,onUpdate:l().func.isRequired}},29709:function(e,r,n){function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return o(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}n.d(r,{f5:function(){return i},xE:function(){return l},xw:function(){return a}});var i=function(e,r){return[].concat(t(e.slice(0,r)),t(e.slice(r+1)))},a=function(e,r,n){return[].concat(t(e.slice(0,r)),[n],t(e.slice(r+1)))};function l(e,r,n){return-1===n?[].concat(t(e.filter((function(e,n){return n!==r}))),[e[r]]):e.reduce((function(t,o,i){return i===n&&t.push(e[r]),i!==r&&t.push(o),t}),[])}},33988:function(e,r,n){var t=n(87537),o=n.n(t),i=n(23645),a=n.n(i)()(o());a.push([e.id,".OaJISbD1WCmb03at77EG {\n  position: relative;\n}\n\n.MUN9De8dUvbPGH9cEDoQ {\n  position: absolute;\n  z-index: 10;\n  bottom: 0;\n  left: 50%;\n  transform: translate(-50%, 100%);\n  max-width: 250px;\n  width: 100%;\n\n  border-radius: 4px;\n  padding: 3px 5px;\n\n  color: white;\n  background-color: var(--error-highlight);\n  font-size: 85%;\n  font-family: sans-serif;\n\n  opacity: 0.9;\n}\n.MUN9De8dUvbPGH9cEDoQ::before {\n  position: absolute;\n  display: block;\n  content: ' ';\n  z-index: -1;\n\n  left: 50%;\n  width: 10px;\n  height: 10px;\n\n  background-color: var(--error-highlight);\n  transform: translate(-50%, -7px) rotate(45deg);\n}\n","",{version:3,sources:["webpack://./src/Common/input.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,SAAS;EACT,SAAS;EACT,gCAAgC;EAChC,gBAAgB;EAChB,WAAW;;EAEX,kBAAkB;EAClB,gBAAgB;;EAEhB,YAAY;EACZ,wCAAwC;EACxC,cAAc;EACd,uBAAuB;;EAEvB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,YAAY;EACZ,WAAW;;EAEX,SAAS;EACT,WAAW;EACX,YAAY;;EAEZ,wCAAwC;EACxC,8CAA8C;AAChD",sourcesContent:[".wrapper {\n  position: relative;\n}\n\n.error {\n  position: absolute;\n  z-index: 10;\n  bottom: 0;\n  left: 50%;\n  transform: translate(-50%, 100%);\n  max-width: 250px;\n  width: 100%;\n\n  border-radius: 4px;\n  padding: 3px 5px;\n\n  color: white;\n  background-color: var(--error-highlight);\n  font-size: 85%;\n  font-family: sans-serif;\n\n  opacity: 0.9;\n}\n.error::before {\n  position: absolute;\n  display: block;\n  content: ' ';\n  z-index: -1;\n\n  left: 50%;\n  width: 10px;\n  height: 10px;\n\n  background-color: var(--error-highlight);\n  transform: translate(-50%, -7px) rotate(45deg);\n}\n"],sourceRoot:""}]),a.locals={wrapper:"OaJISbD1WCmb03at77EG",error:"MUN9De8dUvbPGH9cEDoQ"},r.Z=a},34288:function(e,r,n){var t=n(87537),o=n.n(t),i=n(23645),a=n.n(i)()(o());a.push([e.id,".kcj881bnLDph62EcKelj {\n  padding-bottom: 60px;\n}\n\n.GeuMxQtBvZYr0nOURDHd {\n  display: flex;\n  width: 190px;\n  flex-direction: column;\n  padding: 10px;\n  gap: 10px;\n  position: fixed;\n}\n\n.NqlHG1MKBiOUUFAed3CM {\n  max-width: 700px;\n  margin: 0 auto;\n  padding-bottom: 60px;\n}\n\n.NqlHG1MKBiOUUFAed3CM table {\n  border-spacing: 0;\n  margin-bottom: 10px;\n}\n.NqlHG1MKBiOUUFAed3CM table thead {\n  text-align: left;\n}\n\n.NqlHG1MKBiOUUFAed3CM table tbody tr td {\n  padding: 10px;\n  margin: 0;\n}\n.NqlHG1MKBiOUUFAed3CM table tbody tr:nth-child(even) {\n  background-color: var(--key-bg-base);\n}\n\n.Q3_rmo3XiEVg8qfXgKX_ {\n  cursor: pointer;\n  padding: 5px;\n  opacity: 0.6;\n}\n.Q3_rmo3XiEVg8qfXgKX_:hover {\n  opacity: 1;\n}\n\ntable.czOKx_t_EDF44pilzyzA { max-height: 80vh; }\ntable.czOKx_t_EDF44pilzyzA th { text-align: left }\ntable.czOKx_t_EDF44pilzyzA input { font-family: monospace }\ntable.czOKx_t_EDF44pilzyzA td {\n  padding: 4px;\n  vertical-align: top;\n}\ntable.czOKx_t_EDF44pilzyzA .s8rWNi6e8BZ7yQubfDws {\n  font-family: monospace;\n}\n.Bux6GxjreGZZkcXqx6kv {\n  display: block;\n  font-style: italic;\n}\n\n.xvIZYbb8L5QbOLcesQ4T {\n  color: red;\n  font-style: italic;\n}\n","",{version:3,sources:["webpack://./src/Keyboard/Behaviors/styles.module.css"],names:[],mappings:"AAAA;EACE,oBAAoB;AACtB;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,sBAAsB;EACtB,aAAa;EACb,SAAS;EACT,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,cAAc;EACd,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,SAAS;AACX;AACA;EACE,oCAAoC;AACtC;;AAEA;EACE,eAAe;EACf,YAAY;EACZ,YAAY;AACd;AACA;EACE,UAAU;AACZ;;AAEA,6BAAmB,gBAAgB,EAAE;AACrC,gCAAsB,iBAAiB;AACvC,mCAAyB,uBAAuB;AAChD;EACE,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,UAAU;EACV,kBAAkB;AACpB",sourcesContent:[".main {\n  padding-bottom: 60px;\n}\n\n.sidebar {\n  display: flex;\n  width: 190px;\n  flex-direction: column;\n  padding: 10px;\n  gap: 10px;\n  position: fixed;\n}\n\n.panel {\n  max-width: 700px;\n  margin: 0 auto;\n  padding-bottom: 60px;\n}\n\n.panel table {\n  border-spacing: 0;\n  margin-bottom: 10px;\n}\n.panel table thead {\n  text-align: left;\n}\n\n.panel table tbody tr td {\n  padding: 10px;\n  margin: 0;\n}\n.panel table tbody tr:nth-child(even) {\n  background-color: var(--key-bg-base);\n}\n\n.action {\n  cursor: pointer;\n  padding: 5px;\n  opacity: 0.6;\n}\n.action:hover {\n  opacity: 1;\n}\n\ntable.editorForm { max-height: 80vh; }\ntable.editorForm th { text-align: left }\ntable.editorForm input { font-family: monospace }\ntable.editorForm td {\n  padding: 4px;\n  vertical-align: top;\n}\ntable.editorForm .propertyName {\n  font-family: monospace;\n}\n.propertyDeprecation {\n  display: block;\n  font-style: italic;\n}\n\n.requiredIndicator {\n  color: red;\n  font-style: italic;\n}\n"],sourceRoot:""}]),a.locals={main:"kcj881bnLDph62EcKelj",sidebar:"GeuMxQtBvZYr0nOURDHd",panel:"NqlHG1MKBiOUUFAed3CM",action:"Q3_rmo3XiEVg8qfXgKX_",editorForm:"czOKx_t_EDF44pilzyzA",propertyName:"s8rWNi6e8BZ7yQubfDws",propertyDeprecation:"Bux6GxjreGZZkcXqx6kv",requiredIndicator:"xvIZYbb8L5QbOLcesQ4T"},r.Z=a}}]);
//# sourceMappingURL=BehaviorEditorTab.8e14191e25e0dbdc7845.js.map