summaryrefslogtreecommitdiffhomepage
path: root/ConditionalLayerEditorTab.6410a97ffdb1b68ee5b0.js
blob: 8e738a889b991e8d5cd60c34b8757f3ef2a8da4a (plain)
1
2
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1803],{27926:function(n,e,t){t.d(e,{Z:function(){return w}});var r=t(93379),o=t.n(r),i=t(7795),a=t.n(i),l=t(90569),c=t.n(l),s=t(3565),u=t.n(s),A=t(19216),d=t.n(A),p=t(44589),f=t.n(p),b=t(56281),h={};h.styleTagTransform=f(),h.setAttributes=u(),h.insert=c().bind(null,"head"),h.domAPI=a(),h.insertStyleElement=d(),o()(b.Z,h);var y=b.Z&&b.Z.locals?b.Z.locals:void 0,m=t(85893);function v(n){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v(n)}var g=["children","secondary","className"];function C(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function E(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?C(Object(t),!0).forEach((function(e){x(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function x(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==v(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===v(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function j(n){var e=n.children,t=n.secondary,r=n.className,o=function(n,e){if(null==n)return{};var t,r,o=function(n,e){if(null==n)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}(n,g);return(0,m.jsx)("button",E(E({className:[r,y.action,t&&y.secondary].join(" ")},o),{},{children:e}))}j.defaultProps={className:""};var w=j},60439:function(n,e,t){t.d(e,{Z:function(){return P}});var r=t(94184),o=t.n(r),i=t(6557),a=t.n(i),l=t(67294),c=t(45697),s=t.n(c),u=t(93379),A=t.n(u),d=t(7795),p=t.n(d),f=t(90569),b=t.n(f),h=t(3565),y=t.n(h),m=t(19216),v=t.n(m),g=t(44589),C=t.n(g),E=t(86015),x={};x.styleTagTransform=C(),x.setAttributes=y(),x.insert=b().bind(null,"head"),x.domAPI=p(),x.insertStyleElement=v(),A()(E.Z,x);var j=E.Z&&E.Z.locals?E.Z.locals:void 0,w=t(41051),B=t(56803),O=t(21517),k=t(85893);function Z(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(n){s=!0,o=n}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,e)||function(n,e){if(n){if("string"==typeof n)return S(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(n,e):void 0}}(n,e)||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 S(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function P(n){var e=n.value,t=n.validate,r=n.required,i=n.render,a=n.onUpdate,c=n.showEditOnHover,s=Z((0,l.useState)(!1),2),u=s[0],A=s[1],d=(0,l.useCallback)((function(n){A(!1),a(n)}),[A,a]),p=(0,l.useCallback)((function(){A(!1)}),[A]);return u?(0,k.jsx)(Y,{value:e,validate:t,required:r,onConfirm:d,onCancel:p}):i((0,k.jsxs)("span",{className:j.container,"data-show-edit-on-hover":c,children:[(0,k.jsx)("span",{children:e}),(0,k.jsx)(w.Z,{name:"pencil",title:"Edit",className:o()(j.edit,j.buttonIcon),onClick:(0,B.s)((function(){return A(!0)}))})]}))}function Y(n){var e=n.value,t=n.validate,r=n.required,o=n.onConfirm,i=n.onCancel,a=(0,l.useRef)(),c=Z((0,l.useState)({value:e,attemptedEmpty:!1}),2),s=c[0],u=s.value,A=s.attemptedEmpty,d=c[1],p=r&&A?"cannot be empty":t&&t(u),f=(0,l.useCallback)((function(n){n&&(n.focus(),n.select())}),[]),b=(0,l.useCallback)((function(n){d({attemptedEmpty:!1,value:n.target.value})}),[d]),h=(0,l.useCallback)((function(){""===u&&r?d({value:"",attemptedEmpty:!0}):p||o(u)}),[u,r,p,o,d]);return(0,O.Z)(a,i,!p),(0,k.jsxs)("span",{className:j.container,ref:a,children:[(0,k.jsx)("input",{ref:f,value:u,onChange:b,onKeyDown:(0,B.w)({Enter:h,Escape:i})}),p&&(0,k.jsx)("span",{className:j.error,children:p}),(0,k.jsxs)("span",{style:{display:"inline flex",flexDirection:"row",gap:"5px",marginLeft:"5px"},children:[(0,k.jsx)(w.Z,{name:"check",title:"Accept",className:j.buttonIcon,onClick:h,disabled:p}),(0,k.jsx)(w.Z,{name:"rotate-left",title:"Reset",className:j.buttonIcon,onClick:i})]})]})}P.propTypes={value:s().string.isRequired,validate:s().func,required:s().bool.isRequired,render:s().func.isRequired,onUpdate:s().func.isRequired,showEditOnHover:s().bool.isRequired},P.defaultProps={render:a(),required:!0,showEditOnHover:!1}},97494:function(n,e,t){t.d(e,{Z:function(){return B}});var r=t(45697),o=t.n(r),i=t(93379),a=t.n(i),l=t(7795),c=t.n(l),s=t(90569),u=t.n(s),A=t(3565),d=t.n(A),p=t(19216),f=t.n(p),b=t(44589),h=t.n(b),y=t(33988),m={};m.styleTagTransform=h(),m.setAttributes=d(),m.insert=u().bind(null,"head"),m.domAPI=c(),m.insertStyleElement=f(),a()(y.Z,m);var v=y.Z&&y.Z.locals?y.Z.locals:void 0,g=t(85893);function C(n){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},C(n)}var E=["validator","required","value"];function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?x(Object(t),!0).forEach((function(e){w(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function w(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==C(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===C(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function B(n){var e=n.validator,t=n.required,r=void 0!==t&&t,o=n.value,i=void 0===o?"":o,a=function(n,e){if(null==n)return{};var t,r,o=function(n,e){if(null==n)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}(n,E),l=e(i)||!i&&r&&"cannot be empty";return(0,g.jsxs)("span",{className:v.wrapper,children:[(0,g.jsx)("input",j({type:"text",value:i},a)),l&&(0,g.jsx)("span",{className:v.error,children:l})]})}B.propTypes={value:o().any.isRequired,required:o().bool,validator:o().func}},62417:function(n,e,t){function r(n){return n.length>31?"maximum length: 31":n.match(/^[^a-zA-Z]/)?"first character must be a letter":n.match(/[^a-zA-Z0-9,._+-]/)?"valid characters: a-zA-Z0-9,._+-":void 0}t.d(e,{G3:function(){return o},Gk:function(){return r},O8:function(){return a},zq:function(){return i}});var o=r;function i(n){return n.length>31?"maximum length: 31":n.match(/^[^a-zA-Z]/)?"first character must be a letter":n.match(/[^a-zA-Z0-9_]/)?"valid characters: a-zA-Z0-9_":void 0}function a(n){return n.length>31?"maximum length: 31":n.match(/^[^&]/)?'must start with "&"':n.match(/^&[^a-zA-Z]/)?"first character must be a letter":n.slice(1).match(/[^a-zA-Z0-9_]/)?"valid characters: a-zA-Z0-9_":void 0}},11937:function(n,e,t){t.r(e),t.d(e,{default:function(){return V}});var r=t(50361),o=t.n(r),i=t(67294),a=t(95998),l=t(80736),c=t(27926),s=t(62417),u=t(96186),A=t(97494),d=t(64261),p=t(91892),f=t(93379),b=t.n(f),h=t(7795),y=t.n(h),m=t(90569),v=t.n(m),g=t(3565),C=t.n(g),E=t(19216),x=t.n(E),j=t(44589),w=t.n(j),B=t(55235),O={};O.styleTagTransform=w(),O.setAttributes=C(),O.insert=v().bind(null,"head"),O.domAPI=y(),O.insertStyleElement=x(),b()(B.Z,O);var k=B.Z&&B.Z.locals?B.Z.locals:void 0,Z=t(85893);function S(n){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S(n)}function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Y(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?P(Object(t),!0).forEach((function(e){D(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function D(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==S(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===S(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function N(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function I(n){var e,t,r=n.node,o=n.onSubmit,f=n.onCancel,b=(e=(0,i.useState)(r),t=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(n){s=!0,o=n}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(n,e){if(n){if("string"==typeof n)return N(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?N(n,e):void 0}}(e,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.")}()),h=b[0],y=b[1],m=(0,a.v9)(l.vl),v=(0,i.useMemo)((function(){var n,e,t,r;return(null===(n=h.name)||void 0===n?void 0:n.length)>0&&!(0,s.Gk)(h.name)&&(null===(e=h.properties["if-layers"])||void 0===e||null===(t=e.parsed)||void 0===t?void 0:t.length)>0&&void 0!==(null===(r=h.properties["then-layer"])||void 0===r?void 0:r.parsed)}),[h]),g=(0,i.useMemo)((function(){return m.map((function(n,e){return{id:e,label:(0,l.EI)(n)}}))}),[m]),C=(0,i.useMemo)((function(){return g.find((function(n){var e;return n.id===(null===(e=h.properties["then-layer"])||void 0===e?void 0:e.parsed)}))}),[h,g]),E=(0,i.useMemo)((function(){var n;return((null===(n=h.properties["if-layers"])||void 0===n?void 0:n.parsed)||[]).map((function(n){return g.find((function(e){return e.id===n}))}))}),[h,g]),x=(0,i.useCallback)((function(n){return y((function(e){return Y(Y({},e),{},{name:n.target.value})}))}),[y]),j=(0,i.useCallback)((function(n){return y((function(e){return Y(Y({},e),{},{properties:Y(Y({},e.properties),{},{"if-layers":{parsed:n.map((function(n){return n.id}))}})})}))}),[y]),w=(0,i.useCallback)((function(n){return y((function(e){return Y(Y({},e),{},{properties:Y(Y({},e.properties),{},{"then-layer":{parsed:n.id}})})}))}),[y]),B=(0,i.useCallback)((function(){return o(h)}),[o,h]);return(0,Z.jsx)(d.Z,{onDismiss:f,children:(0,Z.jsxs)(u.Z,{dismissText:!1,style:{width:"500px"},children:[(0,Z.jsx)("h2",{children:"Conditional Layer"}),(0,Z.jsxs)("div",{className:k.form,children:[(0,Z.jsxs)("div",{className:k.field,children:[(0,Z.jsx)("label",{htmlFor:"pending_conditional_layer_name",children:"Condition name"}),(0,Z.jsx)(A.Z,{id:"pending_conditional_layer_name",value:h.name,validator:s.Gk,onChange:x})]}),(0,Z.jsxs)("div",{className:k.field,children:[(0,Z.jsx)("label",{id:"pending_conditional_layer_if_layers",children:"When these layers are active"}),(0,Z.jsx)(p.Z,{isMulti:!0,isSearchable:!0,id:"pending_conditional_layer_if_layers",value:E,options:g,onChange:j,getOptionValue:function(n){return n.id}})]}),(0,Z.jsxs)("div",{className:k.field,children:[(0,Z.jsx)("label",{htmlFor:"pending_conditional_layer_then_layer",children:"Activate this layer"}),(0,Z.jsx)(p.Z,{id:"pending_conditional_layer_then_layer",value:C,options:g,onChange:w,getOptionValue:function(n){return n.id}})]})]}),(0,Z.jsxs)("div",{style:{textAlign:"center",marginTop:"10px"},children:[(0,Z.jsx)(c.Z,{onClick:B,disabled:!v,children:"Okay"}),(0,Z.jsx)(c.Z,{onClick:f,secondary:!0,children:"Cancel"})]})]})})}var z=t(59140),T=t(90291),W={};W.styleTagTransform=w(),W.setAttributes=C(),W.insert=v().bind(null,"head"),W.domAPI=y(),W.insertStyleElement=x(),b()(T.Z,W);var R=T.Z&&T.Z.locals?T.Z.locals:void 0,_=t(41051),q=t(60439);function F(n){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},F(n)}function J(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function U(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?J(Object(t),!0).forEach((function(e){X(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function X(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==F(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===F(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function M(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(n){s=!0,o=n}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,e)||function(n,e){if(n){if("string"==typeof n)return G(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?G(n,e):void 0}}(n,e)||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 G(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function V(){var n=(0,a.I0)(),e=(0,a.v9)(z.Iu),t=(0,a.v9)(l.vl),r=M((0,i.useState)(null),2),u=r[0],A=r[1],d=M((0,i.useState)(null),2),f=d[0],b=d[1],h=(0,i.useMemo)((function(){return t.map((function(n,e){return{id:e,label:(0,l.EI)(n)}}))}),[t]),y=(0,i.useCallback)((function(){b({index:null,node:{name:"",labels:[],properties:{"if-layers":{parsed:[]},"then-layer":{parsed:null}}}})}),[b]),m=(0,i.useCallback)((function(n){var t=o()(e[n]);delete t.index,t.name="",t.labels=[],b({index:null,node:t})}),[e,b]),v=(0,i.useCallback)((function(){return b(null)}),[b]),g=(0,i.useCallback)((function(n){b({index:n,node:e[n]})}),[e,b]),C=(0,i.useCallback)((function(e){var t=f.index;v(),n(null===t?(0,z.Zp)({node:e}):(0,z.YA)({index:t,node:e}))}),[f,v,n]),E=(0,i.useCallback)((function(e){return n((0,z.h8)({index:e}))}),[n]);return(0,Z.jsxs)("div",{className:R.panel,children:[(0,Z.jsxs)("h3",{children:[(0,Z.jsx)("span",{children:"Show conditional layers activating:"})," ",(0,Z.jsx)("span",{style:{fontSize:"initial",fontWeight:"normal"},children:(0,Z.jsx)(p.Z,{placeholder:"Any layer",isClearable:!0,options:h,value:u,onChange:A,onClear:function(){return A(null)},getOptionValue:function(n){return n.id}})})]}),(0,Z.jsxs)("table",{className:R.listing,children:[(0,Z.jsx)("thead",{children:(0,Z.jsxs)("tr",{children:[(0,Z.jsx)("th",{children:"Condition"}),(0,Z.jsx)("th",{children:"Target"}),(0,Z.jsx)("th",{children:"Layers"}),(0,Z.jsx)("th",{children:"Actions"})]})}),(0,Z.jsx)("tbody",{children:e.map((function(e,r){var o,i,a,c;return(null===u||u.id===(null===(o=e.properties)||void 0===o||null===(i=o["then-layer"])||void 0===i?void 0:i.parsed))&&(0,Z.jsxs)("tr",{children:[(0,Z.jsx)("td",{children:(0,Z.jsx)("code",{children:(0,Z.jsx)(q.Z,{value:e.name,validate:s.Gk,onUpdate:function(t){n((0,z.YA)({index:r,node:U(U({},e),{},{name:t})}))}})})}),(0,Z.jsx)("td",{children:(0,Z.jsx)("span",{className:R.layerChip,children:(0,l.EI)(t[null===(a=e.properties["then-layer"])||void 0===a?void 0:a.parsed])})}),(0,Z.jsx)("td",{children:((null===(c=e.properties["if-layers"])||void 0===c?void 0:c.parsed)||[]).map((function(n,e){return(0,Z.jsx)("span",{className:R.layerChip,children:(0,l.EI)(t[n])},e)}))}),(0,Z.jsxs)("td",{className:R.rowActions,children:[(0,Z.jsx)(_.Z,{name:"wrench",title:'Edit properties of conditional layer "'.concat(e.name,'"'),className:R.action,onClick:function(){return g(r)}}),(0,Z.jsx)(_.Z,{name:"copy",title:'Create new conditional layer from "'.concat(e.name,'"'),className:R.action,onClick:function(){return m(r)}}),(0,Z.jsx)(_.Z,{name:"trash-can",title:'Delete conditional layer "'.concat(e.name,'"'),className:R.action,onClick:function(){return E(r)}})]})]},r)}))})]}),(0,Z.jsx)("div",{style:{textAlign:"center",marginTop:"10px"},children:(0,Z.jsx)(c.Z,{onClick:y,children:"Add conditional layer"})}),f&&(0,Z.jsx)(I,{onSubmit:C,onCancel:v,node:f.node})]})}},56803:function(n,e,t){function r(n){return function(e){e.stopPropagation(),n()}}function o(n){return function(e){n[e.key]&&n[e.key]()}}t.d(e,{s:function(){return r},w:function(){return o}})},56281:function(n,e,t){var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,"button.pi2Ig8c3Fdh4H2Jpxdo7 {\n  display: inline-block;\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  color: white;\n\n  font-size: 16px;\n  border: none;\n  border-radius: 5px;\n  padding: 0 5px;\n\n  height: 30px;\n  line-height: 30px;\n  vertical-align: middle;\n}\n\nbutton.Ctpu4E2dZYJ6g8CUGFOF {\n  color: var(--fg);\n  background-color: transparent;\n}\n\nbutton.pi2Ig8c3Fdh4H2Jpxdo7[disabled] {\n  filter: saturate(20%);\n  opacity: .5;\n  cursor: not-allowed;\n}\n","",{version:3,sources:["webpack://./src/Common/action-button.module.css"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,eAAe;EACf,wCAAwC;EACxC,YAAY;;EAEZ,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,cAAc;;EAEd,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;EAChB,6BAA6B;AAC/B;;AAEA;EACE,qBAAqB;EACrB,WAAW;EACX,mBAAmB;AACrB",sourcesContent:["button.action {\n  display: inline-block;\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  color: white;\n\n  font-size: 16px;\n  border: none;\n  border-radius: 5px;\n  padding: 0 5px;\n\n  height: 30px;\n  line-height: 30px;\n  vertical-align: middle;\n}\n\nbutton.secondary {\n  color: var(--fg);\n  background-color: transparent;\n}\n\nbutton.action[disabled] {\n  filter: saturate(20%);\n  opacity: .5;\n  cursor: not-allowed;\n}\n"],sourceRoot:""}]),a.locals={action:"pi2Ig8c3Fdh4H2Jpxdo7",secondary:"Ctpu4E2dZYJ6g8CUGFOF"},e.Z=a},86015:function(n,e,t){var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,'.ho3CuFFjX1VFNZJiAyVs {\n  position: relative;\n}\n.ho3CuFFjX1VFNZJiAyVs input {\n  font: inherit;\n  padding: inherit;\n  margin: inherit;\n  width: min-content;\n  box-sizing: border-box;\n}\n\n.ho3CuFFjX1VFNZJiAyVs[data-show-edit-on-hover="true"]:not(:hover) .u9J3v5ZrIbuVICzNBkRw {\n  display: none;\n}\n.ho3CuFFjX1VFNZJiAyVs[data-show-edit-on-hover="true"] .u9J3v5ZrIbuVICzNBkRw {\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n  z-index: 10;\n}\n\n.cZAt44R3Yp0URA5heDw5 {\n  padding: 5px;\n  cursor: pointer;\n}\n\n.ho3CuFFjX1VFNZJiAyVs[data-show-edit-on-hover="true"] .cZAt44R3Yp0URA5heDw5 {\n  background-color: rgba(var(--dialog-bg-rgb), 0.2);\n  backdrop-filter: blur(2.5px);\n  border-radius: 4px;\n  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\n}\n.cZAt44R3Yp0URA5heDw5[disabled] {\n  opacity: 0.5;\n  cursor: not-allowed;\n}\n\n.u9J3v5ZrIbuVICzNBkRw {\n  opacity: 0.6;\n  color: var(--key-color-base);\n}\n.u9J3v5ZrIbuVICzNBkRw:hover {\n  opacity: 1 !important;\n}\n\n.wmqWaOx7XyKADh7Kv4RZ {\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.wmqWaOx7XyKADh7Kv4RZ::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/editablefield.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,sBAAsB;AACxB;;AAEA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,2BAA2B;EAC3B,WAAW;AACb;;AAEA;EACE,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,iDAAiD;EACjD,4BAA4B;EAC5B,kBAAkB;EAClB,2CAA2C;AAC7C;AACA;EACE,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,YAAY;EACZ,4BAA4B;AAC9B;AACA;EACE,qBAAqB;AACvB;;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:['.container {\n  position: relative;\n}\n.container input {\n  font: inherit;\n  padding: inherit;\n  margin: inherit;\n  width: min-content;\n  box-sizing: border-box;\n}\n\n.container[data-show-edit-on-hover="true"]:not(:hover) .edit {\n  display: none;\n}\n.container[data-show-edit-on-hover="true"] .edit {\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n  z-index: 10;\n}\n\n.buttonIcon {\n  padding: 5px;\n  cursor: pointer;\n}\n\n.container[data-show-edit-on-hover="true"] .buttonIcon {\n  background-color: rgba(var(--dialog-bg-rgb), 0.2);\n  backdrop-filter: blur(2.5px);\n  border-radius: 4px;\n  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\n}\n.buttonIcon[disabled] {\n  opacity: 0.5;\n  cursor: not-allowed;\n}\n\n.edit {\n  opacity: 0.6;\n  color: var(--key-color-base);\n}\n.edit:hover {\n  opacity: 1 !important;\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={container:"ho3CuFFjX1VFNZJiAyVs",edit:"u9J3v5ZrIbuVICzNBkRw",buttonIcon:"cZAt44R3Yp0URA5heDw5",error:"wmqWaOx7XyKADh7Kv4RZ"},e.Z=a},33988:function(n,e,t){var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.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"},e.Z=a},90291:function(n,e,t){var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,".TlnfhvkysgFTLghB98FR {\n  max-width: 700px;\n  margin: 0 auto;\n  padding-bottom: 60px;\n}\n\ntable.elDLpJAjA560N0q32OWn {\n  width: 100%;\n  border-spacing: 0;\n  margin-bottom: 10px;\n}\n\n.elDLpJAjA560N0q32OWn th, .elDLpJAjA560N0q32OWn td {\n  text-align: left;\n  padding: 10px;\n}\n\n.elDLpJAjA560N0q32OWn table tbody tr td {\n  margin: 0;\n}\n.elDLpJAjA560N0q32OWn table tbody tr:nth-child(even) {\n  background-color: var(--key-bg-base);\n}\n\n\ntd.hl13u6ZNhu2TZvUn_SPm .D9RiPzPM0GTKolXHyMUo {\n  padding: 5px;\n  opacity: 0.6;\n}\ntd.hl13u6ZNhu2TZvUn_SPm .D9RiPzPM0GTKolXHyMUo:hover {\n  cursor: pointer;\n  opacity: 1;\n}\n\n.O_mQIKvy4g7dWAvw5vJ7 {\n  font-size: 90%;\n  margin: 2px;\n  padding: 5px;\n  border-radius: 3px;\n  background-color: var(--key-bg-base);\n}\n","",{version:3,sources:["webpack://./src/Keyboard/ConditionalLayers/node-collection-listing.module.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,cAAc;EACd,oBAAoB;AACtB;;AAEA;EACE,WAAW;EACX,iBAAiB;EACjB,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,aAAa;AACf;;AAEA;EACE,SAAS;AACX;AACA;EACE,oCAAoC;AACtC;;;AAGA;EACE,YAAY;EACZ,YAAY;AACd;AACA;EACE,eAAe;EACf,UAAU;AACZ;;AAEA;EACE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,oCAAoC;AACtC",sourcesContent:[".panel {\n  max-width: 700px;\n  margin: 0 auto;\n  padding-bottom: 60px;\n}\n\ntable.listing {\n  width: 100%;\n  border-spacing: 0;\n  margin-bottom: 10px;\n}\n\n.listing th, .listing td {\n  text-align: left;\n  padding: 10px;\n}\n\n.listing table tbody tr td {\n  margin: 0;\n}\n.listing table tbody tr:nth-child(even) {\n  background-color: var(--key-bg-base);\n}\n\n\ntd.rowActions .action {\n  padding: 5px;\n  opacity: 0.6;\n}\ntd.rowActions .action:hover {\n  cursor: pointer;\n  opacity: 1;\n}\n\n.layerChip {\n  font-size: 90%;\n  margin: 2px;\n  padding: 5px;\n  border-radius: 3px;\n  background-color: var(--key-bg-base);\n}\n"],sourceRoot:""}]),a.locals={panel:"TlnfhvkysgFTLghB98FR",listing:"elDLpJAjA560N0q32OWn",rowActions:"hl13u6ZNhu2TZvUn_SPm",action:"D9RiPzPM0GTKolXHyMUo",layerChip:"O_mQIKvy4g7dWAvw5vJ7"},e.Z=a},55235:function(n,e,t){var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([n.id,".H2Q5hPoGwBMYLveiskOr {\n  display: flex;\n  align-items: center;\n  margin: 10px 0;\n}\n\n.H2Q5hPoGwBMYLveiskOr > label {\n  display: inline-block;\n  text-align: right;\n  width: 220px;\n  margin-right: 10px;\n}\n\n.H2Q5hPoGwBMYLveiskOr > label + * {\n  flex-shrink: 100;\n}","",{version:3,sources:["webpack://./src/Keyboard/ConditionalLayers/node-edit-form.module.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,mBAAmB;EACnB,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".field {\n  display: flex;\n  align-items: center;\n  margin: 10px 0;\n}\n\n.field > label {\n  display: inline-block;\n  text-align: right;\n  width: 220px;\n  margin-right: 10px;\n}\n\n.field > label + * {\n  flex-shrink: 100;\n}"],sourceRoot:""}]),a.locals={field:"H2Q5hPoGwBMYLveiskOr"},e.Z=a}}]);
//# sourceMappingURL=ConditionalLayerEditorTab.6410a97ffdb1b68ee5b0.js.map