@processmaker/screen-builder 3.8.20 → 3.8.22
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.
|
@@ -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":"×",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":"×","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":"×"},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":"×"},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)},A$=[],O$=ie(M$,D$,A$,!1,null,"0db10927",null,null);const jS=O$.exports,z$=1,E$={name:"FormMultiColumn",mixins:[da,Bb,_c],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:fi,FormInput:Zi,FormSelectList:$.FormSelectList,FormTextArea:$.FormTextArea,FormCheckbox:$.FormCheckbox,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,...en},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=z$;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 j$=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)])},N$=[],I$=ie(E$,j$,N$,!1,null,null,null,null);const ju=I$.exports,L$={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"}},F$={type:"FormCheckbox",field:"handlerSecurityEnabled",config:{label:"Secure Handler Execution",toggle:!0,helper:"When enabled, the handler runs inside a sandboxed worker. Disable to allow full JavaScript access."}},NS={value:"string",content:"Text"},IS={value:"int",content:"Integer"},B$={value:"currency",content:"Currency"},R$={value:"password",content:"Password"},H$={value:"percentage",content:"Percentage"},LS={value:"float",content:"Decimal"},FS={value:"datetime",content:"Datetime"},BS={value:"date",content:"Date"},V$={value:"boolean",content:"Boolean"},q$=[NS,IS,B$,H$,LS,FS,BS,R$],W$=[NS,IS,LS];function Nu(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 X$(){return{type:"SelectDataTypeMask",field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const RS=Nu(q$),J$=Nu(W$),U$=Nu([V$]),HS=Nu([BS,FS]),VS=X$(),G$=[{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:Zi,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,Ur,RS,VS,Gi,Un,Da,bl,Ui,Ji,Gn]}},{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,Ur,Un,Da,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Gi,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},bl,Ui,Ji,Gn]}},{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:ai.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],optionsListExtra:[],key:"value",value:"content",ariaLabel:"ariaLabel",valueTypeReturned:"single"},helper:null},inspector:[Kt,Ur,Un,Gi,Da,{type:"OptionsList",field:"options",config:{}},Ui,Ji,Gn,bl]}},{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,Ur,Da,Gi,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},Ui,Ji,Og,Sd]}},{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,Ur,HS,Gi,Un,Da,Ui,Ji,Sd,Gn]}},{editorComponent:Yi,editorBinding:"FormButton",rendererComponent:Yi,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"}},Ag,Pd]}},{editorComponent:ju,editorBinding:"FormMultiColumn",rendererComponent:ju,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"}},Ui,Ji]}},{editorComponent:As,editorBinding:"FormLoop",rendererComponent:As,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:Ls,editorBinding:"FormDynamicPanel",rendererComponent:Ls,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:Au,editorBinding:"FormText",rendererComponent:Du,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:ai.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:""}},Z5,Y5,Q5]}},{editorComponent:ns,editorBinding:"FormImage",rendererComponent:ns,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:Mn,editorBinding:"FormAvatar",rendererComponent:Mn,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:Yi,editorBinding:"FormSubmit",rendererComponent:Yi,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:"",handlerSecurityEnabled:!0},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:"+gl}},jg,L$,F$,Ig,Lg,Ng,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},Pd,{type:"VariablesToSubmit",field:"variablesToSubmit",config:{label:"Variables to Submit",helper:"Select which variables should be included in the submission payload. Only variables from the parent (top-level) request can be used."}}]}},{editorComponent:Os,editorBinding:"FormNestedScreen",rendererComponent:Os,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:Tn,rendererBinding:"FileUpload",builderComponent:Tn,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:Au,rendererBinding:"FormText",builderComponent:ho,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,Ur,{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:"{}"}},Gi]}},{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,Ur,{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:zs,editorBinding:"FormListTable",rendererComponent:zs,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:Es,editorBinding:"FormAnalyticsChart",rendererComponent:Es,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:js,editorBinding:"LinkButton",rendererComponent:js,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."}},K5,Eg]}},{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:Ns,editorBinding:"FormCollectionRecordControl",rendererComponent:Ns,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:Is,editorBinding:"FormCollectionViewControl",rendererComponent:Is,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:Fs,editorBinding:"CaseProgressBar",rendererComponent:Fs,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:[]}}],Q$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+C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NzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",kne="",Y$={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 Z$=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)))])])])},K$=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:Q$}})])}],_$=ie(Y$,Z$,K$,!1,null,null,null,null);const $$=_$.exports,Tne="",eee={components:{simpleErrorMessage:$$,VueFormRenderer:Ci},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 a,n;if(this.disabled)return;this.disabled=!0;const i=t&&typeof t=="object"?t:this.requestData||{};t&&typeof t=="object"&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,i,e,r),(a=this.task)!=null&&a.allow_interstitial&&!this.loadingButton&&!this.disableInterstitial&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen),((n=this.task)==null?void 0:n.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 tee=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)},ree=[],iee=ie(eee,tee,ree,!1,null,"1e376439",null,null);const qS=iee.exports,Dne="",aee={name:"Loop",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],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 nee=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)},see=[],oee=ie(aee,nee,see,!1,null,"9d689ab6",null,null);const WS=oee.exports,Ane="",lee={name:"DynamicPanel",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],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 uee=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)},cee=[],dee=ie(lee,uee,cee,!1,null,"8968be54",null,null);const XS=dee.exports,One="",fee=1,pee={name:"MultiColumn",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],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=fee;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 hee=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)])])},mee=[],vee=ie(pee,hee,mee,!1,null,"fb76657c",null,null);const JS=vee.exports,gee={name:"default-loading-spinner"};var bee=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},yee=[],xee=ie(gee,bee,yee,!1,null,null,null,null);const US=xee.exports,wee=!0;function Iu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=Iu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=Iu(i))}}),e}const GS=async(t,e)=>{if(t.length===0)return;const r=Cc(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+=Iu(a.vdata),n+=Iu(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})}},See=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},Pee=G.debounce(GS,500),Lu=[],Cee=(t,e)=>{Lu.includes(t)||Lu.push(t),Pee(Lu,e)},QS={namespaced:wee,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(){Lu.length=0},validate({commit:t},e){Cee(e,t)},async validateNow({commit:t},e){await GS([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 See(t,e)}}},Fu={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),Fu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),Fu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),Fu.methods.emitChanges())}}},Mi=class Mi{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 Mi.saveToServerFn?Mi.saveToServerFn(e):Promise.resolve()}static loadFromServer(){return Mi.loadFromServerFn?Mi.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(Mi,"loadFromServerFn",null),oe(Mi,"saveToServerFn",null);let gt=Mi;const kee={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=mh()),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)}}},zne="",Tee={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)])])},Dee=[],Aee=ie(Tee,Mee,Dee,!1,null,"d660c896",null,null);const YS=Aee.exports,ZS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjI2MzIgNy4xMDUyOEgxNk0xNiA3LjEwNTI4TDE0LjAyNjMgOS4wNzg5Nk0xNiA3LjEwNTI4TDE1LjAxMzIgNi4xMTg0M0wxNC4wMjYzIDUuMTMxNTkiIHN0cm9rZT0iIzZBNzg4OCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cmVjdCB4PSIzLjQ3OTEiIHk9IjAuOSIgd2lkdGg9IjcuNjczNjgiIGhlaWdodD0iMTIuNDEwNSIgcng9IjEuMSIgc3Ryb2tlPSIjNkE3ODg4IiBzdHJva2Utd2lkdGg9IjEuOCIvPgo8cGF0aCBkPSJNMSA2LjIwNTIyQzAuNTAyOTQ0IDYuMjA1MjIgMC4xIDYuNjA4MTcgMC4xIDcuMTA1MjJDMC4xIDcuNjAyMj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(){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){Oee.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":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Eee=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":"×","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)},jee=[],Nee=ie(zee,Eee,jee,!1,null,"6d70559c",null,null);const Iee=Nee.exports,jne="",Lee={props:["value","cssErrors"],components:{MonacoEditor:oi},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 Fee=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":"×"},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)},Bee=[],Ree=ie(Lee,Fee,Bee,!1,null,"3824b29b",null,null);const Hee=Ree.exports,Nne="",Vee=typeof window>"u"?global:window,qee={name:"WatchersForm",components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,FormMultiSelect:$.FormMultiSelect,FormCheckbox:$.FormCheckbox,MonacoEditor:oi,DataMapping:kp,OutboundConfig:Ap,ScreenVariableSelector:wp},mixins:[Tc],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()){Vee.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 Wee=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"))+" ")])])])},Xee=[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(qee,Wee,Xee,!1,null,"74e7876e",null,null);const cP=Jee.exports,Ine="",Uee={components:{BasicSearch:YS,FormInput:$.FormInput,FormTextArea:$.FormTextArea,Sortable:zp},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":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Gee=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"})]}}])})},Qee=[],Yee=ie(Uee,Gee,Qee,!1,null,"cfbb5df9",null,null);const dP=Yee.exports,Lne="",fP=typeof window>"u"?global:window,Zee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:oi,WatchersList:dP,WatchersForm:cP},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){fP.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){fP.ProcessMaker.alert(t,"success")}}};var Kee=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":"×","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)},_ee=[],$ee=ie(Zee,Kee,_ee,!1,null,"d5f54c66",null,null);const ete=$ee.exports,Fne="",tte={...en,FormMultiColumn:ju};function rte(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const ite={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",pc),t.component("FormImage",ns),t.component("FormAvatar",Mn),t.component("FormLoop",As),t.component("FormDynamicPanel",Ls),t.component("FormMultiColumn",ju),t.component("FormNestedScreen",Os),t.component("FormRecordList",Du),t.component("Loop",WS),t.component("DynamicPanel",XS),t.component("MultiColumn",JS),t.component("NewFormMultiColumn",gp),t.component("ScreenRenderer",$w),t.component("Task",qS),t.component("VueFormBuilder",jS),t.component("VueFormRenderer",Ci),t.component("DefaultLoadingSpinner",US),t.use($),t.component("FormButton",Yi),t.component("FileUpload",Tn),t.component("FileDownload",ho),t.component("FormAnalyticsChart",Es),t.component("FormMaskedInput",Zi),t.use(Hl),t.use(Nt),t.component("FormListTable",zs),t.component("LinkButton",js),t.component("CaseProgressBar",Fs),t.component("FormCollectionRecordControl",Ns),t.component("FormCollectionViewControl",Is);const e=new Nt.Store({modules:{globalErrorsModule:QS,undoRedoModule:Fu,clipboardModule:kee}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return rte(this).getDataReference(r,i)}}})}};function ate(t,e){t.defaults.adapter=wb(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new Ll({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Q.AddLoopRow=pc,Q.AnalyticsSelector=CS,Q.BasicSearch=YS,Q.CaseProgressBar=Fs,Q.Clipboard=Cn,Q.CodeEditor=Op,Q.CollectionDesignerMode=oS,Q.CollectionDisplayMode=nS,Q.CollectionRecordsList=Ou,Q.CollectionSelectList=Cp,Q.ColorSelect=zu,Q.ColorSelectModern=lS,Q.ColorSelectRecord=zu,Q.ColumnSetup=uS,Q.ComputedProperties=Iee,Q.ContainerColumns=cS,Q.Currencies=dQ,Q.CurrentPageProperty=Pc,Q.CustomCSS=Hee,Q.DataFormatProperty=VS,Q.DataMapping=kp,Q.DataReference=Hh,Q.DataTypeBooleanProperty=U$,Q.DataTypeDateTimeProperty=HS,Q.DataTypeProperty=RS,Q.DataTypeWithoutDateProperty=J$,Q.DefaultLoadingSpinner=US,Q.DefaultValueEditor=Tp,Q.DeviceDetector=qh,Q.DeviceVisibility=wd,Q.DynamicPanel=XS,Q.DynamicPanelInspector=mS,Q.EditOption=dS,Q.EncryptedConfig=kS,Q.FileDownload=ho,Q.FileUpload=Tn,Q.FormAnalyticsChart=Es,Q.FormAvatar=Mn,Q.FormBuilderControls=G$,Q.FormButton=Yi,Q.FormCollectionRecordControl=Ns,Q.FormCollectionViewControl=Is,Q.FormDynamicPanel=Ls,Q.FormImage=ns,Q.FormInputMasked=Zi,Q.FormListTable=zs,Q.FormLoop=As,Q.FormMaskedInput=Zi,Q.FormMultiselect=Mp,Q.FormNestedScreen=Os,Q.FormRecordList=Du,Q.FormRecordListStatic=eS,Q.FormRequests=xp,Q.FormTasks=yp,Q.FormText=Au,Q.HasColorProperty=da,Q.ImageUpload=fS,Q.ImageVariable=pS,Q.InputVariable=Dp,Q.Json2Vue=Lb,Q.LabelSubmitButton=PS,Q.LabelSubmitButtonProperty=Lg,Q.LinkButton=js,Q.LoadingSubmitButton=SS,Q.LoadingSubmitButtonProperty=Ig,Q.Loop=WS,Q.LoopInspector=hS,Q.MultiColumn=JS,Q.MultipleUploadsCheckbox=zS,Q.MustacheHelper=ki,Q.NewFormMultiColumn=gp,Q.OptionsList=vS,Q.OutboundConfig=Ap,Q.PageSelect=gS,Q.RequiredCheckbox=OS,Q.ScreenBase=kd,Q.ScreenRendererError=mp,Q.ScreenSelector=bS,Q.SelectDataTypeMask=xS,Q.Task=qS,Q.Tooltip=xd,Q.ValidationMsg=yl,Q.ValidationSelect=wS,Q.VariableNameGenerator=AS,Q.VariablesToSubmit=TS,Q.VariablesToSubmitFilter=Cd,Q.VisibilityRule=Fg,Q.VueFormBuilder=jS,Q.VueFormRenderer=Ci,Q.WatchersForm=cP,Q.WatchersList=dP,Q.WatchersPopup=ete,Q.WatchersSynchronous=_w,Q.accordions=DS,Q.bgcolorProperty=Ji,Q.buttonLabelProperty=Ag,Q.buttonTypeEvent=jg,Q.buttonVariantStyleProperty=Pd,Q.canOpenJsonFile=KC,Q.collectionDataSource=aS,Q.colorProperty=Ui,Q.computedFields=Fh,Q.dataSourceValues=ai,Q.dataSources=Bs,Q.datatable=kc,Q.default=ite,Q.defaultValueProperty=Gn,Q.defaultValues=G0,Q.deviceVisibilityProperty=_5,Q.disabledProperty=Sd,Q.focusErrors=Tc,Q.formTypes=Rs,Q.formWatchers=cO,Q.getValidPath=_c,Q.globalErrorsModule=QS,Q.globalProperties=WK,Q.helperTextProperty=Da,Q.initializeScreenCache=ate,Q.inspector=MS,Q.javascriptReservedKeywords=gl,Q.keyNameProperty=Kt,Q.labelProperty=Ur,Q.linkVariantStyleProperty=Eg,Q.multiselectApi=Fb,Q.mustacheEvaluation=_d,Q.placeholderProperty=Un,Q.readonlyProperty=bl,Q.renderer=tte,Q.shouldElementBeVisible=Bb,Q.testing=Hb,Q.toggleStyleProperty=Og,Q.tooltipProperty=Ng,Q.validationRulesProperty=Gi,Q.validators=xl,Q.watchers=Bg,Object.defineProperties(Q,{__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":"×",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":"×","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":"×"},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":"×"},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)},A$=[],O$=ie(M$,D$,A$,!1,null,"0db10927",null,null);const jS=O$.exports,z$=1,E$={name:"FormMultiColumn",mixins:[da,Bb,_c],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:fi,FormInput:Zi,FormSelectList:$.FormSelectList,FormTextArea:$.FormTextArea,FormCheckbox:$.FormCheckbox,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,...en},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=z$;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 j$=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)])},N$=[],I$=ie(E$,j$,N$,!1,null,null,null,null);const ju=I$.exports,L$={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"}},F$={type:"FormCheckbox",field:"handlerSecurityEnabled",config:{label:"Secure Handler Execution",toggle:!0,helper:"When enabled, the handler runs inside a sandboxed worker. Disable to allow full JavaScript access."}},NS={value:"string",content:"Text"},IS={value:"int",content:"Integer"},B$={value:"currency",content:"Currency"},R$={value:"password",content:"Password"},H$={value:"percentage",content:"Percentage"},LS={value:"float",content:"Decimal"},FS={value:"datetime",content:"Datetime"},BS={value:"date",content:"Date"},V$={value:"boolean",content:"Boolean"},q$=[NS,IS,B$,H$,LS,FS,BS,R$],W$=[NS,IS,LS];function Nu(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 X$(){return{type:"SelectDataTypeMask",field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const RS=Nu(q$),J$=Nu(W$),U$=Nu([V$]),HS=Nu([BS,FS]),VS=X$(),G$=[{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:Zi,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,Ur,RS,VS,Gi,Un,Da,bl,Ui,Ji,Gn]}},{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,Ur,Un,Da,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Gi,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},bl,Ui,Ji,Gn]}},{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:ai.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],optionsListExtra:[],key:"value",value:"content",ariaLabel:"ariaLabel",valueTypeReturned:"single"},helper:null},inspector:[Kt,Ur,Un,Gi,Da,{type:"OptionsList",field:"options",config:{}},Ui,Ji,Gn,bl]}},{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,Ur,Da,Gi,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},Ui,Ji,Og,Sd]}},{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,Ur,HS,Gi,Un,Da,Ui,Ji,Sd,Gn]}},{editorComponent:Yi,editorBinding:"FormButton",rendererComponent:Yi,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"}},Ag,Pd]}},{editorComponent:ju,editorBinding:"FormMultiColumn",rendererComponent:ju,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"}},Ui,Ji]}},{editorComponent:As,editorBinding:"FormLoop",rendererComponent:As,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:Ls,editorBinding:"FormDynamicPanel",rendererComponent:Ls,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:Au,editorBinding:"FormText",rendererComponent:Du,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:ai.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:""}},Z5,Y5,Q5]}},{editorComponent:ns,editorBinding:"FormImage",rendererComponent:ns,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:Mn,editorBinding:"FormAvatar",rendererComponent:Mn,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:Yi,editorBinding:"FormSubmit",rendererComponent:Yi,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:"",handlerSecurityEnabled:!0},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:"+gl}},jg,L$,F$,Ig,Lg,Ng,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},Pd,{type:"VariablesToSubmit",field:"variablesToSubmit",config:{label:"Variables to Submit",helper:"Select which variables should be included in the submission payload. Only variables from the parent (top-level) request can be used."}}]}},{editorComponent:Os,editorBinding:"FormNestedScreen",rendererComponent:Os,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:Tn,rendererBinding:"FileUpload",builderComponent:Tn,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:Au,rendererBinding:"FormText",builderComponent:ho,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,Ur,{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:"{}"}},Gi]}},{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,Ur,{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:zs,editorBinding:"FormListTable",rendererComponent:zs,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:Es,editorBinding:"FormAnalyticsChart",rendererComponent:Es,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:js,editorBinding:"LinkButton",rendererComponent:js,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."}},K5,Eg]}},{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:Ns,editorBinding:"FormCollectionRecordControl",rendererComponent:Ns,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:Is,editorBinding:"FormCollectionViewControl",rendererComponent:Is,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:Fs,editorBinding:"CaseProgressBar",rendererComponent:Fs,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:[]}}],Q$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NS4wNTYyIDczLjg4NkM4NS4wNTYyIDczLjg4NiAxMTUuMDggOTYuNjcgMTYwLjcyNCA1NC4wNjhDMjAxLjI2IDE2LjIzNDMgM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jhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",kne="",Y$={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 Z$=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)))])])])},K$=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:Q$}})])}],_$=ie(Y$,Z$,K$,!1,null,null,null,null);const $$=_$.exports,Tne="",eee={components:{simpleErrorMessage:$$,VueFormRenderer:Ci},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 a,n;if(this.disabled)return;this.disabled=!0;const i=t&&typeof t=="object"?t:this.requestData||{};t&&typeof t=="object"&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,i,e,r),(a=this.task)!=null&&a.allow_interstitial&&!this.loadingButton&&!this.disableInterstitial&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen),((n=this.task)==null?void 0:n.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){const{event:e,elementDestination:r,tokenId:i}=t;e==="ACTIVITY_COMPLETED"&&this.task.id===i&&r&&(this.task.elementDestination=r,this.task.allow_interstitial=r.type==="displayNextAssignedTask"),e==="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,r,i,a;if((e=t==null?void 0:t.params[0])!=null&&e.tokenId&&((r=this.task.user)==null?void 0:r.id)===((i=t.params[0])==null?void 0:i.userId)||((a=this.task.elementDestination)==null?void 0:a.type)==="taskSource"){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 tee=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)},ree=[],iee=ie(eee,tee,ree,!1,null,"b674103a",null,null);const qS=iee.exports,Dne="",aee={name:"Loop",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],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 nee=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)},see=[],oee=ie(aee,nee,see,!1,null,"9d689ab6",null,null);const WS=oee.exports,Ane="",lee={name:"DynamicPanel",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],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 uee=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)},cee=[],dee=ie(lee,uee,cee,!1,null,"8968be54",null,null);const XS=dee.exports,One="",fee=1,pee={name:"MultiColumn",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],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=fee;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 hee=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)])])},mee=[],vee=ie(pee,hee,mee,!1,null,"fb76657c",null,null);const JS=vee.exports,gee={name:"default-loading-spinner"};var bee=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},yee=[],xee=ie(gee,bee,yee,!1,null,null,null,null);const US=xee.exports,wee=!0;function Iu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=Iu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=Iu(i))}}),e}const GS=async(t,e)=>{if(t.length===0)return;const r=Cc(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+=Iu(a.vdata),n+=Iu(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})}},See=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},Pee=G.debounce(GS,500),Lu=[],Cee=(t,e)=>{Lu.includes(t)||Lu.push(t),Pee(Lu,e)},QS={namespaced:wee,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(){Lu.length=0},validate({commit:t},e){Cee(e,t)},async validateNow({commit:t},e){await GS([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 See(t,e)}}},Fu={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),Fu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),Fu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),Fu.methods.emitChanges())}}},Mi=class Mi{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 Mi.saveToServerFn?Mi.saveToServerFn(e):Promise.resolve()}static loadFromServer(){return Mi.loadFromServerFn?Mi.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(Mi,"loadFromServerFn",null),oe(Mi,"saveToServerFn",null);let gt=Mi;const kee={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=mh()),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)}}},zne="",Tee={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)])])},Dee=[],Aee=ie(Tee,Mee,Dee,!1,null,"d660c896",null,null);const YS=Aee.exports,ZS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjI2MzIgNy4xMDUyOEgxNk0xNiA3LjEwNTI4TDE0LjAyNjMgOS4wNzg5Nk0xNiA3LjEwNTI4TDE1LjAxMzIgNi4xMTg0M0wxNC4wMjYzIDUuMTMxNTkiIHN0cm9rZT0iIzZBNzg4OCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cmVjdCB4PSIzLjQ3OTEiIHk9IjAuOSIgd2lkdGg9IjcuNjczNjgiIGhlaWdodD0iMTIuNDEwNSIgcng9IjEuMSIgc3Ryb2tlPSIjNkE3ODg4IiBzdHJva2Utd2lkdGg9IjEuOCIvPgo8cGF0aCBkPSJNMSA2LjIwNTIyQzA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ee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:oi,Sortable:zp},mixins:[Tc],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){Oee.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":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Eee=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":"×","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)},jee=[],Nee=ie(zee,Eee,jee,!1,null,"6d70559c",null,null);const Iee=Nee.exports,jne="",Lee={props:["value","cssErrors"],components:{MonacoEditor:oi},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 Fee=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":"×"},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)},Bee=[],Ree=ie(Lee,Fee,Bee,!1,null,"3824b29b",null,null);const Hee=Ree.exports,Nne="",Vee=typeof window>"u"?global:window,qee={name:"WatchersForm",components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,FormMultiSelect:$.FormMultiSelect,FormCheckbox:$.FormCheckbox,MonacoEditor:oi,DataMapping:kp,OutboundConfig:Ap,ScreenVariableSelector:wp},mixins:[Tc],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()){Vee.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 Wee=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"))+" ")])])])},Xee=[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(qee,Wee,Xee,!1,null,"74e7876e",null,null);const cP=Jee.exports,Ine="",Uee={components:{BasicSearch:YS,FormInput:$.FormInput,FormTextArea:$.FormTextArea,Sortable:zp},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":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Gee=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"})]}}])})},Qee=[],Yee=ie(Uee,Gee,Qee,!1,null,"cfbb5df9",null,null);const dP=Yee.exports,Lne="",fP=typeof window>"u"?global:window,Zee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:oi,WatchersList:dP,WatchersForm:cP},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){fP.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){fP.ProcessMaker.alert(t,"success")}}};var Kee=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":"×","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)},_ee=[],$ee=ie(Zee,Kee,_ee,!1,null,"d5f54c66",null,null);const ete=$ee.exports,Fne="",tte={...en,FormMultiColumn:ju};function rte(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const ite={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",pc),t.component("FormImage",ns),t.component("FormAvatar",Mn),t.component("FormLoop",As),t.component("FormDynamicPanel",Ls),t.component("FormMultiColumn",ju),t.component("FormNestedScreen",Os),t.component("FormRecordList",Du),t.component("Loop",WS),t.component("DynamicPanel",XS),t.component("MultiColumn",JS),t.component("NewFormMultiColumn",gp),t.component("ScreenRenderer",$w),t.component("Task",qS),t.component("VueFormBuilder",jS),t.component("VueFormRenderer",Ci),t.component("DefaultLoadingSpinner",US),t.use($),t.component("FormButton",Yi),t.component("FileUpload",Tn),t.component("FileDownload",ho),t.component("FormAnalyticsChart",Es),t.component("FormMaskedInput",Zi),t.use(Hl),t.use(Nt),t.component("FormListTable",zs),t.component("LinkButton",js),t.component("CaseProgressBar",Fs),t.component("FormCollectionRecordControl",Ns),t.component("FormCollectionViewControl",Is);const e=new Nt.Store({modules:{globalErrorsModule:QS,undoRedoModule:Fu,clipboardModule:kee}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return rte(this).getDataReference(r,i)}}})}};function ate(t,e){t.defaults.adapter=wb(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new Ll({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Q.AddLoopRow=pc,Q.AnalyticsSelector=CS,Q.BasicSearch=YS,Q.CaseProgressBar=Fs,Q.Clipboard=Cn,Q.CodeEditor=Op,Q.CollectionDesignerMode=oS,Q.CollectionDisplayMode=nS,Q.CollectionRecordsList=Ou,Q.CollectionSelectList=Cp,Q.ColorSelect=zu,Q.ColorSelectModern=lS,Q.ColorSelectRecord=zu,Q.ColumnSetup=uS,Q.ComputedProperties=Iee,Q.ContainerColumns=cS,Q.Currencies=dQ,Q.CurrentPageProperty=Pc,Q.CustomCSS=Hee,Q.DataFormatProperty=VS,Q.DataMapping=kp,Q.DataReference=Hh,Q.DataTypeBooleanProperty=U$,Q.DataTypeDateTimeProperty=HS,Q.DataTypeProperty=RS,Q.DataTypeWithoutDateProperty=J$,Q.DefaultLoadingSpinner=US,Q.DefaultValueEditor=Tp,Q.DeviceDetector=qh,Q.DeviceVisibility=wd,Q.DynamicPanel=XS,Q.DynamicPanelInspector=mS,Q.EditOption=dS,Q.EncryptedConfig=kS,Q.FileDownload=ho,Q.FileUpload=Tn,Q.FormAnalyticsChart=Es,Q.FormAvatar=Mn,Q.FormBuilderControls=G$,Q.FormButton=Yi,Q.FormCollectionRecordControl=Ns,Q.FormCollectionViewControl=Is,Q.FormDynamicPanel=Ls,Q.FormImage=ns,Q.FormInputMasked=Zi,Q.FormListTable=zs,Q.FormLoop=As,Q.FormMaskedInput=Zi,Q.FormMultiselect=Mp,Q.FormNestedScreen=Os,Q.FormRecordList=Du,Q.FormRecordListStatic=eS,Q.FormRequests=xp,Q.FormTasks=yp,Q.FormText=Au,Q.HasColorProperty=da,Q.ImageUpload=fS,Q.ImageVariable=pS,Q.InputVariable=Dp,Q.Json2Vue=Lb,Q.LabelSubmitButton=PS,Q.LabelSubmitButtonProperty=Lg,Q.LinkButton=js,Q.LoadingSubmitButton=SS,Q.LoadingSubmitButtonProperty=Ig,Q.Loop=WS,Q.LoopInspector=hS,Q.MultiColumn=JS,Q.MultipleUploadsCheckbox=zS,Q.MustacheHelper=ki,Q.NewFormMultiColumn=gp,Q.OptionsList=vS,Q.OutboundConfig=Ap,Q.PageSelect=gS,Q.RequiredCheckbox=OS,Q.ScreenBase=kd,Q.ScreenRendererError=mp,Q.ScreenSelector=bS,Q.SelectDataTypeMask=xS,Q.Task=qS,Q.Tooltip=xd,Q.ValidationMsg=yl,Q.ValidationSelect=wS,Q.VariableNameGenerator=AS,Q.VariablesToSubmit=TS,Q.VariablesToSubmitFilter=Cd,Q.VisibilityRule=Fg,Q.VueFormBuilder=jS,Q.VueFormRenderer=Ci,Q.WatchersForm=cP,Q.WatchersList=dP,Q.WatchersPopup=ete,Q.WatchersSynchronous=_w,Q.accordions=DS,Q.bgcolorProperty=Ji,Q.buttonLabelProperty=Ag,Q.buttonTypeEvent=jg,Q.buttonVariantStyleProperty=Pd,Q.canOpenJsonFile=KC,Q.collectionDataSource=aS,Q.colorProperty=Ui,Q.computedFields=Fh,Q.dataSourceValues=ai,Q.dataSources=Bs,Q.datatable=kc,Q.default=ite,Q.defaultValueProperty=Gn,Q.defaultValues=G0,Q.deviceVisibilityProperty=_5,Q.disabledProperty=Sd,Q.focusErrors=Tc,Q.formTypes=Rs,Q.formWatchers=cO,Q.getValidPath=_c,Q.globalErrorsModule=QS,Q.globalProperties=WK,Q.helperTextProperty=Da,Q.initializeScreenCache=ate,Q.inspector=MS,Q.javascriptReservedKeywords=gl,Q.keyNameProperty=Kt,Q.labelProperty=Ur,Q.linkVariantStyleProperty=Eg,Q.multiselectApi=Fb,Q.mustacheEvaluation=_d,Q.placeholderProperty=Un,Q.readonlyProperty=bl,Q.renderer=tte,Q.shouldElementBeVisible=Bb,Q.testing=Hb,Q.toggleStyleProperty=Og,Q.tooltipProperty=Ng,Q.validationRulesProperty=Gi,Q.validators=xl,Q.watchers=Bg,Object.defineProperties(Q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
382
382
|
//# sourceMappingURL=vue-form-builder.umd.js.map
|