(()=>{var M,z,b,p={91902:(M,z,b)=>{"use strict";var p=b(85471),O=b(95353),A=b(65043),c=b(56760),o=b(32981),q=b(63814);const W=0===(0,o.C)("workflowengine","scope")?"global":"user",d=M=>(0,q.KT)("apps/workflowengine/api/v1/workflows/{scopeValue}",{scopeValue:W})+M+"?format=json";b(51257),p.Ay.use(O.Ay);const n=new O.il({state:{rules:[],scope:(0,o.C)("workflowengine","scope"),appstoreEnabled:(0,o.C)("workflowengine","appstoreenabled"),operations:(0,o.C)("workflowengine","operators"),plugins:p.Ay.observable({checks:{},operators:{}}),entities:(0,o.C)("workflowengine","entities"),events:(0,o.C)("workflowengine","entities").map((M=>M.events.map((z=>({id:`${M.id}::${z.eventName}`,entity:M,...z}))))).flat(),checks:(0,o.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=Object.assign({},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=Object.assign({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 A.Ay.get(d(""));Object.values(z.ocs.data).flat().forEach((z=>{M.commit("addRule",z)}))},async createNewRule(M,z){await(0,c.C)();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,c.C)(),b=z.id<0?await A.Ay.post(d(""),z):await A.Ay.put(d(`/${z.id}`),z),p.Ay.set(z,"id",b.data.ocs.data.id),M.commit("updateRule",z)},async deleteRule(M,z){await(0,c.C)(),await A.Ay.delete(d(`/${z.id}`)),M.commit("removeRule",z)},setValid(M,z){let{rule:b,valid:p}=z;b.valid=p,M.commit("updateRule",b)}},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=>z=>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)),{})}});var a=b(94849),e=b(24764),i=b(18503),R=b(70995),r=b(33691),L=b(54373),f=b(66001),u=b(67607),s=b(85168);const B={name:"Event",components:{NcSelect:u.A},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,s.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)}}};var N=b(85072),l=b.n(N),X=b(97825),m=b.n(X),C=b(77659),T=b.n(C),g=b(55056),h=b.n(g),v=b(10540),E=b.n(v),w=b(41113),k=b.n(w),S=b(22328),y={};y.styleTagTransform=k(),y.setAttributes=h(),y.insert=T().bind(null,"head"),y.domAPI=m(),y.insertStyleElement=E(),l()(S.A,y),S.A&&S.A.locals&&S.A.locals;var P=b(14486);const _=(0,P.A)(B,(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,"48b8721e",null).exports;var D=b(2895),x=b.n(D);const j={name:"Check",components:{NcActionButton:i.A,NcActions:e.A,NcSelect:u.A,CloseIcon:f.A},directives:{ClickOutside:x()},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},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"(){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)),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(){const M=this.operators.findIndex((M=>this.check.operator===M.operator));this.check.class===this.currentOption.class&&-1!==M||(this.currentOperator=this.operators[0]),this.check.class=this.currentOption.class,this.check.operator=this.currentOperator.operator,this.validate(),this.$emit("update",this.check)}}};var I=b(39841),U={};U.styleTagTransform=k(),U.setAttributes=h(),U.insert=T().bind(null,"head"),U.domAPI=m(),U.insertStyleElement=E(),l()(I.A,U),I.A&&I.A.locals&&I.A.locals;const G=(0,P.A)(j,(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,"b808c5aa",null).exports,F={name:"Operation",components:{NcButton:R.A},props:{operation:{type:Object,required:!0},colored:{type:Boolean,default:!0}}};var H=b(19932),V={};V.styleTagTransform=k(),V.setAttributes=h(),V.insert=T().bind(null,"head"),V.domAPI=m(),V.insertStyleElement=E(),l()(H.A,V),H.A&&H.A.locals&&H.A.locals;const K=(0,P.A)(F,(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,"19cb8ba2",null).exports,Q={name:"Rule",components:{ArrowRight:r.A,Check:G,CheckMark:L.A,Close:f.A,Event:_,NcActionButton:i.A,NcActions:e.A,NcButton:R.A,Operation:K},directives:{Tooltip:a.A},props:{rule:{type:Object,required:!0}},data(){return{editing:!1,checks:[],error:null,dirty:this.rule.id<0,originalRule:null}},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:"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(){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))},methods:{async updateOperation(M){this.$set(this.rule,"operation",M),await 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){console.error("Failed to save operation"),this.error=M.response.data.ocs.meta.message}},async deleteRule(){try{await this.$store.dispatch("deleteRule",this.rule)}catch(M){console.error("Failed to delete operation"),this.error=M.response.data.ocs.meta.message}},cancelRule(){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)},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:""})}}};var J=b(91906),$={};$.styleTagTransform=k(),$.setAttributes=h(),$.insert=T().bind(null,"head"),$.domAPI=m(),$.insertStyleElement=E(),l()(J.A,$),J.A&&J.A.locals&&J.A.locals;const Y=(0,P.A)(Q,(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,"0abc5b77",null).exports;var Z=b(28326),MM=b(6695),zM=b(88837),bM=b(33388);const pM={name:"Workflow",components:{MenuDown:b(25384).A,MenuUp:bM.A,NcButton:R.A,NcEmptyContent:Z.A,NcIconSvgWrapper:MM.A,NcSettingsSection:zM.A,Operation:K,Rule:Y},data:()=>({showMoreOperations:!1,appstoreUrl:(0,q.Jv)("settings/apps/workflow"),workflowDocUrl:(0,o.C)("workflowengine","doc-url"),WorkflowOffSvg:'\n \n \n\n'}),computed:{...(0,O.L8)({rules:"getRules"}),...(0,O.aH)({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 OM=b(69391),AM={};AM.styleTagTransform=k(),AM.setAttributes=h(),AM.insert=T().bind(null,"head"),AM.domAPI=m(),AM.insertStyleElement=E(),l()(OM.A,AM),OM.A&&OM.A.locals&&OM.A.locals;const cM=(0,P.A)(pM,(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,"64b4f02c",null).exports,oM=/^\/(.*)\/([gui]{0,3})$/,qM=/^(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])$/,WM=/^(([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 dM=b(25521);const nM={props:{value:{type:String,default:""},check:{type:Object,default:()=>({})}},data:()=>({newValue:""}),watch:{value:{immediate:!0,handler(M){this.updateInternalValue(M)}}},methods:{updateInternalValue(M){this.newValue=M}}},aM={name:"FileMimeType",components:{NcEllipsisedOption:dM.A,NcSelect:u.A},mixins:[nM],data:()=>({predefinedTypes:[{icon:"icon-folder",label:t("workflowengine","Folder"),id:"httpd/unix-directory"},{icon:"icon-picture",label:t("workflowengine","Images"),id:"/image\\/.*/"},{iconUrl:(0,q.d0)("core","filetypes/x-office-document"),label:t("workflowengine","Office documents"),id:"/(vnd\\.(ms-|openxmlformats-|oasis\\.opendocument).*)$/"},{iconUrl:(0,q.d0)("core","filetypes/application-pdf"),label:t("workflowengine","PDF documents"),id:"application/pdf"}]}),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 mimetype"),id:this.newValue}}},methods:{validateRegex:M=>null!==/^\/(.*)\/([gui]{0,3})$/.exec(M),setValue(M){null!==M&&(this.newValue=M.id,this.$emit("input",this.newValue))},updateCustom(M){this.newValue=M.target.value,this.$emit("input",this.newValue)}}};var eM=b(41084),iM={};iM.styleTagTransform=k(),iM.setAttributes=h(),iM.insert=T().bind(null,"head"),iM.domAPI=m(),iM.insertStyleElement=E(),l()(eM.A,iM),eM.A&&eM.A.locals&&eM.A.locals;const RM=(0,P.A)(aM,(function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{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,"0e41caa8",null).exports,tM={name:"FileSystemTag",components:{NcSelectTags:b(5212).A},props:{value:{type:String,default:""}},data:()=>({newValue:[]}),watch:{value(){this.updateValue()}},beforeMount(){this.updateValue()},methods:{updateValue(){""!==this.value?this.newValue=parseInt(this.value):this.newValue=null},update(){this.$emit("input",this.newValue||"")}}},rM=(0,P.A)(tM,(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,LM=()=>[{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")}],fM=[{class:"OCA\\WorkflowEngine\\Check\\FileName",name:t("workflowengine","File name"),operators:LM,placeholder:M=>"matches"===M.operator||"!matches"===M.operator?"/^dummy-.+$/i":"filename.txt",validate:M=>{return"matches"!==M.operator&&"!matches"!==M.operator||!!(z=M.value)&&null!==oM.exec(z);var z}},{class:"OCA\\WorkflowEngine\\Check\\FileMimeType",name:t("workflowengine","File MIME type"),operators:LM,component:RM},{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:M=>"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!==WM.exec(z):function(M){return!!M&&null!==qM.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")}],component:rM}],uM={name:"RequestUserAgent",components:{NcEllipsisedOption:dM.A,NcSelect:u.A},mixins:[nM],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(){return this.matchingPredefined?this.matchingPredefined:{icon:"icon-settings-dark",label:t("workflowengine","Custom user agent"),id:this.newValue}}},methods:{validateRegex:M=>null!==/^\/(.*)\/([gui]{0,3})$/.exec(M),setValue(M){null!==M&&(this.newValue=M.id,this.$emit("input",this.newValue))},updateCustom(M){this.newValue=M.target.value,this.$emit("input",this.newValue)}}};var sM=b(3481),BM={};BM.styleTagTransform=k(),BM.setAttributes=h(),BM.insert=T().bind(null,"head"),BM.domAPI=m(),BM.insertStyleElement=E(),l()(sM.A,BM),sM.A&&sM.A.locals&&sM.A.locals;const NM=(0,P.A)(uM,(function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{value:M.currentValue,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)]}}])}),M._v(" "),M.isPredefined?M._e():z("input",{attrs:{type:"text"},domProps:{value:M.currentValue.id},on:{input:M.updateCustom}})],1)}),[],!1,null,"6d7f443f",null).exports;var lM=b(84743),XM=b.n(lM);const mM=XM().tz.names(),CM={name:"RequestTime",components:{NcSelect:u.A},mixins:[nM],props:{value:{type:String,default:""}},data:()=>({timezones:mM,valid:!1,newValue:{startTime:null,endTime:null,timezone:XM().tz.guess()}}),mounted(){this.validate()},methods:{updateInternalValue(M){try{const z=JSON.parse(M);2===z.length&&(this.newValue={startTime:z[0].split(" ",2)[0],endTime:z[1].split(" ",2)[0],timezone:z[0].split(" ",2)[1]})}catch(M){}},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!==XM().tz.zone(this.newValue.timezone),this.valid?this.$emit("valid"):this.$emit("invalid"),this.valid},update(){if(null===this.newValue.timezone&&(this.newValue.timezone=XM().tz.guess()),this.validate()){const M=`["${this.newValue.startTime} ${this.newValue.timezone}","${this.newValue.endTime} ${this.newValue.timezone}"]`;this.$emit("input",M)}}}};var TM=b(2886),gM={};gM.styleTagTransform=k(),gM.setAttributes=h(),gM.insert=T().bind(null,"head"),gM.domAPI=m(),gM.insertStyleElement=E(),l()(TM.A,gM),TM.A&&TM.A.locals&&TM.A.locals;const hM=(0,P.A)(CM,(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,"6c653c2e",null).exports,vM={name:"RequestURL",components:{NcEllipsisedOption:dM.A,NcSelect:u.A},mixins:[nM],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.check.operator||"!matches"===this.check.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("input",this.newValue))},updateCustom(M){this.newValue=M.target.value,this.$emit("input",this.newValue)}}};var EM=b(78133),wM={};wM.styleTagTransform=k(),wM.setAttributes=h(),wM.insert=T().bind(null,"head"),wM.domAPI=m(),wM.insertStyleElement=E(),l()(EM.A,wM),EM.A&&EM.A.locals&&EM.A.locals;const kM=(0,P.A)(vM,(function(){var M=this,z=M._self._c;return z("div",[z("NcSelect",{attrs:{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)]}}])}),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,"15ae3896",null).exports;var SM=b(53334);const yM=[],PM={isLoading:!1},_M={name:"RequestUserGroup",components:{NcSelect:u.A},props:{value:{type:String,default:""},check:{type:Object,default:()=>({})}},data:()=>({groups:yM,status:PM}),computed:{currentValue(){return this.groups.find((M=>M.id===this.value))||null}},async mounted(){0===this.groups.length&&await this.searchAsync(""),null===this.currentValue&&this.value&&await this.searchAsync(this.value)},methods:{t:SM.Tl,searchAsync(M){if(!this.status.isLoading)return this.status.isLoading=!0,A.Ay.get((0,q.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}),(M=>{console.error("Error while loading group list",M.response)}))},addGroup(M){-1===this.groups.findIndex((z=>z.id===M.id))&&this.groups.push(M)}}};var DM=b(96158),xM={};xM.styleTagTransform=k(),xM.setAttributes=h(),xM.insert=T().bind(null,"head"),xM.domAPI=m(),xM.insertStyleElement=E(),l()(DM.A,xM),DM.A&&DM.A.locals&&DM.A.locals;const jM=(0,P.A)(_M,(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,value:M.currentValue,label:"displayname"},on:{search:M.searchAsync,input:z=>M.$emit("input",z.id)}})],1)}),[],!1,null,"f6985102",null).exports,IM=[...fM,{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:kM},{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:hM},{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:NM},{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")}],component:jM}];window.OCA.WorkflowEngine=Object.assign({},OCA.WorkflowEngine,{registerCheck(M){n.commit("addPluginCheck",M)},registerOperator(M){n.commit("addPluginOperator",M)}}),IM.forEach((M=>window.OCA.WorkflowEngine.registerCheck(M))),p.Ay.use(O.Ay),p.Ay.prototype.t=t,new(p.Ay.extend(cM))({store:n}).$mount("#workflowengine")},39841:(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-b808c5aa]{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;padding-inline-end:20px}.check>*[data-v-b808c5aa]:not(.close){width:180px}.check>.comparator[data-v-b808c5aa]{min-width:200px;width:200px}.check>.option[data-v-b808c5aa]{min-width:260px;width:260px;min-height:48px}.check>.option>input[type=text][data-v-b808c5aa]{min-height:48px}.check>.v-select[data-v-b808c5aa],.check>.button-vue[data-v-b808c5aa],.check>input[type=text][data-v-b808c5aa]{margin-inline-end:5px;margin-bottom:5px}input[type=text][data-v-b808c5aa]{margin:0}.invalid[data-v-b808c5aa]{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,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,0CAAA",sourceRoot:""}]);const o=c},41084:(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-0e41caa8],input[type=text][data-v-0e41caa8]{width:100%}input[type=text][data-v-0e41caa8]{min-height:48px}.option__icon[data-v-0e41caa8],.option__icon-img[data-v-0e41caa8]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__icon-img[data-v-0e41caa8]{text-align:center}.option__title[data-v-0e41caa8]{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",sourceRoot:""}]);const o=c},2886:(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-6c653c2e]{display:flex;flex-grow:1;flex-wrap:wrap;max-width:180px}.timeslot .multiselect[data-v-6c653c2e]{width:100%;margin-bottom:5px}.timeslot .multiselect[data-v-6c653c2e] .multiselect__tags:not(:hover):not(:focus):not(:active){border:1px solid rgba(0,0,0,0)}.timeslot input[type=text][data-v-6c653c2e]{width:50%;margin:0;margin-bottom:5px;min-height:48px}.timeslot input[type=text].timeslot--start[data-v-6c653c2e]{margin-inline-end:5px;width:calc(50% - 5px)}.timeslot .invalid-hint[data-v-6c653c2e]{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",sourceRoot:""}]);const o=c},78133:(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-15ae3896],input[type=text][data-v-15ae3896]{width:100%}input[type=text][data-v-15ae3896]{min-height:48px}.option__icon[data-v-15ae3896]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__title[data-v-15ae3896]{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",sourceRoot:""}]);const o=c},22328:(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-48b8721e]{margin-bottom:5px}.event__trigger[data-v-48b8721e]{max-width:550px}.isComplex img[data-v-48b8721e]{vertical-align:text-top}.isComplex span[data-v-48b8721e]{padding-top:2px;display:inline-block}.option__title[data-v-48b8721e]{margin-inline-start:5px;color:var(--color-main-text)}.option__icon[data-v-48b8721e]{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",sourceRoot:""}]);const o=c},19932:(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-19cb8ba2]{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-19cb8ba2]{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-19cb8ba2]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-19cb8ba2]{width:100%;margin-top:10px;padding-inline-start:60px}h3[data-v-19cb8ba2],small[data-v-19cb8ba2]{padding:6px;display:block}h3[data-v-19cb8ba2]{margin:0;padding:0;font-weight:600}small[data-v-19cb8ba2]{font-size:10pt;flex-grow:1}.colored[data-v-19cb8ba2]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-19cb8ba2],.colored:not(.more) small[data-v-19cb8ba2]{color:var(--color-primary-element-text)}.actions__item[data-v-19cb8ba2]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-19cb8ba2]{padding-top:5px;text-align:start;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-19cb8ba2]{padding:0}.actions__item:not(.colored) .icon[data-v-19cb8ba2]{width:50px;margin:0;margin-inline-end:10px}.actions__item:not(.colored) .icon[data-v-19cb8ba2]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-19cb8ba2]{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",sourceRoot:""}]);const o=c},91906:(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-0abc5b77]{display:flex;justify-content:end}.buttons button[data-v-0abc5b77]{margin-inline-start:5px}.buttons button[data-v-0abc5b77]:last-child{margin-inline-end:10px}.error-message[data-v-0abc5b77]{float:right;margin-inline-end:10px}.flow-icon[data-v-0abc5b77]{width:44px}.rule[data-v-0abc5b77]{display:flex;flex-wrap:wrap;border-inline-start:5px solid var(--color-primary-element)}.rule .trigger[data-v-0abc5b77],.rule .action[data-v-0abc5b77]{flex-grow:1;min-height:100px;max-width:920px}.rule .action[data-v-0abc5b77]{max-width:400px;position:relative}.rule .icon-confirm[data-v-0abc5b77]{background-position:right 27px;padding-inline-end:20px;margin-inline-end:20px}.trigger p[data-v-0abc5b77],.action p[data-v-0abc5b77]{min-height:34px;display:flex}.trigger p>span[data-v-0abc5b77],.action p>span[data-v-0abc5b77]{min-width:50px;text-align:end;color:var(--color-text-maxcontrast);padding-inline-end:10px;padding-top:6px}.trigger p .multiselect[data-v-0abc5b77],.action p .multiselect[data-v-0abc5b77]{flex-grow:1;max-width:300px}.trigger p:first-child span[data-v-0abc5b77]{padding-top:3px}.trigger p[data-v-0abc5b77]:last-child{padding-top:8px}.check--add[data-v-0abc5b77]{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-0abc5b77],.rule .trigger[data-v-0abc5b77],.rule .action[data-v-0abc5b77]{width:100%;max-width:100%}.rule .flow-icon[data-v-0abc5b77]{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",sourceRoot:""}]);const o=c},69391:(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-64b4f02c]{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-64b4f02c]{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-64b4f02c]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-64b4f02c]{width:100%;margin-top:10px;padding-inline-start:60px}h3[data-v-64b4f02c],small[data-v-64b4f02c]{padding:6px;display:block}h3[data-v-64b4f02c]{margin:0;padding:0;font-weight:600}small[data-v-64b4f02c]{font-size:10pt;flex-grow:1}.colored[data-v-64b4f02c]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-64b4f02c],.colored:not(.more) small[data-v-64b4f02c]{color:var(--color-primary-element-text)}.actions__item[data-v-64b4f02c]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-64b4f02c]{padding-top:5px;text-align:start;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-64b4f02c]{padding:0}.actions__item:not(.colored) .icon[data-v-64b4f02c]{width:50px;margin:0;margin-inline-end:10px}.actions__item:not(.colored) .icon[data-v-64b4f02c]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-64b4f02c]{filter:var(--background-invert-if-bright)}#workflowengine[data-v-64b4f02c]{border-bottom:1px solid var(--color-border)}.section[data-v-64b4f02c]{max-width:100vw}.section h2.configured-flows[data-v-64b4f02c]{margin-top:50px;margin-bottom:0}.actions[data-v-64b4f02c]{display:flex;flex-wrap:wrap;max-width:1200px}.actions .actions__item[data-v-64b4f02c]{max-width:280px;flex-basis:250px}.actions__more[data-v-64b4f02c]{margin-bottom:10px}.slide-enter-active[data-v-64b4f02c]{-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-64b4f02c]{-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-64b4f02c],.slide-leave[data-v-64b4f02c]{max-height:500px;overflow:hidden}.slide-enter[data-v-64b4f02c],.slide-leave-to[data-v-64b4f02c]{overflow:hidden;max-height:0;padding-top:0;padding-bottom:0}.actions__item.more[data-v-64b4f02c]{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",sourceRoot:""}]);const o=c},3481:(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-6d7f443f],\ninput[type='text'][data-v-6d7f443f] {\n\twidth: 100%;\n}\ninput[type='text'][data-v-6d7f443f] {\n\tmin-height: 48px;\n}\n.option__icon[data-v-6d7f443f] {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n.option__title[data-v-6d7f443f] {\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:";AAkIA;;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\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\n\n\n