@processmaker/screen-builder 2.99.3 → 2.99.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,7 +205,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
205
205
  }
206
206
  `],sourceRoot:""}])},function(r,i,a){var n=a(7).each,s={_eventData:null,on:function(o,u){this._eventData||(this._eventData={}),this._eventData[o]||(this._eventData[o]=[]);var l=!1;n(this._eventData[o],function(c){if(c===u)return l=!0,!1}),l||this._eventData[o].push(u)},off:function(o,u){this._eventData||(this._eventData={}),this._eventData[o]&&this._eventData[o].length&&(u?n(this._eventData[o],function(l,c){if(l===u)return this._eventData[o].splice(c,1),!1},this):this._eventData[o]=[])},trigger:function(o){if(this._eventData||(this._eventData={}),!this._eventData[o])return!0;var u=this._eventData[o].slice.call(arguments,1),l=!1;return n(this._eventData[o],function(c){l=c.apply(this,u)===!1||l},this),!l}};r.exports=s},function(r,i,a){function n(l,c,d){o.defineNonEnumerable(this,"uploader",l),this.isRoot=this.isFolder=l===this,o.defineNonEnumerable(this,"parent",d||null),o.defineNonEnumerable(this,"files",[]),o.defineNonEnumerable(this,"fileList",[]),o.defineNonEnumerable(this,"chunks",[]),o.defineNonEnumerable(this,"_errorFiles",[]),o.defineNonEnumerable(this,"file",null),this.id=o.uid(),this.isRoot||!c?this.file=null:o.isString(c)?(this.isFolder=!0,this.file=null,this.path=c,this.parent.path&&(c=c.substr(this.parent.path.length)),this.name=c.charAt(c.length-1)==="/"?c.substr(0,c.length-1):c):(this.file=c,this.fileType=this.file.type,this.name=c.fileName||c.name,this.size=c.size,this.relativePath=c.relativePath||c.webkitRelativePath||this.name,this._parseFile()),this.paused=l.opts.initialPaused,this.error=!1,this.allError=!1,this.aborted=!1,this.completed=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}function s(l){var c=[],d=l.split("/"),f=d.length,g=1;if(d.splice(f-1,1),f--,d.length)for(;g<=f;)c.push(d.slice(0,g++).join("/")+"/");return c}var o=a(7),u=a(22);o.extend(n.prototype,{_parseFile:function(){var l=s(this.relativePath);if(l.length){var c=this.uploader.filePaths;o.each(l,function(d,f){var g=c[d];g||(g=new n(this.uploader,d,this.parent),c[d]=g,this._updateParentFileList(g)),this.parent=g,g.files.push(this),l[f+1]||g.fileList.push(this)},this)}else this._updateParentFileList()},_updateParentFileList:function(l){l||(l=this);var c=this.parent;c&&c.fileList.push(l)},_eachAccess:function(l,c){if(this.isFolder)return void o.each(this.files,function(d,f){return l.call(this,d,f)},this);c.call(this,this)},bootstrap:function(){if(!this.isFolder){var l=this.uploader.opts;o.isFunction(l.initFileFn)&&l.initFileFn.call(this,this),this.abort(!0),this._resetError(),this._prevProgress=0;for(var c=l.forceChunkSize?Math.ceil:Math.floor,d=Math.max(c(this.size/l.chunkSize),1),f=0;f<d;f++)this.chunks.push(new u(this.uploader,this,f))}},_measureSpeed:function(){var l=this.uploader.opts.speedSmoothingFactor,c=Date.now()-this._lastProgressCallback;if(c){var d=this.sizeUploaded();this.currentSpeed=Math.max((d-this._prevUploadedSize)/c*1e3,0),this.averageSpeed=l*this.currentSpeed+(1-l)*this.averageSpeed,this._prevUploadedSize=d,this.parent&&this.parent._checkProgress()&&this.parent._measureSpeed()}},_checkProgress:function(l){return Date.now()-this._lastProgressCallback>=this.uploader.opts.progressCallbacksInterval},_chunkEvent:function(l,c,d){var f=this.uploader,g=u.STATUS,S=this,h=this.getRoot(),y=function(){S._measureSpeed(),f._trigger("fileProgress",h,S,l),S._lastProgressCallback=Date.now()};switch(c){case g.PROGRESS:this._checkProgress()&&y();break;case g.ERROR:this._error(),this.abort(!0),f._trigger("fileError",h,this,d,l);break;case g.SUCCESS:if(this._updateUploadedChunks(d,l),this.error)return;clearTimeout(this._progeressId),this._progeressId=0;var x=Date.now()-this._lastProgressCallback;x<f.opts.progressCallbacksInterval&&(this._progeressId=setTimeout(y,f.opts.progressCallbacksInterval-x)),this.isComplete()?(clearTimeout(this._progeressId),y(),this.currentSpeed=0,this.averageSpeed=0,f._trigger("fileSuccess",h,this,d,l),h.isComplete()&&f._trigger("fileComplete",h,this)):this._progeressId||y();break;case g.RETRY:f._trigger("fileRetry",h,this,l)}},_updateUploadedChunks:function(l,c){var d=this.uploader.opts.checkChunkUploadedByResponse;if(d){var f=c.xhr;o.each(this.chunks,function(g){if(!g.tested){var S=d.call(this,g,l);g!==c||S||(g.xhr=null),S&&(g.xhr=f),g.tested=!0}},this),this._firstResponse?this.uploader.uploadNextChunk():(this._firstResponse=!0,this.uploader.upload(!0))}else this.uploader.uploadNextChunk()},_error:function(){this.error=this.allError=!0;for(var l=this.parent;l&&l!==this.uploader;)l._errorFiles.push(this),l.error=!0,l._errorFiles.length===l.files.length&&(l.allError=!0),l=l.parent},_resetError:function(){this.error=this.allError=!1;for(var l=this.parent,c=-1;l&&l!==this.uploader;)c=l._errorFiles.indexOf(this),l._errorFiles.splice(c,1),l.allError=!1,l._errorFiles.length||(l.error=!1),l=l.parent},isComplete:function(){if(!this.completed){var l=!1;this._eachAccess(function(c){if(!c.isComplete())return l=!0,!1},function(){if(this.error)l=!0;else{var c=u.STATUS;o.each(this.chunks,function(d){var f=d.status();if(f===c.ERROR||f===c.PENDING||f===c.UPLOADING||f===c.READING||d.preprocessState===1||d.readState===1)return l=!0,!1})}}),this.completed=!l}return this.completed},isUploading:function(){var l=!1;return this._eachAccess(function(c){if(c.isUploading())return l=!0,!1},function(){var c=u.STATUS.UPLOADING;o.each(this.chunks,function(d){if(d.status()===c)return l=!0,!1})}),l},resume:function(){this._eachAccess(function(l){l.resume()},function(){this.paused=!1,this.aborted=!1,this.uploader.upload()}),this.paused=!1,this.aborted=!1},pause:function(){this._eachAccess(function(l){l.pause()},function(){this.paused=!0,this.abort()}),this.paused=!0},cancel:function(){this.uploader.removeFile(this)},retry:function(l){var c=function(d){d.error&&d.bootstrap()};l?l.bootstrap():this._eachAccess(c,function(){this.bootstrap()}),this.uploader.upload()},abort:function(l){if(!this.aborted){this.currentSpeed=0,this.averageSpeed=0,this.aborted=!l;var c=this.chunks;l&&(this.chunks=[]);var d=u.STATUS.UPLOADING;o.each(c,function(f){f.status()===d&&(f.abort(),this.uploader.uploadNextChunk())},this)}},progress:function(){var l=0,c=0,d=0;return this._eachAccess(function(f,g){l+=f.progress()*f.size,c+=f.size,g===this.files.length-1&&(d=c>0?l/c:this.isComplete()?1:0)},function(){if(this.error)return void(d=1);if(this.chunks.length===1)return this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),void(d=this._prevProgress);var f=0;o.each(this.chunks,function(S){f+=S.progress()*(S.endByte-S.startByte)});var g=f/this.size;this._prevProgress=Math.max(this._prevProgress,g>.9999?1:g),d=this._prevProgress}),d},getSize:function(){var l=0;return this._eachAccess(function(c){l+=c.size},function(){l+=this.size}),l},getFormatSize:function(){var l=this.getSize();return o.formatSize(l)},getRoot:function(){if(this.isRoot)return this;for(var l=this.parent;l;){if(l.parent===this.uploader)return l;l=l.parent}return this},sizeUploaded:function(){var l=0;return this._eachAccess(function(c){l+=c.sizeUploaded()},function(){o.each(this.chunks,function(c){l+=c.sizeUploaded()})}),l},timeRemaining:function(){function l(g,S){return g&&!S?Number.POSITIVE_INFINITY:g||S?Math.floor(g/S):0}var c=0,d=0,f=0;return this._eachAccess(function(g,S){g.paused||g.error||(d+=g.size-g.sizeUploaded(),f+=g.averageSpeed),S===this.files.length-1&&(c=l(d,f))},function(){if(this.paused||this.error)return void(c=0);var g=this.size-this.sizeUploaded();c=l(g,this.averageSpeed)}),c},removeFile:function(l){if(l.isFolder)for(;l.files.length;){var c=l.files[l.files.length-1];this._removeFile(c)}this._removeFile(l)},_delFilePath:function(l){l.path&&this.filePaths&&delete this.filePaths[l.path],o.each(l.fileList,function(c){this._delFilePath(c)},this)},_removeFile:function(l){if(!l.isFolder){o.each(this.files,function(f,g){if(f===l)return this.files.splice(g,1),!1},this),l.abort();for(var c,d=l.parent;d&&d!==this;)c=d.parent,d._removeFile(l),d=c}l.parent===this&&o.each(this.fileList,function(f,g){if(f===l)return this.fileList.splice(g,1),!1},this),this.isRoot||!this.isFolder||this.files.length||(this.parent._removeFile(this),this.uploader._delFilePath(this)),l.parent=null},getType:function(){return this.isFolder?"folder":this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.isFolder?"":this.name.substr(2+(~-this.name.lastIndexOf(".")>>>0)).toLowerCase()}}),r.exports=n},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:!a.support,expression:"!support"}],staticClass:"uploader-unsupport"},[a._t("default",[a._m(0)])],2)},staticRenderFns:[function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("p",[a._v(`
207
207
  Your browser, unfortunately, is not supported by Uploader.js. The library requires support for `),s("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[a._v("the HTML5 File API")]),a._v(" along with "),s("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[a._v("file slicing")]),a._v(`.
208
- `)])}]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-list"},[a._t("default",[s("ul",a._l(a.fileList,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o,list:!0}})],1)}))],{fileList:a.fileList})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-file",attrs:{status:a.status}},[a._t("default",[s("div",{staticClass:"uploader-file-progress",class:a.progressingClass,style:a.progressStyle}),a._v(" "),s("div",{staticClass:"uploader-file-info"},[s("div",{staticClass:"uploader-file-name"},[s("i",{staticClass:"uploader-file-icon",attrs:{icon:a.fileCategory}}),a._v(a._s(a.file.name))]),a._v(" "),s("div",{staticClass:"uploader-file-size"},[a._v(a._s(a.formatedSize))]),a._v(" "),s("div",{staticClass:"uploader-file-meta"}),a._v(" "),s("div",{staticClass:"uploader-file-status"},[s("span",{directives:[{name:"show",rawName:"v-show",value:a.status!=="uploading",expression:"status !== 'uploading'"}]},[a._v(a._s(a.statusText))]),a._v(" "),s("span",{directives:[{name:"show",rawName:"v-show",value:a.status==="uploading",expression:"status === 'uploading'"}]},[s("span",[a._v(a._s(a.progressStyle.progress))]),a._v(" "),s("em",[a._v(a._s(a.formatedAverageSpeed))]),a._v(" "),s("i",[a._v(a._s(a.formatedTimeRemaining))])])]),a._v(" "),s("div",{staticClass:"uploader-file-actions"},[s("span",{staticClass:"uploader-file-pause",on:{click:a.pause}}),a._v(" "),s("span",{staticClass:"uploader-file-resume",on:{click:a.resume}},[a._v("️")]),a._v(" "),s("span",{staticClass:"uploader-file-retry",on:{click:a.retry}}),a._v(" "),s("span",{staticClass:"uploader-file-remove",on:{click:a.remove}})])])],{file:a.file,list:a.list,status:a.status,paused:a.paused,error:a.error,response:a.response,averageSpeed:a.averageSpeed,formatedAverageSpeed:a.formatedAverageSpeed,currentSpeed:a.currentSpeed,isComplete:a.isComplete,isUploading:a.isUploading,size:a.size,formatedSize:a.formatedSize,uploadedSize:a.uploadedSize,progress:a.progress,progressStyle:a.progressStyle,progressingClass:a.progressingClass,timeRemaining:a.timeRemaining,formatedTimeRemaining:a.formatedTimeRemaining,type:a.type,extension:a.extension,fileCategory:a.fileCategory})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader"},[a._t("default",[s("uploader-unsupport"),a._v(" "),s("uploader-drop",[s("p",[a._v("Drop files here to upload or")]),a._v(" "),s("uploader-btn",[a._v("select files")]),a._v(" "),s("uploader-btn",{attrs:{directory:!0}},[a._v("select folder")])],1),a._v(" "),s("uploader-list")],{files:a.files,fileList:a.fileList,started:a.started})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:a.dropClass},[a._t("default")],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-files"},[a._t("default",[s("ul",a._l(a.files,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o}})],1)}))],{files:a.files})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("label",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[a._t("default")],2)},staticRenderFns:[]}},function(r,i,a){var n=a(63);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("2e4f4074",n,!0,{})},function(r,i,a){var n=a(64);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("30297bf6",n,!0,{})},function(r,i,a){var n=a(65);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("9c4391de",n,!0,{})},function(r,i,a){var n=a(66);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("6f0f0164",n,!0,{})},function(r,i,a){var n=a(67);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("f60d437e",n,!0,{})},function(r,i,a){var n=a(68);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("36e02209",n,!0,{})},function(r,i,a){var n=a(69);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("fb1ffb7e",n,!0,{})},function(r,i){r.exports=function(a,n){for(var s=[],o={},u=0;u<n.length;u++){var l=n[u],c=l[0],d=l[1],f=l[2],g=l[3],S={id:a+":"+u,css:d,media:f,sourceMap:g};o[c]?o[c].parts.push(S):s.push(o[c]={id:c,parts:[S]})}return s}}])})})(Up);var HS=Up.exports;const RS=ir(HS),W$="",qS=gn(),WS=["Cannot read property 'assignBrowse' of null","Cannot read property 'assignDrop' of null","Cannot read properties of null (reading 'assignBrowse')","Cannot read properties of null (reading 'assignDrop')"],VS={components:{...RS,RequiredAsterisk:ee.RequiredAsterisk},mixins:[qS],props:["label","error","helper","name","value","controlClass","endpoint","accept","validation","parent","config","multipleUpload"],updated(){this.removeDefaultClasses()},mounted(){this.$root.$on("set-upload-data-name",(t,e,r)=>this.listenRecordList(t,e,r)),this.$root.$on("removed-record",(t,e)=>this.listenRemovedRecord(t,e)),this.$root.$on("removed-loop",(t,e)=>this.listenRemovedLoop(t,e)),window.ProcessMaker.EventBus.$on("modal-shown",()=>{this.clearFiles()}),this.removeDefaultClasses(),this.setPrefix(),this.$refs.uploader&&this.$refs.uploader.$forceUpdate(),this.disabled=G.get(window,"ProcessMaker.isSelfService",!1)},errorCaptured(t){if(WS.includes(t.message))return!1},computed:{filesFromGlobalRequestFiles(){return this.value?G.get(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,[]).filter(t=>this.multipleUpload?this.value.some(e=>e.file===t.id):t.id===this.value):[]},filesFromCollection(){return this.value?this.filesFromCollectionValue(this.value):[]},collection(){const t=document.head.querySelector('meta[name="collection-id"]');return t?t.content:!1},filesData(){return this.collection?this.filesFromCollection:this.filesFromGlobalRequestFiles},fileIds(){return this.files.map(t=>t.id)},nativeButtonAttrs(){const t={"data-cy":"file-upload-button"};return this.disabled&&(t.disabled=!0),t.accept=this.attrs.accept,t},required(){return this.config&&this.config.validation?this.config.validation==="required":!1},inPreviewMode(){return this.mode==="preview"&&!window.exampleScreens||this.mode==="editor"},mode(){return this.$root.$children[0].mode},classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},inProgress(){return this.$refs.uploader.fileList.some(t=>t._prevProgress<1)},filesAccept(){if(!this.accept)return null;let t=[];return this.accept.split(",").forEach(e=>{t.push(e.trim())}),t},fileDataName(){return this.prefix+this.name+(this.row_id?"."+this.row_id:"")}},watch:{filesData:{handler(){this.setFiles()},immediate:!0,deep:!0},files:{handler(){this.collection||this.setRequestFiles(),this.$emit("input",this.valueToSend())},deep:!0},name:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},parent:{handler(){this.options.query.parent=this.parent},immediate:!0},prefix:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},row_id:{handler(){this.options.query.row_id=this.row_id,this.options.query.data_name=this.prefix+this.name+(this.row_id?"."+this.row_id:"")},immediate:!0},multipleUpload:{handler(){this.options.query.multiple=this.multipleUpload},immediate:!0}},data(){return{uploaderId:1,content:"",validator:{errorCount:0,errors:[]},prefix:"",row_id:null,options:{target:this.getTargetUrl,simultaneousUploads:1,query:{chunk:!0,data_name:this.name,parent:null,row_id:null,task_id:G.get(window,"_current_task_id",0)},testChunks:!1,headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":window.ProcessMaker.apiClient.defaults.headers.common["X-CSRF-TOKEN"]},singleFile:!this.multipleUpload},attrs:{accept:this.accept},disabled:!1,files:[],nativeFiles:{},uploading:!1,invalidFile:!1,showComponent:!0}},methods:{clearFiles(){this.showComponent=!1,this.$nextTick(()=>{this.showComponent=!0})},uploaderLoaded(){return this.$refs.uploader},setFiles(){G.isEqual(this.filesData,this.files)||(this.files=this.filesData)},filesFromCollectionValue(t){return t?this.multipleUpload?this.filesFromCollectionMulti(t):this.filesFromCollectionSingle(t):[]},filesFromCollectionSingle(t){return[{id:t.id,file_name:t.name}]},filesFromCollectionMulti(t){return t.map(e=>({id:e.file.id,file_name:e.file.name}))},setRequestFiles(){G.set(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,this.files),this.$emit("input",this.valueToSend())},valueToSend(){return this.multipleUpload?this.valueForMulti():this.valueForSingle()},valueForMulti(){return this.files.map(t=>({file:this.formatForType(t)}))},valueForSingle(){return this.files.length>0?this.formatForType(this.files[0]):null},formatForType(t){return this.collection?{id:t.id,name:t.file_name}:t.id},hasFileId(t){return this.fileIds.includes(t)},listenRemovedLoop(t,e){this.deleteAssociatedFiles(e)},listenRemovedRecord(t,e){this.parentRecordList(this)===t&&this.deleteAssociatedFiles(e)},async deleteAssociatedFiles(t){for(const e in t)if(e===this.name&&t[e]){const r=this.idsFromValue(t[e]);for(const i of r)this.hasFileId(i)&&(await this.$dataProvider.deleteFile(i).catch(a=>{}),this.removeFromFiles(i))}},idsFromValue(t){return this.collection?this.filesFromCollectionValue(t).map(e=>e.id):this.multipleUpload?t.map(e=>e.file):[t]},async removeFile(t){const e=t.id,r=t.token?t.token:null;isNaN(e)||await this.$dataProvider.deleteFile(e,r),this.removeFromFiles(e)},removeFromFiles(t){const e=this.files.findIndex(r=>r.id===t);this.$delete(this.files,e),this.nativeFiles[t]&&(this.$refs.uploader&&this.$refs.uploader.uploader.removeFile(this.nativeFiles[t]),this.$delete(this.nativeFiles,t))},addToFiles(t){this.multipleUpload?this.files.push(t):this.files=[t]},listenRecordList(t,e,r){const i=this.parentRecordList(this);i===t&&(this.row_id=i!==null?r:null)},setPrefix(){let t=this.$parent,e=0;for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e++,e>100)throw"Loop Error"}t&&t.loopContext&&(this.prefix=t.loopContext+".")},addFile(t){if(this.disabled)return t.ignored=!0,!1;if(t.fileType===void 0){const e=this.files.find(r=>{if(r.name===t.name)return r.fileType});t.fileType=e.fileType}return this.filesAccept&&(t.ignored=!0,this.filesAccept.indexOf(t.fileType)!==-1&&(t.ignored=!1),t.ignored)?(this.invalidFile=!0,this.uploading=!1,window.ProcessMaker.alert(this.$t("This file type is not accepted."),"danger"),!1):(t.ignored=!1,this.name||(this.options.query.data_name=t.name),!0)},removeDefaultClasses(){this.$el.querySelectorAll(".uploader-btn, .uploader-drop").forEach(t=>{t.classList.remove("uploader-btn","uploader-drop")})},browse(t){["Enter","Space"].includes(t.code)&&t.target.click()},fileError(t,e,r,i){let a="";try{a=JSON.parse(r).join(", ")}catch{a=r}a.length>0&&window.ProcessMaker.alert(`${this.$t("File Upload Error:")} ${a}`,"danger"),window.onbeforeunload=function(){},this.$emit("file-error",r)},fileUploaded(t,e,r){this.uploading=!1;let i=e.name;if(r){const a=JSON.parse(r);let n=a.fileUploadId;this.collection&&(n=a.id);const s={id:n,file_name:i,mime_type:t.fileType,name:i,fileType:t.fileType};this.$set(this.nativeFiles,n,t),this.addToFiles(s)}else this.$emit("input",i)},removed(){this.inProgress||this.complete()},complete(){this.validator.errorCount=0,window.onbeforeunload=function(){}},parentRecordList(t){return t.$parent&&t.$parent.$options?t.$parent.$options._componentTag==="form-record-list"?t.$parent:this.parentRecordList(t.$parent):null},start(){this.invalidFile||(this.uploading=!0,this.parentRecordList(this)===null&&(this.row_id=null),this.validator.errorCount=1,window.onbeforeunload=function(){return!0})},getTargetUrl(){if(G.has(window,"PM4ConfigOverrides.postFileEndpoint"))return window.PM4ConfigOverrides.postFileEndpoint;if(this.endpoint)return this.endpoint;if(this.collection)return"/api/1.0/files?model=ProcessMaker\\Plugins\\Collections\\Models\\Collection&model_id="+this.collection+"&collection=collection";{const t=document.head.querySelector('meta[name="request-id"]');return t?`/api/1.0/requests/${t.content}/files`:null}}}};var XS=function(){var e=this,r=e._self._c;return r("div",[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.inPreviewMode?r("b-card",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("File uploads are unavailable in preview mode."))+" ")]):e._e(),!e.inPreviewMode&&e.showComponent?r("uploader",{ref:"uploader",class:{"was-validated":e.required},attrs:{options:e.options,attrs:e.attrs},on:{complete:e.complete,"upload-start":e.start,"file-removed":e.removed,"file-success":e.fileUploaded,"file-error":e.fileError,"file-added":e.addFile}},[r("uploader-unsupport"),e.uploaderLoaded?r("uploader-drop",{staticClass:"form-control-file"},[r("p",[e._v(e._s(e.$t("Drop a file here to upload or")))]),r("uploader-btn",{staticClass:"btn btn-secondary text-white",class:{disabled:e.disabled},attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(i){return e.browse.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("select file"))+" ")]),e.validation==="required"&&!e.value?r("span",{staticClass:"required"},[e._v(e._s(e.$t("Required")))]):e._e()],1):e._e(),r("uploader-list",{scopedSlots:e._u([{key:"default",fn:function({fileList:i}){return[e.uploading?r("ul",e._l(i,function(a){return r("li",{key:a.id},[r("uploader-file",{attrs:{file:a,list:!0}})],1)}),0):r("ul",e._l(e.files,function(a,n){return r("li",{key:n,attrs:{"data-cy":a.id}},[r("div",{},[r("div",{staticStyle:{display:"flex",background:"rgb(226 238 255)"}},[e.nativeFiles[a.id]?r("div",{staticClass:"overflow-hidden",staticStyle:{flex:"1"},attrs:{"data-cy":a.file_name.replace(/[^0-9a-zA-Z\-]/g,"-")}},[r("uploader-file",{attrs:{file:e.nativeFiles[a.id],list:!0}})],1):r("div",{staticClass:"text-truncate",staticStyle:{flex:"1"},attrs:{title:a.file_name}},[r("i",{staticClass:"fas fa-paperclip"}),e._v(" "+e._s(a.file_name)+" ")]),r("div",{staticClass:"pt-1"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"outline",title:e.$t("Delete")},on:{click:function(s){return e.removeFile(a)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)])])])}),0)]}}],null,!1,3267103099)}),r("div",{staticClass:"invalid-feedback",class:{"d-block":e.error&&!e.value}},[e._v(" "+e._s(e.$t("Field is required"))+" ")])],1):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],1)},JS=[],US=oe(VS,XS,JS,!1,null,"8d8f38e4",null,null);const bn=US.exports,V$="",GS={props:{width:{default:64},height:{default:64}},data(){return{user:window.Processmaker.user}},mounted(){this.getInitials()},methods:{getInitials(){return this.user.firstname&&this.user.lastname?this.user.firstname.match(/./u)[0]+this.user.lastname.match(/./u)[0]:""},variant(){return this.user.avatar?"secondary":"info"},styleAvatar(){return"width: "+this.width+"px; height: "+this.height+"px; font-size:"+this.height/2.5+"px; padding:0;"}}};var QS=function(){var e=this,r=e._self._c;return r("span",[r("b-button",{staticClass:"avatar-button rounded-circle overflow-hidden p-0 m-0 d-inline-flex border-0",style:e.styleAvatar(),attrs:{variant:e.variant(),disabled:""}},[e.user.avatar?r("img",{class:e.image,attrs:{src:e.user.avatar,width:e.width,height:e.height,alt:e.user.fullname}}):r("span",{staticClass:"border-0 d-inline-flex align-items-center justify-content-center text-white text-uppercase text-nowrap font-weight-normal",style:e.styleAvatar()},[e.getInitials()?r("span",[e._v(e._s(e.getInitials()))]):r("span",[e._v("PM")])])])],1)},YS=[],ZS=oe(GS,QS,YS,!1,null,"5418080e",null,null);const yn=ZS.exports;var Gp={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(kt,function(){/*!
208
+ `)])}]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-list"},[a._t("default",[s("ul",a._l(a.fileList,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o,list:!0}})],1)}))],{fileList:a.fileList})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-file",attrs:{status:a.status}},[a._t("default",[s("div",{staticClass:"uploader-file-progress",class:a.progressingClass,style:a.progressStyle}),a._v(" "),s("div",{staticClass:"uploader-file-info"},[s("div",{staticClass:"uploader-file-name"},[s("i",{staticClass:"uploader-file-icon",attrs:{icon:a.fileCategory}}),a._v(a._s(a.file.name))]),a._v(" "),s("div",{staticClass:"uploader-file-size"},[a._v(a._s(a.formatedSize))]),a._v(" "),s("div",{staticClass:"uploader-file-meta"}),a._v(" "),s("div",{staticClass:"uploader-file-status"},[s("span",{directives:[{name:"show",rawName:"v-show",value:a.status!=="uploading",expression:"status !== 'uploading'"}]},[a._v(a._s(a.statusText))]),a._v(" "),s("span",{directives:[{name:"show",rawName:"v-show",value:a.status==="uploading",expression:"status === 'uploading'"}]},[s("span",[a._v(a._s(a.progressStyle.progress))]),a._v(" "),s("em",[a._v(a._s(a.formatedAverageSpeed))]),a._v(" "),s("i",[a._v(a._s(a.formatedTimeRemaining))])])]),a._v(" "),s("div",{staticClass:"uploader-file-actions"},[s("span",{staticClass:"uploader-file-pause",on:{click:a.pause}}),a._v(" "),s("span",{staticClass:"uploader-file-resume",on:{click:a.resume}},[a._v("️")]),a._v(" "),s("span",{staticClass:"uploader-file-retry",on:{click:a.retry}}),a._v(" "),s("span",{staticClass:"uploader-file-remove",on:{click:a.remove}})])])],{file:a.file,list:a.list,status:a.status,paused:a.paused,error:a.error,response:a.response,averageSpeed:a.averageSpeed,formatedAverageSpeed:a.formatedAverageSpeed,currentSpeed:a.currentSpeed,isComplete:a.isComplete,isUploading:a.isUploading,size:a.size,formatedSize:a.formatedSize,uploadedSize:a.uploadedSize,progress:a.progress,progressStyle:a.progressStyle,progressingClass:a.progressingClass,timeRemaining:a.timeRemaining,formatedTimeRemaining:a.formatedTimeRemaining,type:a.type,extension:a.extension,fileCategory:a.fileCategory})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader"},[a._t("default",[s("uploader-unsupport"),a._v(" "),s("uploader-drop",[s("p",[a._v("Drop files here to upload or")]),a._v(" "),s("uploader-btn",[a._v("select files")]),a._v(" "),s("uploader-btn",{attrs:{directory:!0}},[a._v("select folder")])],1),a._v(" "),s("uploader-list")],{files:a.files,fileList:a.fileList,started:a.started})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:a.dropClass},[a._t("default")],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement,s=a._self._c||n;return s("div",{staticClass:"uploader-files"},[a._t("default",[s("ul",a._l(a.files,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o}})],1)}))],{files:a.files})],2)},staticRenderFns:[]}},function(r,i){r.exports={render:function(){var a=this,n=a.$createElement;return(a._self._c||n)("label",{directives:[{name:"show",rawName:"v-show",value:a.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[a._t("default")],2)},staticRenderFns:[]}},function(r,i,a){var n=a(63);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("2e4f4074",n,!0,{})},function(r,i,a){var n=a(64);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("30297bf6",n,!0,{})},function(r,i,a){var n=a(65);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("9c4391de",n,!0,{})},function(r,i,a){var n=a(66);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("6f0f0164",n,!0,{})},function(r,i,a){var n=a(67);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("f60d437e",n,!0,{})},function(r,i,a){var n=a(68);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("36e02209",n,!0,{})},function(r,i,a){var n=a(69);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),a(2)("fb1ffb7e",n,!0,{})},function(r,i){r.exports=function(a,n){for(var s=[],o={},u=0;u<n.length;u++){var l=n[u],c=l[0],d=l[1],f=l[2],g=l[3],S={id:a+":"+u,css:d,media:f,sourceMap:g};o[c]?o[c].parts.push(S):s.push(o[c]={id:c,parts:[S]})}return s}}])})})(Up);var HS=Up.exports;const RS=ir(HS),W$="",qS=gn(),WS=["Cannot read property 'assignBrowse' of null","Cannot read property 'assignDrop' of null","Cannot read properties of null (reading 'assignBrowse')","Cannot read properties of null (reading 'assignDrop')"],VS={components:{...RS,RequiredAsterisk:ee.RequiredAsterisk},mixins:[qS],props:["label","error","helper","name","value","controlClass","endpoint","accept","validation","parent","config","multipleUpload"],updated(){this.removeDefaultClasses()},mounted(){this.$root.$on("set-upload-data-name",(t,e,r)=>this.listenRecordList(t,e,r)),this.$root.$on("removed-record",(t,e)=>this.listenRemovedRecord(t,e)),this.$root.$on("removed-loop",(t,e)=>this.listenRemovedLoop(t,e)),window.ProcessMaker.EventBus.$on("modal-shown",()=>{this.clearFiles()}),this.removeDefaultClasses(),this.setPrefix(),this.$refs.uploader&&this.$refs.uploader.$forceUpdate(),this.disabled=G.get(window,"ProcessMaker.isSelfService",!1)},errorCaptured(t){if(WS.includes(t.message))return!1},computed:{filesFromGlobalRequestFiles(){return this.value?G.get(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,[]).filter(t=>this.multipleUpload?this.value.some(e=>e.file===t.id):t.id===this.value):[]},filesFromCollection(){return this.value?this.filesFromCollectionValue(this.value):[]},collection(){const t=document.head.querySelector('meta[name="collection-id"]');return t?t.content:!1},filesData(){return this.collection?this.filesFromCollection:this.filesFromGlobalRequestFiles},fileIds(){return this.files.map(t=>t.id)},nativeButtonAttrs(){const t={"data-cy":"file-upload-button"};return this.disabled&&(t.disabled=!0),t.accept=this.attrs.accept,t},required(){return this.config&&this.config.validation?this.config.validation==="required":!1},inPreviewMode(){return this.mode==="preview"&&!window.exampleScreens||this.mode==="editor"},mode(){return this.$root.$children[0].mode},classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},inProgress(){return this.$refs.uploader.fileList.some(t=>t._prevProgress<1)},filesAccept(){if(!this.accept)return null;let t=[];return this.accept.split(",").forEach(e=>{t.push(e.trim())}),t},fileDataName(){return this.prefix+this.name+(this.row_id?"."+this.row_id:"")}},watch:{filesData:{handler(){this.setFiles()},immediate:!0,deep:!0},files:{handler(){this.collection||this.setRequestFiles(),this.$emit("input",this.valueToSend())},deep:!0},name:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},parent:{handler(){this.options.query.parent=this.parent},immediate:!0},prefix:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},row_id:{handler(){this.options.query.row_id=this.row_id,this.options.query.data_name=this.prefix+this.name+(this.row_id?"."+this.row_id:"")},immediate:!0},multipleUpload:{handler(){this.options.query.multiple=this.multipleUpload},immediate:!0}},data(){return{uploaderId:1,content:"",validator:{errorCount:0,errors:[]},prefix:"",row_id:null,options:{target:this.getTargetUrl,simultaneousUploads:1,query:{chunk:!0,data_name:this.name,parent:null,row_id:null,task_id:G.get(window,"_current_task_id",0)},testChunks:!1,headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":window.ProcessMaker.apiClient.defaults.headers.common["X-CSRF-TOKEN"]},singleFile:!this.multipleUpload},attrs:{accept:this.accept},disabled:!1,files:[],nativeFiles:{},uploading:!1,invalidFile:!1,showComponent:!0}},methods:{clearFiles(){this.showComponent=!1,this.$nextTick(()=>{this.showComponent=!0})},uploaderLoaded(){return this.$refs.uploader},setFiles(){G.isEqual(this.filesData,this.files)||(this.files=this.filesData)},filesFromCollectionValue(t){return t?this.multipleUpload?this.filesFromCollectionMulti(t):this.filesFromCollectionSingle(t):[]},filesFromCollectionSingle(t){return[{id:t.id,file_name:t.name}]},filesFromCollectionMulti(t){return t.map(e=>({id:e.file.id,file_name:e.file.name}))},setRequestFiles(){G.set(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,this.files),this.$emit("input",this.valueToSend())},valueToSend(){return this.multipleUpload?this.valueForMulti():this.valueForSingle()},valueForMulti(){return this.files.map(t=>({file:this.formatForType(t)}))},valueForSingle(){return this.files.length>0?this.formatForType(this.files[0]):null},formatForType(t){return this.collection?{id:t.id,name:t.file_name}:t.id},hasFileId(t){return this.fileIds.includes(t)},listenRemovedLoop(t,e){this.deleteAssociatedFiles(e)},listenRemovedRecord(t,e){this.parentRecordList(this)===t&&this.deleteAssociatedFiles(e)},async deleteAssociatedFiles(t){for(const e in t)if(e===this.name&&t[e]){const r=this.idsFromValue(t[e]);for(const i of r)this.hasFileId(i)&&(await this.$dataProvider.deleteFile(i).catch(a=>{}),this.removeFromFiles(i))}},idsFromValue(t){return this.collection?this.filesFromCollectionValue(t).map(e=>e.id):this.multipleUpload?t.map(e=>e.file):[t]},async removeFile(t){const e=t.id,r=t.token?t.token:null;isNaN(e)||await this.$dataProvider.deleteFile(e,r),this.removeFromFiles(e)},removeFromFiles(t){const e=this.files.findIndex(r=>r.id===t);this.$delete(this.files,e),this.nativeFiles[t]&&(this.$refs.uploader&&this.$refs.uploader.uploader.removeFile(this.nativeFiles[t]),this.$delete(this.nativeFiles,t))},addToFiles(t){this.multipleUpload?this.files.push(t):this.files=[t]},listenRecordList(t,e,r){const i=this.parentRecordList(this);i===t&&(this.row_id=i!==null?r:null)},setPrefix(){let t=this.$parent,e=0;for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e++,e>100)throw"Loop Error"}t&&t.loopContext&&(this.prefix=t.loopContext+".")},validateFile(t,e){const r=e.filter(u=>u.startsWith(".")),i=e.filter(u=>!u.startsWith(".")),a="."+t.name.split(".").pop().toLowerCase(),n=t.fileType,s=r.includes(a),o=i.includes(n);return!(!s&&!o)},addFile(t){if(this.disabled)return t.ignored=!0,!1;if(t.fileType===void 0){const e=this.files.find(r=>{if(r.name===t.name)return r.fileType});t.fileType=e.fileType}return this.filesAccept&&(t.ignored=!0,this.validateFile(t,this.filesAccept)&&(t.ignored=!1),t.ignored)?(this.invalidFile=!0,this.uploading=!1,window.ProcessMaker.alert(this.$t("This file type is not accepted."),"danger"),!1):(t.ignored=!1,this.name||(this.options.query.data_name=t.name),!0)},removeDefaultClasses(){this.$el.querySelectorAll(".uploader-btn, .uploader-drop").forEach(t=>{t.classList.remove("uploader-btn","uploader-drop")})},browse(t){["Enter","Space"].includes(t.code)&&t.target.click()},fileError(t,e,r,i){let a="";try{a=JSON.parse(r).join(", ")}catch{a=r}if(a.length>0){const n=JSON.parse(a);n.message&&(a=n.message),window.ProcessMaker.alert(`${this.$t("File Upload Error:")} ${a}`,"danger")}window.onbeforeunload=function(){},this.$emit("file-error",r)},fileUploaded(t,e,r){this.uploading=!1;let i=e.name;if(r){const a=JSON.parse(r);let n=a.fileUploadId;this.collection&&(n=a.id);const s={id:n,file_name:i,mime_type:t.fileType,name:i,fileType:t.fileType};this.$set(this.nativeFiles,n,t),this.addToFiles(s)}else this.$emit("input",i)},removed(){this.inProgress||this.complete()},complete(){this.validator.errorCount=0,window.onbeforeunload=function(){}},parentRecordList(t){return t.$parent&&t.$parent.$options?t.$parent.$options._componentTag==="form-record-list"?t.$parent:this.parentRecordList(t.$parent):null},start(){this.invalidFile||(this.uploading=!0,this.parentRecordList(this)===null&&(this.row_id=null),this.validator.errorCount=1,window.onbeforeunload=function(){return!0})},getTargetUrl(){if(G.has(window,"PM4ConfigOverrides.postFileEndpoint"))return window.PM4ConfigOverrides.postFileEndpoint;if(this.endpoint)return this.endpoint;if(this.collection)return"/api/1.0/files?model=ProcessMaker\\Plugins\\Collections\\Models\\Collection&model_id="+this.collection+"&collection=collection";{const t=document.head.querySelector('meta[name="request-id"]');return t?`/api/1.0/requests/${t.content}/files`:null}}}};var XS=function(){var e=this,r=e._self._c;return r("div",[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.inPreviewMode?r("b-card",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("File uploads are unavailable in preview mode."))+" ")]):e._e(),!e.inPreviewMode&&e.showComponent?r("uploader",{ref:"uploader",class:{"was-validated":e.required},attrs:{options:e.options,attrs:e.attrs},on:{complete:e.complete,"upload-start":e.start,"file-removed":e.removed,"file-success":e.fileUploaded,"file-error":e.fileError,"file-added":e.addFile}},[r("uploader-unsupport"),e.uploaderLoaded?r("uploader-drop",{staticClass:"form-control-file"},[r("p",[e._v(e._s(e.$t("Drop a file here to upload or")))]),r("uploader-btn",{staticClass:"btn btn-secondary text-white",class:{disabled:e.disabled},attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(i){return e.browse.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("select file"))+" ")]),e.validation==="required"&&!e.value?r("span",{staticClass:"required"},[e._v(e._s(e.$t("Required")))]):e._e()],1):e._e(),r("uploader-list",{scopedSlots:e._u([{key:"default",fn:function({fileList:i}){return[e.uploading?r("ul",e._l(i,function(a){return r("li",{key:a.id},[r("uploader-file",{attrs:{file:a,list:!0}})],1)}),0):r("ul",e._l(e.files,function(a,n){return r("li",{key:n,attrs:{"data-cy":a.id}},[r("div",{},[r("div",{staticStyle:{display:"flex",background:"rgb(226 238 255)"}},[e.nativeFiles[a.id]?r("div",{staticClass:"overflow-hidden",staticStyle:{flex:"1"},attrs:{"data-cy":a.file_name.replace(/[^0-9a-zA-Z\-]/g,"-")}},[r("uploader-file",{attrs:{file:e.nativeFiles[a.id],list:!0}})],1):r("div",{staticClass:"text-truncate",staticStyle:{flex:"1"},attrs:{title:a.file_name}},[r("i",{staticClass:"fas fa-paperclip"}),e._v(" "+e._s(a.file_name)+" ")]),r("div",{staticClass:"pt-1"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"outline",title:e.$t("Delete")},on:{click:function(s){return e.removeFile(a)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)])])])}),0)]}}],null,!1,3267103099)}),r("div",{staticClass:"invalid-feedback",class:{"d-block":e.error&&!e.value}},[e._v(" "+e._s(e.$t("Field is required"))+" ")])],1):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],1)},JS=[],US=oe(VS,XS,JS,!1,null,"c27b90d2",null,null);const bn=US.exports,V$="",GS={props:{width:{default:64},height:{default:64}},data(){return{user:window.Processmaker.user}},mounted(){this.getInitials()},methods:{getInitials(){return this.user.firstname&&this.user.lastname?this.user.firstname.match(/./u)[0]+this.user.lastname.match(/./u)[0]:""},variant(){return this.user.avatar?"secondary":"info"},styleAvatar(){return"width: "+this.width+"px; height: "+this.height+"px; font-size:"+this.height/2.5+"px; padding:0;"}}};var QS=function(){var e=this,r=e._self._c;return r("span",[r("b-button",{staticClass:"avatar-button rounded-circle overflow-hidden p-0 m-0 d-inline-flex border-0",style:e.styleAvatar(),attrs:{variant:e.variant(),disabled:""}},[e.user.avatar?r("img",{class:e.image,attrs:{src:e.user.avatar,width:e.width,height:e.height,alt:e.user.fullname}}):r("span",{staticClass:"border-0 d-inline-flex align-items-center justify-content-center text-white text-uppercase text-nowrap font-weight-normal",style:e.styleAvatar()},[e.getInitials()?r("span",[e._v(e._s(e.getInitials()))]):r("span",[e._v("PM")])])])],1)},YS=[],ZS=oe(GS,QS,YS,!1,null,"5418080e",null,null);const yn=ZS.exports;var Gp={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(kt,function(){/*!
209
209
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
210
210
  * http://github.com/janl/mustache.js
211
211
  */var r=Object.prototype.toString,i=Array.isArray||function(A){return r.call(A)==="[object Array]"};function a(C){return typeof C=="function"}function n(C){return i(C)?"array":typeof C}function s(C){return C.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(C,A){return C!=null&&typeof C=="object"&&A in C}function u(C,A){return C!=null&&typeof C!="object"&&C.hasOwnProperty&&C.hasOwnProperty(A)}var l=RegExp.prototype.test;function c(C,A){return l.call(C,A)}var d=/\S/;function f(C){return!c(d,C)}var g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function S(C){return String(C).replace(/[&<>"'`=\/]/g,function(I){return g[I]})}var h=/\s*/,y=/\s+/,x=/\s*=/,w=/\s*\}/,b=/#|\^|\/|>|\{|&|=|!/;function p(C,A){if(!C)return[];var I=!1,R=[],B=[],J=[],q=!1,E=!1,j="",N=0;function L(){if(q&&!E)for(;J.length;)delete B[J.pop()];else J=[];q=!1,E=!1}var V,Q,Y;function K(le){if(typeof le=="string"&&(le=le.split(y,2)),!i(le)||le.length!==2)throw new Error("Invalid tags: "+le);V=new RegExp(s(le[0])+"\\s*"),Q=new RegExp("\\s*"+s(le[1])),Y=new RegExp("\\s*"+s("}"+le[1]))}K(A||T.tags);for(var H=new m(C),M,O,F,W,U,_;!H.eos();){if(M=H.pos,F=H.scanUntil(V),F)for(var te=0,re=F.length;te<re;++te)W=F.charAt(te),f(W)?(J.push(B.length),j+=W):(E=!0,I=!0,j+=" "),B.push(["text",W,M,M+1]),M+=1,W===`
@@ -265,7 +265,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
265
265
  *
266
266
  * @author Feross Aboukhadijeh <https://feross.org>
267
267
  * @license MIT
268
- */var jN=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)},Tv=jN,NN=Eo;Eo.flatten=Eo,Eo.unflatten=Cv;function Eo(t,e){e=e||{};var r=e.delimiter||".",i=e.maxDepth,a={};function n(s,o,u){u=u||1,Object.keys(s).forEach(function(l){var c=s[l],d=e.safe&&Array.isArray(c),f=Object.prototype.toString.call(c),g=Tv(c),S=f==="[object Object]"||f==="[object Array]",h=o?o+r+l:l;if(!d&&!g&&S&&Object.keys(c).length&&(!e.maxDepth||u<i))return n(c,h,u+1);a[h]=c})}return n(t),a}function Cv(t,e){e=e||{};var r=e.delimiter||".",i=e.overwrite||!1,a={},n=Tv(t);if(n||Object.prototype.toString.call(t)!=="[object Object]")return t;function s(u){var l=Number(u);return isNaN(l)||u.indexOf(".")!==-1||e.object?u:l}var o=Object.keys(t).sort(function(u,l){return u.length-l.length});return o.forEach(function(u){for(var l=u.split(r),c=s(l.shift()),d=s(l[0]),f=a;d!==void 0;){if(c==="__proto__")return;var g=Object.prototype.toString.call(f[c]),S=g==="[object Object]"||g==="[object Array]";if(!i&&!S&&typeof f[c]<"u")return;(i&&!S||!i&&f[c]==null)&&(f[c]=typeof d=="number"&&!e.object?[]:{}),f=f[c],l.length>0&&(c=s(l.shift()),d=s(l[0]))}f[c]=Cv(t[u],e)}),a}function IN(t,e){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!e(t[r],r,t))return!1;return!0}var LN=IN,FN=Mo;function BN(t,e){var r=!0;return FN(t,function(i,a,n){return r=!!e(i,a,n),r}),r}var HN=BN,RN=LN,qN=HN,WN=Ao,VN=ht,XN=Xm;function JN(t,e,r){var i=VN(t)?RN:qN;return r&&XN(t,e,r)&&(e=void 0),i(t,WN(e))}var Xc=JN,UN=bt,Jc=Xc;function Uc(t,e,r){return UN(e)?Jc(e,function(i,a){return t==null?!0:a==="$each"?Array.isArray(t[r])?t[r].every(function(n){return Jc(i,function(s,o){return Uc(n,s,o)})}):!0:Uc(t[r],i,a)}):e(t)}var Tr=function(t,e){return Jc(t,function(r,i){return Uc(e,r,i)})},GN=Oe,QN=Tr,YN=function(e,r,i){return GN.withParams({type:"schemaAdditionalItems",schema:e},function(a){if(!Array.isArray(a)||a.length===0||!Array.isArray(e.items))return!0;var n=a.slice(e.items.length);if(!n.length)return!0;if(r===!1)return!1;var s=i(r);return n.every(function(o){return QN(s,o)})})};function ZN(t,e,r,i){for(var a=r-1,n=t.length;++a<n;)if(i(t[a],e))return a;return-1}var KN=ZN,_N=Po,$N=rv,eI=KN,tI=Sn,rI=Bc,iI=Array.prototype,Mv=iI.splice;function aI(t,e,r,i){var a=i?eI:$N,n=-1,s=e.length,o=t;for(t===e&&(e=rI(e)),r&&(o=_N(t,tI(r)));++n<s;)for(var u=0,l=e[n],c=r?r(l):l;(u=a(o,c,u,i))>-1;)o!==t&&Mv.call(o,u,1),Mv.call(t,u,1);return t}var nI=aI,sI=nI;function oI(t,e){return t&&t.length&&e&&e.length?sI(t,e):t}var lI=oI,uI=Oe,Dv=bt,cI=Xc,dI=lI,fI=Tr,pI=function(e,r,i){return uI.withParams({type:"schemaAdditionalProperties",additionalProperties:r,schema:e},function(a){if(!a||!Dv(a))return!0;var n=Object.keys(a),s=Object.keys(e.properties||{}),o;if(r===!0||r===void 0)return!0;if(e.patternProperties){var u=Object.keys(e.patternProperties).map(function(c){return new RegExp(c)});o=n.filter(function(c){return e.properties&&e.properties[c]?!1:!u.some(function(d){return d.test(c)})})}else{if(r===!1)return n.every(function(c){return s.indexOf(c)!==-1});o=dI(n,s)}if(r===!1)return o.length===0;if(Dv(r)){var l=i(r);return cI(o,function(c){var d=a[c];return fI(l,d)})}return!0})},Fi=function(e){return e!==void 0};function hI(t){return t===null}var mI=hI,vI=dm,Av=1/0,gI=17976931348623157e292;function bI(t){if(!t)return t===0?t:0;if(t=vI(t),t===Av||t===-Av){var e=t<0?-1:1;return e*gI}return t===t?t:0}var yI=bI,xI=yI;function wI(t){var e=xI(t),r=e%1;return e===e?r?e-r:e:0}var PI=wI,SI=PI;function kI(t){return typeof t=="number"&&t==SI(t)}var zv=kI,TI=Gt,CI=TI.isFinite;function MI(t){return typeof t=="number"&&CI(t)}var Bi=MI,DI=oi,AI=lr,zI="[object Boolean]";function OI(t){return t===!0||t===!1||AI(t)&&DI(t)==zI}var EI=OI,jI=oi,NI=ht,II=lr,LI="[object String]";function FI(t){return typeof t=="string"||!NI(t)&&II(t)&&jI(t)==LI}var jo=FI,BI=Oe,HI=Fi,RI=mI,qI=zv,WI=Bi,VI=EI,XI=jo,JI=Dt,UI={string:XI,object:function(t){return JI(t)&&!Array.isArray(t)},boolean:VI,array:Array.isArray,null:RI,number:WI,integer:qI},En=function(e,r){return BI.withParams({type:"schemaType",jsonType:r,schema:e},function(i){return r?!HI(i)||UI[r](i):!0})},GI=Oe,QI=Fi,YI=En,ZI=Tr,KI=function(e,r,i){return GI.withParams({type:"schemaAnyOf",schemas:r,schema:e},function(a){return!QI(a)||!YI(e,e.type)(a)?!0:r.some(function(n){return ZI(i(n),a)})})},_I=Oe,$I=Bi,eL=function(e,r,i){return _I.withParams({type:"schemaBetween",min:r,max:i,schema:e},function(a){return $I(a)?a>=r&&a<=i:!0})},tL=Oe,rL=Tr,iL=function(e,r,i){return tL.withParams({type:"schemaContains",contains:r,schema:e},function(a){if(!Array.isArray(a))return!0;var n=i(r);return a.some(function(s){return rL(n,s)})})},aL=Oe,nL=bt,sL=Tr,oL=function(e,r,i){return aL.withParams({type:"schemaDependencies",dependencies:r,schema:e},function(a){if(!nL(a))return!0;var n=Object.keys(a),s=n.filter(function(o){return r.hasOwnProperty(o)});return s.reduce(function(o,u){if(!o)return o;var l=r[u];return Array.isArray(l)?l.every(function(c){return n.indexOf(c)!==-1}):sL(i(l),a)},!0)})},lL=Oe,uL=Fi,cL=Ac,dL=function(e,r){return lL.withParams({type:"schemaEnum",choices:r,schema:e},function(i){return uL(i)?r.some(function(a){return cL(i,a)}):!0})},fL=Oe,pL=Ac,hL=Fi,mL=function(e,r){return fL.withParams({type:"schemaConst",equal:r,schema:e},function(i){return!hL(i)||pL(r,i)})},vL=Oe,gL=Bi,bL=function(e,r){return vL.withParams({type:"schemaExclusiveMaximum",max:r,schema:e},function(i){return gL(i)?i<r:!0})},yL=Oe,xL=Bi,wL=function(e,r){return yL.withParams({type:"schemaExclusiveMinimum",min:r,schema:e},function(i){return xL(i)?i>r:!0})},PL=Oe,SL=En,Ov=Tr,kL=function(e,r){return PL.withParams({type:"schemaItems",schema:e},function(i){if(!Array.isArray(i)||i.length===0)return!0;if(e.items.type==="object"){var a=i.some(function(s){return!SL(e,e.type)(s)});if(a)return!0}var n;return Array.isArray(e.items)?(n=e.items.map(function(s){return r(s)}),i.every(function(s,o){return Ov(n[o],s)})):(n=r(e.items),i.every(function(s){return Ov(n,s)}))})},TL=Oe,CL=function(e,r){return TL.withParams({type:"schemaMaxItems",schema:e,max:r},function(i){return Array.isArray(i)?i.length<=r:!0})},ML=Oe,DL=jo,AL=function(e,r){return ML.withParams({type:"schemaMaxLength",schema:e,max:r},function(i){return DL(i)?i.length<=r:!0})},zL=Oe,OL=bt,EL=function(e,r){return zL.withParams({type:"schemaMaxProperties",max:r,schema:e},function(i){return OL(i)?Object.keys(i).length<=r:!0})},jL=Oe,NL=Bi,IL=function(e,r){return jL.withParams({type:"schemaMaximum",max:r,schema:e},function(i){return NL(i)?i<=r:!0})},LL=Oe,FL=function(e,r){return LL.withParams({type:"schemaMinItems",schema:e,min:r},function(i){return Array.isArray(i)?i.length>=r:!0})},BL=Oe,HL=jo,RL=function(e,r){return BL.withParams({type:"schemaMinLength",schema:e,min:r},function(i){return HL(i)?i.length>=r:!0})},qL=Oe,WL=bt,VL=function(e,r){return qL.withParams({type:"schemaMinProperties",min:r,schema:e},function(i){return WL(i)?Object.keys(i).length>=r:!0})},XL=Oe,JL=Bi,UL=function(e,r){return XL.withParams({type:"schemaMinimum",min:r,schema:e},function(i){return JL(i)?i>=r:!0})},GL=Oe,QL=Bi,YL=zv,ZL=function(e,r){return GL.withParams({type:"schemaMultipleOf",divider:r,schema:e},function(i){return QL(i)?YL(i/r):!0})},KL=Oe,_L=Fi,$L=En,e2=Tr,t2=function(e,r,i){return KL.withParams({type:"schemaNot",not:r,schema:e},function(a){return!_L(a)||!$L(e,e.type)(a)?!0:!e2(i(r),a)})},r2=Oe,i2=Fi,a2=En,n2=Tr,s2=function(e,r,i){return r2.withParams({type:"schemaOneOf",schemas:r,schema:e},function(a){return!i2(a)||!a2(e,e.type)(a)?!0:r.reduce(function(n,s){return n>1?2:n2(i(s),a)?n+1:n},0)===1})},o2=Mo;function l2(t,e){var r=[];return o2(t,function(i,a,n){e(i,a,n)&&r.push(i)}),r}var u2=l2,c2=Oh,d2=u2,f2=Ao,p2=ht;function h2(t,e){var r=p2(t)?c2:d2;return r(t,f2(e))}var m2=h2,v2=Oe,Ev=bt,g2=Xc,b2=zo,y2=m2,x2=Tr,w2=function(e,r,i){return v2.withParams({type:"schemaPatternProperties",patternProperties:r,schema:e},function(a){if(!Ev(a))return!0;if(e.additionalProperties!==void 0&&!Ev(e.additionalProperties)&&e.additionalProperties!==!0){var n=Object.keys(r).map(function(u){return new RegExp(u)}),s=Object.keys(a).every(function(u){return e.properties&&e.properties[u]?!0:n.some(function(l){return l.test(u)})});if(!s)return!1}var o=b2(a,function(u,l,c){return u[c]=y2(r,function(d,f){return new RegExp(f).test(c)}),u},{});return g2(o,function(u,l){return u.every(function(c){return x2(i(c),a[l])})})})},P2=Oe,S2=jo,k2=function(e,r){return P2.withParams({type:"schemaPattern",pattern:r,schema:e},function(i){return S2(i)?r.test(i):!0})},T2=Oe,C2=bt,M2=Tr,D2=function(e,r,i){return T2.withParams({type:"schemaPropertyNames",propertyNames:r,schema:e},function(a){if(!C2(a))return!0;var n=Object.keys(a),s=i(r);return n.every(function(o){return M2(s,o)})})},A2=Oe,z2=Fi,O2=bt,E2=function(e,r){return A2.withParams({type:"schemaRequired",schema:e},function(i,a){return!O2(a)&&r?!0:z2(i)})},Me={},No={},Ue={},Io={},jn={},jv;function j2(){if(jv)return jn;jv=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.withParams=void 0;function t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(a)}var e=typeof window<"u"?window:typeof kt<"u"?kt:{},r=function(n,s){return t(n)==="object"&&s!==void 0?s:n(function(){})},i=e.vuelidate?e.vuelidate.withParams:r;return jn.withParams=i,jn}Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=void 0;var N2={}.BUILD==="web"?j2().withParams:At.withParams,I2=N2;Io.default=I2,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.req=t.regex=t.ref=t.len=void 0,Object.defineProperty(t,"withParams",{enumerable:!0,get:function(){return e.default}});var e=r(Io);function r(u){return u&&u.__esModule?u:{default:u}}function i(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(c){return typeof c}:i=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i(u)}var a=function(l){if(Array.isArray(l))return!!l.length;if(l==null)return!1;if(l===!1)return!0;if(l instanceof Date)return!isNaN(l.getTime());if(i(l)==="object"){for(var c in l)return!0;return!1}return!!String(l).length};t.req=a;var n=function(l){return Array.isArray(l)?l.length:i(l)==="object"?Object.keys(l).length:String(l).length};t.len=n;var s=function(l,c,d){return typeof l=="function"?l.call(c,d):d[l]};t.ref=s;var o=function(l,c){return(0,e.default)({type:l},function(d){return!a(d)||c.test(d)})};t.regex=o}(Ue),Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var L2=Ue,F2=(0,L2.regex)("alpha",/^[a-zA-Z]*$/);No.default=F2;var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var B2=Ue,H2=(0,B2.regex)("alphaNum",/^[a-zA-Z0-9]*$/);Lo.default=H2;var Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;var R2=Ue,q2=(0,R2.regex)("numeric",/^[0-9]*$/);Fo.default=q2;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var Nv=Ue,W2=function(e,r){return(0,Nv.withParams)({type:"between",min:e,max:r},function(i){return!(0,Nv.req)(i)||(!/\s/.test(i)||i instanceof Date)&&+e<=+i&&+r>=+i})};Bo.default=W2;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=void 0;var V2=Ue,X2=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i,J2=(0,V2.regex)("email",X2);Ho.default=J2;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=void 0;var Iv=Ue,U2=(0,Iv.withParams)({type:"ipAddress"},function(t){if(!(0,Iv.req)(t))return!0;if(typeof t!="string")return!1;var e=t.split(".");return e.length===4&&e.every(G2)});Ro.default=U2;var G2=function(e){if(e.length>3||e.length===0||e[0]==="0"&&e!=="0"||!e.match(/^\d+$/))return!1;var r=+e|0;return r>=0&&r<=255},qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var Lv=Ue,Q2=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return(0,Lv.withParams)({type:"macAddress"},function(r){if(!(0,Lv.req)(r))return!0;if(typeof r!="string")return!1;var i=typeof e=="string"&&e!==""?r.split(e):r.length===12||r.length===16?r.match(/.{2}/g):null;return i!==null&&(i.length===6||i.length===8)&&i.every(Y2)})};qo.default=Q2;var Y2=function(e){return e.toLowerCase().match(/^[0-9a-f]{2}$/)},Wo={};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.default=void 0;var Gc=Ue,Z2=function(e){return(0,Gc.withParams)({type:"maxLength",max:e},function(r){return!(0,Gc.req)(r)||(0,Gc.len)(r)<=e})};Wo.default=Z2;var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;var Qc=Ue,K2=function(e){return(0,Qc.withParams)({type:"minLength",min:e},function(r){return!(0,Qc.req)(r)||(0,Qc.len)(r)>=e})};Vo.default=K2;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=void 0;var Yc=Ue,_2=(0,Yc.withParams)({type:"required"},function(t){return typeof t=="string"?(0,Yc.req)(t.trim()):(0,Yc.req)(t)});Xo.default=_2;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=void 0;var Zc=Ue,$2=function(e){return(0,Zc.withParams)({type:"requiredIf",prop:e},function(r,i){return(0,Zc.ref)(e,this,i)?(0,Zc.req)(r):!0})};Jo.default=$2;var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var Kc=Ue,e7=function(e){return(0,Kc.withParams)({type:"requiredUnless",prop:e},function(r,i){return(0,Kc.ref)(e,this,i)?!0:(0,Kc.req)(r)})};Uo.default=e7;var Go={};Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var Fv=Ue,t7=function(e){return(0,Fv.withParams)({type:"sameAs",eq:e},function(r,i){return r===(0,Fv.ref)(e,this,i)})};Go.default=t7;var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var r7=Ue,i7=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i,a7=(0,r7.regex)("url",i7);Qo.default=a7;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=void 0;var n7=Ue,s7=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,n7.withParams)({type:"or"},function(){for(var a=this,n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return r.length>0&&r.reduce(function(u,l){return u||l.apply(a,s)},!1)})};Yo.default=s7;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.default=void 0;var o7=Ue,l7=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,o7.withParams)({type:"and"},function(){for(var a=this,n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return r.length>0&&r.reduce(function(u,l){return u&&l.apply(a,s)},!0)})};Zo.default=l7;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.default=void 0;var Bv=Ue,u7=function(e){return(0,Bv.withParams)({type:"not"},function(r,i){return!(0,Bv.req)(r)||!e.call(this,r,i)})};Ko.default=u7;var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;var Hv=Ue,c7=function(e){return(0,Hv.withParams)({type:"minValue",min:e},function(r){return!(0,Hv.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+e})};_o.default=c7;var $o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var Rv=Ue,d7=function(e){return(0,Rv.withParams)({type:"maxValue",max:e},function(r){return!(0,Rv.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+e})};$o.default=d7;var el={};Object.defineProperty(el,"__esModule",{value:!0}),el.default=void 0;var f7=Ue,p7=(0,f7.regex)("integer",/(^[0-9]*$)|(^-[0-9]+$)/);el.default=p7;var tl={};Object.defineProperty(tl,"__esModule",{value:!0}),tl.default=void 0;var h7=Ue,m7=(0,h7.regex)("decimal",/^[-]?\d*(\.\d+)?$/);tl.default=m7,function(t){function e(z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(A){return typeof A}:e=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(z)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"alpha",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"alphaNum",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"and",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"between",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"decimal",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"email",{enumerable:!0,get:function(){return s.default}}),t.helpers=void 0,Object.defineProperty(t,"integer",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"ipAddress",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"macAddress",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"maxLength",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"maxValue",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"minLength",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"minValue",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"not",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"numeric",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"or",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"required",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"requiredIf",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"requiredUnless",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"sameAs",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"url",{enumerable:!0,get:function(){return h.default}});var r=T(No),i=T(Lo),a=T(Fo),n=T(Bo),s=T(Ho),o=T(Ro),u=T(qo),l=T(Wo),c=T(Vo),d=T(Xo),f=T(Jo),g=T(Uo),S=T(Go),h=T(Qo),y=T(Yo),x=T(Zo),w=T(Ko),b=T(_o),p=T($o),P=T(el),v=T(tl),m=D(Ue);t.helpers=m;function k(z){if(typeof WeakMap!="function")return null;var C=new WeakMap,A=new WeakMap;return(k=function(R){return R?A:C})(z)}function D(z,C){if(!C&&z&&z.__esModule)return z;if(z===null||e(z)!=="object"&&typeof z!="function")return{default:z};var A=k(C);if(A&&A.has(z))return A.get(z);var I={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in z)if(B!=="default"&&Object.prototype.hasOwnProperty.call(z,B)){var J=R?Object.getOwnPropertyDescriptor(z,B):null;J&&(J.get||J.set)?Object.defineProperty(I,B,J):I[B]=z[B]}return I.default=z,A&&A.set(z,I),I}function T(z){return z&&z.__esModule?z:{default:z}}}(Me);var v7=Oe,qv=Me,g7=function(e,r){return v7.withParams({type:"schemaTypes",schema:e},function(i){return qv.or.apply(qv,r)(i)})};function b7(){}var y7=b7,_c=Wh,x7=y7,w7=hc,P7=1/0,S7=_c&&1/w7(new _c([,-0]))[1]==P7?function(t){return new _c(t)}:x7,k7=S7,T7=fc,C7=iv,M7=av,D7=pc,A7=k7,z7=hc,O7=200;function E7(t,e,r){var i=-1,a=C7,n=t.length,s=!0,o=[],u=o;if(r)s=!1,a=M7;else if(n>=O7){var l=e?null:A7(t);if(l)return z7(l);s=!1,a=D7,u=new T7}else u=e?[]:o;e:for(;++i<n;){var c=t[i],d=e?e(c):c;if(c=r||c!==0?c:0,s&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;e&&u.push(d),o.push(c)}else a(u,d,r)||(u!==o&&u.push(d),o.push(c))}return o}var Wv=E7,j7=Wv;function N7(t){return t&&t.length?j7(t):[]}var I7=N7,L7=Ao,F7=Wv;function B7(t,e){return t&&t.length?F7(t,L7(e)):[]}var H7=B7,R7=Oe,q7=H7,W7=bt;function V7(t){return W7(t)||Array.isArray(t)?JSON.stringify(t):t}var X7=function(e){return R7.withParams({type:"schemaUniqueItems",schema:e},function(r){return!Array.isArray(r)||r.length<2?!0:r.length===q7(r,V7).length})},J7=YN,U7=pI,G7=KI,Q7=eL,Y7=iL,Z7=oL,K7=dL,_7=mL,$7=bL,e5=wL,t5=Mn,r5=ji,Nn=bt,i5=kL,a5=CL,n5=AL,s5=EL,o5=IL,l5=FL,u5=RL,c5=VL,d5=UL,f5=ZL,p5=t2,h5=s2,m5=w2,v5=k2,g5=D2,b5=zo,y5=E2,x5=g7,Vv=En,w5=I7,P5=X7,S5=Me;function Xv(t,e){var r=w5(Object.keys(t).concat(Object.keys(e)));r.forEach(function(i){var a=t[i],n=e[i];t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&r5(n)?t[i]=[].concat(a).concat(n):Nn(a)&&Nn(n)?Xv(a,n):n&&(t[i]=n)})}function Jv(t){Object.keys(t).forEach(function(e){var r=t[e];Array.isArray(r)?t[e]=S5.and.apply(null,r):Nn(r)&&Jv(r)})}function k5(t){return t===void 0}function yt(t,e,r,i,a){var n={},s=this;if(a=a||[],t===!0)return n;if(t===!1)return n.schemaNotPresent=k5,n;function o(l){return t.hasOwnProperty(l)}if(o("properties")){var u=t.required||[];n=b5(t.properties,function(l,c,d){var f=u.indexOf(d)!==-1;return l[d]=yt.call(s,c,f,r,d,a.concat(d)),l},n)}return Array.isArray(t.type)?n.schemaTypes=x5(t,t.type.map(function(l){return Vv(t,l)})):o("type")&&(n.schemaType=Vv(t,t.type)),e&&(n.schemaRequired=y5(t,r)),o("oneOf")&&(n.schemaOneOf=h5(t,t.oneOf,yt)),o("anyOf")&&(n.schemaAnyOf=G7(t,t.anyOf,yt)),o("not")&&(n.schemaNot=p5(t,t.not,yt)),o("additionalItems")&&(n.schemaAdditionalItems=J7(t,t.additionalItems,yt)),o("contains")&&(n.schemaContains=Y7(t,t.contains,yt)),o("dependencies")&&(n.schemaDependencies=Z7(t,t.dependencies,yt)),o("minLength")&&(n.schemaMinLength=u5(t,t.minLength)),o("maxLength")&&(n.schemaMaxLength=n5(t,t.maxLength)),o("minItems")&&(n.schemaMinItems=l5(t,t.minItems)),o("maxItems")&&(n.schemaMaxItems=a5(t,t.maxItems)),o("minimum")&&o("maximum")?n.schemaBetween=Q7(t,t.minimum,t.maximum):o("minimum")?n.schemaMinimum=d5(t,t.minimum):o("maximum")&&(n.schemaMaximum=o5(t,t.maximum)),o("exclusiveMinimum")&&(n.schemaExclusiveMinimum=e5(t,t.exclusiveMinimum)),o("exclusiveMaximum")&&(n.schemaExclusiveMaximum=$7(t,t.exclusiveMaximum)),o("maxProperties")&&(n.schemaMaxProperties=s5(t,t.maxProperties)),o("minProperties")&&(n.schemaMinProperties=c5(t,t.minProperties)),o("multipleOf")&&(n.schemaMultipleOf=f5(t,t.multipleOf)),o("pattern")&&(n.schemaPattern=v5(t,new RegExp(t.pattern))),o("patternProperties")&&(n.schemaPatternProperties=m5(t,t.patternProperties,yt)),o("propertyNames")&&(n.schemaPropertyNames=g5(t,t.propertyNames,yt)),o("additionalProperties")&&(n.schemaAdditionalProperties=U7(t,t.additionalProperties,yt)),o("enum")&&(n.schemaEnum=K7(t,t.enum)),o("const")&&(n.schemaConst=_7(t,t.const)),o("uniqueItems")&&(n.schemaUniqueItems=P5(t)),o("items")&&t.type==="array"&&Nn(t.items)?n.$each=yt(t.items,!0,!0,null,a.concat(0)):o("items")&&Nn(t.items)?Array.isArray(t5(this,a.join(".")))&&(n.$each=yt(t.items,!0,!0,null,a.concat(0))):o("items")&&(n.schemaItems=i5(t,yt)),o("allOf")&&(t.allOf.forEach(function(l){Xv(n,yt(l,!1,r))}),Jv(n)),n}var T5={getPropertyValidationRules:yt},C5=zo,Uv=$m,Gv=tv,Qv=Mn,In=bt,M5=ji,D5={integer:0,number:0,string:"",boolean:!1,object:function(){return{}},array:function(){return[]},null:null};function $c(t,e,r){if(!r){if(t.hasOwnProperty("default"))return t.default;if(t.hasOwnProperty("const"))return t.const;if(e){var i=D5[t.type];return M5(i)?i():i}else return}}function ya(t,e,r,i){if(e.default!==void 0)return Object.assign(t,e.default);if(t){var a=["allOf"],n=["anyOf","oneOf","not"];a.forEach(function(s){Array.isArray(e[s])&&e[s].forEach(function(o){ya(t,o)})}),n.forEach(function(s){Array.isArray(e[s])?e[s].forEach(function(o){ya(t,o,!0,!0)}):In(e[s])&&ya(t,e[s],!0,!0)}),In(e.properties)&&Object.keys(e.properties).forEach(function(s){var o=e.properties[s],u=Array.isArray(e.required)&&e.required.indexOf(s)!==-1,l=t[s];In(l)?t[s]=Uv(l,$c(o,u,r)):t[s]=$c(o,u,r),!i&&o.type==="object"&&o.properties&&ya(t[s],o,r)})}}function A5(t,e){var r=t.every(function(i){return i.type==="array"});return C5(t,function(i,a){if(e)return Gv(i,a.mountPoint,void 0),i;if(a.mountPoint!=="."){var n=Qv(i,a.mountPoint),s=a.schema.hasOwnProperty("type")?$c(a.schema,!0):{};In(n)?n=Uv(n,s):n=s,Gv(i,a.mountPoint,n),In(n)&&ya(Qv(i,a.mountPoint),a.schema)}else ya(i,a.schema);return i},r?[]:{})}var z5=A5,O5=o4,rl=zo,Yv=$m,Zv=tv,il=Mn,E5=pj,j5=wj,N5=MN,ed=bt,I5=EN,Ln=ji,Kv=NN,_v=T5,Fn=z5,td;function L5(t){if(td)return td;for(var e=t.constructor;e.super;)e=e.super;return td=e,e}function $v(t){return Array.isArray(t)?t.map(function(e){return e.mountPoint?e:{mountPoint:"schema",schema:e}}):t.mountPoint?[t]:[{mountPoint:"schema",schema:t}]}function eg(t,e){var r=Fn([{mountPoint:".",schema:t}]);return j5(e,r)}function F5(t){var e={},r=this,i=t.filter(function(n){return n.mountPoint==="."});i.forEach(function(n){if(n.schema.type!=="object")throw new Error("Schema with id "+n.schema.id+" has mount point at the root and is not a schema of type object. This is not supported. For non object schmeas you must define a mount point.");if(n.schema.hasOwnProperty("patternProperties"))throw new Error("Schema with id "+n.schema.id+" has sibling validator patternProperties. This is not supported when mounting on root. Use a mount point.");if(!(n.schema.additionalProperties===!0||n.schema.additionalProperties===void 0))throw new Error("Schema with id "+n.schema.id+" has sibling validators additionalProperties not equal to true or undefined. This is not supported when mounting on root. Since there are lots of extra properties on a vue instance.")}),i.length&&(e=i.reduce(function(n,s){return Yv(n,_v.getPropertyValidationRules.call(r,s.schema,!0,!0)),n},e));var a=E5(t,i);return rl(a,function(n,s){var o=il(n,s.mountPoint),u=s.mountPoint.split(".");return Zv(n,s.mountPoint,Yv(o,_v.getPropertyValidationRules.call(r,s.schema,!0,!0,null,u))),n},e)}function tg(t){return t=t||{},{beforeCreate:function(){var e=this,r=this.$options.schema,i=this.$options.propsData,a=[];if(r&&(a=$v(r)),i&&i[t.schemaPropsName]&&(a=a.concat($v(i[t.schemaPropsName]))),!!a.length){var n=L5(this);this.$options.validations=O5(function(){return this.$schema&&!Ln(this.$schema.then)?F5.call(this,this.$schema):{}},this.$options.validations),this.$options.methods=n.config.optionMergeStrategies.methods({createFromSchema:eg,getSchemaData:function(l){var c=Array.isArray(l),d=Array.isArray(l)?l:[l],f=this;return rl(d,function(g,S){var h=f,y=Fn(d),x=ed(y)?Kv(y):{};if(l.mountPoint!=="."&&!c)if(y=il(f,l.mountPoint),x=ed(y)?Kv(y):{},h=il(f,l.mountPoint),ed(h))x=rl(x,function(w,b,p){return w[String(p).replace(l.mountPoint,"").replace(/^\./,"")]=b,w},{});else return h;return rl(x,function(w,b,p){return Zv(w,p,il(h,p))},g)},{})}},this.$options.methods);var s=a.map(function(l){if(Ln(l.schema)){var c=I5(l);return c.schema=l.schema.call(e),c}return l}),o=s.some(function(l){return Ln(l.schema.then)});if(o){s.forEach(function(l,c){if(l.mountPoint==="."&&Ln(l.schema.then))throw new Error("Schema with index "+c+" has mount point at the root and is a promise. This is not supported. You can't mount to root async. Due to vue limitation. Use a mount point.")});var u=Promise.all(s.map(function(l){return Ln(l.schema.then)?l.schema.then(function(c){var d=N5(l,"schema");return d.schema=c,d}):l})).then(function(l){Object.assign(e,Fn(l)),e.$schema=l});n.util.defineReactive(this,"$schema",u),this.$options.data=n.config.optionMergeStrategies.data(function(){return Fn(s,!0)},this.$options.data)}else n.util.defineReactive(this,"$schema",s),this.$options.data=n.config.optionMergeStrategies.data(function(){return Fn(s)},this.$options.data)}}}}var B5={createFromSchema:eg,mixin:tg(),install:function(t,e){t.mixin(tg(e))}};const H5=ir(B5),R5={components:{FormTextArea:ee.FormTextArea},inheritAttrs:!1,props:["label","value","helper"],data(){return{options:[{value:"top",content:this.$t("Top")},{value:"topleft",content:this.$t("Top Left")},{value:"topright",content:this.$t("Top Right")},{value:"right",content:this.$t("Right")},{value:"righttop",content:this.$t("Right Top")},{value:"rightbottom",content:this.$t("Right Bottom")},{value:"bottom",content:this.$t("Bottom")},{value:"bottomleft",content:this.$t("Bottom Left")},{value:"bottomright",content:this.$t("Bottom Right")},{value:"left",content:this.$t("Left")},{value:"lefttop",content:this.$t("Left Top")},{value:"leftbottom",content:this.$t("Left Bottom")}],optionsVariant:[{value:"primary",content:this.$t("Primary")},{value:"secondary",content:this.$t("Secondary")},{value:"success",content:this.$t("Success")},{value:"danger",content:this.$t("Danger")},{value:"warning",content:this.$t("Warning")},{value:"info",content:this.$t("Info")},{value:"light",content:this.$t("Light")},{value:"dark",content:this.$t("Dark")}],position:"top",content:"",variant:""}},computed:{buttonType(){return G.get(this.$attrs,"selectedControl.config.event")}},watch:{value:{handler(){this.value?(this.position=this.value.position||"",this.content=this.value.content||"",this.variant=this.value.variant||""):this.value={position:"",content:"",variant:""}},immediate:!0},position(){this.value.position=this.position},content(){this.value.content=this.content},variant(){this.value.variant=this.variant}},methods:{getLabelFromValuePosition(t){const e=this.options.find(r=>r.value==t);return e?e.content:null},getLabelFromValueVariant(t){const e=this.optionsVariant.find(r=>r.value==t);return e?e.content:null}}};var q5=function(){var e=this,r=e._self._c;return e.buttonType!=="submit"?r("div",[r("label",{staticClass:"typo__label"},[e._v(e._s(e.label))]),r("br"),r("label",{staticClass:"typo__label"},[e._v(e._s(e.$t("Position")))]),r("multiselect",{staticClass:"mb-3",attrs:{placeholder:e.$t("Select..."),"show-labels":!1,options:e.options.map(i=>i.value),"custom-label":e.getLabelFromValuePosition},model:{value:e.position,callback:function(i){e.position=i},expression:"position"}}),r("label",{staticClass:"typo__label"},[e._v(e._s(e.$t("Variant")))]),r("multiselect",{staticClass:"mb-3",attrs:{placeholder:e.$t("Select..."),"show-labels":!1,options:e.optionsVariant.map(i=>i.value),"custom-label":e.getLabelFromValueVariant},model:{value:e.variant,callback:function(i){e.variant=i},expression:"variant"}}),r("form-text-area",{staticClass:"mb-3",attrs:{label:e.$t("Tooltip Contains"),"data-cy":"content-tooltip"},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}),r("small",{staticClass:"form-text text-muted"},[e._v(" "+e._s(e.$t("HTML, Mustache support"))+" ")])],1):e._e()},W5=[],V5=oe(R5,q5,W5,!1,null,null,null,null);const rd=V5.exports,tee="",X5={props:{label:String,value:{type:Object,default:()=>({showForDesktop:!0,showForMobile:!0})},helper:String,options:Object},watch:{value:{handler(){this.settings=this.value},immediate:!0}},data(){return{settings:{showForDesktop:!0,showForMobile:!0}}},methods:{emitChanges(){this.$emit("input",this.value),this.$emit("update-state")}}};var J5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",[r("label",[e._v(e._s(e.label))]),r("b-form-checkbox",{attrs:{switch:""},on:{change:e.emitChanges},model:{value:e.settings.showForDesktop,callback:function(i){e.$set(e.settings,"showForDesktop",i)},expression:"settings.showForDesktop"}},[e._v(" "+e._s(e.$t("Show for Desktop"))+" ")]),r("b-form-checkbox",{attrs:{switch:""},on:{change:e.emitChanges},model:{value:e.settings.showForMobile,callback:function(i){e.$set(e.settings,"showForMobile",i)},expression:"settings.showForMobile"}},[e._v(" "+e._s(e.$t("Show for Mobile"))+" ")])],1)])},U5=[],G5=oe(X5,J5,U5,!1,null,"74e7eb8d",null,null);const id=G5.exports,li={type:"ColorSelect",field:"bgcolor",config:{label:"Background Color",helper:"Set the element's background color",options:[{value:"alert alert-primary",content:"primary"},{value:"alert alert-secondary",content:"secondary"},{value:"alert alert-success",content:"success"},{value:"alert alert-danger",content:"danger"},{value:"alert alert-warning",content:"warning"},{value:"alert alert-info",content:"info"},{value:"alert alert-light",content:"light"},{value:"alert alert-dark",content:"dark"}]}},ui={type:"ColorSelect",field:"color",config:{label:"Text Color",helper:"Set the element's text color",options:[{value:"text-primary",content:"primary"},{value:"text-secondary",content:"secondary"},{value:"text-success",content:"success"},{value:"text-danger",content:"danger"},{value:"text-warning",content:"warning"},{value:"text-info",content:"info"},{value:"text-light",content:"light"},{value:"text-dark",content:"dark"}]}},al="null,break,case,catch,continue,debugger,default,delete,do,else,finally,for,function,if,in,instanceof,new,return,switch,this,throw,try,typeof,var,void,while,with,class,const,enum,export,extends,import,super,true,false",Qt={type:"FormInput",field:"name",config:{label:"Variable Name",name:"Variable Name",validation:"regex:/^([a-zA-Z]([a-zA-Z0-9_]?)+\\.?)+(?<!\\.)$/|required|not_in:"+al,helper:"A variable name is a symbolic name to reference information."}},Wr={type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the field's name"}},rg={...Wr,config:{label:"Button Label",helper:"The label describes the button's text"}},Bn={type:"FormInput",field:"placeholder",config:{label:"Placeholder Text",helper:"The placeholder is what is shown in the field when no value is provided yet"}},xa={type:"FormInput",field:"helper",config:{label:"Helper Text",helper:"Help text is meant to provide additional guidance on the field's value"}},nl={type:"FormCheckbox",field:"readonly",config:{label:"Read Only"}},ad={type:"FormCheckbox",field:"disabled",config:{label:"Read Only"}},Hi={type:"ValidationSelect",field:"validation",config:{label:"Validation Rules",helper:"The validation rules needed for this field"}},ig={type:"FormCheckbox",field:"toggle",config:{label:"Toggle Style",helper:""}},sl={type:"FormMultiselect",field:"variant",config:{label:"Button Variant Style",helper:"The variant determines the appearance of the button",options:[{value:"primary",content:"Primary"},{value:"secondary",content:"Secondary"},{value:"success",content:"Success"},{value:"danger",content:"Danger"},{value:"warning",content:"Warning"},{value:"info",content:"Info"},{value:"light",content:"Light"},{value:"dark",content:"Dark"},{value:"link",content:"Link"}]}},Hn={type:"default-value-editor",field:"defaultValue",config:{label:"Default Value",helper:"The default value is pre populated using the existing request data. This feature will allow you to modify the value displayed on screen load if needed."}},ag={type:"FormMultiselect",field:"event",config:{label:"Type",helper:"Choose whether the button should submit the form",options:[{value:"submit",content:"Submit Button"},{value:"script",content:"Regular Button"}]}},ng={type:rd,field:"tooltip",config:{label:"Tooltip "}},Q5={type:id,field:"deviceVisibility",config:{label:"Device Visibility "}},sg={type:"LoadingSubmitButton",field:"loading",config:{label:"Loading Submit Button",helper:"Loading Submit Button"}},og={type:"LabelSubmitButton",field:"loadingLabel",config:{label:"Loading Submit Button Label",helper:"Loading Submit Button Label"}},Y5={mounted(){this.extensions.push({onloadproperties({element:t,properties:e}){this.validVariableName(t.config.name)&&(delete e[":validation"],delete e.validation,this.isValidVariableName(t.config.name)?(e[":class"]=`{ 'form-group--error': (showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.vdata."+t.config.name)} && $v.vdata.${t.config.name}.$invalid || (showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.schema."+t.config.name)} && $v.schema.${t.config.name}.$invalid }`,e[":error"]=`(showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.vdata."+t.config.name)} && validationMessage($v.vdata.${t.config.name}) || (showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.schema."+t.config.name)} && validationMessage($v.schema.${t.config.name})`):this.getMode()==="preview"&&console.error("Invalid variable name"))},onbuild({screen:t}){t.mixins.push(Oe.validationMixin),t.mixins.push(H5.mixin)}})},methods:{...Et.mapGetters("globalErrorsModule",["getMode"]),isValidVariableName(t){const e=RegExp("^[A-Za-z][0-9a-zA-Z_$]*$"),r=t.split(".");let i=!0;return r.forEach(a=>{e.test(a)||(i=!1),al.split(",").includes(a)&&(i=!1)}),i},checkVariableExists(t){return t.split(".").reduce((r,i)=>(r.variable=r.variable?`${r.variable}.${i}`:i,r.str=r.str?`${r.str} && ${r.variable}`:i,r),{str:"",variable:""}).str},fieldValidationShow(t){let e=!0;if(t.config&&t.config.validation){const r=["Required","Required if"];Array.isArray(t.config.validation)?t.config.validation.forEach(i=>{r.includes(i.content)&&(e=!1)}):e=r.includes(t.config.validation)}return e}}},Z5=Object.freeze(Object.defineProperty({__proto__:null,default:Y5},Symbol.toStringTag,{value:"Module"})),lg={methods:{visibilityRuleIsVisible(t,e,r){const i=r||{showForDesktop:!0,showForMobile:!0,isMobile:!1},a=i.isMobile&&i.showForMobile||!i.isMobile&&i.showForDesktop;try{if(t&&t.trim().length>0){const n=this.getDataReference();return!!Mt.evaluate(t,n)&&a}return a}catch{}return!1}}},K5=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(){this.extensions.push({onloaditems({element:t,wrapper:e,definition:r}){const i=t.config.deviceVisibility||{showForDesktop:!0,showForMobile:!0},a=!i.showForDesktop||!i.showForMobile;if(t.visibleInDevice=r.isMobile&&i.showForMobile||!r.isMobile&&i.showForDesktop,t.config.conditionalHide||a){const n=JSON.stringify({...i,isMobile:r.isMobile});e.setAttribute("v-show",`visibilityRuleIsVisible(${JSON.stringify(t.config.conditionalHide)},
268
+ */var jN=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)},Tv=jN,NN=Eo;Eo.flatten=Eo,Eo.unflatten=Cv;function Eo(t,e){e=e||{};var r=e.delimiter||".",i=e.maxDepth,a={};function n(s,o,u){u=u||1,Object.keys(s).forEach(function(l){var c=s[l],d=e.safe&&Array.isArray(c),f=Object.prototype.toString.call(c),g=Tv(c),S=f==="[object Object]"||f==="[object Array]",h=o?o+r+l:l;if(!d&&!g&&S&&Object.keys(c).length&&(!e.maxDepth||u<i))return n(c,h,u+1);a[h]=c})}return n(t),a}function Cv(t,e){e=e||{};var r=e.delimiter||".",i=e.overwrite||!1,a={},n=Tv(t);if(n||Object.prototype.toString.call(t)!=="[object Object]")return t;function s(u){var l=Number(u);return isNaN(l)||u.indexOf(".")!==-1||e.object?u:l}var o=Object.keys(t).sort(function(u,l){return u.length-l.length});return o.forEach(function(u){for(var l=u.split(r),c=s(l.shift()),d=s(l[0]),f=a;d!==void 0;){if(c==="__proto__")return;var g=Object.prototype.toString.call(f[c]),S=g==="[object Object]"||g==="[object Array]";if(!i&&!S&&typeof f[c]<"u")return;(i&&!S||!i&&f[c]==null)&&(f[c]=typeof d=="number"&&!e.object?[]:{}),f=f[c],l.length>0&&(c=s(l.shift()),d=s(l[0]))}f[c]=Cv(t[u],e)}),a}function IN(t,e){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!e(t[r],r,t))return!1;return!0}var LN=IN,FN=Mo;function BN(t,e){var r=!0;return FN(t,function(i,a,n){return r=!!e(i,a,n),r}),r}var HN=BN,RN=LN,qN=HN,WN=Ao,VN=ht,XN=Xm;function JN(t,e,r){var i=VN(t)?RN:qN;return r&&XN(t,e,r)&&(e=void 0),i(t,WN(e))}var Xc=JN,UN=bt,Jc=Xc;function Uc(t,e,r){return UN(e)?Jc(e,function(i,a){return t==null?!0:a==="$each"?Array.isArray(t[r])?t[r].every(function(n){return Jc(i,function(s,o){return Uc(n,s,o)})}):!0:Uc(t[r],i,a)}):e(t)}var Tr=function(t,e){return Jc(t,function(r,i){return Uc(e,r,i)})},GN=Oe,QN=Tr,YN=function(e,r,i){return GN.withParams({type:"schemaAdditionalItems",schema:e},function(a){if(!Array.isArray(a)||a.length===0||!Array.isArray(e.items))return!0;var n=a.slice(e.items.length);if(!n.length)return!0;if(r===!1)return!1;var s=i(r);return n.every(function(o){return QN(s,o)})})};function ZN(t,e,r,i){for(var a=r-1,n=t.length;++a<n;)if(i(t[a],e))return a;return-1}var KN=ZN,_N=Po,$N=rv,eI=KN,tI=Sn,rI=Bc,iI=Array.prototype,Mv=iI.splice;function aI(t,e,r,i){var a=i?eI:$N,n=-1,s=e.length,o=t;for(t===e&&(e=rI(e)),r&&(o=_N(t,tI(r)));++n<s;)for(var u=0,l=e[n],c=r?r(l):l;(u=a(o,c,u,i))>-1;)o!==t&&Mv.call(o,u,1),Mv.call(t,u,1);return t}var nI=aI,sI=nI;function oI(t,e){return t&&t.length&&e&&e.length?sI(t,e):t}var lI=oI,uI=Oe,Dv=bt,cI=Xc,dI=lI,fI=Tr,pI=function(e,r,i){return uI.withParams({type:"schemaAdditionalProperties",additionalProperties:r,schema:e},function(a){if(!a||!Dv(a))return!0;var n=Object.keys(a),s=Object.keys(e.properties||{}),o;if(r===!0||r===void 0)return!0;if(e.patternProperties){var u=Object.keys(e.patternProperties).map(function(c){return new RegExp(c)});o=n.filter(function(c){return e.properties&&e.properties[c]?!1:!u.some(function(d){return d.test(c)})})}else{if(r===!1)return n.every(function(c){return s.indexOf(c)!==-1});o=dI(n,s)}if(r===!1)return o.length===0;if(Dv(r)){var l=i(r);return cI(o,function(c){var d=a[c];return fI(l,d)})}return!0})},Fi=function(e){return e!==void 0};function hI(t){return t===null}var mI=hI,vI=dm,Av=1/0,gI=17976931348623157e292;function bI(t){if(!t)return t===0?t:0;if(t=vI(t),t===Av||t===-Av){var e=t<0?-1:1;return e*gI}return t===t?t:0}var yI=bI,xI=yI;function wI(t){var e=xI(t),r=e%1;return e===e?r?e-r:e:0}var PI=wI,SI=PI;function kI(t){return typeof t=="number"&&t==SI(t)}var zv=kI,TI=Gt,CI=TI.isFinite;function MI(t){return typeof t=="number"&&CI(t)}var Bi=MI,DI=oi,AI=lr,zI="[object Boolean]";function OI(t){return t===!0||t===!1||AI(t)&&DI(t)==zI}var EI=OI,jI=oi,NI=ht,II=lr,LI="[object String]";function FI(t){return typeof t=="string"||!NI(t)&&II(t)&&jI(t)==LI}var jo=FI,BI=Oe,HI=Fi,RI=mI,qI=zv,WI=Bi,VI=EI,XI=jo,JI=Dt,UI={string:XI,object:function(t){return JI(t)&&!Array.isArray(t)},boolean:VI,array:Array.isArray,null:RI,number:WI,integer:qI},En=function(e,r){return BI.withParams({type:"schemaType",jsonType:r,schema:e},function(i){return r?!HI(i)||UI[r](i):!0})},GI=Oe,QI=Fi,YI=En,ZI=Tr,KI=function(e,r,i){return GI.withParams({type:"schemaAnyOf",schemas:r,schema:e},function(a){return!QI(a)||!YI(e,e.type)(a)?!0:r.some(function(n){return ZI(i(n),a)})})},_I=Oe,$I=Bi,eL=function(e,r,i){return _I.withParams({type:"schemaBetween",min:r,max:i,schema:e},function(a){return $I(a)?a>=r&&a<=i:!0})},tL=Oe,rL=Tr,iL=function(e,r,i){return tL.withParams({type:"schemaContains",contains:r,schema:e},function(a){if(!Array.isArray(a))return!0;var n=i(r);return a.some(function(s){return rL(n,s)})})},aL=Oe,nL=bt,sL=Tr,oL=function(e,r,i){return aL.withParams({type:"schemaDependencies",dependencies:r,schema:e},function(a){if(!nL(a))return!0;var n=Object.keys(a),s=n.filter(function(o){return r.hasOwnProperty(o)});return s.reduce(function(o,u){if(!o)return o;var l=r[u];return Array.isArray(l)?l.every(function(c){return n.indexOf(c)!==-1}):sL(i(l),a)},!0)})},lL=Oe,uL=Fi,cL=Ac,dL=function(e,r){return lL.withParams({type:"schemaEnum",choices:r,schema:e},function(i){return uL(i)?r.some(function(a){return cL(i,a)}):!0})},fL=Oe,pL=Ac,hL=Fi,mL=function(e,r){return fL.withParams({type:"schemaConst",equal:r,schema:e},function(i){return!hL(i)||pL(r,i)})},vL=Oe,gL=Bi,bL=function(e,r){return vL.withParams({type:"schemaExclusiveMaximum",max:r,schema:e},function(i){return gL(i)?i<r:!0})},yL=Oe,xL=Bi,wL=function(e,r){return yL.withParams({type:"schemaExclusiveMinimum",min:r,schema:e},function(i){return xL(i)?i>r:!0})},PL=Oe,SL=En,Ov=Tr,kL=function(e,r){return PL.withParams({type:"schemaItems",schema:e},function(i){if(!Array.isArray(i)||i.length===0)return!0;if(e.items.type==="object"){var a=i.some(function(s){return!SL(e,e.type)(s)});if(a)return!0}var n;return Array.isArray(e.items)?(n=e.items.map(function(s){return r(s)}),i.every(function(s,o){return Ov(n[o],s)})):(n=r(e.items),i.every(function(s){return Ov(n,s)}))})},TL=Oe,CL=function(e,r){return TL.withParams({type:"schemaMaxItems",schema:e,max:r},function(i){return Array.isArray(i)?i.length<=r:!0})},ML=Oe,DL=jo,AL=function(e,r){return ML.withParams({type:"schemaMaxLength",schema:e,max:r},function(i){return DL(i)?i.length<=r:!0})},zL=Oe,OL=bt,EL=function(e,r){return zL.withParams({type:"schemaMaxProperties",max:r,schema:e},function(i){return OL(i)?Object.keys(i).length<=r:!0})},jL=Oe,NL=Bi,IL=function(e,r){return jL.withParams({type:"schemaMaximum",max:r,schema:e},function(i){return NL(i)?i<=r:!0})},LL=Oe,FL=function(e,r){return LL.withParams({type:"schemaMinItems",schema:e,min:r},function(i){return Array.isArray(i)?i.length>=r:!0})},BL=Oe,HL=jo,RL=function(e,r){return BL.withParams({type:"schemaMinLength",schema:e,min:r},function(i){return HL(i)?i.length>=r:!0})},qL=Oe,WL=bt,VL=function(e,r){return qL.withParams({type:"schemaMinProperties",min:r,schema:e},function(i){return WL(i)?Object.keys(i).length>=r:!0})},XL=Oe,JL=Bi,UL=function(e,r){return XL.withParams({type:"schemaMinimum",min:r,schema:e},function(i){return JL(i)?i>=r:!0})},GL=Oe,QL=Bi,YL=zv,ZL=function(e,r){return GL.withParams({type:"schemaMultipleOf",divider:r,schema:e},function(i){return QL(i)?YL(i/r):!0})},KL=Oe,_L=Fi,$L=En,e2=Tr,t2=function(e,r,i){return KL.withParams({type:"schemaNot",not:r,schema:e},function(a){return!_L(a)||!$L(e,e.type)(a)?!0:!e2(i(r),a)})},r2=Oe,i2=Fi,a2=En,n2=Tr,s2=function(e,r,i){return r2.withParams({type:"schemaOneOf",schemas:r,schema:e},function(a){return!i2(a)||!a2(e,e.type)(a)?!0:r.reduce(function(n,s){return n>1?2:n2(i(s),a)?n+1:n},0)===1})},o2=Mo;function l2(t,e){var r=[];return o2(t,function(i,a,n){e(i,a,n)&&r.push(i)}),r}var u2=l2,c2=Oh,d2=u2,f2=Ao,p2=ht;function h2(t,e){var r=p2(t)?c2:d2;return r(t,f2(e))}var m2=h2,v2=Oe,Ev=bt,g2=Xc,b2=zo,y2=m2,x2=Tr,w2=function(e,r,i){return v2.withParams({type:"schemaPatternProperties",patternProperties:r,schema:e},function(a){if(!Ev(a))return!0;if(e.additionalProperties!==void 0&&!Ev(e.additionalProperties)&&e.additionalProperties!==!0){var n=Object.keys(r).map(function(u){return new RegExp(u)}),s=Object.keys(a).every(function(u){return e.properties&&e.properties[u]?!0:n.some(function(l){return l.test(u)})});if(!s)return!1}var o=b2(a,function(u,l,c){return u[c]=y2(r,function(d,f){return new RegExp(f).test(c)}),u},{});return g2(o,function(u,l){return u.every(function(c){return x2(i(c),a[l])})})})},P2=Oe,S2=jo,k2=function(e,r){return P2.withParams({type:"schemaPattern",pattern:r,schema:e},function(i){return S2(i)?r.test(i):!0})},T2=Oe,C2=bt,M2=Tr,D2=function(e,r,i){return T2.withParams({type:"schemaPropertyNames",propertyNames:r,schema:e},function(a){if(!C2(a))return!0;var n=Object.keys(a),s=i(r);return n.every(function(o){return M2(s,o)})})},A2=Oe,z2=Fi,O2=bt,E2=function(e,r){return A2.withParams({type:"schemaRequired",schema:e},function(i,a){return!O2(a)&&r?!0:z2(i)})},Me={},No={},Ue={},Io={},jn={},jv;function j2(){if(jv)return jn;jv=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.withParams=void 0;function t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(a)}var e=typeof window<"u"?window:typeof kt<"u"?kt:{},r=function(n,s){return t(n)==="object"&&s!==void 0?s:n(function(){})},i=e.vuelidate?e.vuelidate.withParams:r;return jn.withParams=i,jn}Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=void 0;var N2={}.BUILD==="web"?j2().withParams:At.withParams,I2=N2;Io.default=I2,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.req=t.regex=t.ref=t.len=void 0,Object.defineProperty(t,"withParams",{enumerable:!0,get:function(){return e.default}});var e=r(Io);function r(u){return u&&u.__esModule?u:{default:u}}function i(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(c){return typeof c}:i=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i(u)}var a=function(l){if(Array.isArray(l))return!!l.length;if(l==null)return!1;if(l===!1)return!0;if(l instanceof Date)return!isNaN(l.getTime());if(i(l)==="object"){for(var c in l)return!0;return!1}return!!String(l).length};t.req=a;var n=function(l){return Array.isArray(l)?l.length:i(l)==="object"?Object.keys(l).length:String(l).length};t.len=n;var s=function(l,c,d){return typeof l=="function"?l.call(c,d):d[l]};t.ref=s;var o=function(l,c){return(0,e.default)({type:l},function(d){return!a(d)||c.test(d)})};t.regex=o}(Ue),Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var L2=Ue,F2=(0,L2.regex)("alpha",/^[a-zA-Z]*$/);No.default=F2;var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var B2=Ue,H2=(0,B2.regex)("alphaNum",/^[a-zA-Z0-9]*$/);Lo.default=H2;var Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;var R2=Ue,q2=(0,R2.regex)("numeric",/^[0-9]*$/);Fo.default=q2;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var Nv=Ue,W2=function(e,r){return(0,Nv.withParams)({type:"between",min:e,max:r},function(i){return!(0,Nv.req)(i)||(!/\s/.test(i)||i instanceof Date)&&+e<=+i&&+r>=+i})};Bo.default=W2;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=void 0;var V2=Ue,X2=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i,J2=(0,V2.regex)("email",X2);Ho.default=J2;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=void 0;var Iv=Ue,U2=(0,Iv.withParams)({type:"ipAddress"},function(t){if(!(0,Iv.req)(t))return!0;if(typeof t!="string")return!1;var e=t.split(".");return e.length===4&&e.every(G2)});Ro.default=U2;var G2=function(e){if(e.length>3||e.length===0||e[0]==="0"&&e!=="0"||!e.match(/^\d+$/))return!1;var r=+e|0;return r>=0&&r<=255},qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var Lv=Ue,Q2=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return(0,Lv.withParams)({type:"macAddress"},function(r){if(!(0,Lv.req)(r))return!0;if(typeof r!="string")return!1;var i=typeof e=="string"&&e!==""?r.split(e):r.length===12||r.length===16?r.match(/.{2}/g):null;return i!==null&&(i.length===6||i.length===8)&&i.every(Y2)})};qo.default=Q2;var Y2=function(e){return e.toLowerCase().match(/^[0-9a-f]{2}$/)},Wo={};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.default=void 0;var Gc=Ue,Z2=function(e){return(0,Gc.withParams)({type:"maxLength",max:e},function(r){return!(0,Gc.req)(r)||(0,Gc.len)(r)<=e})};Wo.default=Z2;var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;var Qc=Ue,K2=function(e){return(0,Qc.withParams)({type:"minLength",min:e},function(r){return!(0,Qc.req)(r)||(0,Qc.len)(r)>=e})};Vo.default=K2;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=void 0;var Yc=Ue,_2=(0,Yc.withParams)({type:"required"},function(t){return typeof t=="string"?(0,Yc.req)(t.trim()):(0,Yc.req)(t)});Xo.default=_2;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=void 0;var Zc=Ue,$2=function(e){return(0,Zc.withParams)({type:"requiredIf",prop:e},function(r,i){return(0,Zc.ref)(e,this,i)?(0,Zc.req)(r):!0})};Jo.default=$2;var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var Kc=Ue,e7=function(e){return(0,Kc.withParams)({type:"requiredUnless",prop:e},function(r,i){return(0,Kc.ref)(e,this,i)?!0:(0,Kc.req)(r)})};Uo.default=e7;var Go={};Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var Fv=Ue,t7=function(e){return(0,Fv.withParams)({type:"sameAs",eq:e},function(r,i){return r===(0,Fv.ref)(e,this,i)})};Go.default=t7;var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var r7=Ue,i7=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i,a7=(0,r7.regex)("url",i7);Qo.default=a7;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=void 0;var n7=Ue,s7=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,n7.withParams)({type:"or"},function(){for(var a=this,n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return r.length>0&&r.reduce(function(u,l){return u||l.apply(a,s)},!1)})};Yo.default=s7;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.default=void 0;var o7=Ue,l7=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,o7.withParams)({type:"and"},function(){for(var a=this,n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return r.length>0&&r.reduce(function(u,l){return u&&l.apply(a,s)},!0)})};Zo.default=l7;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.default=void 0;var Bv=Ue,u7=function(e){return(0,Bv.withParams)({type:"not"},function(r,i){return!(0,Bv.req)(r)||!e.call(this,r,i)})};Ko.default=u7;var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;var Hv=Ue,c7=function(e){return(0,Hv.withParams)({type:"minValue",min:e},function(r){return!(0,Hv.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+e})};_o.default=c7;var $o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var Rv=Ue,d7=function(e){return(0,Rv.withParams)({type:"maxValue",max:e},function(r){return!(0,Rv.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+e})};$o.default=d7;var el={};Object.defineProperty(el,"__esModule",{value:!0}),el.default=void 0;var f7=Ue,p7=(0,f7.regex)("integer",/(^[0-9]*$)|(^-[0-9]+$)/);el.default=p7;var tl={};Object.defineProperty(tl,"__esModule",{value:!0}),tl.default=void 0;var h7=Ue,m7=(0,h7.regex)("decimal",/^[-]?\d*(\.\d+)?$/);tl.default=m7,function(t){function e(z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(A){return typeof A}:e=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(z)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"alpha",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"alphaNum",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"and",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"between",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"decimal",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"email",{enumerable:!0,get:function(){return s.default}}),t.helpers=void 0,Object.defineProperty(t,"integer",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"ipAddress",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"macAddress",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"maxLength",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"maxValue",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"minLength",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"minValue",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"not",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"numeric",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"or",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"required",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"requiredIf",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"requiredUnless",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"sameAs",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"url",{enumerable:!0,get:function(){return h.default}});var r=T(No),i=T(Lo),a=T(Fo),n=T(Bo),s=T(Ho),o=T(Ro),u=T(qo),l=T(Wo),c=T(Vo),d=T(Xo),f=T(Jo),g=T(Uo),S=T(Go),h=T(Qo),y=T(Yo),x=T(Zo),w=T(Ko),b=T(_o),p=T($o),P=T(el),v=T(tl),m=D(Ue);t.helpers=m;function k(z){if(typeof WeakMap!="function")return null;var C=new WeakMap,A=new WeakMap;return(k=function(R){return R?A:C})(z)}function D(z,C){if(!C&&z&&z.__esModule)return z;if(z===null||e(z)!=="object"&&typeof z!="function")return{default:z};var A=k(C);if(A&&A.has(z))return A.get(z);var I={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in z)if(B!=="default"&&Object.prototype.hasOwnProperty.call(z,B)){var J=R?Object.getOwnPropertyDescriptor(z,B):null;J&&(J.get||J.set)?Object.defineProperty(I,B,J):I[B]=z[B]}return I.default=z,A&&A.set(z,I),I}function T(z){return z&&z.__esModule?z:{default:z}}}(Me);var v7=Oe,qv=Me,g7=function(e,r){return v7.withParams({type:"schemaTypes",schema:e},function(i){return qv.or.apply(qv,r)(i)})};function b7(){}var y7=b7,_c=Wh,x7=y7,w7=hc,P7=1/0,S7=_c&&1/w7(new _c([,-0]))[1]==P7?function(t){return new _c(t)}:x7,k7=S7,T7=fc,C7=iv,M7=av,D7=pc,A7=k7,z7=hc,O7=200;function E7(t,e,r){var i=-1,a=C7,n=t.length,s=!0,o=[],u=o;if(r)s=!1,a=M7;else if(n>=O7){var l=e?null:A7(t);if(l)return z7(l);s=!1,a=D7,u=new T7}else u=e?[]:o;e:for(;++i<n;){var c=t[i],d=e?e(c):c;if(c=r||c!==0?c:0,s&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;e&&u.push(d),o.push(c)}else a(u,d,r)||(u!==o&&u.push(d),o.push(c))}return o}var Wv=E7,j7=Wv;function N7(t){return t&&t.length?j7(t):[]}var I7=N7,L7=Ao,F7=Wv;function B7(t,e){return t&&t.length?F7(t,L7(e)):[]}var H7=B7,R7=Oe,q7=H7,W7=bt;function V7(t){return W7(t)||Array.isArray(t)?JSON.stringify(t):t}var X7=function(e){return R7.withParams({type:"schemaUniqueItems",schema:e},function(r){return!Array.isArray(r)||r.length<2?!0:r.length===q7(r,V7).length})},J7=YN,U7=pI,G7=KI,Q7=eL,Y7=iL,Z7=oL,K7=dL,_7=mL,$7=bL,e5=wL,t5=Mn,r5=ji,Nn=bt,i5=kL,a5=CL,n5=AL,s5=EL,o5=IL,l5=FL,u5=RL,c5=VL,d5=UL,f5=ZL,p5=t2,h5=s2,m5=w2,v5=k2,g5=D2,b5=zo,y5=E2,x5=g7,Vv=En,w5=I7,P5=X7,S5=Me;function Xv(t,e){var r=w5(Object.keys(t).concat(Object.keys(e)));r.forEach(function(i){var a=t[i],n=e[i];t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&r5(n)?t[i]=[].concat(a).concat(n):Nn(a)&&Nn(n)?Xv(a,n):n&&(t[i]=n)})}function Jv(t){Object.keys(t).forEach(function(e){var r=t[e];Array.isArray(r)?t[e]=S5.and.apply(null,r):Nn(r)&&Jv(r)})}function k5(t){return t===void 0}function yt(t,e,r,i,a){var n={},s=this;if(a=a||[],t===!0)return n;if(t===!1)return n.schemaNotPresent=k5,n;function o(l){return t.hasOwnProperty(l)}if(o("properties")){var u=t.required||[];n=b5(t.properties,function(l,c,d){var f=u.indexOf(d)!==-1;return l[d]=yt.call(s,c,f,r,d,a.concat(d)),l},n)}return Array.isArray(t.type)?n.schemaTypes=x5(t,t.type.map(function(l){return Vv(t,l)})):o("type")&&(n.schemaType=Vv(t,t.type)),e&&(n.schemaRequired=y5(t,r)),o("oneOf")&&(n.schemaOneOf=h5(t,t.oneOf,yt)),o("anyOf")&&(n.schemaAnyOf=G7(t,t.anyOf,yt)),o("not")&&(n.schemaNot=p5(t,t.not,yt)),o("additionalItems")&&(n.schemaAdditionalItems=J7(t,t.additionalItems,yt)),o("contains")&&(n.schemaContains=Y7(t,t.contains,yt)),o("dependencies")&&(n.schemaDependencies=Z7(t,t.dependencies,yt)),o("minLength")&&(n.schemaMinLength=u5(t,t.minLength)),o("maxLength")&&(n.schemaMaxLength=n5(t,t.maxLength)),o("minItems")&&(n.schemaMinItems=l5(t,t.minItems)),o("maxItems")&&(n.schemaMaxItems=a5(t,t.maxItems)),o("minimum")&&o("maximum")?n.schemaBetween=Q7(t,t.minimum,t.maximum):o("minimum")?n.schemaMinimum=d5(t,t.minimum):o("maximum")&&(n.schemaMaximum=o5(t,t.maximum)),o("exclusiveMinimum")&&(n.schemaExclusiveMinimum=e5(t,t.exclusiveMinimum)),o("exclusiveMaximum")&&(n.schemaExclusiveMaximum=$7(t,t.exclusiveMaximum)),o("maxProperties")&&(n.schemaMaxProperties=s5(t,t.maxProperties)),o("minProperties")&&(n.schemaMinProperties=c5(t,t.minProperties)),o("multipleOf")&&(n.schemaMultipleOf=f5(t,t.multipleOf)),o("pattern")&&(n.schemaPattern=v5(t,new RegExp(t.pattern))),o("patternProperties")&&(n.schemaPatternProperties=m5(t,t.patternProperties,yt)),o("propertyNames")&&(n.schemaPropertyNames=g5(t,t.propertyNames,yt)),o("additionalProperties")&&(n.schemaAdditionalProperties=U7(t,t.additionalProperties,yt)),o("enum")&&(n.schemaEnum=K7(t,t.enum)),o("const")&&(n.schemaConst=_7(t,t.const)),o("uniqueItems")&&(n.schemaUniqueItems=P5(t)),o("items")&&t.type==="array"&&Nn(t.items)?n.$each=yt(t.items,!0,!0,null,a.concat(0)):o("items")&&Nn(t.items)?Array.isArray(t5(this,a.join(".")))&&(n.$each=yt(t.items,!0,!0,null,a.concat(0))):o("items")&&(n.schemaItems=i5(t,yt)),o("allOf")&&(t.allOf.forEach(function(l){Xv(n,yt(l,!1,r))}),Jv(n)),n}var T5={getPropertyValidationRules:yt},C5=zo,Uv=$m,Gv=tv,Qv=Mn,In=bt,M5=ji,D5={integer:0,number:0,string:"",boolean:!1,object:function(){return{}},array:function(){return[]},null:null};function $c(t,e,r){if(!r){if(t.hasOwnProperty("default"))return t.default;if(t.hasOwnProperty("const"))return t.const;if(e){var i=D5[t.type];return M5(i)?i():i}else return}}function ya(t,e,r,i){if(e.default!==void 0)return Object.assign(t,e.default);if(t){var a=["allOf"],n=["anyOf","oneOf","not"];a.forEach(function(s){Array.isArray(e[s])&&e[s].forEach(function(o){ya(t,o)})}),n.forEach(function(s){Array.isArray(e[s])?e[s].forEach(function(o){ya(t,o,!0,!0)}):In(e[s])&&ya(t,e[s],!0,!0)}),In(e.properties)&&Object.keys(e.properties).forEach(function(s){var o=e.properties[s],u=Array.isArray(e.required)&&e.required.indexOf(s)!==-1,l=t[s];In(l)?t[s]=Uv(l,$c(o,u,r)):t[s]=$c(o,u,r),!i&&o.type==="object"&&o.properties&&ya(t[s],o,r)})}}function A5(t,e){var r=t.every(function(i){return i.type==="array"});return C5(t,function(i,a){if(e)return Gv(i,a.mountPoint,void 0),i;if(a.mountPoint!=="."){var n=Qv(i,a.mountPoint),s=a.schema.hasOwnProperty("type")?$c(a.schema,!0):{};In(n)?n=Uv(n,s):n=s,Gv(i,a.mountPoint,n),In(n)&&ya(Qv(i,a.mountPoint),a.schema)}else ya(i,a.schema);return i},r?[]:{})}var z5=A5,O5=o4,rl=zo,Yv=$m,Zv=tv,il=Mn,E5=pj,j5=wj,N5=MN,ed=bt,I5=EN,Ln=ji,Kv=NN,_v=T5,Fn=z5,td;function L5(t){if(td)return td;for(var e=t.constructor;e.super;)e=e.super;return td=e,e}function $v(t){return Array.isArray(t)?t.map(function(e){return e.mountPoint?e:{mountPoint:"schema",schema:e}}):t.mountPoint?[t]:[{mountPoint:"schema",schema:t}]}function eg(t,e){var r=Fn([{mountPoint:".",schema:t}]);return j5(e,r)}function F5(t){var e={},r=this,i=t.filter(function(n){return n.mountPoint==="."});i.forEach(function(n){if(n.schema.type!=="object")throw new Error("Schema with id "+n.schema.id+" has mount point at the root and is not a schema of type object. This is not supported. For non object schmeas you must define a mount point.");if(n.schema.hasOwnProperty("patternProperties"))throw new Error("Schema with id "+n.schema.id+" has sibling validator patternProperties. This is not supported when mounting on root. Use a mount point.");if(!(n.schema.additionalProperties===!0||n.schema.additionalProperties===void 0))throw new Error("Schema with id "+n.schema.id+" has sibling validators additionalProperties not equal to true or undefined. This is not supported when mounting on root. Since there are lots of extra properties on a vue instance.")}),i.length&&(e=i.reduce(function(n,s){return Yv(n,_v.getPropertyValidationRules.call(r,s.schema,!0,!0)),n},e));var a=E5(t,i);return rl(a,function(n,s){var o=il(n,s.mountPoint),u=s.mountPoint.split(".");return Zv(n,s.mountPoint,Yv(o,_v.getPropertyValidationRules.call(r,s.schema,!0,!0,null,u))),n},e)}function tg(t){return t=t||{},{beforeCreate:function(){var e=this,r=this.$options.schema,i=this.$options.propsData,a=[];if(r&&(a=$v(r)),i&&i[t.schemaPropsName]&&(a=a.concat($v(i[t.schemaPropsName]))),!!a.length){var n=L5(this);this.$options.validations=O5(function(){return this.$schema&&!Ln(this.$schema.then)?F5.call(this,this.$schema):{}},this.$options.validations),this.$options.methods=n.config.optionMergeStrategies.methods({createFromSchema:eg,getSchemaData:function(l){var c=Array.isArray(l),d=Array.isArray(l)?l:[l],f=this;return rl(d,function(g,S){var h=f,y=Fn(d),x=ed(y)?Kv(y):{};if(l.mountPoint!=="."&&!c)if(y=il(f,l.mountPoint),x=ed(y)?Kv(y):{},h=il(f,l.mountPoint),ed(h))x=rl(x,function(w,b,p){return w[String(p).replace(l.mountPoint,"").replace(/^\./,"")]=b,w},{});else return h;return rl(x,function(w,b,p){return Zv(w,p,il(h,p))},g)},{})}},this.$options.methods);var s=a.map(function(l){if(Ln(l.schema)){var c=I5(l);return c.schema=l.schema.call(e),c}return l}),o=s.some(function(l){return Ln(l.schema.then)});if(o){s.forEach(function(l,c){if(l.mountPoint==="."&&Ln(l.schema.then))throw new Error("Schema with index "+c+" has mount point at the root and is a promise. This is not supported. You can't mount to root async. Due to vue limitation. Use a mount point.")});var u=Promise.all(s.map(function(l){return Ln(l.schema.then)?l.schema.then(function(c){var d=N5(l,"schema");return d.schema=c,d}):l})).then(function(l){Object.assign(e,Fn(l)),e.$schema=l});n.util.defineReactive(this,"$schema",u),this.$options.data=n.config.optionMergeStrategies.data(function(){return Fn(s,!0)},this.$options.data)}else n.util.defineReactive(this,"$schema",s),this.$options.data=n.config.optionMergeStrategies.data(function(){return Fn(s)},this.$options.data)}}}}var B5={createFromSchema:eg,mixin:tg(),install:function(t,e){t.mixin(tg(e))}};const H5=ir(B5),R5={components:{FormTextArea:ee.FormTextArea},inheritAttrs:!1,props:["label","value","helper"],data(){return{options:[{value:"top",content:this.$t("Top")},{value:"topleft",content:this.$t("Top Left")},{value:"topright",content:this.$t("Top Right")},{value:"right",content:this.$t("Right")},{value:"righttop",content:this.$t("Right Top")},{value:"rightbottom",content:this.$t("Right Bottom")},{value:"bottom",content:this.$t("Bottom")},{value:"bottomleft",content:this.$t("Bottom Left")},{value:"bottomright",content:this.$t("Bottom Right")},{value:"left",content:this.$t("Left")},{value:"lefttop",content:this.$t("Left Top")},{value:"leftbottom",content:this.$t("Left Bottom")}],optionsVariant:[{value:"primary",content:this.$t("Primary")},{value:"secondary",content:this.$t("Secondary")},{value:"success",content:this.$t("Success")},{value:"danger",content:this.$t("Danger")},{value:"warning",content:this.$t("Warning")},{value:"info",content:this.$t("Info")},{value:"light",content:this.$t("Light")},{value:"dark",content:this.$t("Dark")}],position:"top",content:"",variant:""}},computed:{buttonType(){return G.get(this.$attrs,"selectedControl.config.event")}},watch:{value:{handler(){this.value?(this.position=this.value.position||"",this.content=this.value.content||"",this.variant=this.value.variant||""):this.value={position:"",content:"",variant:""}},immediate:!0},position(){this.value.position=this.position},content(){this.value.content=this.content},variant(){this.value.variant=this.variant}},methods:{getLabelFromValuePosition(t){const e=this.options.find(r=>r.value==t);return e?e.content:null},getLabelFromValueVariant(t){const e=this.optionsVariant.find(r=>r.value==t);return e?e.content:null}}};var q5=function(){var e=this,r=e._self._c;return e.buttonType!=="submit"?r("div",[r("label",{staticClass:"typo__label"},[e._v(e._s(e.label))]),r("br"),r("label",{staticClass:"typo__label"},[e._v(e._s(e.$t("Position")))]),r("multiselect",{staticClass:"mb-3",attrs:{placeholder:e.$t("Select..."),"show-labels":!1,options:e.options.map(i=>i.value),"custom-label":e.getLabelFromValuePosition},model:{value:e.position,callback:function(i){e.position=i},expression:"position"}}),r("label",{staticClass:"typo__label"},[e._v(e._s(e.$t("Variant")))]),r("multiselect",{staticClass:"mb-3",attrs:{placeholder:e.$t("Select..."),"show-labels":!1,options:e.optionsVariant.map(i=>i.value),"custom-label":e.getLabelFromValueVariant},model:{value:e.variant,callback:function(i){e.variant=i},expression:"variant"}}),r("form-text-area",{staticClass:"mb-3",attrs:{label:e.$t("Tooltip Contains"),"data-cy":"content-tooltip"},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}),r("small",{staticClass:"form-text text-muted"},[e._v(" "+e._s(e.$t("HTML, Mustache support"))+" ")])],1):e._e()},W5=[],V5=oe(R5,q5,W5,!1,null,null,null,null);const rd=V5.exports,tee="",X5={props:{label:String,value:{type:Object,default:()=>({showForDesktop:!0,showForMobile:!0})},helper:String,options:Object},watch:{value:{handler(){this.settings=this.value},immediate:!0}},data(){return{settings:{showForDesktop:!0,showForMobile:!0}}},methods:{emitChanges(){this.$emit("input",this.value),this.$emit("update-state")}}};var J5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",[r("label",[e._v(e._s(e.label))]),r("b-form-checkbox",{attrs:{switch:""},on:{change:e.emitChanges},model:{value:e.settings.showForDesktop,callback:function(i){e.$set(e.settings,"showForDesktop",i)},expression:"settings.showForDesktop"}},[e._v(" "+e._s(e.$t("Show for Desktop"))+" ")]),r("b-form-checkbox",{attrs:{switch:""},on:{change:e.emitChanges},model:{value:e.settings.showForMobile,callback:function(i){e.$set(e.settings,"showForMobile",i)},expression:"settings.showForMobile"}},[e._v(" "+e._s(e.$t("Show for Mobile"))+" ")])],1)])},U5=[],G5=oe(X5,J5,U5,!1,null,"74e7eb8d",null,null);const id=G5.exports,li={type:"ColorSelect",field:"bgcolor",config:{label:"Background Color",helper:"Set the element's background color",options:[{value:"alert alert-primary",content:"primary"},{value:"alert alert-secondary",content:"secondary"},{value:"alert alert-success",content:"success"},{value:"alert alert-danger",content:"danger"},{value:"alert alert-warning",content:"warning"},{value:"alert alert-info",content:"info"},{value:"alert alert-light",content:"light"},{value:"alert alert-dark",content:"dark"}]}},ui={type:"ColorSelect",field:"color",config:{label:"Text Color",helper:"Set the element's text color",options:[{value:"text-primary",content:"primary"},{value:"text-secondary",content:"secondary"},{value:"text-success",content:"success"},{value:"text-danger",content:"danger"},{value:"text-warning",content:"warning"},{value:"text-info",content:"info"},{value:"text-light",content:"light"},{value:"text-dark",content:"dark"}]}},al="null,break,case,catch,continue,debugger,default,delete,do,else,finally,for,function,if,in,instanceof,new,return,switch,this,throw,try,typeof,var,void,while,with,class,const,enum,export,extends,import,super,true,false",Qt={type:"FormInput",field:"name",config:{label:"Variable Name",name:"Variable Name",validation:"dot_notation|required|not_in:"+al,helper:"A variable name is a symbolic name to reference information."}},Wr={type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the field's name"}},rg={...Wr,config:{label:"Button Label",helper:"The label describes the button's text"}},Bn={type:"FormInput",field:"placeholder",config:{label:"Placeholder Text",helper:"The placeholder is what is shown in the field when no value is provided yet"}},xa={type:"FormInput",field:"helper",config:{label:"Helper Text",helper:"Help text is meant to provide additional guidance on the field's value"}},nl={type:"FormCheckbox",field:"readonly",config:{label:"Read Only"}},ad={type:"FormCheckbox",field:"disabled",config:{label:"Read Only"}},Hi={type:"ValidationSelect",field:"validation",config:{label:"Validation Rules",helper:"The validation rules needed for this field"}},ig={type:"FormCheckbox",field:"toggle",config:{label:"Toggle Style",helper:""}},sl={type:"FormMultiselect",field:"variant",config:{label:"Button Variant Style",helper:"The variant determines the appearance of the button",options:[{value:"primary",content:"Primary"},{value:"secondary",content:"Secondary"},{value:"success",content:"Success"},{value:"danger",content:"Danger"},{value:"warning",content:"Warning"},{value:"info",content:"Info"},{value:"light",content:"Light"},{value:"dark",content:"Dark"},{value:"link",content:"Link"}]}},Hn={type:"default-value-editor",field:"defaultValue",config:{label:"Default Value",helper:"The default value is pre populated using the existing request data. This feature will allow you to modify the value displayed on screen load if needed."}},ag={type:"FormMultiselect",field:"event",config:{label:"Type",helper:"Choose whether the button should submit the form",options:[{value:"submit",content:"Submit Button"},{value:"script",content:"Regular Button"}]}},ng={type:rd,field:"tooltip",config:{label:"Tooltip "}},Q5={type:id,field:"deviceVisibility",config:{label:"Device Visibility "}},sg={type:"LoadingSubmitButton",field:"loading",config:{label:"Loading Submit Button",helper:"Loading Submit Button"}},og={type:"LabelSubmitButton",field:"loadingLabel",config:{label:"Loading Submit Button Label",helper:"Loading Submit Button Label"}},Y5={mounted(){this.extensions.push({onloadproperties({element:t,properties:e}){this.validVariableName(t.config.name)&&(delete e[":validation"],delete e.validation,this.isValidVariableName(t.config.name)?(e[":class"]=`{ 'form-group--error': (showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.vdata."+t.config.name)} && $v.vdata.${t.config.name}.$invalid || (showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.schema."+t.config.name)} && $v.schema.${t.config.name}.$invalid }`,e[":error"]=`(showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.vdata."+t.config.name)} && validationMessage($v.vdata.${t.config.name}) || (showValidationErrors || ${this.fieldValidationShow(t)}) && ${this.checkVariableExists("$v.schema."+t.config.name)} && validationMessage($v.schema.${t.config.name})`):this.getMode()==="preview"&&console.error("Invalid variable name"))},onbuild({screen:t}){t.mixins.push(Oe.validationMixin),t.mixins.push(H5.mixin)}})},methods:{...Et.mapGetters("globalErrorsModule",["getMode"]),isValidVariableName(t){const e=RegExp("^[A-Za-z][0-9a-zA-Z_$]*$"),r=t.split(".");let i=!0;return r.forEach(a=>{e.test(a)||(i=!1),al.split(",").includes(a)&&(i=!1)}),i},checkVariableExists(t){return t.split(".").reduce((r,i)=>(r.variable=r.variable?`${r.variable}.${i}`:i,r.str=r.str?`${r.str} && ${r.variable}`:i,r),{str:"",variable:""}).str},fieldValidationShow(t){let e=!0;if(t.config&&t.config.validation){const r=["Required","Required if"];Array.isArray(t.config.validation)?t.config.validation.forEach(i=>{r.includes(i.content)&&(e=!1)}):e=r.includes(t.config.validation)}return e}}},Z5=Object.freeze(Object.defineProperty({__proto__:null,default:Y5},Symbol.toStringTag,{value:"Module"})),lg={methods:{visibilityRuleIsVisible(t,e,r){const i=r||{showForDesktop:!0,showForMobile:!0,isMobile:!1},a=i.isMobile&&i.showForMobile||!i.isMobile&&i.showForDesktop;try{if(t&&t.trim().length>0){const n=this.getDataReference();return!!Mt.evaluate(t,n)&&a}return a}catch{}return!1}}},K5=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(){this.extensions.push({onloaditems({element:t,wrapper:e,definition:r}){const i=t.config.deviceVisibility||{showForDesktop:!0,showForMobile:!0},a=!i.showForDesktop||!i.showForMobile;if(t.visibleInDevice=r.isMobile&&i.showForMobile||!r.isMobile&&i.showForDesktop,t.config.conditionalHide||a){const n=JSON.stringify({...i,isMobile:r.isMobile});e.setAttribute("v-show",`visibilityRuleIsVisible(${JSON.stringify(t.config.conditionalHide)},
269
269
  ${JSON.stringify(t.config.name)}, ${n})`)}},onbuild({screen:t}){t.mixins.push(lg)}})}}},Symbol.toStringTag,{value:"Module"})),_5=".Illuminate\\\\Notifications\\\\Events\\\\BroadcastNotificationCreated",$5=500,ug={data(){return{listeners:[],echoListeners:[],debounce:{}}},methods:{queueWatcher(t){this.debounce[t.uid]&&clearTimeout(this.debounce[t.uid]),this.debounce[t.uid]=setTimeout(()=>{this.debounce[t.uid]=null,this.queueWatcherSync(t)},$5)},queueWatcherSync(t){return t.synchronous?this.$el.offsetParent&&this.$parent.$refs.watchersSynchronous.show(t.name):t.show_async_loading&&this.$emit("asyncWatcherTriggered"),new Promise((e,r)=>{const i=Sr.render(t.input_data,this.vdata),a=Sr.render(t.script_configuration,this.vdata);let n=t.script_id;if(t.script_key){const s=G.get(this.vdata,"_request.id",null),o={config:JSON.parse(a),data:this.vdata};this.$dataProvider.postDataSource(n,s,o).then(u=>{this.$emit("asyncWatcherCompleted"),e(u.data)}).catch(u=>{r(u)})}else this.$dataProvider.postScript(n,{watcher:t.uid,data:i,config:a,sync:!0},{timeout:0}).then(s=>{this.$emit("asyncWatcherCompleted"),e(s.data.output)}).catch(s=>{r(s)})}).then(e=>(so.success("Watcher",t.name),t.output_variable&&(t.script_key||"").length===0&&this.setValue(t.output_variable,e,this.vdata),(JSON.parse(t.script_configuration).dataMapping||[]).forEach(a=>{typeof this.getValue(`${a.key}_was_filled__`)<"u"?(this.setValue(`${a.key}_was_filled__`,!0),this.setValue(a.key,e[a.key],this.vdata)):this.$set(this.vdata,a.key,e[a.key])},this),this.$parent.$refs.watchersSynchronous&&this.$parent.$refs.watchersSynchronous.hide(t.name),e)).catch(e=>{so.error("Watcher",t.name,e.message);const r=G.get(e,"response.data.message",e.message);t.synchronous?this.$parent.$refs.watchersSynchronous.error(r):window.ProcessMaker.alert(r,"danger")})},cleanEchoListeners(){this.echoListeners.forEach(t=>{window.Echo.private(t.channel).stopListening(t.event)})}},mounted(){if(window.ProcessMaker&&window.ProcessMaker.user){const t=`ProcessMaker.Models.User.${window.ProcessMaker.user.id}`,e=".ProcessMaker\\Events\\ScriptResponseEvent";this.echoListeners.push({event:e,channel:t,broadcastEvent:_5}),window.Echo.private(t).listen(e,r=>{r.type===e&&this.loadWatcherResponse(r.watcher,r.response)})}},destroyed(){this.cleanEchoListeners()}},eF=Object.freeze(Object.defineProperty({__proto__:null,default:{methods:{filterWatchers(t){return!t.watching||this.variables.find(({name:r})=>r===t.watching)},addWatcherVariables(t){t.watchers&&t.watchers.filter(this.filterWatchers).forEach(e=>{(!e.watching||this.variables.find(({name:i})=>i===e.watching))&&this.registerVariable(e.output_variable,{})})},watchers(t,e){e.watchers&&(t.mixins.push(ug),e.watchers.filter(this.filterWatchers).forEach(r=>{r!=null&&r.byPass||(this.addMounted(t,`
270
270
  this.$nextTick(() => this.$watch('vdata.${r.watching}', (newValue) => {
271
271
  if (typeof newValue !== 'undefined') {
@@ -378,5 +378,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
378
378
  content: $t(element.popoverContent),
379
379
  customClass: 'custom-popover',
380
380
  boundaryPadding: 16
381
- }`,modifiers:{hover:!0,right:!0}}],key:o,staticClass:"gray-text",attrs:{boundary:"viewport","data-cy":`controls-${s.component}`}},[s.config&&s.config.icon?r("i",{class:s.config.icon}):e._e(),r("span",{staticClass:"svg-icon",staticStyle:{width:"12px",height:"12px"},domProps:{innerHTML:e._s(s.config.svg)}}),e._v(" "+e._s(e.$t(s.label))+" ")])}),1):e._e()],1)],1)]})],2)],1)],1),r("b-col",{ref:"screen-container",staticClass:"overflow-auto mh-100 p-0 d-flex flex-column position-relative",attrs:{id:"screen-container"}},[r("tabs-bar",{ref:"tabsBar",attrs:{pages:e.config,"is-multi-page":e.showToolbar},on:{"tab-opened":function(i){e.currentPage=i}},scopedSlots:e._u([{key:"tabs-start",fn:function(){return[e.showToolbar?r("pages-dropdown",{attrs:{data:e.sortedPages},on:{addPage:function(i){return e.$bvModal.show("addPageModal")},clickPage:e.onClick,seeAllPages:function(i){return e.$bvModal.show("openSortable")}}}):e._e()]},proxy:!0},{key:"default",fn:function({currentPage:i}){return[e.isCurrentPageEmpty(i)?r("div",{staticClass:"d-flex justify-content-center align-items-center drag-placeholder text-center position-absolute rounded mt-4 flex-column",attrs:{"data-cy":"screen-drop-zone"}},[r("svg",{attrs:{width:"81",height:"107",viewBox:"0 0 81 107",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M47.125 28.6562V0.5H5.71875C2.96523 0.5 0.75 2.71523 0.75 5.46875V101.531C0.75 104.285 2.96523 106.5 5.71875 106.5H75.2812C78.0348 106.5 80.25 104.285 80.25 101.531V33.625H52.0938C49.3609 33.625 47.125 31.3891 47.125 28.6562ZM60.375 77.5156C60.375 78.882 59.257 80 57.8906 80H23.1094C21.743 80 20.625 78.882 20.625 77.5156V75.8594C20.625 74.493 21.743 73.375 23.1094 73.375H57.8906C59.257 73.375 60.375 74.493 60.375 75.8594V77.5156ZM60.375 64.2656C60.375 65.632 59.257 66.75 57.8906 66.75H23.1094C21.743 66.75 20.625 65.632 20.625 64.2656V62.6094C20.625 61.243 21.743 60.125 23.1094 60.125H57.8906C59.257 60.125 60.375 61.243 60.375 62.6094V64.2656ZM60.375 49.3594V51.0156C60.375 52.382 59.257 53.5 57.8906 53.5H23.1094C21.743 53.5 20.625 52.382 20.625 51.0156V49.3594C20.625 47.993 21.743 46.875 23.1094 46.875H57.8906C59.257 46.875 60.375 47.993 60.375 49.3594ZM80.25 25.7371V27H53.75V0.5H55.0129C56.3379 0.5 57.6008 1.01758 58.5324 1.94922L78.8008 22.2383C79.7324 23.1699 80.25 24.4328 80.25 25.7371Z",fill:"#699CFF"}})]),r("h3",[e._v(e._s(e.$t("Place your controls here.")))]),r("p",[e._v(" "+e._s(e.$t("To begin creating a screen, drag and drop items from the Controls Menu on the left."))+" ")])]):e._e(),e.renderControls?r("draggable",e._b({key:e.editorContentKey,staticClass:"h-100",attrs:{"data-cy":"editor-content","ghost-class":"form-control-ghost",value:e.config[i].items},on:{input:e.updateConfig}},"draggable",{group:{name:"controls"},swapThreshold:.5},!1),e._l(e.config[i].items,function(a,n){return r("div",{key:n,staticClass:"control-item mt-4 mb-4",class:{selected:e.selected===a,hasError:e.hasError(a)},attrs:{selector:a.config.customCssSelector},on:{click:function(s){return e.inspect(a)}}},[a.container?r("div",{staticClass:"card container-lement",class:{"ai-section-card":e.isAiSection(a)},attrs:{"data-cy":"screen-element-container"},on:{click:function(s){return e.inspect(a)}}},[e.selected===a?r("div",{staticClass:"card-header form-element-header d-flex align-items-center",class:{pulse:e.isAiSection(a)&&e.aiPreview(a)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||a.label||e.$t("Field Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(a)&&e.aiPreview(a)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{"data-test":"apply-ai-btn",title:e.$t("Apply Changes")},on:{click:function(s){return e.applyAiChanges(a)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(a)&&e.aiPreview(a)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{"data-test":"copy-control-btn",title:e.$t("Copy Control")},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"data-test":"delete-control-btn",title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(a["editor-component"],{tag:"component",staticClass:"card-body",class:e.elementCssClass(a),attrs:{"validation-errors":e.validationErrors,selected:e.selected,config:a.config,"ai-element":a},on:{inspect:e.inspect,"update-state":e.updateState},model:{value:a.items,callback:function(s){e.$set(a,"items",s)},expression:"element.items"}})],1):r("div",{staticClass:"card",attrs:{"data-cy":"screen-element-container"}},[e.selected===a?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(a["editor-component"],e._b({tag:"component",staticClass:"card-body m-0 pb-4 pt-4",class:[e.elementCssClass(a),{"prevent-interaction":!a.config.interactive}],attrs:{tabindex:a.config.interactive?0:-1},on:{input:function(s){a.config.interactive&&(a.config.content=s)}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}}},"component",a.config,!1))],1)])}),0):e._e(),e.isCurrentPageEmpty(i)?e._e():r("div",{attrs:{"data-cy":"screen-drop-zone"}},[e._v("   ")])]}}])})],1),e.renderControls?r("b-col",{staticClass:"overflow-hidden h-100 p-0 inspector-column"},[r("b-card",{staticClass:"p-0 h-100 border-top-0 border-bottom-0 border-right-0 rounded-0",attrs:{"no-body":""}},[r("b-card-body",{staticClass:"p-0 h-100 overflow-auto"},[e._l(e.accordions,function(i){return[e.getInspectorFields(i)&&e.getInspectorFields(i).length>0?r("b-button",{key:`${e.accordionName(i)}-button`,staticClass:"text-left card-header d-flex align-items-center w-100 outline-0 text-capitalize shadow-none",attrs:{variant:"outline","data-cy":`accordion-${e.accordionName(i).replace(" ","")}`,"accordion-name":`accordion-${e.accordionName(i).replace(" ","")}`,"is-open":i.open?"1":"0"},on:{click:function(a){return e.toggleAccordion(i)}}},[r("i",{staticClass:"fas fa-cog mr-2"}),e._v(" "+e._s(e.$t(e.accordionName(i)))+" "),r("i",{staticClass:"fas fa-angle-down ml-auto",class:{"fas fa-angle-right":!i.open}})]):e._e(),r("b-collapse",{key:`${e.accordionName(i)}-collapse`,attrs:{id:e.accordionName(i)},model:{value:i.open,callback:function(a){e.$set(i,"open",a)},expression:"accordion.open"}},e._l(e.getInspectorFields(i),function(a,n){return r(a.type,e._b({key:n,tag:"component",staticClass:"border-bottom m-0 p-4",attrs:{"data-cy":"inspector-"+(a.field||a.config.name),"field-name":a.field,"field-accordion":`accordion-${e.accordionName(i).replace(" ","")}`,builder:e.builder,"form-config":e.config,"screen-type":e.screenType,"current-page":e.currentPage,"selected-control":e.selected},on:{"update-state":e.updateState,setName:function(s){e.inspection.config.name=s}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}},model:{value:e.inspection.config[a.field],callback:function(s){e.$set(e.inspection.config,a.field,s)},expression:"inspection.config[item.field]"}},"component",a.config,!1))}),1)]})],2)],1)],1):e._e(),r("b-modal",{ref:"openSortable",attrs:{id:"openSortable","header-close-content":"&times;",role:"dialog",size:"lg",title:e.$t("Edit Pages"),"ok-title":e.$t("DONE"),"ok-only":"","ok-variant":"secondary","header-class":"modal-header-custom"},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Edit Pages")))]),r("span",{staticClass:"modal-subtitle"},[e._v(e._s(e.$t("Change pages order and name")))])]},proxy:!0},{key:"modal-header-close",fn:function({close:i}){return[r("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"}},[e._v("×")])]}}])},[r("Sortable",{attrs:{fields:e.fields,items:e.config,"search-properties":e.searchProperties},on:{"item-edit":()=>{},"item-delete":e.confirmDelete,"add-page":function(i){return e.$bvModal.show("addPageModal")}}})],1),r("b-modal",{ref:"addPageModal",attrs:{id:"addPageModal","header-class":"pb-2",size:"lg","ok-title":e.$t("SAVE"),"cancel-title":e.$t("CANCEL"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"&times;","data-cy":"add-page-modal","ok-disabled":!e.addPageName||!!e.checkPageName(e.addPageName)},on:{ok:e.addPage,show:function(i){e.addPageName="",e.showAddPageValidations=!1}},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Create New Page")))]),r("small",{staticClass:"modal-subtitle mb-n2"},[e._v(e._s(e.$t("Create a new page in your screen")))])]},proxy:!0}])},[r("form-input",{ref:"addPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The name of the new page to add"),error:e.checkPageName(e.addPageName),"data-cy":"add-page-name","aria-required":"true"},model:{value:e.addPageName,callback:function(i){e.addPageName=i},expression:"addPageName"}})],1),r("b-modal",{ref:"editPageModal",attrs:{title:e.$t("Edit Page Title"),"ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"&times;"},on:{ok:e.editPage}},[r("required"),r("form-input",{ref:"editPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The new name of the page"),validation:"required",error:e.checkPageName(e.editPageName),required:"","aria-required":"true"},model:{value:e.editPageName,callback:function(i){e.editPageName=i},expression:"editPageName"}})],1),r("b-modal",{ref:"confirm",attrs:{title:e.$t("Caution!"),"ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"&times;"},on:{ok:e.deletePage,cancel:e.hideConfirmModal}},[r("p",[e._v(e._s(e.confirmMessage))]),r("div",{attrs:{slot:"modal-ok"},slot:"modal-ok"},[e._v(e._s(e.$t("Delete")))])])],1)},_Z=[],$Z=oe(ZZ,KZ,_Z,!1,null,"45b59613",null,null);const Gw=$Z.exports,eK=1,tK={name:"FormMultiColumn",mixins:[vn,ub,Nc],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:Di,FormInput:Wi,FormSelectList:ee.FormSelectList,FormTextArea:ee.FormTextArea,FormCheckbox:ee.FormCheckbox,FormDatePicker:ee.FormDatePicker,FormHtmlEditor:ee.FormHtmlEditor,FormHtmlViewer:ee.FormHtmlViewer,...Cs},data(){return{items:[]}},computed:{model(){return this.$parent.model}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},methods:{classColumn(t){let e=eK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),`col-sm-${e} ${this.columnVerticalAlign(t)}`},columnVerticalAlign(t){let e="";if(this.items.length>0&&this.items[t].length===1){let r=this.items[0].filter(n=>n.component==="FormText");if(r.length===0)return"";let i=r[0],a=" justify-content-"+(i.config.textAlign==="right"?"end":i.config.textAlign);switch(i.config.verticalAlign){case"top":e="d-flex align-items-start"+a;break;case"middle":e="d-flex align-items-center"+a;break;case"bottom":e="d-flex align-items-end"+a;break}}return e},inspect(t){this.$emit("inspect",t)},submit(){this.$emit("submit")},pageNavigate(t){this.$emit("pageNavigate",t)}}};var rK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{staticClass:"row"},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"column-draggable",class:e.classColumn(a)},[e._l(i.filter(e.shouldElementBeVisible),function(n,s){return[n.container?r(n.component,{key:s,ref:"container",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{transientData:e.transientData,config:n.config,name:n.config.name!==void 0?n.config.name:null,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}}):r("div",{key:s,staticClass:"w-100",attrs:{id:n.config.name?n.config.name:void 0,selector:n.config.customCssSelector}},[r(n.component,e._b({ref:"elements",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{validationData:e.transientData,disabled:n.config.interactive||n.config.disabled,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:e.model[e.getValidPath(n.config.name)],callback:function(o){e.$set(e.model,e.getValidPath(n.config.name),o)},expression:"model[getValidPath(element.config.name)]"}},"component",n.config,!1))],1)]})],2)}),0)])},iK=[],aK=oe(tK,rK,iK,!1,null,null,null,null);const bu=aK.exports,Qw={value:"string",content:"Text"},Yw={value:"int",content:"Integer"},nK={value:"currency",content:"Currency"},sK={value:"password",content:"Password"},oK={value:"percentage",content:"Percentage"},Zw={value:"float",content:"Decimal"},Kw={value:"datetime",content:"Datetime"},_w={value:"date",content:"Date"},lK={value:"boolean",content:"Boolean"},uK=[Qw,Yw,nK,oK,Zw,Kw,_w,sK],cK=[Qw,Yw,Zw];function yu(t){return{type:"FormMultiselect",field:"dataFormat",config:{label:"Data Type",name:"Data Type",helper:"The data type specifies what kind of data is stored in the variable.",validation:"required",options:t}}}function dK(){return{type:op,field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const $w=yu(uK),fK=yu(cK),pK=yu([lK]),eP=yu([_w,Kw]),tP=dK(),hK=[{editorComponent:ee.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:ee.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:1,group:"Content Fields",label:"Rich Text",component:"FormHtmlViewer","editor-component":"FormHtmlEditor","editor-control":"FormHtmlEditor",config:{icon:"fas fa-pencil-ruler",interactive:!0,content:"<p>Rich text editor</p>",renderVarHtml:null},inspector:[{type:"FormTextArea",field:"content",config:{rows:5,label:"Content",helper:"The HTML text to display",value:""}},{type:"FormCheckbox",field:"renderVarHtml",config:{label:"Render HTML from a Variable",helper:"",value:""}}]}},{builderComponent:ee.FormInput,builderBinding:"FormInput",rendererComponent:Wi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:1,group:"Input Fields",label:"Line Input",component:"FormInput","editor-component":"FormInput","editor-control":"FormInput",config:{icon:"far fa-square",label:"New Input",name:"",placeholder:"",validation:"",helper:null,type:"text",dataFormat:"string"},inspector:[Qt,Wr,$w,tP,Hi,Bn,xa,nl,ui,li,Hn]}},{editorComponent:ee.FormTextArea,editorBinding:"FormTextArea",rendererComponent:ee.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:4,group:"Input Fields",label:"Textarea",component:"FormTextArea","editor-component":"FormTextArea","editor-control":"FormTextArea","fa-icon":"fas fa-paragraph",config:{icon:"fas fa-paragraph",label:"New Textarea",placeholder:"",helper:null,rows:2,richtext:!1,currency:{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"}},inspector:[Qt,Wr,Bn,xa,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Hi,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},nl,ui,li,Hn]}},{editorComponent:ee.FormSelectList,editorBinding:"FormSelectList",rendererComponent:ee.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:2,group:"Input Fields",label:"Select List",component:"FormSelectList","editor-component":"FormSelectList","editor-control":"FormSelectList",config:{icon:"fas fa-angle-double-down",label:"New Select List",placeholder:"",validation:"",dataSourceUrl:"",dataSourceEndpoint:"",rootElement:"response",options:{showRenderAs:!0,dataSource:ei.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],key:"value",value:"content",valueTypeReturned:"single"},helper:null},inspector:[Qt,Wr,Bn,Hi,xa,{type:"OptionsList",field:"options",config:{}},ui,li,Hn,nl]}},{editorComponent:ee.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:ee.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:6,group:"Input Fields",label:"Checkbox",component:"FormCheckbox","editor-component":"FormCheckbox","editor-control":"FormCheckbox",config:{icon:"fas fa-check-square",label:"New Checkbox",helper:null,name:null,initiallyChecked:!1,validation:"",toggle:!1},inspector:[Qt,Wr,xa,Hi,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},ui,li,ig,ad]}},{editorComponent:ee.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:ee.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:5,group:"Input Fields",label:"Date Picker",component:"FormDatePicker","editor-component":"FormDatePicker","editor-control":"FormDatePicker",config:{icon:"far fa-calendar-alt",label:"New Date Picker",type:"datetime",name:"",placeholder:"",minDate:"",maxDate:""},inspector:[{type:"FormInput",field:"minDate",config:{name:"Minimum Date",label:"Minimum Date",validation:"date_or_mustache"}},{type:"FormInput",field:"maxDate",config:{name:"Maximum Date",label:"Maximum Date",validation:"after_min_date|date_or_mustache"}},Qt,Wr,eP,Hi,Bn,xa,ui,li,ad,Hn]}},{editorComponent:qi,editorBinding:"FormButton",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add special buttons that link between subpages within this Form",order:1,group:"Navigation",label:"Page Navigation",component:"FormButton","editor-component":"FormButton","editor-control":"PageNavigation",config:{icon:"far fa-compass",label:"Page Navigation",variant:"primary",event:"pageNavigate",eventData:null},inspector:[{type:"PageSelect",field:"eventData",config:{label:"Destination Screen",helper:"The destination page to navigate to"}},rg,sl]}},{editorComponent:bu,editorBinding:"FormMultiColumn",rendererComponent:bu,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:2,group:"Content Fields",label:"Multicolumn / Table",component:"FormMultiColumn","editor-component":"MultiColumn","editor-control":"MultiColumn",container:!0,items:[[],[]],config:{icon:"fas fa-table",options:[{value:"1",content:"6"},{value:"2",content:"6"}]},inspector:[{type:"ContainerColumns",field:"options",config:{label:"Column Width",validation:"columns-adds-to-12"}},ui,li]}},{editorComponent:ws,editorBinding:"FormLoop",rendererComponent:ws,rendererBinding:"FormLoop",control:{popoverContent:"Add a repeatable section of content",order:5,group:"Content Fields",label:"Loop",component:"FormLoop","editor-component":"Loop","editor-control":"Loop",container:!0,items:[],config:{name:"",icon:"fas fa-redo",settings:{type:"new",varname:"loop",times:"3",add:!1}},inspector:[{type:"LoopInspector",field:"settings",config:{}}]}},{editorComponent:gu,editorBinding:"FormText",rendererComponent:vu,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:4,group:"Content Fields",label:"Record List",component:"FormRecordList","editor-component":"FormText","editor-control":"FormRecordList",config:{name:"",icon:"fas fa-th-list",label:"New Record List",editable:!1,fields:{dataSource:ei.provideData,jsonData:""},form:""},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"}},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"}},ui,li]}},{editorComponent:Kn,editorBinding:"FormImage",rendererComponent:Kn,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:3,group:"Content Fields",label:"Image",component:"FormImage","editor-component":"FormImage","editor-control":"FormImage",config:{label:"Image",icon:"fas fa-image",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"name",config:{label:"Name",helper:"Image name"}},{type:"ImageUpload",field:"image",config:{label:"Upload",helper:"Upload image"}},{type:"ImageVariable",field:"imageName",config:{label:"Render from a variable name",helper:null}},{type:"FormInput",field:"height",config:{label:"Height",helper:"Image height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"image width",type:"number"}}]}},{editorComponent:yn,editorBinding:"FormAvatar",rendererComponent:yn,rendererBinding:"FormAvatar",control:{popoverContent:"User avatar",order:3,group:"Dashboards",label:"User Avatar",component:"FormAvatar","editor-component":"FormAvatar","editor-control":"FormAvatar",config:{label:"User Avatar",icon:"fas fa-user-circle",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"height",config:{label:"Height",helper:"Avatar height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"Avatar width",type:"number"}}]}},{editorComponent:qi,editorBinding:"FormSubmit",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:3,group:"Input Fields",label:"Submit Button",component:"FormButton","editor-component":"FormButton","editor-control":"FormSubmit",config:{icon:"fas fa-share-square",label:"New Submit",variant:"primary",event:"submit",loading:!1,loadingLabel:"Loading...",defaultSubmit:!0,name:null,fieldValue:null,tooltip:{}},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the button's text"}},{type:"FormInput",field:"name",config:{label:"Variable Name",name:"Variable Name",helper:"A variable name is a symbolic name to reference information.",validation:"regex:/^(?:[A-Za-z])(?:[0-9A-Z_.a-z])*(?<![.])$/|not_in:"+al}},ag,sg,og,ng,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},sl]}},{editorComponent:Ps,editorBinding:"FormNestedScreen",rendererComponent:Ps,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add and reuse another Form within this Form",order:6,group:"Content Fields",label:"Nested Screen",component:"FormNestedScreen","editor-component":"FormNestedScreen","editor-control":"FormNestedScreen",config:{label:"Nested Screen",icon:"fas fa-file-invoice",variant:"primary",name:"Nested Screen",value:null},inspector:[{type:"ScreenSelector",field:"screen",config:{label:"Screen",name:"SelectScreen","validate-nested":!1,helper:"Select a screen"}}]}},{rendererComponent:bn,rendererBinding:"FileUpload",builderComponent:bn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Collect files uploaded into the Form",order:1,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the field's name"}},{type:"MultipleUploadsCheckbox",field:"multipleUpload",config:{label:"Upload multiple files"}},{type:"FormInput",field:"accept",config:{label:"File Accepted",helper:"Common file types: application/msword, image/gif, image/jpeg, application/pdf, application/vnd.ms-powerpoint, application/vnd.ms-excel, text/plain"}},{type:"RequiredCheckbox",field:"validation",config:{label:"Required",helper:"Prevent form from being submitted unless a file is uploaded"}}]}},{rendererComponent:gu,rendererBinding:"FormText",builderComponent:eo,builderBinding:"FileDownload",control:{popoverContent:"Offer a File download",order:2,group:"Files",label:"File Download",component:"FileDownload","editor-component":"FormText","editor-control":"FileDownload",config:{label:"New File Download",icon:"fas fa-file-download"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The text to display"}},{type:"FormInput",field:"name",config:{label:"Name",helper:"The name of the Download"}}]}},{rendererComponent:ee.BFormComponent,rendererBinding:"BFormComponent",builderComponent:ee.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add one of several Bootstrap Vue components",order:1,group:"Advanced",label:"Bootstrap Component",component:"BFormComponent","editor-component":"BFormComponent","editor-control":"BFormComponent",config:{bootstrapComponent:"b-form-tags",bootstrapConfig:"{}",label:"New Bootstrap Component",icon:"fab fa-bootstrap"},inspector:[Qt,Wr,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-embed",content:"Embed"},{value:"b-img",content:"Image"},{value:"b-form-rating",content:"Form Rating"},{value:"b-form-spinbutton",content:"Form Spinbutton"},{value:"b-form-tags",content:"Form Tags"},{value:"b-form-timepicker",content:"Form Timepicker"},{value:"b-table",content:"Table"}]}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}},Hi]}},{rendererComponent:ee.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:ee.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component",order:2,group:"Advanced",label:"Bootstrap Wrapper",component:"BWrapperComponent","editor-component":"BWrapperComponent","editor-control":"BWrapperComponent",config:{bootstrapComponent:"b-modal",bootstrapConfig:"{}",label:"New Bootstrap Wrapper",icon:"fab fa-bootstrap",name:"",form:""},inspector:[Qt,Wr,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-alert",content:"Alert"},{value:"b-card",content:"Card"},{value:"b-collapse",content:"Collapse"},{value:"b-jumbotron",content:"Jumbotron"},{value:"b-modal",content:"Modal"}]}},{type:"PageSelect",field:"form",config:{label:"Page",helper:"The page to use inside the component"}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}}]}},{editorComponent:Ss,editorBinding:"FormListTable",rendererComponent:Ss,rendererBinding:"FormListTable",control:{popoverContent:"Create List Table",order:6.5,group:"Dashboards",label:"List Table",component:"FormListTable","editor-component":"FormListTable","editor-control":"FormListTable",config:{label:"List Table",icon:"fas fa-list",variant:"primary"},inspector:[{type:"FormMultiselect",field:"listOption",config:{icon:"fas fa-list",label:"List Table",options:[{value:"My Tasks",content:"My Tasks"},{value:"My Requests",content:"My Cases"},{value:"Start New Request",content:"Start New Case"}]}}]}},{editorComponent:ks,editorBinding:"FormAnalyticsChart",rendererComponent:ks,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:6,group:"Dashboards",label:"Analytics Chart",component:"FormAnalyticsChart","editor-component":"FormAnalyticsChart","editor-control":"FormAnalyticsChart",config:{label:"Analytics Chart",icon:"fas fa-chart-area",variant:"primary"},inspector:[{type:"AnalyticsSelector",field:"listChartOption",config:{label:"Chart"}}]}},{editorComponent:Ts,editorBinding:"LinkButton",rendererComponent:Ts,rendererBinding:"LinkButton",control:{popoverContent:"Add a URL where this link should redirect",group:"Content Fields",order:6,label:"Link URL",component:"LinkButton","editor-component":"LinkButton","editor-control":"LinkButton",config:{label:"New Link",icon:"fas fa-link",variant:"primary",event:"link"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the button's text"}},{type:"FormInput",field:"linkUrl",config:{label:"Link URL",helper:"Type here the URL link. Mustache syntax is supported."}},sl]}}],mK="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NS4wNTYyIDczLjg4NkM4NS4wNTYyIDczLjg4NiAxMTUuMDggOTYuNjcgMTYwLjcyNCA1NC4wNjhDMjAxLjI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NjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",Cre="",vK={data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator."}}};var gK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("span",{staticClass:"simple-error-message-title"},[e._v(" "+e._s(e.$t(e.title))+" ")])]),r("p",[r("span",{staticClass:"simple-error-message-message"},[e._v(e._s(e.$t(e.message)))])])])},bK=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:mK}})])}],yK=oe(vK,gK,bK,!1,null,null,null,null);const xK=yK.exports,Mre="",wK={components:{simpleErrorMessage:xK,VueFormRenderer:Ua},props:{initialTaskId:{type:Number,default:null},initialScreenId:{type:Number,default:null},initialRequestId:{type:Number,default:null},initialProcessId:{type:Number,default:null},initialNodeId:{type:String,default:null},screenVersion:{type:Number,default:null},userId:{type:Number,default:null},csrfToken:{type:String,default:null},value:{type:Object,default:()=>{}},beforeLoadTask:{type:Function,default:()=>new Promise(t=>{t()})},initialLoopContext:{type:String,default:""},taskPreview:{type:Boolean,default:!1},loading:{type:Number,default:null},alwaysAllowEditing:{type:Boolean,default:!1},disableInterstitial:{type:Boolean,default:!1},waitLoadingListeners:{type:Boolean,default:!1}},data(){return{task:null,taskId:null,request:null,requestId:null,screen:null,screenId:null,renderComponent:"task-screen",processId:null,nodeId:null,disabled:!1,socketListeners:[],requestData:{},hasErrors:!1,refreshScreen:0,redirecting:null,loadingButton:!1,loadingTask:!1,loadingListeners:this.waitLoadingListeners,isSelfService:!1}},watch:{initialScreenId:{handler(){this.screenId=this.initialScreenId}},initialRequestId:{handler(){this.requestId=this.initialRequestId}},initialProcessId:{handler(){this.processId=this.initialProcessId}},initialNodeId:{handler(){this.nodeId=this.initialNodeId}},screenId:{handler(){this.screenId&&this.loadScreen(this.screenId)}},requestId:{handler(){this.requestId?(this.setMetaValue(),this.initSocketListeners()):this.unsubscribeSocketListeners()}},value:{handler(){this.requestData=this.value}},screen:{handler(){if(this.screen&&this.renderComponent!=="ConversationalForm")if(this.screen.type==="CONVERSATIONAL")this.renderComponent="ConversationalForm";else{const t=G.get(this.screen,"_interstitial",!1);let e=G.get(this,"task.component","task-screen");(e===null||t)&&(e="task-screen"),this.renderComponent=e}}}},computed:{shouldAddSubmitButton(){return this.task?this.task.bpmn_tag_name==="manualTask"||!this.task.screen&&this.task.element_type!=="startEvent":!1},showTaskIsCompleted(){return this.task&&this.task.advanceStatus==="completed"&&!this.screen},screenTypeClass(){return this.screen?this.screen.type.toLowerCase()+"-screen":void 0},parentRequest(){return G.get(this.task,"process_request.parent_request_id",null)}},methods:{disableForm(t){if(t instanceof Array)for(let e of t)e.component==="FormButton"&&e.config.event==="submit"?t.splice(t.indexOf(e),1):this.disableForm(e);return t.config!==void 0&&(t.config.disabled=!0),t.items!==void 0&&this.disableForm(t.items),t},showSimpleErrorMessage(){this.renderComponent="simpleErrorMessage"},loadScreen(t){let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data})},reload(){this.taskId?this.loadTask():this.loadNextAssignedTask()},loadTask(t=!1){if(!this.taskId)return;let e=`/${this.taskId}?include=data,user,draft,requestor,processRequest,component,screen,requestData,loopContext,bpmnTagName,interstitial,definition,nested,userRequestPermission,elementDestination`;return this.screenVersion&&(e+=`&screen_version=${this.screenVersion}`),window.ProcessMaker&&window.ProcessMaker.packages&&window.ProcessMaker.packages.includes("package-vocabularies")&&(window.ProcessMaker.VocabulariesSchemaUrl=`vocabularies/task_schema/${this.taskId}`),this.beforeLoadTask(this.taskId,this.nodeId).then(()=>{this.$dataProvider.getTasks(e).then(r=>{if(this.task=r.data,this.linkTask(t),this.checkTaskStatus(),window.PM4ConfigOverrides&&window.PM4ConfigOverrides.getScreenEndpoint&&window.PM4ConfigOverrides.getScreenEndpoint.includes("tasks/")){const i=window.PM4ConfigOverrides.getScreenEndpoint.split("/");i[1]=this.task.id,window.PM4ConfigOverrides.getScreenEndpoint=i.join("/")}}).catch(()=>{this.hasErrors=!0}).finally(()=>{this.loadingTask=!1})})},linkTask(t){this.nodeId=this.task.element_id,this.listenForParentChanges(),this.task.process_request.status==="COMPLETED"&&(this.taskPreview||(this.$emit("completed",this.task.process_request.id),t&&window.ProcessMaker.apiClient.get(`/requests/${this.requestId}/end-event-destination`).then(e=>{var r,i;if(!((i=(r=e.data)==null?void 0:r.data)!=null&&i.endEventDestination)){window.location.href=`/requests/${this.requestId}`;return}this.processCompletedRedirect(e.data.data,this.userId,this.requestId)}))),this.taskPreview&&this.task.status==="CLOSED"&&(this.task.interstitial_screen._interstitial=!1,this.alwaysAllowEditing||(this.task.screen.config=this.disableForm(this.task.screen.config)),this.screen=this.task.screen)},prepareTask(){(!this.loadingButton||this.task.status==="ACTIVE")&&(this.resetScreenState(),this.requestData=G.get(this.task,"request_data",{}),this.loopContext=G.get(this.task,"loop_context",""),this.task.draft&&(this.requestData=G.merge({},this.requestData,this.task.draft.data)),this.refreshScreen++),this.$emit("task-updated",this.task),this.task.process_request.status==="ERROR"?(this.hasErrors=!0,this.$emit("error",this.requestId)):this.hasErrors=!1},resetScreenState(){this.loadingButton=!1,this.disabled=!1,this.$refs.renderer&&this.$refs.renderer.$children[0]&&(this.$refs.renderer.$children[0].currentPage=0,this.$refs.renderer.restartValidation())},checkTaskStatus(){this.task.status=="COMPLETED"||this.task.status=="CLOSED"||this.task.status=="TRIGGERED"?this.closeTask():this.screen=this.task.screen,this.prepareTask()},setSelfService(){this.$nextTick(()=>{window.ProcessMaker.isSelfService?this.isSelfService=!0:this.isSelfService=!1})},closeTask(t=null){this.hasErrors&&this.emitError(),this.shouldLoadNextTask()?this.loadNextAssignedTask(t):this.task.allow_interstitial?this.showInterstitial(t):this.taskPreview||this.emitClosedEvent()},shouldLoadNextTask(){return this.task.process_request.status==="COMPLETED"||this.loadingButton},showInterstitial(t){this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen,this.loadNextAssignedTask(t)},emitError(){this.$emit("error",this.requestId)},async emitClosedEvent(){var t;this.$emit("closed",(t=this.task)==null?void 0:t.id,await this.getDestinationUrl())},async getDestinationUrl(){const{elementDestination:t,allow_interstitial:e}=this.task||{};if(!t)return null;if(t.type==="taskSource")try{const a={processRequestId:this.requestId,status:"ACTIVE",userId:this.userId},s=(await this.retryApiCall(()=>this.getTasks(a))).data.data[0];return e&&(s==null?void 0:s.user_id)===this.userId?`/tasks/${s.id}/edit`:this.getSessionRedirectUrl()}catch(a){return console.error("Error in getDestinationUrl:",a),null}const r=t.value;return r?(sessionStorage.setItem("sessionUrlActionBlocker",document.referrer),r):sessionStorage.getItem("elementDestinationURL")||null},getSessionRedirectUrl(){const t=sessionStorage.getItem("sessionUrlSelfService");return t?(sessionStorage.removeItem("sessionUrlSelfService"),t):document.referrer||"/tasks"},loadNextAssignedTask(t=null){if(t||(t=this.requestId),!this.userId)return;const e=window.Cypress?"":`&t=${Date.now()}`,r=`?user_id=${this.userId}&status=ACTIVE&process_request_id=${t}&include_sub_tasks=1${e}`;return this.$dataProvider.getTasks(r).then(i=>{if(i.data.data.length>0){let a=i.data.data[0];if(a.process_request_id!==this.requestId){if(this.redirecting===a.process_request_id)return;this.unsubscribeSocketListeners(),this.redirecting=a.process_request_id,this.$emit("redirect",a.id,!0);return}else this.emitIfTaskCompleted(t);this.taskId=a.id,this.nodeId=a.element_id,this.loadTask()}else this.parentRequest&&["COMPLETED","CLOSED"].includes(this.task.process_request.status)&&this.$emit("completed",this.getAllowedRequestId());this.disabled=!1})},emitIfTaskCompleted(t){this.task&&this.parentRequest&&t==this.task.process_request_id&&this.task.process_request.status==="COMPLETED"&&this.$emit("completed",this.parentRequest)},classHeaderCard(t){let e="bg-success";switch(t){case"completed":e="bg-secondary";break;case"overdue":e="bg-danger";break}return"card-header text-capitalize text-white "+e},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t=null,e=!1,r=null){var i,a;this.disabled||(this.disabled=!0,t&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,e,r),(i=this.task)!=null&&i.allow_interstitial&&!this.loadingButton&&!this.disableInterstitial&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen),((a=this.task)==null?void 0:a.bpmn_tag_name)==="manualTask"&&(this.checkTaskStatus(),this.reload()))},onUpdate(t){this.$emit("input",t),this.setSelfService()},activityAssigned(){},processCompleted(t=null){let e;this.parentRequest&&(e=this.getAllowedRequestId(),this.$emit("completed",e))},async retryApiCall(t,e=3,r=1e3){for(let i=0;i<e;i++)try{return await t()}catch(a){if(i===e-1)throw a;await new Promise(n=>{setTimeout(n,r)})}},getNextRequest(t,e){return window.ProcessMaker.apiClient.post(`/process_events/${t}?event=${e}`,{})},getTasks(t){const e={user_id:this.userId,process_request_id:t.processRequestId,page:t.page||1,per_page:t.perPage||1,status:t.status},r=new URLSearchParams(e).toString();return this.$dataProvider.getTasks(`?${r}`)},parseJsonSafely(t){try{return JSON.parse(t)}catch(e){return console.error("Invalid JSON string:",e),null}},async processCompletedRedirect(t,e,r){try{if(t.endEventDestination.type!=="anotherProcess"){t!=null&&t.endEventDestination.value?window.location.href=t==null?void 0:t.endEventDestination.value:window.location.href=`/requests/${this.requestId}`;return}const i=this.parseJsonSafely(t.endEventDestination.value),n={processRequestId:(await this.retryApiCall(()=>this.getNextRequest(i.processId,i.startEvent))).data.id,status:"ACTIVE",page:1,perPage:1},o=(await this.retryApiCall(()=>this.getTasks(n))).data.data[0];o&&o.user_id===e?this.redirectToTask(o.id):this.redirectToRequest(r)}catch(i){console.error("Error processing completed redirect:",i),this.$emit("completed",r)}},getAllowedRequestId(){const e=(this.task.user_request_permission||[]).find(i=>i.process_request_id===this.parentRequest);return e&&e.allowed?this.parentRequest:this.requestId},redirectToTask(t){this.$emit("redirect",t)},redirectToRequest(t){window.location.href=`/requests/${t}`},initSocketListeners(){this.addProcessUpdateListener(),this.addRedirectListener(),this.loadingListeners=!1,this.taskId||this.reload()},addProcessUpdateListener(){this.addSocketListener(`updated-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessUpdated",t=>this.handleProcessUpdate(t))},handleProcessUpdate(t){t.event==="ACTIVITY_EXCEPTION"&&(this.$emit("error",this.requestId),window.location.href=`/requests/${this.requestId}`)},addRedirectListener(){this.addSocketListener(`redirect-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".RedirectTo",t=>this.handleRedirect(t))},handleRedirect(t){switch(t.method){case"redirectToTask":this.handleRedirectToTask(t);break;case"processUpdated":this.handleProcessUpdated(t);break;case"processCompletedRedirect":this.processCompletedRedirect(t.params[0],this.userId,this.requestId);break;default:this.handleDefaultRedirect(t)}},async handleRedirectToTask(t){var e;if((e=t==null?void 0:t.params[0])!=null&&e.tokenId){if(this.loadingTask=!0,this.task&&!(this.task.allow_interstitial||this.isSameUser(this.task,t))){window.location.href=await this.getDestinationUrl();return}this.nodeId=t.params[0].nodeId,this.taskId=t.params[0].tokenId,this.reload()}},isSameUser(t,e){var a,n,s;const r=((a=t.user)==null?void 0:a.id)===e.params[0].userId,i=((n=t.elementDestination)==null?void 0:n.type)===null||((s=t.elementDestination)==null?void 0:s.type)==="taskSource";return r&&i},handleProcessUpdated(t){var r,i,a,n;const e=(r=this.task.elementDestination)==null?void 0:r.value;if(e&&((i=t==null?void 0:t.params[0])==null?void 0:i.tokenId)===this.taskId&&((a=t==null?void 0:t.params[0])==null?void 0:a.requestStatus)==="ACTIVE"){window.location.href=e;return}["ACTIVITY_ACTIVATED","ACTIVITY_COMPLETED"].includes(t.event)&&t.elementType==="task"&&((n=this.task.elementDestination)!=null&&n.type||(this.taskId=t.taskId),this.reload()),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)},handleDefaultRedirect(t){console.warn("redirect",t),window.location.href=`/requests/${this.requestId}`},existsEventMessage(t,e){return sessionStorage.getItem(t)?!0:(sessionStorage.setItem(t,e),!1)},listenForParentChanges(){this.parentRequest&&this.addSocketListener(`parent-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,".ProcessUpdated",t=>{["ACTIVITY_ACTIVATED"].includes(t.event)&&this.closeTask(this.parentRequest),["ACTIVITY_COMPLETED"].includes(t.event)&&this.task.process_request.status==="COMPLETED"&&this.processCompleted(),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)})},addSocketListener(t,e,r,i){t in this.socketListeners||(this.socketListeners[t]={channel:e,event:r},window.Echo.private(e).listen(r,a=>{i(a)}))},unsubscribeSocketListeners(){Object.values(this.socketListeners).forEach(t=>{window.Echo.private(t.channel).stopListening(t.event)}),this.socketListeners={}},obtainPayload(t){return new Promise(e=>{window.ProcessMaker.apiClient.get(t).then(r=>{e(r.data)}).catch(()=>{})})},setMetaValue(){const t=document.head.querySelector('meta[name="request-id"]');t&&t.setAttribute("content",this.requestId)},hasUrlActionBlocker(){var e;const t=sessionStorage.getItem("sessionUrlActionBlocker");return t?(sessionStorage.removeItem("sessionUrlActionBlocker"),this.$emit("closed",(e=this.task)==null?void 0:e.id,t),!0):!1}},mounted(){this.screenId=this.initialScreenId,this.taskId=this.initialTaskId,this.requestId=this.initialRequestId,this.processId=this.initialProcessId,this.nodeId=this.initialNodeId,this.requestData=this.value,this.loopContext=this.initialLoopContext,this.loadTask(!0),this.setSelfService()},destroyed(){this.unsubscribeSocketListeners()}};var PK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tab-pane active show h-100",attrs:{id:"tab-form",role:"tabpanel","aria-labelledby":"tab-form"}},[e.screen?[r("b-overlay",{attrs:{show:e.disabled||e.isSelfService,id:"overlay-background",variant:e.isSelfService?"white":"transparent",blur:null,cardStyles:"pointer-events: none;pointer-events: none;inset: 1px",rounded:"sm"},scopedSlots:e._u([{key:"overlay",fn:function(){return[r("div",{staticClass:"text-center"},[e.isSelfService?r("p",[e._v("Please claim this task to continue.")]):e._e()])]},proxy:!0}],null,!1,2076353390)},[r("div",{staticClass:"card card-body border-top-0 h-100",class:e.screenTypeClass},[e.renderComponent==="task-screen"?r("div",[r("vue-form-renderer",{key:e.refreshScreen,ref:"renderer",class:{loading:e.loadingTask||e.loadingListeners},attrs:{config:e.screen.config,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,"loop-context":e.loopContext},on:{update:e.onUpdate,"after-submit":e.afterSubmit,submit:e.submit},model:{value:e.requestData,callback:function(i){e.requestData=i},expression:"requestData"}})],1):r("div",[r(e.renderComponent,{tag:"component",attrs:{"process-id":e.processId,"instance-id":e.requestId,"token-id":e.taskId,screen:e.screen.config,"csrf-token":e.csrfToken,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,data:e.requestData,type:e.screen.type},on:{"after-submit":e.afterSubmit,submit:e.submit}})],1)]),e.shouldAddSubmitButton?r("div",{staticClass:"card-footer"},[r("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.submit(null)}}},[e._v(" "+e._s(e.$t("Complete Task"))+" ")])]):e._e()])]:e._e(),e.showTaskIsCompleted?[r("div",{staticClass:"card card-body text-center"},[r("h1",[e._v(" "+e._s(e.$t("Task Completed"))+" "),r("i",{staticClass:"fas fa-clipboard-check"})])])]:e._e()],2)},SK=[],kK=oe(wK,PK,SK,!1,null,"d53970d9",null,null);const rP=kK.exports,Are="",TK={name:"Loop",components:{draggable:Di,FormInput:ee.FormInput,FormSelectList:ee.FormSelectList,FormCheckbox:ee.FormCheckbox,FormTextArea:ee.FormTextArea,FormDatePicker:ee.FormDatePicker,FormHtmlEditor:ee.FormHtmlEditor,FormHtmlViewer:ee.FormHtmlViewer,...Cs},mixins:[vn],props:["value","name","config","selected","validationErrors"],data(){return{items:[],cancelledJobs:[]}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},methods:{hasError(t){return this.validationErrors?this.validationErrors.some(({item:e})=>e===t):!1},inspect(t){this.$emit("inspect",t)},deleteItem(t){this.items.splice(t,1),this.$emit("update-state")},duplicateItem(t){const e=G.cloneDeep(this.items[t]);this.items.push(e),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.component==="AiSection"&&e===r.config.aiConfig.nonce&&this.$set(r,"items",JSON.parse(JSON.stringify(t)))})},updateProgress(t,e){this.value.forEach(r=>{if(r.component==="AiSection"&&e===r.config.aiConfig.nonce){if(this.cancelledJobs.some(i=>i===e))return;this.$set(r.config.aiConfig,"progress",t)}})}}};var CK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"column-draggable",attrs:{selector:e.config.customCssSelector}},[r("draggable",{staticStyle:{"min-height":"80px"},attrs:{list:e.items,group:"controls"}},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"control-item",class:{selected:e.selected===i,hasError:e.hasError(i)},on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[i.container?r("div",{on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(i)&&e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(i)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(i)&&e.aiPreview(i)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(n){return e.applyAiChanges(i)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(i)&&e.aiPreview(i)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":i,config:i.config},on:{inspect:e.inspect,"update-state":function(n){return e.$emit("update-state")}},model:{value:i.items,callback:function(n){e.$set(i,"items",n)},expression:"element.items"}})],1)]):r("div",{attrs:{id:i.config.name?i.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(i),{"prevent-interaction":!i.config.interactive}],attrs:{tabindex:i.config.interactive?0:-1,config:i.config},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},MK=[],DK=oe(TK,CK,MK,!1,null,"06c4d69f",null,null);const iP=DK.exports,zre="",AK=1,zK={name:"MultiColumn",components:{draggable:Di,FormInput:ee.FormInput,FormSelectList:ee.FormSelectList,FormCheckbox:ee.FormCheckbox,FormTextArea:ee.FormTextArea,FormDatePicker:ee.FormDatePicker,FormHtmlEditor:ee.FormHtmlEditor,FormHtmlViewer:ee.FormHtmlViewer,...Cs},mixins:[vn],props:["value","name","config","selected","validationErrors"],data(){return{items:[],cancelledJobs:[]}},computed:{classContainer(){return this.items.length>0?"form-group":"column-draggable"}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)},"config.options":function(t){this.items=t.map((e,r)=>this.items[r]?this.items[r]:[])}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},methods:{hasError(t){return this.validationErrors.some(({item:e})=>e===t)},updateContainerConfig(t,e){this.items[e]=t,this.$emit("update-state")},classColumn(t){let e=AK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),`col-sm-${e}`},inspect(t){this.$emit("inspect",t)},deleteItem(t,e){this.items[t].splice(e,1),this.$emit("update-state")},duplicateItem(t,e){const r=G.cloneDeep(this.items[t][e]);this.items[t].push(r),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.forEach(i=>{i.component==="AiSection"&&e===i.config.aiConfig.nonce&&this.$set(i,"items",JSON.parse(JSON.stringify(t)))})})},updateProgress(t,e){this.value.forEach(r=>{r.forEach(i=>{if(i.component==="AiSection"&&e===i.config.aiConfig.nonce){if(this.cancelledJobs.some(a=>a===e))return;this.$set(i.config.aiConfig,"progress",t)}})})}}};var OK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"mb-1 mt-1 pb-0 pt-0",class:e.classContainer},[r("div",{attrs:{selector:e.config.customCssSelector}},[r("div",{staticClass:"row"},[e._l(e.items,function(i,a){return[r("draggable",{key:a,staticClass:"column-draggable",class:e.classColumn(a),attrs:{value:e.items[a],group:"controls"},on:{input:function(n){return e.updateContainerConfig(n,a)}},model:{value:e.items[a],callback:function(n){e.$set(e.items,a,n)},expression:"items[index]"}},e._l(i,function(n,s){return r("div",{key:s,staticClass:"control-item",class:{selected:e.selected===n,hasError:e.hasError(n)},on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[n.container?r("div",{on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(n)&&e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(n)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(n)&&e.aiPreview(n)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(o){return e.applyAiChanges(n)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(n)&&e.aiPreview(n)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{"aria-label":e.$t("Duplicate")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(n),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":n,config:n.config},on:{inspect:e.inspect,"update-state":function(o){return e.$emit("update-state")}},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}})],1)]):r("div",{attrs:{id:n.config.name?n.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(n),{"prevent-interaction":!n.config.interactive}],attrs:{tabindex:n.config.interactive?0:-1,config:n.config},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},EK=[],jK=oe(zK,OK,EK,!1,null,"eaf6f1c4",null,null);const aP=jK.exports,NK={name:"default-loading-spinner"};var IK=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},LK=[],FK=oe(NK,IK,LK,!1,null,null,null,null);const nP=FK.exports,BK=!0;function xu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=xu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=xu(i))}}),e}const sP=async(t,e)=>{if(t.length===0)return;const r=ph(t[0]),i=[];t.forEach(n=>{r!==n&&i.push(n.loadValidationRules())}),await Promise.all(i);try{await r.loadValidationRules()}catch(n){console.warn("There was a problem rendering the screen",n)}const a=r.$v;if(a){let n=0,s="";a.$invalid&&(n+=xu(a.vdata),n+=xu(a.schema),s=n===1?"There is a validation error in your form.":"There are {{items}} validation errors in your form.",s=r.$t(s,{items:n})),e("basic",{key:"valid",value:!a.$invalid}),e("basic",{key:"message",value:s})}},HK=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},RK=G.debounce(sP,500),wu=[],qK=(t,e)=>{wu.includes(t)||wu.push(t),RK(wu,e)},oP={namespaced:BK,state:()=>({locked:!1,valid:!0,message:"",mode:"",submitted:!1,showValidationOnLoad:!1,disableSubmit:!1}),getters:{isValidScreen(t){return t.valid},getErrorMessage(t){return t.message},getMode(t){return t.mode},showValidationErrors(t){return t.showValidationOnLoad||t.submitted}},mutations:{basic(t,e){t[e.key]=e.value},setMode(t,e){t.mode=e},disableSubmit(t,e){t.disableSubmit=e.value,t.message=e.message}},actions:{restartValidation(){wu.length=0},validate({commit:t},e){qK(e,t)},async validateNow({commit:t},e){await sP([e],t)},close({commit:t}){t("basic",{key:"valid",value:!0})},hasSubmitted({commit:t},e){t("basic",{key:"submitted",value:e})},showValidationOnLoad({commit:t},e){t("basic",{key:"showValidationOnLoad",value:e})},async disableSubmitOnPhotoVideoUpload({commit:t},e){await HK(t,e)}}},Pu={namespaced:!0,state(){return{stack:[],position:null}},getters:{canUndo(t){return t.position>0},canRedo(t){return t.position<t.stack.length-1},currentState(t,e){const r=t.stack[t.position];return e.nextState&&e.nextState.deletedPage&&(r.currentPage=e.nextState.currentPage),r},nextState(t,e){return e.canRedo?t.stack[t.position+1]:!1}},mutations:{setPosition(t,e){t.position=e},setState(t,e){t.stack.push(e)}},methods:{emitChanges(){window.ProcessMaker.EventBus.$emit("screen-change")}},actions:{pushState({state:t,getters:e,commit:r},i){i.config!==e.currentState&&(r("setState",i),r("setPosition",t.stack.length-1),Pu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),Pu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),Pu.methods.emitChanges())}}},Ore="",WK={props:{placeholder:{type:String},value:{type:String}},data(){return{query:""}},watch:{query(t){this.$emit("input",t)}},methods:{runSearch(t){this.$emit("submit",this.query)}},mounted(){this.query=this.value}};var VK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"basic-search"},[r("div",{staticClass:"d-flex"},[r("div",{staticClass:"flex-grow-1"},[r("div",{staticClass:"search-bar-basic d-flex w-100"},[r("div",{staticClass:"search-bar-inputs flex-grow w-100"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"search_input",staticClass:"search-bar-manual-input form-control",attrs:{type:"text",placeholder:e.placeholder?e.placeholder:e.$t("Search"),"data-cy":"watchers-table-search"},domProps:{value:e.query},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.runSearch.apply(null,arguments)},input:function(i){i.target.composing||(e.query=i.target.value)}}})]),r("div",{staticClass:"search-bar-actions d-flex flex-shrink"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"btn-search-run",attrs:{variant:"primary",title:e.$t("Search")},on:{click:e.runSearch}},[r("i",{staticClass:"fas fa-search",attrs:{"data-cy":"watchers-table-search-button"}})])],1)])]),r("div",{staticClass:"search-bar-buttons"},[e._t("buttons")],2)])])},XK=[],JK=oe(WK,VK,XK,!1,null,"d660c896",null,null);const lP=JK.exports,uP="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjI2MzIgNy4xMDUyOEgxNk0xNiA3LjEwNTI4TDE0LjAyNjMgOS4wNzg5Nk0xNiA3LjEwNTI4TDE1LjAxMzIgNi4xMTg0M0wxNC4wMjYzIDUuMTMxNTkiIHN0cm9rZT0iIzZBNzg4OCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cmVjdCB4PSIzLjQ3OTEiIHk9IjAuOSIgd2lkdGg9IjcuNjczNjgiIGhlaWdodD0iMTIuNDEwNSIgcng9IjEuMSIgc3Ryb2tlPSIjNkE3ODg4IiBzdHJva2Utd2lkdGg9IjEuOCIvPgo8cGF0aCBkPSJNMSA2LjIwNTIyQzAuNTAyOTQ0IDYuMjA1MjIgMC4xIDYuNjA4MTcgMC4xIDcuMTA1MjJDMC4xIDcuNjAyMjggMC41MDI5NDQgOC4wMDUyMiAxIDguMDA1MjJMMSA2LjIwNTIyWk0xIDguMDA1MjJMNy4zMTU3OSA4LjAwNTIzTDcuMzE1NzkgNi4yMDUyM0wxIDYuMjA1MjJMMSA4LjAwNTIyWiIgZmlsbD0iIzZBNzg4OCIvPgo8L3N2Zz4K",cP="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+Cjxw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I0aDEwMS4zMzNjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNHptODAgNDQ4SDQ4OGMxMy4yNTUgMCAyNC0xMC43NDUgMjQtMjR2LTgwYzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR2ODBjMCAxMy4yNTUgMTAuNzQ1IDI0IDI0IDI0em0tMjQtNDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6bTI0IDI2NEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0di04MGMwLTEzLjI1NS0xMC43NDUtMjQtMjQtMjRIMjA1LjMzM2MtMTMuMjU1IDAtMjQgMTAuNzQ1LTI0IDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNHoiPjwvcGF0aD48L3N2Zz4=",Ere="",UK=typeof window>"u"?global:window,GK={components:{FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,MonacoEditor:Si,Sortable:lp},mixins:[lc],props:["value"],data(){return{required:!0,numberItem:0,displayList:!0,ruleDescription:"",ruleFormula:"",rulePropName:"",editorInvalid:!1,existsProperty:!1,current:[],add:{id:0,name:"",property:"",type:"expression",formula:""},css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Name"),key:"property"},{label:this.$t("Type"),key:"type",cb:t=>{switch(t){case"expression":return"Formula";case"javascript":return"JavaScript";default:return t}}}],monacoOptions:{automaticLayout:!0,lineNumbers:"off",minimap:!1},monacoEditor:null,errors:{},searchProperties:["property","type"]}},computed:{javascriptTypeClass(){const{isJS:t}=this;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},expressionTypeClass(){const t=!this.isJS;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},isJS(){return this.add.type==="javascript"},modalSize(){return this.displayList?"lg":"xl"}},watch:{value(){this.value.forEach(t=>{this.numberItem++,t.id=this.numberItem,Object.hasOwn(t,"byPass")||(t.byPass=!1)}),this.current=this.value}},created(){Lt.register("exists-property",()=>{let t=!0;return this.current.forEach(e=>{e.property===this.add.property&&e.id!==this.add.id&&(t=!1)}),t},this.$t("Property already exists"))},methods:{switchExpressionType(t){this.add.type=t},show(){this.$refs.modal.show()},emptyForm(){this.add.id=0,this.add.name="",this.add.property="",this.add.type="expression",this.add.formula="",this.editorInvalid=!1,this.existsProperty=!1,this.ruleDescription="",this.ruleFormula="",this.rulePropName=""},displayTableList(){this.emptyForm(),this.displayList=!0},displayFormProperty(){this.emptyForm(),this.displayList=!1},validateData(){this.errors=[];const t={property:"required|exists-property",name:"required",formula:"required"},e={property:this.add.property,name:this.add.name,formula:this.add.formula},r=new Lt(e,t),i=r.passes();this.errors=Object.fromEntries(Object.keys(r.errors.all()).map(a=>[a,r.errors.first(a)])),i?this.saveProperty():this.focusFirstCalculatedPropertiesError()},toggleBypass(t){this.current=this.current.map(e=>e.id===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},saveProperty(){this.add.id===0?(this.numberItem++,this.current.push({id:this.numberItem,property:this.add.property,name:this.add.name,formula:this.add.formula,type:this.add.type,byPass:!1})):this.current.forEach(t=>{t.id===this.add.id&&(t.name=this.add.name,t.property=this.add.property,t.formula=this.add.formula,t.type=this.add.type)}),this.$emit("input",this.current),this.displayTableList()},editProperty(t){this.add.id=t.id,this.add.name=t.name,this.add.property=t.property,this.add.type=t.type?t.type:"expression",this.add.formula=t.formula,this.displayList=!1},deleteProperty(t){UK.ProcessMaker.confirmModal(this.$t("Are you sure you want to delete the calc ?"),this.$t("If you do, you won’t be able to recover the Calc configuration."),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.id!==t.id),this.$emit("input",this.current),this.displayTableList()},editorMounted(t){this.monacoEditor=t},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":uP,"../assets/icons/ErrorMessage.svg":cP,"../assets/icons/Unbypass.svg":dP,"../assets/icons/angle-double-right-solid.svg":fP,"../assets/icons/calendar-regular.svg":pP,"../assets/icons/caret-square-down-solid.svg":hP,"../assets/icons/check-square-solid.svg":mP,"../assets/icons/columns-solid.svg":vP,"../assets/icons/font-solid.svg":gP,"../assets/icons/list-ul-solid.svg":bP,"../assets/icons/paragraph-solid.svg":yP,"../assets/icons/share-square-solid.svg":xP,"../assets/icons/square-regular.svg":wP,"../assets/icons/th-list-solid.svg":PP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var QK=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{id:"computed-properties",size:e.modalSize,"content-class":"p-3","header-class":"m-0 p-0 mb-3","body-class":"m-0 p-0","title-class":"m-0","footer-class":"m-0 p-0 border-0","no-close-on-backdrop":"","header-close-content":"&times;","data-cy":"calcs-modal"},on:{hidden:e.displayTableList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Calculated Properties")))]),r("small",{directives:[{name:"show",rawName:"v-show",value:!e.displayList,expression:"!displayList"}],staticClass:"modal-subtitle my-2"},[e._v(" "+e._s(e.$t("Perform mathematical calculations offering quick, convenient, and accurate operations, enhancing user efficiency and usability."))+" ")])]},proxy:!0}])},[e.displayList?[r("Sortable",{staticClass:"mb-3",attrs:{fields:e.fields,items:e.current,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"calcs-table"},btnNew:{"data-cy":"calcs-add-property"},btnEdit:{"data-cy":"calcs-table-edit"},btnDelete:{"data-cy":"calcs-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Calc"):e.$t("Bypass Calc"),"data-test":"calcs-bypass"},on:{click:function(a){return e.toggleBypass(i.id)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}],null,!1,1100542621)}),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("b-row",[r("b-col",[r("form-input",{ref:"property",staticClass:"mb-3 calcs-input",attrs:{label:e.$t("Property Name")+" *",name:"property",error:e.errors.property,"data-cy":"calcs-property-name",required:"","aria-required":"true"},model:{value:e.add.property,callback:function(i){e.$set(e.add,"property",i)},expression:"add.property"}})],1),r("b-col",[r("form-text-area",{ref:"name",staticClass:"mb-3 calcs-input",attrs:{label:e.$t("Description")+" *",name:"name",error:e.errors.name,"data-cy":"calcs-property-description",required:"","aria-required":"true"},model:{value:e.add.name,callback:function(i){e.$set(e.add,"name",i)},expression:"add.name"}})],1)],1),r("div",{staticClass:"form-group mb-3",staticStyle:{position:"relative"}},[r("div",{staticClass:"d-flex justify-content-between mb-1"},[r("label",{staticClass:"m-0"},[e._v(e._s(e.$t("Formula")+" *"))]),r("div",[r("a",{staticClass:"btn btn-sm",class:e.expressionTypeClass,attrs:{"data-cy":"calcs-switch-formula"},on:{click:function(i){return e.switchExpressionType("expression")}}},[r("i",{staticClass:"fas fa-square-root-alt"})]),r("a",{staticClass:"btn btn-sm",class:e.javascriptTypeClass,attrs:{"data-cy":"calcs-switch-javascript"},on:{click:function(i){return e.switchExpressionType("javascript")}}},[r("i",{staticClass:"fab fa-js-square fa-lg"})])])]),r("form-text-area",{directives:[{name:"show",rawName:"v-show",value:!e.isJS,expression:"!isJS"}],ref:"formula",staticClass:"calcs-input-formula",attrs:{rows:"5",name:"formula",error:e.errors.formula,"data-cy":"calcs-property-formula",required:"","aria-required":"true"},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor-border",class:{"is-invalid":!!e.errors.formula}}),r("monaco-editor",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor",attrs:{options:e.monacoOptions,language:"javascript","data-cy":"calcs-property-javascript",required:"","aria-required":"true"},on:{editorDidMount:e.editorMounted},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),e.isJS&&e.errors.formula?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.errors.formula))])]):e._e()],1),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-outline-secondary text-uppercase",attrs:{"data-cy":"calcs-button-cancel"},on:{click:e.displayTableList}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-save"},on:{click:e.validateData}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])]],2)},YK=[],ZK=oe(GK,QK,YK,!1,null,"6d70559c",null,null);const KK=ZK.exports,jre="",_K={props:["value","cssErrors"],components:{MonacoEditor:Si},data(){return{saveValue:"",innerValue:"",monacoOptions:{language:"css",automaticLayout:!0,minimap:{enabled:!1}}}},watch:{innerValue(t){this.$emit("input",t)}},methods:{show(){this.innerValue=this.value,this.saveValue=this.value,this.$refs.modal.show()},close(){this.$refs.modal.hide()},hide(){this.innerValue=this.saveValue,this.$emit("input",this.innerValue)},save(){this.saveValue=this.innerValue,this.$refs.modal.hide()}}};var $K=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"custom-css",title:e.$t("Custom CSS"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","no-close-on-backdrop":"","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"header-close-content":"&times;"},on:{ok:e.save,cancel:e.close,hide:e.hide}},[r("p",[e._v(e._s(e.$t("You can set CSS Selector names in the inspector. Use them here with [selector='my-selector']")))]),r("div",{staticClass:"editor"},[r("monaco-editor",{staticClass:"monaco",attrs:{options:e.monacoOptions,"data-cy":"monaco-editor"},model:{value:e.innerValue,callback:function(i){e.innerValue=i},expression:"innerValue"}})],1),r("b-alert",{attrs:{show:e.cssErrors!="",variant:"danger"}},[r("pre",[e._v(e._s(e.cssErrors))])]),r("div",{attrs:{slot:"modal-cancel","data-cy":"cancel-button"},slot:"modal-cancel"},[e._v(e._s(e.$t("Cancel")))]),r("div",{attrs:{slot:"modal-ok","data-cy":"save-button"},slot:"modal-ok"},[e._v(e._s(e.$t("Save")))])],1)},e_=[],t_=oe(_K,$K,e_,!1,null,"3824b29b",null,null);const r_=t_.exports,Nre="",i_=typeof window>"u"?global:window,a_={name:"WatchersForm",components:{FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,FormMultiSelect:ee.FormMultiSelect,FormCheckbox:ee.FormCheckbox,MonacoEditor:Si,DataMapping:rp,OutboundConfig:sp,ScreenVariableSelector:kw},mixins:[lc],props:{config:{type:Object,default(){return{name:"",watching:"",script:"",script_id:"",script_key:"",input_data:"{}",script_configuration:"{}",output_variable:"",synchronous:!1,run_onload:!1,show_async_loading:!1}}}},data(){return{scriptConfig:"",endpoint:null,endpoints:[],ruleWatcherName:"",ruleWatcherVariable:"",ruleWatcherScript:"",ruleWatcherOutputVariable:"",required:!0,inputDataInvalid:!1,scriptConfigurationInvalid:!1,scripts:[],script:null,monacoOptions:{automaticLayout:!0,lineNumbers:"on",minimap:{enabled:!1}},endpointError:null,inputDataEditor:null,scriptConfigEditor:null}},computed:{dataSourceLink(){const t=this.selectedDataSourceId(),e=this.endpoint;return t&&e?`/designer/data-sources/${t}/resources/${e}`:""},dataSourceConfigWarning(){const t=this.selectedDataSourceId(),e=this.scripts.find(i=>i.type==="Data Connectors");if(typeof e>"u"||e===null)return"";const r=e.items.find(i=>i.id===`data_source-${t}`);return typeof r>"u"||e===null?"":r.validationStatus.length>0?r.validationStatus:""},isDatasource(){return this.config.script&&this.config.script.id.substr(0,11)==="data_source"},isScript(){return!this.config.script||this.config.script.id.substr(0,6)==="script"},hasInputData(){let t;try{t=JSON.parse(this.config.script_configuration)}catch{return!1}return typeof t.input_data>"u"||t.input_data==null?!1:Object.keys(t.input_data).length===0&&t.input_data.constructor===Object},outputVarLabel(){const t=this.ruleWatcherOutputVariable=="required"?" *":"";return this.$t("Output Variable")+t}},watch:{scriptConfig(t){try{const e=JSON.parse(this.config.script_configuration),r=JSON.parse(t);this.config.script_configuration=JSON.stringify({...e,...r},null," ")}catch{}},endpoint(t){this.setConfig("endpoint",t);const e=this.scriptConfig?JSON.parse(this.scriptConfig):{},r=e.dataMapping||[],i=this.scripts.find(a=>a.items&&a.items.length>0&&a.items[0].id&&a.items[0].id.substr(0,11)==="data_source");if(i&&r.length===0){const a=i.items.find(s=>`data_source-${e.dataSource}`===s.id),n=(a.endpoints&&a.endpoints[t]?a.endpoints[t].dataMapping:[])||[];e.dataMapping=[],n.forEach(s=>{e.dataMapping.push({key:s.key,value:s.value})}),this.scriptConfig=JSON.stringify(e)}},config:{deep:!0,immediate:!0,handler(t){t.input_data||(t.input_data="{}"),t.script_configuration?this.scriptConfig=this.config.script_configuration:t.script_configuration="{}",this.endpoint=this.getConfig().endpoint}},"config.script":{handler(t,e){if(!t)this.config.script_id="",this.config.script_key="",this.config.datasource_script_id="";else if(typeof t=="object"){const r=t.id.split("-"),i=e&&e.id&&e.id.split("-").length>0?e.id.split("-")[0]:"";this.config.script_id=r[1],this.config.script_key=t.key,i!==r[0]&&(this.config.script_configuration="{}"),r[0]==="data_source"&&this.setConfig("dataSource",this.config.script_id),this.config.datasource_script_id=t.dataSourceScriptId}return t}}},methods:{selectedDataSourceId(){let t=null;try{t=JSON.parse(this.scriptConfig).dataSource}catch{t=null}return t},setValidations(){this.ruleWatcherName="required",this.ruleWatcherVariable="required",this.ruleWatcherScript="required",this.hasInputData&&(this.ruleWatcherOutputVariable="required")},getConfig(){try{return JSON.parse(this.config.script_configuration)}catch{return{}}},setConfig(t,e){const r=this.getConfig();JSON.stringify(r[t])!==JSON.stringify(e)&&(r[t]=e,this.config.script_configuration=JSON.stringify(r),this.scriptConfig=this.config.script_configuration)},loadEndpoints(){const t=this.config.script.id.substr(0,11)==="data_source"?this.config.script.id.substr(12):null;this.endpoints.splice(0),t&&window.ProcessMaker&&window.ProcessMaker.apiClient&&window.ProcessMaker.apiClient.get(`/data_sources/${t}`).then(e=>{for(const r in e.data.endpoints)this.endpoints.push(r)})},loadSources(){this.scripts=[],this.$root.$children[0].watchers_config.api.scripts.forEach(t=>{t(this.scripts)})},displayTableList(){this.$emit("display-list")},jsonIsValid(t){try{JSON.parse(this.config[t])}catch{return!1}return!0},isFormValid(){this.isDatasource&&!this.endpoint?this.endpointError=this.$t("Endpoint is required"):this.endpointError=null;for(const t in this.$refs)if(this.$refs[t]&&this.$refs[t].name&&this.$refs[t].validator&&this.$refs[t].validator.errorCount!==0)return!1;return!(!this.config.watching||!this.config.script||this.endpointError||!this.jsonIsValid("input_data")||!this.jsonIsValid("script_configuration"))},validateDataAndSave(){this.setValidations(),this.$nextTick(()=>{if(!this.isFormValid()){i_.ProcessMaker.alert(this.$t("An error occurred. Check the form for errors in red text."),"danger"),this.focusFirstWatcherError();return}this.config.uid||(this.config.uid=G.uniqueId(new Date().getTime()),this.config.byPass=!1),this.save()})},save(){this.$emit("save-form")},inputDataEditorMounted(t){this.inputDataEditor=t},scriptConfigEditorMounted(t){this.scriptConfigEditor=t}}};var n_=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"accordion",attrs:{id:"watcherAccordion"}},[r("div",{staticClass:"card card-overflow"},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherConfigButton",staticClass:"p-3 btn btn-link d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherConfig","data-cy":"watchers-accordion-configuration"}},[e._m(0),e._m(1)])])]),r("div",{staticClass:"collapse show",attrs:{id:"watcherConfig","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-input",{ref:"name",attrs:{label:e.$t("Watcher Name")+" *",name:e.$t("Watcher Name"),validation:e.ruleWatcherName,helper:e.$t("A name to describe this Watcher"),"data-cy":"watchers-watcher-name",required:"","aria-required":"true"},model:{value:e.config.name,callback:function(i){e.$set(e.config,"name",i)},expression:"config.name"}}),r("screen-variable-selector",{ref:"watching",attrs:{name:e.$t("Variable to Watch"),label:e.$t("Variable to Watch")+" *",validation:e.ruleWatcherVariable,helper:e.$t("Select the variable to watch on this screen or type any request variable name"),"data-cy":"watchers-watcher-variable"},model:{value:e.config.watching,callback:function(i){e.$set(e.config,"watching",i)},expression:"config.watching"}}),r("form-checkbox",{attrs:{name:e.$t("Run Synchronously"),label:e.$t("Run Synchronously"),toggle:!0,helper:e.$t("Wait for the Watcher to run before accepting more input"),"data-cy":"watchers-watcher-synchronous"},model:{value:e.config.synchronous,callback:function(i){e.$set(e.config,"synchronous",i)},expression:"config.synchronous"}}),r("form-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.config.synchronous,expression:"!config.synchronous"}],attrs:{name:e.$t("Show message while loading remote data"),label:e.$t("Show message while loading remote data"),toggle:!0,"data-cy":"watchers-watcher-show-loading"},model:{value:e.config.show_async_loading,callback:function(i){e.$set(e.config,"show_async_loading",i)},expression:"config.show_async_loading"}}),r("form-checkbox",{attrs:{name:e.$t("Run Watcher on Screen Load"),label:e.$t("Run watcher on Screen Load"),toggle:!0,"data-cy":"watchers-watcher-run-onload"},model:{value:e.config.run_onload,callback:function(i){e.$set(e.config,"run_onload",i)},expression:"config.run_onload"}})],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherSourceButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherSource","data-cy":"watchers-accordion-source"}},[e._m(2),e._m(3)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherSource","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-multi-select",{ref:"script",attrs:{name:e.$t("Source"),label:e.$t("Source")+" *",options:e.scripts,placeholder:e.$t("None"),multiple:!1,"show-labels":!1,searchable:!0,"option-value":"id","option-content":"title","group-values":"items","group-label":"type",validation:e.ruleWatcherScript,helper:e.$t("The source to access when this Watcher runs"),"data-cy":"watchers-watcher-source"},on:{open:e.loadSources},model:{value:e.config.script,callback:function(i){e.$set(e.config,"script",i)},expression:"config.script"}}),e.isScript?r("div",[e.config.script?r("b-alert",{attrs:{show:"",variant:"warning"}},[r("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "+e._s(e.$t("Using watchers with Scripts can slow the performance of your screen."))+" ")]):e._e(),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{ref:"input_data",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},on:{editorDidMount:e.inputDataEditorMounted},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the script (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])]),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Script Configuration")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("script_configuration")}},[r("monaco-editor",{ref:"script_configuration",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-script_configuration"},on:{editorDidMount:e.scriptConfigEditorMounted},model:{value:e.config.script_configuration,callback:function(i){e.$set(e.config,"script_configuration",i)},expression:"config.script_configuration"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Configuration data for the script (valid JSON object, variables supported)")))]),e.scriptConfigurationInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(" "+e._s(e.$t("The Script Configuration field is required"))+" ")])]):e._e(),e.jsonIsValid("script_configuration")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])],1):e._e(),e.isDatasource?r("div",[r("div",{staticClass:"form-group"},[r("form-multi-select",{ref:"endpoint",attrs:{name:e.$t("Resource"),label:e.$t("Resource"),options:e.endpoints,placeholder:e.$t("Select a resource"),multiple:!1,"show-labels":!1,searchable:!0,"internal-search":!1,helper:e.$t("The Data Connector resource to access when this Watcher runs"),"data-cy":"watchers-watcher-endpoint"},on:{"search-change":e.loadEndpoints,open:function(i){return e.loadEndpoints()}},model:{value:e.endpoint,callback:function(i){e.endpoint=i},expression:"endpoint"}}),e.endpointError?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.endpointError))])]):e._e(),e.dataSourceConfigWarning.length>0?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.dataSourceConfigWarning))])]):e._e(),r("a",{directives:[{name:"show",rawName:"v-show",value:e.dataSourceLink.length>0,expression:"dataSourceLink.length > 0"}],staticClass:"link-primary",attrs:{href:e.dataSourceLink,target:"_blank"}},[e._v(" "+e._s(e.$t("Open Data Connector"))+" "),r("i",{staticClass:"ml-1 fas fa-external-link-alt"})])],1),e.hasInputData?e._e():r("outbound-config",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}),e.hasInputData?r("div",{staticClass:"form-group"},[e._m(4),r("div",{staticClass:"row pl-3 mt-1"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the Data Connector (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])]):e._e()],1):e._e()],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherOutputButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherOutput","data-cy":"watchers-accordion-output"}},[e._m(5),e._m(6)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherOutput","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[e.hasInputData||e.isScript?r("form-input",{ref:"propOutputVariableName",attrs:{label:e.outputVarLabel,name:e.$t("Output Variable"),helper:e.$t("The variable that will store the output of the Watcher"),validation:e.ruleWatcherOutputVariable,"data-cy":"watchers-watcher-output_variable",required:e.ruleWatcherOutputVariable=="required","aria-required":e.ruleWatcherOutputVariable=="required"},model:{value:e.config.output_variable,callback:function(i){e.$set(e.config,"output_variable",i)},expression:"config.output_variable"}}):e._e(),e.isDatasource?r("data-mapping",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}):e._e()],1)])])]),r("div",{staticClass:"d-flex justify-content-end mt-3"},[r("button",{staticClass:"btn btn-outline-secondary text-uppercase",attrs:{"data-cy":"watchers-button-cancel"},on:{click:function(i){return i.stopPropagation(),e.displayTableList.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"watchers-button-save"},on:{click:e.validateDataAndSave}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])},s_=[function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-cog"}),t._v(" Configuration")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-upload"}),t._v(" Source")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row pl-3"},[e("span",{staticClass:"text-danger"},[t._v(" * Deprecation Warning: Recreate the watcher to use the new format. Version 4.2 will not support Input Data as a JSON object. ")])])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-download"}),t._v(" Output")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])}],o_=oe(a_,n_,s_,!1,null,"74e7876e",null,null);const SP=o_.exports,Ire="",l_={components:{BasicSearch:lP,FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,Sortable:lp},props:{value:{type:Array,default(){return[]}}},data(){return{filter:"",css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Name"),key:"name"},{label:this.$t("Watching Variable"),key:"watching"},{label:this.$t("Output Variable"),key:"output_variable"},{label:this.$t("Source"),key:"script.title"}],searchProperties:["name","output_variable","watching","script.title"]}},methods:{displayFormProperty(){this.$emit("display-form")},editProperty(t){this.$emit("edit-form",t)},deleteProperty(t){this.$emit("delete-form",t)},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":uP,"../assets/icons/ErrorMessage.svg":cP,"../assets/icons/Unbypass.svg":dP,"../assets/icons/angle-double-right-solid.svg":fP,"../assets/icons/calendar-regular.svg":pP,"../assets/icons/caret-square-down-solid.svg":hP,"../assets/icons/check-square-solid.svg":mP,"../assets/icons/columns-solid.svg":vP,"../assets/icons/font-solid.svg":gP,"../assets/icons/list-ul-solid.svg":bP,"../assets/icons/paragraph-solid.svg":yP,"../assets/icons/share-square-solid.svg":xP,"../assets/icons/square-regular.svg":wP,"../assets/icons/th-list-solid.svg":PP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var u_=function(){var e=this,r=e._self._c;return r("Sortable",{attrs:{fields:e.fields,items:e.value,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"watchers-table"},btnNew:{"data-cy":"watchers-add-watcher"},btnEdit:{"data-cy":"watchers-table-edit"},btnDelete:{"data-cy":"watchers-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty,ordered:function(i){return e.$emit("ordered",i)}},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Watcher"):e.$t("Bypass Watcher"),"data-test":"watchers-bypass"},on:{click:function(a){return a.preventDefault(),e.$emit("toggle-bypass",i.uid)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}])})},c_=[],d_=oe(l_,u_,c_,!1,null,"cfbb5df9",null,null);const kP=d_.exports,Lre="",TP=typeof window>"u"?global:window,f_={components:{FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,MonacoEditor:Si,WatchersList:kP,WatchersForm:SP},props:{value:{type:Array,required:!0}},data(){return{enableList:!0,current:[],add:{uid:"",name:"",variable:"",script_id:"",script_key:"",input_data:"",script_configuration:"",synchronous:!1,byPass:!1}}},computed:{modalSize(){return"xl"}},watch:{value:{handler(t){this.current=this.getValuesWithOutputVarsNames(t)}}},methods:{getValuesWithOutputVarsNames(t){return t.map(r=>{var a,n;const i={...r};if(Object.hasOwn(i,"byPass")||(i.byPass=!1),((n=(a=i==null?void 0:i.script)==null?void 0:a.id)==null?void 0:n.substr(0,11))==="data_source"){const s=JSON.parse(i.script_configuration),o=s!=null&&s.dataMapping?s.dataMapping.map(l=>l.key).join(", "):"",u=50;i.output_variable=o.length>u?`${o.substr(0,u)}...`:o}return i})},toggleBypass(t){this.current=this.current.map(e=>e.uid===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},show(){this.$refs.modal.show()},displayList(){this.add={},this.enableList=!0},displayForm(){this.add={},this.enableList=!1},save(){let t=this.$t("Watcher Saved"),e=this.current.findIndex(r=>r.uid===this.add.uid);e===-1?this.current.push(this.add):(t=this.$t("Watcher Updated"),this.current[e]=this.add),this.showAlert(t),this.$emit("input",this.current),this.displayList()},edit(t){this.displayForm(),this.$set(this,"add",G.cloneDeep(t))},confirmRemoval(t){TP.ProcessMaker.confirmModal(this.$t("Caution!"),this.$t("Are you sure you want to delete the Watcher?"),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.uid!==t.uid),this.$emit("input",this.current),this.showAlert(this.$t("Watcher deleted")),this.displayList()},showAlert(t){TP.ProcessMaker.alert(t,"success")}}};var p_=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:e.modalSize,id:"watchers-popup","hide-footer":"","header-close-content":"&times;","no-close-on-backdrop":"","data-cy":"watchers-modal"},on:{hidden:e.displayList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[e._v(" "+e._s(e.$t("Watchers"))+" "),r("small",{staticClass:"d-block my-2 modal-subtitle"},[e._v(" "+e._s(e.$t("Manage your active watchers for this screen"))+" ")])]},proxy:!0}])},[e.enableList?[r("watchers-list",{on:{"display-form":e.displayForm,"edit-form":e.edit,"delete-form":e.confirmRemoval,"toggle-bypass":e.toggleBypass,ordered:function(i){return e.$emit("input",i)}},model:{value:e.current,callback:function(i){e.current=i},expression:"current"}}),r("div",{staticClass:"d-flex justify-content-end mt-3 mr-1"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("required"),r("watchers-form",{attrs:{refs:"form",config:e.add},on:{"display-list":e.displayList,"save-form":e.save}})]],2)},h_=[],m_=oe(f_,p_,h_,!1,null,"d5f54c66",null,null);const v_=m_.exports,Fre="",g_={...Cs,FormMultiColumn:bu};function b_(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const y_={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",Zu),t.component("FormImage",Kn),t.component("FormAvatar",yn),t.component("FormLoop",ws),t.component("FormMultiColumn",bu),t.component("FormNestedScreen",Ps),t.component("FormRecordList",vu),t.component("Loop",iP),t.component("MultiColumn",aP),t.component("NewFormMultiColumn",Kf),t.component("ScreenRenderer",Pw),t.component("Task",rP),t.component("VueFormBuilder",Gw),t.component("VueFormRenderer",Ua),t.component("DefaultLoadingSpinner",nP),t.use(ee),t.component("FormButton",qi),t.component("FileUpload",bn),t.component("FileDownload",eo),t.component("FormAnalyticsChart",ks),t.component("FormMaskedInput",Wi),t.use(Dl),t.use(Et),t.component("FormListTable",Ss),t.component("LinkButton",Ts);const e=new Et.Store({modules:{globalErrorsModule:oP,undoRedoModule:Pu}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return b_(this).getDataReference(r,i)}}})}};function x_(t,e){t.defaults.adapter=Ug(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new kl({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Z.AddLoopRow=Zu,Z.AnalyticsSelector=Rw,Z.BasicSearch=lP,Z.CollectionSelectList=tp,Z.ColorSelect=Cw,Z.ColumnSetup=Mw,Z.ComputedProperties=KK,Z.ContainerColumns=Dw,Z.Currencies=sG,Z.CurrentPageProperty=sc,Z.CustomCSS=r_,Z.DataFormatProperty=tP,Z.DataMapping=rp,Z.DataReference=fh,Z.DataTypeBooleanProperty=pK,Z.DataTypeDateTimeProperty=eP,Z.DataTypeProperty=$w,Z.DataTypeWithoutDateProperty=fK,Z.DefaultLoadingSpinner=nP,Z.DefaultValueEditor=ip,Z.DeviceDetector=mh,Z.DeviceVisibility=id,Z.EditOption=Aw,Z.FileDownload=eo,Z.FileUpload=bn,Z.FormAnalyticsChart=ks,Z.FormAvatar=yn,Z.FormBuilderControls=hK,Z.FormButton=qi,Z.FormImage=Kn,Z.FormInputMasked=Wi,Z.FormListTable=Ss,Z.FormLoop=ws,Z.FormMaskedInput=Wi,Z.FormMultiselect=ap,Z.FormNestedScreen=Ps,Z.FormRecordList=vu,Z.FormRecordListStatic=Sw,Z.FormRequests=ep,Z.FormTasks=$f,Z.FormText=gu,Z.HasColorProperty=vn,Z.ImageUpload=zw,Z.ImageVariable=Ow,Z.InputVariable=np,Z.Json2Vue=ob,Z.LabelSubmitButton=Hw,Z.LabelSubmitButtonProperty=og,Z.LinkButton=Ts,Z.LoadingSubmitButton=Bw,Z.LoadingSubmitButtonProperty=sg,Z.Loop=iP,Z.LoopInspector=Ew,Z.MultiColumn=aP,Z.MultipleUploadsCheckbox=Jw,Z.MustacheHelper=Ga,Z.NewFormMultiColumn=Kf,Z.OptionsList=jw,Z.OutboundConfig=sp,Z.PageSelect=Nw,Z.RequiredCheckbox=Xw,Z.ScreenBase=nd,Z.ScreenRendererError=Yf,Z.ScreenSelector=Iw,Z.SelectDataTypeMask=op,Z.Task=rP,Z.Tooltip=rd,Z.ValidationMsg=ol,Z.ValidationSelect=Fw,Z.VariableNameGenerator=Vw,Z.VisibilityRule=lg,Z.VueFormBuilder=Gw,Z.VueFormRenderer=Ua,Z.WatchersForm=SP,Z.WatchersList=kP,Z.WatchersPopup=v_,Z.WatchersSynchronous=ww,Z.accordions=Ww,Z.bgcolorProperty=li,Z.buttonLabelProperty=rg,Z.buttonTypeEvent=ag,Z.buttonVariantStyleProperty=sl,Z.canOpenJsonFile=$S,Z.colorProperty=ui,Z.computedFields=uh,Z.dataSourceValues=ei,Z.dataSources=Ms,Z.datatable=oc,Z.default=y_,Z.defaultValueProperty=Hn,Z.defaultValues=Y0,Z.deviceVisibilityProperty=Q5,Z.disabledProperty=ad,Z.focusErrors=lc,Z.formTypes=Ds,Z.formWatchers=dA,Z.getValidPath=Nc,Z.globalErrorsModule=oP,Z.globalProperties=QY,Z.helperTextProperty=xa,Z.initializeScreenCache=x_,Z.inspector=qw,Z.javascriptReservedKeywords=al,Z.keyNameProperty=Qt,Z.labelProperty=Wr,Z.multiselectApi=lb,Z.mustacheEvaluation=Ed,Z.placeholderProperty=Bn,Z.readonlyProperty=nl,Z.renderer=g_,Z.shouldElementBeVisible=ub,Z.testing=db,Z.toggleStyleProperty=ig,Z.tooltipProperty=ng,Z.validationRulesProperty=Hi,Z.validators=ll,Z.watchers=ug,Object.defineProperties(Z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
381
+ }`,modifiers:{hover:!0,right:!0}}],key:o,staticClass:"gray-text",attrs:{boundary:"viewport","data-cy":`controls-${s.component}`}},[s.config&&s.config.icon?r("i",{class:s.config.icon}):e._e(),r("span",{staticClass:"svg-icon",staticStyle:{width:"12px",height:"12px"},domProps:{innerHTML:e._s(s.config.svg)}}),e._v(" "+e._s(e.$t(s.label))+" ")])}),1):e._e()],1)],1)]})],2)],1)],1),r("b-col",{ref:"screen-container",staticClass:"overflow-auto mh-100 p-0 d-flex flex-column position-relative",attrs:{id:"screen-container"}},[r("tabs-bar",{ref:"tabsBar",attrs:{pages:e.config,"is-multi-page":e.showToolbar},on:{"tab-opened":function(i){e.currentPage=i}},scopedSlots:e._u([{key:"tabs-start",fn:function(){return[e.showToolbar?r("pages-dropdown",{attrs:{data:e.sortedPages},on:{addPage:function(i){return e.$bvModal.show("addPageModal")},clickPage:e.onClick,seeAllPages:function(i){return e.$bvModal.show("openSortable")}}}):e._e()]},proxy:!0},{key:"default",fn:function({currentPage:i}){return[e.isCurrentPageEmpty(i)?r("div",{staticClass:"d-flex justify-content-center align-items-center drag-placeholder text-center position-absolute rounded mt-4 flex-column",attrs:{"data-cy":"screen-drop-zone"}},[r("svg",{attrs:{width:"81",height:"107",viewBox:"0 0 81 107",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M47.125 28.6562V0.5H5.71875C2.96523 0.5 0.75 2.71523 0.75 5.46875V101.531C0.75 104.285 2.96523 106.5 5.71875 106.5H75.2812C78.0348 106.5 80.25 104.285 80.25 101.531V33.625H52.0938C49.3609 33.625 47.125 31.3891 47.125 28.6562ZM60.375 77.5156C60.375 78.882 59.257 80 57.8906 80H23.1094C21.743 80 20.625 78.882 20.625 77.5156V75.8594C20.625 74.493 21.743 73.375 23.1094 73.375H57.8906C59.257 73.375 60.375 74.493 60.375 75.8594V77.5156ZM60.375 64.2656C60.375 65.632 59.257 66.75 57.8906 66.75H23.1094C21.743 66.75 20.625 65.632 20.625 64.2656V62.6094C20.625 61.243 21.743 60.125 23.1094 60.125H57.8906C59.257 60.125 60.375 61.243 60.375 62.6094V64.2656ZM60.375 49.3594V51.0156C60.375 52.382 59.257 53.5 57.8906 53.5H23.1094C21.743 53.5 20.625 52.382 20.625 51.0156V49.3594C20.625 47.993 21.743 46.875 23.1094 46.875H57.8906C59.257 46.875 60.375 47.993 60.375 49.3594ZM80.25 25.7371V27H53.75V0.5H55.0129C56.3379 0.5 57.6008 1.01758 58.5324 1.94922L78.8008 22.2383C79.7324 23.1699 80.25 24.4328 80.25 25.7371Z",fill:"#699CFF"}})]),r("h3",[e._v(e._s(e.$t("Place your controls here.")))]),r("p",[e._v(" "+e._s(e.$t("To begin creating a screen, drag and drop items from the Controls Menu on the left."))+" ")])]):e._e(),e.renderControls?r("draggable",e._b({key:e.editorContentKey,staticClass:"h-100",attrs:{"data-cy":"editor-content","ghost-class":"form-control-ghost",value:e.config[i].items},on:{input:e.updateConfig}},"draggable",{group:{name:"controls"},swapThreshold:.5},!1),e._l(e.config[i].items,function(a,n){return r("div",{key:n,staticClass:"control-item mt-4 mb-4",class:{selected:e.selected===a,hasError:e.hasError(a)},attrs:{selector:a.config.customCssSelector},on:{click:function(s){return e.inspect(a)}}},[a.container?r("div",{staticClass:"card container-lement",class:{"ai-section-card":e.isAiSection(a)},attrs:{"data-cy":"screen-element-container"},on:{click:function(s){return e.inspect(a)}}},[e.selected===a?r("div",{staticClass:"card-header form-element-header d-flex align-items-center",class:{pulse:e.isAiSection(a)&&e.aiPreview(a)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||a.label||e.$t("Field Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(a)&&e.aiPreview(a)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{"data-test":"apply-ai-btn",title:e.$t("Apply Changes")},on:{click:function(s){return e.applyAiChanges(a)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(a)&&e.aiPreview(a)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{"data-test":"copy-control-btn",title:e.$t("Copy Control")},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"data-test":"delete-control-btn",title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(a["editor-component"],{tag:"component",staticClass:"card-body",class:e.elementCssClass(a),attrs:{"validation-errors":e.validationErrors,selected:e.selected,config:a.config,"ai-element":a},on:{inspect:e.inspect,"update-state":e.updateState},model:{value:a.items,callback:function(s){e.$set(a,"items",s)},expression:"element.items"}})],1):r("div",{staticClass:"card",attrs:{"data-cy":"screen-element-container"}},[e.selected===a?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(a["editor-component"],e._b({tag:"component",staticClass:"card-body m-0 pb-4 pt-4",class:[e.elementCssClass(a),{"prevent-interaction":!a.config.interactive}],attrs:{tabindex:a.config.interactive?0:-1},on:{input:function(s){a.config.interactive&&(a.config.content=s)}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}}},"component",a.config,!1))],1)])}),0):e._e(),e.isCurrentPageEmpty(i)?e._e():r("div",{attrs:{"data-cy":"screen-drop-zone"}},[e._v("   ")])]}}])})],1),e.renderControls?r("b-col",{staticClass:"overflow-hidden h-100 p-0 inspector-column"},[r("b-card",{staticClass:"p-0 h-100 border-top-0 border-bottom-0 border-right-0 rounded-0",attrs:{"no-body":""}},[r("b-card-body",{staticClass:"p-0 h-100 overflow-auto"},[e._l(e.accordions,function(i){return[e.getInspectorFields(i)&&e.getInspectorFields(i).length>0?r("b-button",{key:`${e.accordionName(i)}-button`,staticClass:"text-left card-header d-flex align-items-center w-100 outline-0 text-capitalize shadow-none",attrs:{variant:"outline","data-cy":`accordion-${e.accordionName(i).replace(" ","")}`,"accordion-name":`accordion-${e.accordionName(i).replace(" ","")}`,"is-open":i.open?"1":"0"},on:{click:function(a){return e.toggleAccordion(i)}}},[r("i",{staticClass:"fas fa-cog mr-2"}),e._v(" "+e._s(e.$t(e.accordionName(i)))+" "),r("i",{staticClass:"fas fa-angle-down ml-auto",class:{"fas fa-angle-right":!i.open}})]):e._e(),r("b-collapse",{key:`${e.accordionName(i)}-collapse`,attrs:{id:e.accordionName(i)},model:{value:i.open,callback:function(a){e.$set(i,"open",a)},expression:"accordion.open"}},e._l(e.getInspectorFields(i),function(a,n){return r(a.type,e._b({key:n,tag:"component",staticClass:"border-bottom m-0 p-4",attrs:{"data-cy":"inspector-"+(a.field||a.config.name),"field-name":a.field,"field-accordion":`accordion-${e.accordionName(i).replace(" ","")}`,builder:e.builder,"form-config":e.config,"screen-type":e.screenType,"current-page":e.currentPage,"selected-control":e.selected},on:{"update-state":e.updateState,setName:function(s){e.inspection.config.name=s}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}},model:{value:e.inspection.config[a.field],callback:function(s){e.$set(e.inspection.config,a.field,s)},expression:"inspection.config[item.field]"}},"component",a.config,!1))}),1)]})],2)],1)],1):e._e(),r("b-modal",{ref:"openSortable",attrs:{id:"openSortable","header-close-content":"&times;",role:"dialog",size:"lg",title:e.$t("Edit Pages"),"ok-title":e.$t("DONE"),"ok-only":"","ok-variant":"secondary","header-class":"modal-header-custom"},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Edit Pages")))]),r("span",{staticClass:"modal-subtitle"},[e._v(e._s(e.$t("Change pages order and name")))])]},proxy:!0},{key:"modal-header-close",fn:function({close:i}){return[r("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"}},[e._v("×")])]}}])},[r("Sortable",{attrs:{fields:e.fields,items:e.config,"search-properties":e.searchProperties},on:{"item-edit":()=>{},"item-delete":e.confirmDelete,"add-page":function(i){return e.$bvModal.show("addPageModal")}}})],1),r("b-modal",{ref:"addPageModal",attrs:{id:"addPageModal","header-class":"pb-2",size:"lg","ok-title":e.$t("SAVE"),"cancel-title":e.$t("CANCEL"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"&times;","data-cy":"add-page-modal","ok-disabled":!e.addPageName||!!e.checkPageName(e.addPageName)},on:{ok:e.addPage,show:function(i){e.addPageName="",e.showAddPageValidations=!1}},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Create New Page")))]),r("small",{staticClass:"modal-subtitle mb-n2"},[e._v(e._s(e.$t("Create a new page in your screen")))])]},proxy:!0}])},[r("form-input",{ref:"addPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The name of the new page to add"),error:e.checkPageName(e.addPageName),"data-cy":"add-page-name","aria-required":"true"},model:{value:e.addPageName,callback:function(i){e.addPageName=i},expression:"addPageName"}})],1),r("b-modal",{ref:"editPageModal",attrs:{title:e.$t("Edit Page Title"),"ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"&times;"},on:{ok:e.editPage}},[r("required"),r("form-input",{ref:"editPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The new name of the page"),validation:"required",error:e.checkPageName(e.editPageName),required:"","aria-required":"true"},model:{value:e.editPageName,callback:function(i){e.editPageName=i},expression:"editPageName"}})],1),r("b-modal",{ref:"confirm",attrs:{title:e.$t("Caution!"),"ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"&times;"},on:{ok:e.deletePage,cancel:e.hideConfirmModal}},[r("p",[e._v(e._s(e.confirmMessage))]),r("div",{attrs:{slot:"modal-ok"},slot:"modal-ok"},[e._v(e._s(e.$t("Delete")))])])],1)},_Z=[],$Z=oe(ZZ,KZ,_Z,!1,null,"45b59613",null,null);const Gw=$Z.exports,eK=1,tK={name:"FormMultiColumn",mixins:[vn,ub,Nc],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:Di,FormInput:Wi,FormSelectList:ee.FormSelectList,FormTextArea:ee.FormTextArea,FormCheckbox:ee.FormCheckbox,FormDatePicker:ee.FormDatePicker,FormHtmlEditor:ee.FormHtmlEditor,FormHtmlViewer:ee.FormHtmlViewer,...Cs},data(){return{items:[]}},computed:{model(){return this.$parent.model}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},methods:{classColumn(t){let e=eK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),`col-sm-${e} ${this.columnVerticalAlign(t)}`},columnVerticalAlign(t){let e="";if(this.items.length>0&&this.items[t].length===1){let r=this.items[0].filter(n=>n.component==="FormText");if(r.length===0)return"";let i=r[0],a=" justify-content-"+(i.config.textAlign==="right"?"end":i.config.textAlign);switch(i.config.verticalAlign){case"top":e="d-flex align-items-start"+a;break;case"middle":e="d-flex align-items-center"+a;break;case"bottom":e="d-flex align-items-end"+a;break}}return e},inspect(t){this.$emit("inspect",t)},submit(){this.$emit("submit")},pageNavigate(t){this.$emit("pageNavigate",t)}}};var rK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{staticClass:"row"},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"column-draggable",class:e.classColumn(a)},[e._l(i.filter(e.shouldElementBeVisible),function(n,s){return[n.container?r(n.component,{key:s,ref:"container",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{transientData:e.transientData,config:n.config,name:n.config.name!==void 0?n.config.name:null,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}}):r("div",{key:s,staticClass:"w-100",attrs:{id:n.config.name?n.config.name:void 0,selector:n.config.customCssSelector}},[r(n.component,e._b({ref:"elements",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{validationData:e.transientData,disabled:n.config.interactive||n.config.disabled,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:e.model[e.getValidPath(n.config.name)],callback:function(o){e.$set(e.model,e.getValidPath(n.config.name),o)},expression:"model[getValidPath(element.config.name)]"}},"component",n.config,!1))],1)]})],2)}),0)])},iK=[],aK=oe(tK,rK,iK,!1,null,null,null,null);const bu=aK.exports,Qw={value:"string",content:"Text"},Yw={value:"int",content:"Integer"},nK={value:"currency",content:"Currency"},sK={value:"password",content:"Password"},oK={value:"percentage",content:"Percentage"},Zw={value:"float",content:"Decimal"},Kw={value:"datetime",content:"Datetime"},_w={value:"date",content:"Date"},lK={value:"boolean",content:"Boolean"},uK=[Qw,Yw,nK,oK,Zw,Kw,_w,sK],cK=[Qw,Yw,Zw];function yu(t){return{type:"FormMultiselect",field:"dataFormat",config:{label:"Data Type",name:"Data Type",helper:"The data type specifies what kind of data is stored in the variable.",validation:"required",options:t}}}function dK(){return{type:op,field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const $w=yu(uK),fK=yu(cK),pK=yu([lK]),eP=yu([_w,Kw]),tP=dK(),hK=[{editorComponent:ee.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:ee.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:1,group:"Content Fields",label:"Rich Text",component:"FormHtmlViewer","editor-component":"FormHtmlEditor","editor-control":"FormHtmlEditor",config:{icon:"fas fa-pencil-ruler",interactive:!0,content:"<p>Rich text editor</p>",renderVarHtml:null},inspector:[{type:"FormTextArea",field:"content",config:{rows:5,label:"Content",helper:"The HTML text to display",value:""}},{type:"FormCheckbox",field:"renderVarHtml",config:{label:"Render HTML from a Variable",helper:"",value:""}}]}},{builderComponent:ee.FormInput,builderBinding:"FormInput",rendererComponent:Wi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:1,group:"Input Fields",label:"Line Input",component:"FormInput","editor-component":"FormInput","editor-control":"FormInput",config:{icon:"far fa-square",label:"New Input",name:"",placeholder:"",validation:"",helper:null,type:"text",dataFormat:"string"},inspector:[Qt,Wr,$w,tP,Hi,Bn,xa,nl,ui,li,Hn]}},{editorComponent:ee.FormTextArea,editorBinding:"FormTextArea",rendererComponent:ee.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:4,group:"Input Fields",label:"Textarea",component:"FormTextArea","editor-component":"FormTextArea","editor-control":"FormTextArea","fa-icon":"fas fa-paragraph",config:{icon:"fas fa-paragraph",label:"New Textarea",placeholder:"",helper:null,rows:2,richtext:!1,currency:{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"}},inspector:[Qt,Wr,Bn,xa,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Hi,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},nl,ui,li,Hn]}},{editorComponent:ee.FormSelectList,editorBinding:"FormSelectList",rendererComponent:ee.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:2,group:"Input Fields",label:"Select List",component:"FormSelectList","editor-component":"FormSelectList","editor-control":"FormSelectList",config:{icon:"fas fa-angle-double-down",label:"New Select List",placeholder:"",validation:"",dataSourceUrl:"",dataSourceEndpoint:"",rootElement:"response",options:{showRenderAs:!0,dataSource:ei.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],key:"value",value:"content",valueTypeReturned:"single"},helper:null},inspector:[Qt,Wr,Bn,Hi,xa,{type:"OptionsList",field:"options",config:{}},ui,li,Hn,nl]}},{editorComponent:ee.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:ee.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:6,group:"Input Fields",label:"Checkbox",component:"FormCheckbox","editor-component":"FormCheckbox","editor-control":"FormCheckbox",config:{icon:"fas fa-check-square",label:"New Checkbox",helper:null,name:null,initiallyChecked:!1,validation:"",toggle:!1},inspector:[Qt,Wr,xa,Hi,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},ui,li,ig,ad]}},{editorComponent:ee.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:ee.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:5,group:"Input Fields",label:"Date Picker",component:"FormDatePicker","editor-component":"FormDatePicker","editor-control":"FormDatePicker",config:{icon:"far fa-calendar-alt",label:"New Date Picker",type:"datetime",name:"",placeholder:"",minDate:"",maxDate:""},inspector:[{type:"FormInput",field:"minDate",config:{name:"Minimum Date",label:"Minimum Date",validation:"date_or_mustache"}},{type:"FormInput",field:"maxDate",config:{name:"Maximum Date",label:"Maximum Date",validation:"after_min_date|date_or_mustache"}},Qt,Wr,eP,Hi,Bn,xa,ui,li,ad,Hn]}},{editorComponent:qi,editorBinding:"FormButton",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add special buttons that link between subpages within this Form",order:1,group:"Navigation",label:"Page Navigation",component:"FormButton","editor-component":"FormButton","editor-control":"PageNavigation",config:{icon:"far fa-compass",label:"Page Navigation",variant:"primary",event:"pageNavigate",eventData:null},inspector:[{type:"PageSelect",field:"eventData",config:{label:"Destination Screen",helper:"The destination page to navigate to"}},rg,sl]}},{editorComponent:bu,editorBinding:"FormMultiColumn",rendererComponent:bu,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:2,group:"Content Fields",label:"Multicolumn / Table",component:"FormMultiColumn","editor-component":"MultiColumn","editor-control":"MultiColumn",container:!0,items:[[],[]],config:{icon:"fas fa-table",options:[{value:"1",content:"6"},{value:"2",content:"6"}]},inspector:[{type:"ContainerColumns",field:"options",config:{label:"Column Width",validation:"columns-adds-to-12"}},ui,li]}},{editorComponent:ws,editorBinding:"FormLoop",rendererComponent:ws,rendererBinding:"FormLoop",control:{popoverContent:"Add a repeatable section of content",order:5,group:"Content Fields",label:"Loop",component:"FormLoop","editor-component":"Loop","editor-control":"Loop",container:!0,items:[],config:{name:"",icon:"fas fa-redo",settings:{type:"new",varname:"loop",times:"3",add:!1}},inspector:[{type:"LoopInspector",field:"settings",config:{}}]}},{editorComponent:gu,editorBinding:"FormText",rendererComponent:vu,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:4,group:"Content Fields",label:"Record List",component:"FormRecordList","editor-component":"FormText","editor-control":"FormRecordList",config:{name:"",icon:"fas fa-th-list",label:"New Record List",editable:!1,fields:{dataSource:ei.provideData,jsonData:""},form:""},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"}},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"}},ui,li]}},{editorComponent:Kn,editorBinding:"FormImage",rendererComponent:Kn,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:3,group:"Content Fields",label:"Image",component:"FormImage","editor-component":"FormImage","editor-control":"FormImage",config:{label:"Image",icon:"fas fa-image",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"name",config:{label:"Name",helper:"Image name"}},{type:"ImageUpload",field:"image",config:{label:"Upload",helper:"Upload image"}},{type:"ImageVariable",field:"imageName",config:{label:"Render from a variable name",helper:null}},{type:"FormInput",field:"height",config:{label:"Height",helper:"Image height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"image width",type:"number"}}]}},{editorComponent:yn,editorBinding:"FormAvatar",rendererComponent:yn,rendererBinding:"FormAvatar",control:{popoverContent:"User avatar",order:3,group:"Dashboards",label:"User Avatar",component:"FormAvatar","editor-component":"FormAvatar","editor-control":"FormAvatar",config:{label:"User Avatar",icon:"fas fa-user-circle",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"height",config:{label:"Height",helper:"Avatar height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"Avatar width",type:"number"}}]}},{editorComponent:qi,editorBinding:"FormSubmit",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:3,group:"Input Fields",label:"Submit Button",component:"FormButton","editor-component":"FormButton","editor-control":"FormSubmit",config:{icon:"fas fa-share-square",label:"New Submit",variant:"primary",event:"submit",loading:!1,loadingLabel:"Loading...",defaultSubmit:!0,name:null,fieldValue:null,tooltip:{}},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the button's text"}},{type:"FormInput",field:"name",config:{label:"Variable Name",name:"Variable Name",helper:"A variable name is a symbolic name to reference information.",validation:"regex:/^(?:[A-Za-z])(?:[0-9A-Z_.a-z])*(?<![.])$/|not_in:"+al}},ag,sg,og,ng,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},sl]}},{editorComponent:Ps,editorBinding:"FormNestedScreen",rendererComponent:Ps,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add and reuse another Form within this Form",order:6,group:"Content Fields",label:"Nested Screen",component:"FormNestedScreen","editor-component":"FormNestedScreen","editor-control":"FormNestedScreen",config:{label:"Nested Screen",icon:"fas fa-file-invoice",variant:"primary",name:"Nested Screen",value:null},inspector:[{type:"ScreenSelector",field:"screen",config:{label:"Screen",name:"SelectScreen","validate-nested":!1,helper:"Select a screen"}}]}},{rendererComponent:bn,rendererBinding:"FileUpload",builderComponent:bn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Collect files uploaded into the Form",order:1,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the field's name"}},{type:"MultipleUploadsCheckbox",field:"multipleUpload",config:{label:"Upload multiple files"}},{type:"FormInput",field:"accept",config:{label:"File Accepted",helper:"Common file types: application/msword, image/gif, image/jpeg, application/pdf, application/vnd.ms-powerpoint, application/vnd.ms-excel, text/plain"}},{type:"RequiredCheckbox",field:"validation",config:{label:"Required",helper:"Prevent form from being submitted unless a file is uploaded"}}]}},{rendererComponent:gu,rendererBinding:"FormText",builderComponent:eo,builderBinding:"FileDownload",control:{popoverContent:"Offer a File download",order:2,group:"Files",label:"File Download",component:"FileDownload","editor-component":"FormText","editor-control":"FileDownload",config:{label:"New File Download",icon:"fas fa-file-download"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The text to display"}},{type:"FormInput",field:"name",config:{label:"Name",helper:"The name of the Download"}}]}},{rendererComponent:ee.BFormComponent,rendererBinding:"BFormComponent",builderComponent:ee.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add one of several Bootstrap Vue components",order:1,group:"Advanced",label:"Bootstrap Component",component:"BFormComponent","editor-component":"BFormComponent","editor-control":"BFormComponent",config:{bootstrapComponent:"b-form-tags",bootstrapConfig:"{}",label:"New Bootstrap Component",icon:"fab fa-bootstrap"},inspector:[Qt,Wr,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-embed",content:"Embed"},{value:"b-img",content:"Image"},{value:"b-form-rating",content:"Form Rating"},{value:"b-form-spinbutton",content:"Form Spinbutton"},{value:"b-form-tags",content:"Form Tags"},{value:"b-form-timepicker",content:"Form Timepicker"},{value:"b-table",content:"Table"}]}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}},Hi]}},{rendererComponent:ee.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:ee.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component",order:2,group:"Advanced",label:"Bootstrap Wrapper",component:"BWrapperComponent","editor-component":"BWrapperComponent","editor-control":"BWrapperComponent",config:{bootstrapComponent:"b-modal",bootstrapConfig:"{}",label:"New Bootstrap Wrapper",icon:"fab fa-bootstrap",name:"",form:""},inspector:[Qt,Wr,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-alert",content:"Alert"},{value:"b-card",content:"Card"},{value:"b-collapse",content:"Collapse"},{value:"b-jumbotron",content:"Jumbotron"},{value:"b-modal",content:"Modal"}]}},{type:"PageSelect",field:"form",config:{label:"Page",helper:"The page to use inside the component"}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}}]}},{editorComponent:Ss,editorBinding:"FormListTable",rendererComponent:Ss,rendererBinding:"FormListTable",control:{popoverContent:"Create List Table",order:6.5,group:"Dashboards",label:"List Table",component:"FormListTable","editor-component":"FormListTable","editor-control":"FormListTable",config:{label:"List Table",icon:"fas fa-list",variant:"primary"},inspector:[{type:"FormMultiselect",field:"listOption",config:{icon:"fas fa-list",label:"List Table",options:[{value:"My Tasks",content:"My Tasks"},{value:"My Requests",content:"My Cases"},{value:"Start New Request",content:"Start New Case"}]}}]}},{editorComponent:ks,editorBinding:"FormAnalyticsChart",rendererComponent:ks,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:6,group:"Dashboards",label:"Analytics Chart",component:"FormAnalyticsChart","editor-component":"FormAnalyticsChart","editor-control":"FormAnalyticsChart",config:{label:"Analytics Chart",icon:"fas fa-chart-area",variant:"primary"},inspector:[{type:"AnalyticsSelector",field:"listChartOption",config:{label:"Chart"}}]}},{editorComponent:Ts,editorBinding:"LinkButton",rendererComponent:Ts,rendererBinding:"LinkButton",control:{popoverContent:"Add a URL where this link should redirect",group:"Content Fields",order:6,label:"Link URL",component:"LinkButton","editor-component":"LinkButton","editor-control":"LinkButton",config:{label:"New Link",icon:"fas fa-link",variant:"primary",event:"link"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the button's text"}},{type:"FormInput",field:"linkUrl",config:{label:"Link URL",helper:"Type here the URL link. Mustache syntax is supported."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KPHBhdGggZD0iTTE1NC4zMjIgMTYzLjMxN0MxNTUuMTc0IDE2Mi42OTEgMTU2LjQ2MyAxNjMuMDQyIDE1Ny4yNDMgMTY0LjExMkwxNzEuMTAzIDE4My4xMUMxNzEuOTMxIDE4NC4yNDUgMTcxLjg2NyAxODUuNzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",Cre="",vK={data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator."}}};var gK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("span",{staticClass:"simple-error-message-title"},[e._v(" "+e._s(e.$t(e.title))+" ")])]),r("p",[r("span",{staticClass:"simple-error-message-message"},[e._v(e._s(e.$t(e.message)))])])])},bK=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:mK}})])}],yK=oe(vK,gK,bK,!1,null,null,null,null);const xK=yK.exports,Mre="",wK={components:{simpleErrorMessage:xK,VueFormRenderer:Ua},props:{initialTaskId:{type:Number,default:null},initialScreenId:{type:Number,default:null},initialRequestId:{type:Number,default:null},initialProcessId:{type:Number,default:null},initialNodeId:{type:String,default:null},screenVersion:{type:Number,default:null},userId:{type:Number,default:null},csrfToken:{type:String,default:null},value:{type:Object,default:()=>{}},beforeLoadTask:{type:Function,default:()=>new Promise(t=>{t()})},initialLoopContext:{type:String,default:""},taskPreview:{type:Boolean,default:!1},loading:{type:Number,default:null},alwaysAllowEditing:{type:Boolean,default:!1},disableInterstitial:{type:Boolean,default:!1},waitLoadingListeners:{type:Boolean,default:!1}},data(){return{task:null,taskId:null,request:null,requestId:null,screen:null,screenId:null,renderComponent:"task-screen",processId:null,nodeId:null,disabled:!1,socketListeners:[],requestData:{},hasErrors:!1,refreshScreen:0,redirecting:null,loadingButton:!1,loadingTask:!1,loadingListeners:this.waitLoadingListeners,isSelfService:!1}},watch:{initialScreenId:{handler(){this.screenId=this.initialScreenId}},initialRequestId:{handler(){this.requestId=this.initialRequestId}},initialProcessId:{handler(){this.processId=this.initialProcessId}},initialNodeId:{handler(){this.nodeId=this.initialNodeId}},screenId:{handler(){this.screenId&&this.loadScreen(this.screenId)}},requestId:{handler(){this.requestId?(this.setMetaValue(),this.initSocketListeners()):this.unsubscribeSocketListeners()}},value:{handler(){this.requestData=this.value}},screen:{handler(){if(this.screen&&this.renderComponent!=="ConversationalForm")if(this.screen.type==="CONVERSATIONAL")this.renderComponent="ConversationalForm";else{const t=G.get(this.screen,"_interstitial",!1);let e=G.get(this,"task.component","task-screen");(e===null||t)&&(e="task-screen"),this.renderComponent=e}}}},computed:{shouldAddSubmitButton(){return this.task?this.task.bpmn_tag_name==="manualTask"||!this.task.screen&&this.task.element_type!=="startEvent":!1},showTaskIsCompleted(){return this.task&&this.task.advanceStatus==="completed"&&!this.screen},screenTypeClass(){return this.screen?this.screen.type.toLowerCase()+"-screen":void 0},parentRequest(){return G.get(this.task,"process_request.parent_request_id",null)}},methods:{disableForm(t){if(t instanceof Array)for(let e of t)e.component==="FormButton"&&e.config.event==="submit"?t.splice(t.indexOf(e),1):this.disableForm(e);return t.config!==void 0&&(t.config.disabled=!0),t.items!==void 0&&this.disableForm(t.items),t},showSimpleErrorMessage(){this.renderComponent="simpleErrorMessage"},loadScreen(t){let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data})},reload(){this.taskId?this.loadTask():this.loadNextAssignedTask()},loadTask(t=!1){if(!this.taskId)return;let e=`/${this.taskId}?include=data,user,draft,requestor,processRequest,component,screen,requestData,loopContext,bpmnTagName,interstitial,definition,nested,userRequestPermission,elementDestination`;return this.screenVersion&&(e+=`&screen_version=${this.screenVersion}`),window.ProcessMaker&&window.ProcessMaker.packages&&window.ProcessMaker.packages.includes("package-vocabularies")&&(window.ProcessMaker.VocabulariesSchemaUrl=`vocabularies/task_schema/${this.taskId}`),this.beforeLoadTask(this.taskId,this.nodeId).then(()=>{this.$dataProvider.getTasks(e).then(r=>{if(this.task=r.data,this.linkTask(t),this.checkTaskStatus(),window.PM4ConfigOverrides&&window.PM4ConfigOverrides.getScreenEndpoint&&window.PM4ConfigOverrides.getScreenEndpoint.includes("tasks/")){const i=window.PM4ConfigOverrides.getScreenEndpoint.split("/");i[1]=this.task.id,window.PM4ConfigOverrides.getScreenEndpoint=i.join("/")}}).catch(()=>{this.hasErrors=!0}).finally(()=>{this.loadingTask=!1})})},linkTask(t){this.nodeId=this.task.element_id,this.listenForParentChanges(),this.task.process_request.status==="COMPLETED"&&(this.taskPreview||(this.$emit("completed",this.task.process_request.id),t&&window.ProcessMaker.apiClient.get(`/requests/${this.requestId}/end-event-destination`).then(e=>{var r,i;if(!((i=(r=e.data)==null?void 0:r.data)!=null&&i.endEventDestination)){window.location.href=`/requests/${this.requestId}`;return}this.processCompletedRedirect(e.data.data,this.userId,this.requestId)}))),this.taskPreview&&this.task.status==="CLOSED"&&(this.task.interstitial_screen._interstitial=!1,this.alwaysAllowEditing||(this.task.screen.config=this.disableForm(this.task.screen.config)),this.screen=this.task.screen)},prepareTask(){(!this.loadingButton||this.task.status==="ACTIVE")&&(this.resetScreenState(),this.requestData=G.get(this.task,"request_data",{}),this.loopContext=G.get(this.task,"loop_context",""),this.task.draft&&(this.requestData=G.merge({},this.requestData,this.task.draft.data)),this.refreshScreen++),this.$emit("task-updated",this.task),this.task.process_request.status==="ERROR"?(this.hasErrors=!0,this.$emit("error",this.requestId)):this.hasErrors=!1},resetScreenState(){this.loadingButton=!1,this.disabled=!1,this.$refs.renderer&&this.$refs.renderer.$children[0]&&(this.$refs.renderer.$children[0].currentPage=0,this.$refs.renderer.restartValidation())},checkTaskStatus(){this.task.status=="COMPLETED"||this.task.status=="CLOSED"||this.task.status=="TRIGGERED"?this.closeTask():this.screen=this.task.screen,this.prepareTask()},setSelfService(){this.$nextTick(()=>{window.ProcessMaker.isSelfService?this.isSelfService=!0:this.isSelfService=!1})},closeTask(t=null){this.hasErrors&&this.emitError(),this.shouldLoadNextTask()?this.loadNextAssignedTask(t):this.task.allow_interstitial?this.showInterstitial(t):this.taskPreview||this.emitClosedEvent()},shouldLoadNextTask(){return this.task.process_request.status==="COMPLETED"||this.loadingButton},showInterstitial(t){this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen,this.loadNextAssignedTask(t)},emitError(){this.$emit("error",this.requestId)},async emitClosedEvent(){var t;this.$emit("closed",(t=this.task)==null?void 0:t.id,await this.getDestinationUrl())},async getDestinationUrl(){const{elementDestination:t,allow_interstitial:e}=this.task||{};if(!t)return null;if(t.type==="taskSource")try{const a={processRequestId:this.requestId,status:"ACTIVE",userId:this.userId},s=(await this.retryApiCall(()=>this.getTasks(a))).data.data[0];return e&&(s==null?void 0:s.user_id)===this.userId?`/tasks/${s.id}/edit`:this.getSessionRedirectUrl()}catch(a){return console.error("Error in getDestinationUrl:",a),null}const r=t.value;return r?(sessionStorage.setItem("sessionUrlActionBlocker",document.referrer),r):sessionStorage.getItem("elementDestinationURL")||null},getSessionRedirectUrl(){const t=sessionStorage.getItem("sessionUrlSelfService");return t?(sessionStorage.removeItem("sessionUrlSelfService"),t):document.referrer||"/tasks"},loadNextAssignedTask(t=null){if(t||(t=this.requestId),!this.userId)return;const e=window.Cypress?"":`&t=${Date.now()}`,r=`?user_id=${this.userId}&status=ACTIVE&process_request_id=${t}&include_sub_tasks=1${e}`;return this.$dataProvider.getTasks(r).then(i=>{if(i.data.data.length>0){let a=i.data.data[0];if(a.process_request_id!==this.requestId){if(this.redirecting===a.process_request_id)return;this.unsubscribeSocketListeners(),this.redirecting=a.process_request_id,this.$emit("redirect",a.id,!0);return}else this.emitIfTaskCompleted(t);this.taskId=a.id,this.nodeId=a.element_id,this.loadTask()}else this.parentRequest&&["COMPLETED","CLOSED"].includes(this.task.process_request.status)&&this.$emit("completed",this.getAllowedRequestId());this.disabled=!1})},emitIfTaskCompleted(t){this.task&&this.parentRequest&&t==this.task.process_request_id&&this.task.process_request.status==="COMPLETED"&&this.$emit("completed",this.parentRequest)},classHeaderCard(t){let e="bg-success";switch(t){case"completed":e="bg-secondary";break;case"overdue":e="bg-danger";break}return"card-header text-capitalize text-white "+e},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t=null,e=!1,r=null){var i,a;this.disabled||(this.disabled=!0,t&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,e,r),(i=this.task)!=null&&i.allow_interstitial&&!this.loadingButton&&!this.disableInterstitial&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen),((a=this.task)==null?void 0:a.bpmn_tag_name)==="manualTask"&&(this.checkTaskStatus(),this.reload()))},onUpdate(t){this.$emit("input",t),this.setSelfService()},activityAssigned(){},processCompleted(t=null){let e;this.parentRequest&&(e=this.getAllowedRequestId(),this.$emit("completed",e))},async retryApiCall(t,e=3,r=1e3){for(let i=0;i<e;i++)try{return await t()}catch(a){if(i===e-1)throw a;await new Promise(n=>{setTimeout(n,r)})}},getNextRequest(t,e){return window.ProcessMaker.apiClient.post(`/process_events/${t}?event=${e}`,{})},getTasks(t){const e={user_id:this.userId,process_request_id:t.processRequestId,page:t.page||1,per_page:t.perPage||1,status:t.status},r=new URLSearchParams(e).toString();return this.$dataProvider.getTasks(`?${r}`)},parseJsonSafely(t){try{return JSON.parse(t)}catch(e){return console.error("Invalid JSON string:",e),null}},async processCompletedRedirect(t,e,r){try{if(t.endEventDestination.type!=="anotherProcess"){t!=null&&t.endEventDestination.value?window.location.href=t==null?void 0:t.endEventDestination.value:window.location.href=`/requests/${this.requestId}`;return}const i=this.parseJsonSafely(t.endEventDestination.value),n={processRequestId:(await this.retryApiCall(()=>this.getNextRequest(i.processId,i.startEvent))).data.id,status:"ACTIVE",page:1,perPage:1},o=(await this.retryApiCall(()=>this.getTasks(n))).data.data[0];o&&o.user_id===e?this.redirectToTask(o.id):this.redirectToRequest(r)}catch(i){console.error("Error processing completed redirect:",i),this.$emit("completed",r)}},getAllowedRequestId(){const e=(this.task.user_request_permission||[]).find(i=>i.process_request_id===this.parentRequest);return e&&e.allowed?this.parentRequest:this.requestId},redirectToTask(t){this.$emit("redirect",t)},redirectToRequest(t){window.location.href=`/requests/${t}`},initSocketListeners(){this.addProcessUpdateListener(),this.addRedirectListener(),this.loadingListeners=!1,this.taskId||this.reload()},addProcessUpdateListener(){this.addSocketListener(`updated-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessUpdated",t=>this.handleProcessUpdate(t))},handleProcessUpdate(t){t.event==="ACTIVITY_EXCEPTION"&&(this.$emit("error",this.requestId),window.location.href=`/requests/${this.requestId}`)},addRedirectListener(){this.addSocketListener(`redirect-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".RedirectTo",t=>this.handleRedirect(t))},handleRedirect(t){switch(t.method){case"redirectToTask":this.handleRedirectToTask(t);break;case"processUpdated":this.handleProcessUpdated(t);break;case"processCompletedRedirect":this.processCompletedRedirect(t.params[0],this.userId,this.requestId);break;default:this.handleDefaultRedirect(t)}},async handleRedirectToTask(t){var e;if((e=t==null?void 0:t.params[0])!=null&&e.tokenId){if(this.loadingTask=!0,this.task&&!(this.task.allow_interstitial||this.isSameUser(this.task,t))){window.location.href=await this.getDestinationUrl();return}this.nodeId=t.params[0].nodeId,this.taskId=t.params[0].tokenId,this.reload()}},isSameUser(t,e){var a,n,s;const r=((a=t.user)==null?void 0:a.id)===e.params[0].userId,i=((n=t.elementDestination)==null?void 0:n.type)===null||((s=t.elementDestination)==null?void 0:s.type)==="taskSource";return r&&i},handleProcessUpdated(t){var r,i,a,n;const e=(r=this.task.elementDestination)==null?void 0:r.value;if(e&&e!=="taskSource"&&((i=t==null?void 0:t.params[0])==null?void 0:i.tokenId)===this.taskId&&((a=t==null?void 0:t.params[0])==null?void 0:a.requestStatus)==="ACTIVE"){window.location.href=e;return}["ACTIVITY_ACTIVATED","ACTIVITY_COMPLETED"].includes(t.event)&&t.elementType==="task"&&((n=this.task.elementDestination)!=null&&n.type||(this.taskId=t.taskId),this.reload()),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)},handleDefaultRedirect(t){console.warn("redirect",t),window.location.href=`/requests/${this.requestId}`},existsEventMessage(t,e){return sessionStorage.getItem(t)?!0:(sessionStorage.setItem(t,e),!1)},listenForParentChanges(){this.parentRequest&&this.addSocketListener(`parent-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,".ProcessUpdated",t=>{["ACTIVITY_ACTIVATED"].includes(t.event)&&this.closeTask(this.parentRequest),["ACTIVITY_COMPLETED"].includes(t.event)&&this.task.process_request.status==="COMPLETED"&&this.processCompleted(),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)})},addSocketListener(t,e,r,i){t in this.socketListeners||(this.socketListeners[t]={channel:e,event:r},window.Echo.private(e).listen(r,a=>{i(a)}))},unsubscribeSocketListeners(){Object.values(this.socketListeners).forEach(t=>{window.Echo.private(t.channel).stopListening(t.event)}),this.socketListeners={}},obtainPayload(t){return new Promise(e=>{window.ProcessMaker.apiClient.get(t).then(r=>{e(r.data)}).catch(()=>{})})},setMetaValue(){const t=document.head.querySelector('meta[name="request-id"]');t&&t.setAttribute("content",this.requestId)},hasUrlActionBlocker(){var e;const t=sessionStorage.getItem("sessionUrlActionBlocker");return t?(sessionStorage.removeItem("sessionUrlActionBlocker"),this.$emit("closed",(e=this.task)==null?void 0:e.id,t),!0):!1}},mounted(){this.screenId=this.initialScreenId,this.taskId=this.initialTaskId,this.requestId=this.initialRequestId,this.processId=this.initialProcessId,this.nodeId=this.initialNodeId,this.requestData=this.value,this.loopContext=this.initialLoopContext,this.loadTask(!0),this.setSelfService()},destroyed(){this.unsubscribeSocketListeners()}};var PK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tab-pane active show h-100",attrs:{id:"tab-form",role:"tabpanel","aria-labelledby":"tab-form"}},[e.screen?[r("b-overlay",{attrs:{show:e.disabled||e.isSelfService,id:"overlay-background",variant:e.isSelfService?"white":"transparent",blur:null,cardStyles:"pointer-events: none;pointer-events: none;inset: 1px",rounded:"sm"},scopedSlots:e._u([{key:"overlay",fn:function(){return[r("div",{staticClass:"text-center"},[e.isSelfService?r("p",[e._v("Please claim this task to continue.")]):e._e()])]},proxy:!0}],null,!1,2076353390)},[r("div",{staticClass:"card card-body border-top-0 h-100",class:e.screenTypeClass},[e.renderComponent==="task-screen"?r("div",[r("vue-form-renderer",{key:e.refreshScreen,ref:"renderer",class:{loading:e.loadingTask||e.loadingListeners},attrs:{config:e.screen.config,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,"loop-context":e.loopContext},on:{update:e.onUpdate,"after-submit":e.afterSubmit,submit:e.submit},model:{value:e.requestData,callback:function(i){e.requestData=i},expression:"requestData"}})],1):r("div",[r(e.renderComponent,{tag:"component",attrs:{"process-id":e.processId,"instance-id":e.requestId,"token-id":e.taskId,screen:e.screen.config,"csrf-token":e.csrfToken,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,data:e.requestData,type:e.screen.type},on:{"after-submit":e.afterSubmit,submit:e.submit}})],1)]),e.shouldAddSubmitButton?r("div",{staticClass:"card-footer"},[r("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.submit(null)}}},[e._v(" "+e._s(e.$t("Complete Task"))+" ")])]):e._e()])]:e._e(),e.showTaskIsCompleted?[r("div",{staticClass:"card card-body text-center"},[r("h1",[e._v(" "+e._s(e.$t("Task Completed"))+" "),r("i",{staticClass:"fas fa-clipboard-check"})])])]:e._e()],2)},SK=[],kK=oe(wK,PK,SK,!1,null,"46736acf",null,null);const rP=kK.exports,Are="",TK={name:"Loop",components:{draggable:Di,FormInput:ee.FormInput,FormSelectList:ee.FormSelectList,FormCheckbox:ee.FormCheckbox,FormTextArea:ee.FormTextArea,FormDatePicker:ee.FormDatePicker,FormHtmlEditor:ee.FormHtmlEditor,FormHtmlViewer:ee.FormHtmlViewer,...Cs},mixins:[vn],props:["value","name","config","selected","validationErrors"],data(){return{items:[],cancelledJobs:[]}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},methods:{hasError(t){return this.validationErrors?this.validationErrors.some(({item:e})=>e===t):!1},inspect(t){this.$emit("inspect",t)},deleteItem(t){this.items.splice(t,1),this.$emit("update-state")},duplicateItem(t){const e=G.cloneDeep(this.items[t]);this.items.push(e),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.component==="AiSection"&&e===r.config.aiConfig.nonce&&this.$set(r,"items",JSON.parse(JSON.stringify(t)))})},updateProgress(t,e){this.value.forEach(r=>{if(r.component==="AiSection"&&e===r.config.aiConfig.nonce){if(this.cancelledJobs.some(i=>i===e))return;this.$set(r.config.aiConfig,"progress",t)}})}}};var CK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"column-draggable",attrs:{selector:e.config.customCssSelector}},[r("draggable",{staticStyle:{"min-height":"80px"},attrs:{list:e.items,group:"controls"}},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"control-item",class:{selected:e.selected===i,hasError:e.hasError(i)},on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[i.container?r("div",{on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(i)&&e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(i)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(i)&&e.aiPreview(i)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(n){return e.applyAiChanges(i)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(i)&&e.aiPreview(i)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":i,config:i.config},on:{inspect:e.inspect,"update-state":function(n){return e.$emit("update-state")}},model:{value:i.items,callback:function(n){e.$set(i,"items",n)},expression:"element.items"}})],1)]):r("div",{attrs:{id:i.config.name?i.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(i),{"prevent-interaction":!i.config.interactive}],attrs:{tabindex:i.config.interactive?0:-1,config:i.config},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},MK=[],DK=oe(TK,CK,MK,!1,null,"06c4d69f",null,null);const iP=DK.exports,zre="",AK=1,zK={name:"MultiColumn",components:{draggable:Di,FormInput:ee.FormInput,FormSelectList:ee.FormSelectList,FormCheckbox:ee.FormCheckbox,FormTextArea:ee.FormTextArea,FormDatePicker:ee.FormDatePicker,FormHtmlEditor:ee.FormHtmlEditor,FormHtmlViewer:ee.FormHtmlViewer,...Cs},mixins:[vn],props:["value","name","config","selected","validationErrors"],data(){return{items:[],cancelledJobs:[]}},computed:{classContainer(){return this.items.length>0?"form-group":"column-draggable"}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)},"config.options":function(t){this.items=t.map((e,r)=>this.items[r]?this.items[r]:[])}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},methods:{hasError(t){return this.validationErrors.some(({item:e})=>e===t)},updateContainerConfig(t,e){this.items[e]=t,this.$emit("update-state")},classColumn(t){let e=AK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),`col-sm-${e}`},inspect(t){this.$emit("inspect",t)},deleteItem(t,e){this.items[t].splice(e,1),this.$emit("update-state")},duplicateItem(t,e){const r=G.cloneDeep(this.items[t][e]);this.items[t].push(r),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.forEach(i=>{i.component==="AiSection"&&e===i.config.aiConfig.nonce&&this.$set(i,"items",JSON.parse(JSON.stringify(t)))})})},updateProgress(t,e){this.value.forEach(r=>{r.forEach(i=>{if(i.component==="AiSection"&&e===i.config.aiConfig.nonce){if(this.cancelledJobs.some(a=>a===e))return;this.$set(i.config.aiConfig,"progress",t)}})})}}};var OK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"mb-1 mt-1 pb-0 pt-0",class:e.classContainer},[r("div",{attrs:{selector:e.config.customCssSelector}},[r("div",{staticClass:"row"},[e._l(e.items,function(i,a){return[r("draggable",{key:a,staticClass:"column-draggable",class:e.classColumn(a),attrs:{value:e.items[a],group:"controls"},on:{input:function(n){return e.updateContainerConfig(n,a)}},model:{value:e.items[a],callback:function(n){e.$set(e.items,a,n)},expression:"items[index]"}},e._l(i,function(n,s){return r("div",{key:s,staticClass:"control-item",class:{selected:e.selected===n,hasError:e.hasError(n)},on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[n.container?r("div",{on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(n)&&e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(n)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(n)&&e.aiPreview(n)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(o){return e.applyAiChanges(n)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(n)&&e.aiPreview(n)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{"aria-label":e.$t("Duplicate")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(n),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":n,config:n.config},on:{inspect:e.inspect,"update-state":function(o){return e.$emit("update-state")}},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}})],1)]):r("div",{attrs:{id:n.config.name?n.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(n),{"prevent-interaction":!n.config.interactive}],attrs:{tabindex:n.config.interactive?0:-1,config:n.config},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},EK=[],jK=oe(zK,OK,EK,!1,null,"eaf6f1c4",null,null);const aP=jK.exports,NK={name:"default-loading-spinner"};var IK=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},LK=[],FK=oe(NK,IK,LK,!1,null,null,null,null);const nP=FK.exports,BK=!0;function xu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=xu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=xu(i))}}),e}const sP=async(t,e)=>{if(t.length===0)return;const r=ph(t[0]),i=[];t.forEach(n=>{r!==n&&i.push(n.loadValidationRules())}),await Promise.all(i);try{await r.loadValidationRules()}catch(n){console.warn("There was a problem rendering the screen",n)}const a=r.$v;if(a){let n=0,s="";a.$invalid&&(n+=xu(a.vdata),n+=xu(a.schema),s=n===1?"There is a validation error in your form.":"There are {{items}} validation errors in your form.",s=r.$t(s,{items:n})),e("basic",{key:"valid",value:!a.$invalid}),e("basic",{key:"message",value:s})}},HK=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},RK=G.debounce(sP,500),wu=[],qK=(t,e)=>{wu.includes(t)||wu.push(t),RK(wu,e)},oP={namespaced:BK,state:()=>({locked:!1,valid:!0,message:"",mode:"",submitted:!1,showValidationOnLoad:!1,disableSubmit:!1}),getters:{isValidScreen(t){return t.valid},getErrorMessage(t){return t.message},getMode(t){return t.mode},showValidationErrors(t){return t.showValidationOnLoad||t.submitted}},mutations:{basic(t,e){t[e.key]=e.value},setMode(t,e){t.mode=e},disableSubmit(t,e){t.disableSubmit=e.value,t.message=e.message}},actions:{restartValidation(){wu.length=0},validate({commit:t},e){qK(e,t)},async validateNow({commit:t},e){await sP([e],t)},close({commit:t}){t("basic",{key:"valid",value:!0})},hasSubmitted({commit:t},e){t("basic",{key:"submitted",value:e})},showValidationOnLoad({commit:t},e){t("basic",{key:"showValidationOnLoad",value:e})},async disableSubmitOnPhotoVideoUpload({commit:t},e){await HK(t,e)}}},Pu={namespaced:!0,state(){return{stack:[],position:null}},getters:{canUndo(t){return t.position>0},canRedo(t){return t.position<t.stack.length-1},currentState(t,e){const r=t.stack[t.position];return e.nextState&&e.nextState.deletedPage&&(r.currentPage=e.nextState.currentPage),r},nextState(t,e){return e.canRedo?t.stack[t.position+1]:!1}},mutations:{setPosition(t,e){t.position=e},setState(t,e){t.stack.push(e)}},methods:{emitChanges(){window.ProcessMaker.EventBus.$emit("screen-change")}},actions:{pushState({state:t,getters:e,commit:r},i){i.config!==e.currentState&&(r("setState",i),r("setPosition",t.stack.length-1),Pu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),Pu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),Pu.methods.emitChanges())}}},Ore="",WK={props:{placeholder:{type:String},value:{type:String}},data(){return{query:""}},watch:{query(t){this.$emit("input",t)}},methods:{runSearch(t){this.$emit("submit",this.query)}},mounted(){this.query=this.value}};var VK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"basic-search"},[r("div",{staticClass:"d-flex"},[r("div",{staticClass:"flex-grow-1"},[r("div",{staticClass:"search-bar-basic d-flex w-100"},[r("div",{staticClass:"search-bar-inputs flex-grow w-100"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"search_input",staticClass:"search-bar-manual-input form-control",attrs:{type:"text",placeholder:e.placeholder?e.placeholder:e.$t("Search"),"data-cy":"watchers-table-search"},domProps:{value:e.query},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.runSearch.apply(null,arguments)},input:function(i){i.target.composing||(e.query=i.target.value)}}})]),r("div",{staticClass:"search-bar-actions d-flex flex-shrink"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"btn-search-run",attrs:{variant:"primary",title:e.$t("Search")},on:{click:e.runSearch}},[r("i",{staticClass:"fas fa-search",attrs:{"data-cy":"watchers-table-search-button"}})])],1)])]),r("div",{staticClass:"search-bar-buttons"},[e._t("buttons")],2)])])},XK=[],JK=oe(WK,VK,XK,!1,null,"d660c896",null,null);const lP=JK.exports,uP="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjI2MzIgNy4xMDUyOEgxNk0xNiA3LjEwNTI4TDE0LjAyNjMgOS4wNzg5Nk0xNiA3LjEwNTI4TDE1LjAxMzIgNi4xMTg0M0wxNC4wMjYzIDUuMTMxNTkiIHN0cm9rZT0iIzZBNzg4OCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cmVjdCB4PSIzLjQ3OTEiIHk9IjAuOSIgd2lkdGg9IjcuNjczNjgiIGhlaWdodD0iMTIuNDEwNSIgcng9IjEuMSIgc3Ryb2tlPSIjNkE3ODg4IiBzdHJva2Utd2lkdGg9IjEuOCIvPgo8cGF0aCBkPSJNMSA2LjIwNTIyQzAuNTAyOTQ0IDYuMjA1MjIgMC4xIDYuNjA4MTcgMC4xIDcuMTA1MjJDMC4xIDcuNjAyMjggMC41MDI5NDQgOC4wMDUyMiAxIDguMDA1MjJMMSA2LjIwNTIyWk0xIDguMDA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MjR6TTAgMzc2djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNGgxMDEuMzMzYzEzLjI1NSAwIDI0LTEwLjc0NSAyNC0yNHYtODBjMC0xMy4yNTUtMTAuNzQ1LTI0LTI0LTI0SDI0Yy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6TTEyNS4zMzMgMzJIMjRDMTAuNzQ1IDMyIDAgNDIuNzQ1IDAgNTZ2ODBjMCAxMy4yNTUgMTAuNzQ1IDI0IDI0IDI0aDEwMS4zMzNjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNHptODAgNDQ4SDQ4OGMxMy4yNTUgMCAyNC0xMC43NDUgMjQtMjR2LTgwYzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR2ODBjMCAxMy4yNTUgMTAuNzQ1IDI0IDI0IDI0em0tMjQtNDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6bTI0IDI2NEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0di04MGMwLTEzLjI1NS0xMC43NDUtMjQtMjQtMjRIMjA1LjMzM2MtMTMuMjU1IDAtMjQgMTAuNzQ1LTI0IDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNHoiPjwvcGF0aD48L3N2Zz4=",Ere="",UK=typeof window>"u"?global:window,GK={components:{FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,MonacoEditor:Si,Sortable:lp},mixins:[lc],props:["value"],data(){return{required:!0,numberItem:0,displayList:!0,ruleDescription:"",ruleFormula:"",rulePropName:"",editorInvalid:!1,existsProperty:!1,current:[],add:{id:0,name:"",property:"",type:"expression",formula:""},css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Name"),key:"property"},{label:this.$t("Type"),key:"type",cb:t=>{switch(t){case"expression":return"Formula";case"javascript":return"JavaScript";default:return t}}}],monacoOptions:{automaticLayout:!0,lineNumbers:"off",minimap:!1},monacoEditor:null,errors:{},searchProperties:["property","type"]}},computed:{javascriptTypeClass(){const{isJS:t}=this;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},expressionTypeClass(){const t=!this.isJS;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},isJS(){return this.add.type==="javascript"},modalSize(){return this.displayList?"lg":"xl"}},watch:{value(){this.value.forEach(t=>{this.numberItem++,t.id=this.numberItem,Object.hasOwn(t,"byPass")||(t.byPass=!1)}),this.current=this.value}},created(){Lt.register("exists-property",()=>{let t=!0;return this.current.forEach(e=>{e.property===this.add.property&&e.id!==this.add.id&&(t=!1)}),t},this.$t("Property already exists"))},methods:{switchExpressionType(t){this.add.type=t},show(){this.$refs.modal.show()},emptyForm(){this.add.id=0,this.add.name="",this.add.property="",this.add.type="expression",this.add.formula="",this.editorInvalid=!1,this.existsProperty=!1,this.ruleDescription="",this.ruleFormula="",this.rulePropName=""},displayTableList(){this.emptyForm(),this.displayList=!0},displayFormProperty(){this.emptyForm(),this.displayList=!1},validateData(){this.errors=[];const t={property:"required|exists-property",name:"required",formula:"required"},e={property:this.add.property,name:this.add.name,formula:this.add.formula},r=new Lt(e,t),i=r.passes();this.errors=Object.fromEntries(Object.keys(r.errors.all()).map(a=>[a,r.errors.first(a)])),i?this.saveProperty():this.focusFirstCalculatedPropertiesError()},toggleBypass(t){this.current=this.current.map(e=>e.id===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},saveProperty(){this.add.id===0?(this.numberItem++,this.current.push({id:this.numberItem,property:this.add.property,name:this.add.name,formula:this.add.formula,type:this.add.type,byPass:!1})):this.current.forEach(t=>{t.id===this.add.id&&(t.name=this.add.name,t.property=this.add.property,t.formula=this.add.formula,t.type=this.add.type)}),this.$emit("input",this.current),this.displayTableList()},editProperty(t){this.add.id=t.id,this.add.name=t.name,this.add.property=t.property,this.add.type=t.type?t.type:"expression",this.add.formula=t.formula,this.displayList=!1},deleteProperty(t){UK.ProcessMaker.confirmModal(this.$t("Are you sure you want to delete the calc ?"),this.$t("If you do, you won’t be able to recover the Calc configuration."),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.id!==t.id),this.$emit("input",this.current),this.displayTableList()},editorMounted(t){this.monacoEditor=t},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":uP,"../assets/icons/ErrorMessage.svg":cP,"../assets/icons/Unbypass.svg":dP,"../assets/icons/angle-double-right-solid.svg":fP,"../assets/icons/calendar-regular.svg":pP,"../assets/icons/caret-square-down-solid.svg":hP,"../assets/icons/check-square-solid.svg":mP,"../assets/icons/columns-solid.svg":vP,"../assets/icons/font-solid.svg":gP,"../assets/icons/list-ul-solid.svg":bP,"../assets/icons/paragraph-solid.svg":yP,"../assets/icons/share-square-solid.svg":xP,"../assets/icons/square-regular.svg":wP,"../assets/icons/th-list-solid.svg":PP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var QK=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{id:"computed-properties",size:e.modalSize,"content-class":"p-3","header-class":"m-0 p-0 mb-3","body-class":"m-0 p-0","title-class":"m-0","footer-class":"m-0 p-0 border-0","no-close-on-backdrop":"","header-close-content":"&times;","data-cy":"calcs-modal"},on:{hidden:e.displayTableList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Calculated Properties")))]),r("small",{directives:[{name:"show",rawName:"v-show",value:!e.displayList,expression:"!displayList"}],staticClass:"modal-subtitle my-2"},[e._v(" "+e._s(e.$t("Perform mathematical calculations offering quick, convenient, and accurate operations, enhancing user efficiency and usability."))+" ")])]},proxy:!0}])},[e.displayList?[r("Sortable",{staticClass:"mb-3",attrs:{fields:e.fields,items:e.current,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"calcs-table"},btnNew:{"data-cy":"calcs-add-property"},btnEdit:{"data-cy":"calcs-table-edit"},btnDelete:{"data-cy":"calcs-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Calc"):e.$t("Bypass Calc"),"data-test":"calcs-bypass"},on:{click:function(a){return e.toggleBypass(i.id)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}],null,!1,1100542621)}),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("b-row",[r("b-col",[r("form-input",{ref:"property",staticClass:"mb-3 calcs-input",attrs:{label:e.$t("Property Name")+" *",name:"property",error:e.errors.property,"data-cy":"calcs-property-name",required:"","aria-required":"true"},model:{value:e.add.property,callback:function(i){e.$set(e.add,"property",i)},expression:"add.property"}})],1),r("b-col",[r("form-text-area",{ref:"name",staticClass:"mb-3 calcs-input",attrs:{label:e.$t("Description")+" *",name:"name",error:e.errors.name,"data-cy":"calcs-property-description",required:"","aria-required":"true"},model:{value:e.add.name,callback:function(i){e.$set(e.add,"name",i)},expression:"add.name"}})],1)],1),r("div",{staticClass:"form-group mb-3",staticStyle:{position:"relative"}},[r("div",{staticClass:"d-flex justify-content-between mb-1"},[r("label",{staticClass:"m-0"},[e._v(e._s(e.$t("Formula")+" *"))]),r("div",[r("a",{staticClass:"btn btn-sm",class:e.expressionTypeClass,attrs:{"data-cy":"calcs-switch-formula"},on:{click:function(i){return e.switchExpressionType("expression")}}},[r("i",{staticClass:"fas fa-square-root-alt"})]),r("a",{staticClass:"btn btn-sm",class:e.javascriptTypeClass,attrs:{"data-cy":"calcs-switch-javascript"},on:{click:function(i){return e.switchExpressionType("javascript")}}},[r("i",{staticClass:"fab fa-js-square fa-lg"})])])]),r("form-text-area",{directives:[{name:"show",rawName:"v-show",value:!e.isJS,expression:"!isJS"}],ref:"formula",staticClass:"calcs-input-formula",attrs:{rows:"5",name:"formula",error:e.errors.formula,"data-cy":"calcs-property-formula",required:"","aria-required":"true"},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor-border",class:{"is-invalid":!!e.errors.formula}}),r("monaco-editor",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor",attrs:{options:e.monacoOptions,language:"javascript","data-cy":"calcs-property-javascript",required:"","aria-required":"true"},on:{editorDidMount:e.editorMounted},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),e.isJS&&e.errors.formula?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.errors.formula))])]):e._e()],1),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-outline-secondary text-uppercase",attrs:{"data-cy":"calcs-button-cancel"},on:{click:e.displayTableList}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-save"},on:{click:e.validateData}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])]],2)},YK=[],ZK=oe(GK,QK,YK,!1,null,"6d70559c",null,null);const KK=ZK.exports,jre="",_K={props:["value","cssErrors"],components:{MonacoEditor:Si},data(){return{saveValue:"",innerValue:"",monacoOptions:{language:"css",automaticLayout:!0,minimap:{enabled:!1}}}},watch:{innerValue(t){this.$emit("input",t)}},methods:{show(){this.innerValue=this.value,this.saveValue=this.value,this.$refs.modal.show()},close(){this.$refs.modal.hide()},hide(){this.innerValue=this.saveValue,this.$emit("input",this.innerValue)},save(){this.saveValue=this.innerValue,this.$refs.modal.hide()}}};var $K=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"custom-css",title:e.$t("Custom CSS"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","no-close-on-backdrop":"","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"header-close-content":"&times;"},on:{ok:e.save,cancel:e.close,hide:e.hide}},[r("p",[e._v(e._s(e.$t("You can set CSS Selector names in the inspector. Use them here with [selector='my-selector']")))]),r("div",{staticClass:"editor"},[r("monaco-editor",{staticClass:"monaco",attrs:{options:e.monacoOptions,"data-cy":"monaco-editor"},model:{value:e.innerValue,callback:function(i){e.innerValue=i},expression:"innerValue"}})],1),r("b-alert",{attrs:{show:e.cssErrors!="",variant:"danger"}},[r("pre",[e._v(e._s(e.cssErrors))])]),r("div",{attrs:{slot:"modal-cancel","data-cy":"cancel-button"},slot:"modal-cancel"},[e._v(e._s(e.$t("Cancel")))]),r("div",{attrs:{slot:"modal-ok","data-cy":"save-button"},slot:"modal-ok"},[e._v(e._s(e.$t("Save")))])],1)},e_=[],t_=oe(_K,$K,e_,!1,null,"3824b29b",null,null);const r_=t_.exports,Nre="",i_=typeof window>"u"?global:window,a_={name:"WatchersForm",components:{FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,FormMultiSelect:ee.FormMultiSelect,FormCheckbox:ee.FormCheckbox,MonacoEditor:Si,DataMapping:rp,OutboundConfig:sp,ScreenVariableSelector:kw},mixins:[lc],props:{config:{type:Object,default(){return{name:"",watching:"",script:"",script_id:"",script_key:"",input_data:"{}",script_configuration:"{}",output_variable:"",synchronous:!1,run_onload:!1,show_async_loading:!1}}}},data(){return{scriptConfig:"",endpoint:null,endpoints:[],ruleWatcherName:"",ruleWatcherVariable:"",ruleWatcherScript:"",ruleWatcherOutputVariable:"",required:!0,inputDataInvalid:!1,scriptConfigurationInvalid:!1,scripts:[],script:null,monacoOptions:{automaticLayout:!0,lineNumbers:"on",minimap:{enabled:!1}},endpointError:null,inputDataEditor:null,scriptConfigEditor:null}},computed:{dataSourceLink(){const t=this.selectedDataSourceId(),e=this.endpoint;return t&&e?`/designer/data-sources/${t}/resources/${e}`:""},dataSourceConfigWarning(){const t=this.selectedDataSourceId(),e=this.scripts.find(i=>i.type==="Data Connectors");if(typeof e>"u"||e===null)return"";const r=e.items.find(i=>i.id===`data_source-${t}`);return typeof r>"u"||e===null?"":r.validationStatus.length>0?r.validationStatus:""},isDatasource(){return this.config.script&&this.config.script.id.substr(0,11)==="data_source"},isScript(){return!this.config.script||this.config.script.id.substr(0,6)==="script"},hasInputData(){let t;try{t=JSON.parse(this.config.script_configuration)}catch{return!1}return typeof t.input_data>"u"||t.input_data==null?!1:Object.keys(t.input_data).length===0&&t.input_data.constructor===Object},outputVarLabel(){const t=this.ruleWatcherOutputVariable=="required"?" *":"";return this.$t("Output Variable")+t}},watch:{scriptConfig(t){try{const e=JSON.parse(this.config.script_configuration),r=JSON.parse(t);this.config.script_configuration=JSON.stringify({...e,...r},null," ")}catch{}},endpoint(t){this.setConfig("endpoint",t);const e=this.scriptConfig?JSON.parse(this.scriptConfig):{},r=e.dataMapping||[],i=this.scripts.find(a=>a.items&&a.items.length>0&&a.items[0].id&&a.items[0].id.substr(0,11)==="data_source");if(i&&r.length===0){const a=i.items.find(s=>`data_source-${e.dataSource}`===s.id),n=(a.endpoints&&a.endpoints[t]?a.endpoints[t].dataMapping:[])||[];e.dataMapping=[],n.forEach(s=>{e.dataMapping.push({key:s.key,value:s.value})}),this.scriptConfig=JSON.stringify(e)}},config:{deep:!0,immediate:!0,handler(t){t.input_data||(t.input_data="{}"),t.script_configuration?this.scriptConfig=this.config.script_configuration:t.script_configuration="{}",this.endpoint=this.getConfig().endpoint}},"config.script":{handler(t,e){if(!t)this.config.script_id="",this.config.script_key="",this.config.datasource_script_id="";else if(typeof t=="object"){const r=t.id.split("-"),i=e&&e.id&&e.id.split("-").length>0?e.id.split("-")[0]:"";this.config.script_id=r[1],this.config.script_key=t.key,i!==r[0]&&(this.config.script_configuration="{}"),r[0]==="data_source"&&this.setConfig("dataSource",this.config.script_id),this.config.datasource_script_id=t.dataSourceScriptId}return t}}},methods:{selectedDataSourceId(){let t=null;try{t=JSON.parse(this.scriptConfig).dataSource}catch{t=null}return t},setValidations(){this.ruleWatcherName="required",this.ruleWatcherVariable="required",this.ruleWatcherScript="required",this.hasInputData&&(this.ruleWatcherOutputVariable="required")},getConfig(){try{return JSON.parse(this.config.script_configuration)}catch{return{}}},setConfig(t,e){const r=this.getConfig();JSON.stringify(r[t])!==JSON.stringify(e)&&(r[t]=e,this.config.script_configuration=JSON.stringify(r),this.scriptConfig=this.config.script_configuration)},loadEndpoints(){const t=this.config.script.id.substr(0,11)==="data_source"?this.config.script.id.substr(12):null;this.endpoints.splice(0),t&&window.ProcessMaker&&window.ProcessMaker.apiClient&&window.ProcessMaker.apiClient.get(`/data_sources/${t}`).then(e=>{for(const r in e.data.endpoints)this.endpoints.push(r)})},loadSources(){this.scripts=[],this.$root.$children[0].watchers_config.api.scripts.forEach(t=>{t(this.scripts)})},displayTableList(){this.$emit("display-list")},jsonIsValid(t){try{JSON.parse(this.config[t])}catch{return!1}return!0},isFormValid(){this.isDatasource&&!this.endpoint?this.endpointError=this.$t("Endpoint is required"):this.endpointError=null;for(const t in this.$refs)if(this.$refs[t]&&this.$refs[t].name&&this.$refs[t].validator&&this.$refs[t].validator.errorCount!==0)return!1;return!(!this.config.watching||!this.config.script||this.endpointError||!this.jsonIsValid("input_data")||!this.jsonIsValid("script_configuration"))},validateDataAndSave(){this.setValidations(),this.$nextTick(()=>{if(!this.isFormValid()){i_.ProcessMaker.alert(this.$t("An error occurred. Check the form for errors in red text."),"danger"),this.focusFirstWatcherError();return}this.config.uid||(this.config.uid=G.uniqueId(new Date().getTime()),this.config.byPass=!1),this.save()})},save(){this.$emit("save-form")},inputDataEditorMounted(t){this.inputDataEditor=t},scriptConfigEditorMounted(t){this.scriptConfigEditor=t}}};var n_=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"accordion",attrs:{id:"watcherAccordion"}},[r("div",{staticClass:"card card-overflow"},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherConfigButton",staticClass:"p-3 btn btn-link d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherConfig","data-cy":"watchers-accordion-configuration"}},[e._m(0),e._m(1)])])]),r("div",{staticClass:"collapse show",attrs:{id:"watcherConfig","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-input",{ref:"name",attrs:{label:e.$t("Watcher Name")+" *",name:e.$t("Watcher Name"),validation:e.ruleWatcherName,helper:e.$t("A name to describe this Watcher"),"data-cy":"watchers-watcher-name",required:"","aria-required":"true"},model:{value:e.config.name,callback:function(i){e.$set(e.config,"name",i)},expression:"config.name"}}),r("screen-variable-selector",{ref:"watching",attrs:{name:e.$t("Variable to Watch"),label:e.$t("Variable to Watch")+" *",validation:e.ruleWatcherVariable,helper:e.$t("Select the variable to watch on this screen or type any request variable name"),"data-cy":"watchers-watcher-variable"},model:{value:e.config.watching,callback:function(i){e.$set(e.config,"watching",i)},expression:"config.watching"}}),r("form-checkbox",{attrs:{name:e.$t("Run Synchronously"),label:e.$t("Run Synchronously"),toggle:!0,helper:e.$t("Wait for the Watcher to run before accepting more input"),"data-cy":"watchers-watcher-synchronous"},model:{value:e.config.synchronous,callback:function(i){e.$set(e.config,"synchronous",i)},expression:"config.synchronous"}}),r("form-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.config.synchronous,expression:"!config.synchronous"}],attrs:{name:e.$t("Show message while loading remote data"),label:e.$t("Show message while loading remote data"),toggle:!0,"data-cy":"watchers-watcher-show-loading"},model:{value:e.config.show_async_loading,callback:function(i){e.$set(e.config,"show_async_loading",i)},expression:"config.show_async_loading"}}),r("form-checkbox",{attrs:{name:e.$t("Run Watcher on Screen Load"),label:e.$t("Run watcher on Screen Load"),toggle:!0,"data-cy":"watchers-watcher-run-onload"},model:{value:e.config.run_onload,callback:function(i){e.$set(e.config,"run_onload",i)},expression:"config.run_onload"}})],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherSourceButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherSource","data-cy":"watchers-accordion-source"}},[e._m(2),e._m(3)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherSource","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-multi-select",{ref:"script",attrs:{name:e.$t("Source"),label:e.$t("Source")+" *",options:e.scripts,placeholder:e.$t("None"),multiple:!1,"show-labels":!1,searchable:!0,"option-value":"id","option-content":"title","group-values":"items","group-label":"type",validation:e.ruleWatcherScript,helper:e.$t("The source to access when this Watcher runs"),"data-cy":"watchers-watcher-source"},on:{open:e.loadSources},model:{value:e.config.script,callback:function(i){e.$set(e.config,"script",i)},expression:"config.script"}}),e.isScript?r("div",[e.config.script?r("b-alert",{attrs:{show:"",variant:"warning"}},[r("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "+e._s(e.$t("Using watchers with Scripts can slow the performance of your screen."))+" ")]):e._e(),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{ref:"input_data",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},on:{editorDidMount:e.inputDataEditorMounted},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the script (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])]),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Script Configuration")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("script_configuration")}},[r("monaco-editor",{ref:"script_configuration",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-script_configuration"},on:{editorDidMount:e.scriptConfigEditorMounted},model:{value:e.config.script_configuration,callback:function(i){e.$set(e.config,"script_configuration",i)},expression:"config.script_configuration"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Configuration data for the script (valid JSON object, variables supported)")))]),e.scriptConfigurationInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(" "+e._s(e.$t("The Script Configuration field is required"))+" ")])]):e._e(),e.jsonIsValid("script_configuration")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])],1):e._e(),e.isDatasource?r("div",[r("div",{staticClass:"form-group"},[r("form-multi-select",{ref:"endpoint",attrs:{name:e.$t("Resource"),label:e.$t("Resource"),options:e.endpoints,placeholder:e.$t("Select a resource"),multiple:!1,"show-labels":!1,searchable:!0,"internal-search":!1,helper:e.$t("The Data Connector resource to access when this Watcher runs"),"data-cy":"watchers-watcher-endpoint"},on:{"search-change":e.loadEndpoints,open:function(i){return e.loadEndpoints()}},model:{value:e.endpoint,callback:function(i){e.endpoint=i},expression:"endpoint"}}),e.endpointError?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.endpointError))])]):e._e(),e.dataSourceConfigWarning.length>0?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.dataSourceConfigWarning))])]):e._e(),r("a",{directives:[{name:"show",rawName:"v-show",value:e.dataSourceLink.length>0,expression:"dataSourceLink.length > 0"}],staticClass:"link-primary",attrs:{href:e.dataSourceLink,target:"_blank"}},[e._v(" "+e._s(e.$t("Open Data Connector"))+" "),r("i",{staticClass:"ml-1 fas fa-external-link-alt"})])],1),e.hasInputData?e._e():r("outbound-config",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}),e.hasInputData?r("div",{staticClass:"form-group"},[e._m(4),r("div",{staticClass:"row pl-3 mt-1"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the Data Connector (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])]):e._e()],1):e._e()],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherOutputButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherOutput","data-cy":"watchers-accordion-output"}},[e._m(5),e._m(6)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherOutput","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[e.hasInputData||e.isScript?r("form-input",{ref:"propOutputVariableName",attrs:{label:e.outputVarLabel,name:e.$t("Output Variable"),helper:e.$t("The variable that will store the output of the Watcher"),validation:e.ruleWatcherOutputVariable,"data-cy":"watchers-watcher-output_variable",required:e.ruleWatcherOutputVariable=="required","aria-required":e.ruleWatcherOutputVariable=="required"},model:{value:e.config.output_variable,callback:function(i){e.$set(e.config,"output_variable",i)},expression:"config.output_variable"}}):e._e(),e.isDatasource?r("data-mapping",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}):e._e()],1)])])]),r("div",{staticClass:"d-flex justify-content-end mt-3"},[r("button",{staticClass:"btn btn-outline-secondary text-uppercase",attrs:{"data-cy":"watchers-button-cancel"},on:{click:function(i){return i.stopPropagation(),e.displayTableList.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"watchers-button-save"},on:{click:e.validateDataAndSave}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])},s_=[function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-cog"}),t._v(" Configuration")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-upload"}),t._v(" Source")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row pl-3"},[e("span",{staticClass:"text-danger"},[t._v(" * Deprecation Warning: Recreate the watcher to use the new format. Version 4.2 will not support Input Data as a JSON object. ")])])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-download"}),t._v(" Output")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])}],o_=oe(a_,n_,s_,!1,null,"74e7876e",null,null);const SP=o_.exports,Ire="",l_={components:{BasicSearch:lP,FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,Sortable:lp},props:{value:{type:Array,default(){return[]}}},data(){return{filter:"",css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Name"),key:"name"},{label:this.$t("Watching Variable"),key:"watching"},{label:this.$t("Output Variable"),key:"output_variable"},{label:this.$t("Source"),key:"script.title"}],searchProperties:["name","output_variable","watching","script.title"]}},methods:{displayFormProperty(){this.$emit("display-form")},editProperty(t){this.$emit("edit-form",t)},deleteProperty(t){this.$emit("delete-form",t)},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":uP,"../assets/icons/ErrorMessage.svg":cP,"../assets/icons/Unbypass.svg":dP,"../assets/icons/angle-double-right-solid.svg":fP,"../assets/icons/calendar-regular.svg":pP,"../assets/icons/caret-square-down-solid.svg":hP,"../assets/icons/check-square-solid.svg":mP,"../assets/icons/columns-solid.svg":vP,"../assets/icons/font-solid.svg":gP,"../assets/icons/list-ul-solid.svg":bP,"../assets/icons/paragraph-solid.svg":yP,"../assets/icons/share-square-solid.svg":xP,"../assets/icons/square-regular.svg":wP,"../assets/icons/th-list-solid.svg":PP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var u_=function(){var e=this,r=e._self._c;return r("Sortable",{attrs:{fields:e.fields,items:e.value,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"watchers-table"},btnNew:{"data-cy":"watchers-add-watcher"},btnEdit:{"data-cy":"watchers-table-edit"},btnDelete:{"data-cy":"watchers-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty,ordered:function(i){return e.$emit("ordered",i)}},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Watcher"):e.$t("Bypass Watcher"),"data-test":"watchers-bypass"},on:{click:function(a){return a.preventDefault(),e.$emit("toggle-bypass",i.uid)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}])})},c_=[],d_=oe(l_,u_,c_,!1,null,"cfbb5df9",null,null);const kP=d_.exports,Lre="",TP=typeof window>"u"?global:window,f_={components:{FormInput:ee.FormInput,FormTextArea:ee.FormTextArea,MonacoEditor:Si,WatchersList:kP,WatchersForm:SP},props:{value:{type:Array,required:!0}},data(){return{enableList:!0,current:[],add:{uid:"",name:"",variable:"",script_id:"",script_key:"",input_data:"",script_configuration:"",synchronous:!1,byPass:!1}}},computed:{modalSize(){return"xl"}},watch:{value:{handler(t){this.current=this.getValuesWithOutputVarsNames(t)}}},methods:{getValuesWithOutputVarsNames(t){return t.map(r=>{var a,n;const i={...r};if(Object.hasOwn(i,"byPass")||(i.byPass=!1),((n=(a=i==null?void 0:i.script)==null?void 0:a.id)==null?void 0:n.substr(0,11))==="data_source"){const s=JSON.parse(i.script_configuration),o=s!=null&&s.dataMapping?s.dataMapping.map(l=>l.key).join(", "):"",u=50;i.output_variable=o.length>u?`${o.substr(0,u)}...`:o}return i})},toggleBypass(t){this.current=this.current.map(e=>e.uid===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},show(){this.$refs.modal.show()},displayList(){this.add={},this.enableList=!0},displayForm(){this.add={},this.enableList=!1},save(){let t=this.$t("Watcher Saved"),e=this.current.findIndex(r=>r.uid===this.add.uid);e===-1?this.current.push(this.add):(t=this.$t("Watcher Updated"),this.current[e]=this.add),this.showAlert(t),this.$emit("input",this.current),this.displayList()},edit(t){this.displayForm(),this.$set(this,"add",G.cloneDeep(t))},confirmRemoval(t){TP.ProcessMaker.confirmModal(this.$t("Caution!"),this.$t("Are you sure you want to delete the Watcher?"),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.uid!==t.uid),this.$emit("input",this.current),this.showAlert(this.$t("Watcher deleted")),this.displayList()},showAlert(t){TP.ProcessMaker.alert(t,"success")}}};var p_=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:e.modalSize,id:"watchers-popup","hide-footer":"","header-close-content":"&times;","no-close-on-backdrop":"","data-cy":"watchers-modal"},on:{hidden:e.displayList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[e._v(" "+e._s(e.$t("Watchers"))+" "),r("small",{staticClass:"d-block my-2 modal-subtitle"},[e._v(" "+e._s(e.$t("Manage your active watchers for this screen"))+" ")])]},proxy:!0}])},[e.enableList?[r("watchers-list",{on:{"display-form":e.displayForm,"edit-form":e.edit,"delete-form":e.confirmRemoval,"toggle-bypass":e.toggleBypass,ordered:function(i){return e.$emit("input",i)}},model:{value:e.current,callback:function(i){e.current=i},expression:"current"}}),r("div",{staticClass:"d-flex justify-content-end mt-3 mr-1"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("required"),r("watchers-form",{attrs:{refs:"form",config:e.add},on:{"display-list":e.displayList,"save-form":e.save}})]],2)},h_=[],m_=oe(f_,p_,h_,!1,null,"d5f54c66",null,null);const v_=m_.exports,Fre="",g_={...Cs,FormMultiColumn:bu};function b_(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const y_={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",Zu),t.component("FormImage",Kn),t.component("FormAvatar",yn),t.component("FormLoop",ws),t.component("FormMultiColumn",bu),t.component("FormNestedScreen",Ps),t.component("FormRecordList",vu),t.component("Loop",iP),t.component("MultiColumn",aP),t.component("NewFormMultiColumn",Kf),t.component("ScreenRenderer",Pw),t.component("Task",rP),t.component("VueFormBuilder",Gw),t.component("VueFormRenderer",Ua),t.component("DefaultLoadingSpinner",nP),t.use(ee),t.component("FormButton",qi),t.component("FileUpload",bn),t.component("FileDownload",eo),t.component("FormAnalyticsChart",ks),t.component("FormMaskedInput",Wi),t.use(Dl),t.use(Et),t.component("FormListTable",Ss),t.component("LinkButton",Ts);const e=new Et.Store({modules:{globalErrorsModule:oP,undoRedoModule:Pu}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return b_(this).getDataReference(r,i)}}})}};function x_(t,e){t.defaults.adapter=Ug(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new kl({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Z.AddLoopRow=Zu,Z.AnalyticsSelector=Rw,Z.BasicSearch=lP,Z.CollectionSelectList=tp,Z.ColorSelect=Cw,Z.ColumnSetup=Mw,Z.ComputedProperties=KK,Z.ContainerColumns=Dw,Z.Currencies=sG,Z.CurrentPageProperty=sc,Z.CustomCSS=r_,Z.DataFormatProperty=tP,Z.DataMapping=rp,Z.DataReference=fh,Z.DataTypeBooleanProperty=pK,Z.DataTypeDateTimeProperty=eP,Z.DataTypeProperty=$w,Z.DataTypeWithoutDateProperty=fK,Z.DefaultLoadingSpinner=nP,Z.DefaultValueEditor=ip,Z.DeviceDetector=mh,Z.DeviceVisibility=id,Z.EditOption=Aw,Z.FileDownload=eo,Z.FileUpload=bn,Z.FormAnalyticsChart=ks,Z.FormAvatar=yn,Z.FormBuilderControls=hK,Z.FormButton=qi,Z.FormImage=Kn,Z.FormInputMasked=Wi,Z.FormListTable=Ss,Z.FormLoop=ws,Z.FormMaskedInput=Wi,Z.FormMultiselect=ap,Z.FormNestedScreen=Ps,Z.FormRecordList=vu,Z.FormRecordListStatic=Sw,Z.FormRequests=ep,Z.FormTasks=$f,Z.FormText=gu,Z.HasColorProperty=vn,Z.ImageUpload=zw,Z.ImageVariable=Ow,Z.InputVariable=np,Z.Json2Vue=ob,Z.LabelSubmitButton=Hw,Z.LabelSubmitButtonProperty=og,Z.LinkButton=Ts,Z.LoadingSubmitButton=Bw,Z.LoadingSubmitButtonProperty=sg,Z.Loop=iP,Z.LoopInspector=Ew,Z.MultiColumn=aP,Z.MultipleUploadsCheckbox=Jw,Z.MustacheHelper=Ga,Z.NewFormMultiColumn=Kf,Z.OptionsList=jw,Z.OutboundConfig=sp,Z.PageSelect=Nw,Z.RequiredCheckbox=Xw,Z.ScreenBase=nd,Z.ScreenRendererError=Yf,Z.ScreenSelector=Iw,Z.SelectDataTypeMask=op,Z.Task=rP,Z.Tooltip=rd,Z.ValidationMsg=ol,Z.ValidationSelect=Fw,Z.VariableNameGenerator=Vw,Z.VisibilityRule=lg,Z.VueFormBuilder=Gw,Z.VueFormRenderer=Ua,Z.WatchersForm=SP,Z.WatchersList=kP,Z.WatchersPopup=v_,Z.WatchersSynchronous=ww,Z.accordions=Ww,Z.bgcolorProperty=li,Z.buttonLabelProperty=rg,Z.buttonTypeEvent=ag,Z.buttonVariantStyleProperty=sl,Z.canOpenJsonFile=$S,Z.colorProperty=ui,Z.computedFields=uh,Z.dataSourceValues=ei,Z.dataSources=Ms,Z.datatable=oc,Z.default=y_,Z.defaultValueProperty=Hn,Z.defaultValues=Y0,Z.deviceVisibilityProperty=Q5,Z.disabledProperty=ad,Z.focusErrors=lc,Z.formTypes=Ds,Z.formWatchers=dA,Z.getValidPath=Nc,Z.globalErrorsModule=oP,Z.globalProperties=QY,Z.helperTextProperty=xa,Z.initializeScreenCache=x_,Z.inspector=qw,Z.javascriptReservedKeywords=al,Z.keyNameProperty=Qt,Z.labelProperty=Wr,Z.multiselectApi=lb,Z.mustacheEvaluation=Ed,Z.placeholderProperty=Bn,Z.readonlyProperty=nl,Z.renderer=g_,Z.shouldElementBeVisible=ub,Z.testing=db,Z.toggleStyleProperty=ig,Z.tooltipProperty=ng,Z.validationRulesProperty=Hi,Z.validators=ll,Z.watchers=ug,Object.defineProperties(Z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
382
382
  //# sourceMappingURL=vue-form-builder.umd.js.map