summaryrefslogtreecommitdiffhomepage
path: root/BehaviorEditorTab.3bec020e6c4cdf5fc816.js
diff options
context:
space:
mode:
authorNick Coutsos <[email protected]>2023-11-07 20:00:52 -0500
committerNick Coutsos <[email protected]>2023-11-07 20:00:52 -0500
commitc40ceef5b9ed73659cf2c870e6e8267e35a1aaf1 (patch)
treeab5b7ac856dfaaa33194aeecb4e108b1b3184ae2 /BehaviorEditorTab.3bec020e6c4cdf5fc816.js
parente56a6ea55c62950e814185817b96793466d868eb (diff)
downloadkeymap-editor-c40ceef5b9ed73659cf2c870e6e8267e35a1aaf1.tar.gz
keymap-editor-c40ceef5b9ed73659cf2c870e6e8267e35a1aaf1.zip
Add mouse behaviors with user opt-in
Diffstat (limited to 'BehaviorEditorTab.3bec020e6c4cdf5fc816.js')
-rw-r--r--BehaviorEditorTab.3bec020e6c4cdf5fc816.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/BehaviorEditorTab.3bec020e6c4cdf5fc816.js b/BehaviorEditorTab.3bec020e6c4cdf5fc816.js
new file mode 100644
index 0000000..a63d06a
--- /dev/null
+++ b/BehaviorEditorTab.3bec020e6c4cdf5fc816.js
@@ -0,0 +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),h=n.n(y),m=n(33988),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=s().bind(null,"head"),v.domAPI=c(),v.insertStyleElement=b(),a()(m.Z,v);var j=m.Z&&m.Z.locals?m.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 Xr}});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 h(e){return h="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},h(e)}function m(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?m(Object(n),!0).forEach((function(r){j(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(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"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==h(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===h(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(80993);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),he=n(39693),me=n.n(he),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.")}()),h=b[0],m=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),[""])})),m(d.length)}),[o,d,s,m]),g=(0,i.useCallback)((function(e){s(we(we({},o),{},{useRaw:!1,parsed:(0,je.xw)(d,h,e.code)})),m(null)}),[o,d,h,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:me()([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 m(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!==h&&(0,y.jsx)(ve.Z,{node:{value:d[h],params:[],slot:"behaviour"},type:"value",context:"none",behaviour:{code:d[h]},prompt:"Select Behavior",searchKey:"code",onSelect:g,onCancel:function(){return m(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],h=f[1],m=u.length,v=void 0===m||m&&d.length<m,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)})),h(null)}),[o,d,s,b,h]),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 h(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 h(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,h=(0,i.useContext)(f.v).behaviors,m=(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=m[0],j=m[1],A=h[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(95130);function tr(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 or=["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-sensor-rotate","zmk,behavior-sensor-rotate-var","zmk,behavior-sticky-key","zmk,behavior-tap-dance"].map((function(e){return{value:e,label:nr.behaviorSchemas[e].description}}));function ir(e){var r,n,t=e.onUpdate,o=e.onCancel,a=(r=(0,i.useState)(""),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)||function(e,r){if(e){if("string"==typeof e)return tr(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)?tr(e,r):void 0}}(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.")}()),c=a[0],u=a[1],s=(0,i.useMemo)((function(){return or.find((function(e){return e.value===c}))}),[c]);return(0,y.jsx)(d.Z,{onDismiss:o,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:s,options:or,onChange:function(e){var r=e.value;return u(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:!c,onClick:function(){return t(c)},children:"Create"}),(0,y.jsx)(l.Z,{onClick:o,secondary:!0,children:"Cancel"})]})]})})}ir.propTypes={onUpdate:R().func.isRequired,onCancel:R().func.isRequired};var ar=ir,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=nr.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 hr(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 mr(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)?mr(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 mr(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=hr((0,i.useState)(null),2),r=e[0],n=e[1],t=hr((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,h=(0,i.useCallback)((function(){s(!0)}),[s]),m=(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:h,children:"Add New Behavior"}),u&&(0,y.jsx)(ar,{onUpdate:m,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),xr=n(44326),Or=n(86075);function wr(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 Sr(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,xr.I)(nr.behaviorBindings,r).filter((function(e){var r=nr.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 wr(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)?wr(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.")}()),h=b[0],m=b[1],v=(0,i.useMemo)((function(){return f.find((function(e){return e.value===h}))}),[f,h]);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 m(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:!h,onClick:function(){return u(h)},children:"Create"}),(0,y.jsx)(l.Z,{onClick:s,secondary:!0,children:"Cancel"})]})]})})}Sr.propTypes={onSelect:R().func.isRequired,onCancel:R().func.isRequired};var Cr=n(82569),Pr=n.n(Cr),Er=n(58887);function kr(e){return kr="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},kr(e)}function Zr(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 Br(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Zr(Object(n),!0).forEach((function(r){Dr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(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"!==kr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==kr(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===kr(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ir(e){var r=e.schema,n=void 0===r?{}:r,t=n.type;if("const"in n)return(0,y.jsx)(H,Br({},e));if("key-position-picker"===n.helper){var o=e.prop,i=void 0===o?{}:o;return(0,y.jsx)(Er.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,Br({},e));case"int":return(0,y.jsx)(J,Br({},e));case"boolean":return(0,y.jsx)(ee,Br({},e));case"phandle":case"phandles":return(0,y.jsx)(ke,Br({},e));case"phandle-array":return(0,y.jsx)(Ve,Br({},e));default:return(0,y.jsx)(Q,Br({},e))}}function Nr(e){return Nr="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},Nr(e)}function Ur(e){return function(e){if(Array.isArray(e))return zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Mr(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 Tr(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 qr(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Tr(Object(n),!0).forEach((function(r){Rr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function Rr(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==Nr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Nr(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Nr(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Mr(e,r){if(e){if("string"==typeof e)return zr(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)?zr(e,r):void 0}}function zr(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}Ir.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 Fr=gr()(nr.behaviorBindings,"code");function Vr(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)||Mr(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.")}()),h=b[0],m=b[1],v=Fr[t.name],j=u[null==v?void 0:v.compatible],g=qr(qr({},j),{},{properties:Object.keys(j.properties).reduce((function(e,r){var n,t;return e[r]=qr({},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){m(qr(qr({},h),{},{properties:Object.keys(h.properties).reduce((function(n,t){var o=h.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])};m(qr(qr({},h),{},{properties:qr(qr({},h.properties),{},Rr({},e,r))}))},O=function(e){return function(r){var n=qr(qr({},h.properties),{},Rr({},e,r));Array.isArray(null==r?void 0:r.parsed)&&0===r.parsed.length&&delete n[e],m(qr(qr({},h),{},{properties:n}))}},w=function(e){m(qr(qr({},h),{},{properties:s()(h.properties,e)}))},S=function(e){console.log("oh yay!",e),m(qr(qr({},h),{},{deletedProperties:[].concat(Ur(h.deletedProperties),[e]),properties:s()(h.properties,e)}))},C=function(e){m(qr(qr({},h),{},{deletedProperties:Pr()(h.deletedProperties,e)}))},P=(0,i.useCallback)((function(){a(o()(h))}),[h,a]),E=(null==g?void 0:g.properties)||{},k=(g?Object.keys(E):Object.keys(h.properties)).filter((function(e){var r=E[e],n=r&&"const"in r,t=r&&!!r.deprecatedBy;return!("label"===e||n||t&&!h.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)(_r,{name:e,schema:E[e],override:h.properties[e],original:null==v||null===(n=v.properties)||void 0===n?void 0:n[e],originalDeleted:h.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 _r(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,h=void 0!==(null==t?void 0:t.parsed),m=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,Rr({},z.Z.overridden,h)),children:m&&(0,y.jsx)(Ir,{name:r,prop:qr(qr({},t),{},{parsed:o.parsed}),schema:n})}),(0,y.jsxs)("td",{className:z.Z.propertyValue,children:[b&&(0,y.jsx)(Kr,{}),h&&(0,y.jsx)(Xe,{name:r,prop:t,schema:n,onUpdate:u(r)}),!h&&!b&&(0,y.jsx)("button",{onClick:function(){v?p(r):l(r)},children:"Override"})]}),(0,y.jsxs)("td",{children:[h&&(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 Kr(){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 Yr(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 $r(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)?$r(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 $r(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 Gr=gr()(nr.behaviorBindings,"code");function Wr(){var e=(0,a.I0)(),r=(0,a.v9)(Ar.E$),n=Yr((0,i.useState)(null),2),t=n[0],o=n[1],u=Yr((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]),h=(0,i.useCallback)((function(){return o(null)}),[o]),m=(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})),h()}),[t,h,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=Gr[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)(Sr,{onSelect:m,onCancel:f}),t&&(0,y.jsx)(Vr,{onUpdate:v,onCancel:h,node:t.node})]})}var Xr=function(){return(0,y.jsxs)("div",{className:U.main,children:[(0,y.jsx)(vr,{}),(0,y.jsx)(Wr,{})]})}},49443:function(e,r,n){n.d(r,{Z:function(){return j}});var t=n(67294),o=n(45697),i=n.n(o),a=n(97494),l={useRaw:i().bool,raw:i().string,parsed:i().any},c={name:i().string.isRequired,labels:i().arrayOf(i().string).isRequired,properties:i().objectOf((function(e,r,n,t,o){try{i().checkPropTypes({propValue:i().shape(l).isRequired},{propValue:e},t,n)}catch(e){return new Error("Invalid prop `"+o+"` supplied to `"+n+"`. Validation failed.")}})).isRequired},u=n(62417),s=n(85893);function p(e){return p="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},p(e)}function d(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 f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?d(Object(n),!0).forEach((function(r){b(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function b(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==p(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(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,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)||h(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 h(e,r){if(e){if("string"==typeof e)return m(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)?m(e,r):void 0}}function m(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 v(e){var r=e.name,n=e.labels,t=y(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 j(e){var r=e.node,n=e.onUpdate,o=y((0,t.useState)(v(r)),2),i=o[0],l=o[1],c=y((0,t.useState)(v(r)),2),p=c[0],d=c[1],b=function(e,r,n,o){return[(0,t.useCallback)((function(n){r(f(f({},e),{},{name:n.target.value}))}),[e,r]),(0,t.useCallback)((function(t){var i,a=t.target.value,l=[a].concat(function(e){if(Array.isArray(e))return m(e)}(i=e.labels.slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||h(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=o?f(f({},e.properties),{},{label:{parsed:a.toUpperCase(),raw:'"'.concat(a.toUpperCase(),'"'),useRaw:!1}}):e.properties;r(f(f({},e),{},{name:c,labels:l,properties:u}))}),[e,r,n,o]),(0,t.useCallback)((function(n){return r(f(f({},e),{},{properties:f(f({},e.properties),{},{label:f(f({},e.properties.label),{},{parsed:n.target.value,useRaw:!1})})}))}),[e,r])]}(r,n,i,p),j=y(b,3),g=j[0],A=j[1],x=j[2];return(0,s.jsx)("table",{children:(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Bind"}),(0,s.jsx)("td",{children:(0,s.jsx)(a.Z,{type:"text",value:r.labels[0]||"",required:!0,validator:u.zq,onChange:A})})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Node"}),(0,s.jsxs)("td",{children:[(0,s.jsx)(a.Z,{value:r.name,required:!0,readOnly:i,disabled:i,validator:u.Gk,onChange:g}),(0,s.jsxs)("label",{title:"Set automatically using bind name",children:[(0,s.jsx)("input",{type:"checkbox",checked:i,onChange:function(e){return l(e.target.checked)}})," Automatic"]})]})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Label"}),(0,s.jsxs)("td",{children:[(0,s.jsx)(a.Z,{type:"text",value:r.properties.label.parsed||"",required:!0,readOnly:p,disabled:p,validator:function(){return null},onChange:x}),(0,s.jsxs)("label",{title:"Set automatically using bind name",children:[(0,s.jsx)("input",{type:"checkbox",checked:p,onChange:function(e){return d(e.target.checked)}})," Automatic"]})]})]})]})})}j.propTypes={node:i().shape(c).isRequired,onUpdate:i().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.3bec020e6c4cdf5fc816.js.map \ No newline at end of file