/*! For license information please see workflowengine-workflowengine.js.LICENSE.txt */ !function(){var M,z,b,p={42394:function(M,z,b){"use strict";var p=b(20144),O=b(20629),A=b(93664),c=b(43554),o=b(79753),q=0===(0,c.j)("workflowengine","scope")?"global":"user",W=function(M){return(0,o.generateOcsUrl)("apps/workflowengine/api/v1/workflows/{scopeValue}",{scopeValue:q})+M+"?format=json"},n=b(7820);function e(M){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(M)}function d(){d=function(){return M};var M={},z=Object.prototype,b=z.hasOwnProperty,p=Object.defineProperty||function(M,z,b){M[z]=b.value},O="function"==typeof Symbol?Symbol:{},A=O.iterator||"@@iterator",c=O.asyncIterator||"@@asyncIterator",o=O.toStringTag||"@@toStringTag";function q(M,z,b){return Object.defineProperty(M,z,{value:b,enumerable:!0,configurable:!0,writable:!0}),M[z]}try{q({},"")}catch(M){q=function(M,z,b){return M[z]=b}}function W(M,z,b,O){var A=z&&z.prototype instanceof a?z:a,c=Object.create(A.prototype),o=new h(O||[]);return p(c,"_invoke",{value:B(M,b,o)}),c}function n(M,z,b){try{return{type:"normal",arg:M.call(z,b)}}catch(M){return{type:"throw",arg:M}}}M.wrap=W;var t={};function a(){}function i(){}function r(){}var R={};q(R,A,(function(){return this}));var f=Object.getPrototypeOf,u=f&&f(f(g([])));u&&u!==z&&b.call(u,A)&&(R=u);var L=r.prototype=a.prototype=Object.create(R);function s(M){["next","throw","return"].forEach((function(z){q(M,z,(function(M){return this._invoke(z,M)}))}))}function l(M,z){function O(p,A,c,o){var q=n(M[p],M,A);if("throw"!==q.type){var W=q.arg,t=W.value;return t&&"object"==e(t)&&b.call(t,"__await")?z.resolve(t.__await).then((function(M){O("next",M,c,o)}),(function(M){O("throw",M,c,o)})):z.resolve(t).then((function(M){W.value=M,c(W)}),(function(M){return O("throw",M,c,o)}))}o(q.arg)}var A;p(this,"_invoke",{value:function(M,b){function p(){return new z((function(z,p){O(M,b,z,p)}))}return A=A?A.then(p,p):p()}})}function B(M,z,b){var p="suspendedStart";return function(O,A){if("executing"===p)throw new Error("Generator is already running");if("completed"===p){if("throw"===O)throw A;return{value:void 0,done:!0}}for(b.method=O,b.arg=A;;){var c=b.delegate;if(c){var o=N(c,b);if(o){if(o===t)continue;return o}}if("next"===b.method)b.sent=b._sent=b.arg;else if("throw"===b.method){if("suspendedStart"===p)throw p="completed",b.arg;b.dispatchException(b.arg)}else"return"===b.method&&b.abrupt("return",b.arg);p="executing";var q=n(M,z,b);if("normal"===q.type){if(p=b.done?"completed":"suspendedYield",q.arg===t)continue;return{value:q.arg,done:b.done}}"throw"===q.type&&(p="completed",b.method="throw",b.arg=q.arg)}}}function N(M,z){var b=z.method,p=M.iterator[b];if(void 0===p)return z.delegate=null,"throw"===b&&M.iterator.return&&(z.method="return",z.arg=void 0,N(M,z),"throw"===z.method)||"return"!==b&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+b+"' method")),t;var O=n(p,M.iterator,z.arg);if("throw"===O.type)return z.method="throw",z.arg=O.arg,z.delegate=null,t;var A=O.arg;return A?A.done?(z[M.resultName]=A.value,z.next=M.nextLoc,"return"!==z.method&&(z.method="next",z.arg=void 0),z.delegate=null,t):A:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,t)}function X(M){var z={tryLoc:M[0]};1 in M&&(z.catchLoc=M[1]),2 in M&&(z.finallyLoc=M[2],z.afterLoc=M[3]),this.tryEntries.push(z)}function m(M){var z=M.completion||{};z.type="normal",delete z.arg,M.completion=z}function h(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(X,this),this.reset(!0)}function g(M){if(M){var z=M[A];if(z)return z.call(M);if("function"==typeof M.next)return M;if(!isNaN(M.length)){var p=-1,O=function z(){for(;++p=0;--O){var A=this.tryEntries[O],c=A.completion;if("root"===A.tryLoc)return p("end");if(A.tryLoc<=this.prev){var o=b.call(A,"catchLoc"),q=b.call(A,"finallyLoc");if(o&&q){if(this.prev=0;--p){var O=this.tryEntries[p];if(O.tryLoc<=this.prev&&b.call(O,"finallyLoc")&&this.prev=0;--z){var b=this.tryEntries[z];if(b.finallyLoc===M)return this.complete(b.completion,b.afterLoc),m(b),t}},catch:function(M){for(var z=this.tryEntries.length-1;z>=0;--z){var b=this.tryEntries[z];if(b.tryLoc===M){var p=b.completion;if("throw"===p.type){var O=p.arg;m(b)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(M,z,b){return this.delegate={iterator:g(M),resultName:z,nextLoc:b},"next"===this.method&&(this.arg=void 0),t}},M}function a(M,z,b,p,O,A,c){try{var o=M[A](c),q=o.value}catch(M){return void b(M)}o.done?z(q):Promise.resolve(q).then(p,O)}function i(M){return function(){var z=this,b=arguments;return new Promise((function(p,O){var A=M.apply(z,b);function c(M){a(A,p,O,c,o,"next",M)}function o(M){a(A,p,O,c,o,"throw",M)}c(void 0)}))}}function r(M,z){var b=Object.keys(M);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(M);z&&(p=p.filter((function(z){return Object.getOwnPropertyDescriptor(M,z).enumerable}))),b.push.apply(b,p)}return b}function R(M){for(var z=1;z-1||0===M.supportedEntities.length})).map((function(z){return M.plugins.checks[z.id]})).reduce((function(M,z){return M[z.class]=z,M}),{})}}}}),L=b(79845),s=b(51103),l=b(63357),B=b(57274),N=b(39429),X=b(80419),m=b(82675),h=b(99114),g=b(64024),C={name:"Event",components:{NcSelect:h.Z},props:{rule:{type:Object,required:!0}},computed:{entity:function(){return this.$store.getters.getEntityForOperation(this.operation)},operation:function(){return this.$store.getters.getOperationForRule(this.rule)},allEvents:function(){return this.$store.getters.getEventsForOperation(this.operation)},currentEvent:function(){var M=this;return this.allEvents.filter((function(z){return z.entity.id===M.rule.entity&&-1!==M.rule.events.indexOf(z.eventName)}))},placeholderString:function(){return t("workflowengine","Select a trigger")}},methods:{updateEvent:function(M){if(0!==M.length){var z,b=this.rule.entity,p=M.map((function(M){return M.entity.id})).filter((function(M,z,b){return b.indexOf(M)===z}));z=p.length>1?p.filter((function(M){return M!==b}))[0]:p[0],this.$set(this.rule,"entity",z),this.$set(this.rule,"events",M.filter((function(M){return M.entity.id===z})).map((function(M){return M.eventName}))),this.$emit("update",this.rule)}else(0,g.K2)(t("workflowengine","At least one event must be selected"))}}},T=b(93379),v=b.n(T),w=b(7795),y=b.n(w),E=b(90569),S=b.n(E),k=b(3565),x=b.n(k),_=b(19216),P=b.n(_),D=b(44589),j=b.n(D),I=b(56830),U={};U.styleTagTransform=j(),U.setAttributes=x(),U.insert=S().bind(null,"head"),U.domAPI=y(),U.insertStyleElement=P(),v()(I.Z,U),I.Z&&I.Z.locals&&I.Z.locals;var G=b(51900),F=(0,G.Z)(C,(function(){var M=this,z=M._self._c;return z("div",{staticClass:"event"},[M.operation.isComplex&&""!==M.operation.fixedEntity?z("div",{staticClass:"isComplex"},[z("img",{staticClass:"option__icon",attrs:{src:M.entity.icon,alt:""}}),M._v(" "),z("span",{staticClass:"option__title option__title_single"},[M._v(M._s(M.operation.triggerHint))])]):z("NcSelect",{staticClass:"event__trigger",attrs:{disabled:M.allEvents.length<=1,multiple:!0,options:M.allEvents,value:M.currentEvent,placeholder:M.placeholderString,label:"displayName"},on:{input:M.updateEvent},scopedSlots:M._u([{key:"option",fn:function(b){return[z("img",{staticClass:"option__icon",attrs:{src:b.entity.icon,alt:""}}),M._v(" "),z("span",{staticClass:"option__title"},[M._v(M._s(b.displayName))])]}},{key:"selected-option",fn:function(b){return[z("img",{staticClass:"option__icon",attrs:{src:b.entity.icon,alt:""}}),M._v(" "),z("span",{staticClass:"option__title"},[M._v(M._s(b.displayName))])]}}])})],1)}),[],!1,null,"d4892b64",null).exports,H=b(2649),V=b.n(H),K={name:"Check",components:{NcActionButton:l.Z,NcActions:s.Z,NcSelect:h.Z,CloseIcon:m.default},directives:{ClickOutside:V()},props:{check:{type:Object,required:!0},rule:{type:Object,required:!0}},data:function(){return{deleteVisible:!1,currentOption:null,currentOperator:null,options:[],valid:!1}},computed:{checks:function(){return this.$store.getters.getChecksForEntity(this.rule.entity)},operators:function(){if(!this.currentOption)return[];var M=this.checks[this.currentOption.class].operators;return"function"==typeof M?M(this.check):M},currentComponent:function(){return this.currentOption?this.checks[this.currentOption.class].component:[]},valuePlaceholder:function(){return this.currentOption&&this.currentOption.placeholder?this.currentOption.placeholder(this.check):""}},watch:{"check.operator":function(){this.validate()}},mounted:function(){var M=this;this.options=Object.values(this.checks),this.currentOption=this.checks[this.check.class],this.currentOperator=this.operators.find((function(z){return z.operator===M.check.operator})),null===this.check.class&&this.$nextTick((function(){return M.$refs.checkSelector.$el.focus()})),this.validate()},methods:{showDelete:function(){this.deleteVisible=!0},hideDelete:function(){this.deleteVisible=!1},validate:function(){this.valid=!0,this.currentOption&&this.currentOption.validate&&(this.valid=!!this.currentOption.validate(this.check)),this.check.invalid=!this.valid,this.$emit("validate",this.valid)},updateCheck:function(){var M=this,z=this.operators.findIndex((function(z){return M.check.operator===z.operator}));this.check.class===this.currentOption.class&&-1!==z||(this.currentOperator=this.operators[0]),this.check.class=this.currentOption.class,this.check.operator=this.currentOperator.operator,this.validate(),this.$emit("update",this.check)}}},Q=b(52802),Z={};Z.styleTagTransform=j(),Z.setAttributes=x(),Z.insert=S().bind(null,"head"),Z.domAPI=y(),Z.insertStyleElement=P(),v()(Q.Z,Z),Q.Z&&Q.Z.locals&&Q.Z.locals;var J=(0,G.Z)(K,(function(){var M=this,z=M._self._c;return z("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:M.hideDelete,expression:"hideDelete"}],staticClass:"check",on:{click:M.showDelete}},[z("NcSelect",{ref:"checkSelector",attrs:{options:M.options,label:"name",clearable:!1,placeholder:M.t("workflowengine","Select a filter")},on:{input:M.updateCheck},model:{value:M.currentOption,callback:function(z){M.currentOption=z},expression:"currentOption"}}),M._v(" "),z("NcSelect",{staticClass:"comparator",attrs:{disabled:!M.currentOption,options:M.operators,label:"name",clearable:!1,placeholder:M.t("workflowengine","Select a comparator")},on:{input:M.updateCheck},model:{value:M.currentOperator,callback:function(z){M.currentOperator=z},expression:"currentOperator"}}),M._v(" "),M.currentOperator&&M.currentComponent?z(M.currentOption.component,{tag:"component",staticClass:"option",attrs:{disabled:!M.currentOption,check:M.check},on:{input:M.updateCheck,valid:function(z){(M.valid=!0)&&M.validate()},invalid:function(z){!(M.valid=!1)&&M.validate()}},model:{value:M.check.value,callback:function(z){M.$set(M.check,"value",z)},expression:"check.value"}}):z("input",{directives:[{name:"model",rawName:"v-model",value:M.check.value,expression:"check.value"}],staticClass:"option",class:{invalid:!M.valid},attrs:{type:"text",disabled:!M.currentOption,placeholder:M.valuePlaceholder},domProps:{value:M.check.value},on:{input:[function(z){z.target.composing||M.$set(M.check,"value",z.target.value)},M.updateCheck]}}),M._v(" "),M.deleteVisible||!M.currentOption?z("NcActions",[z("NcActionButton",{attrs:{title:M.t("workflowengine","Remove filter")},on:{click:function(z){return M.$emit("remove")}},scopedSlots:M._u([{key:"icon",fn:function(){return[z("CloseIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2428343285)})],1):M._e()],1)}),[],!1,null,"07a2739b",null).exports,Y={name:"Operation",components:{NcButton:B.Z},props:{operation:{type:Object,required:!0},colored:{type:Boolean,default:!0}}},$=b(67767),MM={};MM.styleTagTransform=j(),MM.setAttributes=x(),MM.insert=S().bind(null,"head"),MM.domAPI=y(),MM.insertStyleElement=P(),v()($.Z,MM),$.Z&&$.Z.locals&&$.Z.locals;var zM=(0,G.Z)(Y,(function(){var M=this,z=M._self._c;return z("div",{staticClass:"actions__item",class:{colored:M.colored},style:{backgroundColor:M.colored?M.operation.color:"transparent"}},[z("div",{staticClass:"icon",class:M.operation.iconClass,style:{backgroundImage:M.operation.iconClass?"":"url(".concat(M.operation.icon,")")}}),M._v(" "),z("div",{staticClass:"actions__item__description"},[z("h3",[M._v(M._s(M.operation.name))]),M._v(" "),z("small",[M._v(M._s(M.operation.description))]),M._v(" "),M.colored?z("NcButton",[M._v("\n\t\t\t"+M._s(M.t("workflowengine","Add new flow"))+"\n\t\t")]):M._e()],1),M._v(" "),z("div",{staticClass:"actions__item_options"},[M._t("default")],2)])}),[],!1,null,"a0480332",null).exports,bM=b(25108);function pM(M){return pM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},pM(M)}function OM(){OM=function(){return M};var M={},z=Object.prototype,b=z.hasOwnProperty,p=Object.defineProperty||function(M,z,b){M[z]=b.value},O="function"==typeof Symbol?Symbol:{},A=O.iterator||"@@iterator",c=O.asyncIterator||"@@asyncIterator",o=O.toStringTag||"@@toStringTag";function q(M,z,b){return Object.defineProperty(M,z,{value:b,enumerable:!0,configurable:!0,writable:!0}),M[z]}try{q({},"")}catch(M){q=function(M,z,b){return M[z]=b}}function W(M,z,b,O){var A=z&&z.prototype instanceof e?z:e,c=Object.create(A.prototype),o=new X(O||[]);return p(c,"_invoke",{value:s(M,b,o)}),c}function n(M,z,b){try{return{type:"normal",arg:M.call(z,b)}}catch(M){return{type:"throw",arg:M}}}M.wrap=W;var t={};function e(){}function d(){}function a(){}var i={};q(i,A,(function(){return this}));var r=Object.getPrototypeOf,R=r&&r(r(m([])));R&&R!==z&&b.call(R,A)&&(i=R);var f=a.prototype=e.prototype=Object.create(i);function u(M){["next","throw","return"].forEach((function(z){q(M,z,(function(M){return this._invoke(z,M)}))}))}function L(M,z){function O(p,A,c,o){var q=n(M[p],M,A);if("throw"!==q.type){var W=q.arg,t=W.value;return t&&"object"==pM(t)&&b.call(t,"__await")?z.resolve(t.__await).then((function(M){O("next",M,c,o)}),(function(M){O("throw",M,c,o)})):z.resolve(t).then((function(M){W.value=M,c(W)}),(function(M){return O("throw",M,c,o)}))}o(q.arg)}var A;p(this,"_invoke",{value:function(M,b){function p(){return new z((function(z,p){O(M,b,z,p)}))}return A=A?A.then(p,p):p()}})}function s(M,z,b){var p="suspendedStart";return function(O,A){if("executing"===p)throw new Error("Generator is already running");if("completed"===p){if("throw"===O)throw A;return{value:void 0,done:!0}}for(b.method=O,b.arg=A;;){var c=b.delegate;if(c){var o=l(c,b);if(o){if(o===t)continue;return o}}if("next"===b.method)b.sent=b._sent=b.arg;else if("throw"===b.method){if("suspendedStart"===p)throw p="completed",b.arg;b.dispatchException(b.arg)}else"return"===b.method&&b.abrupt("return",b.arg);p="executing";var q=n(M,z,b);if("normal"===q.type){if(p=b.done?"completed":"suspendedYield",q.arg===t)continue;return{value:q.arg,done:b.done}}"throw"===q.type&&(p="completed",b.method="throw",b.arg=q.arg)}}}function l(M,z){var b=z.method,p=M.iterator[b];if(void 0===p)return z.delegate=null,"throw"===b&&M.iterator.return&&(z.method="return",z.arg=void 0,l(M,z),"throw"===z.method)||"return"!==b&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+b+"' method")),t;var O=n(p,M.iterator,z.arg);if("throw"===O.type)return z.method="throw",z.arg=O.arg,z.delegate=null,t;var A=O.arg;return A?A.done?(z[M.resultName]=A.value,z.next=M.nextLoc,"return"!==z.method&&(z.method="next",z.arg=void 0),z.delegate=null,t):A:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,t)}function B(M){var z={tryLoc:M[0]};1 in M&&(z.catchLoc=M[1]),2 in M&&(z.finallyLoc=M[2],z.afterLoc=M[3]),this.tryEntries.push(z)}function N(M){var z=M.completion||{};z.type="normal",delete z.arg,M.completion=z}function X(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(B,this),this.reset(!0)}function m(M){if(M){var z=M[A];if(z)return z.call(M);if("function"==typeof M.next)return M;if(!isNaN(M.length)){var p=-1,O=function z(){for(;++p=0;--O){var A=this.tryEntries[O],c=A.completion;if("root"===A.tryLoc)return p("end");if(A.tryLoc<=this.prev){var o=b.call(A,"catchLoc"),q=b.call(A,"finallyLoc");if(o&&q){if(this.prev=0;--p){var O=this.tryEntries[p];if(O.tryLoc<=this.prev&&b.call(O,"finallyLoc")&&this.prev=0;--z){var b=this.tryEntries[z];if(b.finallyLoc===M)return this.complete(b.completion,b.afterLoc),N(b),t}},catch:function(M){for(var z=this.tryEntries.length-1;z>=0;--z){var b=this.tryEntries[z];if(b.tryLoc===M){var p=b.completion;if("throw"===p.type){var O=p.arg;N(b)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(M,z,b){return this.delegate={iterator:m(M),resultName:z,nextLoc:b},"next"===this.method&&(this.arg=void 0),t}},M}function AM(M,z,b,p,O,A,c){try{var o=M[A](c),q=o.value}catch(M){return void b(M)}o.done?z(q):Promise.resolve(q).then(p,O)}function cM(M){return function(){var z=this,b=arguments;return new Promise((function(p,O){var A=M.apply(z,b);function c(M){AM(A,p,O,c,o,"next",M)}function o(M){AM(A,p,O,c,o,"throw",M)}c(void 0)}))}}var oM={name:"Rule",components:{ArrowRight:N.default,Check:J,CheckMark:X.default,Close:m.default,Event:F,NcActionButton:l.Z,NcActions:s.Z,NcButton:B.Z,Operation:zM},directives:{Tooltip:L.Z},props:{rule:{type:Object,required:!0}},data:function(){return{editing:!1,checks:[],error:null,dirty:this.rule.id<0,originalRule:null}},computed:{operation:function(){return this.$store.getters.getOperationForRule(this.rule)},ruleStatus:function(){return this.error||!this.rule.valid||0===this.rule.checks.length||this.rule.checks.some((function(M){return!0===M.invalid}))?{title:t("workflowengine","The configuration is invalid"),icon:"Close",type:"warning",tooltip:{placement:"bottom",show:!0,content:this.error}}:this.dirty?{title:t("workflowengine","Save"),icon:"ArrowRight",type:"primary"}:{title:t("workflowengine","Active"),icon:"CheckMark",type:"success"}},lastCheckComplete:function(){var M=this.rule.checks[this.rule.checks.length-1];return void 0===M||null!==M.class}},mounted:function(){this.originalRule=JSON.parse(JSON.stringify(this.rule))},methods:{updateOperation:function(M){var z=this;return cM(OM().mark((function b(){return OM().wrap((function(b){for(;;)switch(b.prev=b.next){case 0:return z.$set(z.rule,"operation",M),b.next=3,z.updateRule();case 3:case"end":return b.stop()}}),b)})))()},validate:function(M){this.error=null,this.$store.dispatch("updateRule",this.rule)},updateRule:function(){this.dirty||(this.dirty=!0),this.error=null,this.$store.dispatch("updateRule",this.rule)},saveRule:function(){var M=this;return cM(OM().mark((function z(){return OM().wrap((function(z){for(;;)switch(z.prev=z.next){case 0:return z.prev=0,z.next=3,M.$store.dispatch("pushUpdateRule",M.rule);case 3:M.dirty=!1,M.error=null,M.originalRule=JSON.parse(JSON.stringify(M.rule)),z.next=12;break;case 8:z.prev=8,z.t0=z.catch(0),bM.error("Failed to save operation"),M.error=z.t0.response.data.ocs.meta.message;case 12:case"end":return z.stop()}}),z,null,[[0,8]])})))()},deleteRule:function(){var M=this;return cM(OM().mark((function z(){return OM().wrap((function(z){for(;;)switch(z.prev=z.next){case 0:return z.prev=0,z.next=3,M.$store.dispatch("deleteRule",M.rule);case 3:z.next=9;break;case 5:z.prev=5,z.t0=z.catch(0),bM.error("Failed to delete operation"),M.error=z.t0.response.data.ocs.meta.message;case 9:case"end":return z.stop()}}),z,null,[[0,5]])})))()},cancelRule:function(){this.rule.id<0?this.$store.dispatch("removeRule",this.rule):(this.$store.dispatch("updateRule",this.originalRule),this.originalRule=JSON.parse(JSON.stringify(this.rule)),this.dirty=!1)},removeCheck:function(M){var z=this;return cM(OM().mark((function b(){var p;return OM().wrap((function(b){for(;;)switch(b.prev=b.next){case 0:(p=z.rule.checks.findIndex((function(z){return z===M})))>-1&&z.$delete(z.rule.checks,p),z.$store.dispatch("updateRule",z.rule);case 3:case"end":return b.stop()}}),b)})))()},onAddFilter:function(){this.rule.checks.push({class:null,operator:null,value:""})}}},qM=b(91372),WM={};WM.styleTagTransform=j(),WM.setAttributes=x(),WM.insert=S().bind(null,"head"),WM.domAPI=y(),WM.insertStyleElement=P(),v()(qM.Z,WM),qM.Z&&qM.Z.locals&&qM.Z.locals;var nM=(0,G.Z)(oM,(function(){var M=this,z=M._self._c;return M.operation?z("div",{staticClass:"section rule",style:{borderLeftColor:M.operation.color||""}},[z("div",{staticClass:"trigger"},[z("p",[z("span",[M._v(M._s(M.t("workflowengine","When")))]),M._v(" "),z("Event",{attrs:{rule:M.rule},on:{update:M.updateRule}})],1),M._v(" "),M._l(M.rule.checks,(function(b,p){return z("p",{key:p},[z("span",[M._v(M._s(M.t("workflowengine","and")))]),M._v(" "),z("Check",{attrs:{check:b,rule:M.rule},on:{update:M.updateRule,validate:M.validate,remove:function(z){return M.removeCheck(b)}}})],1)})),M._v(" "),z("p",[z("span"),M._v(" "),M.lastCheckComplete?z("input",{staticClass:"check--add",attrs:{type:"button",value:M.t("workflowengine","Add a new filter")},on:{click:M.onAddFilter}}):M._e()])],2),M._v(" "),z("div",{staticClass:"flow-icon icon-confirm"}),M._v(" "),z("div",{staticClass:"action"},[z("Operation",{attrs:{operation:M.operation,colored:!1}},[M.operation.options?z(M.operation.options,{tag:"component",on:{input:M.updateOperation},model:{value:M.rule.operation,callback:function(z){M.$set(M.rule,"operation",z)},expression:"rule.operation"}}):M._e()],1),M._v(" "),z("div",{staticClass:"buttons"},[M.rule.id<-1||M.dirty?z("NcButton",{on:{click:M.cancelRule}},[M._v("\n\t\t\t\t"+M._s(M.t("workflowengine","Cancel"))+"\n\t\t\t")]):M.dirty?M._e():z("NcButton",{on:{click:M.deleteRule}},[M._v("\n\t\t\t\t"+M._s(M.t("workflowengine","Delete"))+"\n\t\t\t")]),M._v(" "),z("NcButton",{attrs:{type:M.ruleStatus.type},on:{click:M.saveRule},scopedSlots:M._u([{key:"icon",fn:function(){return[z(M.ruleStatus.icon,{tag:"component",attrs:{size:20}})]},proxy:!0}],null,!1,2383918876)},[M._v("\n\t\t\t\t"+M._s(M.ruleStatus.title)+"\n\t\t\t")])],1),M._v(" "),M.error?z("p",{staticClass:"error-message"},[M._v("\n\t\t\t"+M._s(M.error)+"\n\t\t")]):M._e()],1)]):M._e()}),[],!1,null,"3def8966",null).exports,tM=b(22175),eM=b(64865),dM=b(67912),aM={name:"MenuUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},iM=(0,G.Z)(aM,(function(){var M=this,z=M._self._c;return z("span",M._b({staticClass:"material-design-icon menu-up-icon",attrs:{"aria-hidden":!M.title,"aria-label":M.title,role:"img"},on:{click:function(z){return M.$emit("click",z)}}},"span",M.$attrs,!1),[z("svg",{staticClass:"material-design-icon__svg",attrs:{fill:M.fillColor,width:M.size,height:M.size,viewBox:"0 0 24 24"}},[z("path",{attrs:{d:"M7,15L12,10L17,15H7Z"}},[M.title?z("title",[M._v(M._s(M.title))]):M._e()])])])}),[],!1,null,null,null).exports;function rM(M){return rM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},rM(M)}function RM(M,z){var b=Object.keys(M);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(M);z&&(p=p.filter((function(z){return Object.getOwnPropertyDescriptor(M,z).enumerable}))),b.push.apply(b,p)}return b}function fM(M){for(var z=1;z\n \n \n\n'}},computed:fM(fM(fM({},(0,O.Se)({rules:"getRules"})),(0,O.rn)({appstoreEnabled:"appstoreEnabled",scope:"scope",operations:"operations"})),{},{hasMoreOperations:function(){return Object.keys(this.operations).length>3},mainOperations:function(){return this.showMoreOperations?Object.values(this.operations):Object.values(this.operations).slice(0,3)},showAppStoreHint:function(){return this.appstoreEnabled&&OC.isUserAdmin()},isUserAdmin:function(){return OC.isUserAdmin()},isAdminScope:function(){return 0===this.scope}}),mounted:function(){this.$store.dispatch("fetchRules")},methods:{createNewRule:function(M){this.$store.dispatch("createNewRule",M)}}},sM=b(4996),lM={};lM.styleTagTransform=j(),lM.setAttributes=x(),lM.insert=S().bind(null,"head"),lM.domAPI=y(),lM.insertStyleElement=P(),v()(sM.Z,lM),sM.Z&&sM.Z.locals&&sM.Z.locals;var BM=(0,G.Z)(LM,(function(){var M=this,z=M._self._c;return z("div",{attrs:{id:"workflowengine"}},[z("NcSettingsSection",{attrs:{name:M.t("workflowengine","Available flows"),"doc-url":M.workflowDocUrl}},[M.isAdminScope?z("p",{staticClass:"settings-hint"},[z("a",{attrs:{href:"https://nextcloud.com/developer/"}},[M._v(M._s(M.t("workflowengine","For details on how to write your own flow, check out the development documentation.")))])]):M._e(),M._v(" "),M.isUserAdmin||0!==M.mainOperations.length?z("transition-group",{staticClass:"actions",attrs:{name:"slide",tag:"div"}},[M._l(M.mainOperations,(function(b){return z("Operation",{key:b.id,attrs:{operation:b},nativeOn:{click:function(z){return M.createNewRule(b)}}})})),M._v(" "),M.showAppStoreHint?z("a",{key:"add",staticClass:"actions__item colored more",attrs:{href:M.appstoreUrl}},[z("div",{staticClass:"icon icon-add"}),M._v(" "),z("div",{staticClass:"actions__item__description"},[z("h3",[M._v(M._s(M.t("workflowengine","More flows")))]),M._v(" "),z("small",[M._v(M._s(M.t("workflowengine","Browse the App Store")))])])]):M._e()],2):z("NcEmptyContent",{attrs:{name:M.t("workflowengine","No flows installed"),description:M.isUserAdmin?void 0:M.t("workflowengine","Ask your administrator to install new flows.")},scopedSlots:M._u([{key:"icon",fn:function(){return[z("NcIconSvgWrapper",{attrs:{svg:M.WorkflowOffSvg,size:20}})]},proxy:!0}],null,!1,233236213)}),M._v(" "),M.hasMoreOperations?z("div",{staticClass:"actions__more"},[z("NcButton",{on:{click:function(z){M.showMoreOperations=!M.showMoreOperations}},scopedSlots:M._u([{key:"icon",fn:function(){return[M.showMoreOperations?z("MenuUp",{attrs:{size:20}}):z("MenuDown",{attrs:{size:20}})]},proxy:!0}],null,!1,3801522717)},[M._v("\n\t\t\t\t"+M._s(M.showMoreOperations?M.t("workflowengine","Show less"):M.t("workflowengine","Show more"))+"\n\t\t\t")])],1):M._e()],1),M._v(" "),M.mainOperations.length>0?z("NcSettingsSection",{attrs:{name:M.isAdminScope?M.t("workflowengine","Configured flows"):M.t("workflowengine","Your flows")}},[M.rules.length>0?z("transition-group",{attrs:{name:"slide"}},M._l(M.rules,(function(M){return z("Rule",{key:M.id,attrs:{rule:M}})})),1):z("NcEmptyContent",{attrs:{name:M.t("workflowengine","No flows configured")},scopedSlots:M._u([{key:"icon",fn:function(){return[z("NcIconSvgWrapper",{attrs:{svg:M.WorkflowOffSvg,size:20}})]},proxy:!0}],null,!1,233236213)})],1):M._e()],1)}),[],!1,null,"16a5974e",null).exports,NM=/^\/(.*)\/([gui]{0,3})$/,XM=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(3[0-2]|[1-2][0-9]|[1-9])$/,mM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(1([01][0-9]|2[0-8])|[1-9][0-9]|[0-9])$/,hM=b(1094),gM={props:{value:{type:String,default:""},check:{type:Object,default:function(){return{}}}},data:function(){return{newValue:""}},watch:{value:{immediate:!0,handler:function(M){this.updateInternalValue(M)}}},methods:{updateInternalValue:function(M){this.newValue=M}}};function CM(M,z){(null==z||z>M.length)&&(z=M.length);for(var b=0,p=new Array(z);bM.length)&&(z=M.length);for(var b=0,p=new Array(z);bM.length)&&(z=M.length);for(var b=0,p=new Array(z);b=0;--O){var A=this.tryEntries[O],c=A.completion;if("root"===A.tryLoc)return p("end");if(A.tryLoc<=this.prev){var o=b.call(A,"catchLoc"),q=b.call(A,"finallyLoc");if(o&&q){if(this.prev=0;--p){var O=this.tryEntries[p];if(O.tryLoc<=this.prev&&b.call(O,"finallyLoc")&&this.prev=0;--z){var b=this.tryEntries[z];if(b.finallyLoc===M)return this.complete(b.completion,b.afterLoc),N(b),t}},catch:function(M){for(var z=this.tryEntries.length-1;z>=0;--z){var b=this.tryEntries[z];if(b.tryLoc===M){var p=b.completion;if("throw"===p.type){var O=p.arg;N(b)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(M,z,b){return this.delegate={iterator:m(M),resultName:z,nextLoc:b},"next"===this.method&&(this.arg=void 0),t}},M}function Oz(M,z,b,p,O,A,c){try{var o=M[A](c),q=o.value}catch(M){return void b(M)}o.done?z(q):Promise.resolve(q).then(p,O)}var Az=[],cz={isLoading:!1},oz={name:"RequestUserGroup",components:{NcSelect:h.Z},props:{value:{type:String,default:""},check:{type:Object,default:function(){return{}}}},data:function(){return{groups:Az,status:cz}},computed:{currentValue:function(){var M=this;return this.groups.find((function(z){return z.id===M.value}))||null}},mounted:function(){var M,z=this;return(M=pz().mark((function M(){return pz().wrap((function(M){for(;;)switch(M.prev=M.next){case 0:if(0!==z.groups.length){M.next=3;break}return M.next=3,z.searchAsync("");case 3:if(null!==z.currentValue){M.next=6;break}return M.next=6,z.searchAsync(z.value);case 6:case"end":return M.stop()}}),M)})),function(){var z=this,b=arguments;return new Promise((function(p,O){var A=M.apply(z,b);function c(M){Oz(A,p,O,c,o,"next",M)}function o(M){Oz(A,p,O,c,o,"throw",M)}c(void 0)}))})()},methods:{searchAsync:function(M){var z=this;if(!this.status.isLoading)return this.status.isLoading=!0,A.Z.get((0,o.generateOcsUrl)("cloud/groups/details?limit=20&search={searchQuery}",{searchQuery:M})).then((function(M){M.data.ocs.data.groups.forEach((function(M){z.addGroup({id:M.id,displayname:M.displayname})})),z.status.isLoading=!1}),(function(M){zz.error("Error while loading group list",M.response)}))},addGroup:function(M){-1===this.groups.findIndex((function(z){return z.id===M.id}))&&this.groups.push(M)}}},qz=oz,Wz=b(43439),nz={};nz.styleTagTransform=j(),nz.setAttributes=x(),nz.insert=S().bind(null,"head"),nz.domAPI=y(),nz.insertStyleElement=P(),v()(Wz.Z,nz),Wz.Z&&Wz.Z.locals&&Wz.Z.locals;var tz=(0,G.Z)(qz,(function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{value:M.currentValue,loading:M.status.isLoading&&0===M.groups.length,options:M.groups,clearable:!1,label:"displayname"},on:{"search-change":M.searchAsync,input:function(z){return M.$emit("input",z.id)}}})],1)}),[],!1,null,"16d8123e",null).exports,ez=[{class:"OCA\\WorkflowEngine\\Check\\RequestURL",name:t("workflowengine","Request URL"),operators:[{operator:"is",name:t("workflowengine","is")},{operator:"!is",name:t("workflowengine","is not")},{operator:"matches",name:t("workflowengine","matches")},{operator:"!matches",name:t("workflowengine","does not match")}],component:Mz},{class:"OCA\\WorkflowEngine\\Check\\RequestTime",name:t("workflowengine","Request time"),operators:[{operator:"in",name:t("workflowengine","between")},{operator:"!in",name:t("workflowengine","not between")}],component:QM},{class:"OCA\\WorkflowEngine\\Check\\RequestUserAgent",name:t("workflowengine","Request user agent"),operators:[{operator:"is",name:t("workflowengine","is")},{operator:"!is",name:t("workflowengine","is not")},{operator:"matches",name:t("workflowengine","matches")},{operator:"!matches",name:t("workflowengine","does not match")}],component:IM},{class:"OCA\\WorkflowEngine\\Check\\UserGroupMembership",name:t("workflowengine","User group membership"),operators:[{operator:"is",name:t("workflowengine","is member of")},{operator:"!is",name:t("workflowengine","is not member of")}],component:tz}];function dz(M){return function(M){if(Array.isArray(M))return az(M)}(M)||function(M){if("undefined"!=typeof Symbol&&null!=M[Symbol.iterator]||null!=M["@@iterator"])return Array.from(M)}(M)||function(M,z){if(M){if("string"==typeof M)return az(M,z);var b=Object.prototype.toString.call(M).slice(8,-1);return"Object"===b&&M.constructor&&(b=M.constructor.name),"Map"===b||"Set"===b?Array.from(M):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?az(M,z):void 0}}(M)||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 az(M,z){(null==z||z>M.length)&&(z=M.length);for(var b=0,p=new Array(z);b*[data-v-07a2739b]:not(.close){width:180px}.check>.comparator[data-v-07a2739b]{min-width:200px;width:200px}.check>.option[data-v-07a2739b]{min-width:260px;width:260px;min-height:48px}.check>.option>input[type=text][data-v-07a2739b]{min-height:48px}.check>.v-select[data-v-07a2739b],.check>.button-vue[data-v-07a2739b],.check>input[type=text][data-v-07a2739b]{margin-right:5px;margin-bottom:5px}input[type=text][data-v-07a2739b]{margin:0}.invalid[data-v-07a2739b]{border-color:var(--color-error) !important}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Check.vue"],names:[],mappings:"AACA,wBACC,YAAA,CACA,cAAA,CACA,sBAAA,CACA,UAAA,CACA,kBAAA,CAEA,sCACC,WAAA,CAED,oCACC,eAAA,CACA,WAAA,CAED,gCACC,eAAA,CACA,WAAA,CACA,eAAA,CAEA,iDACC,eAAA,CAGF,+GAGC,gBAAA,CACA,iBAAA,CAGF,kCACC,QAAA,CAED,0BACC,0CAAA",sourcesContent:["\n.check {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: flex-start; // to not stretch components vertically\n\twidth: 100%;\n\tpadding-right: 20px;\n\n\t& > *:not(.close) {\n\t\twidth: 180px;\n\t}\n\t& > .comparator {\n\t\tmin-width: 200px;\n\t\twidth: 200px;\n\t}\n\t& > .option {\n\t\tmin-width: 260px;\n\t\twidth: 260px;\n\t\tmin-height: 48px;\n\n\t\t& > input[type=text] {\n\t\t\tmin-height: 48px;\n\t\t}\n\t}\n\t& > .v-select,\n\t& > .button-vue,\n\t& > input[type=text] {\n\t\tmargin-right: 5px;\n\t\tmargin-bottom: 5px;\n\t}\n}\ninput[type=text] {\n\tmargin: 0;\n}\n.invalid {\n\tborder-color: var(--color-error) !important;\n}\n"],sourceRoot:""}]),z.Z=c},4643:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,".v-select[data-v-1a11f354],input[type=text][data-v-1a11f354]{width:100%}input[type=text][data-v-1a11f354]{min-height:48px}.option__icon[data-v-1a11f354],.option__icon-img[data-v-1a11f354]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__icon-img[data-v-1a11f354]{text-align:center}.option__title[data-v-1a11f354]{display:inline-flex;width:calc(100% - 36px);vertical-align:middle}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/FileMimeType.vue"],names:[],mappings:"AACA,6DAEC,UAAA,CAGD,kCACC,eAAA,CAGD,kEAEC,oBAAA,CACA,cAAA,CACA,0BAAA,CACA,qBAAA,CAGD,mCACC,iBAAA,CAGD,gCACC,mBAAA,CACA,uBAAA,CACA,qBAAA",sourcesContent:["\n.v-select,\ninput[type='text'] {\n\twidth: 100%;\n}\n\ninput[type=text] {\n\tmin-height: 48px;\n}\n\n.option__icon,\n.option__icon-img {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n\n.option__icon-img {\n\ttext-align: center;\n}\n\n.option__title {\n\tdisplay: inline-flex;\n\twidth: calc(100% - 36px);\n\tvertical-align: middle;\n}\n"],sourceRoot:""}]),z.Z=c},5487:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,".timeslot[data-v-7a2ecc67]{display:flex;flex-grow:1;flex-wrap:wrap;max-width:180px}.timeslot .multiselect[data-v-7a2ecc67]{width:100%;margin-bottom:5px}.timeslot .multiselect[data-v-7a2ecc67] .multiselect__tags:not(:hover):not(:focus):not(:active){border:1px solid rgba(0,0,0,0)}.timeslot input[type=text][data-v-7a2ecc67]{width:50%;margin:0;margin-bottom:5px;min-height:48px}.timeslot input[type=text].timeslot--start[data-v-7a2ecc67]{margin-right:5px;width:calc(50% - 5px)}.timeslot .invalid-hint[data-v-7a2ecc67]{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/RequestTime.vue"],names:[],mappings:"AACA,2BACC,YAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CAEA,wCACC,UAAA,CACA,iBAAA,CAGD,gGACC,8BAAA,CAGD,4CACC,SAAA,CACA,QAAA,CACA,iBAAA,CACA,eAAA,CAEA,4DACC,gBAAA,CACA,qBAAA,CAIF,yCACC,mCAAA",sourcesContent:["\n.timeslot {\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-wrap: wrap;\n\tmax-width: 180px;\n\n\t.multiselect {\n\t\twidth: 100%;\n\t\tmargin-bottom: 5px;\n\t}\n\n\t.multiselect::v-deep .multiselect__tags:not(:hover):not(:focus):not(:active) {\n\t\tborder: 1px solid transparent;\n\t}\n\n\tinput[type=text] {\n\t\twidth: 50%;\n\t\tmargin: 0;\n\t\tmargin-bottom: 5px;\n\t\tmin-height: 48px;\n\n\t\t&.timeslot--start {\n\t\t\tmargin-right: 5px;\n\t\t\twidth: calc(50% - 5px);\n\t\t}\n\t}\n\n\t.invalid-hint {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n}\n"],sourceRoot:""}]),z.Z=c},35784:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,".v-select[data-v-1a72d97f],input[type=text][data-v-1a72d97f]{width:100%}input[type=text][data-v-1a72d97f]{min-height:48px}.option__icon[data-v-1a72d97f]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__title[data-v-1a72d97f]{display:inline-flex;width:calc(100% - 36px);vertical-align:middle}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/RequestURL.vue"],names:[],mappings:"AACA,6DAEC,UAAA,CAED,kCACC,eAAA,CAGD,+BACC,oBAAA,CACA,cAAA,CACA,0BAAA,CACA,qBAAA,CAGD,gCACC,mBAAA,CACA,uBAAA,CACA,qBAAA",sourcesContent:["\n.v-select,\ninput[type='text'] {\n\twidth: 100%;\n}\ninput[type='text'] {\n\tmin-height: 48px;\n}\n\n.option__icon {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n\n.option__title {\n\tdisplay: inline-flex;\n\twidth: calc(100% - 36px);\n\tvertical-align: middle;\n}\n"],sourceRoot:""}]),z.Z=c},56830:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,".event[data-v-d4892b64]{margin-bottom:5px}.event__trigger[data-v-d4892b64]{max-width:550px}.isComplex img[data-v-d4892b64]{vertical-align:text-top}.isComplex span[data-v-d4892b64]{padding-top:2px;display:inline-block}.option__title[data-v-d4892b64]{margin-left:5px;color:var(--color-main-text)}.option__icon[data-v-d4892b64]{width:16px;height:16px;filter:var(--background-invert-if-dark)}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Event.vue"],names:[],mappings:"AACA,wBACC,iBAAA,CAEA,iCACC,eAAA,CAID,gCACC,uBAAA,CAED,iCACC,eAAA,CACA,oBAAA,CAIF,gCACC,eAAA,CACA,4BAAA,CAGD,+BACC,UAAA,CACA,WAAA,CACA,uCAAA",sourcesContent:["\n.event {\n\tmargin-bottom: 5px;\n\n\t&__trigger {\n\t\tmax-width: 550px;\n\t}\n}\n.isComplex {\n\timg {\n\t\tvertical-align: text-top;\n\t}\n\tspan {\n\t\tpadding-top: 2px;\n\t\tdisplay: inline-block;\n\t}\n}\n\n.option__title {\n\tmargin-left: 5px;\n\tcolor: var(--color-main-text);\n}\n\n.option__icon {\n\twidth: 16px;\n\theight: 16px;\n\tfilter: var(--background-invert-if-dark);\n}\n"],sourceRoot:""}]),z.Z=c},67767:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,".actions__item[data-v-a0480332]{display:flex;flex-wrap:wrap;flex-direction:column;flex-grow:1;margin-left:-1px;padding:10px;border-radius:var(--border-radius-large);margin-right:20px;margin-bottom:20px}.actions__item .icon[data-v-a0480332]{display:block;width:100%;height:50px;background-size:50px 50px;background-position:center center;margin-top:10px;margin-bottom:10px;background-repeat:no-repeat}.actions__item__description[data-v-a0480332]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-a0480332]{width:100%;margin-top:10px;padding-left:60px}h3[data-v-a0480332],small[data-v-a0480332]{padding:6px;display:block}h3[data-v-a0480332]{margin:0;padding:0;font-weight:600}small[data-v-a0480332]{font-size:10pt;flex-grow:1}.colored[data-v-a0480332]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-a0480332],.colored:not(.more) small[data-v-a0480332]{color:var(--color-primary-element-text)}.actions__item[data-v-a0480332]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-a0480332]{padding-top:5px;text-align:left;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-a0480332]{padding:0}.actions__item:not(.colored) .icon[data-v-a0480332]{width:50px;margin:0;margin-right:10px}.actions__item:not(.colored) .icon[data-v-a0480332]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-a0480332]{filter:var(--background-invert-if-bright)}","",{version:3,sources:["webpack://./apps/workflowengine/src/styles/operation.scss"],names:[],mappings:"AAAA,gCACC,YAAA,CACA,cAAA,CACA,qBAAA,CACA,WAAA,CACA,gBAAA,CACA,YAAA,CACA,wCAAA,CACA,iBAAA,CACA,kBAAA,CAED,sCACC,aAAA,CACA,UAAA,CACA,WAAA,CACA,yBAAA,CACA,iCAAA,CACA,eAAA,CACA,kBAAA,CACA,2BAAA,CAED,6CACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAED,wCACC,UAAA,CACA,eAAA,CACA,iBAAA,CAED,2CACC,WAAA,CACA,aAAA,CAED,oBACC,QAAA,CACA,SAAA,CACA,eAAA,CAED,uBACC,cAAA,CACA,WAAA,CAGD,qCACC,6CAAA,CACA,mFACC,uCAAA,CAIF,8CACC,kBAAA,CAEA,0EACC,eAAA,CACA,eAAA,CACA,wBAAA,CACA,gFACC,SAAA,CAGF,oDACC,UAAA,CACA,QAAA,CACA,iBAAA,CACA,sEACC,yCAAA,CAKH,uCACC,yCAAA",sourcesContent:[".actions__item {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tmargin-left: -1px;\n\tpadding: 10px;\n\tborder-radius: var(--border-radius-large);\n\tmargin-right: 20px;\n\tmargin-bottom: 20px;\n}\n.actions__item .icon {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 50px;\n\tbackground-size: 50px 50px;\n\tbackground-position: center center;\n\tmargin-top: 10px;\n\tmargin-bottom: 10px;\n\tbackground-repeat: no-repeat;\n}\n.actions__item__description {\n\ttext-align: center;\n\tflex-grow: 1;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n.actions__item_options {\n\twidth: 100%;\n\tmargin-top: 10px;\n\tpadding-left: 60px;\n}\nh3, small {\n\tpadding: 6px;\n\tdisplay: block;\n}\nh3 {\n\tmargin: 0;\n\tpadding: 0;\n\tfont-weight: 600;\n}\nsmall {\n\tfont-size: 10pt;\n\tflex-grow: 1;\n}\n\n.colored:not(.more) {\n\tbackground-color: var(--color-primary-element);\n\th3, small {\n\t\tcolor: var(--color-primary-element-text)\n\t}\n}\n\n.actions__item:not(.colored) {\n\tflex-direction: row;\n\n\t.actions__item__description {\n\t\tpadding-top: 5px;\n\t\ttext-align: left;\n\t\twidth: calc(100% - 105px);\n\t\tsmall {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\t.icon {\n\t\twidth: 50px;\n\t\tmargin: 0;\n\t\tmargin-right: 10px;\n\t\t&:not(.icon-invert) {\n\t\t\tfilter: var(--background-invert-if-bright);\n\t\t}\n\t}\n}\n\n.colored .icon-invert {\n\tfilter: var(--background-invert-if-bright);\n}\n"],sourceRoot:""}]),z.Z=c},91372:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,".buttons[data-v-3def8966]{display:flex;justify-content:end}.buttons button[data-v-3def8966]{margin-left:5px}.buttons button[data-v-3def8966]:last-child{margin-right:10px}.error-message[data-v-3def8966]{float:right;margin-right:10px}.flow-icon[data-v-3def8966]{width:44px}.rule[data-v-3def8966]{display:flex;flex-wrap:wrap;border-left:5px solid var(--color-primary-element)}.rule .trigger[data-v-3def8966],.rule .action[data-v-3def8966]{flex-grow:1;min-height:100px;max-width:920px}.rule .action[data-v-3def8966]{max-width:400px;position:relative}.rule .icon-confirm[data-v-3def8966]{background-position:right 27px;padding-right:20px;margin-right:20px}.trigger p[data-v-3def8966],.action p[data-v-3def8966]{min-height:34px;display:flex}.trigger p>span[data-v-3def8966],.action p>span[data-v-3def8966]{min-width:50px;text-align:right;color:var(--color-text-maxcontrast);padding-right:10px;padding-top:6px}.trigger p .multiselect[data-v-3def8966],.action p .multiselect[data-v-3def8966]{flex-grow:1;max-width:300px}.trigger p:first-child span[data-v-3def8966]{padding-top:3px}.trigger p[data-v-3def8966]:last-child{padding-top:8px}.check--add[data-v-3def8966]{background-position:7px center;background-color:rgba(0,0,0,0);padding-left:6px;margin:0;width:180px;border-radius:var(--border-radius);color:var(--color-text-maxcontrast);font-weight:normal;text-align:left;font-size:1em}@media(max-width: 1400px){.rule[data-v-3def8966],.rule .trigger[data-v-3def8966],.rule .action[data-v-3def8966]{width:100%;max-width:100%}.rule .flow-icon[data-v-3def8966]{display:none}}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Rule.vue"],names:[],mappings:"AAEA,0BACC,YAAA,CACA,mBAAA,CAEA,iCACC,eAAA,CAED,4CACC,iBAAA,CAIF,gCACC,WAAA,CACA,iBAAA,CAGD,4BACC,UAAA,CAGD,uBACC,YAAA,CACA,cAAA,CACA,kDAAA,CAEA,+DAEC,WAAA,CACA,gBAAA,CACA,eAAA,CAED,+BACC,eAAA,CACA,iBAAA,CAED,qCACC,8BAAA,CACA,kBAAA,CACA,iBAAA,CAGF,uDACC,eAAA,CACA,YAAA,CAEA,iEACC,cAAA,CACA,gBAAA,CACA,mCAAA,CACA,kBAAA,CACA,eAAA,CAED,iFACC,WAAA,CACA,eAAA,CAGF,6CACE,eAAA,CAEF,uCACE,eAAA,CAGF,6BACC,8BAAA,CACA,8BAAA,CACA,gBAAA,CACA,QAAA,CACA,WAAA,CACA,kCAAA,CACA,mCAAA,CACA,kBAAA,CACA,eAAA,CACA,aAAA,CAGD,0BAEE,sFACC,UAAA,CACA,cAAA,CAED,kCACC,YAAA,CAAA",sourcesContent:["\n\n.buttons {\n\tdisplay: flex;\n\tjustify-content: end;\n\n\tbutton {\n\t\tmargin-left: 5px;\n\t}\n\tbutton:last-child{\n\t\tmargin-right: 10px;\n\t}\n}\n\n.error-message {\n\tfloat: right;\n\tmargin-right: 10px;\n}\n\n.flow-icon {\n\twidth: 44px;\n}\n\n.rule {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tborder-left: 5px solid var(--color-primary-element);\n\n\t.trigger,\n\t.action {\n\t\tflex-grow: 1;\n\t\tmin-height: 100px;\n\t\tmax-width: 920px;\n\t}\n\t.action {\n\t\tmax-width: 400px;\n\t\tposition: relative;\n\t}\n\t.icon-confirm {\n\t\tbackground-position: right 27px;\n\t\tpadding-right: 20px;\n\t\tmargin-right: 20px;\n\t}\n}\n.trigger p, .action p {\n\tmin-height: 34px;\n\tdisplay: flex;\n\n\t& > span {\n\t\tmin-width: 50px;\n\t\ttext-align: right;\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-right: 10px;\n\t\tpadding-top: 6px;\n\t}\n\t.multiselect {\n\t\tflex-grow: 1;\n\t\tmax-width: 300px;\n\t}\n}\n.trigger p:first-child span {\n\t\tpadding-top: 3px;\n}\n.trigger p:last-child {\n\t\tpadding-top: 8px;\n}\n\n.check--add {\n\tbackground-position: 7px center;\n\tbackground-color: transparent;\n\tpadding-left: 6px;\n\tmargin: 0;\n\twidth: 180px;\n\tborder-radius: var(--border-radius);\n\tcolor: var(--color-text-maxcontrast);\n\tfont-weight: normal;\n\ttext-align: left;\n\tfont-size: 1em;\n}\n\n@media (max-width:1400px) {\n\t.rule {\n\t\t&, .trigger, .action {\n\t\t\twidth: 100%;\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.flow-icon {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]),z.Z=c},4996:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,"#workflowengine[data-v-16a5974e]{border-bottom:1px solid var(--color-border)}.section[data-v-16a5974e]{max-width:100vw}.section h2.configured-flows[data-v-16a5974e]{margin-top:50px;margin-bottom:0}.actions[data-v-16a5974e]{display:flex;flex-wrap:wrap;max-width:1200px}.actions .actions__item[data-v-16a5974e]{max-width:280px;flex-basis:250px}.actions__more[data-v-16a5974e]{margin-bottom:10px}.slide-enter-active[data-v-16a5974e]{-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;transition-duration:.3s;-moz-transition-timing-function:ease-in;-webkit-transition-timing-function:ease-in;-o-transition-timing-function:ease-in;transition-timing-function:ease-in}.slide-leave-active[data-v-16a5974e]{-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;transition-duration:.3s;-moz-transition-timing-function:cubic-bezier(0, 1, 0.5, 1);-webkit-transition-timing-function:cubic-bezier(0, 1, 0.5, 1);-o-transition-timing-function:cubic-bezier(0, 1, 0.5, 1);transition-timing-function:cubic-bezier(0, 1, 0.5, 1)}.slide-enter-to[data-v-16a5974e],.slide-leave[data-v-16a5974e]{max-height:500px;overflow:hidden}.slide-enter[data-v-16a5974e],.slide-leave-to[data-v-16a5974e]{overflow:hidden;max-height:0;padding-top:0;padding-bottom:0}.actions__item[data-v-16a5974e]{display:flex;flex-wrap:wrap;flex-direction:column;flex-grow:1;margin-left:-1px;padding:10px;border-radius:var(--border-radius-large);margin-right:20px;margin-bottom:20px}.actions__item .icon[data-v-16a5974e]{display:block;width:100%;height:50px;background-size:50px 50px;background-position:center center;margin-top:10px;margin-bottom:10px;background-repeat:no-repeat}.actions__item__description[data-v-16a5974e]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-16a5974e]{width:100%;margin-top:10px;padding-left:60px}h3[data-v-16a5974e],small[data-v-16a5974e]{padding:6px;display:block}h3[data-v-16a5974e]{margin:0;padding:0;font-weight:600}small[data-v-16a5974e]{font-size:10pt;flex-grow:1}.colored[data-v-16a5974e]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-16a5974e],.colored:not(.more) small[data-v-16a5974e]{color:var(--color-primary-element-text)}.actions__item[data-v-16a5974e]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-16a5974e]{padding-top:5px;text-align:left;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-16a5974e]{padding:0}.actions__item:not(.colored) .icon[data-v-16a5974e]{width:50px;margin:0;margin-right:10px}.actions__item:not(.colored) .icon[data-v-16a5974e]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-16a5974e]{filter:var(--background-invert-if-bright)}.actions__item.more[data-v-16a5974e]{background-color:var(--color-background-dark)}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Workflow.vue","webpack://./apps/workflowengine/src/styles/operation.scss"],names:[],mappings:"AACA,iCACC,2CAAA,CAED,0BACC,eAAA,CAEA,8CACC,eAAA,CACA,eAAA,CAGF,0BACC,YAAA,CACA,cAAA,CACA,gBAAA,CACA,yCACC,eAAA,CACA,gBAAA,CAGF,gCACC,kBAAA,CAGD,qCACC,4BAAA,CACA,+BAAA,CACA,0BAAA,CACA,uBAAA,CACA,uCAAA,CACA,0CAAA,CACA,qCAAA,CACA,kCAAA,CAGD,qCACC,4BAAA,CACA,+BAAA,CACA,0BAAA,CACA,uBAAA,CACA,0DAAA,CACA,6DAAA,CACA,wDAAA,CACA,qDAAA,CAGD,+DACC,gBAAA,CACA,eAAA,CAGD,+DACC,eAAA,CACA,YAAA,CACA,aAAA,CACA,gBAAA,CCxDD,gCACC,YAAA,CACA,cAAA,CACA,qBAAA,CACA,WAAA,CACA,gBAAA,CACA,YAAA,CACA,wCAAA,CACA,iBAAA,CACA,kBAAA,CAED,sCACC,aAAA,CACA,UAAA,CACA,WAAA,CACA,yBAAA,CACA,iCAAA,CACA,eAAA,CACA,kBAAA,CACA,2BAAA,CAED,6CACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAED,wCACC,UAAA,CACA,eAAA,CACA,iBAAA,CAED,2CACC,WAAA,CACA,aAAA,CAED,oBACC,QAAA,CACA,SAAA,CACA,eAAA,CAED,uBACC,cAAA,CACA,WAAA,CAGD,qCACC,6CAAA,CACA,mFACC,uCAAA,CAIF,8CACC,kBAAA,CAEA,0EACC,eAAA,CACA,eAAA,CACA,wBAAA,CACA,gFACC,SAAA,CAGF,oDACC,UAAA,CACA,QAAA,CACA,iBAAA,CACA,sEACC,yCAAA,CAKH,uCACC,yCAAA,CDfD,qCACC,6CAAA",sourcesContent:['\n#workflowengine {\n\tborder-bottom: 1px solid var(--color-border);\n}\n.section {\n\tmax-width: 100vw;\n\n\th2.configured-flows {\n\t\tmargin-top: 50px;\n\t\tmargin-bottom: 0;\n\t}\n}\n.actions {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmax-width: 1200px;\n\t.actions__item {\n\t\tmax-width: 280px;\n\t\tflex-basis: 250px;\n\t}\n}\n.actions__more {\n\tmargin-bottom: 10px;\n}\n\n.slide-enter-active {\n\t-moz-transition-duration: 0.3s;\n\t-webkit-transition-duration: 0.3s;\n\t-o-transition-duration: 0.3s;\n\ttransition-duration: 0.3s;\n\t-moz-transition-timing-function: ease-in;\n\t-webkit-transition-timing-function: ease-in;\n\t-o-transition-timing-function: ease-in;\n\ttransition-timing-function: ease-in;\n}\n\n.slide-leave-active {\n\t-moz-transition-duration: 0.3s;\n\t-webkit-transition-duration: 0.3s;\n\t-o-transition-duration: 0.3s;\n\ttransition-duration: 0.3s;\n\t-moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n\t-webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n\t-o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n\ttransition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n}\n\n.slide-enter-to, .slide-leave {\n\tmax-height: 500px;\n\toverflow: hidden;\n}\n\n.slide-enter, .slide-leave-to {\n\toverflow: hidden;\n\tmax-height: 0;\n\tpadding-top: 0;\n\tpadding-bottom: 0;\n}\n\n@import "./../styles/operation";\n\n.actions__item.more {\n\tbackground-color: var(--color-background-dark);\n}\n',".actions__item {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tmargin-left: -1px;\n\tpadding: 10px;\n\tborder-radius: var(--border-radius-large);\n\tmargin-right: 20px;\n\tmargin-bottom: 20px;\n}\n.actions__item .icon {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 50px;\n\tbackground-size: 50px 50px;\n\tbackground-position: center center;\n\tmargin-top: 10px;\n\tmargin-bottom: 10px;\n\tbackground-repeat: no-repeat;\n}\n.actions__item__description {\n\ttext-align: center;\n\tflex-grow: 1;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n.actions__item_options {\n\twidth: 100%;\n\tmargin-top: 10px;\n\tpadding-left: 60px;\n}\nh3, small {\n\tpadding: 6px;\n\tdisplay: block;\n}\nh3 {\n\tmargin: 0;\n\tpadding: 0;\n\tfont-weight: 600;\n}\nsmall {\n\tfont-size: 10pt;\n\tflex-grow: 1;\n}\n\n.colored:not(.more) {\n\tbackground-color: var(--color-primary-element);\n\th3, small {\n\t\tcolor: var(--color-primary-element-text)\n\t}\n}\n\n.actions__item:not(.colored) {\n\tflex-direction: row;\n\n\t.actions__item__description {\n\t\tpadding-top: 5px;\n\t\ttext-align: left;\n\t\twidth: calc(100% - 105px);\n\t\tsmall {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\t.icon {\n\t\twidth: 50px;\n\t\tmargin: 0;\n\t\tmargin-right: 10px;\n\t\t&:not(.icon-invert) {\n\t\t\tfilter: var(--background-invert-if-bright);\n\t\t}\n\t}\n}\n\n.colored .icon-invert {\n\tfilter: var(--background-invert-if-bright);\n}\n"],sourceRoot:""}]),z.Z=c},47892:function(M,z,b){"use strict";var p=b(87537),O=b.n(p),A=b(23645),c=b.n(A)()(O());c.push([M.id,"\n.v-select[data-v-003881d4],\ninput[type='text'][data-v-003881d4] {\n\twidth: 100%;\n}\ninput[type='text'][data-v-003881d4] {\n\tmin-height: 48px;\n}\n.option__icon[data-v-003881d4] {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n.option__title[data-v-003881d4] {\n\tdisplay: inline-flex;\n\twidth: calc(100% - 36px);\n\tvertical-align: middle;\n}\n","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/RequestUserAgent.vue"],names:[],mappings:";AAmJA;;CAEA,WAAA;AACA;AACA;CACA,gBAAA;AACA;AAEA;CACA,qBAAA;CACA,eAAA;CACA,2BAAA;CACA,sBAAA;AACA;AAEA;CACA,oBAAA;CACA,wBAAA;CACA,sBAAA;AACA",sourcesContent:["\x3c!--\n - @copyright Copyright (c) 2019 Julius Härtl \n -\n - @author Julius Härtl \n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see .\n -\n --\x3e\n\n\n\n