var $e=Object.defineProperty,Le=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var Ie=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Te=(t,o,e)=>o in t?$e(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,K=(t,o)=>{for(var e in o||(o={}))Ie.call(o,e)&&Te(t,e,o[e]);if(Be)for(var e of Be(o))De.call(o,e)&&Te(t,e,o[e]);return t},ve=(t,o)=>Le(t,je(o));import{C as Clipboard,r as reactive,e as enUSLang,z as zhCNLang,_ as _export_sfc,a as axios,b as resolveComponent,o as openBlock,c as createBlock,w as withCtx,d as createBaseVNode,f as createVNode,g as createTextVNode,t as toDisplayString,h as createElementBlock,i as renderList,F as Fragment,j as createCommentVNode,n as normalizeStyle,k as renderSlot,l as normalizeClass,m as withDirectives,v as vShow,p as withModifiers,q as mitt,s as pushScopeId,u as popScopeId,x as createSlots,y as quillEditor,A as resolveDynamicComponent,B as normalizeProps,D as guardReactiveProps,E as mergeProps,G as ace,H as FileSaver_min,I as resolveDirective,J as require$$0,K as require$$1,L as commonjsGlobal,M as getDefaultExportFromCjs,N as edit,O as minus,P as plus,Q as infoFilled,R as search,S as circlePlus,T as _delete,U as arrowDown,V as arrowUp,W as isVNode,X as createApp,Y as installer}from"./vendor.503380a2.js";const p=function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const n of r.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&s(n)}).observe(document,{childList:!0,subtree:!0});function e(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerpolicy&&(r.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?r.credentials="include":i.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=e(i);fetch(i.href,r)}};p();const containers=[{type:"grid",category:"container",icon:"grid",cols:[],options:{name:"",hidden:!1,gutter:12,colHeight:null,customClass:""}},{type:"table",category:"container",icon:"table",rows:[],options:{name:"",hidden:!1,customClass:""}},{type:"tab",category:"container",icon:"tab",displayType:"border-card",tabs:[],options:{name:"",hidden:!1,customClass:""}},{type:"grid-col",category:"container",icon:"grid-col",internal:!0,widgetList:[],options:{name:"",hidden:!1,span:12,offset:0,push:0,pull:0,responsive:!1,md:12,sm:12,xs:12,customClass:""}},{type:"table-cell",category:"container",icon:"table-cell",internal:!0,widgetList:[],merged:!1,options:{name:"",cellWidth:"",cellHeight:"",colspan:1,rowspan:1,customClass:""}},{type:"tab-pane",category:"container",icon:"tab-pane",internal:!0,widgetList:[],options:{name:"",label:"",hidden:!1,active:!1,disabled:!1,customClass:""}}],basicFields=[{type:"input",icon:"text-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"text",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,showPassword:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,prefixIcon:"",suffixIcon:"",appendButton:!1,appendButtonDisabled:!1,buttonIcon:"custom-search",onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"textarea",icon:"textarea-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",rows:3,defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"number",icon:"number-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:0,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:-1e11,max:1e11,precision:0,step:1,controlsPosition:"right",onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"radio",icon:"radio-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"radio 1",value:1},{label:"radio 2",value:2},{label:"radio 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"checkbox",icon:"checkbox-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:[],columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"check 1",value:1},{label:"check 2",value:2},{label:"check 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"select",icon:"select-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,allowCreate:!1,remote:!1,automaticDropdown:!1,multiple:!1,multipleLimit:0,optionItems:[{label:"select 1",value:1},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onRemoteQuery:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time",icon:"time-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time-range",icon:"time-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date",icon:"date-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"date",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date-range",icon:"date-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"daterange",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",autoFullWidth:!0,labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"switch",icon:"switch-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,switchWidth:40,activeText:"",inactiveText:"",activeColor:null,inactiveColor:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"rate",icon:"rate-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,max:5,lowThreshold:2,highThreshold:4,allowHalf:!1,showText:!1,showScore:!1,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"color",icon:"color-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"slider",icon:"slider-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",columnWidth:"200px",showStops:!0,size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:0,max:100,step:10,range:!1,height:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"static-text",icon:"static-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,textContent:"static text",customClass:"",onCreated:"",onMounted:""}},{type:"html-text",icon:"html-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,htmlContent:"html text",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",displayStyle:"block",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],advancedFields=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpg","jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["doc","docx","xls","xlsx"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",placeholder:"",labelWidth:null,labelHidden:!1,contentHeight:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],customFields=[];function addContainerWidgetSchema(t){containers.push(t)}function addCustomWidgetSchema(t){customFields.push(t)}const formTemplates=[{title:"\u5355\u5217\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t1.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u591A\u5217\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t2.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u5206\u7EC4\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t3.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u6807\u7B7E\u9875\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t4.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u4E3B\u4ECE\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t5.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u54CD\u5E94\u5F0F\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t6.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u95EE\u5377\u8C03\u67E5\u8868",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t7.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u56FA\u5B9A\u8868\u683C\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t8.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."}];function isNull(t){return t==null}function isNotNull(t){return t!=null}function isEmptyStr(t){return t===void 0||!t&&t!==0&&t!=="0"||!/[^\s]/.test(t)}const generateId=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},deepClone=function(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))},overwriteObj=function(t,o){Object.keys(o).forEach(e=>{t[e]=o[e]})},addWindowResizeHandler=function(t){let o=window.onresize;typeof window.onresize!="function"?window.onresize=t:window.onresize=function(){o(),t()}},insertCustomCssToHead=function(t,o=""){let e=document.getElementsByTagName("head")[0],s=document.getElementById("vform-custom-css");s&&e.removeChild(s),o&&(s=document.getElementById("vform-custom-css-"+o),!!s&&e.removeChild(s));let i=document.createElement("style");i.type="text/css",i.rel="stylesheet",i.id=o?"vform-custom-css-"+o:"vform-custom-css";try{i.appendChild(document.createTextNode(t))}catch{i.styleSheet.cssText=t}e.appendChild(i)},insertGlobalFunctionsToHtml=function(t,o=""){let e=document.getElementsByTagName("body")[0],s=document.getElementById("v_form_global_functions");!!s&&e.removeChild(s),o&&(s=document.getElementById("v_form_global_functions-"+o),!!s&&e.removeChild(s));let i=document.createElement("script");i.id=o?"v_form_global_functions-"+o:"v_form_global_functions",i.type="text/javascript",i.innerHTML=t,e.appendChild(i)},loadRemoteScript=function(t,o){let e=encodeURIComponent(t);if(!document.getElementById(e)){let i=document.createElement("script");i.src=t,i.id=e,document.body.appendChild(i),i.onload=i.onreadystatechange=function(r,n){(n||!i.readyState||i.readyState==="loaded"||i.readyState==="complete")&&(i=i.onload=i.onreadystatechange=null,n||o())}}};function traverseFieldWidgets(t,o){t.map(e=>{e.formItemFlag?o(e):e.type==="grid"?e.cols.map(s=>{traverseFieldWidgets(s.widgetList,o)}):e.type==="table"?e.rows.map(s=>{s.cols.map(i=>{traverseFieldWidgets(i.widgetList,o)})}):e.type==="tab"?e.tabs.map(s=>{traverseFieldWidgets(s.widgetList,o)}):(e.type==="sub-form"||e.category==="container")&&traverseFieldWidgets(e.widgetList,o)})}function traverseContainWidgets(t,o){t.map(e=>{e.category==="container"&&o(e),e.type==="grid"?e.cols.map(s=>{traverseContainWidgets(s.widgetList,o)}):e.type==="table"?e.rows.map(s=>{s.cols.map(i=>{traverseContainWidgets(i.widgetList,o)})}):e.type==="tab"?e.tabs.map(s=>{traverseContainWidgets(s.widgetList,o)}):(e.type==="sub-form"||e.category==="container")&&traverseContainWidgets(e.widgetList,o)})}function traverseAllWidgets(t,o){t.map(e=>{o(e),e.type==="grid"?e.cols.map(s=>{o(s),traverseAllWidgets(s.widgetList,o)}):e.type==="table"?e.rows.map(s=>{s.cols.map(i=>{o(i),traverseAllWidgets(i.widgetList,o)})}):e.type==="tab"?e.tabs.map(s=>{traverseAllWidgets(s.widgetList,o)}):(e.type==="sub-form"||e.category==="container")&&traverseAllWidgets(e.widgetList,o)})}function handleWidgetForTraverse(t,o){t.category?traverseFieldWidgetsOfContainer(t,o):t.formItemFlag&&o(t)}function traverseFieldWidgetsOfContainer(t,o){t.type==="grid"?t.cols.forEach(e=>{e.widgetList.forEach(s=>{handleWidgetForTraverse(s,o)})}):t.type==="table"?t.rows.forEach(e=>{e.cols.forEach(s=>{s.widgetList.forEach(i=>{handleWidgetForTraverse(i,o)})})}):t.type==="tab"?t.tabs.forEach(e=>{e.widgetList.forEach(s=>{handleWidgetForTraverse(s,o)})}):t.type==="sub-form"?t.widgetList.forEach(e=>{handleWidgetForTraverse(e,o)}):t.category==="container"&&t.widgetList.forEach(e=>{handleWidgetForTraverse(e,o)})}function getAllFieldWidgets(t){let o=[];return traverseFieldWidgets(t,s=>{o.push({type:s.type,name:s.options.name,field:s})}),o}function getAllContainerWidgets(t){let o=[];return traverseContainWidgets(t,s=>{o.push({type:s.type,name:s.options.name,container:s})}),o}function copyToClipboard(t,o,e,s,i){const r=new Clipboard(o.target,{text:()=>t});r.on("success",()=>{e.success(s),r.destroy()}),r.on("error",()=>{e.error(i),r.destroy()}),r.onClick(o)}function getQueryParam(t){let e=window.location.search.substring(1).split("&");for(let s=0;s{s=isDef(s)&&isDef(s[i])?s[i]:null}),s}let locale=reactive({lang:localStorage.getItem("v_form_locale")||"zh-CN"});function createI18n(t){return{messages:t.messages,$st(o,...e){const s=get(this.messages[locale.lang],o);return typeof s=="function"?s(...e):s!==null?s:o},$st2(o,e){let s=this.messages[locale.lang];const i=get(s,o);return i!==null?i:get(s,e)},setLang(o){locale.lang=o}}}var enLocale={application:{"zh-CN":"\u7B80\u4F53\u4E2D\u6587","en-US":"English",productTitle:"Online Form Designer",github:"GitHub",document:"Docs",qqGroup:"WeChat Group",deployment:"Deployment",subscription:"Subscription"},designer:{componentLib:"Components",formLib:"Templates",containerTitle:"Container",dragHandlerHint:"drag container or field to layout center",dragAction:"drag",basicFieldTitle:"Basic Field",advancedFieldTitle:"Advanced Field",customFieldTitle:"Customized Field",noWidgetHint:"Please select a widget from the left list, drag and drop to this container.",widgetLabel:{grid:"Grid",table:"Table",tab:"Tab",section:"Section","sub-form":"SubForm","grid-col":"GridCol","table-cell":"TableCell","tab-pane":"TabPane","data-table":"DataTable",input:"Input",textarea:"Textarea",number:"InputNumber",radio:"Radio",checkbox:"Checkbox",select:"Select",time:"Time","time-range":"Time range",date:"Date","date-range":"Date range",switch:"Switch",rate:"Rate",color:"ColorPicker",slider:"Slider","static-text":"Text","html-text":"HTML",button:"Button",divider:"Divider","picture-upload":"Picture","file-upload":"File","rich-editor":"Rich Editor",cascader:"Cascader",slot:"Slot",custom:"Custom Component"},hint:{selectParentWidget:"Select parent of this widget",moveUpWidget:"Move up this widget",moveDownWidget:"Move down this widget",cloneWidget:"Clone this widget",insertRow:"Insert new row",insertColumn:"Insert new column",remove:"Remove this widget",cellSetting:"Cell setting",dragHandler:"Drag handler",copyField:"Copy field widget",onlyFieldWidgetAcceptable:"Only field widget can be dragged into sub-form",moveUpFirstChildHint:"First child can not be move up",moveDownLastChildHint:"Last child can not be move down",closePreview:"Close",copyJson:"Copy",saveFormJson:"Save As File",copyVueCode:"Copy Vue Code",copyHtmlCode:"Copy HTML Code",copyJsonSuccess:"Copy succeed",importJsonSuccess:"Import succeed",invalidJsonFormat:"Invalid JSON format",jsonVersionMismatch:"Version of JSON mismatch",copyJsonFail:"Copy failed",copyVueCodeSuccess:"Copy succeed",copyVueCodeFail:"Copy failed",copyHtmlCodeSuccess:"Copy succeed",copyHtmlCodeFail:"Copy failed",saveVueCode:"Save Vue File",saveHtmlCode:"Save Html File",getFormData:"Get Data",resetForm:"Reset",disableForm:"Disable",enableForm:"Enable",exportFormData:"Form Data",copyFormData:"Copy",saveFormData:"Save As File",copyVue2SFC:"Copy Vue2",copyVue3SFC:"Copy Vue3",copySFCFail:"Copy failed",copySFCSuccess:"Copy succeed",saveVue2SFC:"Save As Vue2",saveVue3SFC:"Save As Vue3",fileNameForSave:"File name:",saveFileTitle:"Save as File",fileNameInputPlaceholder:"Enter the file name",sampleLoadedSuccess:"Example loaded successfully",sampleLoadedFail:"Sample load failed",loadFormTemplate:"Load This",loadFormTemplateHint:"Are you sure to load this template?",loadFormTemplateSuccess:"Load form template success!",loadFormTemplateFailed:"Load form template failed.",currentNodeCannotBeSelected:"The current node cannot be selected.",widgetSetting:"Widget Config",formSetting:"Form Config",prompt:"Prompt",confirm:"OK",cancel:"Cancel",import:"Import",importJsonHint:"The code to be imported should have the following JSON format.",invalidOptionsData:"Invalid data of options:",lastPaneCannotBeDeleted:"The last pane cannot be deleted.",duplicateName:"Duplicate name: ",nameRequired:"Name required.",numberValidator:"Number",letterValidator:"Letter",letterAndNumberValidator:"LetterAndNumber",mobilePhoneValidator:"MobilePhone",emailValidator:"Email",urlValidator:"URL",noChineseValidator:"Non-Chinese",chineseValidator:"Chinese",rowspanNotConsistentForMergeEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForMergeEntireColumn:"Cells in this column don't have the same colspan, operation failed.",rowspanNotConsistentForDeleteEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForDeleteEntireColumn:"Cells in this column don't have the same colspan, operation failed.",lastColCannotBeDeleted:"The last col cannot be deleted.",lastRowCannotBeDeleted:"The last row cannot be deleted."},toolbar:{undoHint:"Undo",redoHint:"Redo",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"Tree View Of Component Hierarchy",nodeTreeTitle:"Tree View Of Component Hierarchy",clear:"Clear",preview:"Preview",importJson:"Import",exportJson:"Export",exportCode:"Codes",generateCode:"Generate Code",generateSFC:"Generate SFC"},setting:{basicSetting:"Basic Setting",attributeSetting:"Attribute Setting",commonSetting:"Common Setting",advancedSetting:"Advanced Setting",eventSetting:"Event Setting",uniqueName:"Unique Name",editNameHelp:"Press enter to confirm the modification",label:"Label",displayType:"Type",defaultValue:"Default Value",placeholder:"Placeholder",startPlaceholder:"Start Placeholder",endPlaceholder:"End Placeholder",widgetColumnWidth:"Width",widgetSize:"Size",autoFullWidth:"Auto Full Width",showStops:"Show Stops",displayStyle:"Display Style",inlineLayout:"inline",blockLayout:"block",buttonStyle:"Show As Button",border:"Show Border",labelWidth:"Width Of Label",rows:"Rows",labelHidden:"Hide Label",required:"Required",requiredHint:"Failure Hint",validation:"Validation",validationHelp:"Regular expressions supported",validationHint:"Validation Hint",readonly:"Readonly",disabled:"Disabled",hidden:"Hidden",textContent:"Text",htmlContent:"HTML",clearable:"Clearable",editable:"Editable",format:"Format",valueFormat:"Value Format",showPassword:"Show Reveal",filterable:"Filterable",allowCreate:"Allow Create",remote:"Remote Query",automaticDropdown:"Automatic Dropdown",multiple:"Multiple",multipleLimit:"Multiple Limit",contentPosition:"Content Position",plain:"Plain",round:"Round",circle:"Circle",icon:"Icon",optionsSetting:"Options Setting",addOption:"Add Option",importOptions:"Import Options",resetDefault:"Reset Default",uploadSetting:"Upload Setting",uploadURL:"Upload URL",uploadTip:"Tip Content",withCredentials:"Send Cookie",multipleSelect:"File Multi-select",showFileList:"Show File List",limit:"Max Upload Number",fileMaxSize:"Max Size(MB)",fileTypes:"Upload File Types",fileTypesHelp:"Allows to add more file types",headers:"Request Headers",cellWidth:"Width",cellHeight:"Height",gridColHeight:"Height Of Col(px)",gutter:"Gutter(px)",columnSetting:"Cols Setting",colsOfGrid:"Cols Of Grid:",colSpanTitle:"Spans Of Col",colOffsetTitle:"Offset Of Col",colPushTitle:"Push Of Col",colPullTitle:"Pull Of Col",addColumn:"Add Column",responsive:"Responsive",tabPaneSetting:"Tab Panes",addTabPane:"Add Tab Pane",paneActive:"Active",customLabelIcon:"Custom Label",labelIconClass:"Label Icon Class",labelIconPosition:"Label Icon Position",labelTooltip:"Label Tooltip",minValue:"Min Value",maxValue:"Max Value",precision:"Precision",step:"Step",controlsPosition:"Controls Position",minLength:"Min Length",maxLength:"Max Length",showWordLimit:"Show Word Limit",prefixIcon:"Prefix Icon",suffixIcon:"Suffix Icon",inputButton:"Input Button Setting",appendButton:"Append Button",appendButtonDisabled:"Button Disabled",appendButtonIcon:"Append Button Icon",buttonIcon:"Button Icon",switchWidth:"Width of Switch(px)",activeText:"Active Text",inactiveText:"Inactive Text",activeColor:"Active Color",inactiveColor:"Inactive Color",maxStars:"Stars Max Number",lowThreshold:"Low Threshold",highThreshold:"High Threshold",allowHalf:"Allow Half",showText:"Show Text",showScore:"Show Score",range:"Range",vertical:"Vertical",showBlankRow:"Show Blank Row",showRowNumber:"Show Row Number",contentHeight:"Content Area Height",insertColumnToLeft:"insert column to left",insertColumnToRight:"insert column to right",insertRowAbove:"insert row above",insertRowBelow:"insert row below",mergeLeftColumn:"merge left cell",mergeRightColumn:"merge right cell",mergeEntireRow:"merge entire row",mergeRowAbove:"merge cell above",mergeRowBelow:"merge cell below",mergeEntireColumn:"merge entire column",undoMergeCol:"undo merge column",undoMergeRow:"undo merge row",deleteEntireCol:"delete entire column",deleteEntireRow:"delete entire row",widgetName:"Unique Name",formSize:"Size",labelPosition:"Position Of Label",topPosition:"Top",leftPosition:"Left",labelAlign:"Label Align",leftAlign:"Left",centerAlign:"Center",rightAlign:"Right",formCss:"Form CSS",addCss:"Edit",customClass:"Custom Class",globalFunctions:"Global Functions",addEventHandler:"Edit",editWidgetEventHandler:"Edit Widget Event Handler",editFormEventHandler:"Edit Form Event Handler",formSFCSetting:"SFC Setting",formModelName:"Model Name",formRefName:"Ref Name",formRulesName:"Rules Name",syntaxCheckWarning:"Syntax error in the javascript codes, please check again!"}}},zhLocale={application:{"zh-CN":"\u7B80\u4F53\u4E2D\u6587","en-US":"English",productTitle:"\u8868\u5355\u8BBE\u8BA1\u5668",github:"GitHub",document:"\u6587\u6863",qqGroup:"\u6280\u672FWX\u7FA4",deployment:"\u79C1\u6709\u90E8\u7F72",subscription:"\u8BA2\u9605Pro"},designer:{componentLib:"\u7EC4\u4EF6\u5E93",formLib:"\u8868\u5355\u6A21\u677F",containerTitle:"\u5BB9\u5668",dragHandlerHint:"\u9F20\u6807\u62D6\u62FD\u5BB9\u5668\u7EC4\u4EF6\u6216\u5B57\u6BB5\u7EC4\u4EF6\u5E76\u653E\u7F6E\u4E8E\u8868\u5355\u4E2D",dragAction:"\u62D6\u52A8",basicFieldTitle:"\u57FA\u7840\u5B57\u6BB5",advancedFieldTitle:"\u9AD8\u7EA7\u5B57\u6BB5",customFieldTitle:"\u81EA\u5B9A\u4E49\u6269\u5C55\u5B57\u6BB5",noWidgetHint:"\u8BF7\u4ECE\u5DE6\u4FA7\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u7EC4\u4EF6, \u7136\u540E\u7528\u9F20\u6807\u62D6\u52A8\u7EC4\u4EF6\u653E\u7F6E\u4E8E\u6B64\u5904.",widgetLabel:{grid:"\u6805\u683C",table:"\u8868\u683C",tab:"\u6807\u7B7E\u9875",section:"\u533A\u5757","sub-form":"\u5B50\u8868\u5355","grid-col":"\u6805\u683C\u5217","table-cell":"\u5355\u5143\u683C","tab-pane":"\u9009\u9879\u5361\u9875","data-table":"\u6570\u636E\u8868\u683C",input:"\u5355\u884C\u8F93\u5165",textarea:"\u591A\u884C\u8F93\u5165",number:"\u8BA1\u6570\u5668",radio:"\u5355\u9009\u9879",checkbox:"\u591A\u9009\u9879",select:"\u4E0B\u62C9\u9009\u9879",time:"\u65F6\u95F4","time-range":"\u65F6\u95F4\u8303\u56F4",date:"\u65E5\u671F","date-range":"\u65E5\u671F\u8303\u56F4",switch:"\u5F00\u5173",rate:"\u8BC4\u5206",color:"\u989C\u8272\u9009\u62E9\u5668",slider:"\u6ED1\u5757","static-text":"\u9759\u6001\u6587\u5B57","html-text":"HTML",button:"\u6309\u94AE",divider:"\u5206\u9694\u7EBF","picture-upload":"\u56FE\u7247","file-upload":"\u6587\u4EF6","rich-editor":"\u5BCC\u6587\u672C",cascader:"\u7EA7\u8054\u9009\u62E9",slot:"\u63D2\u69FD",custom:"Custom Component"},hint:{selectParentWidget:"\u9009\u4E2D\u7236\u7EC4\u4EF6",moveUpWidget:"\u4E0A\u79FB\u7EC4\u4EF6",moveDownWidget:"\u4E0B\u79FB\u7EC4\u4EF6",cloneWidget:"\u590D\u5236\u7EC4\u4EF6",insertRow:"\u63D2\u5165\u65B0\u884C",insertColumn:"\u63D2\u5165\u65B0\u5217",remove:"\u79FB\u9664\u7EC4\u4EF6",cellSetting:"\u5355\u5143\u683C\u64CD\u4F5C",dragHandler:"\u62D6\u62FD\u624B\u67C4",copyField:"\u590D\u5236\u5B57\u6BB5\u7EC4\u4EF6",onlyFieldWidgetAcceptable:"\u5B50\u8868\u5355\u53EA\u80FD\u63A5\u6536\u5B57\u6BB5\u7EC4\u4EF6",moveUpFirstChildHint:"\u5DF2\u7ECF\u79FB\u52A8\u5230\u6700\u4E0A\u9762",moveDownLastChildHint:"\u5DF2\u7ECF\u79FB\u52A8\u5230\u6700\u4E0B\u9762",closePreview:"\u5173\u95ED",copyJson:"\u590D\u5236JSON",saveFormJson:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",copyVueCode:"\u590D\u5236Vue\u4EE3\u7801",copyHtmlCode:"\u590D\u5236HTML\u4EE3\u7801",copyJsonSuccess:"\u590D\u5236JSON\u6210\u529F",importJsonSuccess:"\u5BFC\u5165JSON\u6210\u529F",invalidJsonFormat:"\u65E0\u6548\u7684\u8868\u5355JSON\u683C\u5F0F",jsonVersionMismatch:"\u8868\u5355JSON\u7248\u672C\u53F7\u4E0D\u5339\u914D",copyJsonFail:"\u590D\u5236JSON\u5931\u8D25",copyVueCodeSuccess:"\u590D\u5236Vue\u4EE3\u7801\u6210\u529F",copyVueCodeFail:"\u590D\u5236Vue\u4EE3\u7801\u5931\u8D25",copyHtmlCodeSuccess:"\u590D\u5236HTML\u4EE3\u7801\u6210\u529F",copyHtmlCodeFail:"\u590D\u5236HTML\u4EE3\u7801\u5931\u8D25",saveVueCode:"\u4FDD\u5B58Vue\u6587\u4EF6",saveHtmlCode:"\u4FDD\u5B58Html\u6587\u4EF6",getFormData:"\u83B7\u53D6\u6570\u636E",resetForm:"\u91CD\u7F6E\u8868\u5355",disableForm:"\u7981\u7528\u7F16\u8F91",enableForm:"\u6062\u590D\u7F16\u8F91",exportFormData:"\u8868\u5355\u6570\u636E",copyFormData:"\u590D\u5236JSON",saveFormData:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",copyVue2SFC:"\u590D\u5236Vue2\u4EE3\u7801",copyVue3SFC:"\u590D\u5236Vue3\u4EE3\u7801",copySFCFail:"\u590D\u5236SFC\u4EE3\u7801\u5931\u8D25",copySFCSuccess:"\u590D\u5236SFC\u4EE3\u7801\u6210\u529F",saveVue2SFC:"\u4FDD\u5B58\u4E3AVue2\u7EC4\u4EF6",saveVue3SFC:"\u4FDD\u5B58\u4E3AVue3\u7EC4\u4EF6",fileNameForSave:"\u6587\u4EF6\u540D\uFF1A",saveFileTitle:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",fileNameInputPlaceholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D",sampleLoadedSuccess:"\u8868\u5355\u793A\u4F8B\u52A0\u8F7D\u6210\u529F",sampleLoadedFail:"\u8868\u5355\u793A\u4F8B\u52A0\u8F7D\u5931\u8D25",loadFormTemplate:"\u52A0\u8F7D\u6B64\u6A21\u677F",loadFormTemplateHint:"\u662F\u5426\u52A0\u8F7D\u8FD9\u4E2A\u6A21\u677F\uFF1F\u52A0\u8F7D\u540E\u4F1A\u8986\u76D6\u8BBE\u8BA1\u5668\u5F53\u524D\u8868\u5355\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u201C\u64A4\u9500\u201D\u529F\u80FD\u6062\u590D\u3002",loadFormTemplateSuccess:"\u8868\u5355\u6A21\u677F\u52A0\u8F7D\u6210\u529F",loadFormTemplateFailed:"\u8868\u5355\u6A21\u677F\u52A0\u8F7D\u5931\u8D25",currentNodeCannotBeSelected:"\u5F53\u524D\u7EC4\u4EF6\u8282\u70B9\u4E0D\u53EF\u9009\u62E9",widgetSetting:"\u7EC4\u4EF6\u8BBE\u7F6E",formSetting:"\u8868\u5355\u8BBE\u7F6E",prompt:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",import:"\u5BFC\u5165",importJsonHint:"\u5BFC\u5165\u7684JSON\u5185\u5BB9\u987B\u7B26\u5408\u4E0B\u8FF0\u683C\u5F0F\uFF0C\u4EE5\u4FDD\u8BC1\u987A\u5229\u5BFC\u5165.",invalidOptionsData:"\u65E0\u6548\u7684\u9009\u9879\u6570\u636E:",lastPaneCannotBeDeleted:"\u4EC5\u5269\u4E00\u4E2A\u9009\u9879\u5361\u9875\u4E0D\u53EF\u5220\u9664.",duplicateName:"\u7EC4\u4EF6\u540D\u79F0\u5DF2\u5B58\u5728: ",nameRequired:"\u7EC4\u4EF6\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A",numberValidator:"\u6570\u5B57",letterValidator:"\u5B57\u6BCD",letterAndNumberValidator:"\u6570\u5B57\u5B57\u6BCD",mobilePhoneValidator:"\u624B\u673A\u53F7\u7801",emailValidator:"\u90AE\u7BB1",urlValidator:"\u7F51\u5740",noChineseValidator:"\u975E\u4E2D\u6587\u5B57\u7B26",chineseValidator:"\u4EC5\u4E2D\u6587\u5B57\u7B26",rowspanNotConsistentForMergeEntireRow:"\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u884C.",colspanNotConsistentForMergeEntireColumn:"\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u5217.",rowspanNotConsistentForDeleteEntireRow:"\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u884C.",colspanNotConsistentForDeleteEntireColumn:"\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u5217.",lastColCannotBeDeleted:"\u6700\u540E\u4E00\u5217\u4E0D\u53EF\u5220\u9664.",lastRowCannotBeDeleted:"\u6700\u540E\u4E00\u884C\u4E0D\u53EF\u5220\u9664."},toolbar:{undoHint:"\u64A4\u9500",redoHint:"\u91CD\u505A",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"\u7EC4\u4EF6\u5C42\u6B21\u7ED3\u6784\u6811",nodeTreeTitle:"\u7EC4\u4EF6\u5C42\u6B21\u7ED3\u6784\u6811",clear:"\u6E05\u7A7A",preview:"\u9884\u89C8",importJson:"\u5BFC\u5165JSON",exportJson:"\u5BFC\u51FAJSON",exportCode:"\u5BFC\u51FA\u4EE3\u7801",generateCode:"\u751F\u6210\u4EE3\u7801",generateSFC:"\u751F\u6210SFC"},setting:{basicSetting:"\u57FA\u672C\u5C5E\u6027",attributeSetting:"\u5C5E\u6027\u8BBE\u7F6E",commonSetting:"\u5E38\u89C1\u5C5E\u6027",advancedSetting:"\u9AD8\u7EA7\u5C5E\u6027",eventSetting:"\u4E8B\u4EF6\u5C5E\u6027",uniqueName:"\u552F\u4E00\u540D\u79F0",editNameHelp:"\u4FEE\u6539\u540D\u79F0\u540E\u9700\u6309\u56DE\u8F66\u786E\u8BA4",label:"\u6807\u7B7E",displayType:"\u663E\u793A\u7C7B\u578B",defaultValue:"\u9ED8\u8BA4\u503C",placeholder:"\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8D77\u59CB\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u622A\u6B62\u5360\u4F4D\u5185\u5BB9",widgetColumnWidth:"\u7EC4\u4EF6\u5217\u5BBD",widgetSize:"\u7EC4\u4EF6\u5927\u5C0F",autoFullWidth:"\u81EA\u52A8\u62C9\u4F38\u5BBD\u5EA6",showStops:"\u663E\u793A\u95F4\u65AD\u70B9",displayStyle:"\u663E\u793A\u6837\u5F0F",inlineLayout:"\u884C\u5185",blockLayout:"\u5757",buttonStyle:"\u663E\u793A\u4E3A\u6309\u94AE",border:"\u5E26\u6709\u8FB9\u6846",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",rows:"\u884C\u6570",labelHidden:"\u9690\u85CF\u5B57\u6BB5\u6807\u7B7E",required:"\u5FC5\u586B\u5B57\u6BB5",requiredHint:"\u5FC5\u586B\u6821\u9A8C\u63D0\u793A",validation:"\u5B57\u6BB5\u6821\u9A8C",validationHelp:"\u652F\u6301\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",validationHint:"\u6821\u9A8C\u5931\u8D25\u63D0\u793A",readonly:"\u53EA\u8BFB",disabled:"\u7981\u7528",hidden:"\u9690\u85CF",textContent:"\u9759\u6001\u6587\u5B57",htmlContent:"HTML",clearable:"\u53EF\u6E05\u9664",editable:"\u53EF\u8F93\u5165",format:"\u663E\u793A\u683C\u5F0F",valueFormat:"\u7ED1\u5B9A\u503C\u683C\u5F0F",showPassword:"\u53EF\u663E\u793A\u5BC6\u7801",filterable:"\u53EF\u641C\u7D22\u9009\u9879",allowCreate:"\u5141\u8BB8\u521B\u5EFA\u9009\u9879",remote:"\u53EF\u8FDC\u7A0B\u641C\u7D22",automaticDropdown:"\u81EA\u52A8\u5F39\u51FA\u9009\u9879",multiple:"\u9009\u9879\u53EF\u591A\u9009",multipleLimit:"\u591A\u9009\u6570\u91CF\u9650\u5236",contentPosition:"\u6587\u5B57\u4F4D\u7F6E",plain:"\u6734\u7D20\u6309\u94AE",round:"\u5706\u89D2\u6309\u94AE",circle:"\u5706\u5F62\u6309\u94AE",icon:"\u56FE\u6807",optionsSetting:"\u9009\u9879\u8BBE\u7F6E",addOption:"\u589E\u52A0\u9009\u9879",importOptions:"\u5BFC\u5165\u9009\u9879",resetDefault:"\u91CD\u8BBE\u9009\u4E2D\u9879",uploadSetting:"\u4E0A\u4F20\u53C2\u6570\u8BBE\u7F6E",uploadURL:"\u4E0A\u4F20\u5730\u5740",uploadTip:"\u4E0A\u4F20\u63D0\u793A\u5185\u5BB9",withCredentials:"\u53D1\u9001cookie\u51ED\u8BC1",multipleSelect:"\u6587\u4EF6\u53EF\u591A\u9009",showFileList:"\u663E\u793A\u6587\u4EF6\u5217\u8868",limit:"\u6700\u5927\u4E0A\u4F20\u6570\u91CF",fileMaxSize:"\u6587\u4EF6\u5927\u5C0F\u9650\u5236(MB)",fileTypes:"\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B",fileTypesHelp:"\u652F\u6301\u6DFB\u52A0\u5176\u4ED6\u6587\u4EF6\u7C7B\u578B",headers:"\u4E0A\u4F20\u8BF7\u6C42\u5934",cellWidth:"\u5BBD\u5EA6",cellHeight:"\u9AD8\u5EA6",gridColHeight:"\u6805\u683C\u5217\u7EDF\u4E00\u9AD8\u5EA6(px)",gutter:"\u6805\u683C\u95F4\u9694(px)",columnSetting:"\u6805\u683C\u5C5E\u6027\u8BBE\u7F6E",colsOfGrid:"\u5F53\u524D\u6805\u683C\u5217:",colSpanTitle:"\u6805\u683C\u5BBD\u5EA6",colOffsetTitle:"\u5DE6\u4FA7\u95F4\u9694\u683C\u6570",colPushTitle:"\u53F3\u79FB\u6805\u683C\u6570",colPullTitle:"\u5DE6\u79FB\u6805\u683C\u6570",addColumn:"\u589E\u52A0\u6805\u683C",responsive:"\u54CD\u5E94\u5F0F\u5E03\u5C40",tabPaneSetting:"\u9009\u9879\u5361\u8BBE\u7F6E",addTabPane:"\u589E\u52A0\u9009\u9879\u5361\u9875",paneActive:"\u6FC0\u6D3B",customLabelIcon:"\u5B9A\u5236\u5B57\u6BB5\u6807\u7B7E",labelIconClass:"\u6807\u7B7EIcon\u6837\u5F0F",labelIconPosition:"\u6807\u7B7EIcon\u4F4D\u7F6E",labelTooltip:"\u6807\u7B7E\u6587\u5B57\u63D0\u793A",minValue:"\u6700\u5C0F\u503C",maxValue:"\u6700\u5927\u503C",precision:"\u7CBE\u5EA6",step:"\u589E\u51CF\u6B65\u957F",controlsPosition:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",minLength:"\u6700\u5C0F\u957F\u5EA6",maxLength:"\u6700\u5927\u957F\u5EA6",showWordLimit:"\u663E\u793A\u5B57\u6570\u7EDF\u8BA1",prefixIcon:"\u5934\u90E8Icon",suffixIcon:"\u5C3E\u90E8Icon",inputButton:"\u8F93\u5165\u6846\u6309\u94AE\u8BBE\u7F6E",appendButton:"\u6DFB\u52A0\u540E\u7F6E\u6309\u94AE",appendButtonDisabled:"\u540E\u7F6E\u6309\u94AE\u7981\u7528",appendButtonIcon:"\u540E\u7F6E\u6309\u94AEIcon",buttonIcon:"\u6309\u94AEIcon",switchWidth:"\u5F00\u5173\u5BBD\u5EA6\uFF08\u50CF\u7D20\uFF09",activeText:"\u5F00\u542F\u65F6\u6587\u5B57\u63CF\u8FF0",inactiveText:"\u5173\u95ED\u65F6\u6587\u5B57\u63CF\u8FF0",activeColor:"\u5F00\u542F\u65F6\u80CC\u666F\u8272",inactiveColor:"\u5173\u95ED\u65F6\u80CC\u666F\u8272",maxStars:"\u6700\u5927\u8BC4\u5206\u503C",lowThreshold:"\u4F4E\u5206\u754C\u9650\u503C",highThreshold:"\u9AD8\u5206\u754C\u9650\u503C",allowHalf:"\u5141\u8BB8\u534A\u9009",showText:"\u663E\u793A\u8F85\u52A9\u6587\u5B57",showScore:"\u663E\u793A\u5F53\u524D\u5206\u6570",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u663E\u793A",showBlankRow:"\u9ED8\u8BA4\u663E\u793A\u65B0\u884C",showRowNumber:"\u663E\u793A\u884C\u53F7",contentHeight:"\u5185\u5BB9\u533A\u9AD8\u5EA6",insertColumnToLeft:"\u63D2\u5165\u5DE6\u4FA7\u5217",insertColumnToRight:"\u63D2\u5165\u53F3\u4FA7\u5217",insertRowAbove:"\u63D2\u5165\u4E0A\u65B9\u884C",insertRowBelow:"\u63D2\u5165\u4E0B\u65B9\u884C",mergeLeftColumn:"\u5408\u5E76\u5DE6\u4FA7\u5355\u5143\u683C",mergeRightColumn:"\u5408\u5E76\u53F3\u4FA7\u5355\u5143\u683C",mergeEntireRow:"\u5408\u5E76\u6574\u884C",mergeRowAbove:"\u5408\u5E76\u4E0A\u65B9\u5355\u5143\u683C",mergeRowBelow:"\u5408\u5E76\u4E0B\u65B9\u5355\u5143\u683C",mergeEntireColumn:"\u5408\u5E76\u6574\u5217",undoMergeCol:"\u64A4\u9500\u5217\u5408\u5E76",undoMergeRow:"\u64A4\u9500\u884C\u5408\u5E76",deleteEntireCol:"\u5220\u9664\u6574\u5217",deleteEntireRow:"\u5220\u9664\u6574\u884C",widgetName:"\u7EC4\u4EF6\u552F\u4E00\u540D\u79F0",formSize:"\u5168\u5C40\u7EC4\u4EF6\u5927\u5C0F",labelPosition:"\u6807\u7B7E\u4F4D\u7F6E",topPosition:"\u9876\u90E8",leftPosition:"\u5DE6\u8FB9",labelAlign:"\u5B57\u6BB5\u6807\u7B7E\u5BF9\u9F50",leftAlign:"\u5C45\u5DE6",centerAlign:"\u5C45\u4E2D",rightAlign:"\u5C45\u53F3",formCss:"\u8868\u5355\u5168\u5C40CSS",addCss:"\u7F16\u5199CSS",customClass:"\u81EA\u5B9A\u4E49CSS\u6837\u5F0F",globalFunctions:"\u8868\u5355\u5168\u5C40\u51FD\u6570",addEventHandler:"\u7F16\u5199\u4EE3\u7801",editWidgetEventHandler:"\u7EC4\u4EF6\u4E8B\u4EF6\u5904\u7406",editFormEventHandler:"\u8868\u5355\u4E8B\u4EF6\u5904\u7406",formSFCSetting:"\u751F\u6210SFC\u8BBE\u7F6E",formModelName:"\u6570\u636E\u5BF9\u8C61\u540D\u79F0",formRefName:"\u5F15\u7528\u540D\u79F0",formRulesName:"\u9A8C\u8BC1\u89C4\u5219\u540D\u79F0",syntaxCheckWarning:"JS\u4EE3\u7801\u5B58\u5728\u8BED\u6CD5\u9519\u8BEF\uFF0C\u8BF7\u4ED4\u7EC6\u68C0\u67E5\uFF01"}}},enLocale_render={render:{hint:{prompt:"Prompt",confirm:"OK",cancel:"Cancel",selectPlaceholder:"Pick some item",timePlaceholder:"Select time",startTimePlaceholder:"Start time",endTimePlaceholder:"End time",datePlaceholder:"Select date",startDatePlaceholder:"Start date",endDatePlaceholder:"End date",blankCellContent:"--",uploadError:"Upload error: ",uploadExceed:"The maximum number(${uploadLimit}) of file uploads has been exceeded.",unsupportedFileType:"Unsupported format: ",fileSizeExceed:"File size out of limit: ",refNotFound:"Ref not found: ",fieldRequired:"Input value should be not null.",invalidNumber:"Invalid number format",selectFile:" File...",downloadFile:"Download",removeFile:"Remove",validationFailed:"Form validation failed",subFormAction:"Action",subFormAddAction:"Add",subFormAddActionHint:"add new row",insertSubFormRow:"insert new row",deleteSubFormRow:"delete this row",nonSubFormType:"The type of widget don't match sub-form"}}},zhLocale_render={render:{hint:{prompt:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",selectPlaceholder:"\u8BF7\u9009\u62E9",timePlaceholder:"\u9009\u62E9\u65F6\u95F4",startTimePlaceholder:"\u8D77\u59CB\u65F6\u95F4",endTimePlaceholder:"\u622A\u6B62\u65F6\u95F4",datePlaceholder:"\u9009\u62E9\u65E5\u671F",startDatePlaceholder:"\u8D77\u59CB\u65E5\u671F",endDatePlaceholder:"\u622A\u6B62\u65E5\u671F",blankCellContent:"--",uploadError:"\u4E0A\u4F20\u9519\u8BEF: ",uploadExceed:"\u6700\u5927\u4E0A\u4F20\u6570\u91CF(${uploadLimit})\u5DF2\u8D85\u51FA.",unsupportedFileType:"\u4E0D\u652F\u6301\u683C\u5F0F: ",fileSizeExceed:"\u6587\u4EF6\u5927\u5C0F\u5DF2\u8D85\u51FA: ",refNotFound:"\u7EC4\u4EF6\u672A\u627E\u5230: ",fieldRequired:"\u5B57\u6BB5\u503C\u4E0D\u53EF\u4E3A\u7A7A",invalidNumber:"\u6570\u636E\u683C\u5F0F\u9519\u8BEF",selectFile:" \u9009\u62E9\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D",removeFile:"\u79FB\u9664",validationFailed:"\u8868\u5355\u6570\u636E\u6821\u9A8C\u5931\u8D25",subFormAction:"\u64CD\u4F5C",subFormAddAction:"\u65B0\u589E",subFormAddActionHint:"\u65B0\u589E\u884C",insertSubFormRow:"\u63D2\u5165\u884C",deleteSubFormRow:"\u5220\u9664\u884C",nonSubFormType:"\u7EC4\u4EF6\u7C7B\u578B\u4E0D\u662F\u5B50\u8868\u5355"}}},enLocale_extension={extension:{widgetLabel:{card:"Card",alert:"Alert"},setting:{cardFolded:"Folded",cardShowFold:"Show Fold",cardWidth:"Width Of Card",cardShadow:"Shadow",alertTitle:"Title",alertType:"Type",description:"Description",closable:"Closable",closeText:"Text On Close Btn",center:"Center",showIcon:"Show Icon",effect:"Effect"}}},zhLocale_extension={extension:{widgetLabel:{card:"\u5361\u7247",alert:"\u63D0\u793A"},setting:{cardFolded:"\u662F\u5426\u6536\u8D77",cardShowFold:"\u663E\u793A\u6298\u53E0\u6309\u94AE",cardWidth:"\u5361\u7247\u5BBD\u5EA6",cardShadow:"\u663E\u793A\u9634\u5F71",alertTitle:"\u6807\u9898",alertType:"\u7C7B\u578B",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",closeText:"\u5173\u95ED\u6309\u94AE\u6587\u5B57",center:"\u6587\u5B57\u5C45\u4E2D",showIcon:"\u663E\u793A\u56FE\u6807",effect:"\u663E\u793A\u6548\u679C"}}};const langResources={"en-US":K(K(K(K({something:{}},enUSLang),enLocale),enLocale_render),enLocale_extension),"zh-CN":K(K(K(K({something:{}},zhCNLang),zhLocale),zhLocale_render),zhLocale_extension)},i18n=createI18n({locale:localStorage.getItem("v_form_locale")||"zh-CN",messages:langResources}),changeLocale=function(t){i18n.setLang(t),localStorage.setItem("v_form_locale",t)},translate=function(t){return i18n.$st(t)};var i18n$1={methods:{i18nt(t){return i18n.$st(t)},i18n2t(t,o){return i18n.$st2(t,o)}}},index_vue_vue_type_style_index_0_scoped_true_lang$7="";const _sfc_main$2U={name:"FieldPanel",mixins:[i18n$1],components:{},props:{designer:Object},inject:["getBannedWidgets","getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),firstTab:"componentLib",scrollerHeight:0,activeNames:["1","2","3","4"],containers:[],basicFields:[],advancedFields:[],customFields:[],formTemplates}},computed:{},created(){this.loadWidgets()},mounted(){this.scrollerHeight=window.innerHeight-56+"px",addWindowResizeHandler(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56+"px"})})},methods:{isBanned(t){return this.getBannedWidgets().indexOf(t)>-1},showFormTemplates(){return this.designerConfig.formTemplates===void 0?!0:!!this.designerConfig.formTemplates},loadWidgets(){this.containers=containers.map(t=>ve(K({key:generateId()},t),{displayName:this.i18n2t(`designer.widgetLabel.${t.type}`,`extension.widgetLabel.${t.type}`)})).filter(t=>!t.internal&&!this.isBanned(t.type)),this.basicFields=basicFields.map(t=>ve(K({key:generateId()},t),{displayName:this.i18n2t(`designer.widgetLabel.${t.type}`,`extension.widgetLabel.${t.type}`)})).filter(t=>!this.isBanned(t.type)),this.advancedFields=advancedFields.map(t=>ve(K({key:generateId()},t),{displayName:this.i18n2t(`designer.widgetLabel.${t.type}`,`extension.widgetLabel.${t.type}`)})).filter(t=>!this.isBanned(t.type)),this.customFields=customFields.map(t=>ve(K({key:generateId()},t),{displayName:this.i18n2t(`designer.widgetLabel.${t.type}`,`extension.widgetLabel.${t.type}`)})).filter(t=>!this.isBanned(t.type))},handleContainerWidgetClone(t){return this.designer.copyNewContainerWidget(t)},handleFieldWidgetClone(t){return this.designer.copyNewFieldWidget(t)},checkContainerMove(t){return this.designer.checkWidgetMove(t)},checkFieldMove(t){return this.designer.checkFieldMove(t)},onContainerDragEnd(t){},addContainerByDbClick(t){this.designer.addContainerByDbClick(t)},addFieldByDbClick(t){this.designer.addFieldByDbClick(t)},loadFormTemplate(t){this.$confirm(this.i18nt("designer.hint.loadFormTemplateHint"),this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{axios.get(t).then(o=>{let e=!1;typeof o.data=="string"?e=this.designer.loadFormJson(JSON.parse(o.data)):o.data.constructor===Object&&(e=this.designer.loadFormJson(o.data)),e&&this.designer.emitHistoryChange(),this.$message.success(this.i18nt("designer.hint.loadFormTemplateSuccess"))}).catch(o=>{this.$message.error(this.i18nt("designer.hint.loadFormTemplateFailed")+":"+o)})}).catch(o=>{console.error(o)})}}},_hoisted_1$w={class:"panel-container"},_hoisted_2$j=["title","onDblclick"],_hoisted_3$c=["title","onDblclick"],_hoisted_4$c=["title","onDblclick"],_hoisted_5$b=["title","onDblclick"],_hoisted_6$a=["src"],_hoisted_7$7=["src"],_hoisted_8$6={class:"bottom clear-fix"},_hoisted_9$4={class:"ft-title"};function _sfc_render$2U(t,o,e,s,i,r){const n=resolveComponent("svg-icon"),l=resolveComponent("draggable"),a=resolveComponent("el-collapse-item"),d=resolveComponent("el-collapse"),c=resolveComponent("el-tab-pane"),u=resolveComponent("el-popover"),m=resolveComponent("el-button"),f=resolveComponent("el-card"),g=resolveComponent("el-tabs"),b=resolveComponent("el-scrollbar");return openBlock(),createBlock(b,{class:"side-scroll-bar",style:normalizeStyle({height:i.scrollerHeight})},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$w,[createVNode(g,{modelValue:i.firstTab,"onUpdate:modelValue":o[1]||(o[1]=_=>i.firstTab=_),class:"no-bottom-margin indent-left-margin"},{default:withCtx(()=>[createVNode(c,{name:"componentLib"},{label:withCtx(()=>[createBaseVNode("span",null,[createVNode(n,{"icon-class":"el-set-up"}),createTextVNode(" "+toDisplayString(t.i18nt("designer.componentLib")),1)])]),default:withCtx(()=>[createVNode(d,{modelValue:i.activeNames,"onUpdate:modelValue":o[0]||(o[0]=_=>i.activeNames=_),class:"widget-collapse"},{default:withCtx(()=>[createVNode(a,{name:"1",title:t.i18nt("designer.containerTitle")},{default:withCtx(()=>[createVNode(l,{tag:"ul",list:i.containers,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},clone:r.handleContainerWidgetClone,"ghost-class":"ghost",sort:!1,move:r.checkContainerMove,onEnd:r.onContainerDragEnd},{item:withCtx(({element:_})=>[createBaseVNode("li",{class:"container-widget-item",title:_.displayName,onDblclick:v=>r.addContainerByDbClick(_)},[createBaseVNode("span",null,[createVNode(n,{"icon-class":_.icon,"class-name":"color-svg-icon"},null,8,["icon-class"]),createTextVNode(toDisplayString(t.i18n2t(`designer.widgetLabel.${_.type}`,`extension.widgetLabel.${_.type}`)),1)])],40,_hoisted_2$j)]),_:1},8,["list","clone","move","onEnd"])]),_:1},8,["title"]),createVNode(a,{name:"2",title:t.i18nt("designer.basicFieldTitle")},{default:withCtx(()=>[createVNode(l,{tag:"ul",list:i.basicFields,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},move:r.checkFieldMove,clone:r.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1},{item:withCtx(({element:_})=>[createBaseVNode("li",{class:"field-widget-item",title:_.displayName,onDblclick:v=>r.addFieldByDbClick(_)},[createBaseVNode("span",null,[createVNode(n,{"icon-class":_.icon,"class-name":"color-svg-icon"},null,8,["icon-class"]),createTextVNode(toDisplayString(t.i18n2t(`designer.widgetLabel.${_.type}`,`extension.widgetLabel.${_.type}`)),1)])],40,_hoisted_3$c)]),_:1},8,["list","move","clone"])]),_:1},8,["title"]),createVNode(a,{name:"3",title:t.i18nt("designer.advancedFieldTitle")},{default:withCtx(()=>[createVNode(l,{tag:"ul",list:i.advancedFields,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},move:r.checkFieldMove,clone:r.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1},{item:withCtx(({element:_})=>[createBaseVNode("li",{class:"field-widget-item",title:_.displayName,onDblclick:v=>r.addFieldByDbClick(_)},[createBaseVNode("span",null,[createVNode(n,{"icon-class":_.icon,"class-name":"color-svg-icon"},null,8,["icon-class"]),createTextVNode(toDisplayString(t.i18n2t(`designer.widgetLabel.${_.type}`,`extension.widgetLabel.${_.type}`)),1)])],40,_hoisted_4$c)]),_:1},8,["list","move","clone"])]),_:1},8,["title"]),createVNode(a,{name:"4",title:t.i18nt("designer.customFieldTitle")},{default:withCtx(()=>[createVNode(l,{tag:"ul",list:i.customFields,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},move:r.checkFieldMove,clone:r.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1},{item:withCtx(({element:_})=>[createBaseVNode("li",{class:"field-widget-item",title:_.displayName,onDblclick:v=>r.addFieldByDbClick(_)},[createBaseVNode("span",null,[createVNode(n,{"icon-class":_.icon,"class-name":"color-svg-icon"},null,8,["icon-class"]),createTextVNode(toDisplayString(t.i18n2t(`designer.widgetLabel.${_.type}`,`extension.widgetLabel.${_.type}`)),1)])],40,_hoisted_5$b)]),_:1},8,["list","move","clone"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1}),r.showFormTemplates()?(openBlock(),createBlock(c,{key:0,name:"formLib",style:{padding:"8px"}},{label:withCtx(()=>[createBaseVNode("span",null,[createVNode(n,{"icon-class":"el-form-template"}),createTextVNode(" "+toDisplayString(t.i18nt("designer.formLib")),1)])]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.formTemplates,(_,v)=>(openBlock(),createBlock(f,{"bord-style":{padding:"0"},shadow:"hover",class:"ft-card"},{default:withCtx(()=>[createVNode(u,{placement:"right",trigger:"hover"},{reference:withCtx(()=>[createBaseVNode("img",{src:_.imgUrl,style:{width:"200px"}},null,8,_hoisted_6$a)]),default:withCtx(()=>[createBaseVNode("img",{src:_.imgUrl,style:{height:"600px",width:"720px"}},null,8,_hoisted_7$7)]),_:2},1024),createBaseVNode("div",_hoisted_8$6,[createBaseVNode("span",_hoisted_9$4,"#"+toDisplayString(v+1)+" "+toDisplayString(_.title),1),createVNode(m,{type:"text",class:"right-button",onClick:h=>r.loadFormTemplate(_.jsonUrl)},{default:withCtx(()=>[createTextVNode(toDisplayString(t.i18nt("designer.hint.loadFormTemplate")),1)]),_:2},1032,["onClick"])])]),_:2},1024))),256))]),_:1})):createCommentVNode("",!0)]),_:1},8,["modelValue"])])]),_:1},8,["style"])}var WidgetPanel=_export_sfc(_sfc_main$2U,[["render",_sfc_render$2U],["__scopeId","data-v-325f4159"]]),emitter={data(){return{vfEvents:{}}},methods:{emit$(t,o){this.vfEvents[t]&&this.vfEvents[t].forEach(e=>{e(o)})},on$(t,o){this.vfEvents[t]=this.vfEvents[t]||[],this.vfEvents[t].push(o)},off$(t,o){if(this.vfEvents[t]){if(o==null){this.vfEvents[t].length=0;return}for(let e=0;e{if(this.widgetRefList[i].$options.componentName===o){let n=this.widgetRefList[i];n.emit$.call(n,e,s)}}),this.refList&&Object.keys(this.refList).forEach(i=>{if(this.refList[i].$options.componentName===o){let n=this.refList[i];n.emit$.call(n,e,s)}})}}};const _sfc_main$2T={name:"container-item-wrapper",props:{widget:Object},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}};function _sfc_render$2T(t,o,e,s,i,r){return openBlock(),createElementBlock("div",{class:normalizeClass(["container-wrapper",[r.customClass]])},[renderSlot(t.$slots,"default")],2)}var ContainerItemWrapper=_export_sfc(_sfc_main$2T,[["render",_sfc_render$2T]]),__glob_0_0$3=Object.freeze(Object.defineProperty({__proto__:null,default:ContainerItemWrapper},Symbol.toStringTag,{value:"Module"})),refMixin={methods:{initRefList(){this.refList!==null&&!!this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef(t,o){let e=this.refList[t];return!e&&!!o&&this.$message.error(this.i18nt("render.hint.refNotFound")+t),e},getFormRef(){return this.refList.v_form_ref}}},staticContentWrapper_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2S={name:"static-content-wrapper",mixins:[i18n$1],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},displayStyle:{type:String,default:"block"},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},computed:{selected(){return!!this.designer&&this.field.id===this.designer.selectedId},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""}},methods:{selectField(t){this.designer&&(this.designer.setSelected(t),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){let t=null;this.parentList.length===1?this.parentWidget&&(t=this.parentWidget):this.parentList.length===1+this.indexOfParentList?t=this.parentList[this.indexOfParentList-1]:t=this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(t),this.designer.emitHistoryChange()})}}}},_hoisted_1$v={key:0,class:"field-action"},_hoisted_2$i=["title"],_hoisted_3$b=["title"],_hoisted_4$b=["title"],_hoisted_5$a=["title"],_hoisted_6$9={key:1,class:"drag-handler background-opacity"},_hoisted_7$6=["title"],_hoisted_8$5={key:0};function _sfc_render$2S(t,o,e,s,i,r){const n=resolveComponent("svg-icon");return openBlock(),createElementBlock("div",{class:normalizeClass(["field-wrapper",{"design-time-bottom-margin":!!this.designer}]),style:normalizeStyle({display:e.displayStyle})},[withDirectives(createBaseVNode("div",{class:normalizeClass(["static-content-item",[r.selected?"selected":"",r.customClass]]),style:normalizeStyle({display:e.displayStyle}),onClick:o[0]||(o[0]=withModifiers(l=>r.selectField(e.field),["stop"]))},[renderSlot(t.$slots,"default",{},void 0,!0)],6),[[vShow,!e.field.options.hidden||e.designState===!0]]),this.designer?(openBlock(),createElementBlock(Fragment,{key:0},[e.designer.selectedId===e.field.id?(openBlock(),createElementBlock("div",_hoisted_1$v,[createBaseVNode("i",{title:t.i18nt("designer.hint.selectParentWidget"),onClick:o[1]||(o[1]=withModifiers(l=>r.selectParentWidget(e.field),["stop"]))},[createVNode(n,{"icon-class":"el-back"})],8,_hoisted_2$i),!!e.parentList&&e.parentList.length>1?(openBlock(),createElementBlock("i",{key:0,title:t.i18nt("designer.hint.moveUpWidget"),onClick:o[2]||(o[2]=withModifiers(l=>r.moveUpWidget(e.field),["stop"]))},[createVNode(n,{"icon-class":"el-move-up"})],8,_hoisted_3$b)):createCommentVNode("",!0),!!e.parentList&&e.parentList.length>1?(openBlock(),createElementBlock("i",{key:1,title:t.i18nt("designer.hint.moveDownWidget"),onClick:o[3]||(o[3]=withModifiers(l=>r.moveDownWidget(e.field),["stop"]))},[createVNode(n,{"icon-class":"el-move-down"})],8,_hoisted_4$b)):createCommentVNode("",!0),createBaseVNode("i",{title:t.i18nt("designer.hint.remove"),onClick:o[4]||(o[4]=withModifiers((...l)=>r.removeFieldWidget&&r.removeFieldWidget(...l),["stop"]))},[createVNode(n,{"icon-class":"el-delete"})],8,_hoisted_5$a)])):createCommentVNode("",!0),e.designer.selectedId===e.field.id?(openBlock(),createElementBlock("div",_hoisted_6$9,[createBaseVNode("i",{title:t.i18nt("designer.hint.dragHandler")},[createVNode(n,{"icon-class":"el-drag-move"})],8,_hoisted_7$6),createBaseVNode("i",null,toDisplayString(t.i18n2t(`designer.widgetLabel.${e.field.type}`,`extension.widgetLabel.${e.field.type}`)),1),e.field.options.hidden===!0?(openBlock(),createElementBlock("i",_hoisted_8$5,[createVNode(n,{"icon-class":"el-hide"})])):createCommentVNode("",!0)])):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],6)}var StaticContentWrapper=_export_sfc(_sfc_main$2S,[["render",_sfc_render$2S],["__scopeId","data-v-6984bda1"]]),__glob_0_19$1=Object.freeze(Object.defineProperty({__proto__:null,default:StaticContentWrapper},Symbol.toStringTag,{value:"Module"}));const getRegExp=function(t){return{number:"/^\\d+(\\.\\d+)?$/",letter:"/^[A-Za-z]+$/",letterAndNumber:"/^[A-Za-z0-9]+$/",mobilePhone:"/^[1][3-9][0-9]{9}$/",letterStartNumberIncluded:"/^[A-Za-z]+[A-Za-z\\d]*$/",noChinese:"/^[^\u4E00-\u9FA5]+$/",chinese:"/^[\u4E00-\u9FA5]+$/",email:"/^([-_A-Za-z0-9.]+)@([_A-Za-z0-9]+\\.)+[A-Za-z0-9]{2,3}$/",url:"/^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$/"}[t]},validateFn=function(validatorName,rule,value,callback,defaultErrorMsg){if(isNull(value)||value.length<=0){callback();return}const reg=eval(getRegExp(validatorName));if(reg.test(value))callback();else{let t=rule.errorMsg||defaultErrorMsg;callback(new Error(t))}},FormValidators={number(t,o,e){validateFn("number",t,o,e,"["+t.label+"]\u5305\u542B\u975E\u6570\u5B57\u5B57\u7B26")},letter(t,o,e){validateFn("letter",t,o,e,"["+t.label+"]\u5305\u542B\u975E\u5B57\u6BCD\u5B57\u7B26")},letterAndNumber(t,o,e){validateFn("letterAndNumber",t,o,e,"["+t.label+"]\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6216\u6570\u5B57")},mobilePhone(t,o,e){validateFn("mobilePhone",t,o,e,"["+t.label+"]\u624B\u673A\u53F7\u7801\u683C\u5F0F\u6709\u8BEF")},noBlankStart(t,o,e){},noBlankEnd(t,o,e){},letterStartNumberIncluded(t,o,e){validateFn("letterStartNumberIncluded",t,o,e,"["+t.label+"]\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u53EF\u5305\u542B\u6570\u5B57")},noChinese(t,o,e){validateFn("noChinese",t,o,e,"["+t.label+"]\u4E0D\u53EF\u8F93\u5165\u4E2D\u6587\u5B57\u7B26")},chinese(t,o,e){validateFn("chinese",t,o,e,"["+t.label+"]\u53EA\u80FD\u8F93\u5165\u4E2D\u6587\u5B57\u7B26")},email(t,o,e){validateFn("email",t,o,e,"["+t.label+"]\u90AE\u7BB1\u683C\u5F0F\u6709\u8BEF")},url(t,o,e){validateFn("url",t,o,e,"["+t.label+"]URL\u683C\u5F0F\u6709\u8BEF")},regExp(rule,value,callback){if(isNull(value)||value.length<=0){callback();return}const pattern=eval(rule.regExp);if(pattern.test(value))callback();else{let t=rule.errorMsg||"["+rule.label+"]invalid value";callback(new Error(t))}}},instance=mitt(),eventBus={};eventBus.$on=instance.on;eventBus.$off=instance.off;eventBus.$emit=instance.emit;var fieldMixin={inject:["refList","getFormConfig","globalOptionData","globalModel","getOptionData"],computed:{formConfig(){return this.getFormConfig()},widgetSize(){return this.field.options.size||"default"},subFormName(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag(){return this.parentWidget?this.parentWidget.type==="sub-form":!1},formModel:{cache:!1,get(){return this.globalModel.formModel}}},methods:{getPropName(){return this.subFormItemFlag&&!this.designState?this.subFormName+"."+this.subFormRowIndex+"."+this.field.options.name+"":this.field.options.name},initFieldModel(){if(!!this.field.formItemFlag){if(!!this.subFormItemFlag&&!this.designState){let t=this.formModel[this.subFormName];(t===void 0||t[this.subFormRowIndex]===void 0||t[this.subFormRowIndex][this.field.options.name]===void 0)&&this.field.options.defaultValue!==void 0?(this.fieldModel=this.field.options.defaultValue,t[this.subFormRowIndex][this.field.options.name]=this.field.options.defaultValue):t[this.subFormRowIndex][this.field.options.name]===void 0?(this.fieldModel=null,t[this.subFormRowIndex][this.field.options.name]=null):this.fieldModel=t[this.subFormRowIndex][this.field.options.name],setTimeout(()=>{this.handleOnChangeForSubForm(this.fieldModel,this.oldFieldValue,t,this.subFormRowId)},800),this.oldFieldValue=deepClone(this.fieldModel),this.initFileList();return}this.formModel[this.field.options.name]===void 0&&this.field.options.defaultValue!==void 0?this.fieldModel=this.field.options.defaultValue:this.formModel[this.field.options.name]===void 0?this.formModel[this.field.options.name]=null:this.fieldModel=this.formModel[this.field.options.name],this.oldFieldValue=deepClone(this.fieldModel),this.initFileList()}},initFileList(){this.field.type!=="picture-upload"&&this.field.type!=="file-upload"||this.designState===!0||this.fieldModel&&(Array.isArray(this.fieldModel)?this.fileList=deepClone(this.fieldModel):this.fileList.splice(0,0,deepClone(this.fieldModel)))},initEventHandler(){this.on$("setFormData",t=>{console.log("formModel of globalModel----------",this.globalModel.formModel),this.subFormItemFlag||this.setValue(t[this.field.options.name])}),this.on$("field-value-changed",t=>{if(this.subFormItemFlag){let o=this.formModel[this.subFormName];this.handleOnChangeForSubForm(t[0],t[1],o,this.subFormRowId)}else this.handleOnChange(t[0],t[1])}),this.on$("reloadOptionItems",t=>{(t.length===0||t.indexOf(this.field.options.name)>-1)&&this.initOptionItems(!0)})},handleOnCreated(){this.field.options.onCreated&&new Function(this.field.options.onCreated).call(this)},handleOnMounted(){this.field.options.onMounted&&new Function(this.field.options.onMounted).call(this)},registerToRefList(t){this.refList!==null&&!!this.field.options.name&&(this.subFormItemFlag&&!this.designState?(t&&delete this.refList[t+"@row"+this.subFormRowId],this.refList[this.field.options.name+"@row"+this.subFormRowId]=this):(t&&delete this.refList[t],this.refList[this.field.options.name]=this))},unregisterFromRefList(){if(this.refList!==null&&!!this.field.options.name){let t=this.field.options.name;this.subFormItemFlag&&!this.designState?delete this.refList[t+"@row"+this.subFormRowId]:delete this.refList[t]}},initOptionItems(t){if(!this.designState&&(this.field.type==="radio"||this.field.type==="checkbox"||this.field.type==="select"||this.field.type==="cascader")){const o=this.getOptionData();!!o&&o.hasOwnProperty(this.field.options.name)&&(t?this.reloadOptions(o[this.field.options.name]):this.loadOptions(o[this.field.options.name]))}},refreshDefaultValue(){this.designState===!0&&this.field.options.defaultValue!==void 0&&(this.fieldModel=this.field.options.defaultValue)},clearFieldRules(){!this.field.formItemFlag||this.rules.splice(0,this.rules.length)},buildFieldRules(){if(!!this.field.formItemFlag){if(this.rules.splice(0,this.rules.length),this.field.options.required&&this.rules.push({required:!0,trigger:["blur"],message:this.field.options.requiredHint||this.i18nt("render.hint.fieldRequired")}),this.field.options.validation){let t=this.field.options.validation;FormValidators[t]?this.rules.push({validator:FormValidators[t],trigger:["blur","change"],label:this.field.options.label,errorMsg:this.field.options.validationHint}):this.rules.push({validator:FormValidators.regExp,trigger:["blur","change"],regExp:t,label:this.field.options.label,errorMsg:this.field.options.validationHint})}if(this.field.options.onValidate){let t=(o,e,s)=>new Function("rule","value","callback",this.field.options.onValidate).call(this,o,e,s);this.rules.push({validator:t,trigger:["blur","change"],label:this.field.options.label})}}},disableChangeValidate(){!this.rules||this.rules.forEach(t=>{t.trigger&&t.trigger.splice(0,t.trigger.length)})},enableChangeValidate(){!this.rules||this.rules.forEach(t=>{t.trigger&&(t.trigger.push("blur"),t.trigger.push("change"))})},disableOptionOfList(t,o){!!t&&t.length>0&&t.forEach(e=>{e.value===o&&(e.disabled=!0)})},enableOptionOfList(t,o){!!t&&t.length>0&&t.forEach(e=>{e.value===o&&(e.disabled=!1)})},emitFieldDataChange(t,o){this.emit$("field-value-changed",[t,o]),this.dispatch("VFormRender","fieldChange",[this.field.options.name,t,o,this.subFormName,this.subFormRowIndex])},syncUpdateFormModel(t){if(!this.designState)if(this.subFormItemFlag){let e=(this.formModel[this.subFormName]||[{}])[this.subFormRowIndex];e&&(e[this.field.options.name]=t)}else this.formModel[this.field.options.name]=t},handleChangeEvent(t){this.syncUpdateFormModel(t),this.emitFieldDataChange(t,this.oldFieldValue),this.oldFieldValue=deepClone(t),this.dispatch("VFormRender","fieldValidation",[this.getPropName()])},handleFocusCustomEvent(t){this.oldFieldValue=deepClone(this.fieldModel),this.field.options.onFocus&&new Function("event",this.field.options.onFocus).call(this,t)},handleBlurCustomEvent(t){this.field.options.onBlur&&new Function("event",this.field.options.onBlur).call(this,t)},handleInputCustomEvent(t){this.syncUpdateFormModel(t),this.dispatch("VFormRender","fieldValidation",[this.getPropName()]),this.field.options.onInput&&new Function("value",this.field.options.onInput).call(this,t)},emitAppendButtonClick(){this.dispatch("VFormRender","appendButtonClick",[this])},handleOnChange(t,o){this.field.options.onChange&&new Function("value","oldValue",this.field.options.onChange).call(this,t,o)},handleOnChangeForSubForm(t,o,e,s){this.field.options.onChange&&new Function("value","oldValue","subFormData","rowId",this.field.options.onChange).call(this,t,o,e,s)},handleButtonWidgetClick(){this.designState||(this.field.options.onClick?new Function(this.field.options.onClick).call(this):this.dispatch("VFormRender","buttonClick",[this]))},remoteQuery(t){this.field.options.onRemoteQuery&&new Function("keyword",this.field.options.onRemoteQuery).call(this,t)},getFormRef(){return this.refList.v_form_ref},getWidgetRef(t,o){let e=this.refList[t];return!e&&!!o&&this.$message.error(this.i18nt("render.hint.refNotFound")+t),e},getFieldEditor(){return this.$refs.fieldEditor},setValue(t){if(this.field.formItemFlag){let o=deepClone(this.fieldModel);this.fieldModel=t,this.initFileList(),this.syncUpdateFormModel(t),this.emitFieldDataChange(t,o)}},getValue(){return this.fieldModel},resetField(){let t=this.field.options.defaultValue;this.setValue(t),this.$nextTick(()=>{}),(this.field.type==="picture-upload"||this.field.type==="file-upload")&&(this.$refs.fieldEditor.clearFiles(),this.fileList.splice(0,this.fileList.length))},setWidgetOption(t,o){this.field.options.hasOwnProperty(t)&&(this.field.options[t]=o)},setReadonly(t){this.field.options.readonly=t},setDisabled(t){this.field.options.disabled=t},setAppendButtonVisible(t){this.field.options.appendButton=t},setAppendButtonDisabled(t){this.field.options.appendButtonDisabled=t},setHidden(t){this.field.options.hidden=t,t?this.clearFieldRules():this.buildFieldRules()},setRequired(t){this.field.options.required=t,this.buildFieldRules()},setLabel(t){this.field.options.label=t},focus(){!!this.getFieldEditor()&&!!this.getFieldEditor().focus&&this.getFieldEditor().focus()},clearSelectedOptions(){this.field.type!=="checkbox"&&this.field.type!=="radio"&&this.field.type!=="select"||(this.field.type==="checkbox"||this.field.type==="select"&&this.field.options.multiple?this.fieldModel=[]:this.fieldModel="")},loadOptions(t){this.field.options.optionItems=deepClone(t)},reloadOptions(t){this.field.options.optionItems=deepClone(t)},disableOption(t){this.disableOptionOfList(this.field.options.optionItems,t)},enableOption(t){this.enableOptionOfList(this.field.options.optionItems,t)},getOptionItems(){return this.field.options.optionItems},setUploadHeader(t,o){this.uploadHeaders[t]=o},setUploadData(t,o){this.uploadData[t]=o},setToolbar(t){this.customToolbar=t}}},buttonWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2R={name:"button-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2R(t,o,e,s,i,r){const n=resolveComponent("el-button"),l=resolveComponent("static-content-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,"design-state":e.designState,"display-style":e.field.options.displayStyle,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",type:e.field.options.type,size:t.widgetSize,plain:e.field.options.plain,round:e.field.options.round,circle:e.field.options.circle,icon:e.field.options.icon,disabled:e.field.options.disabled,onClick:t.handleButtonWidgetClick},{default:withCtx(()=>[createTextVNode(toDisplayString(e.field.options.label),1)]),_:1},8,["type","size","plain","round","circle","icon","disabled","onClick"])]),_:1},8,["designer","field","design-state","display-style","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var buttonWidget=_export_sfc(_sfc_main$2R,[["render",_sfc_render$2R],["__scopeId","data-v-6f92d10c"]]),__glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:buttonWidget},Symbol.toStringTag,{value:"Module"})),formItemWrapper_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2Q={name:"form-item-wrapper",mixins:[i18n$1],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""},rules:Array},inject:["getFormConfig"],computed:{formConfig(){return this.getFormConfig()},selected(){return!!this.designer&&this.field.id===this.designer.selectedId},label(){return this.field.options.labelHidden?"":this.field.options.label},labelWidth(){return this.field.options.labelHidden?0:this.field.options.labelWidth?this.field.options.labelWidth:this.designer?this.designer.formConfig.labelWidth:this.formConfig.labelWidth},labelAlign(){return this.field.options.labelAlign?this.field.options.labelAlign:this.designer?this.designer.formConfig.labelAlign||"label-left-align":this.formConfig.labelAlign||"label-left-align"},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""},subFormName(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag(){return this.parentWidget?this.parentWidget.type==="sub-form":!1}},created(){},methods:{selectField(t){this.designer&&(this.designer.setSelected(t),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){let t=null;this.parentList.length===1?this.parentWidget&&(t=this.parentWidget):this.parentList.length===1+this.indexOfParentList?t=this.parentList[this.indexOfParentList-1]:t=this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(t),this.designer.emitHistoryChange()})}},getPropName(){return this.subFormItemFlag&&!this.designState?this.subFormName+"."+this.subFormRowIndex+"."+this.field.options.name+"":this.field.options.name}}},_hoisted_1$u={key:0,class:"custom-label"},_hoisted_2$h={key:0,class:"field-action"},_hoisted_3$a=["title"],_hoisted_4$a=["title"],_hoisted_5$9=["title"],_hoisted_6$8=["title"],_hoisted_7$5={key:1,class:"drag-handler background-opacity"},_hoisted_8$4=["title"],_hoisted_9$3={key:0};function _sfc_render$2Q(t,o,e,s,i,r){const n=resolveComponent("svg-icon"),l=resolveComponent("el-tooltip"),a=resolveComponent("el-form-item");return openBlock(),createElementBlock("div",{class:normalizeClass(["field-wrapper",{"design-time-bottom-margin":!!this.designer}])},[e.field.formItemFlag?withDirectives((openBlock(),createBlock(a,{key:0,label:r.label,"label-width":r.labelWidth+"px",title:e.field.options.labelTooltip,rules:e.rules,prop:r.getPropName(),class:normalizeClass([r.selected?"selected":"",r.labelAlign,r.customClass,e.field.options.required?"required":""]),onClick:o[0]||(o[0]=withModifiers(d=>r.selectField(e.field),["stop"]))},{label:withCtx(()=>[e.field.options.labelIconClass?(openBlock(),createElementBlock("span",_hoisted_1$u,[e.field.options.labelIconPosition==="front"?(openBlock(),createElementBlock(Fragment,{key:0},[e.field.options.labelTooltip?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(l,{content:e.field.options.labelTooltip,effect:"light"},{default:withCtx(()=>[createVNode(n,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"])]),_:1},8,["content"]),createTextVNode(toDisplayString(r.label),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(n,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"]),createTextVNode(toDisplayString(r.label),1)],64))],64)):e.field.options.labelIconPosition==="rear"?(openBlock(),createElementBlock(Fragment,{key:1},[e.field.options.labelTooltip?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(r.label),1),createVNode(l,{content:e.field.options.labelTooltip,effect:"light"},{default:withCtx(()=>[createVNode(n,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"])]),_:1},8,["content"])],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(r.label),1),createVNode(n,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"])],64))],64)):createCommentVNode("",!0)])):createCommentVNode("",!0)]),default:withCtx(()=>[renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["label","label-width","title","rules","prop","class"])),[[vShow,!e.field.options.hidden||e.designState===!0]]):createCommentVNode("",!0),this.designer?(openBlock(),createElementBlock(Fragment,{key:1},[e.designer.selectedId===e.field.id?(openBlock(),createElementBlock("div",_hoisted_2$h,[createBaseVNode("i",{title:t.i18nt("designer.hint.selectParentWidget"),onClick:o[1]||(o[1]=withModifiers(d=>r.selectParentWidget(e.field),["stop"]))},[createVNode(n,{"icon-class":"el-back"})],8,_hoisted_3$a),!!e.parentList&&e.parentList.length>1?(openBlock(),createElementBlock("i",{key:0,title:t.i18nt("designer.hint.moveUpWidget"),onClick:o[2]||(o[2]=withModifiers(d=>r.moveUpWidget(e.field),["stop"]))},[createVNode(n,{"icon-class":"el-move-up"})],8,_hoisted_4$a)):createCommentVNode("",!0),!!e.parentList&&e.parentList.length>1?(openBlock(),createElementBlock("i",{key:1,title:t.i18nt("designer.hint.moveDownWidget"),onClick:o[3]||(o[3]=withModifiers(d=>r.moveDownWidget(e.field),["stop"]))},[createVNode(n,{"icon-class":"el-move-down"})],8,_hoisted_5$9)):createCommentVNode("",!0),createBaseVNode("i",{title:t.i18nt("designer.hint.remove"),onClick:o[4]||(o[4]=withModifiers((...d)=>r.removeFieldWidget&&r.removeFieldWidget(...d),["stop"]))},[createVNode(n,{"icon-class":"el-delete"})],8,_hoisted_6$8)])):createCommentVNode("",!0),e.designer.selectedId===e.field.id?(openBlock(),createElementBlock("div",_hoisted_7$5,[createBaseVNode("i",{title:t.i18nt("designer.hint.dragHandler")},[createVNode(n,{"icon-class":"el-drag-move"})],8,_hoisted_8$4),createBaseVNode("i",null,toDisplayString(t.i18n2t(`designer.widgetLabel.${e.field.type}`,`extension.widgetLabel.${e.field.type}`)),1),e.field.options.hidden===!0?(openBlock(),createElementBlock("i",_hoisted_9$3,[createVNode(n,{"icon-class":"el-hide"})])):createCommentVNode("",!0)])):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],2)}var FormItemWrapper=_export_sfc(_sfc_main$2Q,[["render",_sfc_render$2Q],["__scopeId","data-v-f1e447e2"]]),__glob_0_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormItemWrapper},Symbol.toStringTag,{value:"Module"})),cascaderWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2P={name:"cascader-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$t={class:"full-width-input"};function _sfc_render$2P(t,o,e,s,i,r){const n=resolveComponent("el-cascader"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$t,[createVNode(n,{ref:"fieldEditor",options:e.field.options.optionItems,modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),disabled:e.field.options.disabled,size:t.widgetSize,clearable:e.field.options.clearable,filterable:e.field.options.filterable,placeholder:e.field.options.placeholder||t.i18nt("render.hint.selectPlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["options","modelValue","disabled","size","clearable","filterable","placeholder","onFocus","onBlur","onChange"])])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var cascaderWidget=_export_sfc(_sfc_main$2P,[["render",_sfc_render$2P],["__scopeId","data-v-e050e878"]]),__glob_0_1$3=Object.freeze(Object.defineProperty({__proto__:null,default:cascaderWidget},Symbol.toStringTag,{value:"Module"})),checkboxWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2O={name:"checkbox-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2O(t,o,e,s,i,r){const n=resolveComponent("el-checkbox-button"),l=resolveComponent("el-checkbox"),a=resolveComponent("el-checkbox-group"),d=resolveComponent("form-item-wrapper");return openBlock(),createBlock(d,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(a,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=c=>i.fieldModel=c),disabled:e.field.options.disabled,size:t.widgetSize,onChange:t.handleChangeEvent},{default:withCtx(()=>[e.field.options.buttonStyle?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.field.options.optionItems,(c,u)=>(openBlock(),createBlock(n,{key:u,label:c.value,disabled:c.disabled,border:e.field.options.border,style:normalizeStyle({display:e.field.options.displayStyle})},{default:withCtx(()=>[createTextVNode(toDisplayString(c.label),1)]),_:2},1032,["label","disabled","border","style"]))),128)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.field.options.optionItems,(c,u)=>(openBlock(),createBlock(l,{key:u,label:c.value,disabled:c.disabled,border:e.field.options.border,style:normalizeStyle({display:e.field.options.displayStyle})},{default:withCtx(()=>[createTextVNode(toDisplayString(c.label),1)]),_:2},1032,["label","disabled","border","style"]))),128))]),_:1},8,["modelValue","disabled","size","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var checkboxWidget=_export_sfc(_sfc_main$2O,[["render",_sfc_render$2O],["__scopeId","data-v-501920b3"]]),__glob_0_2$3=Object.freeze(Object.defineProperty({__proto__:null,default:checkboxWidget},Symbol.toStringTag,{value:"Module"})),colorWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2N={name:"color-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2N(t,o,e,s,i,r){const n=resolveComponent("el-color-picker"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),size:t.widgetSize,disabled:e.field.options.disabled,onChange:t.handleChangeEvent},null,8,["modelValue","size","disabled","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var colorWidget=_export_sfc(_sfc_main$2N,[["render",_sfc_render$2N],["__scopeId","data-v-1aa76420"]]),__glob_0_3$3=Object.freeze(Object.defineProperty({__proto__:null,default:colorWidget},Symbol.toStringTag,{value:"Module"})),dateRangeWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2M={name:"date-range-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2M(t,o,e,s,i,r){const n=resolveComponent("el-date-picker"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""])},[createVNode(n,{ref:"fieldEditor",type:e.field.options.type,modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,"start-placeholder":e.field.options.startPlaceholder||t.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||t.i18nt("render.hint.endDatePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["type","modelValue","disabled","readonly","size","clearable","editable","format","value-format","start-placeholder","end-placeholder","onFocus","onBlur","onChange"])],2)]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dateRangeWidget=_export_sfc(_sfc_main$2M,[["render",_sfc_render$2M],["__scopeId","data-v-8805cad8"]]),__glob_0_4$3=Object.freeze(Object.defineProperty({__proto__:null,default:dateRangeWidget},Symbol.toStringTag,{value:"Module"})),dateWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2L={name:"date-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2L(t,o,e,s,i,r){const n=resolveComponent("el-date-picker"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",type:e.field.options.type,modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),class:normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""]),readonly:e.field.options.readonly,disabled:e.field.options.disabled,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,placeholder:e.field.options.placeholder||t.i18nt("render.hint.datePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["type","modelValue","class","readonly","disabled","size","clearable","editable","format","value-format","placeholder","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dateWidget=_export_sfc(_sfc_main$2L,[["render",_sfc_render$2L],["__scopeId","data-v-14d5b71a"]]),__glob_0_5$3=Object.freeze(Object.defineProperty({__proto__:null,default:dateWidget},Symbol.toStringTag,{value:"Module"})),dividerWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2K={name:"divider-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2K(t,o,e,s,i,r){const n=resolveComponent("el-divider"),l=resolveComponent("static-content-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",direction:"horizontal","content-position":e.field.options.contentPosition},{default:withCtx(()=>[createTextVNode(toDisplayString(e.field.options.label),1)]),_:1},8,["content-position"])]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dividerWidget=_export_sfc(_sfc_main$2K,[["render",_sfc_render$2K],["__scopeId","data-v-a326e5e0"]]),__glob_0_6$2=Object.freeze(Object.defineProperty({__proto__:null,default:dividerWidget},Symbol.toStringTag,{value:"Module"})),index_vue_vue_type_style_index_0_scoped_true_lang$6="";const _sfc_main$2J={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},_hoisted_1$s=["xlink:href"],_hoisted_2$g={key:0};function _sfc_render$2J(t,o,e,s,i,r){return openBlock(),createElementBlock("svg",{class:normalizeClass(r.svgClass),"aria-hidden":"true"},[createBaseVNode("use",{"xlink:href":r.iconName},null,8,_hoisted_1$s),e.title?(openBlock(),createElementBlock("title",_hoisted_2$g,toDisplayString(e.title),1)):createCommentVNode("",!0)],2)}var SvgIcon=_export_sfc(_sfc_main$2J,[["render",_sfc_render$2J],["__scopeId","data-v-47daada2"]]),fileUploadWidget_vue_vue_type_style_index_0_scoped_true_lang="";let selectFileText="'"+translate("render.hint.selectFile")+"'";const _sfc_main$2I={name:"file-upload-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{SvgIcon,FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1,styleVariables:{"--select-file-action":selectFileText}}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleFileExceed(){this.field.options.limit,this.$message.warning(eval("`"+this.i18nt("render.hint.uploadExceed")+"`"))},updateUploadFieldModelAndEmitDataChange(t){let o=deepClone(this.fieldModel);this.fieldModel=deepClone(t),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,o)},beforeFileUpload(t){let o=!1,e=t.name.substring(t.name.lastIndexOf(".")+1);if(!!this.field.options&&!!this.field.options.fileTypes){let r=this.field.options.fileTypes;r.length>0&&(o=r.some(n=>e.toLowerCase()===n.toLowerCase()))}if(!o)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+e),!1;let s=!1,i=5;return!!this.field.options&&!!this.field.options.fileMaxSize&&(i=this.field.options.fileMaxSize),s=t.size/1024/1024<=i,s?(this.uploadData.key=t.name,this.handleOnBeforeUpload(t)):(this.$message.error(this.i18nt("render.hint.fileSizeExceed")+i+"MB"),!1)},handleOnBeforeUpload(t){if(this.field.options.onBeforeUpload){let e=new Function("file",this.field.options.onBeforeUpload).call(this,t);return typeof e=="boolean"?e:!0}return!0},handleFileUpload(t,o,e){o.status==="success"&&(this.updateUploadFieldModelAndEmitDataChange(e),this.fileList=deepClone(e),this.uploadBtnHidden=e.length>=this.field.options.limit,this.field.options.onUploadSuccess&&new Function("result","file","fileList",this.field.options.onUploadSuccess).call(this,t,o,e))},handleFileRemove(t,o){this.fileList=deepClone(o),this.updateUploadFieldModelAndEmitDataChange(o),this.uploadBtnHidden=o.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,t,o)},removeUploadFile(t){let o=-1,e=null;this.fileList.forEach((s,i)=>{s.name===t&&(o=i,e=s)}),o>=0&&(this.fileList.splice(o,1),this.updateUploadFieldModelAndEmitDataChange(this.fileList),this.uploadBtnHidden=this.fileList.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,e,this.fileList))},handelUploadError(t,o,e){this.field.options.onUploadError?new Function("error","file","fileList",this.field.options.onUploadError).call(this,t,o,e):this.$message({message:this.i18nt("render.hint.uploadError")+t,duration:3e3,type:"error"})}}},_withScopeId$3=t=>(pushScopeId("data-v-09fa3b30"),t=t(),popScopeId(),t),_hoisted_1$r={key:0,class:"el-upload__tip"},_hoisted_2$f=_withScopeId$3(()=>createBaseVNode("i",{class:"el-icon-plus avatar-uploader-icon"},null,-1)),_hoisted_3$9={class:"upload-file-list"},_hoisted_4$9=["title"],_hoisted_5$8=["href"],_hoisted_6$7={class:"el-icon-download file-action",title:"i18nt('render.hint.downloadFile')"},_hoisted_7$4=["onClick"];function _sfc_render$2I(t,o,e,s,i,r){const n=resolveComponent("svg-icon"),l=resolveComponent("el-upload"),a=resolveComponent("form-item-wrapper");return openBlock(),createBlock(a,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(l,{ref:"fieldEditor",disabled:e.field.options.disabled,style:normalizeStyle(i.styleVariables),class:normalizeClass(["dynamicPseudoAfter",{hideUploadDiv:i.uploadBtnHidden}]),action:e.field.options.uploadURL,headers:i.uploadHeaders,data:i.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":i.fileList,"show-file-list":e.field.options.showFileList,limit:e.field.options.limit,"on-exceed":r.handleFileExceed,"before-upload":r.beforeFileUpload,"on-success":r.handleFileUpload,"on-error":r.handelUploadError,"on-remove":r.handleFileRemove},{tip:withCtx(()=>[e.field.options.uploadTip?(openBlock(),createElementBlock("div",_hoisted_1$r,toDisplayString(e.field.options.uploadTip),1)):createCommentVNode("",!0)]),default:withCtx(()=>[createVNode(n,{"icon-class":"el-plus"}),_hoisted_2$f]),file:withCtx(({file:d})=>[createBaseVNode("div",_hoisted_3$9,[createBaseVNode("span",{class:"upload-file-name",title:d.name},toDisplayString(d.name),9,_hoisted_4$9),createBaseVNode("a",{href:d.url,download:""},[createBaseVNode("span",_hoisted_6$7,[createVNode(n,{"icon-class":"el-download"})])],8,_hoisted_5$8),e.field.options.disabled?createCommentVNode("",!0):(openBlock(),createElementBlock("span",{key:0,class:"file-action",title:"i18nt('render.hint.removeFile')",onClick:c=>r.removeUploadFile(d.name)},[createVNode(n,{"icon-class":"el-delete"})],8,_hoisted_7$4))])]),_:1},8,["disabled","style","action","headers","data","with-credentials","multiple","file-list","show-file-list","class","limit","on-exceed","before-upload","on-success","on-error","on-remove"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var fileUploadWidget=_export_sfc(_sfc_main$2I,[["render",_sfc_render$2I],["__scopeId","data-v-09fa3b30"]]),__glob_0_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:fileUploadWidget},Symbol.toStringTag,{value:"Module"})),htmlTextWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2H={name:"html-text-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$q=["innerHTML"];function _sfc_render$2H(t,o,e,s,i,r){const n=resolveComponent("static-content-wrapper");return openBlock(),createBlock(n,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createBaseVNode("div",{ref:"fieldEditor",innerHTML:e.field.options.htmlContent},null,8,_hoisted_1$q)]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var htmlTextWidget=_export_sfc(_sfc_main$2H,[["render",_sfc_render$2H],["__scopeId","data-v-a0d236d6"]]),__glob_0_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:htmlTextWidget},Symbol.toStringTag,{value:"Module"})),inputWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2G={name:"input-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType(){return this.field.options.type==="number"?"text":this.field.options.type}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2G(t,o,e,s,i,r){const n=resolveComponent("svg-icon"),l=resolveComponent("el-button"),a=resolveComponent("el-input"),d=resolveComponent("form-item-wrapper");return openBlock(),createBlock(d,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(a,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=c=>i.fieldModel=c),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,class:"hide-spin-button",type:r.inputType,"show-password":e.field.options.showPassword,placeholder:e.field.options.placeholder,clearable:e.field.options.clearable,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,"prefix-icon":e.field.options.prefixIcon,"suffix-icon":e.field.options.suffixIcon,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onInput:t.handleInputCustomEvent,onChange:t.handleChangeEvent},createSlots({_:2},[e.field.options.appendButton?{name:"append",fn:withCtx(()=>[createVNode(l,{disabled:e.field.options.disabled||e.field.options.appendButtonDisabled,onClick:t.emitAppendButtonClick},{default:withCtx(()=>[createVNode(n,{"icon-class":e.field.options.buttonIcon},null,8,["icon-class"])]),_:1},8,["disabled","onClick"])])}:void 0]),1032,["modelValue","disabled","readonly","size","type","show-password","placeholder","clearable","minlength","maxlength","show-word-limit","prefix-icon","suffix-icon","onFocus","onBlur","onInput","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var inputWidget=_export_sfc(_sfc_main$2G,[["render",_sfc_render$2G],["__scopeId","data-v-54ad556e"]]),__glob_0_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:inputWidget},Symbol.toStringTag,{value:"Module"})),numberWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2F={name:"number-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2F(t,o,e,s,i,r){const n=resolveComponent("el-input-number"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),class:"full-width-input",disabled:e.field.options.disabled,size:t.widgetSize,"controls-position":e.field.options.controlsPosition,placeholder:e.field.options.placeholder,min:e.field.options.min,max:e.field.options.max,precision:e.field.options.precision,step:e.field.options.step,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","size","controls-position","placeholder","min","max","precision","step","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var numberWidget=_export_sfc(_sfc_main$2F,[["render",_sfc_render$2F],["__scopeId","data-v-78aba4ad"]]),__glob_0_11$1=Object.freeze(Object.defineProperty({__proto__:null,default:numberWidget},Symbol.toStringTag,{value:"Module"})),pictureUploadWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2E={name:"picture-upload-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handlePictureExceed(){this.field.options.limit,this.$message.warning(eval("`"+this.i18nt("render.hint.uploadExceed")+"`"))},updateUploadFieldModelAndEmitDataChange(t){let o=deepClone(this.fieldModel);this.fieldModel=deepClone(t),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,o)},beforePictureUpload(t){let o=!1;if(!!this.field.options&&!!this.field.options.fileTypes){let i=this.field.options.fileTypes;i.length>0&&(o=i.some(r=>t.type==="image/"+r))}if(!o)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+t.type),!1;let e=!1,s=5;return!!this.field.options&&!!this.field.options.fileMaxSize&&(s=this.field.options.fileMaxSize),e=t.size/1024/1024<=s,e?(this.uploadData.key=t.name,this.handleOnBeforeUpload(t)):(this.$message.error(this.$("render.hint.fileSizeExceed")+s+"MB"),!1)},handleOnBeforeUpload(t){if(this.field.options.onBeforeUpload){let e=new Function("file",this.field.options.onBeforeUpload).call(this,t);return typeof e=="boolean"?e:!0}return!0},handlePictureUpload(t,o,e){o.status==="success"&&(this.updateUploadFieldModelAndEmitDataChange(e),this.fileList=deepClone(e),this.uploadBtnHidden=e.length>=this.field.options.limit,this.field.options.onUploadSuccess&&new Function("result","file","fileList",this.field.options.onUploadSuccess).call(this,t,o,e))},handlePictureRemove(t,o){this.fileList=deepClone(o),this.updateUploadFieldModelAndEmitDataChange(o),this.uploadBtnHidden=o.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,t,o)},handelUploadError(t,o,e){this.field.options.onUploadError?new Function("error","file","fileList",this.field.options.onUploadError).call(this,t,o,e):this.$message({message:this.i18nt("render.hint.uploadError")+t,duration:3e3,type:"error"})}}},_hoisted_1$p={key:0,class:"el-upload__tip"},_hoisted_2$e={class:"uploader-icon"};function _sfc_render$2E(t,o,e,s,i,r){const n=resolveComponent("svg-icon"),l=resolveComponent("el-upload"),a=resolveComponent("form-item-wrapper");return openBlock(),createBlock(a,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(l,{ref:"fieldEditor",disabled:e.field.options.disabled,action:e.field.options.uploadURL,headers:i.uploadHeaders,data:i.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":i.fileList,"show-file-list":e.field.options.showFileList,"list-type":"picture-card",class:normalizeClass({hideUploadDiv:i.uploadBtnHidden}),limit:e.field.options.limit,"on-exceed":r.handlePictureExceed,"before-upload":r.beforePictureUpload,"on-success":r.handlePictureUpload,"on-error":r.handelUploadError,"on-remove":r.handlePictureRemove},{tip:withCtx(()=>[e.field.options.uploadTip?(openBlock(),createElementBlock("div",_hoisted_1$p,toDisplayString(e.field.options.uploadTip),1)):createCommentVNode("",!0)]),default:withCtx(()=>[createBaseVNode("div",_hoisted_2$e,[createVNode(n,{"icon-class":"el-plus"})])]),_:1},8,["disabled","action","headers","data","with-credentials","multiple","file-list","show-file-list","class","limit","on-exceed","before-upload","on-success","on-error","on-remove"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var pictureUploadWidget=_export_sfc(_sfc_main$2E,[["render",_sfc_render$2E],["__scopeId","data-v-674fd26b"]]),__glob_0_12$1=Object.freeze(Object.defineProperty({__proto__:null,default:pictureUploadWidget},Symbol.toStringTag,{value:"Module"})),radioWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2D={name:"radio-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2D(t,o,e,s,i,r){const n=resolveComponent("el-radio-button"),l=resolveComponent("el-radio"),a=resolveComponent("el-radio-group"),d=resolveComponent("form-item-wrapper");return openBlock(),createBlock(d,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(a,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=c=>i.fieldModel=c),class:normalizeClass({"radio-group-block":e.field.options.displayStyle==="block"}),disabled:e.field.options.disabled,size:t.widgetSize,onChange:t.handleChangeEvent},{default:withCtx(()=>[e.field.options.buttonStyle?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.field.options.optionItems,(c,u)=>(openBlock(),createBlock(n,{key:u,label:c.value,disabled:c.disabled,border:e.field.options.border,style:normalizeStyle({display:e.field.options.displayStyle})},{default:withCtx(()=>[createTextVNode(toDisplayString(c.label),1)]),_:2},1032,["label","disabled","border","style"]))),128)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.field.options.optionItems,(c,u)=>(openBlock(),createBlock(l,{key:u,label:c.value,disabled:c.disabled,border:e.field.options.border,style:normalizeStyle({display:e.field.options.displayStyle})},{default:withCtx(()=>[createTextVNode(toDisplayString(c.label),1)]),_:2},1032,["label","disabled","border","style"]))),128))]),_:1},8,["modelValue","class","disabled","size","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var radioWidget=_export_sfc(_sfc_main$2D,[["render",_sfc_render$2D],["__scopeId","data-v-5becdb92"]]),__glob_0_13$1=Object.freeze(Object.defineProperty({__proto__:null,default:radioWidget},Symbol.toStringTag,{value:"Module"})),rateWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2C={name:"rate-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2C(t,o,e,s,i,r){const n=resolveComponent("el-rate"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),disabled:e.field.options.disabled,max:e.field.options.max,"low-threshold":e.field.options.lowThreshold,"high-threshold":e.field.options.highThreshold,"allow-half":e.field.options.allowHalf,"show-text":e.field.options.showText,"show-score":e.field.options.showScore,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","max","low-threshold","high-threshold","allow-half","show-text","show-score","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var rateWidget=_export_sfc(_sfc_main$2C,[["render",_sfc_render$2C],["__scopeId","data-v-e8d5267c"]]),__glob_0_14$1=Object.freeze(Object.defineProperty({__proto__:null,default:rateWidget},Symbol.toStringTag,{value:"Module"})),richEditorWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2B={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper,quillEditor},data(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{editorOption(){return{placeholder:this.field.options.placeholder,modules:{}}}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent(){this.oldFieldValue=deepClone(this.fieldModel)},handleRichEditorBlurEvent(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}};function _sfc_render$2B(t,o,e,s,i,r){const n=resolveComponent("quill-editor"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createBaseVNode("div",null,[createVNode(n,{value:i.fieldModel,"onUpdate:value":o[0]||(o[0]=a=>i.fieldModel=a),options:r.editorOption,disabled:e.field.options.disabled,onBlur:r.handleRichEditorBlurEvent,onFocus:r.handleRichEditorFocusEvent,onChange:r.handleRichEditorChangeEvent,style:normalizeStyle(e.field.options.contentHeight?`height: ${e.field.options.contentHeight};`:"")},null,8,["value","options","disabled","onBlur","onFocus","onChange","style"])])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var richEditorWidget=_export_sfc(_sfc_main$2B,[["render",_sfc_render$2B],["__scopeId","data-v-736d97e5"]]),__glob_0_15$1=Object.freeze(Object.defineProperty({__proto__:null,default:richEditorWidget},Symbol.toStringTag,{value:"Module"})),selectWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2A={name:"select-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{allowDefaultFirstOption(){return!!this.field.options.filterable&&!!this.field.options.allowCreate}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2A(t,o,e,s,i,r){const n=resolveComponent("el-option"),l=resolveComponent("el-select"),a=resolveComponent("form-item-wrapper");return openBlock(),createBlock(a,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(l,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=d=>i.fieldModel=d),class:"full-width-input",disabled:e.field.options.disabled,size:t.widgetSize,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"allow-create":e.field.options.allowCreate,"default-first-option":r.allowDefaultFirstOption,"automatic-dropdown":e.field.options.automaticDropdown,multiple:e.field.options.multiple,"multiple-limit":e.field.options.multipleLimit,placeholder:e.field.options.placeholder||t.i18nt("render.hint.selectPlaceholder"),remote:e.field.options.remote,"remote-method":t.remoteQuery,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.field.options.optionItems,d=>(openBlock(),createBlock(n,{key:d.value,label:d.label,value:d.value,disabled:d.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","disabled","size","clearable","filterable","allow-create","default-first-option","automatic-dropdown","multiple","multiple-limit","placeholder","remote","remote-method","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var selectWidget=_export_sfc(_sfc_main$2A,[["render",_sfc_render$2A],["__scopeId","data-v-3819309e"]]),__glob_0_16$1=Object.freeze(Object.defineProperty({__proto__:null,default:selectWidget},Symbol.toStringTag,{value:"Module"})),sliderWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2z={name:"slider-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2z(t,o,e,s,i,r){const n=resolveComponent("el-slider"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),disabled:e.field.options.disabled,"show-stops":e.field.options.showStops,min:e.field.options.min,max:e.field.options.max,step:e.field.options.step,range:e.field.options.range,vertical:e.field.options.vertical,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","show-stops","min","max","step","range","vertical","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var sliderWidget=_export_sfc(_sfc_main$2z,[["render",_sfc_render$2z],["__scopeId","data-v-e54b3390"]]),__glob_0_17$1=Object.freeze(Object.defineProperty({__proto__:null,default:sliderWidget},Symbol.toStringTag,{value:"Module"})),slotWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2y={name:"slot-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$o={key:0,class:"slot-title"};function _sfc_render$2y(t,o,e,s,i,r){const n=resolveComponent("static-content-wrapper");return openBlock(),createBlock(n,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([e.designState?"slot-wrapper-design":"slot-wrapper-render"])},[renderSlot(t.$slots,e.field.options.name,{formModel:t.formModel},void 0,!0),e.designState?(openBlock(),createElementBlock("div",_hoisted_1$o,toDisplayString(e.field.options.label),1)):createCommentVNode("",!0)],2)]),_:3},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var slotWidget=_export_sfc(_sfc_main$2y,[["render",_sfc_render$2y],["__scopeId","data-v-1b458525"]]),__glob_0_18$1=Object.freeze(Object.defineProperty({__proto__:null,default:slotWidget},Symbol.toStringTag,{value:"Module"})),staticTextWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2x={name:"static-text-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2x(t,o,e,s,i,r){const n=resolveComponent("static-content-wrapper");return openBlock(),createBlock(n,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createBaseVNode("div",{ref:"fieldEditor"},toDisplayString(e.field.options.textContent),513)]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var staticTextWidget=_export_sfc(_sfc_main$2x,[["render",_sfc_render$2x],["__scopeId","data-v-86aee66c"]]),__glob_0_20$1=Object.freeze(Object.defineProperty({__proto__:null,default:staticTextWidget},Symbol.toStringTag,{value:"Module"})),switchWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2w={name:"switch-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2w(t,o,e,s,i,r){const n=resolveComponent("el-switch"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),disabled:e.field.options.disabled,"active-text":e.field.options.activeText,"inactive-text":e.field.options.inactiveText,"active-color":e.field.options.activeColor,"inactive-color":e.field.options.inactiveColor,width:e.field.options.switchWidth,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","active-text","inactive-text","active-color","inactive-color","width","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var switchWidget=_export_sfc(_sfc_main$2w,[["render",_sfc_render$2w],["__scopeId","data-v-51a90f56"]]),__glob_0_21$1=Object.freeze(Object.defineProperty({__proto__:null,default:switchWidget},Symbol.toStringTag,{value:"Module"})),textareaWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2v={name:"textarea-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2v(t,o,e,s,i,r){const n=resolveComponent("el-input"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{type:"textarea",ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,placeholder:e.field.options.placeholder,rows:e.field.options.rows,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onInput:t.handleInputCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","readonly","size","placeholder","rows","minlength","maxlength","show-word-limit","onFocus","onBlur","onInput","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var textareaWidget=_export_sfc(_sfc_main$2v,[["render",_sfc_render$2v],["__scopeId","data-v-07ccea24"]]),__glob_0_22$1=Object.freeze(Object.defineProperty({__proto__:null,default:textareaWidget},Symbol.toStringTag,{value:"Module"})),timeRangeWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2u={name:"time-range-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2u(t,o,e,s,i,r){const n=resolveComponent("el-time-picker"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""])},[createVNode(n,{ref:"fieldEditor","is-range":"",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),class:normalizeClass([e.field.options.autoFullWidth?"full-width-input":""]),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss","start-placeholder":e.field.options.startPlaceholder||t.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||t.i18nt("render.hint.endTimePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","class","disabled","readonly","size","clearable","editable","format","start-placeholder","end-placeholder","onFocus","onBlur","onChange"])],2)]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var timeRangeWidget=_export_sfc(_sfc_main$2u,[["render",_sfc_render$2u],["__scopeId","data-v-6789eaac"]]),__glob_0_23$1=Object.freeze(Object.defineProperty({__proto__:null,default:timeRangeWidget},Symbol.toStringTag,{value:"Module"})),timeWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2t={name:"time-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2t(t,o,e,s,i,r){const n=resolveComponent("el-time-picker"),l=resolveComponent("form-item-wrapper");return openBlock(),createBlock(l,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:withCtx(()=>[createVNode(n,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":o[0]||(o[0]=a=>i.fieldModel=a),class:normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""]),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss",placeholder:e.field.options.placeholder||t.i18nt("render.hint.timePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","class","disabled","readonly","size","clearable","editable","format","placeholder","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var timeWidget=_export_sfc(_sfc_main$2t,[["render",_sfc_render$2t],["__scopeId","data-v-b2bd1886"]]),__glob_0_24$1=Object.freeze(Object.defineProperty({__proto__:null,default:timeWidget},Symbol.toStringTag,{value:"Module"}));let comps$1={};const modules$3={"./button-widget.vue":__glob_0_0$2,"./cascader-widget.vue":__glob_0_1$3,"./checkbox-widget.vue":__glob_0_2$3,"./color-widget.vue":__glob_0_3$3,"./date-range-widget.vue":__glob_0_4$3,"./date-widget.vue":__glob_0_5$3,"./divider-widget.vue":__glob_0_6$2,"./file-upload-widget.vue":__glob_0_7$1,"./form-item-wrapper.vue":__glob_0_8$1,"./html-text-widget.vue":__glob_0_9$1,"./input-widget.vue":__glob_0_10$1,"./number-widget.vue":__glob_0_11$1,"./picture-upload-widget.vue":__glob_0_12$1,"./radio-widget.vue":__glob_0_13$1,"./rate-widget.vue":__glob_0_14$1,"./rich-editor-widget.vue":__glob_0_15$1,"./select-widget.vue":__glob_0_16$1,"./slider-widget.vue":__glob_0_17$1,"./slot-widget.vue":__glob_0_18$1,"./static-content-wrapper.vue":__glob_0_19$1,"./static-text-widget.vue":__glob_0_20$1,"./switch-widget.vue":__glob_0_21$1,"./textarea-widget.vue":__glob_0_22$1,"./time-range-widget.vue":__glob_0_23$1,"./time-widget.vue":__glob_0_24$1};for(const t in modules$3){let o=modules$3[t].default.name;comps$1[o]=modules$3[t].default}var gridColItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2s={name:"GridColItem",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin],components:K({},comps$1),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,colHeight:{type:String,default:null}},inject:["refList","globalModel","getFormConfig","previewState"],data(){return{layoutProps:{span:this.widget.options.span,md:this.widget.options.md||12,sm:this.widget.options.sm||12,xs:this.widget.options.xs||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{formConfig(){return this.getFormConfig()},customClass(){return this.widget.options.customClass||""},colHeightStyle(){return this.colHeight?{height:this.colHeight+"px"}:{}}},created(){this.initLayoutProps(),this.initRefList()},methods:{initLayoutProps(){if(this.widget.options.responsive)if(this.previewState){this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0;let t=this.formConfig.layoutType;t==="H5"?this.layoutProps.span=this.widget.options.xs||12:t==="Pad"?this.layoutProps.span=this.widget.options.sm||12:this.layoutProps.span=this.widget.options.md||12}else this.layoutProps.span=void 0;else this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0}}},_hoisted_1$n={class:"blank-cell"},_hoisted_2$d={class:"invisible-content"};function _sfc_render$2s(t,o,e,s,i,r){const n=resolveComponent("el-col");return withDirectives((openBlock(),createBlock(n,mergeProps({class:["grid-cell",[r.customClass]]},i.layoutProps,{style:r.colHeightStyle,key:e.widget.id}),{default:withCtx(()=>[!!e.widget.widgetList&&e.widget.widgetList.length>0?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.widget.widgetList,(l,a)=>(openBlock(),createElementBlock(Fragment,null,[l.category==="container"?(openBlock(),createBlock(resolveDynamicComponent(l.type+"-item"),{widget:l,key:a,"parent-list":e.widget.widgetList,"index-of-parent-list":a,"parent-widget":e.widget},createSlots({_:2},[renderList(Object.keys(t.$slots),d=>({name:d,fn:withCtx(c=>[renderSlot(t.$slots,d,normalizeProps(guardReactiveProps(c)),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(openBlock(),createBlock(resolveDynamicComponent(l.type+"-widget"),{field:l,designer:null,key:a,"parent-list":e.widget.widgetList,"index-of-parent-list":a,"parent-widget":e.widget},createSlots({_:2},[renderList(Object.keys(t.$slots),d=>({name:d,fn:withCtx(c=>[renderSlot(t.$slots,d,normalizeProps(guardReactiveProps(c)),void 0,!0)])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256)):(openBlock(),createBlock(n,{key:1},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$n,[createBaseVNode("span",_hoisted_2$d,toDisplayString(t.i18nt("render.hint.blankCellContent")),1)])]),_:1}))]),_:3},16,["class","style"])),[[vShow,!e.widget.options.hidden]])}var GridColItem=_export_sfc(_sfc_main$2s,[["render",_sfc_render$2s],["__scopeId","data-v-0557583f"]]),__glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:GridColItem},Symbol.toStringTag,{value:"Module"})),containerItemMixin={computed:{customClass(){return this.widget.options.customClass||""},formModel:{cache:!1,get(){return this.globalModel.formModel}}},mounted(){this.callSetHidden()},methods:{unregisterFromRefList(){if(this.refList!==null&&!!this.widget.options.name){let t=this.widget.options.name;delete this.refList[t]}},callSetHidden(){this.widget.options.hidden===!0&&this.setHidden(!0)},setHidden(t){this.widget.options.hidden=t;let o=e=>{let s=e.options.name,i=this.getWidgetRef(s);t&&!!i&&!!i.clearFieldRules&&i.clearFieldRules(),!t&&!!i&&!!i.buildFieldRules&&i.buildFieldRules()};traverseFieldWidgetsOfContainer(this.widget,o)},activeTab(t){t>=0&&t{o.options.active=e===t,e===t&&(this.activeTabName=o.options.name)})},disableTab(t){t>=0&&t=0&&t=0&&t=0&&t{let e=o.options.name+"@row"+this.rowIdData[t],s=this.getWidgetRef(e);s&&s.setDisabled(!0)})},enableSubFormRow(t){this.widget.widgetList.forEach(o=>{let e=o.options.name+"@row"+this.rowIdData[t],s=this.getWidgetRef(e);s&&s.setDisabled(!1)})},disableSubForm(){this.rowIdData.length>0&&this.rowIdData.forEach((t,o)=>{this.disableSubFormRow(o)}),this.actionDisabled=!0},enableSubForm(){this.rowIdData.length>0&&this.rowIdData.forEach((t,o)=>{this.enableSubFormRow(o)}),this.actionDisabled=!1},resetSubForm(){if(this.widget.type==="sub-form"){let t=this.formModel[this.widget.options.name];t&&(t.splice(0,t.length),this.rowIdData.splice(0,this.rowIdData.length)),this.widget.options.showBlankRow&&this.addSubFormRow()}},getSubFormValues(t=!0){if(this.widget.type==="sub-form")return this.formModel[this.widget.options.name];this.$message.error(this.i18nt("render.hint.nonSubFormType"))}}};const _sfc_main$2r={name:"grid-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:{ContainerItemWrapper,GridColItem},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2r(t,o,e,s,i,r){const n=resolveComponent("grid-col-item"),l=resolveComponent("el-row"),a=resolveComponent("container-item-wrapper");return openBlock(),createBlock(a,{widget:e.widget},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(l,{key:e.widget.id,gutter:e.widget.options.gutter,class:normalizeClass(["grid-container",[t.customClass]]),ref:e.widget.id},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widget.cols,(d,c)=>(openBlock(),createBlock(n,{key:c,widget:d,"parent-list":e.widget.cols,"index-of-parent-list":c,"parent-widget":e.widget,"col-height":e.widget.options.colHeight},createSlots({_:2},[renderList(Object.keys(t.$slots),u=>({name:u,fn:withCtx(m=>[renderSlot(t.$slots,u,normalizeProps(guardReactiveProps(m)))])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget","col-height"]))),128))]),_:3},8,["gutter","class"])),[[vShow,!e.widget.options.hidden]])]),_:3},8,["widget"])}var gridItem=_export_sfc(_sfc_main$2r,[["render",_sfc_render$2r]]),__glob_0_2$2=Object.freeze(Object.defineProperty({__proto__:null,default:gridItem},Symbol.toStringTag,{value:"Module"})),subFormItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2q={name:"sub-form-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:K({ContainerItemWrapper},comps$1),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{rowIdData:[],fieldSchemaData:[],actionDisabled:!1}},created(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted(){this.handleSubFormFirstRowAdd()},beforeUnmount(){this.unregisterFromRefList()},methods:{getLabelAlign(t,o){return o.options.labelAlign||t.options.labelAlign},registerSubFormToRefList(){this.widget.type==="sub-form"&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData(t){if(this.widget.type==="sub-form"){this.rowIdData.splice(0,this.rowIdData.length);let o=this.formModel[this.widget.options.name];!!o&&o.length>0&&(o.forEach(()=>{this.rowIdData.push("id"+generateId())}),t&&setTimeout(()=>{this.handleSubFormRowChange(o)},800))}},addToRowIdData(){this.rowIdData.push("id"+generateId())},insertToRowIdData(t){this.rowIdData.splice(t,0,"id"+generateId())},deleteFromRowIdData(t){this.rowIdData.splice(t,1)},getRowIdData(){return this.rowIdData},getWidgetRefOfSubForm(t,o){let e=t+"@row"+this.rowIdData[o];return this.getWidgetRef(e)},initFieldSchemaData(){if(this.widget.type!=="sub-form")return;let t=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),t>0)for(let o=0;o{e.push(this.cloneFieldSchema(s))}),this.fieldSchemaData.push(e)}},addToFieldSchemaData(t){let o=[];this.widget.widgetList.forEach(e=>{o.push(this.cloneFieldSchema(e))}),t===void 0?this.fieldSchemaData.push(o):this.fieldSchemaData.splice(t,0,o)},deleteFromFieldSchemaData(t){this.fieldSchemaData.splice(t,1)},cloneFieldSchema(t){let o=deepClone(t);return o.id=t.type+generateId(),o},initEventHandler(){this.widget.type==="sub-form"&&this.on$("setFormData",t=>{this.initRowIdData(!1),this.initFieldSchemaData();let o=t[this.widget.options.name]||[];setTimeout(()=>{this.handleSubFormRowChange(o)},800)})},handleSubFormFirstRowAdd(){if(this.widget.type==="sub-form"&&!!this.widget.options.showBlankRow&&this.rowIdData.length===1){let t=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd(t,this.rowIdData[0]),this.handleSubFormRowChange(t)}},addSubFormRow(){let t={};this.widget.widgetList.forEach(e=>{e.formItemFlag&&(t[e.options.name]=e.options.defaultValue)});let o=this.formModel[this.widget.options.name]||[];o.push(t),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(o,this.rowIdData[o.length-1]),this.handleSubFormRowChange(o)},insertSubFormRow(t){let o={};this.widget.widgetList.forEach(s=>{s.formItemFlag&&(o[s.options.name]=s.options.defaultValue)});let e=this.formModel[this.widget.options.name]||[];e.splice(t,0,o),this.insertToRowIdData(t),this.addToFieldSchemaData(t),this.handleSubFormRowInsert(e,this.rowIdData[t]),this.handleSubFormRowChange(e)},deleteSubFormRow(t){this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{let o=this.formModel[this.widget.options.name]||[],e=deepClone(o[t]);o.splice(t,1),this.deleteFromRowIdData(t),this.deleteFromFieldSchemaData(t),this.handelSubFormRowDelete(o,e),this.handleSubFormRowChange(o)}).catch(()=>{})},handleSubFormRowChange(t){this.widget.options.onSubFormRowChange&&new Function("subFormData",this.widget.options.onSubFormRowChange).call(this,t)},handleSubFormRowAdd(t,o){this.widget.options.onSubFormRowAdd&&new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd).call(this,t,o)},handleSubFormRowInsert(t,o){this.widget.options.onSubFormRowInsert&&new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert).call(this,t,o)},handelSubFormRowDelete(t,o){this.widget.options.onSubFormRowDelete&&new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete).call(this,t,o)}}},_hoisted_1$m={class:"action-header-column"},_hoisted_2$c={class:"action-label"},_hoisted_3$8={key:0,class:"custom-label"},_hoisted_4$8=["title"],_hoisted_5$7={class:"sub-form-action-column hide-label"},_hoisted_6$6={class:"action-button-column"},_hoisted_7$3={key:0,class:"row-number-span"};function _sfc_render$2q(t,o,e,s,i,r){const n=resolveComponent("svg-icon"),l=resolveComponent("el-button"),a=resolveComponent("el-tooltip"),d=resolveComponent("el-row"),c=resolveComponent("container-item-wrapper");return openBlock(),createBlock(c,{widget:e.widget},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{key:e.widget.id,class:"sub-form-container"},[createVNode(d,{class:"header-row"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$m,[createBaseVNode("span",_hoisted_2$c,toDisplayString(t.i18nt("render.hint.subFormAction")),1),createVNode(l,{disabled:i.actionDisabled,round:"",type:"primary",size:"small",class:"action-button",onClick:r.addSubFormRow,title:t.i18nt("render.hint.subFormAddActionHint")},{default:withCtx(()=>[createTextVNode(toDisplayString(t.i18nt("render.hint.subFormAddAction")),1),createVNode(n,{"icon-class":"el-plus"})]),_:1},8,["disabled","onClick","title"])]),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widget.widgetList,u=>(openBlock(),createElementBlock("div",{key:u.id+"thc",class:normalizeClass(["field-header-column",[r.getLabelAlign(e.widget,u),u.options.required?"is-required":""]]),style:normalizeStyle({width:u.options.columnWidth})},[u.options.labelIconClass?(openBlock(),createElementBlock("span",_hoisted_3$8,[u.options.labelIconPosition==="front"?(openBlock(),createElementBlock(Fragment,{key:0},[u.options.labelTooltip?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(a,{content:u.options.labelTooltip,effect:"light"},{default:withCtx(()=>[createVNode(n,{"icon-class":u.options.labelIconClass},null,8,["icon-class"])]),_:2},1032,["content"]),createTextVNode(toDisplayString(u.options.label),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(n,{"icon-class":u.options.labelIconClass},null,8,["icon-class"]),createTextVNode(toDisplayString(u.options.label),1)],64))],64)):u.options.labelIconPosition==="rear"?(openBlock(),createElementBlock(Fragment,{key:1},[u.options.labelTooltip?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(u.options.label),1),createVNode(a,{content:u.options.labelTooltip,effect:"light"},{default:withCtx(()=>[createVNode(n,{"icon-class":u.options.labelIconClass},null,8,["icon-class"])]),_:2},1032,["content"])],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.options.label),1),createVNode(n,{"icon-class":u.options.labelIconClass},null,8,["icon-class"])],64))],64)):createCommentVNode("",!0)])):(openBlock(),createElementBlock("span",{key:1,title:u.options.labelTooltip},toDisplayString(u.options.label),9,_hoisted_4$8))],6))),128))]),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(i.rowIdData,(u,m)=>(openBlock(),createBlock(d,{class:"sub-form-row",key:u},{default:withCtx(()=>[createBaseVNode("div",_hoisted_5$7,[createBaseVNode("div",_hoisted_6$6,[createVNode(l,{disabled:i.actionDisabled,circle:"",onClick:f=>r.insertSubFormRow(m),title:t.i18nt("render.hint.insertSubFormRow")},{default:withCtx(()=>[createVNode(n,{"icon-class":"el-plus"})]),_:2},1032,["disabled","onClick","title"]),createVNode(l,{disabled:i.actionDisabled,circle:"",onClick:f=>r.deleteSubFormRow(m),title:t.i18nt("render.hint.deleteSubFormRow")},{default:withCtx(()=>[createVNode(n,{"icon-class":"el-delete"})]),_:2},1032,["disabled","onClick","title"]),e.widget.options.showRowNumber?(openBlock(),createElementBlock("span",_hoisted_7$3,"#"+toDisplayString(m+1),1)):createCommentVNode("",!0)])]),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widget.widgetList,(f,g)=>(openBlock(),createElementBlock("div",{key:f.id+"tc"+u,class:"sub-form-table-column hide-label",style:normalizeStyle({width:f.options.columnWidth})},[(openBlock(),createBlock(resolveDynamicComponent(f.type+"-widget"),{field:i.fieldSchemaData[m][g],key:i.fieldSchemaData[m][g].id,"parent-list":e.widget.widgetList,"index-of-parent-list":g,"parent-widget":e.widget,"sub-form-row-id":u,"sub-form-row-index":m,"sub-form-col-index":g},null,8,["field","parent-list","index-of-parent-list","parent-widget","sub-form-row-id","sub-form-row-index","sub-form-col-index"]))],4))),128))]),_:2},1024))),128))])),[[vShow,!e.widget.options.hidden]])]),_:1},8,["widget"])}var subFormItem=_export_sfc(_sfc_main$2q,[["render",_sfc_render$2q],["__scopeId","data-v-c4861a62"]]),__glob_0_3$2=Object.freeze(Object.defineProperty({__proto__:null,default:subFormItem},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2p={name:"tab-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:K({ContainerItemWrapper},comps$1),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{activeTabName:""}},computed:{visibleTabs(){return this.widget.tabs.filter(t=>!t.options.hidden)}},created(){this.initRefList()},mounted(){this.initActiveTab()},beforeUnmount(){this.unregisterFromRefList()},methods:{initActiveTab(){if(this.widget.type==="tab"&&this.widget.tabs.length>0){let t=this.widget.tabs.filter(o=>o.options.active===!0);t.length>0?this.activeTabName=t[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}};function _sfc_render$2p(t,o,e,s,i,r){const n=resolveComponent("el-tab-pane"),l=resolveComponent("el-tabs"),a=resolveComponent("container-item-wrapper");return openBlock(),createBlock(a,{widget:e.widget},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{key:e.widget.id,class:"tab-container"},[createVNode(l,{modelValue:i.activeTabName,"onUpdate:modelValue":o[0]||(o[0]=d=>i.activeTabName=d),type:e.widget.displayType,ref:e.widget.id,class:normalizeClass([t.customClass])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.visibleTabs,(d,c)=>(openBlock(),createBlock(n,{key:c,label:d.options.label,disabled:d.options.disabled,name:d.options.name},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(d.widgetList,(u,m)=>(openBlock(),createElementBlock(Fragment,null,[u.category==="container"?(openBlock(),createBlock(resolveDynamicComponent(u.type+"-item"),{widget:u,key:m,"parent-list":d.widgetList,"index-of-parent-list":m,"parent-widget":e.widget},createSlots({_:2},[renderList(Object.keys(t.$slots),f=>({name:f,fn:withCtx(g=>[renderSlot(t.$slots,f,normalizeProps(guardReactiveProps(g)))])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(openBlock(),createBlock(resolveDynamicComponent(u.type+"-widget"),{field:u,key:m,"parent-list":d.widgetList,"index-of-parent-list":m,"parent-widget":e.widget},createSlots({_:2},[renderList(Object.keys(t.$slots),f=>({name:f,fn:withCtx(g=>[renderSlot(t.$slots,f,normalizeProps(guardReactiveProps(g)))])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256))]),_:2},1032,["label","disabled","name"]))),128))]),_:3},8,["modelValue","type","class"])])),[[vShow,!e.widget.options.hidden]])]),_:3},8,["widget"])}var tabItem=_export_sfc(_sfc_main$2p,[["render",_sfc_render$2p]]),__glob_0_4$2=Object.freeze(Object.defineProperty({__proto__:null,default:tabItem},Symbol.toStringTag,{value:"Module"})),tableCellItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2o={name:"TableCellItem",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin],components:K({},comps$1),props:{widget:Object,rowIndex:Number,colIndex:Number},inject:["refList","globalModel"],computed:{customClass(){return this.widget.options.customClass||""}},created(){},methods:{}},_hoisted_1$l=["colspan","rowspan"];function _sfc_render$2o(t,o,e,s,i,r){return openBlock(),createElementBlock("td",{class:normalizeClass(["table-cell",[r.customClass]]),colspan:e.widget.options.colspan||1,rowspan:e.widget.options.rowspan||1,style:normalizeStyle({width:e.widget.options.cellWidth+" !important"||"",height:e.widget.options.cellHeight+" !important"||""})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widget.widgetList,(n,l)=>(openBlock(),createElementBlock(Fragment,null,[n.category==="container"?(openBlock(),createBlock(resolveDynamicComponent(n.type+"-item"),{widget:n,key:l,"parent-list":e.widget.widgetList,"index-of-parent-list":l,"parent-widget":e.widget},createSlots({_:2},[renderList(Object.keys(t.$slots),a=>({name:a,fn:withCtx(d=>[renderSlot(t.$slots,a,normalizeProps(guardReactiveProps(d)),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(openBlock(),createBlock(resolveDynamicComponent(n.type+"-widget"),{field:n,key:l,"parent-list":e.widget.widgetList,"index-of-parent-list":l,"parent-widget":e.widget},createSlots({_:2},[renderList(Object.keys(t.$slots),a=>({name:a,fn:withCtx(d=>[renderSlot(t.$slots,a,normalizeProps(guardReactiveProps(d)),void 0,!0)])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256))],14,_hoisted_1$l)}var TableCellItem=_export_sfc(_sfc_main$2o,[["render",_sfc_render$2o],["__scopeId","data-v-1b8afaa8"]]),__glob_0_5$2=Object.freeze(Object.defineProperty({__proto__:null,default:TableCellItem},Symbol.toStringTag,{value:"Module"})),tableItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2n={name:"table-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:{ContainerItemWrapper,TableCellItem},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2n(t,o,e,s,i,r){const n=resolveComponent("table-cell-item"),l=resolveComponent("container-item-wrapper");return openBlock(),createBlock(l,{widget:e.widget},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{key:e.widget.id,class:"table-container"},[createBaseVNode("table",{ref:e.widget.id,class:normalizeClass(["table-layout",[t.customClass]])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widget.rows,(a,d)=>(openBlock(),createElementBlock("tr",{key:a.id},[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.cols,(c,u)=>(openBlock(),createElementBlock(Fragment,null,[c.merged?createCommentVNode("",!0):(openBlock(),createBlock(n,{widget:c,key:u,"parent-list":e.widget.cols,"row-index":d,"col-index":u,"parent-widget":e.widget},createSlots({_:2},[renderList(Object.keys(t.$slots),m=>({name:m,fn:withCtx(f=>[renderSlot(t.$slots,m,normalizeProps(guardReactiveProps(f)),void 0,!0)])}))]),1032,["widget","parent-list","row-index","col-index","parent-widget"]))],64))),256))]))),128))])],2)])),[[vShow,!e.widget.options.hidden]])]),_:3},8,["widget"])}var tableItem=_export_sfc(_sfc_main$2n,[["render",_sfc_render$2n],["__scopeId","data-v-6cba7003"]]),__glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:tableItem},Symbol.toStringTag,{value:"Module"}));const modules$2={"./container-item-wrapper.vue":__glob_0_0$3,"./grid-col-item.vue":__glob_0_1$2,"./grid-item.vue":__glob_0_2$2,"./sub-form-item.vue":__glob_0_3$2,"./tab-item.vue":__glob_0_4$2,"./table-cell-item.vue":__glob_0_5$2,"./table-item.vue":__glob_0_6$1};var ContainerItems={install(t){for(const o in modules$2){let e=modules$2[o].default.name;t.component(e,modules$2[o].default)}}},index_vue_vue_type_style_index_0_scoped_true_lang$5="";const _sfc_main$2m={name:"VFormRender",componentName:"VFormRender",mixins:[emitter,i18n$1],components:K({},comps$1),props:{formJson:{type:Object,default:()=>buildDefaultFormJson()},formData:{type:Object,default:()=>{}},optionData:{type:Object,default:()=>{}},previewState:{type:Boolean,default:!1}},provide(){return{refList:this.widgetRefList,sfRefList:this.subFormRefList,getFormConfig:()=>this.formJsonObj.formConfig,globalOptionData:this.optionData,getOptionData:()=>this.optionData,globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{},formId:null,externalComponents:{}}},computed:{formConfig(){return this.formJsonObj.formConfig},widgetList(){return this.formJsonObj.widgetList},labelPosition(){return!!this.formConfig&&!!this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth(){return!!this.formConfig&&!!this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size(){return!!this.formConfig&&!!this.formConfig.size?this.formConfig.size:"default"},customClass(){return!!this.formConfig&&!!this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject(t=!0){this.formId="vfRender"+generateId(),t&&this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName(t){return t.type+"-item"},getWidgetName(t){return t.type+"-widget"},initLocale(){let t=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage(t)},insertCustomStyleAndScriptNode(){!!this.formConfig&&!!this.formConfig.cssCode&&insertCustomCssToHead(this.formConfig.cssCode,this.previewState?"":this.formId),!!this.formConfig&&!!this.formConfig.functions&&insertGlobalFunctionsToHtml(this.formConfig.functions,this.previewState?"":this.formId)},buildFormModel(t){!!t&&t.length>0&&t.forEach(o=>{this.buildDataFromWidget(o)})},buildDataFromWidget(t){if(t.category==="container")if(t.type==="grid")!!t.cols&&t.cols.length>0&&t.cols.forEach(o=>{this.buildDataFromWidget(o)});else if(t.type==="table")!!t.rows&&t.rows.length>0&&t.rows.forEach(o=>{!!o.cols&&o.cols.length>0&&o.cols.forEach(e=>{this.buildDataFromWidget(e)})});else if(t.type==="tab")!!t.tabs&&t.tabs.length>0&&t.tabs.forEach(o=>{!!o.widgetList&&o.widgetList.length>0&&o.widgetList.forEach(e=>{this.buildDataFromWidget(e)})});else if(t.type==="sub-form"){let o=t.options.name;if(this.formData.hasOwnProperty(o)){let e=this.formData[o];this.formDataModel[o]=deepClone(e)}else{let e={};t.options.showBlankRow?(t.widgetList.forEach(s=>{s.formItemFlag&&(e[s.options.name]=s.options.defaultValue)}),this.formDataModel[o]=[e]):this.formDataModel[o]=[]}}else t.type==="grid-col"||t.type==="table-cell"?!!t.widgetList&&t.widgetList.length>0&&t.widgetList.forEach(o=>{this.buildDataFromWidget(o)}):!!t.widgetList&&t.widgetList.length>0&&t.widgetList.forEach(o=>{this.buildDataFromWidget(o)});else if(t.formItemFlag)if(!this.formData.hasOwnProperty(t.options.name))this.formDataModel[t.options.name]=t.options.defaultValue;else{let o=this.formData[t.options.name];this.formDataModel[t.options.name]=deepClone(o)}},addFieldChangeEventHandler(){this.off$("fieldChange"),this.on$("fieldChange",(t,o,e,s,i)=>{this.handleFieldDataChange(t,o,e,s,i),this.$emit("formChange",t,o,e,this.formDataModel,s,i)})},addFieldValidateEventHandler(){this.off$("fieldValidation"),this.on$("fieldValidation",t=>{this.$refs.renderForm.validateField(t)})},registerFormToRefList(){this.widgetRefList.v_form_ref=this},handleFieldDataChange(t,o,e,s,i){!!this.formConfig&&!!this.formConfig.onFormDataChange&&new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange).call(this,t,o,e,this.formDataModel,s,i)},handleOnCreated(){!!this.formConfig&&!!this.formConfig.onFormCreated&&new Function(this.formConfig.onFormCreated).call(this)},handleOnMounted(){!!this.formConfig&&!!this.formConfig.onFormMounted&&new Function(this.formConfig.onFormMounted).call(this)},findWidgetAndSetDisabled(t,o){let e=this.getWidgetRef(t);e?e.setDisabled(o):this.findWidgetOfSubFormAndSetDisabled(t,o)},findWidgetOfSubFormAndSetDisabled(t,o){this.findWidgetNameInSubForm(t).forEach(e=>{let s=this.getWidgetRef(e);s&&s.setDisabled(o)})},findWidgetAndSetHidden(t,o){let e=this.getWidgetRef(t);e?e.setHidden(o):this.findWidgetOfSubFormAndSetHidden(t,o)},findWidgetOfSubFormAndSetHidden(t,o){this.findWidgetNameInSubForm(t).forEach(e=>{let s=this.getWidgetRef(e);s&&s.setHidden(o)})},findWidgetNameInSubForm(t){let o=[],e=null,s=(i,r)=>{!!i.options&&i.options.name===t&&(e=r.options.name)};if(traverseFieldWidgets(this.widgetList,s),e){let i=this.getWidgetRef(e);if(i){let r=i.getRowIdData();!!r&&r.length>0&&r.forEach(n=>{o.push(t+"@row"+n)})}}return o},changeLanguage(t){changeLocale(t)},getNativeForm(){return this.$refs.renderForm},getWidgetRef(t,o=!1){let e=this.widgetRefList[t];return!e&&!!o&&this.$message.error(this.i18nt("render.hint.refNotFound")+t),e},clearFormDataModel(){for(let t in this.formDataModel)delete this.formDataModel[t]},setFormJson(t){if(t)if(typeof t=="string"||t.constructor===Object){let o=null;if(typeof t=="string"?o=JSON.parse(t):o=t,!o.formConfig||!o.widgetList){this.$message.error("Invalid format of form json.");return}this.clearFormDataModel(),this.buildFormModel(o.widgetList),this.formJsonObj.formConfig=o.formConfig,this.formJsonObj.widgetList=o.widgetList,this.insertCustomStyleAndScriptNode(),this.$nextTick(()=>{this.initFormObject(!1),this.handleOnMounted()})}else this.$message.error("Set form json failed.")},reloadOptionData(t){let o=[];!!t&&typeof t=="string"?o=[t]:!!t&&Array.isArray(t)&&(o=[...t]),this.broadcast("FieldWidget","reloadOptionItems",[o])},getFormData(t=!0){if(!t)return this.formDataModel;let o=function(){},e=new window.Promise(function(s,i){o=function(r,n){n?i(n):s(r)}});return this.$refs.renderForm.validate(s=>{s?o(this.formDataModel):o(this.formDataModel,this.i18nt("render.hint.validationFailed"))}),e},setFormData(t){Object.keys(this.formDataModel).forEach(o=>{!!t&&t.hasOwnProperty(o)&&(this.formDataModel[o]=deepClone(t[o]))}),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue(t){let o=this.getWidgetRef(t);!!o&&!!o.getValue&&o.getValue()},setFieldValue(t,o){let e=this.getWidgetRef(t);!!e&&!!e.setValue&&e.setValue(o)},getSubFormValues(t,o=!0){return this.subFormRefList[t].getSubFormValues(o)},disableForm(){Object.keys(this.widgetRefList).forEach(o=>{let e=this.getWidgetRef(o);e&&(!!e.widget&&e.widget.type==="sub-form"?e.disableSubForm():!!e.setDisabled&&e.setDisabled(!0))})},enableForm(){Object.keys(this.widgetRefList).forEach(o=>{let e=this.getWidgetRef(o);e&&(!!e.widget&&e.widget.type==="sub-form"?e.enableSubForm():!!e.setDisabled&&e.setDisabled(!1))})},resetForm(){Object.keys(this.subFormRefList).forEach(e=>{this.subFormRefList[e].resetSubForm&&this.subFormRefList[e].resetSubForm()}),Object.keys(this.widgetRefList).forEach(e=>{let s=this.getWidgetRef(e);!!s&&!s.subFormItemFlag&&!!s.resetField&&s.resetField()}),this.$nextTick(()=>{this.clearValidate()})},clearValidate(t){this.$refs.renderForm.clearValidate(t)},validateForm(t){this.$refs.renderForm.validate(o=>{t(o)})},validateFields(){},disableWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetDisabled(t,!0):Array.isArray(t)&&t.forEach(o=>{this.findWidgetAndSetDisabled(o,!0)}))},enableWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetDisabled(t,!1):Array.isArray(t)&&t.forEach(o=>{this.findWidgetAndSetDisabled(o,!1)}))},hideWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetHidden(t,!0):Array.isArray(t)&&t.forEach(o=>{this.findWidgetAndSetHidden(o,!0)}))},showWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetHidden(t,!1):Array.isArray(t)&&t.forEach(o=>{this.findWidgetAndSetHidden(o,!1)}))},getFieldWidgets(){return getAllFieldWidgets(this.formJsonObj.widgetList)},getContainerWidgets(){return getAllContainerWidgets(this.formJsonObj.widgetList)},addEC(t,o){this.externalComponents[t]=o},hasEC(t){return this.externalComponents.hasOwnProperty(t)},getEC(t){return this.externalComponents[t]}}};function _sfc_render$2m(t,o,e,s,i,r){const n=resolveComponent("el-form");return openBlock(),createBlock(n,{"label-position":r.labelPosition,size:r.size,class:normalizeClass([[r.customClass],"render-form"]),"label-width":r.labelWidth,"validate-on-rule-change":!1,model:i.formDataModel,ref:"renderForm",onSubmit:o[0]||(o[0]=withModifiers(()=>{},["prevent"]))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.widgetList,(l,a)=>(openBlock(),createElementBlock(Fragment,null,[l.category==="container"?(openBlock(),createBlock(resolveDynamicComponent(r.getContainerWidgetName(l)),{widget:l,key:l.id,"parent-list":r.widgetList,"index-of-parent-list":a,"parent-widget":null},createSlots({_:2},[renderList(Object.keys(t.$slots),d=>({name:d,fn:withCtx(c=>[renderSlot(t.$slots,d,normalizeProps(guardReactiveProps(c)),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list"])):(openBlock(),createBlock(resolveDynamicComponent(r.getWidgetName(l)),{field:l,"form-model":i.formDataModel,designer:null,key:l.id,"parent-list":r.widgetList,"index-of-parent-list":a,"parent-widget":null},createSlots({_:2},[renderList(Object.keys(t.$slots),d=>({name:d,fn:withCtx(c=>[renderSlot(t.$slots,d,normalizeProps(guardReactiveProps(c)),void 0,!0)])}))]),1032,["field","form-model","parent-list","index-of-parent-list"]))],64))),256))]),_:3},8,["label-position","size","class","label-width","model"])}var VFormRender=_export_sfc(_sfc_main$2m,[["render",_sfc_render$2m],["__scopeId","data-v-10807a07"]]);const VARIANT_FORM_VERSION="3.0.8",MOCK_CASE_URL="https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/",ACE_BASE_PATH="https://ks3-cn-beijing.ksyun.com/vform2021/ace-mini",BEAUTIFIER_PATH="https://ks3-cn-beijing.ksyun.com/vform2021/js-beautify/1.14.0/beautifier.min.js";var index_vue_vue_type_style_index_0_scoped_true_lang$4="";const _sfc_main$2l={name:"CodeEditor",props:{modelValue:{type:String},readonly:{type:Boolean,default:!1},mode:{type:String,default:"javascript"},userWorker:{type:Boolean,default:!0}},emits:["update:modelValue"],mounted(){ace.config.set("basePath",ACE_BASE_PATH),this.addAutoCompletion(ace),this.aceEditor=ace.edit(this.$refs.ace,{maxLines:20,minLines:5,fontSize:12,theme:this.themePath,mode:this.modePath,tabSize:2,readOnly:this.readonly,highlightActiveLine:!0,value:this.codeValue}),this.aceEditor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0}),this.mode==="json"?this.setJsonMode():this.mode==="css"&&this.setCssMode(),this.userWorker||this.aceEditor.getSession().setUseWorker(!1),this.aceEditor.getSession().on("change",t=>{this.$emit("update:modelValue",this.aceEditor.getValue())})},data(){return{aceEditor:null,themePath:"ace/theme/sqlserver",modePath:"ace/mode/javascript",codeValue:this.modelValue}},watch:{},methods:{addAutoCompletion(t){let o=[{meta:"VForm API",caption:"getWidgetRef",value:"getWidgetRef()",score:1},{meta:"VForm API",caption:"getFormRef",value:"getFormRef()",score:1}];t.require("ace/ext/language_tools").addCompleter({getCompletions:function(s,i,r,n,l){return n.length===0?l(null,[]):l(null,o)}})},setJsonMode(){this.aceEditor.getSession().setMode("ace/mode/json")},setCssMode(){this.aceEditor.getSession().setMode("ace/mode/css")},getEditorAnnotations(){return this.aceEditor.getSession().getAnnotations()},setValue(t){this.aceEditor.getSession().setValue(t)}}},_hoisted_1$k={class:"ace-container"},_hoisted_2$b={class:"ace-editor",ref:"ace"};function _sfc_render$2l(t,o,e,s,i,r){return openBlock(),createElementBlock("div",_hoisted_1$k,[createBaseVNode("div",_hoisted_2$b,null,512)])}var CodeEditor=_export_sfc(_sfc_main$2l,[["render",_sfc_render$2l],["__scopeId","data-v-35f2b510"]]);const generateCode=function(t,o="vue"){let e=JSON.stringify(t);return o==="html"?`
VForm Demo
Submit