@processmaker/screen-builder 3.8.10 → 3.8.12

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.
@@ -257,7 +257,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
257
257
  this.tryFormField(${JSON.stringify(e)}, () => {
258
258
  this.${i} = ${r};
259
259
  this.setValue(${JSON.stringify(e)}, ${r}, this.vdata, this);});
260
- }`),t.computed[a]={get:new Function(`return this.tryFormField(${JSON.stringify(e)}, () => ${r});`),set(){}},this.addWatch(t,a,`!this.${i}_was_filled__ && this.setValue(${JSON.stringify(e)}, this.${a}, this.vdata, this);`)}},mounted(){this.extensions.push({onbuild({screen:t,definition:e}){this.defaultValues(t,e)},onloadproperties({properties:t,element:e,definition:r}){const i=e.config.name;if(!this.isComputedVariable(i,r)&&(e.config.defaultValue||e.config.initiallyChecked)){const a=this.safeDotName(i),n=`${a}_was_filled__ |= !!$event; !${a}_was_filled__ && (vdata.${this.dot2bracket(i)} = default_${a}__)`;this.addEvent(t,"input",n)}}})}}},Symbol.toStringTag,{value:"Module"})),aO=Object.freeze(Object.defineProperty({__proto__:null,default:{props:{configRef:null,loopContext:null},data(){return{}},methods:{loadFormDynamicPanelProperties({properties:t,element:e}){const r=e.config.settings.varname,i=e.config.settings.indexName;t[":itemData"]=`${r} && ${r}[${i}]`,e.config.settings.emptyStateMessage&&(t[":emptyStateMessage"]=this.byRef(e.config.settings.emptyStateMessage)),t[":validationData"]="getValidationData()",this.registerVariable(e.config.settings.varname,e)},loadFormDynamicPanelItems({element:t,node:e,definition:r}){const i={config:[{items:t.items}],watchers:[],isMobile:!1},a=t.config.settings.varname,n=t.config.settings.indexName,s=this.createComponent("ScreenRenderer",{":definition":this.byRef(i),":value":`${a} && ${a}[${n}]`,":loop-context":`'${a} && ${a}[${n}]'`,":_parent":"getValidationData()",":components":this.byRef(this.components),":config-ref":this.byRef(this.configRef||r.config),"@submit":"submitForm"});e.appendChild(s)}},mounted(){this.extensions.push({onloadproperties(t){t.element.container&&t.componentName==="FormDynamicPanel"&&this.loadFormDynamicPanelProperties(t)},onloaditems(t){t.element.container&&t.componentName==="FormDynamicPanel"&&this.loadFormDynamicPanelItems(t)}})}}},Symbol.toStringTag,{value:"Module"})),nO=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(){this.alias.FormInput="form-masked-input"}}},Symbol.toStringTag,{value:"Module"})),sO=Object.freeze(Object.defineProperty({__proto__:null,default:{data(){return{popups:[]}},methods:{searchForRecordList(t){t.forEach(e=>{e instanceof Array&&this.searchForRecordList(e),e.items&&this.searchForRecordList(e.items),e.component==="FormRecordList"&&this.popups.push(parseInt(e.config.form))})},loadFormPopups({definition:t}){this.popups=[],t.config.forEach(e=>{e&&e.items&&this.searchForRecordList(e.items)})},loadFieldProperties({properties:t,element:e,componentName:r,definition:i,formIndex:a,screen:n}){if(t.class=this.elementCssClass(e),t[":validation-data"]="getValidationData()",!this.popups.includes(a)){if(r==="FormImage")this.registerVariable(e.config.variableName,e),delete t.image,t[":image"]=this.byRef(e.config.image);else if(this.validVariableName(e.config.name)){this.registerVariable(e.config.name,e);const o=this.safeDotName(e.config.name);t["v-model"]=o,r==="FormTextArea"||r==="FormInput"?(t["@input"]=`updateScreenData('${o}', '${e.config.name}')`,t["@change"]=`updateScreenDataNow('${o}', '${e.config.name}')`):(t["@input"]=`updateScreenDataNow('${o}', '${e.config.name}')`,t["@change"]=`updateScreenDataNow('${o}', '${e.config.name}')`),t["@reset"]=`resetValue('${o}', '${e.config.name}')`}}(r==="FormHtmlViewer"||r==="FormHtmlEditorStatic")&&(delete t.content,t[":content"]=this.byRef(e.config.content)),r==="FormNestedScreen"&&(t[":_parent"]="_parent"),e.config.name&&(t["data-cy"]=`screen-field-${e.config.name}`),t[":ancestor-screens"]="$parent && $parent.ancestorScreens",t.name=e.config.name!==void 0?e.config.name:null,t.disabled=e.config.interactive||e.config.disabled,t[":form-config"]=this.byRef(this.configRef||i.config),t[":form-computed"]=JSON.stringify(i.computed),t[":form-watchers"]=JSON.stringify(i.watchers);const s=this.isComputedVariable(e.config.name,i);t[":readonly"]=s||e.config.readonly,t[":disabled"]=s||e.config.disabled,t["@submit"]="submitForm",r==="FormButton"&&(t[":handler"]=this.byRef(e.config.handler))}},mounted(){this.extensions.push({onloadproperties(t){t.element.container||(this.loadFormPopups(t),this.loadFieldProperties(t)),t.properties[":config"]=this.byRef(t.element.config),t.properties[":transientData"]="vdata"}})}}},Symbol.toStringTag,{value:"Module"})),oO=Object.freeze(Object.defineProperty({__proto__:null,default:{props:{configRef:null,loopContext:null},data(){return{loops:[]}},methods:{loadFormLoopProperties({properties:t,element:e}){this.registerVariable(e.config.settings.varname,e),this.loops.push({variable:e.config.settings.varname,element:e,properties:t})},loadFormLoopItems({element:t,node:e,definition:r}){const i=this.safeDotName(t.config.settings.varname),a=this.createComponent("div",{"v-for":`(loopRow, index) in ${i}`}),n={config:[{items:t.items}],watchers:r.watchers,isMobile:r.isMobile};let s="";this.loopContext&&(s=`${this.loopContext}.`),s+=t.config.settings.varname;const o=this.createComponent("ScreenRenderer",{":definition":this.byRef(n),":value":"loopRow",":loop-context":`'${s}.' + index`,":_parent":"getValidationData()",":components":this.byRef(this.components),":config-ref":this.byRef(this.configRef||r.config),"@submit":"submitForm"}),u=this.createComponent("AddLoopRow",{":value":i,":config":this.byRef(t.config),":error":`${this.checkVariableExists(`$v.vdata.${t.config.name}`)} && validationMessage($v.vdata.${t.config.name})
260
+ }`),t.computed[a]={get:new Function(`return this.tryFormField(${JSON.stringify(e)}, () => ${r});`),set(){}},this.addWatch(t,a,`!this.${i}_was_filled__ && this.setValue(${JSON.stringify(e)}, this.${a}, this.vdata, this);`)}},mounted(){this.extensions.push({onbuild({screen:t,definition:e}){this.defaultValues(t,e)},onloadproperties({properties:t,element:e,definition:r}){const i=e.config.name;if(!this.isComputedVariable(i,r)&&(e.config.defaultValue||e.config.initiallyChecked)){const a=this.safeDotName(i),n=`${a}_was_filled__ |= !!$event; !${a}_was_filled__ && (vdata.${this.dot2bracket(i)} = default_${a}__)`;this.addEvent(t,"input",n)}}})}}},Symbol.toStringTag,{value:"Module"})),aO=Object.freeze(Object.defineProperty({__proto__:null,default:{props:{configRef:null,loopContext:null},data(){return{}},methods:{buildNestedConfig(t){return{config:[{items:t.items}],watchers:[],isMobile:!1}},buildExpressions(t,e){return e&&e.trim()?{valueExpression:`${t} && ${t}[${e}]`,loopContextExpression:`'${t} && ${t}[${e}]'`}:{valueExpression:t,loopContextExpression:`'${t}'`}},createScreenRenderer(t,e,r,i){return this.createComponent("ScreenRenderer",{":definition":this.byRef(t),":value":e,":loop-context":r,":_parent":"getValidationData()",":components":this.byRef(this.components),":config-ref":this.byRef(this.configRef||i.config),"@submit":"submitForm"})},buildItemDataExpression(t,e){return e&&e.trim()?`${t} && ${t}[${e}]`:t},getEmptyStateMessage(t,e){return e||(!t||!t.trim()?(console.warn("FormDynamicPanel: No Index Name configured. The dynamic panel will not function properly without an index."),"No data available. Please configure an Index Name for this dynamic panel."):"No data available for this dynamic panel.")},validateElementSettings(t){return!t.config||!t.config.settings?(console.warn("FormDynamicPanel: Missing config or settings"),!1):t.config.settings.varname?!0:(console.warn("FormDynamicPanel: Missing varname setting"),!1)},extractValidatedSettings(t){return this.validateElementSettings(t)?{variableName:t.config.settings.varname,index:t.config.settings.indexName||"",emptyStateMessage:t.config.settings.emptyStateMessage}:null},loadFormDynamicPanelProperties({properties:t,element:e}){const r=this.extractValidatedSettings(e);if(!r)return;t[":itemData"]=this.buildItemDataExpression(r.variableName,r.index);const i=this.getEmptyStateMessage(r.index,r.emptyStateMessage);t[":emptyStateMessage"]=this.byRef(i),t[":validationData"]="getValidationData()",this.registerVariable(r.variableName,e)},loadFormDynamicPanelItems({element:t,node:e,definition:r}){const i=this.extractValidatedSettings(t);if(!i)return;const a=this.buildNestedConfig(t),{valueExpression:n,loopContextExpression:s}=this.buildExpressions(i.variableName,i.index),o=this.createScreenRenderer(a,n,s,r);e.appendChild(o)}},mounted(){this.extensions.push({onloadproperties(t){t.element.container&&t.componentName==="FormDynamicPanel"&&this.loadFormDynamicPanelProperties(t)},onloaditems(t){t.element.container&&t.componentName==="FormDynamicPanel"&&this.loadFormDynamicPanelItems(t)}})}}},Symbol.toStringTag,{value:"Module"})),nO=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(){this.alias.FormInput="form-masked-input"}}},Symbol.toStringTag,{value:"Module"})),sO=Object.freeze(Object.defineProperty({__proto__:null,default:{data(){return{popups:[]}},methods:{searchForRecordList(t){t.forEach(e=>{e instanceof Array&&this.searchForRecordList(e),e.items&&this.searchForRecordList(e.items),e.component==="FormRecordList"&&this.popups.push(parseInt(e.config.form))})},loadFormPopups({definition:t}){this.popups=[],t.config.forEach(e=>{e&&e.items&&this.searchForRecordList(e.items)})},loadFieldProperties({properties:t,element:e,componentName:r,definition:i,formIndex:a,screen:n}){if(t.class=this.elementCssClass(e),t[":validation-data"]="getValidationData()",!this.popups.includes(a)){if(r==="FormImage")this.registerVariable(e.config.variableName,e),delete t.image,t[":image"]=this.byRef(e.config.image);else if(this.validVariableName(e.config.name)){this.registerVariable(e.config.name,e);const o=this.safeDotName(e.config.name);t["v-model"]=o,r==="FormTextArea"||r==="FormInput"?(t["@input"]=`updateScreenData('${o}', '${e.config.name}')`,t["@change"]=`updateScreenDataNow('${o}', '${e.config.name}')`):(t["@input"]=`updateScreenDataNow('${o}', '${e.config.name}')`,t["@change"]=`updateScreenDataNow('${o}', '${e.config.name}')`),t["@reset"]=`resetValue('${o}', '${e.config.name}')`}}(r==="FormHtmlViewer"||r==="FormHtmlEditorStatic")&&(delete t.content,t[":content"]=this.byRef(e.config.content)),r==="FormNestedScreen"&&(t[":_parent"]="_parent"),e.config.name&&(t["data-cy"]=`screen-field-${e.config.name}`),t[":ancestor-screens"]="$parent && $parent.ancestorScreens",t.name=e.config.name!==void 0?e.config.name:null,t.disabled=e.config.interactive||e.config.disabled,t[":form-config"]=this.byRef(this.configRef||i.config),t[":form-computed"]=JSON.stringify(i.computed),t[":form-watchers"]=JSON.stringify(i.watchers);const s=this.isComputedVariable(e.config.name,i);t[":readonly"]=s||e.config.readonly,t[":disabled"]=s||e.config.disabled,t["@submit"]="submitForm",r==="FormButton"&&(t[":handler"]=this.byRef(e.config.handler))}},mounted(){this.extensions.push({onloadproperties(t){t.element.container||(this.loadFormPopups(t),this.loadFieldProperties(t)),t.properties[":config"]=this.byRef(t.element.config),t.properties[":transientData"]="vdata"}})}}},Symbol.toStringTag,{value:"Module"})),oO=Object.freeze(Object.defineProperty({__proto__:null,default:{props:{configRef:null,loopContext:null},data(){return{loops:[]}},methods:{loadFormLoopProperties({properties:t,element:e}){this.registerVariable(e.config.settings.varname,e),this.loops.push({variable:e.config.settings.varname,element:e,properties:t})},loadFormLoopItems({element:t,node:e,definition:r}){const i=this.safeDotName(t.config.settings.varname),a=this.createComponent("div",{"v-for":`(loopRow, index) in ${i}`}),n={config:[{items:t.items}],watchers:r.watchers,isMobile:r.isMobile};let s="";this.loopContext&&(s=`${this.loopContext}.`),s+=t.config.settings.varname;const o=this.createComponent("ScreenRenderer",{":definition":this.byRef(n),":value":"loopRow",":loop-context":`'${s}.' + index`,":_parent":"getValidationData()",":components":this.byRef(this.components),":config-ref":this.byRef(this.configRef||r.config),"@submit":"submitForm"}),u=this.createComponent("AddLoopRow",{":value":i,":config":this.byRef(t.config),":error":`${this.checkVariableExists(`$v.vdata.${t.config.name}`)} && validationMessage($v.vdata.${t.config.name})
261
261
  || ${this.checkVariableExists(`$v.schema.${t.config.name}`)}
262
262
  && validationMessage($v.schema.${t.config.name})`});a.appendChild(o),e.appendChild(a),e.appendChild(u),this.registerNestedVariable(t.config.settings.varname,`${t.config.settings.varname}.index.`,n)}},mounted(){this.alias.FormLoop="div",this.extensions.push({beforeload(){this.loops.splice(0)},onloadproperties(t){t.element.container&&t.componentName==="FormLoop"&&this.loadFormLoopProperties(t)},onloaditems(t){t.element.container&&t.componentName==="FormLoop"&&this.loadFormLoopItems(t)}})}}},Symbol.toStringTag,{value:"Module"})),lO=Object.freeze(Object.defineProperty({__proto__:null,default:{methods:{loadMultiColumnProperties({properties:t,element:e}){t.class=this.elementCssClass(e),t.ref="container",t.selected="selected",t[":config"]=JSON.stringify(e.config),t.name=e.config&&e.config.name!==void 0?e.config.name:null,t[":form-config"]="$parent && $parent.definition.config"},loadMultiColumnItems({element:t,node:e,screen:r,definition:i,formIndex:a}){t.items.forEach((n,s)=>{const o=this.createComponent("div",{class:`col-sm-${t.config.options[s].content}`});this.loadItems(n,o,r,i,a),e.appendChild(o)})}},mounted(){this.extensions.push({onloadproperties(t){t.element.container&&t.componentName==="FormMultiColumn"&&this.loadMultiColumnProperties(t)},onloaditems(t){t.element.container&&t.componentName==="FormMultiColumn"&&this.loadMultiColumnItems(t)}}),this.alias.FormMultiColumn="NewFormMultiColumn",this.alias.MultiColumn="NewFormMultiColumn"}}},Symbol.toStringTag,{value:"Module"})),uO=Object.freeze(Object.defineProperty({__proto__:null,default:{methods:{pageNavigate(){},pageNavigationProperties({properties:t}){t["@page-navigate"]="pageNavigate",t[":validate"]="$v"},pageNavigationBuild(t){this.addData(t,"currentPage__","this._initialPage"),t.methods.pageNavigate=function(e){this.$parent.definition.config[e]&&(this.$parent.$emit("updatePage"),this.currentPage__=e)}}},mounted(){this.extensions.push({onloadproperties(t){t.element.component==="FormButton"&&t.element.config.event==="pageNavigate"&&this.pageNavigationProperties(t)},onbuild({screen:t}){this.pageNavigationBuild(t)}})}}},Symbol.toStringTag,{value:"Module"})),cO=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(){this.extensions.push({onloadproperties({element:t,properties:e}){t.component==="FormButton"&&t.config.event==="submit"&&(e[":validate"]="$v")}})}}},Symbol.toStringTag,{value:"Module"}));var ze={},Eo={};Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.h=mO,Eo.patchChildren=hO;function jo(t){return t==null}function Hi(t){return t!=null}function jn(t,e){return e.tag===t.tag&&e.key===t.key}function Qc(t){var e=t.tag;t.vm=new e({data:t.args})}function dO(t){for(var e=Object.keys(t.args),r=0;r<e.length;r++)e.forEach(function(i){t.vm[i]=t.args[i]})}function fO(t,e,r){var i,a,n={};for(i=e;i<=r;++i)a=t[i].key,Hi(a)&&(n[a]=i);return n}function pO(t,e){for(var r=0,i=0,a=t.length-1,n=t[0],s=t[a],o=e.length-1,u=e[0],l=e[o],c,d,f;r<=a&&i<=o;)jo(n)?n=t[++r]:jo(s)?s=t[--a]:jn(n,u)?(In(n,u),n=t[++r],u=e[++i]):jn(s,l)?(In(s,l),s=t[--a],l=e[--o]):jn(n,l)?(In(n,l),n=t[++r],l=e[--o]):jn(s,u)?(In(s,u),s=t[--a],u=e[++i]):(jo(c)&&(c=fO(t,r,a)),d=Hi(u.key)?c[u.key]:null,jo(d)?(Qc(u),u=e[++i]):(f=t[d],jn(f,u)?(In(f,u),t[d]=void 0,u=e[++i]):(Qc(u),u=e[++i])));r>a?jm(e,i,o):i>o&&Im(t,r,a)}function jm(t,e,r){for(;e<=r;++e)Qc(t[e])}function Im(t,e,r){for(;e<=r;++e){var i=t[e];Hi(i)&&(i.vm.$destroy(),i.vm=null)}}function In(t,e){t!==e&&(e.vm=t.vm,dO(e))}function hO(t,e){Hi(t)&&Hi(e)?t!==e&&pO(t,e):Hi(e)?jm(e,0,e.length-1):Hi(t)&&Im(t,0,t.length-1)}function mO(t,e,r){return{tag:t,key:e,args:r}}var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt._setTarget=void 0,zt.popParams=Rm,zt.pushParams=Bm,zt.target=void 0,zt.withParams=xO;function Nm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,i)}return r}function Lm(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nm(Object(r),!0).forEach(function(i){vO(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function vO(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nn=function(r){return typeof r}:Nn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Nn(t)}var Fm=[],Xr=null;zt.target=Xr;var gO=function(e){zt.target=Xr=e};zt._setTarget=gO;function Bm(){Xr!==null&&Fm.push(Xr),zt.target=Xr={}}function Rm(){var t=Xr,e=zt.target=Xr=Fm.pop()||null;return e&&(Array.isArray(e.$sub)||(e.$sub=[]),e.$sub.push(t)),t}function bO(t){if(Nn(t)==="object"&&!Array.isArray(t))zt.target=Xr=Lm(Lm({},Xr),t);else throw new Error("params must be an object")}function yO(t,e){return Hm(function(r){return function(){r(t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return e.apply(this,a)}})}function Hm(t){var e=t(bO);return function(){Bm();try{for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e.apply(this,i)}finally{Rm()}}}function xO(t,e){return Nn(t)==="object"&&e!==void 0?yO(t,e):Hm(t)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Vuelidate=B,t.validationMixin=t.default=void 0,Object.defineProperty(t,"withParams",{enumerable:!0,get:function(){return r.withParams}});var e=Eo,r=zt;function i(V){return o(V)||s(V)||n(V)||a()}function a(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
263
263
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(V,E){if(V){if(typeof V=="string")return u(V,E);var j=Object.prototype.toString.call(V).slice(8,-1);if(j==="Object"&&V.constructor&&(j=V.constructor.name),j==="Map"||j==="Set")return Array.from(V);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return u(V,E)}}function s(V){if(typeof Symbol<"u"&&V[Symbol.iterator]!=null||V["@@iterator"]!=null)return Array.from(V)}function o(V){if(Array.isArray(V))return u(V)}function u(V,E){(E==null||E>V.length)&&(E=V.length);for(var j=0,I=new Array(E);j<E;j++)I[j]=V[j];return I}function l(V,E){var j=Object.keys(V);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(V);E&&(I=I.filter(function(L){return Object.getOwnPropertyDescriptor(V,L).enumerable})),j.push.apply(j,I)}return j}function c(V){for(var E=1;E<arguments.length;E++){var j=arguments[E]!=null?arguments[E]:{};E%2?l(Object(j),!0).forEach(function(I){d(V,I,j[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(j)):l(Object(j)).forEach(function(I){Object.defineProperty(V,I,Object.getOwnPropertyDescriptor(j,I))})}return V}function d(V,E,j){return E in V?Object.defineProperty(V,E,{value:j,enumerable:!0,configurable:!0,writable:!0}):V[E]=j,V}function f(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(j){return typeof j}:f=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},f(V)}var g=function(){return null},S=function(E,j,I){return E.reduce(function(L,W){return L[I?I(W):W]=j(W),L},{})};function h(V){return typeof V=="function"}function y(V){return V!==null&&(f(V)==="object"||h(V))}function x(V){return y(V)&&h(V.then)}var w=function(E,j,I,L){if(typeof I=="function")return I.call(E,j,L);I=Array.isArray(I)?I:I.split(".");for(var W=0;W<I.length;W++)if(j&&f(j)==="object")j=j[I[W]];else return L;return typeof j>"u"?L:j},b="__isVuelidateAsyncVm";function p(V,E){var j=new V({data:{p:!0,v:!1}});return E.then(function(I){j.p=!1,j.v=I},function(I){throw j.p=!1,j.v=!1,I}),j[b]=!0,j}var P={$invalid:function(){var E=this,j=this.proxy;return this.nestedKeys.some(function(I){return E.refProxy(I).$invalid})||this.ruleKeys.some(function(I){return!j[I]})},$dirty:function(){var E=this;return this.dirty?!0:this.nestedKeys.length===0?!1:this.nestedKeys.every(function(j){return E.refProxy(j).$dirty})},$anyDirty:function(){var E=this;return this.dirty?!0:this.nestedKeys.length===0?!1:this.nestedKeys.some(function(j){return E.refProxy(j).$anyDirty})},$error:function(){return this.$dirty&&!this.$pending&&this.$invalid},$anyError:function(){var E=this;return this.$error?!0:this.nestedKeys.some(function(j){return E.refProxy(j).$anyError})},$pending:function(){var E=this;return this.ruleKeys.some(function(j){return E.getRef(j).$pending})||this.nestedKeys.some(function(j){return E.refProxy(j).$pending})},$params:function(){var E=this,j=this.validations;return c(c({},S(this.nestedKeys,function(I){return j[I]&&j[I].$params||null})),S(this.ruleKeys,function(I){return E.getRef(I).$params}))}};function v(V){this.dirty=V;var E=this.proxy,j=V?"$touch":"$reset";this.nestedKeys.forEach(function(I){E[I][j]()})}var m={$touch:function(){v.call(this,!0)},$reset:function(){v.call(this,!1)},$flattenParams:function(){var E=this.proxy,j=[];for(var I in this.$params)if(this.isNested(I)){for(var L=E[I].$flattenParams(),W=0;W<L.length;W++)L[W].path.unshift(I);j=j.concat(L)}else j.push({path:[],name:I,params:this.$params[I]});return j}},C=Object.keys(P),D=Object.keys(m),k=null,O=function(E){if(k)return k;var j=E.extend({computed:{refs:function(){var M=this._vval;this._vval=this.children,(0,e.patchChildren)(M,this._vval);var z={};return this._vval.forEach(function(F){z[F.key]=F.vm}),z}},beforeCreate:function(){this._vval=null},beforeDestroy:function(){this._vval&&((0,e.patchChildren)(this._vval),this._vval=null)},methods:{getModel:function(){return this.lazyModel?this.lazyModel(this.prop):this.model},getModelKey:function(M){var z=this.getModel();if(z)return z[M]},hasIter:function(){return!1}}}),I=j.extend({data:function(){return{rule:null,lazyModel:null,model:null,lazyParentModel:null,rootModel:null}},methods:{runRule:function(M){var z=this.getModel();(0,r.pushParams)();var F=this.rule.call(this.rootModel,z,M),q=x(F)?p(E,F):F,U=(0,r.popParams)(),_=U&&U.$sub?U.$sub.length>1?U:U.$sub[0]:null;return{output:q,params:_}}},computed:{run:function(){var M=this,z=this.lazyParentModel(),F=Array.isArray(z)&&z.__ob__;if(F){var q=z.__ob__.dep;q.depend();var U=q.constructor.target;if(!this._indirectWatcher){var _=U.constructor;this._indirectWatcher=new _(this,function(){return M.runRule(z)},null,{lazy:!0})}var te=this.getModel();if(!this._indirectWatcher.dirty&&this._lastModel===te)return this._indirectWatcher.depend(),U.value;this._lastModel=te,this._indirectWatcher.evaluate(),this._indirectWatcher.depend()}else this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null);return this._indirectWatcher?this._indirectWatcher.value:this.runRule(z)},$params:function(){return this.run.params},proxy:function(){var M=this.run.output;return M[b]?!!M.v:!!M},$pending:function(){var M=this.run.output;return M[b]?M.p:!1}},destroyed:function(){this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null)}}),L=j.extend({data:function(){return{dirty:!1,validations:null,lazyModel:null,model:null,prop:null,lazyParentModel:null,rootModel:null}},methods:c(c({},m),{},{refProxy:function(M){return this.getRef(M).proxy},getRef:function(M){return this.refs[M]},isNested:function(M){return typeof this.validations[M]!="function"}}),computed:c(c({},P),{},{nestedKeys:function(){return this.keys.filter(this.isNested)},ruleKeys:function(){var M=this;return this.keys.filter(function(z){return!M.isNested(z)})},keys:function(){return Object.keys(this.validations).filter(function(M){return M!=="$params"})},proxy:function(){var M=this,z=S(this.keys,function(_){return{enumerable:!0,configurable:!0,get:function(){return M.refProxy(_)}}}),F=S(C,function(_){return{enumerable:!0,configurable:!0,get:function(){return M[_]}}}),q=S(D,function(_){return{enumerable:!1,configurable:!0,get:function(){return M[_]}}}),U=this.hasIter()?{$iter:{enumerable:!0,value:Object.defineProperties({},c({},z))}}:{};return Object.defineProperties({},c(c(c(c({},z),U),{},{$model:{enumerable:!0,get:function(){var te=M.lazyParentModel();return te!=null?te[M.prop]:null},set:function(te){var re=M.lazyParentModel();re!=null&&(re[M.prop]=te,M.$touch())}}},F),q))},children:function(){var M=this;return[].concat(i(this.nestedKeys.map(function(z){return Z(M,z)})),i(this.ruleKeys.map(function(z){return K(M,z)}))).filter(Boolean)}})}),W=L.extend({methods:{isNested:function(M){return typeof this.validations[M]()<"u"},getRef:function(M){var z=this;return{get proxy(){return z.validations[M]()||!1}}}}}),Q=L.extend({computed:{keys:function(){var M=this.getModel();return y(M)?Object.keys(M):[]},tracker:function(){var M=this,z=this.validations.$trackBy;return z?function(F){return"".concat(w(M.rootModel,M.getModelKey(F),z))}:function(F){return"".concat(F)}},getModelLazy:function(){var M=this;return function(){return M.getModel()}},children:function(){var M=this,z=this.validations,F=this.getModel(),q=c({},z);delete q.$trackBy;var U={};return this.keys.map(function(_){var te=M.tracker(_);return U.hasOwnProperty(te)?null:(U[te]=!0,(0,e.h)(L,te,{validations:q,prop:_,lazyParentModel:M.getModelLazy,model:F[_],rootModel:M.rootModel}))}).filter(Boolean)}},methods:{isNested:function(){return!0},getRef:function(M){return this.refs[this.tracker(M)]},hasIter:function(){return!0}}}),Z=function(M,z){if(z==="$each")return(0,e.h)(Q,z,{validations:M.validations[z],lazyParentModel:M.lazyParentModel,prop:z,lazyModel:M.getModel,rootModel:M.rootModel});var F=M.validations[z];if(Array.isArray(F)){var q=M.rootModel,U=S(F,function(_){return function(){return w(q,q.$v,_)}},function(_){return Array.isArray(_)?_.join("."):_});return(0,e.h)(W,z,{validations:U,lazyParentModel:g,prop:z,lazyModel:g,rootModel:q})}return(0,e.h)(L,z,{validations:F,lazyParentModel:M.getModel,prop:z,lazyModel:M.getModelKey,rootModel:M.rootModel})},K=function(M,z){return(0,e.h)(I,z,{rule:M.validations[z],lazyParentModel:M.lazyParentModel,lazyModel:M.getModel,rootModel:M.rootModel})};return k={VBase:j,Validation:L},k},T=null;function A(V){if(T)return T;for(var E=V.constructor;E.super;)E=E.super;return T=E,E}var N=function(E,j){var I=A(E),L=O(I),W=L.Validation,Q=L.VBase,Z=new Q({computed:{children:function(){var R=typeof j=="function"?j.call(E):j;return[(0,e.h)(W,"$v",{validations:R,lazyParentModel:g,prop:"$v",model:E,rootModel:E})]}}});return Z},H={data:function(){var E=this.$options.validations;return E&&(this._vuelidate=N(this,E)),{}},beforeCreate:function(){var E=this.$options,j=E.validations;j&&(E.computed||(E.computed={}),!E.computed.$v&&(E.computed.$v=function(){return this._vuelidate?this._vuelidate.refs.$v.proxy:null}))},beforeDestroy:function(){this._vuelidate&&(this._vuelidate.$destroy(),this._vuelidate=null)}};t.validationMixin=H;function B(V){V.mixin(H)}var J=B;t.default=J})(ze);var wO=Bi,PO=function(){try{var t=wO(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Vm=PO,qm=Vm;function SO(t,e,r){e=="__proto__"&&qm?qm(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Zc=SO,CO=Zc,kO=Tn;function TO(t,e,r){(r!==void 0&&!kO(t[e],r)||r===void 0&&!(e in t))&&CO(t,e,r)}var Wm=TO;function MO(t){return function(e,r,i){for(var a=-1,n=Object(e),s=i(e),o=s.length;o--;){var u=s[t?o:++a];if(r(n[u],u,n)===!1)break}return e}}var DO=MO,AO=DO,OO=AO(),Xm=OO,Io={exports:{}};Io.exports,function(t,e){var r=Zt,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,n=a&&a.exports===i,s=n?r.Buffer:void 0,o=s?s.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var d=l.length,f=o?o(d):new l.constructor(d);return l.copy(f),f}t.exports=u}(Io,Io.exports);var Jm=Io.exports,Um=Jh;function zO(t){var e=new t.constructor(t.byteLength);return new Um(e).set(new Um(t)),e}var Kc=zO,EO=Kc;function jO(t,e){var r=e?EO(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Gm=jO;function IO(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}var _c=IO,NO=Ot,Ym=Object.create,LO=function(){function t(){}return function(e){if(!NO(e))return{};if(Ym)return Ym(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),FO=LO,BO=am,RO=BO(Object.getPrototypeOf,Object),$c=RO,HO=FO,VO=$c,qO=Nc;function WO(t){return typeof t.constructor=="function"&&!qO(t)?HO(VO(t)):{}}var Qm=WO,XO=An,JO=dr;function UO(t){return JO(t)&&XO(t)}var Zm=UO,GO=fi,YO=$c,QO=dr,ZO="[object Object]",KO=Function.prototype,_O=Object.prototype,Km=KO.toString,$O=_O.hasOwnProperty,ez=Km.call(Object);function tz(t){if(!QO(t)||GO(t)!=ZO)return!1;var e=YO(t);if(e===null)return!0;var r=$O.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Km.call(r)==ez}var xt=tz;function rz(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var _m=rz,iz=Zc,az=Tn,nz=Object.prototype,sz=nz.hasOwnProperty;function oz(t,e,r){var i=t[e];(!(sz.call(t,e)&&az(i,r))||r===void 0&&!(e in t))&&iz(t,e,r)}var ed=oz,lz=ed,uz=Zc;function cz(t,e,r,i){var a=!r;r||(r={});for(var n=-1,s=e.length;++n<s;){var o=e[n],u=i?i(r[o],t[o],o,r,t):void 0;u===void 0&&(u=t[o]),a?uz(r,o,u):lz(r,o,u)}return r}var Ca=cz;function dz(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var fz=dz,pz=Ot,hz=Nc,mz=fz,vz=Object.prototype,gz=vz.hasOwnProperty;function bz(t){if(!pz(t))return mz(t);var e=hz(t),r=[];for(var i in t)i=="constructor"&&(e||!gz.call(t,i))||r.push(i);return r}var yz=bz,xz=im,wz=yz,Pz=An;function Sz(t){return Pz(t)?xz(t,!0):wz(t)}var Ln=Sz,Cz=Ca,kz=Ln;function Tz(t){return Cz(t,kz(t))}var Mz=Tz,$m=Wm,Dz=Jm,Az=Gm,Oz=_c,zz=Qm,ev=So,tv=mt,Ez=Zm,jz=ko,Iz=Fi,Nz=Ot,Lz=xt,Fz=Ic,rv=_m,Bz=Mz;function Rz(t,e,r,i,a,n,s){var o=rv(t,r),u=rv(e,r),l=s.get(u);if(l){$m(t,r,l);return}var c=n?n(o,u,r+"",t,e,s):void 0,d=c===void 0;if(d){var f=tv(u),g=!f&&jz(u),S=!f&&!g&&Fz(u);c=u,f||g||S?tv(o)?c=o:Ez(o)?c=Oz(o):g?(d=!1,c=Dz(u,!0)):S?(d=!1,c=Az(u,!0)):c=[]:Lz(u)||ev(u)?(c=o,ev(o)?c=Bz(o):(!Nz(o)||Iz(o))&&(c=zz(u))):d=!1}d&&(s.set(u,c),a(c,u,i,n,s),s.delete(u)),$m(t,r,c)}var Hz=Rz,Vz=wo,qz=Wm,Wz=Xm,Xz=Hz,Jz=Ot,Uz=Ln,Gz=_m;function iv(t,e,r,i,a){t!==e&&Wz(e,function(n,s){if(a||(a=new Vz),Jz(n))Xz(t,e,s,r,iv,i,a);else{var o=i?i(Gz(t,s),n,s+"",t,e,a):void 0;o===void 0&&(o=n),qz(t,s,o)}},Uz)}var td=iv;function Yz(t){return t}var No=Yz;function Qz(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var av=Qz,Zz=av,nv=Math.max;function Kz(t,e,r){return e=nv(e===void 0?t.length-1:e,0),function(){for(var i=arguments,a=-1,n=nv(i.length-e,0),s=Array(n);++a<n;)s[a]=i[e+a];a=-1;for(var o=Array(e+1);++a<e;)o[a]=i[a];return o[e]=r(s),Zz(t,this,o)}}var sv=Kz;function _z(t){return function(){return t}}var $z=_z,eE=$z,ov=Vm,tE=No,rE=ov?function(t,e){return ov(t,"toString",{configurable:!0,enumerable:!1,value:eE(e),writable:!0})}:tE,iE=rE,aE=800,nE=16,sE=Date.now;function oE(t){var e=0,r=0;return function(){var i=sE(),a=nE-(i-r);if(r=i,a>0){if(++e>=aE)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var lE=oE,uE=iE,cE=lE,dE=cE(uE),lv=dE,fE=No,pE=sv,hE=lv;function mE(t,e){return hE(pE(t,e,fE),t+"")}var rd=mE,vE=Tn,gE=An,bE=To,yE=Ot;function xE(t,e,r){if(!yE(r))return!1;var i=typeof e;return(i=="number"?gE(r)&&bE(e,r.length):i=="string"&&e in r)?vE(r[e],t):!1}var uv=xE,wE=rd,PE=uv;function SE(t){return wE(function(e,r){var i=-1,a=r.length,n=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(n=t.length>3&&typeof n=="function"?(a--,n):void 0,s&&PE(r[0],r[1],s)&&(n=a<3?void 0:n,a=1),e=Object(e);++i<a;){var o=r[i];o&&t(e,o,i,n)}return e})}var cv=SE,CE=td,kE=cv,TE=kE(function(t,e,r,i){CE(t,e,r,i)}),dv=TE;function ME(t,e){for(var r=-1,i=t==null?0:t.length;++r<i&&e(t[r],r,t)!==!1;);return t}var fv=ME,DE=Xm,AE=On;function OE(t,e){return t&&DE(t,e,AE)}var zE=OE,EE=An;function jE(t,e){return function(r,i){if(r==null)return r;if(!EE(r))return t(r,i);for(var a=r.length,n=e?a:-1,s=Object(r);(e?n--:++n<a)&&i(s[n],n,s)!==!1;);return r}}var IE=jE,NE=zE,LE=IE,FE=LE(NE),Lo=FE,BE=No;function RE(t){return typeof t=="function"?t:BE}var HE=RE,VE=fv,qE=Lo,WE=HE,XE=mt;function JE(t,e){var r=XE(t)?VE:qE;return r(t,WE(e))}var UE=JE,Fo=Fi,pv=dv,GE=UE,YE=xt;function hv(){return!0}function mv(t,e,r,i,a,n){if(e===void 0)return hv}function id(t){GE(t,function(e,r){e===hv?delete t[r]:YE(e)&&id(e)})}var QE=function(t,e){if(!t)return e;if(!e)return t;var r;return Fo(t)||Fo(e)?r=function(){var i=[].slice.call(arguments),a=Fo(t)?t.apply(this,i):t,n=Fo(e)?e.apply(this,i):e,s=pv(a,n,mv);return id(s),s}:(r=pv(t,e,mv),id(r)),r};function ZE(t,e,r,i){var a=-1,n=t==null?0:t.length;for(i&&n&&(r=t[++a]);++a<n;)r=e(r,t[a],a,t);return r}var KE=ZE,_E=wo,$E=qc,e4=1,t4=2;function r4(t,e,r,i){var a=r.length,n=a,s=!i;if(t==null)return!n;for(t=Object(t);a--;){var o=r[a];if(s&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++a<n;){o=r[a];var u=o[0],l=t[u],c=o[1];if(s&&o[2]){if(l===void 0&&!(u in t))return!1}else{var d=new _E;if(i)var f=i(l,c,u,t,e,d);if(!(f===void 0?$E(c,l,e4|t4,i,d):f))return!1}}return!0}var i4=r4,a4=Ot;function n4(t){return t===t&&!a4(t)}var vv=n4,s4=vv,o4=On;function l4(t){for(var e=o4(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,s4(a)]}return e}var u4=l4;function c4(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var gv=c4,d4=i4,f4=u4,p4=gv;function h4(t){var e=f4(t);return e.length==1&&e[0][2]?p4(e[0][0],e[0][1]):function(r){return r===t||d4(r,t,e)}}var m4=h4;function v4(t,e){return t!=null&&e in Object(t)}var g4=v4,b4=zn,y4=So,x4=mt,w4=To,P4=Ec,S4=Sa;function C4(t,e,r){e=b4(e,t);for(var i=-1,a=e.length,n=!1;++i<a;){var s=S4(e[i]);if(!(n=t!=null&&r(t,s)))break;t=t[s]}return n||++i!=a?n:(a=t==null?0:t.length,!!a&&P4(a)&&w4(s,a)&&(x4(t)||y4(t)))}var k4=C4,T4=g4,M4=k4;function D4(t,e){return t!=null&&M4(t,e,T4)}var A4=D4,O4=qc,z4=En,E4=A4,j4=Xc,I4=vv,N4=gv,L4=Sa,F4=1,B4=2;function R4(t,e){return j4(t)&&I4(e)?N4(L4(t),e):function(r){var i=z4(r,t);return i===void 0&&i===e?E4(r,t):O4(e,i,F4|B4)}}var H4=R4;function V4(t){return function(e){return e==null?void 0:e[t]}}var q4=V4,W4=Uc;function X4(t){return function(e){return W4(e,t)}}var J4=X4,U4=q4,G4=J4,Y4=Xc,Q4=Sa;function Z4(t){return Y4(t)?U4(Q4(t)):G4(t)}var K4=Z4,_4=m4,$4=H4,ej=No,tj=mt,rj=K4;function ij(t){return typeof t=="function"?t:t==null?ej:typeof t=="object"?tj(t)?$4(t[0],t[1]):_4(t):rj(t)}var Bo=ij;function aj(t,e,r,i,a){return a(t,function(n,s,o){r=i?(i=!1,n):e(r,n,s,o)}),r}var nj=aj,sj=KE,oj=Lo,lj=Bo,uj=nj,cj=mt;function dj(t,e,r){var i=cj(t)?sj:uj,a=arguments.length<3;return i(t,lj(e),r,a,oj)}var Ro=dj,fj=td,pj=cv,hj=pj(function(t,e,r){fj(t,e,r)}),bv=hj,mj=ed,vj=zn,gj=To,yv=Ot,bj=Sa;function yj(t,e,r,i){if(!yv(t))return t;e=vj(e,t);for(var a=-1,n=e.length,s=n-1,o=t;o!=null&&++a<n;){var u=bj(e[a]),l=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return t;if(a!=s){var c=o[u];l=i?i(c,u,o):void 0,l===void 0&&(l=yv(c)?c:gj(e[a+1])?[]:{})}mj(o,u,l),o=o[u]}return t}var xj=yj,wj=xj;function Pj(t,e,r){return t==null?t:wj(t,e,r)}var xv=Pj;function Sj(t,e,r,i){for(var a=t.length,n=r+(i?1:-1);i?n--:++n<a;)if(e(t[n],n,t))return n;return-1}var Cj=Sj;function kj(t){return t!==t}var Tj=kj;function Mj(t,e,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}var Dj=Mj,Aj=Cj,Oj=Tj,zj=Dj;function Ej(t,e,r){return e===e?zj(t,e,r):Aj(t,Oj,r)}var wv=Ej,jj=wv;function Ij(t,e){var r=t==null?0:t.length;return!!r&&jj(t,e,0)>-1}var Pv=Ij;function Nj(t,e,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(e,t[i]))return!0;return!1}var Sv=Nj,Lj=Tc,Fj=Pv,Bj=Sv,Rj=zo,Hj=Dn,Vj=Mc,qj=200;function Wj(t,e,r,i){var a=-1,n=Fj,s=!0,o=t.length,u=[],l=e.length;if(!o)return u;r&&(e=Rj(e,Hj(r))),i?(n=Bj,s=!1):e.length>=qj&&(n=Vj,s=!1,e=new Lj(e));e:for(;++a<o;){var c=t[a],d=r==null?c:r(c);if(c=i||c!==0?c:0,s&&d===d){for(var f=l;f--;)if(e[f]===d)continue e;u.push(c)}else n(e,d,i)||u.push(c)}return u}var Xj=Wj,Cv=ba,Jj=So,Uj=mt,kv=Cv?Cv.isConcatSpreadable:void 0;function Gj(t){return Uj(t)||Jj(t)||!!(kv&&t&&t[kv])}var Yj=Gj,Qj=Oc,Zj=Yj;function Tv(t,e,r,i,a){var n=-1,s=t.length;for(r||(r=Zj),a||(a=[]);++n<s;){var o=t[n];e>0&&r(o)?e>1?Tv(o,e-1,r,i,a):Qj(a,o):i||(a[a.length]=o)}return a}var Mv=Tv,Kj=Xj,_j=Mv,$j=rd,Dv=Zm,e3=$j(function(t,e){return Dv(t)?Kj(t,_j(e,1,Dv,!0)):[]}),t3=e3,r3=td,Av=Ot;function Ov(t,e,r,i,a,n){return Av(t)&&Av(e)&&(n.set(e,t),r3(t,e,void 0,Ov,n),n.delete(e)),t}var i3=Ov,a3=av,n3=rd,s3=i3,o3=dv,l3=n3(function(t){return t.push(void 0,s3),a3(o3,void 0,t)}),u3=l3,c3=Ca,d3=On;function f3(t,e){return t&&c3(e,d3(e),t)}var p3=f3,h3=Ca,m3=Ln;function v3(t,e){return t&&h3(e,m3(e),t)}var g3=v3,b3=Ca,y3=zc;function x3(t,e){return b3(t,y3(t),e)}var w3=x3,P3=Oc,S3=$c,C3=zc,k3=Kh,T3=Object.getOwnPropertySymbols,M3=T3?function(t){for(var e=[];t;)P3(e,C3(t)),t=S3(t);return e}:k3,zv=M3,D3=Ca,A3=zv;function O3(t,e){return D3(t,A3(t),e)}var z3=O3,E3=Qh,j3=zv,I3=Ln;function N3(t){return E3(t,I3,j3)}var Ev=N3,L3=Object.prototype,F3=L3.hasOwnProperty;function B3(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&F3.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var R3=B3,H3=Kc;function V3(t,e){var r=e?H3(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var q3=V3,W3=/\w*$/;function X3(t){var e=new t.constructor(t.source,W3.exec(t));return e.lastIndex=t.lastIndex,e}var J3=X3,jv=ba,Iv=jv?jv.prototype:void 0,Nv=Iv?Iv.valueOf:void 0;function U3(t){return Nv?Object(Nv.call(t)):{}}var G3=U3,Y3=Kc,Q3=q3,Z3=J3,K3=G3,_3=Gm,$3="[object Boolean]",eI="[object Date]",tI="[object Map]",rI="[object Number]",iI="[object RegExp]",aI="[object Set]",nI="[object String]",sI="[object Symbol]",oI="[object ArrayBuffer]",lI="[object DataView]",uI="[object Float32Array]",cI="[object Float64Array]",dI="[object Int8Array]",fI="[object Int16Array]",pI="[object Int32Array]",hI="[object Uint8Array]",mI="[object Uint8ClampedArray]",vI="[object Uint16Array]",gI="[object Uint32Array]";function bI(t,e,r){var i=t.constructor;switch(e){case oI:return Y3(t);case $3:case eI:return new i(+t);case lI:return Q3(t,r);case uI:case cI:case dI:case fI:case pI:case hI:case mI:case vI:case gI:return _3(t,r);case tI:return new i;case rI:case nI:return new i(t);case iI:return Z3(t);case aI:return new i;case sI:return K3(t)}}var yI=bI,xI=Do,wI=dr,PI="[object Map]";function SI(t){return wI(t)&&xI(t)==PI}var CI=SI,kI=CI,TI=Dn,Lv=jc,Fv=Lv&&Lv.isMap,MI=Fv?TI(Fv):kI,DI=MI,AI=Do,OI=dr,zI="[object Set]";function EI(t){return OI(t)&&AI(t)==zI}var jI=EI,II=jI,NI=Dn,Bv=jc,Rv=Bv&&Bv.isSet,LI=Rv?NI(Rv):II,FI=LI,BI=wo,RI=fv,HI=ed,VI=p3,qI=g3,WI=Jm,XI=_c,JI=w3,UI=z3,GI=nm,YI=Ev,QI=Do,ZI=R3,KI=yI,_I=Qm,$I=mt,eN=ko,tN=DI,rN=Ot,iN=FI,aN=On,nN=Ln,sN=1,oN=2,lN=4,Hv="[object Arguments]",uN="[object Array]",cN="[object Boolean]",dN="[object Date]",fN="[object Error]",Vv="[object Function]",pN="[object GeneratorFunction]",hN="[object Map]",mN="[object Number]",qv="[object Object]",vN="[object RegExp]",gN="[object Set]",bN="[object String]",yN="[object Symbol]",xN="[object WeakMap]",wN="[object ArrayBuffer]",PN="[object DataView]",SN="[object Float32Array]",CN="[object Float64Array]",kN="[object Int8Array]",TN="[object Int16Array]",MN="[object Int32Array]",DN="[object Uint8Array]",AN="[object Uint8ClampedArray]",ON="[object Uint16Array]",zN="[object Uint32Array]",Be={};Be[Hv]=Be[uN]=Be[wN]=Be[PN]=Be[cN]=Be[dN]=Be[SN]=Be[CN]=Be[kN]=Be[TN]=Be[MN]=Be[hN]=Be[mN]=Be[qv]=Be[vN]=Be[gN]=Be[bN]=Be[yN]=Be[DN]=Be[AN]=Be[ON]=Be[zN]=!0,Be[fN]=Be[Vv]=Be[xN]=!1;function Ho(t,e,r,i,a,n){var s,o=e&sN,u=e&oN,l=e&lN;if(r&&(s=a?r(t,i,a,n):r(t)),s!==void 0)return s;if(!rN(t))return t;var c=$I(t);if(c){if(s=ZI(t),!o)return XI(t,s)}else{var d=QI(t),f=d==Vv||d==pN;if(eN(t))return WI(t,o);if(d==qv||d==Hv||f&&!a){if(s=u||f?{}:_I(t),!o)return u?UI(t,qI(s,t)):JI(t,VI(s,t))}else{if(!Be[d])return a?t:{};s=KI(t,d,o)}}n||(n=new BI);var g=n.get(t);if(g)return g;n.set(t,s),iN(t)?t.forEach(function(y){s.add(Ho(y,e,r,y,t,n))}):tN(t)&&t.forEach(function(y,x){s.set(x,Ho(y,e,r,x,t,n))});var S=l?u?YI:GI:u?nN:aN,h=c?void 0:S(t);return RI(h||t,function(y,x){h&&(x=y,y=t[x]),HI(s,x,Ho(y,e,r,x,t,n))}),s}var Wv=Ho;function EN(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var jN=EN;function IN(t,e,r){var i=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var n=Array(a);++i<a;)n[i]=t[i+e];return n}var NN=IN,LN=Uc,FN=NN;function BN(t,e){return e.length<2?t:LN(t,FN(e,0,-1))}var RN=BN,HN=zn,VN=jN,qN=RN,WN=Sa;function XN(t,e){return e=HN(e,t),t=qN(t,e),t==null||delete t[WN(VN(e))]}var JN=XN,UN=xt;function GN(t){return UN(t)?void 0:t}var YN=GN,QN=Mv;function ZN(t){var e=t==null?0:t.length;return e?QN(t,1):[]}var KN=ZN,_N=KN,$N=sv,e9=lv;function t9(t){return e9($N(t,void 0,_N),t+"")}var r9=t9,i9=zo,a9=Wv,n9=JN,s9=zn,o9=Ca,l9=YN,u9=r9,c9=Ev,d9=1,f9=2,p9=4,h9=u9(function(t,e){var r={};if(t==null)return r;var i=!1;e=i9(e,function(n){return n=s9(n,t),i||(i=n.length>1),n}),o9(t,c9(t),r),i&&(r=a9(r,d9|f9|p9,l9));for(var a=e.length;a--;)n9(r,e[a]);return r}),m9=h9,v9=Wv,g9=1,b9=4;function y9(t){return v9(t,g9|b9)}var x9=y9;/*!
@@ -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:{"data-control":e.controls.indexOf(s),boundary:"viewport","data-cy":`controls-${s.component}`,disabled:!e.canDragControl(s)},on:{mousedown:function(u){return e.disableEnableDragControl(s,u)}}},[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,"show-clipboard":e.showClipboard},on:{"tab-opened":function(i){e.currentPage=i},"close-clipboard":e.closeClipboard},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")},clipboard:e.openClipboard}}):e._e()]},proxy:!0},{key:"default",fn:function({currentPage:i}){return[e.isClipboardPage(i)?r("b-button",{staticClass:"no-text-transform",attrs:{variant:"link"},on:{click:e.clearClipboard}},[e._v(" "+e._s(e.$t("Clear All"))+" ")]):e._e(),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.extendedPages[i].items},on:{input:e.updateConfig}},"draggable",{group:{name:"controls"},swapThreshold:.5},!1),e._l(e.extendedPages[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"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Copy Control"),"data-test":"copy-control-btn"},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"})])],1)],1):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,"screen-type":e.screenType},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-auto mh-100 p-0 d-flex flex-column position-relative inspector-column"},[r("b-card",{staticClass:"p-0 h-100 border-top-0 border-bottom-0 border-right-0 rounded-0 inspector-column",attrs:{"no-body":""}},[e.showTemplatesPanel?r("div",[r("b-card-body",{staticClass:"p-2 h-100 overflow-auto screen-templates-column"},[r("screen-templates",{ref:"screenTemplates",attrs:{"shared-templates-data":e.sharedTemplatesData,"screen-id":e.screen.id,"screen-type":e.screen.type,currentScreenPage:e.currentPage},on:{"close-templates-panel":e.closeTemplatesPanel}})],1)],1):r("div",[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 e.shouldShow(a,i)?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)):e._e()}),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)},b$=[],y$=ie(v$,g$,b$,!1,null,"5d38b416",null,null);const TP=y$.exports,x$=1,w$={name:"FormMultiColumn",mixins:[ua,Ob,Yc],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:di,FormInput:Yi,FormSelectList:$.FormSelectList,FormTextArea:$.FormTextArea,FormCheckbox:$.FormCheckbox,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,..._a},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=x$;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 P$=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)])},S$=[],C$=ie(w$,P$,S$,!1,null,null,null,null);const Au=C$.exports,k$={type:"CodeEditor",field:"handler",config:{label:"Click Handler",helper:"The handler is a JavaScript function that will be executed when the button is clicked.",dataFeature:"i1177"}},MP={value:"string",content:"Text"},DP={value:"int",content:"Integer"},T$={value:"currency",content:"Currency"},M$={value:"password",content:"Password"},D$={value:"percentage",content:"Percentage"},AP={value:"float",content:"Decimal"},OP={value:"datetime",content:"Datetime"},zP={value:"date",content:"Date"},A$={value:"boolean",content:"Boolean"},O$=[MP,DP,T$,D$,AP,OP,zP,M$],z$=[MP,DP,AP];function Ou(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 E$(){return{type:"SelectDataTypeMask",field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const EP=Ou(O$),j$=Ou(z$),I$=Ou([A$]),jP=Ou([zP,OP]),IP=E$(),N$=[{editorComponent:$.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:$.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:2,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:$.FormInput,builderBinding:"FormInput",rendererComponent:Yi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:2,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:[Kt,Jr,EP,IP,Ji,Wn,Ta,hl,Xi,Wi,Xn]}},{editorComponent:$.FormTextArea,editorBinding:"FormTextArea",rendererComponent:$.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:5,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:[Kt,Jr,Wn,Ta,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Ji,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},hl,Xi,Wi,Xn]}},{editorComponent:$.FormSelectList,editorBinding:"FormSelectList",rendererComponent:$.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:3,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:ii.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],optionsListExtra:[],key:"value",value:"content",ariaLabel:"ariaLabel",valueTypeReturned:"single"},helper:null},inspector:[Kt,Jr,Wn,Ji,Ta,{type:"OptionsList",field:"options",config:{}},Xi,Wi,Xn,hl]}},{editorComponent:$.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:$.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:7,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:[Kt,Jr,Ta,Ji,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},Xi,Wi,Pg,bd]}},{editorComponent:$.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:$.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:6,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"}},Kt,Jr,jP,Ji,Wn,Ta,Xi,Wi,bd,Xn]}},{editorComponent:Gi,editorBinding:"FormButton",rendererComponent:Gi,rendererBinding:"FormButton",control:{popoverContent:"Add special buttons that link between subpages within this Form",order:2,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"}},wg,yd]}},{editorComponent:Au,editorBinding:"FormMultiColumn",rendererComponent:Au,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:3,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"}},Xi,Wi]}},{editorComponent:Ts,editorBinding:"FormLoop",rendererComponent:Ts,rendererBinding:"FormLoop",control:{popoverContent:"Add a repeatable section of content",order:6,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:js,editorBinding:"FormDynamicPanel",rendererComponent:js,rendererBinding:"FormDynamicPanel",control:{popoverContent:"Add a dynamic panel component",order:6,group:"Content Fields",label:"Dynamic Panel",component:"FormDynamicPanel","editor-component":"DynamicPanel","editor-control":"DynamicPanel",container:!0,items:[],config:{name:"",icon:"fas fa-th-large",settings:{type:"new",varname:"dynamic_panel",indexName:"",add:!1,emptyStateMessage:"No data available for this dynamic panel"}},inspector:[{type:"DynamicPanelInspector",field:"settings",config:{}}]}},{editorComponent:ku,editorBinding:"FormText",rendererComponent:Cu,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:5,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:ii.provideData,jsonData:""},form:"",source:{collectionFields:[],collectionFieldsColumns:[],pmql:null,sourceOptions:"Variable",variableStore:null,dataSelectionOptions:"no-selection",singleField:null}},inspector:[Kt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"collectionDataSource",field:"source",config:{label:"Source of Record List",helper:"A record list can display the data of a defined variable or a collection"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"},if:"hideControl"},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"FormMultiselect",field:"paginationOption",config:{icon:"fas",label:"Pagination",options:[{content:"No Pagination (show all)",value:0},{content:"5 items per page",value:5},{content:"10 items per page",value:10},{content:"15 items per page",value:15},{content:"25 items per page",value:25},{content:"50 items per page",value:50}]}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"},if:"hideControl"},{type:"collectionDesignerMode",field:"designerMode",config:{label:"Table Style",helper:""}},B5,F5,L5]}},{editorComponent:rs,editorBinding:"FormImage",rendererComponent:rs,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:4,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:Cn,editorBinding:"FormAvatar",rendererComponent:Cn,rendererBinding:"FormAvatar",control:{popoverContent:"User avatar",order:4,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:Gi,editorBinding:"FormSubmit",rendererComponent:Gi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:4,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:{},handler:""},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:"+pl}},kg,k$,Mg,Dg,Tg,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},yd]}},{editorComponent:Ms,editorBinding:"FormNestedScreen",rendererComponent:Ms,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add and reuse another Form within this Form",order:7,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:Sn,rendererBinding:"FileUpload",builderComponent:Sn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Collect files uploaded into the Form",order:2,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Kt,{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:ku,rendererBinding:"FormText",builderComponent:uo,builderBinding:"FileDownload",control:{popoverContent:"Offer a File download",order:3,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:$.BFormComponent,rendererBinding:"BFormComponent",builderComponent:$.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add one of several Bootstrap Vue components",order:2,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:[Kt,Jr,{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:"{}"}},Ji]}},{rendererComponent:$.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:$.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component",order:3,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:[Kt,Jr,{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:Ds,editorBinding:"FormListTable",rendererComponent:Ds,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:As,editorBinding:"FormAnalyticsChart",rendererComponent:As,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:7,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:Os,editorBinding:"LinkButton",rendererComponent:Os,rendererBinding:"LinkButton",control:{popoverContent:"Add a URL where this link should redirect",group:"Content Fields",order:7,label:"Link URL",component:"LinkButton","editor-component":"LinkButton","editor-control":"LinkButton",config:{label:"New Link",icon:"fas fa-link",variant:"primary",variantStyle:"link",event:"link",value:"link"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the link's text"}},{type:"FormInput",field:"linkUrl",config:{label:"Link URL",helper:"Type here the URL link. Mustache syntax is supported."}},R5,Cg]}},{control:{popoverContent:"Drag and paste copied elements to your desired location.",order:1,group:"Clipboard",label:"Drag & Paste",component:"Clipboard",config:{icon:"fa fa-clipboard"},inspector:[]}},{editorComponent:zs,editorBinding:"FormCollectionRecordControl",rendererComponent:zs,rendererBinding:"FormCollectionRecordControl",control:{popoverContent:"Create a Collection Record Control",order:7,group:"Content Fields",label:"Collection Record Control",component:"FormCollectionRecordControl","editor-component":"FormCollectionRecordControl","editor-control":"FormCollectionRecordControl",config:{name:"Collection Record Control",icon:"fas fa-database",label:"Collection Record Control",collectionmode:{modeId:"Edit",submitCollectionCheck:!0}},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}},{type:"collectionDisplayMode",field:"collectionmode",config:{label:"Mode",options:[{value:"Edit",text:"Edit"},{value:"View",text:"View"}]}}]}},{editorComponent:Es,editorBinding:"FormCollectionViewControl",rendererComponent:Es,rendererBinding:"FormCollectionViewControl",control:{popoverContent:"Create a Collection View Control",order:7,group:"Content Fields",label:"Collection Record View",component:"FormCollectionViewControl","editor-component":"FormCollectionViewControl","editor-control":"FormCollectionViewControl",config:{name:"Collection View Control",icon:"fas fa-database",label:"Collection View Control"},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}}]}},{editorComponent:Is,editorBinding:"CaseProgressBar",rendererComponent:Is,rendererBinding:"CaseProgressBar",control:{popoverContent:"Add a progress bar to show the status of a case",order:7,group:"Dashboards",label:"Case Progress Bar",component:"CaseProgressBar","editor-component":"CaseProgressBar","editor-control":"CaseProgressBar",config:{label:"New Case Progress Bar",icon:"fas fa-chart-bar",variant:"primary",event:"submit",name:null,fieldValue:null,tooltip:{}},inspector:[]}}],L$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NS4wNTYyIDczLjg4NkM4NS4wNTYyIDczLjg4NiAxMTUuMDggOTYuNjcgMTYwLjcyNCA1NC4wNjhDMjAxLjI2IDE2LjIzNDMgMjM0LjM1OSA3NS45Mjc1IDIzNC41OSAxMDQuNTEzQzIzNC44OSAxNDEuNTQzIDE5NC4wNTQgMTcxLjE3MyAyMTMuODcyIDE5NS40OTVDMjMzLjY5IDIxOS44MTcgMTc0LjU3IDI1OS45ODEgMTQyLjcwOCAyMjUuMjIyQzEwMy4wNzIgMTgxLjk4MyA5Mi4zMzQ1IDIxNy4xMTQgNjkuNzQyNSAyMTcuMTE0QzUzLjUyNzggMjE3LjExNCAyMC4yMzc2IDE3Ni44MjUgNDIuNzE4MSAxNDYuODUxQzYxLjYzNTIgMTIxLjYyOSA1MS4zMTgyIDExMy4yNTggNDYuMzIyIDEwNC41MTNDMzkuMTE0OSA5MS45MDIxIDU2LjIzMDQgNTcuNjcxNSA4NS4wNTYyIDczLjg4NloiIGZpbGw9IiNERUVFRkEiLz4KPHBhdGggZD0iTTIwNS41OTIgMTI0LjIzNUMyMDcuMjA2IDEyNC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0Ni4yIDE4Mi45NTEgMTQ2LjE0IDE4Mi43OUMxNDYuMDggMTgyLjYyOSAxNDYuMDU1IDE4Mi40NTggMTQ2LjA2NCAxODIuMjg3TDE0Ni40OTQgMTY5LjkwNUMxNDYuNTAzIDE2OS41NzEgMTQ2LjYzNyAxNjkuMjUzIDE0Ni44NyAxNjkuMDE0QzE0Ny4xMDMgMTY4Ljc3NSAxNDcuNDE3IDE2OC42MzMgMTQ3Ljc1IDE2OC42MTVWMTY4LjYxNVoiIGZpbGw9IiM1MkE1RUMiLz4KPHBhdGggZD0iTTE1NC4zMjIgMTYzLjMxN0MxNTUuMTc0IDE2Mi42OTEgMTU2LjQ2MyAxNjMuMDQyIDE1Ny4yNDMgMTY0LjExMkwxNzEuMTAzIDE4My4xMUMxNzEuOTMxIDE4NC4yNDUgMTcxLjg2NyAxODUuNzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",dne="",F$={props:["instanceId"],data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator.",label:"View error details"}},methods:{redirectToError(){this.instanceId&&(window.location.href=`/requests/${this.instanceId}`)}}};var B$=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("b-button",{attrs:{variant:"primary"},on:{click:e.redirectToError}},[e._v(e._s(e.$t(e.label)))])],1),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)))])])])},R$=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:L$}})])}],H$=ie(F$,B$,R$,!1,null,null,null,null);const V$=H$.exports,fne="",q$={components:{simpleErrorMessage:V$,VueFormRenderer:Si},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},isWebEntry:{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=null,setTimeout(()=>{this.renderComponent="simpleErrorMessage"},0)},loadScreen(t){this.disabled=!0;let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data,this.disabled=!1})},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},pageUpdate(){this.$emit("updated-page-core")},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{return 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){if(this.isWebEntry){this.$emit("completed",r);return}try{const i=this.resolveDestinationUrl(t);if(i){window.location.href=i;return}await this.handleNextRequestRedirection(t,e,r)}catch(i){console.error("Error processing completed redirect:",i),this.$emit("completed",r)}},resolveDestinationUrl(t){return t.endEventDestination.type!=="anotherProcess"?t.endEventDestination.value||`/requests/${this.requestId}`:null},async handleNextRequestRedirection(t,e,r){const i=await this.fetchNextRequest(t.endEventDestination),a=await this.fetchFirstTask(i);(a==null?void 0:a.user_id)===e?this.redirectToTask(a.id):this.redirectToRequest(r)},async fetchNextRequest(t){const e=this.parseJsonSafely(t.value);return await this.retryApiCall(()=>this.getNextRequest(e.processId,e.startEvent))},async fetchFirstTask(t){const e={processRequestId:t.data.id,status:"ACTIVE",page:1,perPage:1};return(await this.retryApiCall(()=>this.getTasks(e))).data.data[0]||null},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){var e,r;if(!((r=(e=t.params)==null?void 0:e.activeTokens)!=null&&r.includes(this.taskId)))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.renderComponent==="ConversationalForm"&&(window.location.href=`/tasks/${this.taskId}/edit`),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=>{var e;if(["ACTIVITY_ACTIVATED"].includes(t.event)){if((e=t.activeTokens)!=null&&e.includes(this.taskId))return;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 W$=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,taskdraft:this.task},on:{"update-page-task":e.pageUpdate,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:{"update-page-task":e.pageUpdate,update:e.onUpdate,"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)},X$=[],J$=ie(q$,W$,X$,!1,null,"8cad2101",null,null);const NP=J$.exports,hne="",U$={name:"Loop",components:{draggable:di,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Du,..._a},mixins:[ua,wn],props:["value","name","config","selected","validationErrors","screenType"],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)}})},onChange(t){this.$emit("update-state")}}};var G$=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},Y$=[],Q$=ie(U$,G$,Y$,!1,null,"9d689ab6",null,null);const LP=Q$.exports,mne="",Z$={name:"DynamicPanel",components:{draggable:di,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Du,..._a},mixins:[ua,wn],props:["value","name","config","selected","validationErrors","screenType"],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)}})},onChange(t){this.$emit("update-state")}}};var K$=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},_$=[],$$=ie(Z$,K$,_$,!1,null,"8968be54",null,null);const FP=$$.exports,vne="",eee=1,tee={name:"MultiColumn",components:{draggable:di,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Du,..._a},mixins:[ua,wn],props:["value","name","config","selected","validationErrors","screenType"],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=eee;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 ree=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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},iee=[],aee=ie(tee,ree,iee,!1,null,"fb76657c",null,null);const BP=aee.exports,nee={name:"default-loading-spinner"};var see=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},oee=[],lee=ie(nee,see,oee,!1,null,null,null,null);const RP=lee.exports,uee=!0;function zu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=zu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=zu(i))}}),e}const HP=async(t,e)=>{if(t.length===0)return;const r=xc(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+=zu(a.vdata),n+=zu(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})}},cee=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},dee=G.debounce(HP,500),Eu=[],fee=(t,e)=>{Eu.includes(t)||Eu.push(t),dee(Eu,e)},VP={namespaced:uee,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(){Eu.length=0},validate({commit:t},e){fee(e,t)},async validateNow({commit:t},e){await HP([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 cee(t,e)}}},ju={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),ju.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),ju.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),ju.methods.emitChanges())}}},Ti=class Ti{static saveToLocalStorage(e){localStorage.setItem("clipboard",JSON.stringify(e))}static loadFromLocalStorage(){const e=localStorage.getItem("clipboard");if(e)try{return JSON.parse(e)}catch(r){return console.error("Failed to parse clipboard data from localStorage:",r),[]}else return[]}static saveToServer(e){return Ti.saveToServerFn?Ti.saveToServerFn(e):Promise.resolve()}static loadFromServer(){return Ti.loadFromServerFn?Ti.loadFromServerFn().then(e=>{if(Array.isArray(e))return e;throw new Error("Invalid server response: Expected array for clipboard content")}).catch(e=>(console.error("Failed to load clipboard from server:",e),[])):Promise.resolve([])}};oe(Ti,"loadFromServerFn",null),oe(Ti,"saveToServerFn",null);let gt=Ti;const pee={namespaced:!0,state(){return{clipboard:[]}},getters:{clipboardItems:t=>t.clipboard,isInClipboard:t=>e=>!e||!e.uuid?!1:t.clipboard.some(r=>r.uuid===e.uuid)},mutations:{SET_CLIPBOARD(t,e){if(!Array.isArray(e))throw new Error("Clipboard content must be an array");t.clipboard.splice(0,t.clipboard.length,...e)},ADD_TO_CLIPBOARD(t,e){(Array.isArray(e)?e:[e]).forEach(i=>{i.uuid||(i.uuid=uh()),t.clipboard.some(a=>a.uuid===i.uuid)||t.clipboard.push(i)})},REMOVE_FROM_CLIPBOARD(t,e){if(!e||!e.uuid){console.error("Item or item uuid is missing");return}const r=t.clipboard.findIndex(i=>i.uuid===e.uuid);r!==-1&&t.clipboard.splice(r,1)},CLEAR_CLIPBOARD(t){t.clipboard.splice(0,t.clipboard.length)}},actions:{initializeClipboard({commit:t}){const e=gt.loadFromLocalStorage();t("SET_CLIPBOARD",e),gt.loadFromServer().then(r=>{r.length>0&&(t("SET_CLIPBOARD",r),gt.saveToLocalStorage(r))}),window.addEventListener("storage",r=>{if(r.key==="clipboard"){const i=gt.loadFromLocalStorage();t("SET_CLIPBOARD",i)}})},setupSaveToServerFn({commit:t},e){gt.saveToServerFn=e},setupLoadFromServerFn({commit:t},e){gt.loadFromServerFn=e},addToClipboard({commit:t,state:e},r){if(!r)throw new Error("Item is missing");t("ADD_TO_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},pushState({commit:t,state:e},r){t("SET_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},removeFromClipboard({commit:t,state:e},r){t("REMOVE_FROM_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},clearClipboard({commit:t,state:e}){t("CLEAR_CLIPBOARD"),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)}}},gne="",hee={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 mee=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)])])},vee=[],gee=ie(hee,mee,vee,!1,null,"d660c896",null,null);const qP=gee.exports,WP="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjI2MzIgNy4xMDUyOEgxNk0xNiA3LjEwNTI4TDE0LjAyNjMgOS4wNzg5Nk0xNiA3LjEwNTI4T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YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6bTI0IDI2NEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0di04MGMwLTEzLjI1NS0xMC43NDUtMjQtMjQtMjRIMjA1LjMzM2MtMTMuMjU1IDAtMjQgMTAuNzQ1LTI0IDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNHoiPjwvcGF0aD48L3N2Zz4=",bne="",bee=typeof window>"u"?global:window,yee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:si,Sortable:Tp},mixins:[Pc],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(){Bt.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 Bt(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){bee.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":WP,"../assets/icons/ErrorMessage.svg":XP,"../assets/icons/Unbypass.svg":JP,"../assets/icons/angle-double-right-solid.svg":UP,"../assets/icons/calendar-regular.svg":GP,"../assets/icons/caret-square-down-solid.svg":YP,"../assets/icons/check-square-solid.svg":QP,"../assets/icons/columns-solid.svg":ZP,"../assets/icons/font-solid.svg":KP,"../assets/icons/list-ul-solid.svg":_P,"../assets/icons/paragraph-solid.svg":$P,"../assets/icons/share-square-solid.svg":eS,"../assets/icons/square-regular.svg":tS,"../assets/icons/th-list-solid.svg":rS})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var xee=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)},wee=[],Pee=ie(yee,xee,wee,!1,null,"6d70559c",null,null);const See=Pee.exports,yne="",Cee={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 kee=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)},Tee=[],Mee=ie(Cee,kee,Tee,!1,null,"3824b29b",null,null);const Dee=Mee.exports,xne="",Aee=typeof window>"u"?global:window,Oee={name:"WatchersForm",components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,FormMultiSelect:$.FormMultiSelect,FormCheckbox:$.FormCheckbox,MonacoEditor:si,DataMapping:xp,OutboundConfig:Cp,ScreenVariableSelector:vp},mixins:[Pc],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()){Aee.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 zee=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"))+" ")])])])},Eee=[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"})])}],jee=ie(Oee,zee,Eee,!1,null,"74e7876e",null,null);const iS=jee.exports,wne="",Iee={components:{BasicSearch:qP,FormInput:$.FormInput,FormTextArea:$.FormTextArea,Sortable:Tp},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":WP,"../assets/icons/ErrorMessage.svg":XP,"../assets/icons/Unbypass.svg":JP,"../assets/icons/angle-double-right-solid.svg":UP,"../assets/icons/calendar-regular.svg":GP,"../assets/icons/caret-square-down-solid.svg":YP,"../assets/icons/check-square-solid.svg":QP,"../assets/icons/columns-solid.svg":ZP,"../assets/icons/font-solid.svg":KP,"../assets/icons/list-ul-solid.svg":_P,"../assets/icons/paragraph-solid.svg":$P,"../assets/icons/share-square-solid.svg":eS,"../assets/icons/square-regular.svg":tS,"../assets/icons/th-list-solid.svg":rS})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Nee=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"})]}}])})},Lee=[],Fee=ie(Iee,Nee,Lee,!1,null,"cfbb5df9",null,null);const aS=Fee.exports,Pne="",nS=typeof window>"u"?global:window,Bee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:si,WatchersList:aS,WatchersForm:iS},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){nS.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){nS.ProcessMaker.alert(t,"success")}}};var Ree=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)},Hee=[],Vee=ie(Bee,Ree,Hee,!1,null,"d5f54c66",null,null);const qee=Vee.exports,Sne="",Wee={..._a,FormMultiColumn:Au};function Xee(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const Jee={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",uc),t.component("FormImage",rs),t.component("FormAvatar",Cn),t.component("FormLoop",Ts),t.component("FormDynamicPanel",js),t.component("FormMultiColumn",Au),t.component("FormNestedScreen",Ms),t.component("FormRecordList",Cu),t.component("Loop",LP),t.component("DynamicPanel",FP),t.component("MultiColumn",BP),t.component("NewFormMultiColumn",fp),t.component("ScreenRenderer",Gw),t.component("Task",NP),t.component("VueFormBuilder",TP),t.component("VueFormRenderer",Si),t.component("DefaultLoadingSpinner",RP),t.use($),t.component("FormButton",Gi),t.component("FileUpload",Sn),t.component("FileDownload",uo),t.component("FormAnalyticsChart",As),t.component("FormMaskedInput",Yi),t.use(Ll),t.use(It),t.component("FormListTable",Ds),t.component("LinkButton",Os),t.component("CaseProgressBar",Is),t.component("FormCollectionRecordControl",zs),t.component("FormCollectionViewControl",Es);const e=new It.Store({modules:{globalErrorsModule:VP,undoRedoModule:ju,clipboardModule:pee}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return Xee(this).getDataReference(r,i)}}})}};function Uee(t,e){t.defaults.adapter=pb(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new El({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Y.AddLoopRow=uc,Y.AnalyticsSelector=bP,Y.BasicSearch=qP,Y.CaseProgressBar=Is,Y.Clipboard=wn,Y.CodeEditor=kp,Y.CollectionDesignerMode=tP,Y.CollectionDisplayMode=$w,Y.CollectionRecordsList=Tu,Y.CollectionSelectList=yp,Y.ColorSelect=Mu,Y.ColorSelectModern=rP,Y.ColorSelectRecord=Mu,Y.ColumnSetup=iP,Y.ComputedProperties=See,Y.ContainerColumns=aP,Y.Currencies=aY,Y.CurrentPageProperty=yc,Y.CustomCSS=Dee,Y.DataFormatProperty=IP,Y.DataMapping=xp,Y.DataReference=Eh,Y.DataTypeBooleanProperty=I$,Y.DataTypeDateTimeProperty=jP,Y.DataTypeProperty=EP,Y.DataTypeWithoutDateProperty=j$,Y.DefaultLoadingSpinner=RP,Y.DefaultValueEditor=wp,Y.DeviceDetector=Ih,Y.DeviceVisibility=gd,Y.DynamicPanel=FP,Y.DynamicPanelInspector=uP,Y.EditOption=nP,Y.EncryptedConfig=yP,Y.FileDownload=uo,Y.FileUpload=Sn,Y.FormAnalyticsChart=As,Y.FormAvatar=Cn,Y.FormBuilderControls=N$,Y.FormButton=Gi,Y.FormCollectionRecordControl=zs,Y.FormCollectionViewControl=Es,Y.FormDynamicPanel=js,Y.FormImage=rs,Y.FormInputMasked=Yi,Y.FormListTable=Ds,Y.FormLoop=Ts,Y.FormMaskedInput=Yi,Y.FormMultiselect=Pp,Y.FormNestedScreen=Ms,Y.FormRecordList=Cu,Y.FormRecordListStatic=Yw,Y.FormRequests=mp,Y.FormTasks=hp,Y.FormText=ku,Y.HasColorProperty=ua,Y.ImageUpload=sP,Y.ImageVariable=oP,Y.InputVariable=Sp,Y.Json2Vue=Db,Y.LabelSubmitButton=gP,Y.LabelSubmitButtonProperty=Dg,Y.LinkButton=Os,Y.LoadingSubmitButton=vP,Y.LoadingSubmitButtonProperty=Mg,Y.Loop=LP,Y.LoopInspector=lP,Y.MultiColumn=BP,Y.MultipleUploadsCheckbox=CP,Y.MustacheHelper=Ci,Y.NewFormMultiColumn=fp,Y.OptionsList=cP,Y.OutboundConfig=Cp,Y.PageSelect=dP,Y.RequiredCheckbox=SP,Y.ScreenBase=xd,Y.ScreenRendererError=cp,Y.ScreenSelector=fP,Y.SelectDataTypeMask=hP,Y.Task=NP,Y.Tooltip=vd,Y.ValidationMsg=ml,Y.ValidationSelect=mP,Y.VariableNameGenerator=PP,Y.VisibilityRule=Ag,Y.VueFormBuilder=TP,Y.VueFormRenderer=Si,Y.WatchersForm=iS,Y.WatchersList=aS,Y.WatchersPopup=qee,Y.WatchersSynchronous=Uw,Y.accordions=wP,Y.bgcolorProperty=Wi,Y.buttonLabelProperty=wg,Y.buttonTypeEvent=kg,Y.buttonVariantStyleProperty=yd,Y.canOpenJsonFile=RC,Y.collectionDataSource=_w,Y.colorProperty=Xi,Y.computedFields=Ah,Y.dataSourceValues=ii,Y.dataSources=Ns,Y.datatable=wc,Y.default=Jee,Y.defaultValueProperty=Xn,Y.defaultValues=N0,Y.deviceVisibilityProperty=H5,Y.disabledProperty=bd,Y.focusErrors=Pc,Y.formTypes=Ls,Y.formWatchers=_A,Y.getValidPath=Yc,Y.globalErrorsModule=VP,Y.globalProperties=LK,Y.helperTextProperty=Ta,Y.initializeScreenCache=Uee,Y.inspector=xP,Y.javascriptReservedKeywords=pl,Y.keyNameProperty=Kt,Y.labelProperty=Jr,Y.linkVariantStyleProperty=Cg,Y.multiselectApi=Ab,Y.mustacheEvaluation=Gd,Y.placeholderProperty=Wn,Y.readonlyProperty=hl,Y.renderer=Wee,Y.shouldElementBeVisible=Ob,Y.testing=Eb,Y.toggleStyleProperty=Pg,Y.tooltipProperty=Tg,Y.validationRulesProperty=Ji,Y.validators=vl,Y.watchers=Og,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
381
+ }`,modifiers:{hover:!0,right:!0}}],key:o,staticClass:"gray-text",attrs:{"data-control":e.controls.indexOf(s),boundary:"viewport","data-cy":`controls-${s.component}`,disabled:!e.canDragControl(s)},on:{mousedown:function(u){return e.disableEnableDragControl(s,u)}}},[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,"show-clipboard":e.showClipboard},on:{"tab-opened":function(i){e.currentPage=i},"close-clipboard":e.closeClipboard},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")},clipboard:e.openClipboard}}):e._e()]},proxy:!0},{key:"default",fn:function({currentPage:i}){return[e.isClipboardPage(i)?r("b-button",{staticClass:"no-text-transform",attrs:{variant:"link"},on:{click:e.clearClipboard}},[e._v(" "+e._s(e.$t("Clear All"))+" ")]):e._e(),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.extendedPages[i].items},on:{input:e.updateConfig}},"draggable",{group:{name:"controls"},swapThreshold:.5},!1),e._l(e.extendedPages[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"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Copy Control"),"data-test":"copy-control-btn"},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"})])],1)],1):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,"screen-type":e.screenType},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-auto mh-100 p-0 d-flex flex-column position-relative inspector-column"},[r("b-card",{staticClass:"p-0 h-100 border-top-0 border-bottom-0 border-right-0 rounded-0 inspector-column",attrs:{"no-body":""}},[e.showTemplatesPanel?r("div",[r("b-card-body",{staticClass:"p-2 h-100 overflow-auto screen-templates-column"},[r("screen-templates",{ref:"screenTemplates",attrs:{"shared-templates-data":e.sharedTemplatesData,"screen-id":e.screen.id,"screen-type":e.screen.type,currentScreenPage:e.currentPage},on:{"close-templates-panel":e.closeTemplatesPanel}})],1)],1):r("div",[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 e.shouldShow(a,i)?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)):e._e()}),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)},b$=[],y$=ie(v$,g$,b$,!1,null,"5d38b416",null,null);const TP=y$.exports,x$=1,w$={name:"FormMultiColumn",mixins:[ua,Ob,Yc],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:di,FormInput:Yi,FormSelectList:$.FormSelectList,FormTextArea:$.FormTextArea,FormCheckbox:$.FormCheckbox,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,..._a},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=x$;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 P$=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)])},S$=[],C$=ie(w$,P$,S$,!1,null,null,null,null);const Au=C$.exports,k$={type:"CodeEditor",field:"handler",config:{label:"Click Handler",helper:"The handler is a JavaScript function that will be executed when the button is clicked.",dataFeature:"i1177"}},MP={value:"string",content:"Text"},DP={value:"int",content:"Integer"},T$={value:"currency",content:"Currency"},M$={value:"password",content:"Password"},D$={value:"percentage",content:"Percentage"},AP={value:"float",content:"Decimal"},OP={value:"datetime",content:"Datetime"},zP={value:"date",content:"Date"},A$={value:"boolean",content:"Boolean"},O$=[MP,DP,T$,D$,AP,OP,zP,M$],z$=[MP,DP,AP];function Ou(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 E$(){return{type:"SelectDataTypeMask",field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const EP=Ou(O$),j$=Ou(z$),I$=Ou([A$]),jP=Ou([zP,OP]),IP=E$(),N$=[{editorComponent:$.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:$.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:2,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:$.FormInput,builderBinding:"FormInput",rendererComponent:Yi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:2,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:[Kt,Jr,EP,IP,Ji,Wn,Ta,hl,Xi,Wi,Xn]}},{editorComponent:$.FormTextArea,editorBinding:"FormTextArea",rendererComponent:$.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:5,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:[Kt,Jr,Wn,Ta,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Ji,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},hl,Xi,Wi,Xn]}},{editorComponent:$.FormSelectList,editorBinding:"FormSelectList",rendererComponent:$.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:3,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:ii.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],optionsListExtra:[],key:"value",value:"content",ariaLabel:"ariaLabel",valueTypeReturned:"single"},helper:null},inspector:[Kt,Jr,Wn,Ji,Ta,{type:"OptionsList",field:"options",config:{}},Xi,Wi,Xn,hl]}},{editorComponent:$.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:$.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:7,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:[Kt,Jr,Ta,Ji,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},Xi,Wi,Pg,bd]}},{editorComponent:$.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:$.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:6,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"}},Kt,Jr,jP,Ji,Wn,Ta,Xi,Wi,bd,Xn]}},{editorComponent:Gi,editorBinding:"FormButton",rendererComponent:Gi,rendererBinding:"FormButton",control:{popoverContent:"Add special buttons that link between subpages within this Form",order:2,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"}},wg,yd]}},{editorComponent:Au,editorBinding:"FormMultiColumn",rendererComponent:Au,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:3,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"}},Xi,Wi]}},{editorComponent:Ts,editorBinding:"FormLoop",rendererComponent:Ts,rendererBinding:"FormLoop",control:{popoverContent:"Add a repeatable section of content",order:6,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:js,editorBinding:"FormDynamicPanel",rendererComponent:js,rendererBinding:"FormDynamicPanel",control:{popoverContent:"Add a dynamic panel component",order:6,group:"Content Fields",label:"Dynamic Panel",component:"FormDynamicPanel","editor-component":"DynamicPanel","editor-control":"DynamicPanel",container:!0,items:[],config:{name:"",icon:"fas fa-th-large",settings:{type:"new",varname:"dynamic_panel",indexName:"",add:!1,emptyStateMessage:"No data available. Please configure an Index Name for this dynamic panel."}},inspector:[{type:"DynamicPanelInspector",field:"settings",config:{}}]}},{editorComponent:ku,editorBinding:"FormText",rendererComponent:Cu,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:5,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:ii.provideData,jsonData:""},form:"",source:{collectionFields:[],collectionFieldsColumns:[],pmql:null,sourceOptions:"Variable",variableStore:null,dataSelectionOptions:"no-selection",singleField:null}},inspector:[Kt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"collectionDataSource",field:"source",config:{label:"Source of Record List",helper:"A record list can display the data of a defined variable or a collection"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"},if:"hideControl"},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"FormMultiselect",field:"paginationOption",config:{icon:"fas",label:"Pagination",options:[{content:"No Pagination (show all)",value:0},{content:"5 items per page",value:5},{content:"10 items per page",value:10},{content:"15 items per page",value:15},{content:"25 items per page",value:25},{content:"50 items per page",value:50}]}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"},if:"hideControl"},{type:"collectionDesignerMode",field:"designerMode",config:{label:"Table Style",helper:""}},B5,F5,L5]}},{editorComponent:rs,editorBinding:"FormImage",rendererComponent:rs,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:4,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:Cn,editorBinding:"FormAvatar",rendererComponent:Cn,rendererBinding:"FormAvatar",control:{popoverContent:"User avatar",order:4,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:Gi,editorBinding:"FormSubmit",rendererComponent:Gi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:4,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:{},handler:""},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:"+pl}},kg,k$,Mg,Dg,Tg,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},yd]}},{editorComponent:Ms,editorBinding:"FormNestedScreen",rendererComponent:Ms,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add and reuse another Form within this Form",order:7,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:Sn,rendererBinding:"FileUpload",builderComponent:Sn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Collect files uploaded into the Form",order:2,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Kt,{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:ku,rendererBinding:"FormText",builderComponent:uo,builderBinding:"FileDownload",control:{popoverContent:"Offer a File download",order:3,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:$.BFormComponent,rendererBinding:"BFormComponent",builderComponent:$.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add one of several Bootstrap Vue components",order:2,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:[Kt,Jr,{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:"{}"}},Ji]}},{rendererComponent:$.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:$.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component",order:3,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:[Kt,Jr,{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:Ds,editorBinding:"FormListTable",rendererComponent:Ds,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:As,editorBinding:"FormAnalyticsChart",rendererComponent:As,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:7,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:Os,editorBinding:"LinkButton",rendererComponent:Os,rendererBinding:"LinkButton",control:{popoverContent:"Add a URL where this link should redirect",group:"Content Fields",order:7,label:"Link URL",component:"LinkButton","editor-component":"LinkButton","editor-control":"LinkButton",config:{label:"New Link",icon:"fas fa-link",variant:"primary",variantStyle:"link",event:"link",value:"link"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the link's text"}},{type:"FormInput",field:"linkUrl",config:{label:"Link URL",helper:"Type here the URL link. Mustache syntax is supported."}},R5,Cg]}},{control:{popoverContent:"Drag and paste copied elements to your desired location.",order:1,group:"Clipboard",label:"Drag & Paste",component:"Clipboard",config:{icon:"fa fa-clipboard"},inspector:[]}},{editorComponent:zs,editorBinding:"FormCollectionRecordControl",rendererComponent:zs,rendererBinding:"FormCollectionRecordControl",control:{popoverContent:"Create a Collection Record Control",order:7,group:"Content Fields",label:"Collection Record Control",component:"FormCollectionRecordControl","editor-component":"FormCollectionRecordControl","editor-control":"FormCollectionRecordControl",config:{name:"Collection Record Control",icon:"fas fa-database",label:"Collection Record Control",collectionmode:{modeId:"Edit",submitCollectionCheck:!0}},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}},{type:"collectionDisplayMode",field:"collectionmode",config:{label:"Mode",options:[{value:"Edit",text:"Edit"},{value:"View",text:"View"}]}}]}},{editorComponent:Es,editorBinding:"FormCollectionViewControl",rendererComponent:Es,rendererBinding:"FormCollectionViewControl",control:{popoverContent:"Create a Collection View Control",order:7,group:"Content Fields",label:"Collection Record View",component:"FormCollectionViewControl","editor-component":"FormCollectionViewControl","editor-control":"FormCollectionViewControl",config:{name:"Collection View Control",icon:"fas fa-database",label:"Collection View Control"},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}}]}},{editorComponent:Is,editorBinding:"CaseProgressBar",rendererComponent:Is,rendererBinding:"CaseProgressBar",control:{popoverContent:"Add a progress bar to show the status of a case",order:7,group:"Dashboards",label:"Case Progress Bar",component:"CaseProgressBar","editor-component":"CaseProgressBar","editor-control":"CaseProgressBar",config:{label:"New Case Progress Bar",icon:"fas fa-chart-bar",variant:"primary",event:"submit",name:null,fieldValue:null,tooltip:{}},inspector:[]}}],L$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3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IDE4NC4yNDUgMTcxLjg2NyAxODUuNzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",dne="",F$={props:["instanceId"],data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator.",label:"View error details"}},methods:{redirectToError(){this.instanceId&&(window.location.href=`/requests/${this.instanceId}`)}}};var B$=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("b-button",{attrs:{variant:"primary"},on:{click:e.redirectToError}},[e._v(e._s(e.$t(e.label)))])],1),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)))])])])},R$=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:L$}})])}],H$=ie(F$,B$,R$,!1,null,null,null,null);const V$=H$.exports,fne="",q$={components:{simpleErrorMessage:V$,VueFormRenderer:Si},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},isWebEntry:{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=null,setTimeout(()=>{this.renderComponent="simpleErrorMessage"},0)},loadScreen(t){this.disabled=!0;let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data,this.disabled=!1})},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},pageUpdate(){this.$emit("updated-page-core")},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{return 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(this.$emit("load-data-task",i),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){if(this.isWebEntry){this.$emit("completed",r);return}try{const i=this.resolveDestinationUrl(t);if(i){window.location.href=i;return}await this.handleNextRequestRedirection(t,e,r)}catch(i){console.error("Error processing completed redirect:",i),this.$emit("completed",r)}},resolveDestinationUrl(t){return t.endEventDestination.type!=="anotherProcess"?t.endEventDestination.value||`/requests/${this.requestId}`:null},async handleNextRequestRedirection(t,e,r){const i=await this.fetchNextRequest(t.endEventDestination),a=await this.fetchFirstTask(i);(a==null?void 0:a.user_id)===e?this.redirectToTask(a.id):this.redirectToRequest(r)},async fetchNextRequest(t){const e=this.parseJsonSafely(t.value);return await this.retryApiCall(()=>this.getNextRequest(e.processId,e.startEvent))},async fetchFirstTask(t){const e={processRequestId:t.data.id,status:"ACTIVE",page:1,perPage:1};return(await this.retryApiCall(()=>this.getTasks(e))).data.data[0]||null},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){var e,r;if(!((r=(e=t.params)==null?void 0:e.activeTokens)!=null&&r.includes(this.taskId)))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.renderComponent==="ConversationalForm"&&(window.location.href=`/tasks/${this.taskId}/edit`),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=>{var e;if(["ACTIVITY_ACTIVATED"].includes(t.event)){if((e=t.activeTokens)!=null&&e.includes(this.taskId))return;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 W$=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,taskdraft:this.task},on:{"update-page-task":e.pageUpdate,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:{"update-page-task":e.pageUpdate,update:e.onUpdate,"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)},X$=[],J$=ie(q$,W$,X$,!1,null,"e3133746",null,null);const NP=J$.exports,hne="",U$={name:"Loop",components:{draggable:di,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Du,..._a},mixins:[ua,wn],props:["value","name","config","selected","validationErrors","screenType"],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)}})},onChange(t){this.$emit("update-state")}}};var G$=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},Y$=[],Q$=ie(U$,G$,Y$,!1,null,"9d689ab6",null,null);const LP=Q$.exports,mne="",Z$={name:"DynamicPanel",components:{draggable:di,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Du,..._a},mixins:[ua,wn],props:["value","name","config","selected","validationErrors","screenType"],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)}})},onChange(t){this.$emit("update-state")}}};var K$=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},_$=[],$$=ie(Z$,K$,_$,!1,null,"8968be54",null,null);const FP=$$.exports,vne="",eee=1,tee={name:"MultiColumn",components:{draggable:di,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Du,..._a},mixins:[ua,wn],props:["value","name","config","selected","validationErrors","screenType"],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=eee;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 ree=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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),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-primary 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"})])],1)],1):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,"screen-type":e.screenType},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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},iee=[],aee=ie(tee,ree,iee,!1,null,"fb76657c",null,null);const BP=aee.exports,nee={name:"default-loading-spinner"};var see=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},oee=[],lee=ie(nee,see,oee,!1,null,null,null,null);const RP=lee.exports,uee=!0;function zu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=zu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=zu(i))}}),e}const HP=async(t,e)=>{if(t.length===0)return;const r=xc(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+=zu(a.vdata),n+=zu(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})}},cee=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},dee=G.debounce(HP,500),Eu=[],fee=(t,e)=>{Eu.includes(t)||Eu.push(t),dee(Eu,e)},VP={namespaced:uee,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(){Eu.length=0},validate({commit:t},e){fee(e,t)},async validateNow({commit:t},e){await HP([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 cee(t,e)}}},ju={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),ju.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),ju.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),ju.methods.emitChanges())}}},Ti=class Ti{static saveToLocalStorage(e){localStorage.setItem("clipboard",JSON.stringify(e))}static loadFromLocalStorage(){const e=localStorage.getItem("clipboard");if(e)try{return JSON.parse(e)}catch(r){return console.error("Failed to parse clipboard data from localStorage:",r),[]}else return[]}static saveToServer(e){return Ti.saveToServerFn?Ti.saveToServerFn(e):Promise.resolve()}static loadFromServer(){return Ti.loadFromServerFn?Ti.loadFromServerFn().then(e=>{if(Array.isArray(e))return e;throw new Error("Invalid server response: Expected array for clipboard content")}).catch(e=>(console.error("Failed to load clipboard from server:",e),[])):Promise.resolve([])}};oe(Ti,"loadFromServerFn",null),oe(Ti,"saveToServerFn",null);let gt=Ti;const pee={namespaced:!0,state(){return{clipboard:[]}},getters:{clipboardItems:t=>t.clipboard,isInClipboard:t=>e=>!e||!e.uuid?!1:t.clipboard.some(r=>r.uuid===e.uuid)},mutations:{SET_CLIPBOARD(t,e){if(!Array.isArray(e))throw new Error("Clipboard content must be an array");t.clipboard.splice(0,t.clipboard.length,...e)},ADD_TO_CLIPBOARD(t,e){(Array.isArray(e)?e:[e]).forEach(i=>{i.uuid||(i.uuid=uh()),t.clipboard.some(a=>a.uuid===i.uuid)||t.clipboard.push(i)})},REMOVE_FROM_CLIPBOARD(t,e){if(!e||!e.uuid){console.error("Item or item uuid is missing");return}const r=t.clipboard.findIndex(i=>i.uuid===e.uuid);r!==-1&&t.clipboard.splice(r,1)},CLEAR_CLIPBOARD(t){t.clipboard.splice(0,t.clipboard.length)}},actions:{initializeClipboard({commit:t}){const e=gt.loadFromLocalStorage();t("SET_CLIPBOARD",e),gt.loadFromServer().then(r=>{r.length>0&&(t("SET_CLIPBOARD",r),gt.saveToLocalStorage(r))}),window.addEventListener("storage",r=>{if(r.key==="clipboard"){const i=gt.loadFromLocalStorage();t("SET_CLIPBOARD",i)}})},setupSaveToServerFn({commit:t},e){gt.saveToServerFn=e},setupLoadFromServerFn({commit:t},e){gt.loadFromServerFn=e},addToClipboard({commit:t,state:e},r){if(!r)throw new Error("Item is missing");t("ADD_TO_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},pushState({commit:t,state:e},r){t("SET_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},removeFromClipboard({commit:t,state:e},r){t("REMOVE_FROM_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},clearClipboard({commit:t,state:e}){t("CLEAR_CLIPBOARD"),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)}}},gne="",hee={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 mee=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)])])},vee=[],gee=ie(hee,mee,vee,!1,null,"d660c896",null,null);const qP=gee.exports,WP="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjI2MzIgNy4xMDUyOEgxNk0xNiA3LjEwNTI4TDE0LjAyNjMgOS4wNzg5Nk0xNiA3LjEwNTI4TDE1LjAxMzIgNi4xMTg0M0wxNC4wMjYzIDUuMTMxNTkiIHN0cm9rZT0iIzZBNzg4OCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cmVjdCB4PSIzLjQ3OTEiIHk9IjAuOSIgd2lkdGg9IjcuNjczNjgiIGhlaWdodD0iMTIuNDEwNSIgcng9IjEuMSIgc3Ryb2tlPSIjNkE3ODg4IiBzdHJva2Utd2lkdGg9IjEuOCIvPgo8cGF0aCBkPSJNMSA2LjIwNTIyQzAuNTAyOTQ0IDYuMjA1MjIgMC4xIDYuNjA4MTcgMC4xIDcuMTA1MjJDMC4xIDcuNjAyMjggMC41MDI5NDQgOC4wMDUyMiAxIDguMDA1MjJMMS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UgMCAyNCAxMC43NDUgMjQgMjR6TTAgMzc2djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNGgxMDEuMzMzYzEzLjI1NSAwIDI0LTEwLjc0NSAyNC0yNHYtODBjMC0xMy4yNTUtMTAuNzQ1LTI0LTI0LTI0SDI0Yy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6TTEyNS4zMzMgMzJIMjRDMTAuNzQ1IDMyIDAgNDIuNzQ1IDAgNTZ2ODBjMCAxMy4yNTUgMTAuNzQ1IDI0IDI0IDI0aDEwMS4zMzNjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNHptODAgNDQ4SDQ4OGMxMy4yNTUgMCAyNC0xMC43NDUgMjQtMjR2LTgwYzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR2ODBjMCAxMy4yNTUgMTAuNzQ1IDI0IDI0IDI0em0tMjQtNDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6bTI0IDI2NEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0di04MGMwLTEzLjI1NS0xMC43NDUtMjQtMjQtMjRIMjA1LjMzM2MtMTMuMjU1IDAtMjQgMTAuNzQ1LTI0IDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNHoiPjwvcGF0aD48L3N2Zz4=",bne="",bee=typeof window>"u"?global:window,yee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:si,Sortable:Tp},mixins:[Pc],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(){Bt.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 Bt(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){bee.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":WP,"../assets/icons/ErrorMessage.svg":XP,"../assets/icons/Unbypass.svg":JP,"../assets/icons/angle-double-right-solid.svg":UP,"../assets/icons/calendar-regular.svg":GP,"../assets/icons/caret-square-down-solid.svg":YP,"../assets/icons/check-square-solid.svg":QP,"../assets/icons/columns-solid.svg":ZP,"../assets/icons/font-solid.svg":KP,"../assets/icons/list-ul-solid.svg":_P,"../assets/icons/paragraph-solid.svg":$P,"../assets/icons/share-square-solid.svg":eS,"../assets/icons/square-regular.svg":tS,"../assets/icons/th-list-solid.svg":rS})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var xee=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)},wee=[],Pee=ie(yee,xee,wee,!1,null,"6d70559c",null,null);const See=Pee.exports,yne="",Cee={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 kee=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)},Tee=[],Mee=ie(Cee,kee,Tee,!1,null,"3824b29b",null,null);const Dee=Mee.exports,xne="",Aee=typeof window>"u"?global:window,Oee={name:"WatchersForm",components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,FormMultiSelect:$.FormMultiSelect,FormCheckbox:$.FormCheckbox,MonacoEditor:si,DataMapping:xp,OutboundConfig:Cp,ScreenVariableSelector:vp},mixins:[Pc],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()){Aee.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 zee=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"))+" ")])])])},Eee=[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"})])}],jee=ie(Oee,zee,Eee,!1,null,"74e7876e",null,null);const iS=jee.exports,wne="",Iee={components:{BasicSearch:qP,FormInput:$.FormInput,FormTextArea:$.FormTextArea,Sortable:Tp},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":WP,"../assets/icons/ErrorMessage.svg":XP,"../assets/icons/Unbypass.svg":JP,"../assets/icons/angle-double-right-solid.svg":UP,"../assets/icons/calendar-regular.svg":GP,"../assets/icons/caret-square-down-solid.svg":YP,"../assets/icons/check-square-solid.svg":QP,"../assets/icons/columns-solid.svg":ZP,"../assets/icons/font-solid.svg":KP,"../assets/icons/list-ul-solid.svg":_P,"../assets/icons/paragraph-solid.svg":$P,"../assets/icons/share-square-solid.svg":eS,"../assets/icons/square-regular.svg":tS,"../assets/icons/th-list-solid.svg":rS})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Nee=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"})]}}])})},Lee=[],Fee=ie(Iee,Nee,Lee,!1,null,"cfbb5df9",null,null);const aS=Fee.exports,Pne="",nS=typeof window>"u"?global:window,Bee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:si,WatchersList:aS,WatchersForm:iS},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){nS.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){nS.ProcessMaker.alert(t,"success")}}};var Ree=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)},Hee=[],Vee=ie(Bee,Ree,Hee,!1,null,"d5f54c66",null,null);const qee=Vee.exports,Sne="",Wee={..._a,FormMultiColumn:Au};function Xee(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const Jee={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",uc),t.component("FormImage",rs),t.component("FormAvatar",Cn),t.component("FormLoop",Ts),t.component("FormDynamicPanel",js),t.component("FormMultiColumn",Au),t.component("FormNestedScreen",Ms),t.component("FormRecordList",Cu),t.component("Loop",LP),t.component("DynamicPanel",FP),t.component("MultiColumn",BP),t.component("NewFormMultiColumn",fp),t.component("ScreenRenderer",Gw),t.component("Task",NP),t.component("VueFormBuilder",TP),t.component("VueFormRenderer",Si),t.component("DefaultLoadingSpinner",RP),t.use($),t.component("FormButton",Gi),t.component("FileUpload",Sn),t.component("FileDownload",uo),t.component("FormAnalyticsChart",As),t.component("FormMaskedInput",Yi),t.use(Ll),t.use(It),t.component("FormListTable",Ds),t.component("LinkButton",Os),t.component("CaseProgressBar",Is),t.component("FormCollectionRecordControl",zs),t.component("FormCollectionViewControl",Es);const e=new It.Store({modules:{globalErrorsModule:VP,undoRedoModule:ju,clipboardModule:pee}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return Xee(this).getDataReference(r,i)}}})}};function Uee(t,e){t.defaults.adapter=pb(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new El({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Y.AddLoopRow=uc,Y.AnalyticsSelector=bP,Y.BasicSearch=qP,Y.CaseProgressBar=Is,Y.Clipboard=wn,Y.CodeEditor=kp,Y.CollectionDesignerMode=tP,Y.CollectionDisplayMode=$w,Y.CollectionRecordsList=Tu,Y.CollectionSelectList=yp,Y.ColorSelect=Mu,Y.ColorSelectModern=rP,Y.ColorSelectRecord=Mu,Y.ColumnSetup=iP,Y.ComputedProperties=See,Y.ContainerColumns=aP,Y.Currencies=aY,Y.CurrentPageProperty=yc,Y.CustomCSS=Dee,Y.DataFormatProperty=IP,Y.DataMapping=xp,Y.DataReference=Eh,Y.DataTypeBooleanProperty=I$,Y.DataTypeDateTimeProperty=jP,Y.DataTypeProperty=EP,Y.DataTypeWithoutDateProperty=j$,Y.DefaultLoadingSpinner=RP,Y.DefaultValueEditor=wp,Y.DeviceDetector=Ih,Y.DeviceVisibility=gd,Y.DynamicPanel=FP,Y.DynamicPanelInspector=uP,Y.EditOption=nP,Y.EncryptedConfig=yP,Y.FileDownload=uo,Y.FileUpload=Sn,Y.FormAnalyticsChart=As,Y.FormAvatar=Cn,Y.FormBuilderControls=N$,Y.FormButton=Gi,Y.FormCollectionRecordControl=zs,Y.FormCollectionViewControl=Es,Y.FormDynamicPanel=js,Y.FormImage=rs,Y.FormInputMasked=Yi,Y.FormListTable=Ds,Y.FormLoop=Ts,Y.FormMaskedInput=Yi,Y.FormMultiselect=Pp,Y.FormNestedScreen=Ms,Y.FormRecordList=Cu,Y.FormRecordListStatic=Yw,Y.FormRequests=mp,Y.FormTasks=hp,Y.FormText=ku,Y.HasColorProperty=ua,Y.ImageUpload=sP,Y.ImageVariable=oP,Y.InputVariable=Sp,Y.Json2Vue=Db,Y.LabelSubmitButton=gP,Y.LabelSubmitButtonProperty=Dg,Y.LinkButton=Os,Y.LoadingSubmitButton=vP,Y.LoadingSubmitButtonProperty=Mg,Y.Loop=LP,Y.LoopInspector=lP,Y.MultiColumn=BP,Y.MultipleUploadsCheckbox=CP,Y.MustacheHelper=Ci,Y.NewFormMultiColumn=fp,Y.OptionsList=cP,Y.OutboundConfig=Cp,Y.PageSelect=dP,Y.RequiredCheckbox=SP,Y.ScreenBase=xd,Y.ScreenRendererError=cp,Y.ScreenSelector=fP,Y.SelectDataTypeMask=hP,Y.Task=NP,Y.Tooltip=vd,Y.ValidationMsg=ml,Y.ValidationSelect=mP,Y.VariableNameGenerator=PP,Y.VisibilityRule=Ag,Y.VueFormBuilder=TP,Y.VueFormRenderer=Si,Y.WatchersForm=iS,Y.WatchersList=aS,Y.WatchersPopup=qee,Y.WatchersSynchronous=Uw,Y.accordions=wP,Y.bgcolorProperty=Wi,Y.buttonLabelProperty=wg,Y.buttonTypeEvent=kg,Y.buttonVariantStyleProperty=yd,Y.canOpenJsonFile=RC,Y.collectionDataSource=_w,Y.colorProperty=Xi,Y.computedFields=Ah,Y.dataSourceValues=ii,Y.dataSources=Ns,Y.datatable=wc,Y.default=Jee,Y.defaultValueProperty=Xn,Y.defaultValues=N0,Y.deviceVisibilityProperty=H5,Y.disabledProperty=bd,Y.focusErrors=Pc,Y.formTypes=Ls,Y.formWatchers=_A,Y.getValidPath=Yc,Y.globalErrorsModule=VP,Y.globalProperties=LK,Y.helperTextProperty=Ta,Y.initializeScreenCache=Uee,Y.inspector=xP,Y.javascriptReservedKeywords=pl,Y.keyNameProperty=Kt,Y.labelProperty=Jr,Y.linkVariantStyleProperty=Cg,Y.multiselectApi=Ab,Y.mustacheEvaluation=Gd,Y.placeholderProperty=Wn,Y.readonlyProperty=hl,Y.renderer=Wee,Y.shouldElementBeVisible=Ob,Y.testing=Eb,Y.toggleStyleProperty=Pg,Y.tooltipProperty=Tg,Y.validationRulesProperty=Ji,Y.validators=vl,Y.watchers=Og,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
382
382
  //# sourceMappingURL=vue-form-builder.umd.js.map