summaryrefslogtreecommitdiffhomepage
path: root/BehaviorEditorTab.183cd2ca080b38c468b2.js
blob: a2b0c4d21a31661cf82d2af8fa2e4bf72cdc2c47 (plain)
1
2
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5868],{97494:function(e,r,n){n.d(r,{Z:function(){return S}});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),y=n.n(f),b=n(44589),m=n.n(b),h=n(33988),A={};A.styleTagTransform=m(),A.setAttributes=d(),A.insert=s().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=y(),a()(h.Z,A);var v=h.Z&&h.Z.locals?h.Z.locals:void 0,g=n(85893);function j(e){return j="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},j(e)}var x=["validator","required","value"];function C(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 O(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?C(Object(n),!0).forEach((function(r){w(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function w(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==j(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==j(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===j(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function S(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:v.wrapper,children:[(0,g.jsx)("input",O({type:"text",value:i},a)),l&&(0,g.jsx)("span",{className:v.error,children:l})]})}S.propTypes={value:o().any.isRequired,required:o().bool,validator:o().func}},70904:function(e,r,n){n.r(r),n.d(r,{default:function(){return Qr}});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),y=n(49443),b=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 A(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){v(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 v(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,b.jsxs)("div",{children:[(0,b.jsx)("p",{children:(0,b.jsx)("code",{children:r.properties.compatible.parsed})}),(0,b.jsx)(y.Z,A({},e))]})}var j=n(93379),x=n.n(j),C=n(7795),O=n.n(C),w=n(90569),S=n.n(w),E=n(3565),P=n.n(E),B=n(19216),k=n.n(B),D=n(44589),Z=n.n(D),U=n(34288),I={};I.styleTagTransform=Z(),I.setAttributes=P(),I.insert=S().bind(null,"head"),I.domAPI=O(),I.insertStyleElement=k(),x()(U.Z,I);var R=U.Z&&U.Z.locals?U.Z.locals:void 0;function N(e){var r=e.property,n=e.schema,t=e.required,o=void 0!==t&&t;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("span",{className:R.propertyName,title:r,children:[r,o&&(0,b.jsx)("span",{className:R.requiredIndicator,children:"*"})]}),n.deprecatedBy&&(0,b.jsx)("sub",{className:R.propertyDeprecation,children:"(deprecated)"})]})}var q=n(45697),T=n.n(q),M=n(15023),V=n(27470),z={};z.styleTagTransform=Z(),z.setAttributes=P(),z.insert=S().bind(null,"head"),z.domAPI=O(),z.insertStyleElement=k(),x()(V.Z,z);var K=V.Z&&V.Z.locals?V.Z.locals:void 0;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 W(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?W(Object(n),!0).forEach((function(r){G(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function G(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 X(e){var r=e.prop,n=e.schema,t=e.onUpdate;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.Z,{name:"code",title:"Raw property value"})," ",(0,b.jsx)("input",{required:null==n?void 0:n.required,value:null==r?void 0:r.raw,onChange:function(e){return t(Y(Y({},r),{},{raw:e.target.value,useRaw:!0}))}})]})}function _(e){var r=e.schema;return(0,b.jsx)("span",{className:[K.propertyValue,K.readonly].join(" "),children:r.const})}function Q(e){var r,n=e.prop,t=e.schema,o=e.onUpdate;return(0,b.jsx)("input",{type:"text",className:K.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(Y(Y({},n),{},{parsed:e.target.value,useRaw:!1}))}})}function L(e){var r,n=e.prop,t=e.schema,o=e.onUpdate;return(0,b.jsx)("input",{type:"number",className:K.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(Y(Y({},n),{},{parsed:Number(e.target.value),useRaw:!1}))}})}function $(e){var r=e.prop,n=e.onUpdate;return(0,b.jsx)("input",{type:"checkbox",className:K.propertyValue,checked:(null==r?void 0:r.parsed)||!1,onChange:function(e){n({parsed:!!e.target.checked,useRaw:!1})}})}function H(e){var r=e.prop;return(0,b.jsx)("span",{className:K.barePropertyValue,children:r.parsed})}function J(e){var r=e.schema;return(0,b.jsx)("span",{className:K.barePropertyValue,children:r.const})}function ee(e){var r=e.prop;return(0,b.jsx)("span",{className:K.barePropertyValue,children:r.parsed})}function re(e){var r=e.prop;return(0,b.jsx)("span",{className:K.barePropertyValue,children:r.parsed})}function ne(e){var r=e.prop;return(0,b.jsx)("span",{className:K.barePropertyValue,children:(0,b.jsx)("input",{type:"checkbox",checked:r.parsed,disabled:!0})})}var te=n(35161),oe=n.n(te),ie=n(80993);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 le(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 ce(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 ue(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?ce(Object(n),!0).forEach((function(r){se(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(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 pe(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(ue(ue({},n),{},{parsed:a[e.target.value],useRaw:!1}))}),[n,a,o]);return(0,b.jsx)("select",{className:K.propertyValue,onChange:c,value:a.indexOf(l),children:a.map((function(e,r){return(0,b.jsx)("option",{value:r,children:e},r)}))})}function de(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?oe()(n,e.choices.$key):n}),[r,e.choices])}(t),l=n.parsed,c=void 0===l?[]:l,u=(0,i.useCallback)((function(e){o(ue(ue({},n),{},{useRaw:!1,parsed:e}))}),[n,o]),s=a.length>20?ye:fe;return(0,b.jsx)(s,{selected:c,choices:a,onUpdate:u})}function fe(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 le(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 le(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)?le(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,b.jsx)("ol",{className:K.propertyMultiSelect,children:n.map((function(e,n){return(0,b.jsx)("li",{children:(0,b.jsxs)("label",{children:[(0,b.jsx)("input",{type:"checkbox",checked:r.includes(e),onChange:function(r){return o(e)}}),e]})},n)}))})}function ye(e){var r=e.selected,n=e.choices,t=e.onUpdate,o=(0,i.useMemo)((function(){return n.map(be)}),[n]),a=(0,i.useMemo)((function(){return r.map(be)}),[r]);return(0,b.jsx)(ie.Z,{isMulti:!0,isSearchable:!0,options:o,value:a,onChange:function(e){return t(e.map((function(e){return e.value})))}})}function be(e){return{value:e,label:e}}var me=n(94184),he=n.n(me),Ae=n(39693),ve=n.n(Ae),ge=n(76620),je=n(29709);function xe(e){var r,n=e.schema,t=e.index;if(null==n||null===(r=n.bindingTriggers)||void 0===r||!r[t])return null;var o=n.bindingTriggers[t],i="Binding is triggered on ".concat(o);return(0,b.jsxs)("span",{title:i,className:K.bindingTriggerLabel,children:[o,":"]})}function Ce(e){return Ce="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},Ce(e)}function Oe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pe(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 we(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 Se(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?we(Object(n),!0).forEach((function(r){Ee(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function Ee(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==Ce(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Ce(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ce(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Pe(e,r){if(e){if("string"==typeof e)return Be(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)?Be(e,r):void 0}}function Be(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 ke(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,y=(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)||Pe(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=y[0],h=y[1],A=void 0===f||f&&d.length<f,v=(0,i.useCallback)((function(){s(Se(Se({},o),{},{useRaw:!1,parsed:[].concat(Oe(d),[""])})),h(d.length)}),[o,d,s,h]),g=(0,i.useCallback)((function(e){s(Se(Se({},o),{},{useRaw:!1,parsed:(0,je.xw)(d,m,e.code)})),h(null)}),[o,d,m,s]),j=(0,i.useCallback)((function(e){s(Se(Se({},o),{},{useRaw:!1,parsed:(0,je.f5)(d,e)}))}),[o,d,s]);return(0,b.jsxs)("div",{children:[(0,b.jsx)("ol",{className:ve()([K.selectable,K.propertyPhandleSelect,1===f&&K.propertyPhandleSingleton]).join(" "),children:d.map((function(e,r){return(0,b.jsxs)("li",{children:[(0,b.jsx)(xe,{schema:u,index:r}),(0,b.jsxs)("span",{className:K.behaviorBind,onClick:function(){return h(r)},children:[e,1!==f&&(0,b.jsx)(c.Z,{name:"times",className:K.phandleRemove,onClick:function(e){e.stopPropagation(),j(r)}})]})]},r)}))}),null!==m&&(0,b.jsx)(ge.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)}}),A&&(0,b.jsxs)(l.Z,{secondary:!0,onClick:v,children:[(0,b.jsx)(c.Z,{name:"plus"})," Add Behavior"]})]})}function De(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,b.jsx)("ol",{className:he()(K.propertyPhandleSelect,Ee({},K.propertyPhandleSingleton,1===l)),children:a.map((function(e,r){return(0,b.jsx)("li",{children:(0,b.jsx)("span",{className:K.behaviorBind,children:e})},r)}))})}var Ze=n(82607),Ue=n(91118),Ie=n(61953),Re=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 qe(e){return function(e){if(Array.isArray(e))return Ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ze(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 Me(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){Ve(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 Ve(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 ze(e,r){if(e){if("string"==typeof e)return Ke(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)?Ke(e,r):void 0}}function Ke(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)||ze(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.")}()),y=f[0],m=f[1],h=u.length,A=void 0===h||h&&d.length<h,v=(0,i.useCallback)((function(){s(Me(Me({},o),{},{useRaw:!1,parsed:[].concat(qe(d),[{value:"&none",params:[]}])}))}),[o,d,s]),g=(0,i.useCallback)((function(e){s(Me(Me({},o),{},{useRaw:!1,parsed:(0,je.xw)(d,y,e)})),m(null)}),[o,d,s,y,m]),j=(0,i.useCallback)((function(e){s(Me(Me({},o),{},{useRaw:!1,parsed:(0,je.f5)(d,e)}))}),[o,d,s]);return(0,b.jsxs)(b.Fragment,{children:[null!==y&&(0,b.jsx)(Re.Z,{binding:d[y],bindingIndex:y,onCancel:function(){return m(null)},onUpdate:g,Heading:function(){return null}}),(0,b.jsx)("ol",{className:K.propertyBindingsValue,children:d.map((function(e,r){return(0,b.jsxs)("li",{children:[(0,b.jsx)(xe,{schema:u,index:r}),(0,b.jsxs)(Ue.Z,{children:[(0,b.jsx)(Ze.Z,{binding:e,keyWrapperProps:{themeClass:Ie.Z.unified,onClick:function(){return m(r)}}}),(0,b.jsx)("div",{className:K.actions,children:(0,b.jsx)(c.Z,{name:"trash",className:K.deleteBind,onClick:function(e){e.stopPropagation(),j(r)}})})]})]},r)}))}),A&&(0,b.jsxs)(l.Z,{secondary:!0,onClick:v,children:[(0,b.jsx)(c.Z,{name:"plus"})," Add binding"]})]})}function We(e){var r=e.prop,n=(void 0===r?{}:r).parsed,t=void 0===n?[]:n;return(0,b.jsx)("ol",{className:K.propertyBindingsValue,children:t.map((function(e,r){return(0,b.jsx)("li",{children:(0,b.jsx)(Ze.Z,{binding:e,keyWrapperProps:{selectable:!1}})},r)}))})}function Ye(e){return Ye="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},Ye(e)}function Ge(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 Xe(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Ge(Object(n),!0).forEach((function(r){_e(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(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"!==Ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Ye(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ye(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Qe(e){var r=e.schema,n=void 0===r?{}:r,t=n.type;if("const"in n)return(0,b.jsx)(_,Xe({},e));if("enum"in n)return(0,b.jsx)(pe,Xe({},e));if("key-position-picker"===n.helper){var o=e.prop,i=void 0===o?{}:o,a=e.onUpdate;return(0,b.jsx)(M.Z,{value:i.parsed||[],onUpdate:function(e){a(Xe(Xe({},i),{},{useRaw:!1,parsed:e}))}})}if(n.choices)return(0,b.jsx)(de,Xe({},e));switch(t){case"string":return(0,b.jsx)(Q,Xe({},e));case"int":return(0,b.jsx)(L,Xe({},e));case"boolean":return(0,b.jsx)($,Xe({},e));case"phandle":case"phandles":return(0,b.jsx)(ke,Xe({},e));case"phandle-array":return(0,b.jsx)(Fe,Xe({},e));default:return(0,b.jsx)(X,Xe({},e))}}function Le(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:[]}]}}Qe.propTypes={schema:T().shape({type:T().oneOf(["string","boolean","int","array","phandle","phandles","phandle-array","integer-union"]),required:T().bool,description:T().string,default:T().any,const:T().any,helper:T().any,choices:T().oneOfType([T().array,T().shape({$source:T().string.isRequired,$key:T().string.isRequired})]),omitIfEmpty:T().bool}),prop:T().shape({parsed:T().any,raw:T().string}),onUpdate:T().func.isRequired};var $e=Qe;function He(e){return He="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},He(e)}function Je(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 er(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Je(Object(n),!0).forEach((function(r){rr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(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"!==He(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==He(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===He(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function nr(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 tr(e){var r,n,t,a=e.node,u=e.onUpdate,y=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 nr(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)?nr(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.")}()),A=h[0],v=h[1],j=m[null===(r=a.properties.compatible)||void 0===r?void 0:r.parsed],x=function(e){return function(r){var n=er(er({},A.properties),{},rr({},e,r));Array.isArray(null==r?void 0:r.parsed)&&0===r.parsed.length&&delete n[e],v(er(er({},A),{},{properties:n}))}},C=(0,i.useCallback)((function(){u(o()(A))}),[A,u]),O=(null==j?void 0:j.properties)||{},w=(j?Object.keys(O):Object.keys(A.properties)).filter((function(e){var r=O[e],n=r&&"const"in r,t=r&&!!r.deprecatedBy;return!("label"===e||n||t&&!A.properties[e])})),S=Object.keys(O).reduce((function(e,r){var n=O[r].deprecatedBy;return n&&(e[n]=r),e}),{}),E=Object.keys(O).filter((function(e){var r=O[e],n=r.required,t=r.deprecatedBy,o=S[e];return!("const"in O[e])&&!((t||o)in A.properties)&&n})),P=E.filter((function(e){return!A.properties[e]}));return(0,b.jsx)(d.Z,{onDismiss:y,children:(0,b.jsxs)(p.Z,{dismissText:!1,children:[(0,b.jsxs)("h2",{children:["Edit ",a.name," ",(0,b.jsxs)("code",{children:["(&",a.labels[0],")"]})]}),(0,b.jsx)(g,{node:A,onUpdate:v}),(0,b.jsx)("h3",{children:"Configuration"}),(0,b.jsxs)("table",{className:R.editorForm,children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:"Property"}),(0,b.jsx)("th",{children:"Value"}),(0,b.jsx)("th",{})]})}),(0,b.jsx)("tbody",{children:w.map((function(e,r){return(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{className:R.propertyName,children:e in O?(0,b.jsx)(N,{property:e,schema:O[e],required:E.includes(e)}):(0,b.jsx)("input",{value:e,onChange:(n=e,function(e){v(er(er({},A),{},{properties:Object.keys(A.properties).reduce((function(r,t){var o=A.properties[t];return t===n&&(t=e.target.value),r[t]=o,r}),{})}))})})}),(0,b.jsx)("td",{className:R.propertyValue,children:(0,b.jsx)($e,{name:e,prop:A.properties[e],schema:O[e],onUpdate:x(e)})}),(0,b.jsx)("td",{children:A.properties[e]&&!E.includes(e)&&(0,b.jsx)(c.Z,{name:"trash-can",className:R.action,onClick:function(){return function(e){v(er(er({},A),{},{properties:s()(A.properties,e)}))}(e)}})})]},r);var n}))})]}),E.length>0&&(0,b.jsx)("p",{children:(0,b.jsxs)("em",{children:[(0,b.jsx)("span",{className:R.requiredIndicator,children:"*"}),"Property is required."]})}),(0,b.jsxs)("div",{style:{textAlign:"center"},children:[(0,b.jsx)(l.Z,{disabled:P.length>0,onClick:C,children:"Okay"}),(0,b.jsx)(l.Z,{onClick:y,secondary:!0,children:"Cancel"})]})]})})}var or=n(95130);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}var ar=["zmk,behavior-hold-tap","zmk,behavior-mod-morph","zmk,behavior-tap-dance","zmk,behavior-sticky-key","zmk,behavior-caps-word","zmk,behavior-sensor-rotate","zmk,behavior-sensor-rotate-var"].map((function(e){return{value:e,label:or.behaviorSchemas[e].description}}));function lr(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 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}}(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 ar.find((function(e){return e.value===c}))}),[c]);return(0,b.jsx)(d.Z,{onDismiss:o,children:(0,b.jsxs)(p.Z,{dismissText:null,children:[(0,b.jsx)("h3",{children:"Add new behavior"}),(0,b.jsx)("label",{children:(0,b.jsx)(ie.Z,{required:!0,placeholder:"Select a behavior type",value:s,options:ar,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,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{children:t}),"value"!==o&&(0,b.jsxs)("div",{style:{opacity:"0.6"},children:["(",(0,b.jsx)("em",{children:n}),")"]})]})}})}),(0,b.jsxs)("div",{style:{textAlign:"center",margin:"10px"},children:[(0,b.jsx)(l.Z,{disabled:!c,onClick:function(){return t(c)},children:"Create"}),(0,b.jsx)(l.Z,{onClick:o,secondary:!0,children:"Cancel"})]})]})})}lr.propTypes={onUpdate:T().func.isRequired,onCancel:T().func.isRequired};var cr=lr,ur=n(98913),sr=n.n(ur);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 dr(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 fr(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?dr(Object(n),!0).forEach((function(r){yr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function yr(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,r){var n=r.name,t=r.labels,o=r.label,i=or.behaviorSchemas[e];return{name:n,labels:t,properties:fr({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:sr()(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 mr=n(28291),hr=n(29520);function Ar(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 vr(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)?vr(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 vr(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 gr(){var e=Ar((0,i.useState)(null),2),r=e[0],n=e[1],t=Ar((0,i.useState)(!1),2),u=t[0],s=t[1],p=(0,a.v9)(mr.pR),d=(0,a.I0)(),y=(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:br(e,{name:"new_behavior",labels:["new_behavior"],label:"NEW_BEHAVIOR"})})}),[s,n]),A=(0,i.useCallback)((function(e){var r=p[e];n({behaviorIndex:e,behavior:r})}),[p,n]),v=(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,mr.md)({behaviorIndex:t,behavior:e}):(0,mr.F6)({behavior:e});d(a),d((0,hr.Q)(o,i,[],y)),n(null)}),[d,r,n,y]),j=(0,i.useCallback)((function(e){var r=p[e].labels;window.confirm("Really delete behavior: ".concat(p[e].name,"?"))&&(d((0,mr.tY)({behaviorIndex:e})),d((0,hr.Q)(r,[],[],y)))}),[p,y,d]);return(0,b.jsxs)("div",{className:R.panel,children:[(0,b.jsx)("h3",{children:"Custom Behaviors"}),(0,b.jsx)("p",{children:"Create customized ZMK behaviors that you can use without conflicting with existing bindings."}),(0,b.jsxs)("table",{style:{width:"100%"},children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:"Binding"}),(0,b.jsx)("th",{children:"Compatible"}),(0,b.jsx)("th",{children:"Actions"})]})}),(0,b.jsx)("tbody",{children:p.map((function(e,r){return(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{children:(0,b.jsxs)("code",{children:["&",e.labels[0]]})}),(0,b.jsx)("td",{children:e.properties.compatible.raw}),(0,b.jsxs)("td",{children:[(0,b.jsx)(c.Z,{title:'Edit behavior "&'.concat(e.labels[0],'"'),className:R.action,onClick:function(){return A(r)},name:"wrench"}),(0,b.jsx)(c.Z,{title:'Create new behavior with configuration from "&'.concat(e.labels[0],'"'),className:R.action,onClick:function(){return v(r)},name:"copy"}),(0,b.jsx)(c.Z,{title:'Delete behavior "&'.concat(e.labels[0],'"'),className:R.action,onClick:function(){return j(r)},name:"trash-can"})]})]},r)}))})]}),(0,b.jsx)(l.Z,{onClick:m,children:"Add New Behavior"}),u&&(0,b.jsx)(cr,{onUpdate:h,onCancel:function(){return s(!1)}}),null!==r&&(0,b.jsx)(tr,{node:r.behavior,onCancel:function(){return n(null)},onUpdate:g})]})}var jr=n(24350),xr=n.n(jr),Cr=n(20058);function Or(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 wr(e){var r,n,t,o,c=e.onSelect,u=e.onCancel,s=(r=(0,a.v9)(Cr.E$),n=(0,i.useMemo)((function(){return or.behaviorBindings.filter((function(e){var n=or.behaviorSchemas[e.compatible];return Object.keys(n.properties).filter((function(e){return!["label","#binding-cells","#sensor-binding-cells"].includes(e)})).length>0&&!r.find((function(r){return r.name===e.code}))}))}),[r]),(0,i.useMemo)((function(){return n.map((function(e){return{value:e.code,label:e.name}}))}),[n])),f=(t=(0,i.useState)(""),o=2,function(e){if(Array.isArray(e))return e}(t)||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}}(t,o)||function(e,r){if(e){if("string"==typeof e)return Or(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)?Or(e,r):void 0}}(t,o)||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.")}()),y=f[0],m=f[1],h=(0,i.useMemo)((function(){return s.find((function(e){return e.value===y}))}),[s,y]);return(0,b.jsx)(d.Z,{onDismiss:u,children:(0,b.jsxs)(p.Z,{dismissText:null,children:[(0,b.jsx)("h3",{children:"Add new reconfiguration"}),(0,b.jsxs)("p",{children:[(0,b.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 un-merged features like mouse inputs, your existing reconfigured behaviors will be affected but won't appear here for editing."]}),(0,b.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,b.jsx)(ie.Z,{required:!0,placeholder:"Select a behavior binding",value:h,options:s,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,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{children:[(0,b.jsx)("code",{children:n})," ",(0,b.jsxs)("span",{style:{opacity:"0.6"},children:["(",(0,b.jsx)("em",{children:t}),")"]})]})})}})}),(0,b.jsxs)("div",{style:{textAlign:"center",margin:"10px"},children:[(0,b.jsx)(l.Z,{disabled:!y,onClick:function(){return c(y)},children:"Create"}),(0,b.jsx)(l.Z,{onClick:u,secondary:!0,children:"Cancel"})]})]})})}wr.propTypes={onSelect:T().func.isRequired,onCancel:T().func.isRequired};var Sr=n(82569),Er=n.n(Sr),Pr=n(58887);function Br(e){return Br="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},Br(e)}function kr(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 Dr(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?kr(Object(n),!0).forEach((function(r){Zr(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(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"!==Br(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Br(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Br(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ur(e){var r=e.schema,n=void 0===r?{}:r,t=n.type;if("const"in n)return(0,b.jsx)(J,Dr({},e));if("key-position-picker"===n.helper){var o=e.prop,i=void 0===o?{}:o;return(0,b.jsx)(Pr.Z,{value:i.parsed||[]})}switch(t){case"array":case"integer-union":return(0,b.jsx)(b.Fragment,{children:e.prop.parsed.map((function(e,r){return(0,b.jsx)("span",{className:K.barePropertyValue,children:e},r)}))});case"string":return(0,b.jsx)(ee,Dr({},e));case"int":return(0,b.jsx)(re,Dr({},e));case"boolean":return(0,b.jsx)(ne,Dr({},e));case"phandle":case"phandles":return(0,b.jsx)(De,Dr({},e));case"phandle-array":return(0,b.jsx)(We,Dr({},e));default:return(0,b.jsx)(H,Dr({},e))}}function Ir(e){return Ir="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},Ir(e)}function Rr(e){return function(e){if(Array.isArray(e))return Vr(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 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 qr(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"!==Ir(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!==Ir(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ir(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 Vr(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)?Vr(e,r):void 0}}function Vr(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}Ur.propTypes={schema:T().shape({type:T().oneOf(["string","boolean","int","array","phandle","phandles","phandle-array","integer-union"]),required:T().bool,description:T().string,default:T().any,const:T().any,helper:T().any,choices:T().array,omitIfEmpty:T().bool}),prop:T().shape({parsed:T().any,raw:T().string})};var zr=xr()(or.behaviorBindings,"code");function Kr(e){var r,n,t=e.node,a=e.onUpdate,c=e.onCancel,u=(0,i.useContext)(f.v).behaviors,y=(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.")}()),m=y[0],h=y[1],A=zr[t.name],v=u[null==A?void 0:A.compatible],g=qr(qr({},v),{},{properties:Object.keys(v.properties).reduce((function(e,r){var n,t;return e[r]=qr({},v.properties[r]),null!=A&&null!==(n=A.properties)&&void 0!==n&&null!==(t=n[r])&&void 0!==t&&t.parsed&&(e[r].default=A.properties[r].parsed),e}),{})}),j=function(e){return function(r){h(qr(qr({},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!==A.properties[e]?o()(A.properties[e]):{parsed:Le(g.properties[e])};h(qr(qr({},m),{},{properties:qr(qr({},m.properties),{},Tr({},e,r))}))},C=function(e){return function(r){var n=qr(qr({},m.properties),{},Tr({},e,r));Array.isArray(null==r?void 0:r.parsed)&&0===r.parsed.length&&delete n[e],h(qr(qr({},m),{},{properties:n}))}},O=function(e){h(qr(qr({},m),{},{properties:s()(m.properties,e)}))},w=function(e){console.log("oh yay!",e),h(qr(qr({},m),{},{deletedProperties:[].concat(Rr(m.deletedProperties),[e]),properties:s()(m.properties,e)}))},S=function(e){h(qr(qr({},m),{},{deletedProperties:Er()(m.deletedProperties,e)}))},E=(0,i.useCallback)((function(){a(o()(m))}),[m,a]),P=(null==g?void 0:g.properties)||{},B=(g?Object.keys(P):Object.keys(m.properties)).filter((function(e){var r=P[e],n=r&&"const"in r,t=r&&!!r.deprecatedBy;return!("label"===e||n||t&&!m.properties[e])}));return(0,b.jsx)(d.Z,{onDismiss:c,children:(0,b.jsxs)(p.Z,{dismissText:!1,style:{maxWidth:"none"},children:[(0,b.jsxs)("h2",{children:["Reconfigure ",(0,b.jsx)("code",{children:t.name})]}),(0,b.jsx)("h3",{children:"Configuration"}),(0,b.jsxs)("table",{className:R.editorForm,children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:"Property"}),(0,b.jsx)("th",{children:"Default"}),(0,b.jsx)("th",{children:"Custom"}),(0,b.jsx)("th",{})]})}),(0,b.jsx)("tbody",{children:B.map((function(e,r){var n;return(0,b.jsx)(Fr,{name:e,schema:P[e],override:m.properties[e],original:null==A||null===(n=A.properties)||void 0===n?void 0:n[e],originalDeleted:m.deletedProperties.includes(e),handlePropNameChange:j,handleAddPropOverride:x,handleUpdatePropOverride:C,handleDeletePropOverride:O,handleDeleteOriginalProp:w,handleUnDeleteOriginalProp:S},r)}))})]}),(0,b.jsxs)("div",{style:{textAlign:"center"},children:[(0,b.jsx)(l.Z,{onClick:E,children:"Okay"}),(0,b.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,y=i&&f,m=void 0!==(null==t?void 0:t.parsed),h=void 0!==(null==o?void 0:o.parsed),A=f&&!y&&!0===(null==o?void 0:o.parsed);return(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{className:R.propertyName,children:n?(0,b.jsx)(N,{property:r,schema:n}):(0,b.jsx)("input",{value:r,onChange:a(r)})}),(0,b.jsx)("td",{className:he()(K.propertyValue,Tr({},K.overridden,m)),children:h&&(0,b.jsx)(Ur,{name:r,prop:qr(qr({},t),{},{parsed:o.parsed}),schema:n})}),(0,b.jsxs)("td",{className:K.propertyValue,children:[y&&(0,b.jsx)(Wr,{}),m&&(0,b.jsx)($e,{name:r,prop:t,schema:n,onUpdate:u(r)}),!m&&!y&&(0,b.jsx)("button",{onClick:function(){A?p(r):l(r)},children:"Override"})]}),(0,b.jsxs)("td",{children:[m&&(0,b.jsx)(c.Z,{name:"trash-can",className:R.action,onClick:function(){return s(r)}}),y&&(0,b.jsx)(c.Z,{name:"trash-can",className:R.action,onClick:function(){return d(r)}})]})]})}function Wr(){return(0,b.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 Gr(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)?Gr(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 Gr(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 Xr=xr()(or.behaviorBindings,"code");function _r(){var e=(0,a.I0)(),r=(0,a.v9)(Cr.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],y=(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]),A=(0,i.useCallback)((function(r){var n=t.index;e(null===n?(0,Cr.hd)({reconfiguration:r,reconfigurationIndex:n}):(0,Cr.eG)({reconfiguration:r,reconfigurationIndex:n})),m()}),[t,m,e]),v=(0,i.useCallback)((function(n){var t=r[n];window.confirm("Really delete reconfiguration for: ".concat(t.name,"?"))&&e((0,Cr.x5)({reconfigurationIndex:n}))}),[r,e]);return(0,b.jsxs)("div",{className:R.panel,children:[(0,b.jsx)("h3",{children:"Reconfigurations"}),(0,b.jsx)("p",{children:"Update/override configured properties for pre-defined ZMK behaviors."}),(0,b.jsxs)("table",{style:{width:"100%"},children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:"Binding"}),(0,b.jsx)("th",{children:"Compatible"}),(0,b.jsx)("th",{children:"Actions"})]})}),(0,b.jsx)("tbody",{children:r.map((function(e,r){var n;return(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{children:(0,b.jsx)("code",{children:e.name})}),(0,b.jsx)("td",{children:null===(n=Xr[e.name])||void 0===n?void 0:n.compatible}),(0,b.jsxs)("td",{children:[(0,b.jsx)(c.Z,{className:R.action,onClick:function(){return y(r)},name:"wrench"}),(0,b.jsx)(c.Z,{className:R.action,onClick:function(){return v(r)},name:"trash-can"})]})]},r)}))})]}),(0,b.jsx)(l.Z,{onClick:p,children:"Add Behavior Reconfiguration"}),s&&(0,b.jsx)(wr,{onSelect:h,onCancel:f}),t&&(0,b.jsx)(Kr,{onUpdate:A,onCancel:m,node:t.node})]})}var Qr=function(){return(0,b.jsxs)("div",{className:R.main,children:[(0,b.jsx)(gr,{}),(0,b.jsx)(_r,{})]})}},49443:function(e,r,n){n.d(r,{Z:function(){return v}});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){y(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 y(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 b(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)||m(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 m(e,r){if(e){if("string"==typeof e)return h(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)?h(e,r):void 0}}function h(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 A(e){var r=e.name,n=e.labels,t=b(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 v(e){var r=e.node,n=e.onUpdate,o=b((0,t.useState)(A(r)),2),i=o[0],l=o[1],c=b((0,t.useState)(A(r)),2),p=c[0],d=c[1],y=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 h(e)}(i=e.labels.slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||m(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),v=b(y,3),g=v[0],j=v[1],x=v[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:j})})]}),(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"]})]})]})]})})}v.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},27470:function(e,r,n){var t=n(87537),o=n.n(t),i=n(23645),a=n.n(i)()(o());a.push([e.id,'\n.S3t60CK1JCROFIrRlm4j [readonly] {\n  cursor: not-allowed;\n  color: gray;\n  outline: gray;\n}\n\ninput.S3t60CK1JCROFIrRlm4j[type="text"],\ninput.S3t60CK1JCROFIrRlm4j[type="number"],\nselect.S3t60CK1JCROFIrRlm4j {\n  width: 100%;\n}\n\nol.MedG7SPG2ge2h7j2yqrJ {\n  list-style-type: none;\n  margin-top: 0;\n  padding: 0;\n}\n.V50Bekt6td9yQOSiDGdx {\n  list-style-type: none;\n  margin: 0;\n  padding: 0;\n}\n.V50Bekt6td9yQOSiDGdx li {\n  display: inline-block;\n  line-height: 2rem;\n}\nol.QNg3v6_eJoK7_qV0_y9n {\n  margin: 0;\n}\nol.QNg3v6_eJoK7_qV0_y9n li {\n  line-height: 2rem;\n}\nol.u65C3Uji7covMUn996dR {\n  list-style-type: none;\n  padding: 0;\n}\n.xp5u4Uo4X2fxxX9KwwXu {\n  margin: 2px;\n  padding: 5px;\n  font-family: monospace;\n  border-radius: 1rem;\n  background-color: var(--key-bg-base);\n}\n\n.RdlDHEEEIkX89TwYeKMf {\n  margin: 2px;\n  padding: 5px;\n  font-family: monospace;\n  border-radius: 1rem;\n  background-color: var(--key-bg-base);\n}\n\n.NoJRqFdqjTh5fdcL9crT .xp5u4Uo4X2fxxX9KwwXu:hover {\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  color: white;\n}\n\n.fLumxf7S6GjkhmQSozuF {\n  opacity: 0.5;\n  text-decoration: line-through;\n}\n\n.gpFGP00LCwlGjK6yrGWw {\n  vertical-align: text-bottom;\n  margin: 0 2px;\n}\n.gpFGP00LCwlGjK6yrGWw:hover {\n  color: black;\n}\n\n.gsAzkKxnfzTcp5ApwmWS {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 10px;\n  list-style-type: none;\n  padding: 0;\n  margin: 0;\n}\n\n.jYvV18XDtOIerc2wryqt {\n  font-size: 80%;\n  font-variant: small-caps;\n  font-style: italic;\n  margin: 2px;\n  border-radius: 3px;\n}\n\n/* Copied from MacroEditor :( */\n.KrcWDYfRVRfvRhpsBFxs {\n  visibility: hidden;\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  font-size: 80%;\n\n  color: var(--key-color-hover);\n}\n.KrcWDYfRVRfvRhpsBFxs > * {\n  margin: 2px;\n  opacity: 0.5;\n  cursor: pointer;\n}\n.gsAzkKxnfzTcp5ApwmWS li :hover .KrcWDYfRVRfvRhpsBFxs {\n  visibility: visible;\n  z-index: 10;\n}\n\n.KrcWDYfRVRfvRhpsBFxs :hover {\n  opacity: 1;\n}\n',"",{version:3,sources:["webpack://./src/Keyboard/Behaviors/PropertyValue/styles.module.css"],names:[],mappings:";AACA;EACE,mBAAmB;EACnB,WAAW;EACX,aAAa;AACf;;AAEA;;;EAGE,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,aAAa;EACb,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,SAAS;EACT,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,SAAS;AACX;AACA;EACE,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,UAAU;AACZ;AACA;EACE,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,mBAAmB;EACnB,oCAAoC;AACtC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,mBAAmB;EACnB,oCAAoC;AACtC;;AAEA;EACE,eAAe;EACf,wCAAwC;EACxC,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,6BAA6B;AAC/B;;AAEA;EACE,2BAA2B;EAC3B,aAAa;AACf;AACA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;EACb,eAAe;EACf,SAAS;EACT,qBAAqB;EACrB,UAAU;EACV,SAAS;AACX;;AAEA;EACE,cAAc;EACd,wBAAwB;EACxB,kBAAkB;EAClB,WAAW;EACX,kBAAkB;AACpB;;AAEA,+BAA+B;AAC/B;EACE,kBAAkB;EAClB,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,cAAc;;EAEd,6BAA6B;AAC/B;AACA;EACE,WAAW;EACX,YAAY;EACZ,eAAe;AACjB;AACA;EACE,mBAAmB;EACnB,WAAW;AACb;;AAEA;EACE,UAAU;AACZ",sourcesContent:['\n.propertyValue [readonly] {\n  cursor: not-allowed;\n  color: gray;\n  outline: gray;\n}\n\ninput.propertyValue[type="text"],\ninput.propertyValue[type="number"],\nselect.propertyValue {\n  width: 100%;\n}\n\nol.propertyMultiSelect {\n  list-style-type: none;\n  margin-top: 0;\n  padding: 0;\n}\n.propertyMultiSelectChips {\n  list-style-type: none;\n  margin: 0;\n  padding: 0;\n}\n.propertyMultiSelectChips li {\n  display: inline-block;\n  line-height: 2rem;\n}\nol.propertyPhandleSelect {\n  margin: 0;\n}\nol.propertyPhandleSelect li {\n  line-height: 2rem;\n}\nol.propertyPhandleSingleton {\n  list-style-type: none;\n  padding: 0;\n}\n.behaviorBind {\n  margin: 2px;\n  padding: 5px;\n  font-family: monospace;\n  border-radius: 1rem;\n  background-color: var(--key-bg-base);\n}\n\n.barePropertyValue {\n  margin: 2px;\n  padding: 5px;\n  font-family: monospace;\n  border-radius: 1rem;\n  background-color: var(--key-bg-base);\n}\n\n.selectable .behaviorBind:hover {\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  color: white;\n}\n\n.overridden {\n  opacity: 0.5;\n  text-decoration: line-through;\n}\n\n.phandleRemove {\n  vertical-align: text-bottom;\n  margin: 0 2px;\n}\n.phandleRemove:hover {\n  color: black;\n}\n\n.propertyBindingsValue {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 10px;\n  list-style-type: none;\n  padding: 0;\n  margin: 0;\n}\n\n.bindingTriggerLabel {\n  font-size: 80%;\n  font-variant: small-caps;\n  font-style: italic;\n  margin: 2px;\n  border-radius: 3px;\n}\n\n/* Copied from MacroEditor :( */\n.actions {\n  visibility: hidden;\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  font-size: 80%;\n\n  color: var(--key-color-hover);\n}\n.actions > * {\n  margin: 2px;\n  opacity: 0.5;\n  cursor: pointer;\n}\n.propertyBindingsValue li :hover .actions {\n  visibility: visible;\n  z-index: 10;\n}\n\n.actions :hover {\n  opacity: 1;\n}\n'],sourceRoot:""}]),a.locals={propertyValue:"S3t60CK1JCROFIrRlm4j",propertyMultiSelect:"MedG7SPG2ge2h7j2yqrJ",propertyMultiSelectChips:"V50Bekt6td9yQOSiDGdx",propertyPhandleSelect:"QNg3v6_eJoK7_qV0_y9n",propertyPhandleSingleton:"u65C3Uji7covMUn996dR",behaviorBind:"xp5u4Uo4X2fxxX9KwwXu",barePropertyValue:"RdlDHEEEIkX89TwYeKMf",selectable:"NoJRqFdqjTh5fdcL9crT",overridden:"fLumxf7S6GjkhmQSozuF",phandleRemove:"gpFGP00LCwlGjK6yrGWw",propertyBindingsValue:"gsAzkKxnfzTcp5ApwmWS",bindingTriggerLabel:"jYvV18XDtOIerc2wryqt",actions:"KrcWDYfRVRfvRhpsBFxs"},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.183cd2ca080b38c468b2.js.map