(()=>{var M,z,b,p={16236(M,z,b){"use strict";var p=b(85471),O=("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function A(M,z){if(void 0===z&&(z=[]),null===M||"object"!=typeof M)return M;var b,p=(b=function(z){return z.original===M},z.filter(b)[0]);if(p)return p.copy;var O=Array.isArray(M)?[]:{};return z.push({original:M,copy:O}),Object.keys(M).forEach(function(b){O[b]=A(M[b],z)}),O}function c(M,z){Object.keys(M).forEach(function(b){return z(M[b],b)})}function o(M){return null!==M&&"object"==typeof M}var q=function(M,z){this.runtime=z,this._children=Object.create(null),this._rawModule=M;var b=M.state;this.state=("function"==typeof b?b():b)||{}},W={namespaced:{configurable:!0}};W.namespaced.get=function(){return!!this._rawModule.namespaced},q.prototype.addChild=function(M,z){this._children[M]=z},q.prototype.removeChild=function(M){delete this._children[M]},q.prototype.getChild=function(M){return this._children[M]},q.prototype.hasChild=function(M){return M in this._children},q.prototype.update=function(M){this._rawModule.namespaced=M.namespaced,M.actions&&(this._rawModule.actions=M.actions),M.mutations&&(this._rawModule.mutations=M.mutations),M.getters&&(this._rawModule.getters=M.getters)},q.prototype.forEachChild=function(M){c(this._children,M)},q.prototype.forEachGetter=function(M){this._rawModule.getters&&c(this._rawModule.getters,M)},q.prototype.forEachAction=function(M){this._rawModule.actions&&c(this._rawModule.actions,M)},q.prototype.forEachMutation=function(M){this._rawModule.mutations&&c(this._rawModule.mutations,M)},Object.defineProperties(q.prototype,W);var n,e=function(M){this.register([],M,!1)};function d(M,z,b){if(z.update(b),b.modules)for(var p in b.modules){if(!z.getChild(p))return;d(M.concat(p),z.getChild(p),b.modules[p])}}e.prototype.get=function(M){return M.reduce(function(M,z){return M.getChild(z)},this.root)},e.prototype.getNamespace=function(M){var z=this.root;return M.reduce(function(M,b){return M+((z=z.getChild(b)).namespaced?b+"/":"")},"")},e.prototype.update=function(M){d([],this.root,M)},e.prototype.register=function(M,z,b){var p=this;void 0===b&&(b=!0);var O=new q(z,b);0===M.length?this.root=O:this.get(M.slice(0,-1)).addChild(M[M.length-1],O),z.modules&&c(z.modules,function(z,O){p.register(M.concat(O),z,b)})},e.prototype.unregister=function(M){var z=this.get(M.slice(0,-1)),b=M[M.length-1],p=z.getChild(b);p&&p.runtime&&z.removeChild(b)},e.prototype.isRegistered=function(M){var z=this.get(M.slice(0,-1)),b=M[M.length-1];return!!z&&z.hasChild(b)};var a=function(M){var z=this;void 0===M&&(M={}),!n&&"undefined"!=typeof window&&window.Vue&&l(window.Vue);var b=M.plugins;void 0===b&&(b=[]);var p=M.strict;void 0===p&&(p=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new e(M),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new n,this._makeLocalGettersCache=Object.create(null);var A=this,c=this.dispatch,o=this.commit;this.dispatch=function(M,z){return c.call(A,M,z)},this.commit=function(M,z,b){return o.call(A,M,z,b)},this.strict=p;var q=this._modules.root.state;f(this,q,[],this._modules.root),u(this,q),b.forEach(function(M){return M(z)}),(void 0!==M.devtools?M.devtools:n.config.devtools)&&function(M){O&&(M._devtoolHook=O,O.emit("vuex:init",M),O.on("vuex:travel-to-state",function(z){M.replaceState(z)}),M.subscribe(function(M,z){O.emit("vuex:mutation",M,z)},{prepend:!0}),M.subscribeAction(function(M,z){O.emit("vuex:action",M,z)},{prepend:!0}))}(this)},i={state:{configurable:!0}};function r(M,z,b){return z.indexOf(M)<0&&(b&&b.prepend?z.unshift(M):z.push(M)),function(){var b=z.indexOf(M);b>-1&&z.splice(b,1)}}function R(M,z){M._actions=Object.create(null),M._mutations=Object.create(null),M._wrappedGetters=Object.create(null),M._modulesNamespaceMap=Object.create(null);var b=M.state;f(M,b,[],M._modules.root,!0),u(M,b,z)}function u(M,z,b){var p=M._vm;M.getters={},M._makeLocalGettersCache=Object.create(null);var O=M._wrappedGetters,A={};c(O,function(z,b){A[b]=function(M,z){return function(){return M(z)}}(z,M),Object.defineProperty(M.getters,b,{get:function(){return M._vm[b]},enumerable:!0})});var o=n.config.silent;n.config.silent=!0,M._vm=new n({data:{$$state:z},computed:A}),n.config.silent=o,M.strict&&function(M){M._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}(M),p&&(b&&M._withCommit(function(){p._data.$$state=null}),n.nextTick(function(){return p.$destroy()}))}function f(M,z,b,p,O){var A=!b.length,c=M._modules.getNamespace(b);if(p.namespaced&&(M._modulesNamespaceMap[c],M._modulesNamespaceMap[c]=p),!A&&!O){var o=L(z,b.slice(0,-1)),q=b[b.length-1];M._withCommit(function(){n.set(o,q,p.state)})}var W=p.context=function(M,z,b){var p=""===z,O={dispatch:p?M.dispatch:function(b,p,O){var A=s(b,p,O),c=A.payload,o=A.options,q=A.type;return o&&o.root||(q=z+q),M.dispatch(q,c)},commit:p?M.commit:function(b,p,O){var A=s(b,p,O),c=A.payload,o=A.options,q=A.type;o&&o.root||(q=z+q),M.commit(q,c,o)}};return Object.defineProperties(O,{getters:{get:p?function(){return M.getters}:function(){return function(M,z){if(!M._makeLocalGettersCache[z]){var b={},p=z.length;Object.keys(M.getters).forEach(function(O){if(O.slice(0,p)===z){var A=O.slice(p);Object.defineProperty(b,A,{get:function(){return M.getters[O]},enumerable:!0})}}),M._makeLocalGettersCache[z]=b}return M._makeLocalGettersCache[z]}(M,z)}},state:{get:function(){return L(M.state,b)}}}),O}(M,c,b);p.forEachMutation(function(z,b){!function(M,z,b,p){(M._mutations[z]||(M._mutations[z]=[])).push(function(z){b.call(M,p.state,z)})}(M,c+b,z,W)}),p.forEachAction(function(z,b){var p=z.root?b:c+b,O=z.handler||z;!function(M,z,b,p){(M._actions[z]||(M._actions[z]=[])).push(function(z){var O,A=b.call(M,{dispatch:p.dispatch,commit:p.commit,getters:p.getters,state:p.state,rootGetters:M.getters,rootState:M.state},z);return(O=A)&&"function"==typeof O.then||(A=Promise.resolve(A)),M._devtoolHook?A.catch(function(z){throw M._devtoolHook.emit("vuex:error",z),z}):A})}(M,p,O,W)}),p.forEachGetter(function(z,b){!function(M,z,b,p){M._wrappedGetters[z]||(M._wrappedGetters[z]=function(M){return b(p.state,p.getters,M.state,M.getters)})}(M,c+b,z,W)}),p.forEachChild(function(p,A){f(M,z,b.concat(A),p,O)})}function L(M,z){return z.reduce(function(M,z){return M[z]},M)}function s(M,z,b){return o(M)&&M.type&&(b=z,z=M,M=M.type),{type:M,payload:z,options:b}}function l(M){n&&M===n||function(M){if(Number(M.version.split(".")[0])>=2)M.mixin({beforeCreate:b});else{var z=M.prototype._init;M.prototype._init=function(M){void 0===M&&(M={}),M.init=M.init?[b].concat(M.init):b,z.call(this,M)}}function b(){var M=this.$options;M.store?this.$store="function"==typeof M.store?M.store():M.store:M.parent&&M.parent.$store&&(this.$store=M.parent.$store)}}(n=M)}i.state.get=function(){return this._vm._data.$$state},i.state.set=function(M){},a.prototype.commit=function(M,z,b){var p=this,O=s(M,z,b),A=O.type,c=O.payload,o=(O.options,{type:A,payload:c}),q=this._mutations[A];q&&(this._withCommit(function(){q.forEach(function(M){M(c)})}),this._subscribers.slice().forEach(function(M){return M(o,p.state)}))},a.prototype.dispatch=function(M,z){var b=this,p=s(M,z),O=p.type,A=p.payload,c={type:O,payload:A},o=this._actions[O];if(o){try{this._actionSubscribers.slice().filter(function(M){return M.before}).forEach(function(M){return M.before(c,b.state)})}catch(M){}var q=o.length>1?Promise.all(o.map(function(M){return M(A)})):o[0](A);return new Promise(function(M,z){q.then(function(z){try{b._actionSubscribers.filter(function(M){return M.after}).forEach(function(M){return M.after(c,b.state)})}catch(M){}M(z)},function(M){try{b._actionSubscribers.filter(function(M){return M.error}).forEach(function(z){return z.error(c,b.state,M)})}catch(M){}z(M)})})}},a.prototype.subscribe=function(M,z){return r(M,this._subscribers,z)},a.prototype.subscribeAction=function(M,z){return r("function"==typeof M?{before:M}:M,this._actionSubscribers,z)},a.prototype.watch=function(M,z,b){var p=this;return this._watcherVM.$watch(function(){return M(p.state,p.getters)},z,b)},a.prototype.replaceState=function(M){var z=this;this._withCommit(function(){z._vm._data.$$state=M})},a.prototype.registerModule=function(M,z,b){void 0===b&&(b={}),"string"==typeof M&&(M=[M]),this._modules.register(M,z),f(this,this.state,M,this._modules.get(M),b.preserveState),u(this,this.state)},a.prototype.unregisterModule=function(M){var z=this;"string"==typeof M&&(M=[M]),this._modules.unregister(M),this._withCommit(function(){var b=L(z.state,M.slice(0,-1));n.delete(b,M[M.length-1])}),R(this)},a.prototype.hasModule=function(M){return"string"==typeof M&&(M=[M]),this._modules.isRegistered(M)},a.prototype.hotUpdate=function(M){this._modules.update(M),R(this,!0)},a.prototype._withCommit=function(M){var z=this._committing;this._committing=!0,M(),this._committing=z},Object.defineProperties(a.prototype,i);var N=C(function(M,z){var b={};return h(z).forEach(function(z){var p=z.key,O=z.val;b[p]=function(){var z=this.$store.state,b=this.$store.getters;if(M){var p=g(this.$store,0,M);if(!p)return;z=p.context.state,b=p.context.getters}return"function"==typeof O?O.call(this,z,b):z[O]},b[p].vuex=!0}),b}),B=C(function(M,z){var b={};return h(z).forEach(function(z){var p=z.key,O=z.val;b[p]=function(){for(var z=[],b=arguments.length;b--;)z[b]=arguments[b];var p=this.$store.commit;if(M){var A=g(this.$store,0,M);if(!A)return;p=A.context.commit}return"function"==typeof O?O.apply(this,[p].concat(z)):p.apply(this.$store,[O].concat(z))}}),b}),X=C(function(M,z){var b={};return h(z).forEach(function(z){var p=z.key,O=z.val;O=M+O,b[p]=function(){if(!M||g(this.$store,0,M))return this.$store.getters[O]},b[p].vuex=!0}),b}),m=C(function(M,z){var b={};return h(z).forEach(function(z){var p=z.key,O=z.val;b[p]=function(){for(var z=[],b=arguments.length;b--;)z[b]=arguments[b];var p=this.$store.dispatch;if(M){var A=g(this.$store,0,M);if(!A)return;p=A.context.dispatch}return"function"==typeof O?O.apply(this,[p].concat(z)):p.apply(this.$store,[O].concat(z))}}),b});function h(M){return function(M){return Array.isArray(M)||o(M)}(M)?Array.isArray(M)?M.map(function(M){return{key:M,val:M}}):Object.keys(M).map(function(z){return{key:z,val:M[z]}}):[]}function C(M){return function(z,b){return"string"!=typeof z?(b=z,z=""):"/"!==z.charAt(z.length-1)&&(z+="/"),M(z,b)}}function g(M,z,b){return M._modulesNamespaceMap[b]}function T(M,z,b){var p=b?M.groupCollapsed:M.group;try{p.call(M,z)}catch(b){M.log(z)}}function v(M){try{M.groupEnd()}catch(z){M.log("—— log end ——")}}function w(){var M=new Date;return" @ "+E(M.getHours(),2)+":"+E(M.getMinutes(),2)+":"+E(M.getSeconds(),2)+"."+E(M.getMilliseconds(),3)}function E(M,z){return b=z-M.toString().length,new Array(b+1).join("0")+M;var b}var k={Store:a,install:l,version:"3.6.2",mapState:N,mapMutations:B,mapGetters:X,mapActions:m,createNamespacedHelpers:function(M){return{mapState:N.bind(null,M),mapGetters:X.bind(null,M),mapMutations:B.bind(null,M),mapActions:m.bind(null,M)}},createLogger:function(M){void 0===M&&(M={});var z=M.collapsed;void 0===z&&(z=!0);var b=M.filter;void 0===b&&(b=function(M,z,b){return!0});var p=M.transformer;void 0===p&&(p=function(M){return M});var O=M.mutationTransformer;void 0===O&&(O=function(M){return M});var c=M.actionFilter;void 0===c&&(c=function(M,z){return!0});var o=M.actionTransformer;void 0===o&&(o=function(M){return M});var q=M.logMutations;void 0===q&&(q=!0);var W=M.logActions;void 0===W&&(W=!0);var n=M.logger;return void 0===n&&(n=console),function(M){var e=A(M.state);void 0!==n&&(q&&M.subscribe(function(M,c){var o=A(c);if(b(M,e,o)){var q=w(),W=O(M),d="mutation "+M.type+q;T(n,d,z),n.log("%c prev state","color: #9E9E9E; font-weight: bold",p(e)),n.log("%c mutation","color: #03A9F4; font-weight: bold",W),n.log("%c next state","color: #4CAF50; font-weight: bold",p(o)),v(n)}e=o}),W&&M.subscribeAction(function(M,b){if(c(M,b)){var p=w(),O=o(M),A="action "+M.type+p;T(n,A,z),n.log("%c action","color: #03A9F4; font-weight: bold",O),v(n)}}))}}};const S=k;var y=b(81222),_=b(63814),x=b(74095),P=b(42507),D=b(6695),j=b(88837),I=b(25384),V=b(33388);const G={name:"Operation",components:{NcButton:x.A},props:{operation:{type:Object,required:!0},colored:{type:Boolean,default:!0}}};var U=b(85072),F=b.n(U),H=b(97825),K=b.n(H),Q=b(77659),J=b.n(Q),$=b(55056),Y=b.n($),Z=b(10540),MM=b.n(Z),zM=b(41113),bM=b.n(zM),pM=b(22592),OM={};OM.styleTagTransform=bM(),OM.setAttributes=Y(),OM.insert=J().bind(null,"head"),OM.domAPI=K(),OM.insertStyleElement=MM(),F()(pM.A,OM),pM.A&&pM.A.locals&&pM.A.locals;var AM=b(14486);const cM=(0,AM.A)(G,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(${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,"4b7616d2",null).exports;var oM=b(57505),qM=b(24764),WM=b(33691),nM=b(54373),eM=b(66001),dM=b(2895),aM=b.n(dM),tM=b(67607);const iM=(0,b(35947).YK)().detectLogLevel().setApp("workflowengine").build(),rM={name:"Check",components:{NcActionButton:oM.A,NcActions:qM.A,NcSelect:tM.default,CloseIcon:eM.A},directives:{ClickOutside:aM()},props:{check:{type:Object,required:!0},rule:{type:Object,required:!0}},data:()=>({deleteVisible:!1,currentOption:null,currentOperator:null,options:[],valid:!1}),computed:{checks(){return this.$store.getters.getChecksForEntity(this.rule.entity)},operators(){if(!this.currentOption)return[];const M=this.checks[this.currentOption.class].operators;return"function"==typeof M?M(this.check):M},currentElement(){return!!this.check.class&&this.checks[this.check.class].element},currentComponent(){return this.currentOption?this.checks[this.currentOption.class].component:[]},valuePlaceholder(){return this.currentOption&&this.currentOption.placeholder?this.currentOption.placeholder(this.check):""}},watch:{"check.operator":function(){this.validate()}},mounted(){this.options=Object.values(this.checks),this.currentOption=this.checks[this.check.class],this.currentOperator=this.operators.find(M=>M.operator===this.check.operator),this.currentElement?this.$refs.checkComponent.modelValue=void 0:this.currentOption?.component&&iM.warn("Developer warning: `CheckPlugin.options` is deprecated. Use `CheckPlugin.element` instead."),null===this.check.class&&this.$nextTick(()=>this.$refs.checkSelector.$el.focus()),this.validate()},methods:{showDelete(){this.deleteVisible=!0},hideDelete(){this.deleteVisible=!1},validate(){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(M){const z=M?.operator||this.currentOperator?.operator||this.check.operator,b=this.operators.findIndex(M=>z===M.operator);this.check.class===this.currentOption.class&&-1!==b||(this.currentOperator=this.operators[0]),M?.detail&&(this.check.value=M.detail[0]),this.check.class=this.currentOption.class,this.check.operator=this.currentOperator.operator,this.validate(),this.$emit("update",this.check)}}};var RM=b(43148),uM={};uM.styleTagTransform=bM(),uM.setAttributes=Y(),uM.insert=J().bind(null,"head"),uM.domAPI=K(),uM.insertStyleElement=MM(),F()(RM.A,uM),RM.A&&RM.A.locals&&RM.A.locals;const fM=(0,AM.A)(rM,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.currentElement?z(M.currentElement,{ref:"checkComponent",tag:"component",staticClass:"option",attrs:{disabled:!M.currentOption,operator:M.check.operator,"model-value":M.check.value},on:{"update:model-value":M.updateCheck,valid:function(z){(M.valid=!0)&&M.validate()},invalid:function(z){!(M.valid=!1)&&M.validate()}}}):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,"0263c74b",null).exports;var LM=b(85168);const sM={name:"Event",components:{NcSelect:tM.default},props:{rule:{type:Object,required:!0}},computed:{entity(){return this.$store.getters.getEntityForOperation(this.operation)},operation(){return this.$store.getters.getOperationForRule(this.rule)},allEvents(){return this.$store.getters.getEventsForOperation(this.operation)},currentEvent(){return this.allEvents.filter(M=>M.entity.id===this.rule.entity&&-1!==this.rule.events.indexOf(M.eventName))},placeholderString:()=>t("workflowengine","Select a trigger")},methods:{updateEvent(M){if(0===M.length)return void(0,LM.I9)(t("workflowengine","At least one event must be selected"));const z=this.rule.entity,b=M.map(M=>M.entity.id).filter((M,z,b)=>b.indexOf(M)===z);let p=null;p=b.length>1?b.filter(M=>M!==z)[0]:b[0],this.$set(this.rule,"entity",p),this.$set(this.rule,"events",M.filter(M=>M.entity.id===p).map(M=>M.eventName)),this.$emit("update",this.rule)}}},lM=sM;var NM=b(35546),BM={};BM.styleTagTransform=bM(),BM.setAttributes=Y(),BM.insert=J().bind(null,"head"),BM.domAPI=K(),BM.insertStyleElement=MM(),F()(NM.A,BM),NM.A&&NM.A.locals&&NM.A.locals;const XM={name:"Rule",components:{Check:fM,Event:(0,AM.A)(lM,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,"model-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,"3a004759",null).exports,NcActionButton:oM.A,NcActions:qM.A,NcButton:x.A,Operation:cM},props:{rule:{type:Object,required:!0}},data(){return{editing:!1,checks:[],error:null,dirty:this.rule.id<0,originalRule:null,element:null,inputValue:""}},computed:{operation(){return this.$store.getters.getOperationForRule(this.rule)},ruleStatus(){return this.error||!this.rule.valid||0===this.rule.checks.length||this.rule.checks.some(M=>!0===M.invalid)?{title:t("workflowengine","The configuration is invalid"),icon:eM.A,type:"warning",tooltip:this.error}:this.dirty?{title:t("workflowengine","Save"),icon:WM.A,type:"primary"}:{title:t("workflowengine","Active"),icon:nM.A,type:"success"}},lastCheckComplete(){const M=this.rule.checks[this.rule.checks.length-1];return void 0===M||null!==M.class}},mounted(){this.originalRule=JSON.parse(JSON.stringify(this.rule)),this.operation?.element?this.inputValue=this.rule.operation:this.operation?.options&&iM.warn("Developer warning: `OperatorPlugin.options` is deprecated. Use `OperatorPlugin.element` instead.")},methods:{async updateOperation(M){this.$set(this.rule,"operation",M),this.updateRule()},async updateOperationByEvent(M){this.inputValue=M.detail[0],this.$set(this.rule,"operation",M.detail[0]),this.updateRule()},validate(){this.error=null,this.$store.dispatch("updateRule",this.rule)},updateRule(){this.dirty||(this.dirty=!0),this.error=null,this.$store.dispatch("updateRule",this.rule)},async saveRule(){try{await this.$store.dispatch("pushUpdateRule",this.rule),this.dirty=!1,this.error=null,this.originalRule=JSON.parse(JSON.stringify(this.rule))}catch(M){iM.error("Failed to save operation",{error:M}),this.error=M.response.data.ocs.meta.message}},async deleteRule(){try{await this.$store.dispatch("deleteRule",this.rule)}catch(M){iM.error("Failed to delete operation",{error:M}),this.error=M.response.data.ocs.meta.message}},cancelRule(){this.rule.id<0?this.$store.dispatch("removeRule",this.rule):(this.inputValue=this.originalRule.operation,this.$store.dispatch("updateRule",this.originalRule),this.originalRule=JSON.parse(JSON.stringify(this.rule)),this.dirty=!1)},async removeCheck(M){const z=this.rule.checks.findIndex(z=>z===M);z>-1&&this.$delete(this.rule.checks,z),this.$store.dispatch("updateRule",this.rule)},onAddFilter(){this.rule.checks.push({class:null,operator:null,value:""})}}},mM=XM;var hM=b(12460),CM={};CM.styleTagTransform=bM(),CM.setAttributes=Y(),CM.insert=J().bind(null,"head"),CM.domAPI=K(),CM.insertStyleElement=MM(),F()(hM.A,CM),hM.A&&hM.A.locals&&hM.A.locals;var gM=(0,AM.A)(mM,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.element?z(M.operation.element,{tag:"component",attrs:{"model-value":M.inputValue},on:{"update:model-value":M.updateOperationByEvent}}):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,title:M.ruleStatus.tooltip},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,"51f314c8",null);const TM=gM.exports,vM={name:"Workflow",components:{MenuDown:I.A,MenuUp:V.A,NcButton:x.A,NcEmptyContent:P.A,NcIconSvgWrapper:D.A,NcSettingsSection:j.A,Operation:cM,Rule:TM},data:()=>({showMoreOperations:!1,appstoreUrl:(0,_.Jv)("settings/apps/workflow"),workflowDocUrl:(0,y.C)("workflowengine","doc-url"),WorkflowOffSvg:'\n \n \n\n'}),computed:{...X({rules:"getRules"}),...N({appstoreEnabled:"appstoreEnabled",scope:"scope",operations:"operations"}),hasMoreOperations(){return Object.keys(this.operations).length>3},mainOperations(){return this.showMoreOperations?Object.values(this.operations):Object.values(this.operations).slice(0,3)},showAppStoreHint(){return this.appstoreEnabled&&OC.isUserAdmin()},isUserAdmin:()=>OC.isUserAdmin(),isAdminScope(){return 0===this.scope}},mounted(){this.$store.dispatch("fetchRules")},methods:{createNewRule(M){this.$store.dispatch("createNewRule",M)}}};var wM=b(86104),EM={};EM.styleTagTransform=bM(),EM.setAttributes=Y(),EM.insert=J().bind(null,"head"),EM.domAPI=K(),EM.insertStyleElement=MM(),F()(wM.A,EM),wM.A&&wM.A.locals&&wM.A.locals;const kM=(0,AM.A)(vM,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,"2c1a2344",null).exports;var SM=b(83194);const yM={name:"FileMimeType",components:{NcEllipsisedOption:SM.A,NcSelect:tM.default},props:{modelValue:{type:String,default:""}},emits:["update:model-value"],data:()=>({predefinedTypes:[{iconUrl:(0,_.d0)("core","filetypes/audio"),label:t("workflowengine","Audio"),id:"/audio\\/.*/"},{icon:"icon-folder",label:t("workflowengine","Folder"),id:"httpd/unix-directory"},{icon:"icon-picture",label:t("workflowengine","Images"),id:"/image\\/.*/"},{iconUrl:(0,_.d0)("core","filetypes/x-office-document"),label:t("workflowengine","Office documents"),id:"/(vnd\\.(ms-|openxmlformats-|oasis\\.opendocument).*)$/"},{iconUrl:(0,_.d0)("core","filetypes/application-pdf"),label:t("workflowengine","PDF documents"),id:"application/pdf"},{iconUrl:(0,_.d0)("core","filetypes/video"),label:t("workflowengine","Video"),id:"/video\\/.*/"}],newValue:""}),computed:{options(){return[...this.predefinedTypes,this.customValue]},isPredefined(){return!!this.predefinedTypes.find(M=>this.newValue===M.id)},customValue:()=>({icon:"icon-settings-dark",label:t("workflowengine","Custom MIME type"),id:""}),currentValue(){return this.predefinedTypes.find(M=>this.newValue===M.id)||{icon:"icon-settings-dark",label:t("workflowengine","Custom MIME type"),id:this.newValue}}},watch:{modelValue(){this.updateInternalValue()}},methods:{validateRegex:M=>null!==/^\/(.*)\/([gui]{0,3})$/.exec(M),updateInternalValue(){this.newValue=this.modelValue},setValue(M){null!==M&&(this.newValue=M.id,this.$emit("update:model-value",this.newValue))},updateCustom(M){this.newValue=M.target.value||M.detail[0],this.$emit("update:model-value",this.newValue)}}};var _M=b(27106),xM={};xM.styleTagTransform=bM(),xM.setAttributes=Y(),xM.insert=J().bind(null,"head"),xM.domAPI=K(),xM.insertStyleElement=MM(),F()(_M.A,xM),_M.A&&_M.A.locals&&_M.A.locals;const PM=(0,AM.A)(yM,function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{"model-value":M.currentValue,placeholder:M.t("workflowengine","Select a file type"),label:"label",options:M.options,clearable:!1},on:{input:M.setValue},scopedSlots:M._u([{key:"option",fn:function(b){return[b.icon?z("span",{staticClass:"option__icon",class:b.icon}):z("span",{staticClass:"option__icon-img"},[z("img",{attrs:{src:b.iconUrl,alt:""}})]),M._v(" "),z("span",{staticClass:"option__title"},[z("NcEllipsisedOption",{attrs:{name:String(b.label)}})],1)]}},{key:"selected-option",fn:function(b){return[b.icon?z("span",{staticClass:"option__icon",class:b.icon}):z("span",{staticClass:"option__icon-img"},[z("img",{attrs:{src:b.iconUrl,alt:""}})]),M._v(" "),z("span",{staticClass:"option__title"},[z("NcEllipsisedOption",{attrs:{name:String(b.label)}})],1)]}}])}),M._v(" "),M.isPredefined?M._e():z("input",{attrs:{type:"text",placeholder:M.t("workflowengine","e.g. httpd/unix-directory")},domProps:{value:M.currentValue.id},on:{input:M.updateCustom}})],1)},[],!1,null,"dbaf171a",null).exports,DM={name:"FileSystemTag",components:{NcSelectTags:b(4258).N},props:{modelValue:{type:String,default:""}},emits:["update:model-value"],data:()=>({newValue:[]}),watch:{modelValue(){this.updateValue()}},beforeMount(){this.updateValue()},methods:{updateValue(){""!==this.modelValue?this.newValue=parseInt(this.modelValue):this.newValue=null},update(){this.$emit("update:model-value",this.newValue||"")}}},jM=(0,AM.A)(DM,function(){var M=this;return(0,M._self._c)("NcSelectTags",{attrs:{multiple:!1},on:{input:M.update},model:{value:M.newValue,callback:function(z){M.newValue=z},expression:"newValue"}})},[],!1,null,null,null).exports,IM=/^\/(.*)\/([gui]{0,3})$/,VM=/^(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])$/,GM=/^(([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])$/;var UM=b(26422);function FM(M,z){const b=(0,UM.A)(p.Ay,M);if(window.customElements.get(z))throw iM.error("Custom element with ID "+z+" is already defined!"),new Error("Custom element with ID "+z+" is already defined!");return window.customElements.define(z,b),Object.defineProperty(b.prototype,"attachShadow",{value(){return this}}),Object.defineProperty(b.prototype,"shadowRoot",{get(){return this}}),z}function HM(){return[{operator:"matches",name:t("workflowengine","matches")},{operator:"!matches",name:t("workflowengine","does not match")},{operator:"is",name:t("workflowengine","is")},{operator:"!is",name:t("workflowengine","is not")}]}const KM=[{class:"OCA\\WorkflowEngine\\Check\\FileName",name:t("workflowengine","File name"),operators:HM,placeholder:M=>"matches"===M.operator||"!matches"===M.operator?"/^dummy-.+$/i":"filename.txt",validate:function(M){return"matches"!==M.operator&&"!matches"!==M.operator||!!(z=M.value)&&null!==IM.exec(z);var z}},{class:"OCA\\WorkflowEngine\\Check\\FileMimeType",name:t("workflowengine","File MIME type"),operators:HM,element:FM(PM,"oca-workflowengine-checks-file_mime_type")},{class:"OCA\\WorkflowEngine\\Check\\FileSize",name:t("workflowengine","File size (upload)"),operators:[{operator:"less",name:t("workflowengine","less")},{operator:"!greater",name:t("workflowengine","less or equals")},{operator:"!less",name:t("workflowengine","greater or equals")},{operator:"greater",name:t("workflowengine","greater")}],placeholder:()=>"5 MB",validate:M=>!!M.value&&null!==M.value.match(/^[0-9]+[ ]?[kmgt]?b$/i)},{class:"OCA\\WorkflowEngine\\Check\\RequestRemoteAddress",name:t("workflowengine","Request remote address"),operators:[{operator:"matchesIPv4",name:t("workflowengine","matches IPv4")},{operator:"!matchesIPv4",name:t("workflowengine","does not match IPv4")},{operator:"matchesIPv6",name:t("workflowengine","matches IPv6")},{operator:"!matchesIPv6",name:t("workflowengine","does not match IPv6")}],placeholder:M=>"matchesIPv6"===M.operator||"!matchesIPv6"===M.operator?"::1/128":"127.0.0.1/32",validate:M=>{return"matchesIPv6"===M.operator||"!matchesIPv6"===M.operator?!!(z=M.value)&&null!==GM.exec(z):function(M){return!!M&&null!==VM.exec(M)}(M.value);var z}},{class:"OCA\\WorkflowEngine\\Check\\FileSystemTags",name:t("workflowengine","File system tag"),operators:[{operator:"is",name:t("workflowengine","is tagged with")},{operator:"!is",name:t("workflowengine","is not tagged with")}],element:FM(jM,"oca-workflowengine-file_system_tag")}];var QM=b(84743),JM=b.n(QM);const $M=JM().tz.names(),YM={name:"RequestTime",components:{NcSelect:tM.default},props:{modelValue:{type:String,default:"[]"}},emits:["update:model-value"],data:()=>({timezones:$M,valid:!1,newValue:{startTime:null,endTime:null,timezone:JM().tz.guess()},stringifiedValue:"[]"}),watch:{modelValue(){this.updateInternalValue()}},beforeMount(){this.updateInternalValue()},methods:{updateInternalValue(){try{const M=JSON.parse(this.modelValue);2===M.length&&(this.newValue={startTime:M[0].split(" ",2)[0],endTime:M[1].split(" ",2)[0],timezone:M[0].split(" ",2)[1]},this.stringifiedValue=`["${this.newValue.startTime} ${this.newValue.timezone}","${this.newValue.endTime} ${this.newValue.timezone}"]`,this.validate())}catch{}},validate(){return this.valid=this.newValue.startTime&&null!==this.newValue.startTime.match(/^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$/i)&&this.newValue.endTime&&null!==this.newValue.endTime.match(/^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$/i)&&null!==JM().tz.zone(this.newValue.timezone),this.valid?this.$emit("valid"):this.$emit("invalid"),this.valid},update(){null===this.newValue.timezone&&(this.newValue.timezone=JM().tz.guess()),this.validate()&&(this.stringifiedValue=`["${this.newValue.startTime} ${this.newValue.timezone}","${this.newValue.endTime} ${this.newValue.timezone}"]`,this.$emit("update:model-value",this.stringifiedValue))}}};var ZM=b(63595),Mz={};Mz.styleTagTransform=bM(),Mz.setAttributes=Y(),Mz.insert=J().bind(null,"head"),Mz.domAPI=K(),Mz.insertStyleElement=MM(),F()(ZM.A,Mz),ZM.A&&ZM.A.locals&&ZM.A.locals;const zz=(0,AM.A)(YM,function(){var M=this,z=M._self._c;return z("div",{staticClass:"timeslot"},[z("input",{directives:[{name:"model",rawName:"v-model",value:M.newValue.startTime,expression:"newValue.startTime"}],staticClass:"timeslot--start",attrs:{type:"text",placeholder:"e.g. 08:00"},domProps:{value:M.newValue.startTime},on:{input:[function(z){z.target.composing||M.$set(M.newValue,"startTime",z.target.value)},M.update]}}),M._v(" "),z("input",{directives:[{name:"model",rawName:"v-model",value:M.newValue.endTime,expression:"newValue.endTime"}],attrs:{type:"text",placeholder:"e.g. 18:00"},domProps:{value:M.newValue.endTime},on:{input:[function(z){z.target.composing||M.$set(M.newValue,"endTime",z.target.value)},M.update]}}),M._v(" "),M.valid?M._e():z("p",{staticClass:"invalid-hint"},[M._v("\n\t\t"+M._s(M.t("workflowengine","Please enter a valid time span"))+"\n\t")]),M._v(" "),z("NcSelect",{directives:[{name:"show",rawName:"v-show",value:M.valid,expression:"valid"}],attrs:{clearable:!1,options:M.timezones},on:{input:M.update},model:{value:M.newValue.timezone,callback:function(z){M.$set(M.newValue,"timezone",z)},expression:"newValue.timezone"}})],1)},[],!1,null,"9b060ffc",null).exports,bz={data:()=>({newValue:[]}),watch:{modelValue(){this.updateInternalValue()}},methods:{updateInternalValue(){this.newValue=this.modelValue}}},pz={name:"RequestURL",components:{NcEllipsisedOption:SM.A,NcSelect:tM.default},mixins:[bz],props:{modelValue:{type:String,default:""},operator:{type:String,default:""}},emits:["update:model-value"],data:()=>({newValue:"",predefinedTypes:[{icon:"icon-files-dark",id:"webdav",label:t("workflowengine","Files WebDAV")}]}),computed:{options(){return[...this.predefinedTypes,this.customValue]},placeholder(){return"matches"===this.operator||"!matches"===this.operator?"/^https\\:\\/\\/localhost\\/index\\.php$/i":"https://localhost/index.php"},matchingPredefined(){return this.predefinedTypes.find(M=>this.newValue===M.id)},isPredefined(){return!!this.matchingPredefined},customValue:()=>({icon:"icon-settings-dark",label:t("workflowengine","Custom URL"),id:""}),currentValue(){return this.matchingPredefined?this.matchingPredefined:{icon:"icon-settings-dark",label:t("workflowengine","Custom URL"),id:this.newValue}}},methods:{validateRegex:M=>null!==/^\/(.*)\/([gui]{0,3})$/.exec(M),setValue(M){null!==M&&(this.newValue=M.id,this.$emit("update:model-value",this.newValue))},updateCustom(M){this.newValue=M.target.value,this.$emit("update:model-value",this.newValue)}}};var Oz=b(65798),Az={};Az.styleTagTransform=bM(),Az.setAttributes=Y(),Az.insert=J().bind(null,"head"),Az.domAPI=K(),Az.insertStyleElement=MM(),F()(Oz.A,Az),Oz.A&&Oz.A.locals&&Oz.A.locals;const cz=(0,AM.A)(pz,function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{"model-value":M.currentValue,placeholder:M.t("workflowengine","Select a request URL"),label:"label",clearable:!1,options:M.options},on:{input:M.setValue},scopedSlots:M._u([{key:"option",fn:function(b){return[z("span",{staticClass:"option__icon",class:b.icon}),M._v(" "),z("span",{staticClass:"option__title"},[z("NcEllipsisedOption",{attrs:{name:String(b.label)}})],1)]}},{key:"selected-option",fn:function(b){return[z("span",{staticClass:"option__icon",class:b.icon}),M._v(" "),z("span",{staticClass:"option__title"},[z("NcEllipsisedOption",{attrs:{name:String(b.label)}})],1)]}}]),model:{value:M.newValue,callback:function(z){M.newValue=z},expression:"newValue"}}),M._v(" "),M.isPredefined?M._e():z("input",{attrs:{type:"text",placeholder:M.placeholder},domProps:{value:M.currentValue.id},on:{input:M.updateCustom}})],1)},[],!1,null,"14ce9f69",null).exports,oz={name:"RequestUserAgent",components:{NcEllipsisedOption:SM.A,NcSelect:tM.default},mixins:[bz],props:{modelValue:{type:String,default:""}},emits:["update:model-value"],data:()=>({newValue:"",predefinedTypes:[{id:"android",label:t("workflowengine","Android client"),icon:"icon-phone"},{id:"ios",label:t("workflowengine","iOS client"),icon:"icon-phone"},{id:"desktop",label:t("workflowengine","Desktop client"),icon:"icon-desktop"},{id:"mail",label:t("workflowengine","Thunderbird & Outlook addons"),icon:"icon-mail"}]}),computed:{options(){return[...this.predefinedTypes,this.customValue]},matchingPredefined(){return this.predefinedTypes.find(M=>this.newValue===M.id)},isPredefined(){return!!this.matchingPredefined},customValue:()=>({icon:"icon-settings-dark",label:t("workflowengine","Custom user agent"),id:""}),currentValue:{get(){return this.matchingPredefined?this.matchingPredefined:{icon:"icon-settings-dark",label:t("workflowengine","Custom user agent"),id:this.newValue}},set(M){this.newValue=M}}},methods:{validateRegex:M=>null!==/^\/(.*)\/([gui]{0,3})$/.exec(M),setValue(M){null!==M&&(this.newValue=M.id,this.$emit("update:model-value",this.newValue))},updateCustom(){this.newValue=this.currentValue.id,this.$emit("update:model-value",this.newValue)}}};var qz=b(92042),Wz={};Wz.styleTagTransform=bM(),Wz.setAttributes=Y(),Wz.insert=J().bind(null,"head"),Wz.domAPI=K(),Wz.insertStyleElement=MM(),F()(qz.A,Wz),qz.A&&qz.A.locals&&qz.A.locals;const nz=(0,AM.A)(oz,function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{placeholder:M.t("workflowengine","Select a user agent"),label:"label",options:M.options,clearable:!1},on:{input:M.setValue},scopedSlots:M._u([{key:"option",fn:function(b){return[z("span",{staticClass:"option__icon",class:b.icon}),M._v(" "),z("span",{staticClass:"option__title"},[z("NcEllipsisedOption",{attrs:{name:String(b.label)}})],1)]}},{key:"selected-option",fn:function(b){return[z("span",{staticClass:"option__icon",class:b.icon}),M._v(" "),z("span",{staticClass:"option__title"},[z("NcEllipsisedOption",{attrs:{name:String(b.label)}})],1)]}}]),model:{value:M.currentValue,callback:function(z){M.currentValue=z},expression:"currentValue"}}),M._v(" "),M.isPredefined?M._e():z("input",{directives:[{name:"model",rawName:"v-model",value:M.newValue,expression:"newValue"}],attrs:{type:"text"},domProps:{value:M.newValue},on:{input:[function(z){z.target.composing||(M.newValue=z.target.value)},M.updateCustom]}})],1)},[],!1,null,"31db6870",null).exports;var ez=b(19051),dz=b(53334);const az=[],tz=[],iz={isLoading:!1},rz={name:"RequestUserGroup",components:{NcSelect:tM.default},props:{modelValue:{type:String,default:""},check:{type:Object,default:()=>({})}},emits:["update:model-value"],data:()=>({groups:az,status:iz,wantedGroups:tz,newValue:""}),computed:{currentValue:{get(){return this.groups.find(M=>M.id===this.newValue)||null},set(M){this.newValue=M}}},watch:{modelValue(){this.updateInternalValue()}},async mounted(){0===this.groups.length&&await this.searchAsync(""),null===this.currentValue&&this.newValue&&await this.searchAsync(this.newValue)},methods:{t:dz.t,searchAsync(M){if(!this.status.isLoading)return this.status.isLoading=!0,ez.Ay.get((0,_.KT)("cloud/groups/details?limit=20&search={searchQuery}",{searchQuery:M})).then(M=>{M.data.ocs.data.groups.forEach(M=>{this.addGroup({id:M.id,displayname:M.displayname})}),this.status.isLoading=!1,this.findGroupByQueue()},M=>{iM.error("Error while loading group list",{error:M})});M&&this.enqueueWantedGroup(M)},async updateInternalValue(){this.newValue||await this.searchAsync(this.modelValue),this.newValue=this.modelValue},addGroup(M){-1===this.groups.findIndex(z=>z.id===M.id)&&this.groups.push(M)},hasGroup(M){return this.groups.findIndex(z=>z.id===M)>-1},update(M){this.newValue=M.id,this.$emit("update:model-value",this.newValue)},enqueueWantedGroup(M){-1===this.wantedGroups.findIndex(z=>z===M)&&this.wantedGroups.push(M)},async findGroupByQueue(){let M;do{M=this.wantedGroups.shift(),this.hasGroup(M)&&(M=void 0)}while(!M&&this.wantedGroups.length>0);M&&await this.searchAsync(M)}}};var Rz=b(42214),uz={};uz.styleTagTransform=bM(),uz.setAttributes=Y(),uz.insert=J().bind(null,"head"),uz.domAPI=K(),uz.insertStyleElement=MM(),F()(Rz.A,uz),Rz.A&&Rz.A.locals&&Rz.A.locals;const fz=(0,AM.A)(rz,function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{"aria-label-combobox":M.t("workflowengine","Select groups"),"aria-label-listbox":M.t("workflowengine","Groups"),clearable:!1,loading:M.status.isLoading&&0===M.groups.length,placeholder:M.t("workflowengine","Type to search for group …"),options:M.groups,"model-value":M.currentValue,label:"displayname"},on:{search:M.searchAsync,input:M.update}})],1)},[],!1,null,"9969ea1c",null).exports,Lz=[...KM,{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")}],element:FM(cz,"oca-workflowengine-checks-request_url")},{class:"OCA\\WorkflowEngine\\Check\\RequestTime",name:t("workflowengine","Request time"),operators:[{operator:"in",name:t("workflowengine","between")},{operator:"!in",name:t("workflowengine","not between")}],element:FM(zz,"oca-workflowengine-checks-request_time")},{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")}],element:FM(nz,"oca-workflowengine-checks-request_user_agent")},{class:"OCA\\WorkflowEngine\\Check\\UserGroupMembership",name:t("workflowengine","Group membership"),operators:[{operator:"is",name:t("workflowengine","is member of")},{operator:"!is",name:t("workflowengine","is not member of")}],element:FM(fz,"oca-workflowengine-checks-request_user_group")}];var sz=b(47176);const lz=0===(0,y.C)("workflowengine","scope")?"global":"user";function Nz(M){return(0,_.KT)("apps/workflowengine/api/v1/workflows/{scopeValue}",{scopeValue:lz})+M+"?format=json"}p.Ay.use(S);const Bz=new a({state:{rules:[],scope:(0,y.C)("workflowengine","scope"),appstoreEnabled:(0,y.C)("workflowengine","appstoreenabled"),operations:(0,y.C)("workflowengine","operators"),plugins:p.Ay.observable({checks:{},operators:{}}),entities:(0,y.C)("workflowengine","entities"),events:(0,y.C)("workflowengine","entities").map(M=>M.events.map(z=>({id:`${M.id}::${z.eventName}`,entity:M,...z}))).flat(),checks:(0,y.C)("workflowengine","checks")},mutations:{addRule(M,z){M.rules.push({...z,valid:!0})},updateRule(M,z){const b=M.rules.findIndex(M=>z.id===M.id),O={...z};p.Ay.set(M.rules,b,O)},removeRule(M,z){const b=M.rules.findIndex(M=>z.id===M.id);M.rules.splice(b,1)},addPluginCheck(M,z){p.Ay.set(M.plugins.checks,z.class,z)},addPluginOperator(M,z){z={color:"var(--color-primary-element)",...z,...M.operations[z.id]||{}},void 0!==M.operations[z.id]&&p.Ay.set(M.operations,z.id,z)}},actions:{async fetchRules(M){const{data:z}=await ez.Ay.get(Nz(""));Object.values(z.ocs.data).flat().forEach(z=>{M.commit("addRule",z)})},async createNewRule(M,z){await(0,sz.C5)();let b=null,p=[];!1===z.isComplex&&""===z.fixedEntity&&(b=M.state.entities.find(M=>z.entities&&z.entities[0]===M.id),b=b||Object.values(M.state.entities)[0],p=[b.events[0].eventName]),M.commit("addRule",{id:-(new Date).getTime(),class:z.id,entity:b?b.id:z.fixedEntity,events:p,name:"",checks:[{class:null,operator:null,value:""}],operation:z.operation||""})},updateRule(M,z){M.commit("updateRule",{...z,events:"string"==typeof z.events?JSON.parse(z.events):z.events})},removeRule(M,z){M.commit("removeRule",z)},async pushUpdateRule(M,z){let b;await(0,sz.C5)(),b=z.id<0?await ez.Ay.post(Nz(""),z):await ez.Ay.put(Nz(`/${z.id}`),z),p.Ay.set(z,"id",b.data.ocs.data.id),M.commit("updateRule",z)},async deleteRule(M,z){await(0,sz.C5)(),await ez.Ay.delete(Nz(`/${z.id}`)),M.commit("removeRule",z)},setValid(M,{rule:z,valid:b}){z.valid=b,M.commit("updateRule",z)}},getters:{getRules:M=>M.rules.filter(z=>void 0!==M.operations[z.class]).sort((M,z)=>M.id-z.id||z.class-M.class),getOperationForRule:M=>z=>M.operations[z.class],getEntityForOperation:M=>z=>M.entities.find(M=>z.fixedEntity===M.id),getEventsForOperation:M=>()=>M.events,getChecksForEntity:M=>z=>Object.values(M.checks).filter(M=>M.supportedEntities.indexOf(z)>-1||0===M.supportedEntities.length).map(z=>M.plugins.checks[z.id]).reduce((M,z)=>(M[z.class]=z,M),{})}}),Xz=Bz;window.OCA.WorkflowEngine={...OCA.WorkflowEngine,registerCheck(M){Xz.commit("addPluginCheck",M)},registerOperator(M){Xz.commit("addPluginOperator",M)}},Lz.forEach(M=>window.OCA.WorkflowEngine.registerCheck(M)),p.Ay.use(S),p.Ay.prototype.t=t,new(p.Ay.extend(kM))({store:Xz}).$mount("#workflowengine")},43148(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,".check[data-v-0263c74b]{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;padding-inline-end:20px}.check>*[data-v-0263c74b]:not(.close){width:180px}.check>.comparator[data-v-0263c74b]{min-width:200px;width:200px}.check>.option[data-v-0263c74b]{min-width:260px;width:260px;min-height:48px}.check>.option>input[type=text][data-v-0263c74b]{min-height:48px}.check>.v-select[data-v-0263c74b],.check>.button-vue[data-v-0263c74b],.check>input[type=text][data-v-0263c74b]{margin-inline-end:5px;margin-bottom:5px}input[type=text][data-v-0263c74b]{margin:0}.invalid[data-v-0263c74b]{border-color:var(--color-border-error) !important}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Check.vue"],names:[],mappings:"AACA,wBACC,YAAA,CACA,cAAA,CACA,sBAAA,CACA,UAAA,CACA,uBAAA,CAEA,sCACC,WAAA,CAED,oCACC,eAAA,CACA,WAAA,CAED,gCACC,eAAA,CACA,WAAA,CACA,eAAA,CAEA,iDACC,eAAA,CAGF,+GAGC,qBAAA,CACA,iBAAA,CAIF,kCACC,QAAA,CAGD,0BACC,iDAAA",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-inline-end: 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-inline-end: 5px;\n\t\tmargin-bottom: 5px;\n\t}\n}\n\ninput[type=text] {\n\tmargin: 0;\n}\n\n.invalid {\n\tborder-color: var(--color-border-error) !important;\n}\n"],sourceRoot:""}]);const o=c},27106(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,".v-select[data-v-dbaf171a],input[type=text][data-v-dbaf171a]{width:100%}input[type=text][data-v-dbaf171a]{min-height:48px}.option__icon[data-v-dbaf171a],.option__icon-img[data-v-dbaf171a]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__icon-img[data-v-dbaf171a]{text-align:center}.option__title[data-v-dbaf171a]{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:""}]);const o=c},63595(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,".timeslot[data-v-9b060ffc]{display:flex;flex-grow:1;flex-wrap:wrap;max-width:180px}.timeslot .multiselect[data-v-9b060ffc]{width:100%;margin-bottom:5px}.timeslot .multiselect[data-v-9b060ffc] .multiselect__tags:not(:hover):not(:focus):not(:active){border:1px solid rgba(0,0,0,0)}.timeslot input[type=text][data-v-9b060ffc]{width:50%;margin:0;margin-bottom:5px;min-height:48px}.timeslot input[type=text].timeslot--start[data-v-9b060ffc]{margin-inline-end:5px;width:calc(50% - 5px)}.timeslot .invalid-hint[data-v-9b060ffc]{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,qBAAA,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: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-inline-end: 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:""}]);const o=c},65798(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,".v-select[data-v-14ce9f69],input[type=text][data-v-14ce9f69]{width:100%}input[type=text][data-v-14ce9f69]{min-height:48px}.option__icon[data-v-14ce9f69]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__title[data-v-14ce9f69]{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,CAGD,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}\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:""}]);const o=c},35546(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,".event[data-v-3a004759]{margin-bottom:5px}.event__trigger[data-v-3a004759]{max-width:550px}.isComplex img[data-v-3a004759]{vertical-align:text-top}.isComplex span[data-v-3a004759]{padding-top:2px;display:inline-block}.option__title[data-v-3a004759]{margin-inline-start:5px;color:var(--color-main-text)}.option__icon[data-v-3a004759]{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,CAKD,gCACC,uBAAA,CAED,iCACC,eAAA,CACA,oBAAA,CAIF,gCACC,uBAAA,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\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-inline-start: 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:""}]);const o=c},22592(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,"/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */.actions__item[data-v-4b7616d2]{display:flex;flex-wrap:wrap;flex-direction:column;flex-grow:1;padding:10px;border-radius:var(--border-radius-large);margin-inline:-1px 20px;margin-bottom:20px}.actions__item .icon[data-v-4b7616d2]{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-4b7616d2]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-4b7616d2]{width:100%;margin-top:10px;padding-inline-start:60px}h3[data-v-4b7616d2],small[data-v-4b7616d2]{padding:6px;display:block}h3[data-v-4b7616d2]{margin:0;padding:0;font-weight:600}small[data-v-4b7616d2]{font-size:10pt;flex-grow:1}.colored[data-v-4b7616d2]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-4b7616d2],.colored:not(.more) small[data-v-4b7616d2]{color:var(--color-primary-element-text)}.actions__item[data-v-4b7616d2]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-4b7616d2]{padding-top:5px;text-align:start;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-4b7616d2]{padding:0}.actions__item:not(.colored) .icon[data-v-4b7616d2]{width:50px;margin:0;margin-inline-end:10px}.actions__item:not(.colored) .icon[data-v-4b7616d2]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-4b7616d2]{filter:var(--background-invert-if-bright)}","",{version:3,sources:["webpack://./apps/workflowengine/src/styles/operation.scss"],names:[],mappings:"AAAA;;;EAAA,CAIA,gCACC,YAAA,CACA,cAAA,CACA,qBAAA,CACA,WAAA,CACA,YAAA,CACA,wCAAA,CACA,uBAAA,CACA,kBAAA,CAGD,sCACC,aAAA,CACA,UAAA,CACA,WAAA,CACA,yBAAA,CACA,iCAAA,CACA,eAAA,CACA,kBAAA,CACA,2BAAA,CAGD,6CACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAGD,wCACC,UAAA,CACA,eAAA,CACA,yBAAA,CAGD,2CACC,WAAA,CACA,aAAA,CAGD,oBACC,QAAA,CACA,SAAA,CACA,eAAA,CAGD,uBACC,cAAA,CACA,WAAA,CAGD,qCACC,6CAAA,CACA,mFACC,uCAAA,CAIF,8CACC,kBAAA,CAEA,0EACC,eAAA,CACA,gBAAA,CACA,wBAAA,CACA,gFACC,SAAA,CAGF,oDACC,UAAA,CACA,QAAA,CACA,sBAAA,CACA,sEACC,yCAAA,CAKH,uCACC,yCAAA",sourcesContent:["/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n.actions__item {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tpadding: 10px;\n\tborder-radius: var(--border-radius-large);\n\tmargin-inline: -1px 20px;\n\tmargin-bottom: 20px;\n}\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\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\n.actions__item_options {\n\twidth: 100%;\n\tmargin-top: 10px;\n\tpadding-inline-start: 60px;\n}\n\nh3, small {\n\tpadding: 6px;\n\tdisplay: block;\n}\n\nh3 {\n\tmargin: 0;\n\tpadding: 0;\n\tfont-weight: 600;\n}\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: start;\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-inline-end: 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:""}]);const o=c},12460(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,".buttons[data-v-51f314c8]{display:flex;justify-content:end}.buttons button[data-v-51f314c8]{margin-inline-start:5px}.buttons button[data-v-51f314c8]:last-child{margin-inline-end:10px}.error-message[data-v-51f314c8]{float:right;margin-inline-end:10px}.flow-icon[data-v-51f314c8]{width:44px}.rule[data-v-51f314c8]{display:flex;flex-wrap:wrap;border-inline-start:5px solid var(--color-primary-element)}.rule .trigger[data-v-51f314c8],.rule .action[data-v-51f314c8]{flex-grow:1;min-height:100px;max-width:920px}.rule .action[data-v-51f314c8]{max-width:400px;position:relative}.rule .icon-confirm[data-v-51f314c8]{background-position:right 27px;padding-inline-end:20px;margin-inline-end:20px}.trigger p[data-v-51f314c8],.action p[data-v-51f314c8]{min-height:34px;display:flex}.trigger p>span[data-v-51f314c8],.action p>span[data-v-51f314c8]{min-width:50px;text-align:end;color:var(--color-text-maxcontrast);padding-inline-end:10px;padding-top:6px}.trigger p .multiselect[data-v-51f314c8],.action p .multiselect[data-v-51f314c8]{flex-grow:1;max-width:300px}.trigger p:first-child span[data-v-51f314c8]{padding-top:3px}.trigger p[data-v-51f314c8]:last-child{padding-top:8px}.check--add[data-v-51f314c8]{background-position:7px center;background-color:rgba(0,0,0,0);padding-inline-start:6px;margin:0;width:180px;border-radius:var(--border-radius);color:var(--color-text-maxcontrast);font-weight:normal;text-align:start;font-size:1em}@media(max-width: 1400px){.rule[data-v-51f314c8],.rule .trigger[data-v-51f314c8],.rule .action[data-v-51f314c8]{width:100%;max-width:100%}.rule .flow-icon[data-v-51f314c8]{display:none}}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Rule.vue"],names:[],mappings:"AAEA,0BACC,YAAA,CACA,mBAAA,CAEA,iCACC,uBAAA,CAED,4CACC,sBAAA,CAIF,gCACC,WAAA,CACA,sBAAA,CAGD,4BACC,UAAA,CAGD,uBACC,YAAA,CACA,cAAA,CACA,0DAAA,CAEA,+DAEC,WAAA,CACA,gBAAA,CACA,eAAA,CAED,+BACC,eAAA,CACA,iBAAA,CAED,qCACC,8BAAA,CACA,uBAAA,CACA,sBAAA,CAIF,uDACC,eAAA,CACA,YAAA,CAEA,iEACC,cAAA,CACA,cAAA,CACA,mCAAA,CACA,uBAAA,CACA,eAAA,CAED,iFACC,WAAA,CACA,eAAA,CAIF,6CACE,eAAA,CAGF,uCACE,eAAA,CAGF,6BACC,8BAAA,CACA,8BAAA,CACA,wBAAA,CACA,QAAA,CACA,WAAA,CACA,kCAAA,CACA,mCAAA,CACA,kBAAA,CACA,gBAAA,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-inline-start: 5px;\n\t}\n\tbutton:last-child{\n\t\tmargin-inline-end: 10px;\n\t}\n}\n\n.error-message {\n\tfloat: right;\n\tmargin-inline-end: 10px;\n}\n\n.flow-icon {\n\twidth: 44px;\n}\n\n.rule {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tborder-inline-start: 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-inline-end: 20px;\n\t\tmargin-inline-end: 20px;\n\t}\n}\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: end;\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-inline-end: 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\n.trigger p:first-child span {\n\t\tpadding-top: 3px;\n}\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-inline-start: 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: start;\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:""}]);const o=c},86104(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,"/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */.actions__item[data-v-2c1a2344]{display:flex;flex-wrap:wrap;flex-direction:column;flex-grow:1;padding:10px;border-radius:var(--border-radius-large);margin-inline:-1px 20px;margin-bottom:20px}.actions__item .icon[data-v-2c1a2344]{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-2c1a2344]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-2c1a2344]{width:100%;margin-top:10px;padding-inline-start:60px}h3[data-v-2c1a2344],small[data-v-2c1a2344]{padding:6px;display:block}h3[data-v-2c1a2344]{margin:0;padding:0;font-weight:600}small[data-v-2c1a2344]{font-size:10pt;flex-grow:1}.colored[data-v-2c1a2344]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-2c1a2344],.colored:not(.more) small[data-v-2c1a2344]{color:var(--color-primary-element-text)}.actions__item[data-v-2c1a2344]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-2c1a2344]{padding-top:5px;text-align:start;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-2c1a2344]{padding:0}.actions__item:not(.colored) .icon[data-v-2c1a2344]{width:50px;margin:0;margin-inline-end:10px}.actions__item:not(.colored) .icon[data-v-2c1a2344]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-2c1a2344]{filter:var(--background-invert-if-bright)}#workflowengine[data-v-2c1a2344]{border-bottom:1px solid var(--color-border)}.section[data-v-2c1a2344]{max-width:100vw}.section h2.configured-flows[data-v-2c1a2344]{margin-top:50px;margin-bottom:0}.actions[data-v-2c1a2344]{display:flex;flex-wrap:wrap;max-width:1200px}.actions .actions__item[data-v-2c1a2344]{max-width:280px;flex-basis:250px}.actions__more[data-v-2c1a2344]{margin-bottom:10px}.slide-enter-active[data-v-2c1a2344]{-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-2c1a2344]{-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-2c1a2344],.slide-leave[data-v-2c1a2344]{max-height:500px;overflow:hidden}.slide-enter[data-v-2c1a2344],.slide-leave-to[data-v-2c1a2344]{overflow:hidden;max-height:0;padding-top:0;padding-bottom:0}.actions__item.more[data-v-2c1a2344]{background-color:var(--color-background-dark)}","",{version:3,sources:["webpack://./apps/workflowengine/src/styles/operation.scss","webpack://./apps/workflowengine/src/components/Workflow.vue"],names:[],mappings:"AAAA;;;EAAA,CAIA,gCACC,YAAA,CACA,cAAA,CACA,qBAAA,CACA,WAAA,CACA,YAAA,CACA,wCAAA,CACA,uBAAA,CACA,kBAAA,CAGD,sCACC,aAAA,CACA,UAAA,CACA,WAAA,CACA,yBAAA,CACA,iCAAA,CACA,eAAA,CACA,kBAAA,CACA,2BAAA,CAGD,6CACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAGD,wCACC,UAAA,CACA,eAAA,CACA,yBAAA,CAGD,2CACC,WAAA,CACA,aAAA,CAGD,oBACC,QAAA,CACA,SAAA,CACA,eAAA,CAGD,uBACC,cAAA,CACA,WAAA,CAGD,qCACC,6CAAA,CACA,mFACC,uCAAA,CAIF,8CACC,kBAAA,CAEA,0EACC,eAAA,CACA,gBAAA,CACA,wBAAA,CACA,gFACC,SAAA,CAGF,oDACC,UAAA,CACA,QAAA,CACA,sBAAA,CACA,sEACC,yCAAA,CAKH,uCACC,yCAAA,CClFD,iCACC,2CAAA,CAGD,0BACC,eAAA,CAEA,8CACC,eAAA,CACA,eAAA,CAIF,0BACC,YAAA,CACA,cAAA,CACA,gBAAA,CACA,yCACC,eAAA,CACA,gBAAA,CAIF,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,CAGD,qCACC,6CAAA",sourcesContent:["/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n.actions__item {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tpadding: 10px;\n\tborder-radius: var(--border-radius-large);\n\tmargin-inline: -1px 20px;\n\tmargin-bottom: 20px;\n}\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\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\n.actions__item_options {\n\twidth: 100%;\n\tmargin-top: 10px;\n\tpadding-inline-start: 60px;\n}\n\nh3, small {\n\tpadding: 6px;\n\tdisplay: block;\n}\n\nh3 {\n\tmargin: 0;\n\tpadding: 0;\n\tfont-weight: 600;\n}\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: start;\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-inline-end: 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",'\n@use "./../styles/operation.scss";\n\n#workflowengine {\n\tborder-bottom: 1px solid var(--color-border);\n}\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\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\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.actions__item.more {\n\tbackground-color: var(--color-background-dark);\n}\n'],sourceRoot:""}]);const o=c},92042(M,z,b){"use strict";b.d(z,{A:()=>o});var p=b(71354),O=b.n(p),A=b(76314),c=b.n(A)()(O());c.push([M.id,"\n.v-select[data-v-31db6870],\ninput[type='text'][data-v-31db6870] {\n\twidth: 100%;\n}\ninput[type='text'][data-v-31db6870] {\n\tmin-height: 48px;\n}\n.option__icon[data-v-31db6870] {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n.option__title[data-v-31db6870] {\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:";AA6JA;;CAEA,WAAA;AACA;AAEA;CACA,gBAAA;AACA;AAEA;CACA,qBAAA;CACA,eAAA;CACA,2BAAA;CACA,sBAAA;AACA;AAEA;CACA,oBAAA;CACA,wBAAA;CACA,sBAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n\n