/*! For license information please see workflowengine-workflowengine.js.LICENSE.txt */ (()=>{var M,z,b,p={16393:(M,z,b)=>{"use strict";var p=b(85471),O=b(95353),A=b(65043),c=b(32981),o=b(63814);const q=0===(0,c.C)("workflowengine","scope")?"global":"user",W=M=>(0,o.KT)("apps/workflowengine/api/v1/workflows/{scopeValue}",{scopeValue:q})+M+"?format=json";var n=b(56760);b(51257),p.Ay.use(O.Ay);const d=new O.il({state:{rules:[],scope:(0,c.C)("workflowengine","scope"),appstoreEnabled:(0,c.C)("workflowengine","appstoreenabled"),operations:(0,c.C)("workflowengine","operators"),plugins:p.Ay.observable({checks:{},operators:{}}),entities:(0,c.C)("workflowengine","entities"),events:(0,c.C)("workflowengine","entities").map((M=>M.events.map((z=>({id:"".concat(M.id,"::").concat(z.eventName),entity:M,...z}))))).flat(),checks:(0,c.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(W(""));Object.values(z.ocs.data).flat().forEach((z=>{M.commit("addRule",z)}))},async createNewRule(M,z){await(0,n.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,n.C)(),b=z.id<0?await A.Ay.post(W(""),z):await A.Ay.put(W("/".concat(z.id)),z),p.Ay.set(z,"id",b.data.ocs.data.id),M.commit("updateRule",z)},async deleteRule(M,z){await(0,n.C)(),await A.Ay.delete(W("/".concat(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(18300),e=b(24764),i=b(89257),R=b(54332),r=b(9191),f=b(85338),L=b(24325),u=b(67607),s=b(85168);const l={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 B=b(85072),N=b.n(B),X=b(97825),m=b.n(X),C=b(77659),T=b.n(C),g=b(55056),h=b.n(g),v=b(10540),w=b.n(v),E=b(41113),k=b.n(E),S=b(49400),x={};x.styleTagTransform=k(),x.setAttributes=h(),x.insert=T().bind(null,"head"),x.domAPI=m(),x.insertStyleElement=w(),N()(S.A,x),S.A&&S.A.locals&&S.A.locals;var y=b(14486);const _=(0,y.A)(l,(function(){var M=this,z=M._self._c;return z("div",{staticClass:"event"},[M.operation.isComplex&&""!==M.operation.fixedEntity?z("div",{staticClass:"isComplex"},[z("img",{staticClass:"option__icon",attrs:{src:M.entity.icon,alt:""}}),M._v(" "),z("span",{staticClass:"option__title option__title_single"},[M._v(M._s(M.operation.triggerHint))])]):z("NcSelect",{staticClass:"event__trigger",attrs:{disabled:M.allEvents.length<=1,multiple:!0,options:M.allEvents,value:M.currentEvent,placeholder:M.placeholderString,label:"displayName"},on:{input:M.updateEvent},scopedSlots:M._u([{key:"option",fn:function(b){return[z("img",{staticClass:"option__icon",attrs:{src:b.entity.icon,alt:""}}),M._v(" "),z("span",{staticClass:"option__title"},[M._v(M._s(b.displayName))])]}},{key:"selected-option",fn:function(b){return[z("img",{staticClass:"option__icon",attrs:{src:b.entity.icon,alt:""}}),M._v(" "),z("span",{staticClass:"option__title"},[M._v(M._s(b.displayName))])]}}])})],1)}),[],!1,null,"d4892b64",null).exports;var P=b(2895),D=b.n(P);const j={name:"Check",components:{NcActionButton:i.A,NcActions:e.A,NcSelect:u.A,CloseIcon:L.A},directives:{ClickOutside:D()},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(32173),U={};U.styleTagTransform=k(),U.setAttributes=h(),U.insert=T().bind(null,"head"),U.domAPI=m(),U.insertStyleElement=w(),N()(I.A,U),I.A&&I.A.locals&&I.A.locals;const G=(0,y.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,"07a2739b",null).exports,F={name:"Operation",components:{NcButton:R.A},props:{operation:{type:Object,required:!0},colored:{type:Boolean,default:!0}}};var H=b(17203),V={};V.styleTagTransform=k(),V.setAttributes=h(),V.insert=T().bind(null,"head"),V.domAPI=m(),V.insertStyleElement=w(),N()(H.A,V),H.A&&H.A.locals&&H.A.locals;const K=(0,y.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(".concat(M.operation.icon,")")}}),M._v(" "),z("div",{staticClass:"actions__item__description"},[z("h3",[M._v(M._s(M.operation.name))]),M._v(" "),z("small",[M._v(M._s(M.operation.description))]),M._v(" "),M.colored?z("NcButton",[M._v("\n\t\t\t"+M._s(M.t("workflowengine","Add new flow"))+"\n\t\t")]):M._e()],1),M._v(" "),z("div",{staticClass:"actions__item_options"},[M._t("default")],2)])}),[],!1,null,"a0480332",null).exports;var Q=b(96763);const J={name:"Rule",components:{ArrowRight:r.A,Check:G,CheckMark:f.A,Close:L.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(M){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){Q.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){Q.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 Y=b(65768),$={};$.styleTagTransform=k(),$.setAttributes=h(),$.insert=T().bind(null,"head"),$.domAPI=m(),$.insertStyleElement=w(),N()(Y.A,$),Y.A&&Y.A.locals&&Y.A.locals;const Z=(0,y.A)(J,(function(){var M=this,z=M._self._c;return M.operation?z("div",{staticClass:"section rule",style:{borderLeftColor:M.operation.color||""}},[z("div",{staticClass:"trigger"},[z("p",[z("span",[M._v(M._s(M.t("workflowengine","When")))]),M._v(" "),z("Event",{attrs:{rule:M.rule},on:{update:M.updateRule}})],1),M._v(" "),M._l(M.rule.checks,(function(b,p){return z("p",{key:p},[z("span",[M._v(M._s(M.t("workflowengine","and")))]),M._v(" "),z("Check",{attrs:{check:b,rule:M.rule},on:{update:M.updateRule,validate:M.validate,remove:function(z){return M.removeCheck(b)}}})],1)})),M._v(" "),z("p",[z("span"),M._v(" "),M.lastCheckComplete?z("input",{staticClass:"check--add",attrs:{type:"button",value:M.t("workflowengine","Add a new filter")},on:{click:M.onAddFilter}}):M._e()])],2),M._v(" "),z("div",{staticClass:"flow-icon icon-confirm"}),M._v(" "),z("div",{staticClass:"action"},[z("Operation",{attrs:{operation:M.operation,colored:!1}},[M.operation.options?z(M.operation.options,{tag:"component",on:{input:M.updateOperation},model:{value:M.rule.operation,callback:function(z){M.$set(M.rule,"operation",z)},expression:"rule.operation"}}):M._e()],1),M._v(" "),z("div",{staticClass:"buttons"},[M.rule.id<-1||M.dirty?z("NcButton",{on:{click:M.cancelRule}},[M._v("\n\t\t\t\t"+M._s(M.t("workflowengine","Cancel"))+"\n\t\t\t")]):M.dirty?M._e():z("NcButton",{on:{click:M.deleteRule}},[M._v("\n\t\t\t\t"+M._s(M.t("workflowengine","Delete"))+"\n\t\t\t")]),M._v(" "),z("NcButton",{attrs:{type:M.ruleStatus.type},on:{click:M.saveRule},scopedSlots:M._u([{key:"icon",fn:function(){return[z(M.ruleStatus.icon,{tag:"component",attrs:{size:20}})]},proxy:!0}],null,!1,2383918876)},[M._v("\n\t\t\t\t"+M._s(M.ruleStatus.title)+"\n\t\t\t")])],1),M._v(" "),M.error?z("p",{staticClass:"error-message"},[M._v("\n\t\t\t"+M._s(M.error)+"\n\t\t")]):M._e()],1)]):M._e()}),[],!1,null,"3def8966",null).exports;var MM=b(34196),zM=b(6695),bM=b(88837),pM=b(33017);const OM={name:"Workflow",components:{MenuDown:b(1795).A,MenuUp:pM.A,NcButton:R.A,NcEmptyContent:MM.A,NcIconSvgWrapper:zM.A,NcSettingsSection:bM.A,Operation:K,Rule:Z},data:()=>({showMoreOperations:!1,appstoreUrl:(0,o.Jv)("settings/apps/workflow"),workflowDocUrl:(0,c.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 AM=b(86648),cM={};cM.styleTagTransform=k(),cM.setAttributes=h(),cM.insert=T().bind(null,"head"),cM.domAPI=m(),cM.insertStyleElement=w(),N()(AM.A,cM),AM.A&&AM.A.locals&&AM.A.locals;const oM=(0,y.A)(OM,(function(){var M=this,z=M._self._c;return z("div",{attrs:{id:"workflowengine"}},[z("NcSettingsSection",{attrs:{name:M.t("workflowengine","Available flows"),"doc-url":M.workflowDocUrl}},[M.isAdminScope?z("p",{staticClass:"settings-hint"},[z("a",{attrs:{href:"https://nextcloud.com/developer/"}},[M._v(M._s(M.t("workflowengine","For details on how to write your own flow, check out the development documentation.")))])]):M._e(),M._v(" "),M.isUserAdmin||0!==M.mainOperations.length?z("transition-group",{staticClass:"actions",attrs:{name:"slide",tag:"div"}},[M._l(M.mainOperations,(function(b){return z("Operation",{key:b.id,attrs:{operation:b},nativeOn:{click:function(z){return M.createNewRule(b)}}})})),M._v(" "),M.showAppStoreHint?z("a",{key:"add",staticClass:"actions__item colored more",attrs:{href:M.appstoreUrl}},[z("div",{staticClass:"icon icon-add"}),M._v(" "),z("div",{staticClass:"actions__item__description"},[z("h3",[M._v(M._s(M.t("workflowengine","More flows")))]),M._v(" "),z("small",[M._v(M._s(M.t("workflowengine","Browse the App Store")))])])]):M._e()],2):z("NcEmptyContent",{attrs:{name:M.t("workflowengine","No flows installed"),description:M.isUserAdmin?void 0:M.t("workflowengine","Ask your administrator to install new flows.")},scopedSlots:M._u([{key:"icon",fn:function(){return[z("NcIconSvgWrapper",{attrs:{svg:M.WorkflowOffSvg,size:20}})]},proxy:!0}],null,!1,233236213)}),M._v(" "),M.hasMoreOperations?z("div",{staticClass:"actions__more"},[z("NcButton",{on:{click:function(z){M.showMoreOperations=!M.showMoreOperations}},scopedSlots:M._u([{key:"icon",fn:function(){return[M.showMoreOperations?z("MenuUp",{attrs:{size:20}}):z("MenuDown",{attrs:{size:20}})]},proxy:!0}],null,!1,3801522717)},[M._v("\n\t\t\t\t"+M._s(M.showMoreOperations?M.t("workflowengine","Show less"):M.t("workflowengine","Show more"))+"\n\t\t\t")])],1):M._e()],1),M._v(" "),M.mainOperations.length>0?z("NcSettingsSection",{attrs:{name:M.isAdminScope?M.t("workflowengine","Configured flows"):M.t("workflowengine","Your flows")}},[M.rules.length>0?z("transition-group",{attrs:{name:"slide"}},M._l(M.rules,(function(M){return z("Rule",{key:M.id,attrs:{rule:M}})})),1):z("NcEmptyContent",{attrs:{name:M.t("workflowengine","No flows configured")},scopedSlots:M._u([{key:"icon",fn:function(){return[z("NcIconSvgWrapper",{attrs:{svg:M.WorkflowOffSvg,size:20}})]},proxy:!0}],null,!1,233236213)})],1):M._e()],1)}),[],!1,null,"16a5974e",null).exports,qM=/^\/(.*)\/([gui]{0,3})$/,WM=/^(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])$/,nM=/^(([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(68296);const aM={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}}},eM={name:"FileMimeType",components:{NcEllipsisedOption:dM.A,NcSelect:u.A},mixins:[aM],data:()=>({predefinedTypes:[{icon:"icon-folder",label:t("workflowengine","Folder"),id:"httpd/unix-directory"},{icon:"icon-picture",label:t("workflowengine","Images"),id:"/image\\/.*/"},{iconUrl:(0,o.d0)("core","filetypes/x-office-document"),label:t("workflowengine","Office documents"),id:"/(vnd\\.(ms-|openxmlformats-|oasis\\.opendocument).*)$/"},{iconUrl:(0,o.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 tM=b(4383),iM={};iM.styleTagTransform=k(),iM.setAttributes=h(),iM.insert=T().bind(null,"head"),iM.domAPI=m(),iM.insertStyleElement=w(),N()(tM.A,iM),tM.A&&tM.A.locals&&tM.A.locals;const RM=(0,y.A)(eM,(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,"1a11f354",null).exports,rM={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||"")}}},fM=(0,y.A)(rM,(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,"3bb09106",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")}],uM=[{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!==qM.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!==nM.exec(z):function(M){return!!M&&null!==WM.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:fM}],sM={name:"RequestUserAgent",components:{NcEllipsisedOption:dM.A,NcSelect:u.A},mixins:[aM],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 lM=b(84551),BM={};BM.styleTagTransform=k(),BM.setAttributes=h(),BM.insert=T().bind(null,"head"),BM.domAPI=m(),BM.insertStyleElement=w(),N()(lM.A,BM),lM.A&&lM.A.locals&&lM.A.locals;const NM=(0,y.A)(sM,(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,"0f23bdeb",null).exports;var XM=b(84743),mM=b.n(XM);const CM=mM().tz.names(),TM={name:"RequestTime",components:{NcSelect:u.A},mixins:[aM],props:{value:{type:String,default:""}},data:()=>({timezones:CM,valid:!1,newValue:{startTime:null,endTime:null,timezone:mM().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!==mM().tz.zone(this.newValue.timezone),this.valid?this.$emit("valid"):this.$emit("invalid"),this.valid},update(){if(null===this.newValue.timezone&&(this.newValue.timezone=mM().tz.guess()),this.validate()){const M='["'.concat(this.newValue.startTime," ").concat(this.newValue.timezone,'","').concat(this.newValue.endTime," ").concat(this.newValue.timezone,'"]');this.$emit("input",M)}}}};var gM=b(87371),hM={};hM.styleTagTransform=k(),hM.setAttributes=h(),hM.insert=T().bind(null,"head"),hM.domAPI=m(),hM.insertStyleElement=w(),N()(gM.A,hM),gM.A&&gM.A.locals&&gM.A.locals;const vM=(0,y.A)(TM,(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,"7a2ecc67",null).exports,wM={name:"RequestURL",components:{NcEllipsisedOption:dM.A,NcSelect:u.A},mixins:[aM],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(78452),kM={};kM.styleTagTransform=k(),kM.setAttributes=h(),kM.insert=T().bind(null,"head"),kM.domAPI=m(),kM.insertStyleElement=w(),N()(EM.A,kM),EM.A&&EM.A.locals&&EM.A.locals;const SM=(0,y.A)(wM,(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,"1a72d97f",null).exports;var xM=b(53334),yM=b(96763);const _M=[],PM={isLoading:!1},DM={name:"RequestUserGroup",components:{NcSelect:u.A},props:{value:{type:String,default:""},check:{type:Object,default:()=>({})}},data:()=>({groups:_M,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:xM.Tl,searchAsync(M){if(!this.status.isLoading)return this.status.isLoading=!0,A.Ay.get((0,o.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=>{yM.error("Error while loading group list",M.response)}))},addGroup(M){-1===this.groups.findIndex((z=>z.id===M.id))&&this.groups.push(M)}}};var jM=b(14351),IM={};IM.styleTagTransform=k(),IM.setAttributes=h(),IM.insert=T().bind(null,"head"),IM.domAPI=m(),IM.insertStyleElement=w(),N()(jM.A,IM),jM.A&&jM.A.locals&&jM.A.locals;const UM=(0,y.A)(DM,(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,"ab7dc37a",null).exports,GM=[...uM,{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:SM},{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:vM},{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","User group membership"),operators:[{operator:"is",name:t("workflowengine","is member of")},{operator:"!is",name:t("workflowengine","is not member of")}],component:UM}];window.OCA.WorkflowEngine=Object.assign({},OCA.WorkflowEngine,{registerCheck(M){d.commit("addPluginCheck",M)},registerOperator(M){d.commit("addPluginOperator",M)}}),GM.forEach((M=>window.OCA.WorkflowEngine.registerCheck(M))),p.Ay.use(O.Ay),p.Ay.prototype.t=t,new(p.Ay.extend(oM))({store:d}).$mount("#workflowengine")},32173:(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-07a2739b]{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;padding-right:20px}.check>*[data-v-07a2739b]:not(.close){width:180px}.check>.comparator[data-v-07a2739b]{min-width:200px;width:200px}.check>.option[data-v-07a2739b]{min-width:260px;width:260px;min-height:48px}.check>.option>input[type=text][data-v-07a2739b]{min-height:48px}.check>.v-select[data-v-07a2739b],.check>.button-vue[data-v-07a2739b],.check>input[type=text][data-v-07a2739b]{margin-right:5px;margin-bottom:5px}input[type=text][data-v-07a2739b]{margin:0}.invalid[data-v-07a2739b]{border-color:var(--color-error) !important}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Check.vue"],names:[],mappings:"AACA,wBACC,YAAA,CACA,cAAA,CACA,sBAAA,CACA,UAAA,CACA,kBAAA,CAEA,sCACC,WAAA,CAED,oCACC,eAAA,CACA,WAAA,CAED,gCACC,eAAA,CACA,WAAA,CACA,eAAA,CAEA,iDACC,eAAA,CAGF,+GAGC,gBAAA,CACA,iBAAA,CAGF,kCACC,QAAA,CAED,0BACC,0CAAA",sourcesContent:["\n.check {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: flex-start; // to not stretch components vertically\n\twidth: 100%;\n\tpadding-right: 20px;\n\n\t& > *:not(.close) {\n\t\twidth: 180px;\n\t}\n\t& > .comparator {\n\t\tmin-width: 200px;\n\t\twidth: 200px;\n\t}\n\t& > .option {\n\t\tmin-width: 260px;\n\t\twidth: 260px;\n\t\tmin-height: 48px;\n\n\t\t& > input[type=text] {\n\t\t\tmin-height: 48px;\n\t\t}\n\t}\n\t& > .v-select,\n\t& > .button-vue,\n\t& > input[type=text] {\n\t\tmargin-right: 5px;\n\t\tmargin-bottom: 5px;\n\t}\n}\ninput[type=text] {\n\tmargin: 0;\n}\n.invalid {\n\tborder-color: var(--color-error) !important;\n}\n"],sourceRoot:""}]);const o=c},4383:(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-1a11f354],input[type=text][data-v-1a11f354]{width:100%}input[type=text][data-v-1a11f354]{min-height:48px}.option__icon[data-v-1a11f354],.option__icon-img[data-v-1a11f354]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__icon-img[data-v-1a11f354]{text-align:center}.option__title[data-v-1a11f354]{display:inline-flex;width:calc(100% - 36px);vertical-align:middle}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/FileMimeType.vue"],names:[],mappings:"AACA,6DAEC,UAAA,CAGD,kCACC,eAAA,CAGD,kEAEC,oBAAA,CACA,cAAA,CACA,0BAAA,CACA,qBAAA,CAGD,mCACC,iBAAA,CAGD,gCACC,mBAAA,CACA,uBAAA,CACA,qBAAA",sourcesContent:["\n.v-select,\ninput[type='text'] {\n\twidth: 100%;\n}\n\ninput[type=text] {\n\tmin-height: 48px;\n}\n\n.option__icon,\n.option__icon-img {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n\n.option__icon-img {\n\ttext-align: center;\n}\n\n.option__title {\n\tdisplay: inline-flex;\n\twidth: calc(100% - 36px);\n\tvertical-align: middle;\n}\n"],sourceRoot:""}]);const o=c},87371:(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-7a2ecc67]{display:flex;flex-grow:1;flex-wrap:wrap;max-width:180px}.timeslot .multiselect[data-v-7a2ecc67]{width:100%;margin-bottom:5px}.timeslot .multiselect[data-v-7a2ecc67] .multiselect__tags:not(:hover):not(:focus):not(:active){border:1px solid rgba(0,0,0,0)}.timeslot input[type=text][data-v-7a2ecc67]{width:50%;margin:0;margin-bottom:5px;min-height:48px}.timeslot input[type=text].timeslot--start[data-v-7a2ecc67]{margin-right:5px;width:calc(50% - 5px)}.timeslot .invalid-hint[data-v-7a2ecc67]{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/RequestTime.vue"],names:[],mappings:"AACA,2BACC,YAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CAEA,wCACC,UAAA,CACA,iBAAA,CAGD,gGACC,8BAAA,CAGD,4CACC,SAAA,CACA,QAAA,CACA,iBAAA,CACA,eAAA,CAEA,4DACC,gBAAA,CACA,qBAAA,CAIF,yCACC,mCAAA",sourcesContent:["\n.timeslot {\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-wrap: wrap;\n\tmax-width: 180px;\n\n\t.multiselect {\n\t\twidth: 100%;\n\t\tmargin-bottom: 5px;\n\t}\n\n\t.multiselect::v-deep .multiselect__tags:not(:hover):not(:focus):not(:active) {\n\t\tborder: 1px solid transparent;\n\t}\n\n\tinput[type=text] {\n\t\twidth: 50%;\n\t\tmargin: 0;\n\t\tmargin-bottom: 5px;\n\t\tmin-height: 48px;\n\n\t\t&.timeslot--start {\n\t\t\tmargin-right: 5px;\n\t\t\twidth: calc(50% - 5px);\n\t\t}\n\t}\n\n\t.invalid-hint {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n}\n"],sourceRoot:""}]);const o=c},78452:(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-1a72d97f],input[type=text][data-v-1a72d97f]{width:100%}input[type=text][data-v-1a72d97f]{min-height:48px}.option__icon[data-v-1a72d97f]{display:inline-block;min-width:30px;background-position:center;vertical-align:middle}.option__title[data-v-1a72d97f]{display:inline-flex;width:calc(100% - 36px);vertical-align:middle}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/RequestURL.vue"],names:[],mappings:"AACA,6DAEC,UAAA,CAED,kCACC,eAAA,CAGD,+BACC,oBAAA,CACA,cAAA,CACA,0BAAA,CACA,qBAAA,CAGD,gCACC,mBAAA,CACA,uBAAA,CACA,qBAAA",sourcesContent:["\n.v-select,\ninput[type='text'] {\n\twidth: 100%;\n}\ninput[type='text'] {\n\tmin-height: 48px;\n}\n\n.option__icon {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n\n.option__title {\n\tdisplay: inline-flex;\n\twidth: calc(100% - 36px);\n\tvertical-align: middle;\n}\n"],sourceRoot:""}]);const o=c},49400:(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-d4892b64]{margin-bottom:5px}.event__trigger[data-v-d4892b64]{max-width:550px}.isComplex img[data-v-d4892b64]{vertical-align:text-top}.isComplex span[data-v-d4892b64]{padding-top:2px;display:inline-block}.option__title[data-v-d4892b64]{margin-left:5px;color:var(--color-main-text)}.option__icon[data-v-d4892b64]{width:16px;height:16px;filter:var(--background-invert-if-dark)}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Event.vue"],names:[],mappings:"AACA,wBACC,iBAAA,CAEA,iCACC,eAAA,CAID,gCACC,uBAAA,CAED,iCACC,eAAA,CACA,oBAAA,CAIF,gCACC,eAAA,CACA,4BAAA,CAGD,+BACC,UAAA,CACA,WAAA,CACA,uCAAA",sourcesContent:["\n.event {\n\tmargin-bottom: 5px;\n\n\t&__trigger {\n\t\tmax-width: 550px;\n\t}\n}\n.isComplex {\n\timg {\n\t\tvertical-align: text-top;\n\t}\n\tspan {\n\t\tpadding-top: 2px;\n\t\tdisplay: inline-block;\n\t}\n}\n\n.option__title {\n\tmargin-left: 5px;\n\tcolor: var(--color-main-text);\n}\n\n.option__icon {\n\twidth: 16px;\n\theight: 16px;\n\tfilter: var(--background-invert-if-dark);\n}\n"],sourceRoot:""}]);const o=c},17203:(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,".actions__item[data-v-a0480332]{display:flex;flex-wrap:wrap;flex-direction:column;flex-grow:1;margin-left:-1px;padding:10px;border-radius:var(--border-radius-large);margin-right:20px;margin-bottom:20px}.actions__item .icon[data-v-a0480332]{display:block;width:100%;height:50px;background-size:50px 50px;background-position:center center;margin-top:10px;margin-bottom:10px;background-repeat:no-repeat}.actions__item__description[data-v-a0480332]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-a0480332]{width:100%;margin-top:10px;padding-left:60px}h3[data-v-a0480332],small[data-v-a0480332]{padding:6px;display:block}h3[data-v-a0480332]{margin:0;padding:0;font-weight:600}small[data-v-a0480332]{font-size:10pt;flex-grow:1}.colored[data-v-a0480332]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-a0480332],.colored:not(.more) small[data-v-a0480332]{color:var(--color-primary-element-text)}.actions__item[data-v-a0480332]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-a0480332]{padding-top:5px;text-align:left;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-a0480332]{padding:0}.actions__item:not(.colored) .icon[data-v-a0480332]{width:50px;margin:0;margin-right:10px}.actions__item:not(.colored) .icon[data-v-a0480332]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-a0480332]{filter:var(--background-invert-if-bright)}","",{version:3,sources:["webpack://./apps/workflowengine/src/styles/operation.scss"],names:[],mappings:"AAAA,gCACC,YAAA,CACA,cAAA,CACA,qBAAA,CACA,WAAA,CACA,gBAAA,CACA,YAAA,CACA,wCAAA,CACA,iBAAA,CACA,kBAAA,CAED,sCACC,aAAA,CACA,UAAA,CACA,WAAA,CACA,yBAAA,CACA,iCAAA,CACA,eAAA,CACA,kBAAA,CACA,2BAAA,CAED,6CACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAED,wCACC,UAAA,CACA,eAAA,CACA,iBAAA,CAED,2CACC,WAAA,CACA,aAAA,CAED,oBACC,QAAA,CACA,SAAA,CACA,eAAA,CAED,uBACC,cAAA,CACA,WAAA,CAGD,qCACC,6CAAA,CACA,mFACC,uCAAA,CAIF,8CACC,kBAAA,CAEA,0EACC,eAAA,CACA,eAAA,CACA,wBAAA,CACA,gFACC,SAAA,CAGF,oDACC,UAAA,CACA,QAAA,CACA,iBAAA,CACA,sEACC,yCAAA,CAKH,uCACC,yCAAA",sourcesContent:[".actions__item {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tmargin-left: -1px;\n\tpadding: 10px;\n\tborder-radius: var(--border-radius-large);\n\tmargin-right: 20px;\n\tmargin-bottom: 20px;\n}\n.actions__item .icon {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 50px;\n\tbackground-size: 50px 50px;\n\tbackground-position: center center;\n\tmargin-top: 10px;\n\tmargin-bottom: 10px;\n\tbackground-repeat: no-repeat;\n}\n.actions__item__description {\n\ttext-align: center;\n\tflex-grow: 1;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n.actions__item_options {\n\twidth: 100%;\n\tmargin-top: 10px;\n\tpadding-left: 60px;\n}\nh3, small {\n\tpadding: 6px;\n\tdisplay: block;\n}\nh3 {\n\tmargin: 0;\n\tpadding: 0;\n\tfont-weight: 600;\n}\nsmall {\n\tfont-size: 10pt;\n\tflex-grow: 1;\n}\n\n.colored:not(.more) {\n\tbackground-color: var(--color-primary-element);\n\th3, small {\n\t\tcolor: var(--color-primary-element-text)\n\t}\n}\n\n.actions__item:not(.colored) {\n\tflex-direction: row;\n\n\t.actions__item__description {\n\t\tpadding-top: 5px;\n\t\ttext-align: left;\n\t\twidth: calc(100% - 105px);\n\t\tsmall {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\t.icon {\n\t\twidth: 50px;\n\t\tmargin: 0;\n\t\tmargin-right: 10px;\n\t\t&:not(.icon-invert) {\n\t\t\tfilter: var(--background-invert-if-bright);\n\t\t}\n\t}\n}\n\n.colored .icon-invert {\n\tfilter: var(--background-invert-if-bright);\n}\n"],sourceRoot:""}]);const o=c},65768:(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-3def8966]{display:flex;justify-content:end}.buttons button[data-v-3def8966]{margin-left:5px}.buttons button[data-v-3def8966]:last-child{margin-right:10px}.error-message[data-v-3def8966]{float:right;margin-right:10px}.flow-icon[data-v-3def8966]{width:44px}.rule[data-v-3def8966]{display:flex;flex-wrap:wrap;border-left:5px solid var(--color-primary-element)}.rule .trigger[data-v-3def8966],.rule .action[data-v-3def8966]{flex-grow:1;min-height:100px;max-width:920px}.rule .action[data-v-3def8966]{max-width:400px;position:relative}.rule .icon-confirm[data-v-3def8966]{background-position:right 27px;padding-right:20px;margin-right:20px}.trigger p[data-v-3def8966],.action p[data-v-3def8966]{min-height:34px;display:flex}.trigger p>span[data-v-3def8966],.action p>span[data-v-3def8966]{min-width:50px;text-align:right;color:var(--color-text-maxcontrast);padding-right:10px;padding-top:6px}.trigger p .multiselect[data-v-3def8966],.action p .multiselect[data-v-3def8966]{flex-grow:1;max-width:300px}.trigger p:first-child span[data-v-3def8966]{padding-top:3px}.trigger p[data-v-3def8966]:last-child{padding-top:8px}.check--add[data-v-3def8966]{background-position:7px center;background-color:rgba(0,0,0,0);padding-left:6px;margin:0;width:180px;border-radius:var(--border-radius);color:var(--color-text-maxcontrast);font-weight:normal;text-align:left;font-size:1em}@media(max-width: 1400px){.rule[data-v-3def8966],.rule .trigger[data-v-3def8966],.rule .action[data-v-3def8966]{width:100%;max-width:100%}.rule .flow-icon[data-v-3def8966]{display:none}}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Rule.vue"],names:[],mappings:"AAEA,0BACC,YAAA,CACA,mBAAA,CAEA,iCACC,eAAA,CAED,4CACC,iBAAA,CAIF,gCACC,WAAA,CACA,iBAAA,CAGD,4BACC,UAAA,CAGD,uBACC,YAAA,CACA,cAAA,CACA,kDAAA,CAEA,+DAEC,WAAA,CACA,gBAAA,CACA,eAAA,CAED,+BACC,eAAA,CACA,iBAAA,CAED,qCACC,8BAAA,CACA,kBAAA,CACA,iBAAA,CAGF,uDACC,eAAA,CACA,YAAA,CAEA,iEACC,cAAA,CACA,gBAAA,CACA,mCAAA,CACA,kBAAA,CACA,eAAA,CAED,iFACC,WAAA,CACA,eAAA,CAGF,6CACE,eAAA,CAEF,uCACE,eAAA,CAGF,6BACC,8BAAA,CACA,8BAAA,CACA,gBAAA,CACA,QAAA,CACA,WAAA,CACA,kCAAA,CACA,mCAAA,CACA,kBAAA,CACA,eAAA,CACA,aAAA,CAGD,0BAEE,sFACC,UAAA,CACA,cAAA,CAED,kCACC,YAAA,CAAA",sourcesContent:["\n\n.buttons {\n\tdisplay: flex;\n\tjustify-content: end;\n\n\tbutton {\n\t\tmargin-left: 5px;\n\t}\n\tbutton:last-child{\n\t\tmargin-right: 10px;\n\t}\n}\n\n.error-message {\n\tfloat: right;\n\tmargin-right: 10px;\n}\n\n.flow-icon {\n\twidth: 44px;\n}\n\n.rule {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tborder-left: 5px solid var(--color-primary-element);\n\n\t.trigger,\n\t.action {\n\t\tflex-grow: 1;\n\t\tmin-height: 100px;\n\t\tmax-width: 920px;\n\t}\n\t.action {\n\t\tmax-width: 400px;\n\t\tposition: relative;\n\t}\n\t.icon-confirm {\n\t\tbackground-position: right 27px;\n\t\tpadding-right: 20px;\n\t\tmargin-right: 20px;\n\t}\n}\n.trigger p, .action p {\n\tmin-height: 34px;\n\tdisplay: flex;\n\n\t& > span {\n\t\tmin-width: 50px;\n\t\ttext-align: right;\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-right: 10px;\n\t\tpadding-top: 6px;\n\t}\n\t.multiselect {\n\t\tflex-grow: 1;\n\t\tmax-width: 300px;\n\t}\n}\n.trigger p:first-child span {\n\t\tpadding-top: 3px;\n}\n.trigger p:last-child {\n\t\tpadding-top: 8px;\n}\n\n.check--add {\n\tbackground-position: 7px center;\n\tbackground-color: transparent;\n\tpadding-left: 6px;\n\tmargin: 0;\n\twidth: 180px;\n\tborder-radius: var(--border-radius);\n\tcolor: var(--color-text-maxcontrast);\n\tfont-weight: normal;\n\ttext-align: left;\n\tfont-size: 1em;\n}\n\n@media (max-width:1400px) {\n\t.rule {\n\t\t&, .trigger, .action {\n\t\t\twidth: 100%;\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.flow-icon {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const o=c},86648:(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,"#workflowengine[data-v-16a5974e]{border-bottom:1px solid var(--color-border)}.section[data-v-16a5974e]{max-width:100vw}.section h2.configured-flows[data-v-16a5974e]{margin-top:50px;margin-bottom:0}.actions[data-v-16a5974e]{display:flex;flex-wrap:wrap;max-width:1200px}.actions .actions__item[data-v-16a5974e]{max-width:280px;flex-basis:250px}.actions__more[data-v-16a5974e]{margin-bottom:10px}.slide-enter-active[data-v-16a5974e]{-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;transition-duration:.3s;-moz-transition-timing-function:ease-in;-webkit-transition-timing-function:ease-in;-o-transition-timing-function:ease-in;transition-timing-function:ease-in}.slide-leave-active[data-v-16a5974e]{-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;transition-duration:.3s;-moz-transition-timing-function:cubic-bezier(0, 1, 0.5, 1);-webkit-transition-timing-function:cubic-bezier(0, 1, 0.5, 1);-o-transition-timing-function:cubic-bezier(0, 1, 0.5, 1);transition-timing-function:cubic-bezier(0, 1, 0.5, 1)}.slide-enter-to[data-v-16a5974e],.slide-leave[data-v-16a5974e]{max-height:500px;overflow:hidden}.slide-enter[data-v-16a5974e],.slide-leave-to[data-v-16a5974e]{overflow:hidden;max-height:0;padding-top:0;padding-bottom:0}.actions__item[data-v-16a5974e]{display:flex;flex-wrap:wrap;flex-direction:column;flex-grow:1;margin-left:-1px;padding:10px;border-radius:var(--border-radius-large);margin-right:20px;margin-bottom:20px}.actions__item .icon[data-v-16a5974e]{display:block;width:100%;height:50px;background-size:50px 50px;background-position:center center;margin-top:10px;margin-bottom:10px;background-repeat:no-repeat}.actions__item__description[data-v-16a5974e]{text-align:center;flex-grow:1;display:flex;flex-direction:column;align-items:center}.actions__item_options[data-v-16a5974e]{width:100%;margin-top:10px;padding-left:60px}h3[data-v-16a5974e],small[data-v-16a5974e]{padding:6px;display:block}h3[data-v-16a5974e]{margin:0;padding:0;font-weight:600}small[data-v-16a5974e]{font-size:10pt;flex-grow:1}.colored[data-v-16a5974e]:not(.more){background-color:var(--color-primary-element)}.colored:not(.more) h3[data-v-16a5974e],.colored:not(.more) small[data-v-16a5974e]{color:var(--color-primary-element-text)}.actions__item[data-v-16a5974e]:not(.colored){flex-direction:row}.actions__item:not(.colored) .actions__item__description[data-v-16a5974e]{padding-top:5px;text-align:left;width:calc(100% - 105px)}.actions__item:not(.colored) .actions__item__description small[data-v-16a5974e]{padding:0}.actions__item:not(.colored) .icon[data-v-16a5974e]{width:50px;margin:0;margin-right:10px}.actions__item:not(.colored) .icon[data-v-16a5974e]:not(.icon-invert){filter:var(--background-invert-if-bright)}.colored .icon-invert[data-v-16a5974e]{filter:var(--background-invert-if-bright)}.actions__item.more[data-v-16a5974e]{background-color:var(--color-background-dark)}","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Workflow.vue","webpack://./apps/workflowengine/src/styles/operation.scss"],names:[],mappings:"AACA,iCACC,2CAAA,CAED,0BACC,eAAA,CAEA,8CACC,eAAA,CACA,eAAA,CAGF,0BACC,YAAA,CACA,cAAA,CACA,gBAAA,CACA,yCACC,eAAA,CACA,gBAAA,CAGF,gCACC,kBAAA,CAGD,qCACC,4BAAA,CACA,+BAAA,CACA,0BAAA,CACA,uBAAA,CACA,uCAAA,CACA,0CAAA,CACA,qCAAA,CACA,kCAAA,CAGD,qCACC,4BAAA,CACA,+BAAA,CACA,0BAAA,CACA,uBAAA,CACA,0DAAA,CACA,6DAAA,CACA,wDAAA,CACA,qDAAA,CAGD,+DACC,gBAAA,CACA,eAAA,CAGD,+DACC,eAAA,CACA,YAAA,CACA,aAAA,CACA,gBAAA,CCxDD,gCACC,YAAA,CACA,cAAA,CACA,qBAAA,CACA,WAAA,CACA,gBAAA,CACA,YAAA,CACA,wCAAA,CACA,iBAAA,CACA,kBAAA,CAED,sCACC,aAAA,CACA,UAAA,CACA,WAAA,CACA,yBAAA,CACA,iCAAA,CACA,eAAA,CACA,kBAAA,CACA,2BAAA,CAED,6CACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAED,wCACC,UAAA,CACA,eAAA,CACA,iBAAA,CAED,2CACC,WAAA,CACA,aAAA,CAED,oBACC,QAAA,CACA,SAAA,CACA,eAAA,CAED,uBACC,cAAA,CACA,WAAA,CAGD,qCACC,6CAAA,CACA,mFACC,uCAAA,CAIF,8CACC,kBAAA,CAEA,0EACC,eAAA,CACA,eAAA,CACA,wBAAA,CACA,gFACC,SAAA,CAGF,oDACC,UAAA,CACA,QAAA,CACA,iBAAA,CACA,sEACC,yCAAA,CAKH,uCACC,yCAAA,CDfD,qCACC,6CAAA",sourcesContent:['\n#workflowengine {\n\tborder-bottom: 1px solid var(--color-border);\n}\n.section {\n\tmax-width: 100vw;\n\n\th2.configured-flows {\n\t\tmargin-top: 50px;\n\t\tmargin-bottom: 0;\n\t}\n}\n.actions {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmax-width: 1200px;\n\t.actions__item {\n\t\tmax-width: 280px;\n\t\tflex-basis: 250px;\n\t}\n}\n.actions__more {\n\tmargin-bottom: 10px;\n}\n\n.slide-enter-active {\n\t-moz-transition-duration: 0.3s;\n\t-webkit-transition-duration: 0.3s;\n\t-o-transition-duration: 0.3s;\n\ttransition-duration: 0.3s;\n\t-moz-transition-timing-function: ease-in;\n\t-webkit-transition-timing-function: ease-in;\n\t-o-transition-timing-function: ease-in;\n\ttransition-timing-function: ease-in;\n}\n\n.slide-leave-active {\n\t-moz-transition-duration: 0.3s;\n\t-webkit-transition-duration: 0.3s;\n\t-o-transition-duration: 0.3s;\n\ttransition-duration: 0.3s;\n\t-moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n\t-webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n\t-o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n\ttransition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n}\n\n.slide-enter-to, .slide-leave {\n\tmax-height: 500px;\n\toverflow: hidden;\n}\n\n.slide-enter, .slide-leave-to {\n\toverflow: hidden;\n\tmax-height: 0;\n\tpadding-top: 0;\n\tpadding-bottom: 0;\n}\n\n@import "./../styles/operation";\n\n.actions__item.more {\n\tbackground-color: var(--color-background-dark);\n}\n',".actions__item {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tmargin-left: -1px;\n\tpadding: 10px;\n\tborder-radius: var(--border-radius-large);\n\tmargin-right: 20px;\n\tmargin-bottom: 20px;\n}\n.actions__item .icon {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 50px;\n\tbackground-size: 50px 50px;\n\tbackground-position: center center;\n\tmargin-top: 10px;\n\tmargin-bottom: 10px;\n\tbackground-repeat: no-repeat;\n}\n.actions__item__description {\n\ttext-align: center;\n\tflex-grow: 1;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n.actions__item_options {\n\twidth: 100%;\n\tmargin-top: 10px;\n\tpadding-left: 60px;\n}\nh3, small {\n\tpadding: 6px;\n\tdisplay: block;\n}\nh3 {\n\tmargin: 0;\n\tpadding: 0;\n\tfont-weight: 600;\n}\nsmall {\n\tfont-size: 10pt;\n\tflex-grow: 1;\n}\n\n.colored:not(.more) {\n\tbackground-color: var(--color-primary-element);\n\th3, small {\n\t\tcolor: var(--color-primary-element-text)\n\t}\n}\n\n.actions__item:not(.colored) {\n\tflex-direction: row;\n\n\t.actions__item__description {\n\t\tpadding-top: 5px;\n\t\ttext-align: left;\n\t\twidth: calc(100% - 105px);\n\t\tsmall {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\t.icon {\n\t\twidth: 50px;\n\t\tmargin: 0;\n\t\tmargin-right: 10px;\n\t\t&:not(.icon-invert) {\n\t\t\tfilter: var(--background-invert-if-bright);\n\t\t}\n\t}\n}\n\n.colored .icon-invert {\n\tfilter: var(--background-invert-if-bright);\n}\n"],sourceRoot:""}]);const o=c},84551:(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-0f23bdeb],\ninput[type='text'][data-v-0f23bdeb] {\n\twidth: 100%;\n}\ninput[type='text'][data-v-0f23bdeb] {\n\tmin-height: 48px;\n}\n.option__icon[data-v-0f23bdeb] {\n\tdisplay: inline-block;\n\tmin-width: 30px;\n\tbackground-position: center;\n\tvertical-align: middle;\n}\n.option__title[data-v-0f23bdeb] {\n\tdisplay: inline-flex;\n\twidth: calc(100% - 36px);\n\tvertical-align: middle;\n}\n","",{version:3,sources:["webpack://./apps/workflowengine/src/components/Checks/RequestUserAgent.vue"],names:[],mappings:";AAmJA;;CAEA,WAAA;AACA;AACA;CACA,gBAAA;AACA;AAEA;CACA,qBAAA;CACA,eAAA;CACA,2BAAA;CACA,sBAAA;AACA;AAEA;CACA,oBAAA;CACA,wBAAA;CACA,sBAAA;AACA",sourcesContent:["\x3c!--\n - @copyright Copyright (c) 2019 Julius Härtl \n -\n - @author Julius Härtl \n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see .\n -\n --\x3e\n\n\n\n