diff --git a/.eslintrc.js b/.eslintrc.js index 6a303f5..4e557f8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -104,6 +104,14 @@ module.exports = { rules: { '@typescript-eslint/no-var-requires': 'off' } + }, + { + files: ['**.ts', '**.tsx'], + rules: { + 'no-var': 'off', + 'indent': 'off', + '@typescript-eslint/indent': ['error', 2] + } }, { files: ['**.d.ts'], rules: { diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..20d0d06 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npm run lint diff --git a/babel.config.js b/babel.config.js index afefcf7..d36efcb 100755 --- a/babel.config.js +++ b/babel.config.js @@ -1,7 +1,8 @@ const presets = [ ['@babel/preset-env', { useBuiltIns: 'usage', - corejs: 3 + corejs: 3, + // debug: true }] ]; diff --git a/docs/04310071d34b402cd9ac.png b/docs/04310071d34b402cd9ac.png new file mode 100644 index 0000000..be297dc --- /dev/null +++ b/docs/04310071d34b402cd9ac.png @@ -0,0 +1 @@ +export default __webpack_public_path__ + "img/architecture.png"; \ No newline at end of file diff --git a/docs/321.dd754536.js b/docs/321.dd754536.js new file mode 100644 index 0000000..6cb5287 --- /dev/null +++ b/docs/321.dd754536.js @@ -0,0 +1 @@ +(self.webpackChunkxform=self.webpackChunkxform||[]).push([[321],{2321:(s,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>p});const p='

快速上手

提示

该文档默认你使用Webpack构建项目,代码使用ES2015+规范进行编写。

安装

推荐使用npm的方式安装,它能更好地和Webpack配合使用。

npm install @dongls/xform\n\n# 安装基于bootstrap的字段库\nnpm i @dongls/xform.bootstrap\n

当然你也通过CDN获取到最新版本的资源,例如你可以直接引用unpkg提供的在线资源。

<!-- 核心组件 -->\n<link href="https://unpkg.com/@dongls/xform@0.5.6/dist/index.css" rel="stylesheet">\n<script src="https://unpkg.com/@dongls/xform@0.5.6/dist/index.js"></script>\n\n<!-- 基于bootstrap的字段库 -->\n<link href="https://unpkg.com/@dongls/xform.bootstrap@0.5.6/dist/index.css" rel="stylesheet">\n<script src="https://unpkg.com/@dongls/xform.bootstrap@0.5.6/dist/index.js"></script>\n

使用

xForm本身并不提供具体字段类型的实现,因此在设计时就将核心组件与字段解耦,所以你可以选择只使用核心组件,也可以选择使用内置字段(依赖外部UI库)。

只使用核心组件

如果您不需要任何内置的字段类型,您可以选择只引入核心组件。如果您选择了此种方式,那么您需要提供字段类型的具体实现。

import { createApp } from 'vue';\nimport App from 'somepath'\n\nimport '@dongls/xform/dist/index.css';\nimport XForm from '@dongls/xform';\n\nimport Text from 'somepath';\nimport Select from 'somepath';\n\n// 注册扩展字段\nXForm.store.registerField(Text);\nXForm.store.registerField(Select);\n\ncreateApp(App).use(XForm, {\n  config: { /* xForm config */ }\n});\n

使用基于Bootstrap的字段库

字段库基于Bootstrap@4.x开发,这里推荐安装v4.5及以上版本。

import '@dongls/xform/dist/index.css';\nimport '@dongls/xform.bootstrap/dist/index.css';\n\nimport { createApp } from 'vue'\nimport App from 'somepath'\n\nimport XForm from '@dongls/xform';\nimport XFormBootstrap from '@dongls/xform.bootstrap';\n\ncreateApp(App).use(XForm, {\n  preset: XFormBootstrap,\n  config: { /* xForm config */ } \n});\n\n

这里有一个基于Bootstrap的在线表单设计器或者查看在线示例源代码了解如何使用。

'}}]); \ No newline at end of file diff --git a/docs/321.f8ff96df.js b/docs/321.f8ff96df.js deleted file mode 100644 index 9b88f3c..0000000 --- a/docs/321.f8ff96df.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkxform=self.webpackChunkxform||[]).push([[321],{2321:function(s){s.exports='

快速上手

提示

该文档默认你使用Webpack构建项目,代码使用ES2015+规范进行编写。

安装

推荐使用npm的方式安装,它能更好地和Webpack配合使用。

npm install @dongls/xform\n\n# 安装基于bootstrap的字段库\nnpm i @dongls/xform.bootstrap\n

当然你也通过CDN获取到最新版本的资源,例如你可以直接引用unpkg提供的在线资源。

<!-- 核心组件 -->\n<link href="https://unpkg.com/@dongls/xform@0.5.6/dist/index.css" rel="stylesheet">\n<script src="https://unpkg.com/@dongls/xform@0.5.6/dist/index.js"></script>\n\n<!-- 基于bootstrap的字段库 -->\n<link href="https://unpkg.com/@dongls/xform.bootstrap@0.5.6/dist/index.css" rel="stylesheet">\n<script src="https://unpkg.com/@dongls/xform.bootstrap@0.5.6/dist/index.js"></script>\n

使用

xForm本身并不提供具体字段类型的实现,因此在设计时就将核心组件与字段解耦,所以你可以选择只使用核心组件,也可以选择使用内置字段(依赖外部UI库)。

只使用核心组件

如果您不需要任何内置的字段类型,您可以选择只引入核心组件。如果您选择了此种方式,那么您需要提供字段类型的具体实现。

import { createApp } from 'vue';\nimport App from 'somepath'\n\nimport '@dongls/xform/dist/index.css';\nimport XForm from '@dongls/xform';\n\nimport Text from 'somepath';\nimport Select from 'somepath';\n\n// 注册扩展字段\nXForm.store.registerField(Text);\nXForm.store.registerField(Select);\n\ncreateApp(App).use(XForm, {\n  config: { /* xForm config */ }\n});\n

使用基于Bootstrap的字段库

字段库基于Bootstrap@4.x开发,这里推荐安装v4.5及以上版本。

import '@dongls/xform/dist/index.css';\nimport '@dongls/xform.bootstrap/dist/index.css';\n\nimport { createApp } from 'vue'\nimport App from 'somepath'\n\nimport XForm from '@dongls/xform';\nimport XFormBootstrap from '@dongls/xform.bootstrap';\n\ncreateApp(App).use(XForm, {\n  preset: XFormBootstrap,\n  config: { /* xForm config */ } \n});\n\n

这里有一个基于Bootstrap的在线表单设计器或者查看在线示例源代码了解如何使用。

'}}]); \ No newline at end of file diff --git a/docs/404.html b/docs/404.html index c4cdda5..e56c271 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1 +1 @@ -xForm示例
\ No newline at end of file +xForm示例
\ No newline at end of file diff --git a/docs/55.51e8f6aa.js b/docs/55.51e8f6aa.js deleted file mode 100644 index 122f4b6..0000000 --- a/docs/55.51e8f6aa.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkxform=self.webpackChunkxform||[]).push([[55],{2055:function(o,t,e){var s='

介绍

基于Vue@3.x的动态表单生成器,主要用于处理用户自行设计表单的业务场景。这里提供了一个在线示例更直观的展示该项目,或者可以查看快速上手了解如何使用。

特性 ✨

架构

架构图 xForm不提供具体的字段实现,专注于提供灵活的字段扩展机制。通过将底层核心与字段的解耦,具体字段实现可以基于任意UI库,只需要满足xForm的规则即可。

考虑到xForm提供的功能与实际需求可能存在不相匹配的情况,因此在设计时就将可扩展性作为首要因素。为了使用户可以完全的控制表单的行为,xForm支持以下几种层级的配置:

通常情况下用户并不懂技术,所以xForm让开发人员通过一系列的配置控制表单行为,在屏蔽技术细节的基础上提供自定义能力供用户使用。

简单的说,面向普通用户隐藏技术细节,面向开发人员提供完整的控制力。

';o.exports=s},7091:function(o){"use strict";o.exports=function(o,t){return t||(t={}),"string"!=typeof(o=o&&o.__esModule?o.default:o)?o:(t.hash&&(o+=t.hash),t.maybeNeedQuotes&&/[\t\n\f\r "'=<>`]/.test(o)?'"'.concat(o,'"'):o)}},5456:function(o,t,e){"use strict";e.r(t),t.default=e.p+"img/architecture.png"}}]); \ No newline at end of file diff --git a/docs/55.871372d6.js b/docs/55.871372d6.js new file mode 100644 index 0000000..bb626dc --- /dev/null +++ b/docs/55.871372d6.js @@ -0,0 +1 @@ +(self.webpackChunkxform=self.webpackChunkxform||[]).push([[55],{2055:(o,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>i});var s=t(7091),c=t.n(s),r=new URL(t(5456),t.b);const i='

介绍

基于Vue@3.x的动态表单生成器,主要用于处理用户自行设计表单的业务场景。这里提供了一个在线示例更直观的展示该项目,或者可以查看快速上手了解如何使用。

特性 ✨

架构

架构图 xForm不提供具体的字段实现,专注于提供灵活的字段扩展机制。通过将底层核心与字段的解耦,具体字段实现可以基于任意UI库,只需要满足xForm的规则即可。

考虑到xForm提供的功能与实际需求可能存在不相匹配的情况,因此在设计时就将可扩展性作为首要因素。为了使用户可以完全的控制表单的行为,xForm支持以下几种层级的配置:

通常情况下用户并不懂技术,所以xForm让开发人员通过一系列的配置控制表单行为,在屏蔽技术细节的基础上提供自定义能力供用户使用。

简单的说,面向普通用户隐藏技术细节,面向开发人员提供完整的控制力。

'},7091:o=>{"use strict";o.exports=function(o,e){return e||(e={}),o?(o=String(o.__esModule?o.default:o),e.hash&&(o+=e.hash),e.maybeNeedQuotes&&/[\t\n\f\r "'=<>`]/.test(o)?'"'.concat(o,'"'):o):o}},5456:(o,e,t)=>{"use strict";o.exports=t.p+"04310071d34b402cd9ac.png"}}]); \ No newline at end of file diff --git a/docs/811.8fd950e7.js b/docs/811.8fd950e7.js new file mode 100644 index 0000000..ecfcdf0 --- /dev/null +++ b/docs/811.8fd950e7.js @@ -0,0 +1 @@ +(self.webpackChunkxform=self.webpackChunkxform||[]).push([[811],{6811:(e,t,M)=>{"use strict";M.r(t),M.d(t,{default:()=>NM});var l=M(5393);const n={class:"xform-setting"},i=(0,l.Wm)("header",null,"标题后缀:",-1),o={class:"xform-setting"},u=(0,l.Wm)("header",null,"空值显示为:",-1),c={class:"xform-setting"},a=(0,l.Wm)("header",null,"标题位置:",-1),N={class:"btn-group",role:"group"};const s=(0,l.aZ)({name:"xform-bs-setting",props:{schema:{type:Object,required:!0}},emits:["update:prop"],setup(e,t){let M=t.emit;return{updateProp(e,t){M("update:prop",{prop:e,value:t})}}}});s.render=function(e,t,M,s,r,d){return(0,l.wg)(),(0,l.j4)(l.HY,null,[(0,l.Wm)("section",n,[i,(0,l.Wm)("input",{value:e.schema.labelSuffix,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题后缀...",onInput:t[1]||(t[1]=t=>e.updateProp("labelSuffix",t.target.value))},null,40,["value"])]),(0,l.Wm)("section",o,[u,(0,l.Wm)("input",{value:e.schema.viewerPlaceholder,type:"text",class:"form-control form-control-sm",placeholder:"查看表单时如果值为空,则显示输入值",onInput:t[2]||(t[2]=t=>e.updateProp("viewerPlaceholder",t.target.value))},null,40,["value"])]),(0,l.Wm)("section",c,[a,(0,l.Wm)("div",N,[(0,l.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"left"==e.schema.labelPosition}],onClick:t[3]||(t[3]=t=>e.updateProp("labelPosition","left"))},"左对齐",2),(0,l.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"top"==e.schema.labelPosition}],onClick:t[4]||(t[4]=t=>e.updateProp("labelPosition","top"))},"顶部对齐",2),(0,l.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"right"==e.schema.labelPosition}],onClick:t[5]||(t[5]=t=>e.updateProp("labelPosition","right"))},"右对齐",2)])])],64)};const r=s;M(8674);var d=M(534);M(6992),M(3948);M(1038);function z(e){return"_value"in e?e._value:e.value}function j(e){const t=e.checked,M=t?"_trueValue":"_falseValue";return M in e?e[M]:t}function D(e){return null==z(e)?e.checked:e.value}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"build";const M=e.value,l=e.type;if("number"==l){const e=parseFloat(M);return isNaN(e)?M:e}if("select"==l){const t=e,M=t.selectedIndex;return M<0?null:z(t.options[M])}if("checkbox"==l){const M='input[type="checkbox"][name="'.concat(e.name,'"]'),l=Array.from(document.querySelectorAll(M));return"setting"===t&&1==l.length?j(l[0]):l.filter((e=>e.checked)).map(D)}return e.value}function I(e,t,M){e("update:value",{value:m(M.target),name:t})}function g(e,t,M,l){e("update:field",{prop:M,value:m(t.target,"setting"),scope:l})}const T=(0,l.aZ)({name:"xform-bs-text",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,t){let M=t.emit;return{updateValue:I.bind(null,M,e.field.name),className:(0,l.Fl)((()=>({"form-control":!0,"form-control-sm":!0})))}}});T.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)("input",{id:e.field.name,name:e.field.name,type:"text",value:e.value,class:e.className,placeholder:e.field.placeholder,onInput:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue(...arguments)})},null,42,["id","name","value","placeholder"])};const y=T,p=(0,l.Wm)("h3",{class:"xform-setting-head"},"单行文本",-1),x={class:"xform-setting"},A=(0,l.Wm)("header",null,"标题:",-1),f={class:"xform-setting"},O=(0,l.Wm)("header",null,"提示:",-1),L={class:"xform-setting"},b=(0,l.Wm)("header",null,"属性:",-1),w={class:"custom-control custom-checkbox"};const E=(0,l.aZ)({name:"xform-bs-text-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;return{updateField:g.bind(null,M)}}});E.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[p,(0,l.Wm)("section",x,[A,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",f,[O,(0,l.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=t=>e.updateField(t,"placeholder"))},null,40,["value"])]),(0,l.Wm)("section",L,[b,(0,l.Wm)("div",w,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=t=>e.updateField(t,"required"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])])],64)};const Y=E,C=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgPgogIDxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik05Mi41Njk2IDc0MS4zNzZoODMwLjEyMjY2NjY3VjI4Mi42MjRoLTgzMC4xMjI2NjY2N3Y0NTguNzUyek00OC44Nzg5MzMzMyAyMzguOTMzMzMzMzNoOTE3LjUwNHY1NDYuMTMzMzMzMzRINDguODc4OTMzMzNWMjM4LjkzMzMzMzMzek0xNzMuMzk3MzMzMzMgNDAyLjc3MzMzMzMzdjIxOC40NTMzMzMzNGMwIDEzLjEwNzIgOC43MzgxMzMzMyAyMS44NDUzMzMzMyAyMS44NDUzMzMzNCAyMS44NDUzMzMzM3MyMS44NDUzMzMzMy04LjczODEzMzMzIDIxLjg0NTMzMzMzLTIxLjg0NTMzMzMzVjQwMi43NzMzMzMzM2MwLTEzLjEwNzItOC43MzgxMzMzMy0yMS44NDUzMzMzMy0yMS44NDUzMzMzMy0yMS44NDUzMzMzM3MtMjEuODQ1MzMzMzMgOC43MzgxMzMzMy0yMS44NDUzMzMzNCAyMS44NDUzMzMzM3oiPjwvcGF0aD4KPC9zdmc+",type:"text",title:"单行文本",setting:Y,build:y,validator(e,t){const M=t[e.name],l=null==M||"string"==typeof M&&0==M.length;return e.required&&l?Promise.reject("必填"):Promise.resolve()}});const v=(0,l.aZ)({name:"xform-bs-textarea",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,t){let M=t.emit;return{updateValue:I.bind(null,M,e.field.name)}}});v.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)("textarea",{id:e.field.name,name:e.field.name,value:e.value,rows:"3",class:"form-control form-control-sm",placeholder:e.field.placeholder,onInput:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue(...arguments)})},null,40,["id","name","value","placeholder"])};const k=v,S=(0,l.Wm)("h3",{class:"xform-setting-head"},"多行文本",-1),U={class:"xform-setting"},h=(0,l.Wm)("header",null,"标题:",-1),Q={class:"xform-setting"},W=(0,l.Wm)("header",null,"提示:",-1),Z={class:"xform-setting"},P=(0,l.Wm)("header",null,"属性:",-1),G={class:"custom-control custom-checkbox"};const F=(0,l.aZ)({name:"xform-bs-textarea-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;return{updateField:g.bind(null,M)}}});F.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[S,(0,l.Wm)("section",U,[h,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",Q,[W,(0,l.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=t=>e.updateField(t,"placeholder"))},null,40,["value"])]),(0,l.Wm)("section",Z,[P,(0,l.Wm)("div",G,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=t=>e.updateField(t,"required"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])])],64)};const H=F,B=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTkyNi43MiA1NzQuMzEwNEw3MzEuMzQwOCA3NTcuNzZoNjkuMjIyNGwxMjYuMTU2OC0xMjEuNjUxMnYtNjEuNzk4NHpNNjY4LjcyMzIgNzU3Ljc2bDI1OC4wNDgtMjQ0LjIyNFYyNTAuODhIOTcuMjh2NTA2Ljg4aDU3MS40NDMyeiBtMjU4LjA0OC01NS4yOTZsLTU3LjI5MjggNTUuMjk2SDkyNi43MnYtNTUuMjk2ek0xODkuNDQgMzQzLjA0aDQ2LjA4djI3Ni40OGgtNDYuMDhWMzQzLjA0ek01MS4yIDIwNC44aDkyMS42djU5OS4wNEg1MS4yVjIwNC44eiI+PC9wYXRoPgo8L3N2Zz4=",type:"textarea",title:"多行文本",setting:H,build:k,validator(e,t){const M=t[e.name],l=null==M||"string"==typeof M&&0==M.length;return e.required&&l?Promise.reject("必填"):Promise.resolve()}}),q=(0,l.Wm)("h3",{class:"xform-setting-head"},"数字",-1),V={class:"xform-setting"},R=(0,l.Wm)("header",null,"标题:",-1),J={class:"xform-setting"},X=(0,l.Wm)("header",null,"提示:",-1),_={class:"xform-setting"},K=(0,l.Wm)("header",null,"属性:",-1),$={class:"xform-setting-inline"},ee={class:"xform-setting-inline-item custom-control custom-checkbox"},te={class:"xform-setting-inline-item custom-control custom-checkbox"};const Me=(0,l.aZ)({name:"xform-bs-number-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;return{updateField:g.bind(null,M)}}});Me.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[q,(0,l.Wm)("section",V,[R,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",J,[X,(0,l.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=t=>e.updateField(t,"placeholder"))},null,40,["value"])]),(0,l.Wm)("section",_,[K,(0,l.Wm)("div",$,[(0,l.Wm)("div",ee,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onChange:t[3]||(t[3]=t=>e.updateField(t,"required"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])]),(0,l.Wm)("div",te,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-integer"),name:"".concat(e.field.name,"-integer"),checked:e.field.attributes.integer,type:"checkbox",class:"custom-control-input",onChange:t[4]||(t[4]=t=>e.updateField(t,"integer","attributes"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-integer")},"整数",8,["for"])])])])],64)};const le=Me,ne=(0,l.aZ)({name:"xform-bs-number",props:{field:{type:d.ZQ,required:!0},value:{type:[Number,String],default:null}},emits:["update:value"],setup(e,t){let M=t.emit;return function(){return(0,l.Wm)("input",{id:e.field.name,name:e.field.name,type:"number",value:e.value,onInput:I.bind(null,M,e.field.name),class:"form-control form-control-sm",placeholder:e.field.placeholder},null)}}}),ie=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTg5NiAyMjRIMTI4Yy0zNS4yIDAtNjQgMjguOC02NCA2NHY0NDhjMCAzNS4yIDI4LjggNjQgNjQgNjRoNzY4YzM1LjIgMCA2NC0yOC44IDY0LTY0VjI4OGMwLTM1LjItMjguOC02NC02NC02NHogbTAgNDgwYzAgMTkuMi0xMi44IDMyLTMyIDMySDE2MGMtMTkuMiAwLTMyLTEyLjgtMzItMzJWMzIwYzAtMTkuMiAxMi44LTMyIDMyLTMyaDcwNGMxOS4yIDAgMzIgMTIuOCAzMiAzMnYzODR6Ij48L3BhdGg+CiAgPHBhdGggZmlsbD0i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E2djI4LjhoMTZjMTYgMCAyNS42IDMuMiAzNS4yIDkuNiA5LjYgNi40IDEyLjggMTYgMTIuOCAzMiAwIDEyLjgtMy4yIDIyLjQtMTIuOCAyOC44LTkuNiA5LjYtMTkuMiAxMi44LTM1LjIgMTIuOC0xMi44IDAtMjUuNi0zLjItMzItMTIuOC05LjYtOS42LTEyLjgtMjIuNC0xNi0zOC40aC0zOC40YzMuMiAyOC44IDEyLjggNDggMjguOCA2NCAxNiAxMi44IDM1LjIgMTkuMiA2MC44IDE5LjIgMjUuNiAwIDQ4LTYuNCA2NC0yMi40IDE2LTE2IDIyLjQtMzIgMjIuNC01NC40IDAtMTYtMy4yLTI1LjYtMTIuOC0zNS4yLTkuNi02LjQtMjIuNC0xNi0zNS4yLTE5LjJ6Ij48L3BhdGg+Cjwvc3ZnPg==",type:"number",title:"数字",setting:le,build:ne,validator(e,t){const M="string"==typeof t[e.name]?parseFloat(t[e.name]):t[e.name],l=null==M||"number"==typeof M&&(isNaN(M)||!isFinite(M));return e.required&&l?Promise.reject("必填"):e.attributes.integer&&!/^[-+]?[1-9]\d*$/.test(M)?Promise.reject("请输入整数"):Promise.resolve()}}),oe={key:0,class:"xform-bs-is-placeholer",value:""};const ue=(0,l.aZ)({name:"xform-bs-select",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,t){let M=t.emit;return{updateValue:I.bind(null,M,e.field.name),placeholder:(0,l.Fl)((()=>e.field.placeholder?"---- ".concat(e.field.placeholder," ----"):"")),className:(0,l.Fl)((()=>({"custom-select":!0,"custom-select-sm":!0,"xform-bs-select":!0,"xform-bs-is-empty":null==e.value||"string"==typeof e.value&&0==e.value.length})))}}});ue.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)("select",{id:e.field.name,name:e.field.name,class:e.className,value:e.value,onChange:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue(...arguments)})},[e.placeholder?((0,l.wg)(),(0,l.j4)("option",oe,(0,l.zw)(e.placeholder),1)):(0,l.ry)("",!0),((0,l.wg)(!0),(0,l.j4)(l.HY,null,(0,l.Ko)(e.field.options,(e=>((0,l.wg)(),(0,l.j4)("option",{key:e.value,value:e.value},(0,l.zw)(e.value),9,["value"])))),128))],42,["id","name","value"])};const ce=ue,ae=(0,l.Wm)("h3",{class:"xform-setting-head"},"下拉框",-1),Ne={class:"xform-setting"},se=(0,l.Wm)("header",null,"标题:",-1),re={class:"xform-setting"},de=(0,l.Wm)("header",null,"提示:",-1),ze={class:"xform-setting"},je=(0,l.Wm)("header",null,"属性:",-1),De={class:"custom-control custom-checkbox"},me={class:"xform-setting"},Ie=(0,l.Wm)("header",null,"选项:",-1);const ge=(0,l.aZ)({name:"xform-bs-select-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;function l(e,t){M("update:field",{prop:e,value:t})}return{updateField(e,t){const M=e.target;let n=M.value;"checkbox"==M.type&&(n=M.checked),l(t,n)},addOption(){const t=e.field.options;t.push({value:"选项".concat(t.length+1)}),l("options",t)},updateOption(t,M){const n=t.target.value;M.value=n,l("options",e.field.options)},removeOption(t){const M=e.field.options,n=M.indexOf(t);n>=0&&M.splice(n,1),l("options",M)}}}});ge.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[ae,(0,l.Wm)("section",Ne,[se,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",re,[de,(0,l.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=t=>e.updateField(t,"placeholder"))},null,40,["value"])]),(0,l.Wm)("section",ze,[je,(0,l.Wm)("div",De,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=t=>e.updateField(t,"required"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])]),(0,l.Wm)("section",me,[Ie,((0,l.wg)(!0),(0,l.j4)(l.HY,null,(0,l.Ko)(e.field.options,((t,M)=>((0,l.wg)(),(0,l.j4)("div",{key:M,class:"xform-bs-setting-option"},[(0,l.Wm)("input",{value:t.value,class:"form-control form-control-sm",placeholder:"请输入选项内容",onInput:M=>e.updateOption(M,t)},null,40,["value","onInput"]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:M=>e.removeOption(t)},"删除",8,["onClick"])])))),128)),(0,l.Wm)("button",{type:"text",class:"btn btn-link btn-sm",onClick:t[4]||(t[4]=function(){return e.addOption&&e.addOption(...arguments)})},"添加选项")])],64)};const Te=ge,ye=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgPgogIDxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik05MC4xMjUgMzcxLjM3NXYyODEuMjVoODQzLjc1VjM3MS4zNzVIOTAuMTI1eiBtLTI4LjEyNS0yOC4xMjVoOTAwdjMzNy41SDYyVjM0My4yNXoiPjwvcGF0aD4KICA8cGF0aCBmaWxsPSIjMzMzIiBkPSJNODc3LjYyNSA1NDAuMTI1bC00Mi4xODc1IDQyLjE4NzVMNzkzLjI1IDU0MC4xMjV6TTg3Ny42MjUgNDgzLjg3NWwtNDIuMTg3NS00Mi4xODc1TDc5My4yNSA0ODMuODc1ek0xNzQuNSA0ODMuODc1aDUzNC4zNzV2NTYuMjVIMTc0LjV6Ij48L3BhdGg+Cjwvc3ZnPg==",type:"select",title:"下拉选择",setting:Te,build:ce,validator(e,t){const M=t[e.name],l=null==M||"string"==typeof M&&0==M.length;return e.required&&l?Promise.reject("必填"):Promise.resolve()},onCreate(e,t,M){const l=Array.isArray(t.options)?t.options:[];M&&l.push({value:"选项1"}),e.options=l}}),pe={class:"xform-bs-radio"};const xe=(0,l.aZ)({name:"xform-bs-radio",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,t){let M=t.emit;return{updateValue:I.bind(null,M,e.field.name),radioClassName:(0,l.Fl)((()=>{const t=["custom-control","custom-radio"];return"inline"==e.field.attributes.layout&&t.push("custom-control-inline"),t}))}}});xe.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)("div",pe,[((0,l.wg)(!0),(0,l.j4)(l.HY,null,(0,l.Ko)(e.field.options,((M,n)=>((0,l.wg)(),(0,l.j4)("div",{key:n,class:e.radioClassName},[(0,l.Wm)("input",{id:e.field.name+"_"+n,name:e.field.name,value:M.value,checked:e.value==M.value,type:"radio",class:"custom-control-input",onChange:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue(...arguments)})},null,40,["id","name","value","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:e.field.name+"_"+n},(0,l.zw)(M.value),9,["for"])],2)))),128))])};const Ae=xe,fe=(0,l.Wm)("h3",{class:"xform-setting-head"},"单选框",-1),Oe={class:"xform-setting"},Le=(0,l.Wm)("header",null,"标题:",-1),be={class:"xform-setting"},we=(0,l.Wm)("header",null,"属性:",-1),Ee={class:"custom-control custom-checkbox"},Ye={class:"xform-setting"},Ce=(0,l.Wm)("header",null,"布局:",-1),ve={class:"btn-group",role:"group"},ke={class:"xform-setting"},Se=(0,l.Wm)("header",null,"选项:",-1);const Ue=(0,l.aZ)({name:"xform-bs-radio-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;function l(e,t,l){M("update:field",{prop:e,value:t,scope:l})}return{update:l,updateField(e,t,M){const n=e.target;let i=n.value;"checkbox"==n.type&&(i=n.checked),l(t,i,M)},addOption(){const t=e.field.options;t.push({value:"选项".concat(t.length+1)}),l("options",t)},updateOption(t,M){const n=t.target.value;M.value=n,l("options",e.field.options)},removeOption(t){const M=e.field.options,n=M.indexOf(t);n>=0&&M.splice(n,1),l("options",M)}}}});Ue.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[fe,(0,l.Wm)("section",Oe,[Le,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",be,[we,(0,l.Wm)("div",Ee,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[2]||(t[2]=t=>e.updateField(t,"required"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])]),(0,l.Wm)("section",Ye,[Ce,(0,l.Wm)("div",ve,[(0,l.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"inline"==e.field.attributes.layout}],onClick:t[3]||(t[3]=t=>e.update("layout","inline","attributes"))}," 行内 ",2),(0,l.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"block"==e.field.attributes.layout}],onClick:t[4]||(t[4]=t=>e.update("layout","block","attributes"))}," 换行 ",2)])]),(0,l.Wm)("section",ke,[Se,((0,l.wg)(!0),(0,l.j4)(l.HY,null,(0,l.Ko)(e.field.options,((t,M)=>((0,l.wg)(),(0,l.j4)("div",{key:M,class:"xform-bs-setting-option"},[(0,l.Wm)("input",{value:t.value,class:"form-control form-control-sm",placeholder:"请输入选项内容",onInput:M=>e.updateOption(M,t)},null,40,["value","onInput"]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:M=>e.removeOption(t)},"删除",8,["onClick"])])))),128)),(0,l.Wm)("button",{type:"text",class:"btn btn-link btn-sm",onClick:t[5]||(t[5]=function(){return e.addOption&&e.addOption(...arguments)})},"添加选项")])],64)};const he=Ue,Qe=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTUwOC4yMTk4MjQyMiA3Ni43MzU3NDIxOWMtMjM4LjIxMjU5NzY2IDAtNDMyIDE5My43ODc0MDIzNC00MzIgNDMyczE5My43ODc0MDIzNCA0MzIgNDMyIDQzMiA0MzItMTkzLjc4NzQwMjM0IDQzMi00MzItMTkzLjc4NzQwMjM0LTQzMi00MzItNDMyek01MDguMjE5ODI0MjIgOTA0LjczNTc0MjE5Yy0yMTguMzUxOTUzMTIgMC0zOTYtMTc3LjY0ODA0Njg4LTM5Ni0zOTZzMTc3LjY0ODA0Njg4LTM5NiAzOTYtMzk2IDM5NiAxNzcuNjQ4MDQ2ODggMzk2IDM5Ni0xNzcuNjQ4MDQ2ODggMzk2LTM5NiAzOTZ6Ij48L3BhdGg+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTM1My4yMTU5MTc5NyA1MDguNzM1NzQyMTljMCA4NS42MDYzNDc2NiA2OS4zOTc1NTg1OSAxNTUuMDA0Nzg1MTYgMTU1LjAwNDc4NTE2IDE1NS4wMDQ3ODUxNSA4NS42MDYzNDc2NiAwIDE1NS4wMDQ3ODUxNi02OS4zOTc1NTg1OSAxNTUuMDA0Nzg1MTUtMTU1LjAwNDc4NTE1IDAtODUuNjA2MzQ3NjYtNjkuMzk3NTU4NTktMTU1LjAwNDc4NTE2LTE1NS4wMDQ3ODUxNi0xNTUuMDA0Nzg1MTYtODUuNjA2MzQ3NjYgMC0xNTUuMDA0Nzg1MTYgNjkuMzk3NTU4NTktMTU1LjAwNDc4NTE1IDE1NS4wMDQ3ODUxNnoiPjwvcGF0aD4KPC9zdmc+",type:"radio",title:"单选",setting:he,build:Ae,validator(e,t){const M=t[e.name],l=null==M||"string"==typeof M&&0==M.length;return e.required&&l?Promise.reject("必填"):Promise.resolve()},onCreate(e,t,M){const l=Array.isArray(t.options)?t.options:[];M&&l.push({value:"选项1"}),e.options=l}});M(6699),M(2023);const We={class:"xform-bs-checkbox"};const Ze=(0,l.aZ)({name:"xform-bs-checkbox",props:{field:{type:d.ZQ,required:!0},value:{type:Array,default:null}},emits:["update:value"],setup(e,t){let M=t.emit;return{updateValue:I.bind(null,M,e.field.name),radioClassName:(0,l.Fl)((()=>{const t=["custom-control","custom-checkbox"];return"inline"==e.field.attributes.layout&&t.push("custom-control-inline"),t}))}}});Ze.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)("div",We,[((0,l.wg)(!0),(0,l.j4)(l.HY,null,(0,l.Ko)(e.field.options,((M,n)=>((0,l.wg)(),(0,l.j4)("div",{key:n,class:e.radioClassName},[(0,l.Wm)("input",{id:e.field.name+"_"+n,name:e.field.name,value:M.value,checked:Array.isArray(e.value)&&e.value.includes(M.value),type:"checkbox",class:"custom-control-input",onChange:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue(...arguments)})},null,40,["id","name","value","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:e.field.name+"_"+n},(0,l.zw)(M.value),9,["for"])],2)))),128))])};const Pe=Ze,Ge=(0,l.Wm)("h3",{class:"xform-setting-head"},"单选框",-1),Fe={class:"xform-setting"},He=(0,l.Wm)("header",null,"标题:",-1),Be={class:"xform-setting"},qe=(0,l.Wm)("header",null,"属性:",-1),Ve={class:"custom-control custom-checkbox"},Re={class:"xform-setting"},Je=(0,l.Wm)("header",null,"布局:",-1),Xe={class:"btn-group",role:"group"},_e={class:"xform-setting"},Ke=(0,l.Wm)("header",null,"选项:",-1);const $e=(0,l.aZ)({name:"xform-bs-checkbox-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;function l(e,t,l){M("update:field",{prop:e,value:t,scope:l})}return{update:l,updateField(e,t,M){const n=e.target;let i=n.value;"checkbox"==n.type&&(i=n.checked),l(t,i,M)},addOption(){const t=e.field.options;t.push({value:"选项".concat(t.length+1)}),l("options",t)},updateOption(t,M){const n=t.target.value;M.value=n,l("options",e.field.options)},removeOption(t){const M=e.field.options,n=M.indexOf(t);n>=0&&M.splice(n,1),l("options",M)}}}});$e.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[Ge,(0,l.Wm)("section",Fe,[He,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",Be,[qe,(0,l.Wm)("div",Ve,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[2]||(t[2]=t=>e.updateField(t,"required"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])]),(0,l.Wm)("section",Re,[Je,(0,l.Wm)("div",Xe,[(0,l.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"inline"==e.field.attributes.layout}],onClick:t[3]||(t[3]=t=>e.update("layout","inline","attributes"))}," 行内 ",2),(0,l.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"block"==e.field.attributes.layout}],onClick:t[4]||(t[4]=t=>e.update("layout","block","attributes"))}," 换行 ",2)])]),(0,l.Wm)("section",_e,[Ke,((0,l.wg)(!0),(0,l.j4)(l.HY,null,(0,l.Ko)(e.field.options,((t,M)=>((0,l.wg)(),(0,l.j4)("div",{key:M,class:"xform-bs-setting-option"},[(0,l.Wm)("input",{value:t.value,class:"form-control form-control-sm",placeholder:"请输入选项内容",onInput:M=>e.updateOption(M,t)},null,40,["value","onInput"]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:M=>e.removeOption(t)},"删除",8,["onClick"])])))),128)),(0,l.Wm)("button",{type:"text",class:"btn btn-link btn-sm",onClick:t[5]||(t[5]=function(){return e.addOption&&e.addOption(...arguments)})},"添加选项")])],64)};const et=$e,tt=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTcxMy4zMzE1NjExNSA4MDQuNzgxMjU5MDdIMTgyLjIyMzkzMTRBOTEuNTE0NzMzMzkgOTEuNTE0NzMzMzkgMCAwIDEgOTAuNzc0MjkxOTkgNzEzLjMzMTYxODg0VjE4Mi4yMjM5ODkwN0E5MS41MTQ3MzMzOSA5MS41MTQ3MzMzOSAwIDAgMSAxODIuMjIzOTMxNCA5MC43NzQzNDk2N0g2NTUuODkwNjQ3MzFhMzIuNDUyMjM3NTIgMzIuNDUyMjM3NTIgMCAwIDEgMCA2NC45MDM2NTE4OUgxODIuMjIzOTMxNGEyNi42MTAyNTgzNiAyNi42MTAyNTgzNiAwIDAgMC0yNi41NDU5ODc1MyAyNi41NDU5ODc1MXY1MzEuMDQzMzU5NzVhMjYuNjEwMjU4MzYgMjYuNjEwMjU4MzYgMCAwIDAgMjYuNTQ1OTg3NTMgMjYuNTQ1MTY0MzZoNTMxLjA0MzM1OTc0YTI2LjYxMDI1ODM2IDI2LjYxMDI1ODM2IDAgMCAwIDI2LjU0NTE2NDM2LTI2LjU0N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ljk1MTQxMjcyIDAuMDY0MjcwMDIgMzIuNDUyMjM3NTIgMzIuNDUyMjM3NTIgMCAwIDAgMC00NS44ODcxNDI3TDMyOS41NTU1MjU1MiAzMjkuMTAwNzQ5MjJhMzIuMDYyNDk3NTMgMzIuMDYyNDk3NTMgMCAwIDAtMjIuOTExNDM2MzQtOS40NzU3MDcyeiI+PC9wYXRoPgo8L3N2Zz4=",type:"checkbox",title:"多选",setting:et,build:Pe,validator(e,t){const M=t[e.name],l=null==M||"string"==typeof M&&0==M.length;return e.required&&l?Promise.reject("必填"):Promise.resolve()},onCreate(e,t,M){const l=Array.isArray(t.options)?t.options:[];M&&l.push({value:"选项1"}),e.options=l}});const Mt=(0,l.aZ)({name:"xform-bs-date",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,t){let M=t.emit;return{updateValue:I.bind(null,M,e.field.name)}}});Mt.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)("input",{id:e.field.name,name:e.field.name,type:"date",value:e.value,class:"form-control form-control-sm",placeholder:e.field.placeholder,onInput:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue(...arguments)})},null,40,["id","name","value","placeholder"])};const lt=Mt,nt=(0,l.Wm)("h3",{class:"xform-setting-head"},"日期",-1),it={class:"xform-setting"},ot=(0,l.Wm)("header",null,"标题:",-1),ut={class:"xform-setting"},ct=(0,l.Wm)("header",null,"提示:",-1),at={class:"xform-setting"},Nt=(0,l.Wm)("header",null,"属性:",-1),st={class:"custom-control custom-checkbox"};const rt=(0,l.aZ)({name:"xform-bs-date-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;return{updateField:g.bind(null,M)}}});rt.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[nt,(0,l.Wm)("section",it,[ot,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",ut,[ct,(0,l.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=t=>e.updateField(t,"placeholder"))},null,40,["value"])]),(0,l.Wm)("section",at,[Nt,(0,l.Wm)("div",st,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=t=>e.updateField(t,"required"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])])],64)};const dt=rt,zt=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgPgogIDxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik0zODguNjIzNSAxMzAuMDk0bDI0MS4xMjM1IDAgMCAyOC45NzFMMzg4LjYyMzUgMTU5LjA2NSAzODguNjIzNSAxMzAuMDk0IDM4OC42MjM1IDEzMC4wOTQgMzg4LjYyMzUgMTMwLjA5NE05MzAuNSAxNTkuMDY1bDAtMjguOTcxLTE4MS4zMDk1IDAgMCAyOC45NzEgMTUyLjMzODUgMCAwIDEzOS44MTVMMTE1LjcyMSAyOTguODggMTE1LjcyMSAxNTkuMDY1bDE1Mi4zMzg1IDAgMC0yOC45NzFMODYuNzUgMTMwLjA5NGwwIDI4Ljk3MSAwIDAgMCA3NDQuMzA5IDAgMCAwIDI4Ljk3MUw5MzAuNSA5MzIuMzQ1bDAtMjguOTcxIDAgMEw5MzAuNSAxNTkuMDY1IDkzMC41IDE1OS4wNjUgOTMwLjU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.length;return e.required&&l?Promise.reject("必填"):Promise.resolve()}});const jt={key:0,class:"xform-divider-title"};const Dt=(0,l.aZ)({name:"xform-divider",props:{title:{type:String,default:null},layout:{type:String,default:"center"},type:{type:String,default:"solid"},top:{type:Number,default:0},bottom:{type:Number,default:0}},computed:{style(){const e={};return this.top>0&&(e.marginTop="".concat(this.top,"px")),this.bottom>0&&(e.marginBottom="".concat(this.bottom,"px")),e}}});Dt.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)("div",{class:["xform-divider","xform-divider-".concat(e.layout)],style:e.style},[(0,l.Wm)("div",{class:["xform-divider-line","xform-divider-type-".concat(e.type)]},null,2),e.title?((0,l.wg)(),(0,l.j4)("strong",jt,(0,l.zw)(e.title),1)):(0,l.ry)("",!0)],6)};const mt=Dt,It=(0,l.aZ)({name:"xform-bs-divider",inheritAttrs:!1,components:{[mt.name]:mt},props:{field:{type:d.ZQ,required:!0}}});It.render=function(e,t,M,n,i,o){const u=(0,l.up)("xform-divider");return(0,l.wg)(),(0,l.j4)(u,{class:"xform-item",title:e.field.title,layout:e.field.attributes.layout,type:e.field.attributes.type,top:e.field.attributes.top,bottom:e.field.attributes.bottom},null,8,["title","layout","type","top","bottom"])};const gt=It,Tt=(0,l.Wm)("h3",{class:"xform-setting-head"},"分割线",-1),yt={class:"xform-setting"},pt=(0,l.Wm)("header",null,"标题:",-1),xt={class:"xform-setting xform-divider-types"},At=(0,l.Wm)("header",null,"样式:",-1),ft={class:"xform-setting"},Ot=(0,l.Wm)("header",null,"间距:",-1),Lt={class:"xform-bs-divider-range"},bt=(0,l.Wm)("label",null,"上间距:",-1),wt={class:"xform-bs-divider-range"},Et=(0,l.Wm)("label",null,"下间距:",-1);const Yt=(0,l.aZ)({name:"xform-bs-divider-setting",components:{[mt.name]:mt},props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;return{types:["solid","dashed","double","solid-dashed","dashed-solid"],update:function(e,t,l){M("update:field",{prop:e,value:t,scope:l})},updateField(e,t,l){const n=e.target;let i=n.value;if("checkbox"==n.type&&(i=n.checked),"range"==n.type){const e=parseFloat(i);i=isNaN(e)?i:e}M("update:field",{prop:t,value:i,scope:l})},isChecked:t=>e.field.attributes.type==t||"solid"==t&&null==e.field.attributes.type}}});Yt.render=function(e,t,M,n,i,o){const u=(0,l.up)("xform-divider");return(0,l.wg)(),(0,l.j4)(l.HY,null,[Tt,(0,l.Wm)("section",yt,[pt,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",xt,[At,((0,l.wg)(!0),(0,l.j4)(l.HY,null,(0,l.Ko)(e.types,(t=>((0,l.wg)(),(0,l.j4)("div",{key:t,class:"custom-control custom-radio"},[(0,l.Wm)("input",{id:"divider-".concat(t),name:"setting-divider-type",type:"radio",value:t,class:"custom-control-input",checked:e.isChecked(t),onChange:M=>e.update("type",t,"attributes")},null,40,["id","value","checked","onChange"]),(0,l.Wm)("label",{class:"custom-control-label",for:"divider-".concat(t)},[(0,l.Wm)(u,{type:t},null,8,["type"])],8,["for"])])))),128))]),(0,l.Wm)("section",ft,[Ot,(0,l.Wm)("div",Lt,[bt,(0,l.Wm)("input",{value:e.field.attributes.top,type:"range",class:"custom-range",min:"0",max:"100",step:"5",onInput:t[2]||(t[2]=t=>e.updateField(t,"top","attributes"))},null,40,["value"])]),(0,l.Wm)("div",wt,[Et,(0,l.Wm)("input",{value:e.field.attributes.bottom,type:"range",class:"custom-range",min:"0",max:"100",step:"5",onInput:t[3]||(t[3]=t=>e.updateField(t,"bottom","attributes"))},null,40,["value"])])])],64)};const Ct=Yt,vt=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9y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:gt,view:gt}),kt=(0,l.Wm)("h3",{class:"xform-setting-head"},"分组",-1),St={class:"xform-setting"},Ut=(0,l.Wm)("header",null,"标题:",-1),ht={class:"xform-setting"},Qt=(0,l.Wm)("header",null,"属性:",-1),Wt={class:"custom-control custom-checkbox"};const Zt=(0,l.aZ)({name:"xform-bs-group-setting",props:{field:d.ZQ},emits:["update:field"],setup(e,t){let M=t.emit;return{updateField:g.bind(null,M)}}});Zt.render=function(e,t,M,n,i,o){return(0,l.wg)(),(0,l.j4)(l.HY,null,[kt,(0,l.Wm)("section",St,[Ut,(0,l.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=t=>e.updateField(t,"title"))},null,40,["value"])]),(0,l.Wm)("section",ht,[Qt,(0,l.Wm)("div",Wt,[(0,l.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.attributes.collapsable,type:"checkbox",class:"custom-control-input",onInput:t[2]||(t[2]=t=>e.updateField(t,"collapsable","attributes"))},null,40,["id","name","checked"]),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"允许展开/收起",8,["for"])])])],64)};const Pt=Zt,Gt=d.a9.Y0,Ft=d.a9._i,Ht=d.a9.KV,Bt=d.a9.WF,qt=d.a9.bo,Vt="xform-bs-group-list",Rt=".".concat(Vt);function Jt(){const e=(0,l.iH)(!1);function t(){e.value=!e.value}return{collasped:e,renderHeader:function(M){if(null==M.title)return null;const n=!0===M.attributes.collapsable?(0,l.Wm)("button",{type:"button",title:e.value?"展开":"收起",class:"btn btn-link xform-bs-group-toggle",onClick:t},[e.value?"展开":"收起"]):null;return(0,l.Wm)("h6",{class:"card-header"},[(0,l.Wm)("span",null,[M.title]),n])}}}const Xt=(0,l.aZ)({name:"xform-bs-group",props:{field:{type:d.ZQ,required:!0},behavior:{type:String,default:null}},setup(e){const t=Jt(),M=t.collasped,n=t.renderHeader,i=(0,d.qp)().renderField;return function(){const t=e.field.fields,o=e.behavior==Ht.DESIGNER,u={"xform-item":!0,"xform-bs-group":!0,"xform-is-collasped":M.value},c=o&&0==t.length?(0,l.Wm)("p",{class:[Ft.IS_EMPTY_TIP,"xform-bs-empty-tip"]},[(0,l.Uk)("请将左侧控件拖动到此处")]):null,a={class:{"card-body":!0,[Vt]:!0,[Ft.DROPPABLE]:o},[qt.XFIELD]:o?e.field:void 0};return(0,l.Wm)("div",{class:u},[(0,l.Wm)("div",{class:"card"},[n(e.field),(0,l.Wm)("div",a,[c,t.map((e=>i(e)))])])])}}}),_t=(0,l.aZ)({name:"xform-bs-group-view",props:{field:{type:d.ZQ,required:!0}},setup(e){const t=(0,d.qp)().renderField,M=Jt(),n=M.collasped,i=M.renderHeader;return function(){const M=e.field.fields,o={"xform-item":!0,"xform-bs-group":!0,"xform-is-collasped":n.value};return(0,l.Wm)("div",{class:o},[(0,l.Wm)("div",{class:"card"},[i(e.field),(0,l.Wm)("div",{class:["card-body",Vt]},[M.map((e=>t(e)))])])])}}}),Kt=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCI+CiAgPHBhdGggZD0iTTg2NC4xMTQ0MDk0NyA5MjYuMjUyMjQ2NTFoLTcwNC4yMjg4MTg5NEE2Mi4xMzc4MzcwMyA2Mi4xMzc4MzcwMyAwIDAgMSA5Ny43NDc3NTM0OSA4NjQuMTE0NDA5NDd2LTY2Mi44MDM1OTQ2NUE2Mi4xMzc4MzcwMyA2Mi4xMzc4MzcwMyAwIDAgMSAxNTkuODg1NTkwNTMgMTM5LjE3Mjk3Nzc4aDcwNC4yMjg4MTg5NEE2Mi4xMz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LjcxMjYxMjc2eiIgZmlsbD0iIzMzMyI+PC9wYXRoPgogIDxwYXRoIGQ9Ik03MjMuNDczNDI4OTkgMjI5Ljc2NjE0MTkzYTIzLjU2NjM1MDUxIDIzLjU2NjM1MDUxIDAgMCAxIDE2LjY4NDk3NTgzIDYuODgxMzczMjhsMS4xNzgzMTcwNiAxLjI3MjU4MjkxIDY1LjQyMDE4ODE4IDY1LjQyMDE4ODE5YTIzLjU2NjM1MDUxIDIzLjU2NjM1MDUxIDAgMCAxIDAgMzMuMzY5OTUxNjYgMjMuNTY2MzUwNTEgMjMuNTY2MzUwNTEgMCAwIDEtMzMuMzY5OTUxNjcgMWUtOEw3MjMuNDczNDI4OTkgMjg2LjY1NTMxMDQ4bC01MC4wMDc3OTUyNSA1MC4wNTQ5Mjc1YTIzLjU2NjM1MDUxIDIzLjU2NjM1MDUxIDAgMCAxLTMzLjM2OTk1MTY3IDAgMjMuNTY2MzUwNTEgMjMuNTY2MzUwNTEgMCAwIDEgMC0zMy4zNjk5NTE2N2w2Ni43Mzk5MDMzMy02Ni42OTI3NzExYTIzLjU2NjM1MDUxIDIzLjU2NjM1MDUxIDAgMCAxIDE2LjYzNzg0MzU5LTYuODgxMzczMjh6IiBmaWxsPSIjMzMzIj48L3BhdGg+Cjwvc3ZnPg==",type:"group",title:"分组",custom:!0,scoped:!0,preview:Xt,setting:Pt,build:Xt,view:_t,onDragOver(e){const t=e.currentTarget;if(!t.matches(Rt))return;e.stopPropagation(),e.preventDefault();const M=e.context,l=M.directionY,n=M.moveMarkEl,i=e.dragElement.contains(t);n(l,i?e.dragElement:e.target,i?e.dragElement.parentElement.closest(Gt.DROPPABLE):t)},onDrop(e){var t;const M=e.currentTarget;if(!M.matches(Gt.SCOPE))return;e.stopPropagation(),e.preventDefault();const l=e.context,n=l.getMarkEl(),i=null!==(t=e.dragElement.parentElement.closest(Gt.SCOPE))&&void 0!==t?t:l.getRootScopeEl(),o=M.querySelector(Rt),u=Array.prototype.indexOf.call(o.children,n),c=(0,d.$s)(M,qt.SCOPE),a=l.getPublicInstance();if(l.mode==Bt.INSERT){const e=d.h.findFieldConf(l.fieldType);if(null!=e){const t=new d.ZQ(e);c.fields.splice(u,0,t),a.updateSchema(),a.chooseField(t)}return l.resetDragStatus()}if(l.mode==Bt.SORT){const e=l.field;if(i==M){const t=c.fields.indexOf(e);l.moveField(t,u,c.fields)}else{const t=(0,d.$s)(i,qt.SCOPE),M=t.fields.indexOf(e);t.fields.splice(M,1),c.fields.splice(u,0,e)}return a.updateSchema(),a.chooseField(e),l.resetDragStatus()}l.resetDragStatus()}}),$t=d.a9.Y0,eM=d.a9._i,tM=d.a9.WF,MM=d.a9.bo,lM=d.No.create({type:"tabs.pane",title:"标签面板",custom:!0,scoped:!0,build:(0,l.aZ)({name:"tabs-pane",props:{field:{type:d.ZQ,required:!0},behavior:{type:String,default:null}},setup:e=>function(){const t=(0,d.qp)(),M=e.field.fields,n="designer"==e.behavior&&0==M.length?(0,l.Wm)("p",{class:[eM.IS_EMPTY_TIP,"xform-bs-empty-tip"]},[(0,l.Uk)("请将左侧控件拖动到此处")]):null;return(0,l.Wm)("div",{class:"tab-pane"},[n,M.map((e=>t.renderField(e)))])}}),view:(0,l.aZ)({name:"tabs-pane-view",props:{field:{type:d.ZQ,required:!0}},setup(e){const t=(0,d.qp)();return function(){const M=e.field.fields;return(0,l.Wm)("div",{class:"tab-pane"},[M.map((e=>t.renderField(e)))])}}}),onDragOver(e){const t=e.currentTarget;e.stopPropagation(),e.preventDefault();const M=e.context,l=M.directionY,n=M.moveMarkEl,i=e.dragElement.contains(t);n(l,i?e.dragElement:e.target,i?e.dragElement.parentElement.closest($t.DROPPABLE):t)},onDrop(e){var t;const M=e.currentTarget;e.stopPropagation(),e.preventDefault();const l=e.context,n=l.getMarkEl(),i=null!==(t=e.dragElement.parentElement.closest($t.SCOPE))&&void 0!==t?t:l.getRootScopeEl(),o=Array.prototype.indexOf.call(M.children,n),u=(0,d.$s)(M,MM.SCOPE),c=l.getPublicInstance();if(l.mode==tM.INSERT){const e=d.h.findFieldConf(l.fieldType);if(null!=e){const t=new d.ZQ(e);u.fields.splice(o,0,t),c.updateSchema(),c.chooseField(t)}return l.resetDragStatus()}if(l.mode==tM.SORT){const e=l.field;if(i==M){const t=u.fields.indexOf(e);l.moveField(t,o,u.fields)}else{const t=(0,d.$s)(i,MM.SCOPE),M=t.fields.indexOf(e);t.fields.splice(M,1),u.fields.splice(o,0,e)}return c.updateSchema(),c.chooseField(e),l.resetDragStatus()}l.resetDragStatus()}});var nM=M(9877);const iM=d.a9._i,oM=d.a9.bo,uM=(0,l.aZ)({name:"xform-bs-tabs-setting",props:{field:{type:d.ZQ,required:!0}},setup(e,t){let M=t.emit;function n(){const t=e.field,M=new d.ZQ(lM);M.title="标签".concat(e.field.fields.length+1),t.fields.push(M)}function i(t){const M=e.field.fields;if(M.length<=1)return;const l=M.indexOf(t);l>=0&&M.splice(l,1)}function o(e,t){e.title=t.target.value}return function(){const t=e.field,u=t.fields.map((e=>{const M=t.fields.length<=1;return(0,l.Wm)("div",{class:"xform-bs-setting-option"},[(0,l.Wm)("input",{type:"text",class:"form-control form-control-sm",placeholder:"请输入标签名称",value:e.title,onInput:o.bind(null,e)},null),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:i.bind(null,e),disabled:M},[(0,l.Uk)("删除")])])}));return(0,l.Wm)(l.HY,null,[(0,l.Wm)("h3",{class:"xform-setting-head"},[(0,l.Uk)("选项卡")]),(0,l.Wm)("section",{class:"xform-setting"},[(0,l.Wm)("div",{class:"xform-bs-tabs-setting-title"},[(0,l.Wm)("header",null,[(0,l.Uk)("标题:")]),(0,l.Wm)("div",{class:"custom-control custom-checkbox"},[(0,l.Wm)("input",{type:"checkbox",class:"custom-control-input",id:"".concat(t.name,"-show-title"),name:"".concat(t.name,"-show-title"),checked:t.attributes.showTitle,onInput:e=>g(M,e,"showTitle","attributes")},null),(0,l.Wm)("label",{class:"custom-control-label",for:"".concat(t.name,"-show-title")},[(0,l.Uk)("显示标题")])])]),(0,l.Wm)("input",{value:t.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:o.bind(null,t)},null)]),(0,l.Wm)("div",{class:"xform-setting"},[(0,l.Wm)("header",null,[(0,l.Uk)("标签:")]),u,(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:n},[(0,l.Uk)("添加标签")])])])}}});function cM(e){return e.validation.valid!==nM.th.ERROR?null:(0,l.Wm)("p",{class:"xform-item-message"},[e.validation.message])}const aM=(0,l.aZ)({name:"tabs",props:{field:{type:d.ZQ,required:!0}},setup(e){const t=(0,l.iH)(e.field.fields[0].name);function M(e,M){M.preventDefault(),t.value=e.name}return(0,l.YP)(e.field.fields,(e=>{e.every((e=>e.name!=t.value))&&(t.value=e[e.length-1].name)})),function(){const n=(0,d.qp)(),i=e.field,o=i.fields.map((e=>{const n={"nav-link":!0,active:t.value==e.name};return(0,l.Wm)("a",{class:n,href:"javascript:;",onClick:M.bind(null,e)},[e.title])})),u=i.fields.map((e=>n.renderField(e,(M=>{const l=(0,d.C_)(M.class);return l[iM.DROPPABLE]=!0,l[iM.SCOPE]=!0,l.active=t.value==e.name,M.class=l,M[oM.SCOPE]=e,M[oM.XFIELD]=e,M}),!1))),c={"xform-item":!0,"xform-bs-tabs":!0,[iM.IS_ERROR]:i.validation.valid===nM.th.ERROR};return(0,l.Wm)("div",{class:c},[(0,l.Wm)("div",{class:"nav nav-tabs"},[!0===i.attributes.showTitle&&(0,l.Wm)("strong",{class:"nav-tabs-title"},[i.title]),o]),(0,l.Wm)("div",{class:"tab-content"},[u]),cM(i)])}}}),NM={name:"bootstrap",version:"0.5.6",slots:{setting_form:r},fieldConfs:[C,B,ie,ye,Qe,tt,zt,vt,Kt,d.No.create({type:"tabs",title:"标签页",icon:"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4x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Q3NjI1NHMtMTMuMjU2MDcxOS0yMi4wOTM0NTMxNy0xMy4yNTYwNzE5MS0zOS43NjgyMTU3MVY2MDAuMzczODEyNjh6TTcwLjEzMDkzNjYzIDExNC4zMTc4NDI5N2gzMDkuMzA4MzQ0MzV2NDQuMTg2OTA2MzNINzAuMTMwOTM2NjN6Ij48L3BhdGg+Cjwvc3ZnPg==",custom:!0,setting:uM,build:aM,view:aM,dependencies:[lM],onCreate(e,t,M){if(M){const t=new d.ZQ(lM);t.title="标签".concat(e.fields.length+1),e.fields.push(t)}},validator(e){const t=e.fields.filter((e=>e.validation.valid===nM.th.ERROR)).map((e=>e.title));return t.length>0?Promise.reject("请补全标签页[".concat(t.join(","),"]的必填内容")):Promise.resolve()}}),d.No.create({type:"subform",title:"子表单"})]}}}]); \ No newline at end of file diff --git a/docs/811.aded9bb6.css b/docs/811.aded9bb6.css new file mode 100644 index 0000000..066b985 --- /dev/null +++ b/docs/811.aded9bb6.css @@ -0,0 +1 @@ +.xform-bs-group-list{position:relative;min-height:200px}.xform-preview-group.xform-is-selected>.xform-preview-cover,.xform-preview-group:hover>.xform-preview-cover{background-color:#fdd58a}.xform-bs-group{flex-direction:column}.xform-bs-group .card{border-radius:0}.xform-bs-group.xform-is-collasped .card-header{border-bottom:0}.xform-bs-group.xform-is-collasped .xform-bs-group-list{display:none}.xform-bs-group .card-header{display:flex;flex-flow:row nowrap;padding-left:10px;padding-right:10px;font-size:14px;font-weight:700;align-items:center;margin-top:0}.xform-bs-group .card-header span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xform-bs-group-toggle{border:none;margin:0;background-color:initial;padding:0;height:16px;line-height:16px;font-size:14px}.xform-bs-group .xform-bs-group-list{padding:10px}.xform-setting .custom-control{line-height:24px}.xform-bs-empty-tip{position:absolute;top:45%;left:50%;transform:translateX(-50%);margin:0;text-align:center;color:#9a9a9a;font-size:14px;font-weight:600}.xform-bs-setting-option{display:flex;flex-flow:row nowrap;align-items:center}.xform-bs-setting-option .form-control{width:auto;flex:1}.xform-bs-setting-option>button{font-size:14px}.xform-bs-setting-option+.xform-bs-setting-option{margin-top:5px}.xform-bs-tabs-setting-title{position:relative}.xform-bs-tabs-setting-title header{line-height:20px;margin-bottom:5px;font-weight:700}.xform-bs-tabs-setting-title .custom-checkbox{position:absolute;top:-2px;right:0}.xform-bs-number-setting-range strong{padding:0 10px}.xform-bs-is-empty{color:#6c757d}.xform-bs-select option{color:#495057}.xform-bs-select option.xform-bs-is-placeholer{color:#6c757d}.xform-bs-radio{padding:5px 0}.xform-bs-radio .custom-radio{line-height:24px}.xform-bs-checkbox{padding:5px 0}.xform-bs-checkbox .custom-checkbox{line-height:24px}.xform-divider{position:relative;height:32px;line-height:32px;padding:0 5px;text-align:center}.xform-divider.xform-item{display:block}.xform-divider.xform-divider-left{text-align:left}.xform-divider.xform-divider-right{text-align:right}.xform-divider-line{position:absolute;left:0;right:0;z-index:0}.xform-divider-line.xform-divider-type-solid{top:15px;border-top:1px solid #666}.xform-divider-line.xform-divider-type-dashed{top:15px;border-top:1px dashed #666}.xform-divider-line.xform-divider-type-double{box-sizing:border-box;top:14px;height:4px;border-top:1px solid #666;border-bottom:1px solid #666}.xform-divider-line.xform-divider-type-solid-dashed{box-sizing:border-box;top:14px;height:4px;border-top:1px solid #666;border-bottom:1px dashed #666}.xform-divider-line.xform-divider-type-dashed-solid{box-sizing:border-box;top:14px;height:4px;border-top:1px dashed #666;border-bottom:1px solid #666}.xform-divider-title{position:relative;z-index:1;padding:0 5px;font-size:18px;font-weight:600;background-color:#fff}.xform-el-divider-preview{padding:8px}.xform-el-divider-setting-types .el-radio-group{width:100%}.xform-el-divider-setting-type{display:flex;flex-flow:row nowrap;align-items:center}.xform-el-divider-setting-type .el-radio{margin-right:10px}.xform-el-divider-setting-type .el-radio__label{display:none}.xform-el-divider-setting-type .xform-divider{flex:1}.xform-el-divider-margin{display:flex;flex-flow:row nowrap;align-items:center}.xform-el-divider-margin label{margin-right:10px}.xform-el-divider-margin .el-slider{flex:1}.xform-divider-types .custom-control{display:flex;align-items:center}.xform-divider-types .custom-control-label{flex:1}.xform-divider-types .custom-control-label:after,.xform-divider-types .custom-control-label:before{top:50%;transform:translateY(-50%)}.xform-bs-divider-range{display:flex;flex-flow:row nowrap;margin-top:10px}.xform-bs-divider-range label{width:100px}.xform-bs-tabs{display:block}.xform-bs-tabs .tab-pane{padding:5px;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;border-bottom:1px solid #dee2e6;min-height:200px}.xform-bs-tabs .nav-tabs-title{padding:.5rem 10px}.xform-viewer .nav-tabs-title{padding-left:0}.xform-preview-tabs .nav-tabs .nav-link{position:relative;z-index:9}.xform-preview-tabs .tab-pane{position:relative;min-height:200px;padding:5px 0 0}.xform-preview-tabs .tab-pane .xform-preview:first-child{margin-top:0}.xform-preview-tabs.xform-is-selected>.xform-preview-cover,.xform-preview-tabs:hover>.xform-preview-cover{background-color:#fdd58a} \ No newline at end of file diff --git a/docs/815.edfa0607.js b/docs/815.edfa0607.js deleted file mode 100644 index cd02021..0000000 --- a/docs/815.edfa0607.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkxform=self.webpackChunkxform||[]).push([[815],{8808:function(e,t,M){"use strict";M.r(t),M.d(t,{default:function(){return sM}});var n=M(5393),i={class:"xform-setting"},u=(0,n.Wm)("header",null,"标题后缀:",-1),l={class:"xform-setting"},a=(0,n.Wm)("header",null,"空值显示为:",-1),r={class:"xform-setting"},o=(0,n.Wm)("header",null,"标题位置:",-1),c={class:"btn-group",role:"group"};var N=(0,n.aZ)({name:"xform-bs-setting",props:{schema:{type:Object,required:!0}},emits:["update:prop"],setup:function(e,t){var M=t.emit;return{updateProp:function(e,t){M("update:prop",{prop:e,value:t})}}}});N.render=function(e,t,M,N,s,d){return(0,n.wg)(),(0,n.j4)(n.HY,null,[(0,n.Wm)("section",i,[u,(0,n.Wm)("input",{value:e.schema.labelSuffix,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题后缀...",onInput:t[1]||(t[1]=function(t){return e.updateProp("labelSuffix",t.target.value)})},null,40,["value"])]),(0,n.Wm)("section",l,[a,(0,n.Wm)("input",{value:e.schema.viewerPlaceholder,type:"text",class:"form-control form-control-sm",placeholder:"查看表单时如果值为空,则显示输入值",onInput:t[2]||(t[2]=function(t){return e.updateProp("viewerPlaceholder",t.target.value)})},null,40,["value"])]),(0,n.Wm)("section",r,[o,(0,n.Wm)("div",c,[(0,n.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"left"==e.schema.labelPosition}],onClick:t[3]||(t[3]=function(t){return e.updateProp("labelPosition","left")})},"左对齐",2),(0,n.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"top"==e.schema.labelPosition}],onClick:t[4]||(t[4]=function(t){return e.updateProp("labelPosition","top")})},"顶部对齐",2),(0,n.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"right"==e.schema.labelPosition}],onClick:t[5]||(t[5]=function(t){return e.updateProp("labelPosition","right")})},"右对齐",2)])])],64)};var s=N,d=(M(8309),M(1539),M(8674),M(6766));M(7327),M(1038),M(1249),M(4678),M(8783);function z(e){return"_value"in e?e._value:e.value}function j(e){var t=e.checked,M=t?"_trueValue":"_falseValue";return M in e?e[M]:t}function D(e){return null==z(e)?e.checked:e.value}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"build",M=e.value,n=e.type;if("number"==n){var i=parseFloat(M);return isNaN(i)?M:i}if("select"==n){var u=e,l=u.selectedIndex;return l<0?null:z(u.options[l])}if("checkbox"==n){var a='input[type="checkbox"][name="'.concat(e.name,'"]'),r=Array.from(document.querySelectorAll(a));return"setting"===t&&1==r.length?j(r[0]):r.filter((function(e){return e.checked})).map(D)}return e.value}function m(e,t,M){e("update:value",{value:I(M.target),name:t})}function g(e,t,M,n){e("update:field",{prop:M,value:I(t.target,"setting"),scope:n})}var T=(0,n.aZ)({name:"xform-bs-text",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup:function(e,t){var M=t.emit;return{updateValue:m.bind(null,M,e.field.name),className:(0,n.Fl)((function(){return{"form-control":!0,"form-control-sm":!0}}))}}});T.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)("input",{id:e.field.name,name:e.field.name,type:"text",value:e.value,class:e.className,placeholder:e.field.placeholder,onInput:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue.apply(e,arguments)})},null,42,["id","name","value","placeholder"])};var y=T,p=(0,n.Wm)("h3",{class:"xform-setting-head"},"单行文本",-1),f={class:"xform-setting"},A=(0,n.Wm)("header",null,"标题:",-1),x={class:"xform-setting"},O=(0,n.Wm)("header",null,"提示:",-1),L={class:"xform-setting"},v=(0,n.Wm)("header",null,"属性:",-1),b={class:"custom-control custom-checkbox"};var E=(0,n.aZ)({name:"xform-bs-text-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;return{updateField:g.bind(null,M)}}});E.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[p,(0,n.Wm)("section",f,[A,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",x,[O,(0,n.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"placeholder")})},null,40,["value"])]),(0,n.Wm)("section",L,[v,(0,n.Wm)("div",b,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=function(t){return e.updateField(t,"required")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])])],64)};var w=E,Y=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgPgogIDxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik05Mi41Njk2IDc0MS4zNzZoODMwLjEyMjY2NjY3VjI4Mi42MjRoLTgzMC4xMjI2NjY2N3Y0NTguNzUyek00OC44Nzg5MzMzMyAyMzguOTMzMzMzMzNoOTE3LjUwNHY1NDYuMTMzMzMzMzRINDguODc4OTMzMzNWMjM4LjkzMzMzMzMzek0xNzMuMzk3MzMzMzMgNDAyLjc3MzMzMzMzdjIxOC40NTMzMzMzNGMwIDEzLjEwNzIgOC43MzgxMzMzMyAyMS44NDUzMzMzMyAyMS44NDUzMzMzNCAyMS44NDUzMzMzM3MyMS44NDUzMzMzMy04LjczODEzMzMzIDIxLjg0NTMzMzMzLTIxLjg0NTMzMzMzVjQwMi43NzMzMzMzM2MwLTEzLjEwNzItOC43MzgxMzMzMy0yMS44NDUzMzMzMy0yMS44NDUzMzMzMy0yMS44NDUzMzMzM3MtMjEuODQ1MzMzMzMgOC43MzgxMzMzMy0yMS44NDUzMzMzNCAyMS44NDUzMzMzM3oiPjwvcGF0aD4KPC9zdmc+",type:"text",title:"单行文本",setting:w,build:y,validator:function(e,t){var M=t[e.name],n=null==M||"string"==typeof M&&0==M.length;return e.required&&n?Promise.reject("必填"):Promise.resolve()}});var C=(0,n.aZ)({name:"xform-bs-textarea",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:""}},emits:["update:value"],setup:function(e,t){var M=t.emit;return{updateValue:m.bind(null,M,e.field.name)}}});C.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)("textarea",{id:e.field.name,name:e.field.name,value:e.value,rows:"3",class:"form-control form-control-sm",placeholder:e.field.placeholder,onInput:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue.apply(e,arguments)})},null,40,["id","name","value","placeholder"])};var S=C,k=(0,n.Wm)("h3",{class:"xform-setting-head"},"多行文本",-1),h={class:"xform-setting"},U=(0,n.Wm)("header",null,"标题:",-1),Q={class:"xform-setting"},W=(0,n.Wm)("header",null,"提示:",-1),P={class:"xform-setting"},Z=(0,n.Wm)("header",null,"属性:",-1),G={class:"custom-control custom-checkbox"};var F=(0,n.aZ)({name:"xform-bs-textarea-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;return{updateField:g.bind(null,M)}}});F.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[k,(0,n.Wm)("section",h,[U,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",Q,[W,(0,n.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"placeholder")})},null,40,["value"])]),(0,n.Wm)("section",P,[Z,(0,n.Wm)("div",G,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=function(t){return e.updateField(t,"required")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])])],64)};var H=F,B=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTkyNi43MiA1NzQuMzEwNEw3MzEuMzQwOCA3NTcuNzZoNjkuMjIyNGwxMjYuMTU2OC0xMjEuNjUxMnYtNjEuNzk4NHpNNjY4LjcyMzIgNzU3Ljc2bDI1OC4wNDgtMjQ0LjIyNFYyNTAuODhIOTcuMjh2NTA2Ljg4aDU3MS40NDMyeiBtMjU4LjA0OC01NS4yOTZsLTU3LjI5MjggNTUuMjk2SDkyNi43MnYtNTUuMjk2ek0xODkuNDQgMzQzLjA0aDQ2LjA4djI3Ni40OGgtNDYuMDhWMzQzLjA0ek01MS4yIDIwNC44aDkyMS42djU5OS4wNEg1MS4yVjIwNC44eiI+PC9wYXRoPgo8L3N2Zz4=",type:"textarea",title:"多行文本",setting:H,build:S,validator:function(e,t){var M=t[e.name],n=null==M||"string"==typeof M&&0==M.length;return e.required&&n?Promise.reject("必填"):Promise.resolve()}}),V=(M(9653),(0,n.Wm)("h3",{class:"xform-setting-head"},"数字",-1)),q={class:"xform-setting"},R=(0,n.Wm)("header",null,"标题:",-1),J={class:"xform-setting"},_=(0,n.Wm)("header",null,"提示:",-1),X={class:"xform-setting"},K=(0,n.Wm)("header",null,"属性:",-1),$={class:"xform-setting-inline"},ee={class:"xform-setting-inline-item custom-control custom-checkbox"},te={class:"xform-setting-inline-item custom-control custom-checkbox"};var Me=(0,n.aZ)({name:"xform-bs-number-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;return{updateField:g.bind(null,M)}}});Me.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[V,(0,n.Wm)("section",q,[R,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",J,[_,(0,n.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"placeholder")})},null,40,["value"])]),(0,n.Wm)("section",X,[K,(0,n.Wm)("div",$,[(0,n.Wm)("div",ee,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onChange:t[3]||(t[3]=function(t){return e.updateField(t,"required")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])]),(0,n.Wm)("div",te,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-integer"),name:"".concat(e.field.name,"-integer"),checked:e.field.attributes.integer,type:"checkbox",class:"custom-control-input",onChange:t[4]||(t[4]=function(t){return e.updateField(t,"integer","attributes")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-integer")},"整数",8,["for"])])])])],64)};var ne=Me,ie=(0,n.aZ)({name:"xform-bs-number",props:{field:{type:d.ZQ,required:!0},value:{type:[Number,String],default:null}},emits:["update:value"],setup:function(e,t){var M=t.emit;return function(){return(0,n.Wm)("input",{id:e.field.name,name:e.field.name,type:"number",value:e.value,onInput:m.bind(null,M,e.field.name),class:"form-control form-control-sm",placeholder:e.field.placeholder},null)}}}),ue=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTg5NiAyMjRIMTI4Yy0zNS4yIDAtNjQgMjguOC02NCA2NHY0NDhjMCAzNS4yIDI4LjggNjQgNjQgNjRoNzY4YzM1LjIgMCA2NC0yOC44IDY0L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IDEyLjgtMjUuNiAzMi0yNS42IDU3LjZoMzguNGMwLTE2IDYuNC0yNS42IDEyLjgtMzIgNi40LTYuNCAxOS4yLTkuNiAzMi05LjZzMjUuNiAzLjIgMzIgOS42YzYuNCA2LjQgOS42IDE2IDkuNiAyOC44cy0zLjIgMjIuNC05LjYgMjguOGMtNi40IDYuNC0xOS4yIDkuNi0zMiA5LjZoLTE2djI4LjhoMTZjMTYgMCAyNS42IDMuMiAzNS4yIDkuNiA5LjYgNi40IDEyLjggMTYgMTIuOCAzMiAwIDEyLjgtMy4yIDIyLjQtMTIuOCAyOC44LTkuNiA5LjYtMTkuMiAxMi44LTM1LjIgMTIuOC0xMi44IDAtMjUuNi0zLjItMzItMTIuOC05LjYtOS42LTEyLjgtMjIuNC0xNi0zOC40aC0zOC40YzMuMiAyOC44IDEyLjggNDggMjguOCA2NCAxNiAxMi44IDM1LjIgMTkuMiA2MC44IDE5LjIgMjUuNiAwIDQ4LTYuNCA2NC0yMi40IDE2LTE2IDIyLjQtMzIgMjIuNC01NC40IDAtMTYtMy4yLTI1LjYtMTIuOC0zNS4yLTkuNi02LjQtMjIuNC0xNi0zNS4yLTE5LjJ6Ij48L3BhdGg+Cjwvc3ZnPg==",type:"number",title:"数字",setting:ne,build:ie,validator:function(e,t){var M=t[e.name],n=null==M||"number"==typeof M&&(isNaN(M)||!isFinite(M));return e.required&&n?Promise.reject("必填"):e.attributes.integer&&!/^[-+]?[1-9]\d*$/.test(M)?Promise.reject("请输入整数"):Promise.resolve()}}),le={key:0,class:"xform-bs-is-placeholer",value:""};var ae=(0,n.aZ)({name:"xform-bs-select",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup:function(e,t){var M=t.emit;return{updateValue:m.bind(null,M,e.field.name),placeholder:(0,n.Fl)((function(){return e.field.placeholder?"---- ".concat(e.field.placeholder," ----"):""})),className:(0,n.Fl)((function(){return{"custom-select":!0,"custom-select-sm":!0,"xform-bs-select":!0,"xform-bs-is-empty":null==e.value||"string"==typeof e.value&&0==e.value.length}}))}}});ae.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)("select",{id:e.field.name,name:e.field.name,class:e.className,value:e.value,onChange:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue.apply(e,arguments)})},[e.placeholder?((0,n.wg)(),(0,n.j4)("option",le,(0,n.zw)(e.placeholder),1)):(0,n.ry)("",!0),((0,n.wg)(!0),(0,n.j4)(n.HY,null,(0,n.Ko)(e.field.options,(function(e){return(0,n.wg)(),(0,n.j4)("option",{key:e.value,value:e.value},(0,n.zw)(e.value),9,["value"])})),128))],42,["id","name","value"])};var re=ae,oe=(0,n.Wm)("h3",{class:"xform-setting-head"},"下拉框",-1),ce={class:"xform-setting"},Ne=(0,n.Wm)("header",null,"标题:",-1),se={class:"xform-setting"},de=(0,n.Wm)("header",null,"提示:",-1),ze={class:"xform-setting"},je=(0,n.Wm)("header",null,"属性:",-1),De={class:"custom-control custom-checkbox"},Ie={class:"xform-setting"},me=(0,n.Wm)("header",null,"选项:",-1);M(2772),M(561);var ge=(0,n.aZ)({name:"xform-bs-select-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;function n(e,t){M("update:field",{prop:e,value:t})}return{updateField:function(e,t){var M=e.target,i=M.value;"checkbox"==M.type&&(i=M.checked),n(t,i)},addOption:function(){var t=e.field.options;t.push({value:"选项".concat(t.length+1)}),n("options",t)},updateOption:function(t,M){var i=t.target.value;M.value=i,n("options",e.field.options)},removeOption:function(t){var M=e.field.options,i=M.indexOf(t);i>=0&&M.splice(i,1),n("options",M)}}}});ge.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[oe,(0,n.Wm)("section",ce,[Ne,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",se,[de,(0,n.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"placeholder")})},null,40,["value"])]),(0,n.Wm)("section",ze,[je,(0,n.Wm)("div",De,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=function(t){return e.updateField(t,"required")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])]),(0,n.Wm)("section",Ie,[me,((0,n.wg)(!0),(0,n.j4)(n.HY,null,(0,n.Ko)(e.field.options,(function(t,M){return(0,n.wg)(),(0,n.j4)("div",{key:M,class:"xform-bs-setting-option"},[(0,n.Wm)("input",{value:t.value,class:"form-control form-control-sm",placeholder:"请输入选项内容",onInput:function(M){return e.updateOption(M,t)}},null,40,["value","onInput"]),(0,n.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:function(M){return e.removeOption(t)}},"删除",8,["onClick"])])})),128)),(0,n.Wm)("button",{type:"text",class:"btn btn-link btn-sm",onClick:t[4]||(t[4]=function(){return e.addOption&&e.addOption.apply(e,arguments)})},"添加选项")])],64)};var Te=ge,ye=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgPgogIDxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik05MC4xMjUgMzcxLjM3NXYyODEuMjVoODQzLjc1VjM3MS4zNzVIOTAuMTI1eiBtLTI4LjEyNS0yOC4xMjVoOTAwdjMzNy41SDYyVjM0My4yNXoiPjwvcGF0aD4KICA8cGF0aCBmaWxsPSIjMzMzIiBkPSJNODc3LjYyNSA1NDAuMTI1bC00Mi4xODc1IDQyLjE4NzVMNzkzLjI1IDU0MC4xMjV6TTg3Ny42MjUgNDgzLjg3NWwtNDIuMTg3NS00Mi4xODc1TDc5My4yNSA0ODMuODc1ek0xNzQuNSA0ODMuODc1aDUzNC4zNzV2NTYuMjVIMTc0LjV6Ij48L3BhdGg+Cjwvc3ZnPg==",type:"select",title:"下拉框",setting:Te,build:re,validator:function(e,t){var M=t[e.name],n=null==M||"string"==typeof M&&0==M.length;return e.required&&n?Promise.reject("必填"):Promise.resolve()},onCreate:function(e,t,M){var n=Array.isArray(t.options)?t.options:[];M&&n.push({value:"选项1"}),e.options=n}}),pe={class:"xform-bs-radio"};var fe=(0,n.aZ)({name:"xform-bs-radio",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup:function(e,t){var M=t.emit;return{updateValue:m.bind(null,M,e.field.name),radioClassName:(0,n.Fl)((function(){var t=["custom-control","custom-radio"];return"inline"==e.field.attributes.layout&&t.push("custom-control-inline"),t}))}}});fe.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)("div",pe,[((0,n.wg)(!0),(0,n.j4)(n.HY,null,(0,n.Ko)(e.field.options,(function(M,i){return(0,n.wg)(),(0,n.j4)("div",{key:i,class:e.radioClassName},[(0,n.Wm)("input",{id:e.field.name+"_"+i,name:e.field.name,value:M.value,checked:e.value==M.value,type:"radio",class:"custom-control-input",onChange:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue.apply(e,arguments)})},null,40,["id","name","value","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:e.field.name+"_"+i},(0,n.zw)(M.value),9,["for"])],2)})),128))])};var Ae=fe,xe=(0,n.Wm)("h3",{class:"xform-setting-head"},"单选框",-1),Oe={class:"xform-setting"},Le=(0,n.Wm)("header",null,"标题:",-1),ve={class:"xform-setting"},be=(0,n.Wm)("header",null,"属性:",-1),Ee={class:"custom-control custom-checkbox"},we={class:"xform-setting"},Ye=(0,n.Wm)("header",null,"布局:",-1),Ce={class:"btn-group",role:"group"},Se={class:"xform-setting"},ke=(0,n.Wm)("header",null,"选项:",-1);var he=(0,n.aZ)({name:"xform-bs-radio-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;function n(e,t,n){M("update:field",{prop:e,value:t,scope:n})}return{update:n,updateField:function(e,t,M){var i=e.target,u=i.value;"checkbox"==i.type&&(u=i.checked),n(t,u,M)},addOption:function(){var t=e.field.options;t.push({value:"选项".concat(t.length+1)}),n("options",t)},updateOption:function(t,M){var i=t.target.value;M.value=i,n("options",e.field.options)},removeOption:function(t){var M=e.field.options,i=M.indexOf(t);i>=0&&M.splice(i,1),n("options",M)}}}});he.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[xe,(0,n.Wm)("section",Oe,[Le,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",ve,[be,(0,n.Wm)("div",Ee,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"required")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])]),(0,n.Wm)("section",we,[Ye,(0,n.Wm)("div",Ce,[(0,n.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"inline"==e.field.attributes.layout}],onClick:t[3]||(t[3]=function(t){return e.update("layout","inline","attributes")})}," 行内 ",2),(0,n.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"block"==e.field.attributes.layout}],onClick:t[4]||(t[4]=function(t){return e.update("layout","block","attributes")})}," 换行 ",2)])]),(0,n.Wm)("section",Se,[ke,((0,n.wg)(!0),(0,n.j4)(n.HY,null,(0,n.Ko)(e.field.options,(function(t,M){return(0,n.wg)(),(0,n.j4)("div",{key:M,class:"xform-bs-setting-option"},[(0,n.Wm)("input",{value:t.value,class:"form-control form-control-sm",placeholder:"请输入选项内容",onInput:function(M){return e.updateOption(M,t)}},null,40,["value","onInput"]),(0,n.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:function(M){return e.removeOption(t)}},"删除",8,["onClick"])])})),128)),(0,n.Wm)("button",{type:"text",class:"btn btn-link btn-sm",onClick:t[5]||(t[5]=function(){return e.addOption&&e.addOption.apply(e,arguments)})},"添加选项")])],64)};var Ue=he,Qe=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTUwOC4yMTk4MjQyMiA3Ni43MzU3NDIxOWMtMjM4LjIxMjU5NzY2IDAtNDMyIDE5My43ODc0MDIzNC00MzIgNDMyczE5My43ODc0MDIzNCA0MzIgNDMyIDQzMiA0MzItMTkzLjc4NzQwMjM0IDQzMi00MzItMTkzLjc4NzQwMjM0LTQzMi00MzItNDMyek01MDguMjE5ODI0MjIgOTA0LjczNTc0MjE5Yy0yMTguMzUxOTUzMTIgMC0zOTYtMTc3LjY0ODA0Njg4LTM5Ni0zOTZzMTc3LjY0ODA0Njg4LTM5NiAzOTYtMzk2IDM5NiAxNzcuNjQ4MDQ2ODggMzk2IDM5Ni0xNzcuNjQ4MDQ2ODggMzk2LTM5NiAzOTZ6Ij48L3BhdGg+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTM1My4yMTU5MTc5NyA1MDguNzM1NzQyMTljMCA4NS42MDYzNDc2NiA2OS4zOTc1NTg1OSAxNTUuMDA0Nzg1MTYgMTU1LjAwNDc4NTE2IDE1NS4wMDQ3ODUxNSA4NS42MDYzNDc2NiAwIDE1NS4wMDQ3ODUxNi02OS4zOTc1NTg1OSAxNTUuMDA0Nzg1MTUtMTU1LjAwNDc4NTE1IDAtODUuNjA2MzQ3NjYtNjkuMzk3NTU4NTktMTU1LjAwNDc4NTE2LTE1NS4wMDQ3ODUxNi0xNTUuMDA0Nzg1MTYtODUuNjA2MzQ3NjYgMC0xNTUuMDA0Nzg1MTYgNjkuMzk3NTU4NTktMTU1LjAwNDc4NTE1IDE1NS4wMDQ3ODUxNnoiPjwvcGF0aD4KPC9zdmc+",type:"radio",title:"单选框",setting:Ue,build:Ae,validator:function(e,t){var M=t[e.name],n=null==M||"string"==typeof M&&0==M.length;return e.required&&n?Promise.reject("必填"):Promise.resolve()},onCreate:function(e,t,M){var n=Array.isArray(t.options)?t.options:[];M&&n.push({value:"选项1"}),e.options=n}}),We=(M(6699),M(2023),{class:"xform-bs-checkbox"});var Pe=(0,n.aZ)({name:"xform-bs-checkbox",props:{field:{type:d.ZQ,required:!0},value:{type:Array,default:null}},emits:["update:value"],setup:function(e,t){var M=t.emit;return{updateValue:m.bind(null,M,e.field.name),radioClassName:(0,n.Fl)((function(){var t=["custom-control","custom-checkbox"];return"inline"==e.field.attributes.layout&&t.push("custom-control-inline"),t}))}}});Pe.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)("div",We,[((0,n.wg)(!0),(0,n.j4)(n.HY,null,(0,n.Ko)(e.field.options,(function(M,i){return(0,n.wg)(),(0,n.j4)("div",{key:i,class:e.radioClassName},[(0,n.Wm)("input",{id:e.field.name+"_"+i,name:e.field.name,value:M.value,checked:Array.isArray(e.value)&&e.value.includes(M.value),type:"checkbox",class:"custom-control-input",onChange:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue.apply(e,arguments)})},null,40,["id","name","value","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:e.field.name+"_"+i},(0,n.zw)(M.value),9,["for"])],2)})),128))])};var Ze=Pe,Ge=(0,n.Wm)("h3",{class:"xform-setting-head"},"单选框",-1),Fe={class:"xform-setting"},He=(0,n.Wm)("header",null,"标题:",-1),Be={class:"xform-setting"},Ve=(0,n.Wm)("header",null,"属性:",-1),qe={class:"custom-control custom-checkbox"},Re={class:"xform-setting"},Je=(0,n.Wm)("header",null,"布局:",-1),_e={class:"btn-group",role:"group"},Xe={class:"xform-setting"},Ke=(0,n.Wm)("header",null,"选项:",-1);var $e=(0,n.aZ)({name:"xform-bs-checkbox-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;function n(e,t,n){M("update:field",{prop:e,value:t,scope:n})}return{update:n,updateField:function(e,t,M){var i=e.target,u=i.value;"checkbox"==i.type&&(u=i.checked),n(t,u,M)},addOption:function(){var t=e.field.options;t.push({value:"选项".concat(t.length+1)}),n("options",t)},updateOption:function(t,M){var i=t.target.value;M.value=i,n("options",e.field.options)},removeOption:function(t){var M=e.field.options,i=M.indexOf(t);i>=0&&M.splice(i,1),n("options",M)}}}});$e.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[Ge,(0,n.Wm)("section",Fe,[He,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",Be,[Ve,(0,n.Wm)("div",qe,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"required")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])]),(0,n.Wm)("section",Re,[Je,(0,n.Wm)("div",_e,[(0,n.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"inline"==e.field.attributes.layout}],onClick:t[3]||(t[3]=function(t){return e.update("layout","inline","attributes")})}," 行内 ",2),(0,n.Wm)("button",{type:"button",class:["btn btn-sm btn-primary",{active:"block"==e.field.attributes.layout}],onClick:t[4]||(t[4]=function(t){return e.update("layout","block","attributes")})}," 换行 ",2)])]),(0,n.Wm)("section",Xe,[Ke,((0,n.wg)(!0),(0,n.j4)(n.HY,null,(0,n.Ko)(e.field.options,(function(t,M){return(0,n.wg)(),(0,n.j4)("div",{key:M,class:"xform-bs-setting-option"},[(0,n.Wm)("input",{value:t.value,class:"form-control form-control-sm",placeholder:"请输入选项内容",onInput:function(M){return e.updateOption(M,t)}},null,40,["value","onInput"]),(0,n.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:function(M){return e.removeOption(t)}},"删除",8,["onClick"])])})),128)),(0,n.Wm)("button",{type:"text",class:"btn btn-link btn-sm",onClick:t[5]||(t[5]=function(){return e.addOption&&e.addOption.apply(e,arguments)})},"添加选项")])],64)};var et=$e,tt=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTcxMy4zMzE1NjExNSA4MDQuNzgxMjU5MDdIMTgyLjIyMzkzMTRBOTEuNTE0NzMzMzkgOTEuNTE0NzMzMzkgMCAwIDEgOTAuNzc0MjkxOTkgNzEzLjMzMTYxODg0VjE4Mi4yMjM5ODkwN0E5MS41MTQ3MzMzOSA5MS41MTQ3MzMzOSAwIDAgMSAxODIuMjIzOTMxNCA5MC43NzQzNDk2N0g2NTUuODkwNjQ3MzFhMzIuNDUyMjM3N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yLjQ1MjIzNzUyIDMyLjQ1MjIzNzUyIDAgMCAwIDkwMS40MjI3MDQ4MSA5MC4xMjUwNTc2N3oiPjwvcGF0aD4KICA8cGF0aCBmaWxsPSIjMzMzIiBkPSJNMzA2LjY0NDA4OTE3IDMxOS42MjUwNDIwMmEzMi40NTIyMzc1MiAzMi40NTIyMzc1MiAwIDAgMC0yMi45NzU3MDYzNiA1NS4zNjI4NDk4OWwxODMuNTQ4NTcxNjMgMTgzLjU0ODU3MTYyYTMyLjUxNjUwNzU0IDMyLjUxNjUwNzU0IDAgMCAwIDQ1Ljk1MTQxMjcyIDAuMDY0MjcwMDIgMzIuNDUyMjM3NTIgMzIuNDUyMjM3NTIgMCAwIDAgMC00NS44ODcxNDI3TDMyOS41NTU1MjU1MiAzMjkuMTAwNzQ5MjJhMzIuMDYyNDk3NTMgMzIuMDYyNDk3NTMgMCAwIDAtMjIuOTExNDM2MzQtOS40NzU3MDcyeiI+PC9wYXRoPgo8L3N2Zz4=",type:"checkbox",title:"多选框",setting:et,build:Ze,validator:function(e,t){var M=t[e.name],n=null==M||"string"==typeof M&&0==M.length;return e.required&&n?Promise.reject("必填"):Promise.resolve()},onCreate:function(e,t,M){var n=Array.isArray(t.options)?t.options:[];M&&n.push({value:"选项1"}),e.options=n}});var Mt=(0,n.aZ)({name:"xform-bs-date",props:{field:{type:d.ZQ,required:!0},value:{type:String,default:null}},emits:["update:value"],setup:function(e,t){var M=t.emit;return{updateValue:m.bind(null,M,e.field.name)}}});Mt.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)("input",{id:e.field.name,name:e.field.name,type:"date",value:e.value,class:"form-control form-control-sm",placeholder:e.field.placeholder,onInput:t[1]||(t[1]=function(){return e.updateValue&&e.updateValue.apply(e,arguments)})},null,40,["id","name","value","placeholder"])};var nt=Mt,it=(0,n.Wm)("h3",{class:"xform-setting-head"},"日期",-1),ut={class:"xform-setting"},lt=(0,n.Wm)("header",null,"标题:",-1),at={class:"xform-setting"},rt=(0,n.Wm)("header",null,"提示:",-1),ot={class:"xform-setting"},ct=(0,n.Wm)("header",null,"属性:",-1),Nt={class:"custom-control custom-checkbox"};var st=(0,n.aZ)({name:"xform-bs-date-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;return{updateField:g.bind(null,M)}}});st.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[it,(0,n.Wm)("section",ut,[lt,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",at,[rt,(0,n.Wm)("textarea",{value:e.field.placeholder,class:"form-control form-control-sm",placeholder:"请输入提示信息...",rows:"3",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"placeholder")})},null,40,["value"])]),(0,n.Wm)("section",ot,[ct,(0,n.Wm)("div",Nt,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.required,type:"checkbox",class:"custom-control-input",onInput:t[3]||(t[3]=function(t){return e.updateField(t,"required")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"必填",8,["for"])])])],64)};var dt=st,zt=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgPgogIDxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik0zODguNjIzNSAxMzAuMDk0bDI0MS4xMjM1IDAgMCAyOC45NzFMMzg4LjYyMzUgMTU5LjA2NSAzODguNjIzNSAxMzAuMDk0IDM4OC42MjM1IDEzMC4wO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LjQzNTUgMjAuNTYwNS0zMi41MjYgNC40ODY1LTEzLjA4MTUgNy4xMDEtMjUuOTc4NSA3LjY1OS0zOC41MDY1QzY4Ny4zMiA2NTMuMjc3NSA2ODYuMTk1IDY0MS41MDU1IDY4My4zOTE1IDYzMC42NjA1TDY4My4zOTE1IDYzMC42NjA1IDY4My4zOTE1IDYzMC42NjA1TTY4My4zOTE1IDYzMC42NjA1TDY4My4zOTE1IDYzMC42NjA1eiI+PC9wYXRoPgo8L3N2Zz4=",type:"date",title:"日期",setting:dt,build:nt,validator:function(e,t){var M=t[e.name],n=null==M||"string"==typeof M&&0==M.length;return e.required&&n?Promise.reject("必填"):Promise.resolve()}});var jt={key:0,class:"xform-divider-title"};var Dt=(0,n.aZ)({name:"xform-divider",props:{title:{type:String,default:null},layout:{type:String,default:"center"},type:{type:String,default:"solid"},top:{type:Number,default:0},bottom:{type:Number,default:0}},computed:{style:function(){var e={};return this.top>0&&(e.marginTop="".concat(this.top,"px")),this.bottom>0&&(e.marginBottom="".concat(this.bottom,"px")),e}}});Dt.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)("div",{class:["xform-divider","xform-divider-".concat(e.layout)],style:e.style},[(0,n.Wm)("div",{class:["xform-divider-line","xform-divider-type-".concat(e.type)]},null,2),e.title?((0,n.wg)(),(0,n.j4)("strong",jt,(0,n.zw)(e.title),1)):(0,n.ry)("",!0)],6)};var It=Dt;var mt,gt,Tt,yt=(0,n.aZ)({name:"xform-bs-divider",inheritAttrs:!1,components:(mt={},gt=It.name,Tt=It,gt in mt?Object.defineProperty(mt,gt,{value:Tt,enumerable:!0,configurable:!0,writable:!0}):mt[gt]=Tt,mt),props:{field:{type:d.ZQ,required:!0}}});yt.render=function(e,t,M,i,u,l){var a=(0,n.up)("xform-divider");return(0,n.wg)(),(0,n.j4)(a,{class:"xform-item",title:e.field.title,layout:e.field.attributes.layout,type:e.field.attributes.type,top:e.field.attributes.top,bottom:e.field.attributes.bottom},null,8,["title","layout","type","top","bottom"])};var pt=yt,ft=(0,n.Wm)("h3",{class:"xform-setting-head"},"分割线",-1),At={class:"xform-setting"},xt=(0,n.Wm)("header",null,"标题:",-1),Ot={class:"xform-setting xform-divider-types"},Lt=(0,n.Wm)("header",null,"样式:",-1),vt={class:"xform-setting"},bt=(0,n.Wm)("header",null,"间距:",-1),Et={class:"xform-bs-divider-range"},wt=(0,n.Wm)("label",null,"上间距:",-1),Yt={class:"xform-bs-divider-range"},Ct=(0,n.Wm)("label",null,"下间距:",-1);var St=(0,n.aZ)({name:"xform-bs-divider-setting",components:function(e,t,M){return t in e?Object.defineProperty(e,t,{value:M,enumerable:!0,configurable:!0,writable:!0}):e[t]=M,e}({},It.name,It),props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;return{types:["solid","dashed","double","solid-dashed","dashed-solid"],update:function(e,t,n){M("update:field",{prop:e,value:t,scope:n})},updateField:function(e,t,n){var i=e.target,u=i.value;if("checkbox"==i.type&&(u=i.checked),"range"==i.type){var l=parseFloat(u);u=isNaN(l)?u:l}M("update:field",{prop:t,value:u,scope:n})},isChecked:function(t){return e.field.attributes.type==t||"solid"==t&&null==e.field.attributes.type}}}});St.render=function(e,t,M,i,u,l){var a=(0,n.up)("xform-divider");return(0,n.wg)(),(0,n.j4)(n.HY,null,[ft,(0,n.Wm)("section",At,[xt,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",Ot,[Lt,((0,n.wg)(!0),(0,n.j4)(n.HY,null,(0,n.Ko)(e.types,(function(t){return(0,n.wg)(),(0,n.j4)("div",{key:t,class:"custom-control custom-radio"},[(0,n.Wm)("input",{id:"divider-".concat(t),name:"setting-divider-type",type:"radio",value:t,class:"custom-control-input",checked:e.isChecked(t),onChange:function(M){return e.update("type",t,"attributes")}},null,40,["id","value","checked","onChange"]),(0,n.Wm)("label",{class:"custom-control-label",for:"divider-".concat(t)},[(0,n.Wm)(a,{type:t},null,8,["type"])],8,["for"])])})),128))]),(0,n.Wm)("section",vt,[bt,(0,n.Wm)("div",Et,[wt,(0,n.Wm)("input",{value:e.field.attributes.top,type:"range",class:"custom-range",min:"0",max:"100",step:"5",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"top","attributes")})},null,40,["value"])]),(0,n.Wm)("div",Yt,[Ct,(0,n.Wm)("input",{value:e.field.attributes.bottom,type:"range",class:"custom-range",min:"0",max:"100",step:"5",onInput:t[3]||(t[3]=function(t){return e.updateField(t,"bottom","attributes")})},null,40,["value"])])])],64)};var kt=St,ht=d.No.create({icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiID4KICA8cGF0aCBmaWxsPSIjMzMzIiBkPSJNODU2LjUzMDQ4ODg5IDc1Ni4yNzI5MjQ0NWwtMTAwLjI1NzU2NDQ0IDEwMC4yNTg3MDIyMmgtNTYuNjAyMTY4OWwxNTYuODYwODcxMTItMTU2Ljg2MDg3MTEydjU2LjYwMjE2ODl6IG0wIDczLjY4MDIxMzMzdjI2LjU3ODQ4ODg5aC0yNi41NzczNTExMWwyNi41Nzg0ODg4OS0yNi41Nzg0ODg4OXogbTAtMjAzLjk2MjU5NTU2TDYyNS45OTE2OCA4NTYuNTMxNjI2NjdINTY5LjM4OTUxMTExbDI0Ni4wOTMzNjg4OS0yNDYuMDk0NTA2NjdoNDEuMDQ4NzQ2Njd2MTUuNTUzNDIyMjJ6IG0tMTE0LjcyNzgyMjIyLTE1LjU1MzQyMjIyTDQ5NS43MDcwMjIyMiA4NTYuNTMxNjI2NjdoLTU2LjYwMTAzMTEx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TFoLTU2LjYwMjE2ODg4bDE5Ni44NzUzNzc3Ny0xOTYuODc1Mzc3NzhoNTYuNjAyMTY4ODl6IG0tMTMwLjIzMzQ1Nzc4IDBMMjEwLjQ4NTQ3NTU1IDM2NC4zNDM3NTExMUgxNjcuNDY5NTExMTF2LTEzLjUzNTAwNDQ0bDE4My4zNDAzNzMzNC0xODMuMzQwMzczMzRoNTYuNjAxMDMxMXogbS0xMzAuMjgyMzgyMjIgMGwtMTA5LjYxMDA5Nzc4IDEwOS42MTAwOTc3OHYtNTYuMDU5NDQ4ODlsNTMuNTUwNjQ4ODktNTMuNTUwNjQ4ODloNTYuMTA5NTExMTF6TTY5LjAzMTI1MzMzIDQ2Mi43ODA4NzExMWg4ODUuOTM3NDkzMzRWNTEySDY5LjAzMTI1MzMzdi00OS4yMTkxMjg4OXoiPjwvcGF0aD4KPC9zdmc+",type:"divider",title:"分割线",custom:!0,setting:kt,build:pt,view:pt}),Ut=(0,n.Wm)("h3",{class:"xform-setting-head"},"分组",-1),Qt={class:"xform-setting"},Wt=(0,n.Wm)("header",null,"标题:",-1),Pt={class:"xform-setting"},Zt=(0,n.Wm)("header",null,"属性:",-1),Gt={class:"custom-control custom-checkbox"};var Ft=(0,n.aZ)({name:"xform-bs-group-setting",props:{field:d.ZQ},emits:["update:field"],setup:function(e,t){var M=t.emit;return{updateField:g.bind(null,M)}}});Ft.render=function(e,t,M,i,u,l){return(0,n.wg)(),(0,n.j4)(n.HY,null,[Ut,(0,n.Wm)("section",Qt,[Wt,(0,n.Wm)("input",{value:e.field.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:t[1]||(t[1]=function(t){return e.updateField(t,"title")})},null,40,["value"])]),(0,n.Wm)("section",Pt,[Zt,(0,n.Wm)("div",Gt,[(0,n.Wm)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),checked:e.field.attributes.collapsable,type:"checkbox",class:"custom-control-input",onInput:t[2]||(t[2]=function(t){return e.updateField(t,"collapsable","attributes")})},null,40,["id","name","checked"]),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(e.field.name,"-required")},"允许展开/收起",8,["for"])])])],64)};var Ht=Ft;function Bt(e,t,M){return t in e?Object.defineProperty(e,t,{value:M,enumerable:!0,configurable:!0,writable:!0}):e[t]=M,e}var Vt=d.a9.Y0,qt=d.a9._i,Rt=d.a9.u7,Jt=d.a9.Tr,_t=d.a9.bo,Xt="xform-bs-group-list",Kt=".".concat(Xt);function $t(){var e=(0,n.iH)(!1);function t(){e.value=!e.value}return{collasped:e,renderHeader:function(M){if(null==M.title)return null;var i=!0===M.attributes.collapsable?(0,n.Wm)("button",{type:"button",title:e.value?"展开":"收起",class:"btn btn-link xform-bs-group-toggle",onClick:t},[e.value?"展开":"收起"]):null;return(0,n.Wm)("h6",{class:"card-header"},[(0,n.Wm)("span",null,[M.title]),i])}}}var eM=(0,n.aZ)({name:"xform-bs-group",props:{field:{type:d.ZQ,required:!0},behavior:{type:String,default:null}},setup:function(e){var t=$t(),M=t.collasped,i=t.renderHeader,u=(0,d.qp)().renderField;return function(){var t,l=e.field.fields,a=e.behavior==Rt.DESIGNER,r={"xform-item":!0,"xform-bs-group":!0,"xform-is-collasped":M.value},o=a&&0==l.length?(0,n.Wm)("p",{class:[qt.IS_EMPTY_TIP,"xform-bs-empty-tip"]},[(0,n.Uk)("请将左侧控件拖动到此处")]):null,c=Bt({class:(t={"card-body":!0},Bt(t,Xt,!0),Bt(t,qt.DROPPABLE,a),t)},_t.XFIELD,a?e.field:void 0);return(0,n.Wm)("div",{class:r},[(0,n.Wm)("div",{class:"card"},[i(e.field),(0,n.Wm)("div",c,[o,l.map((function(e){return u(e)}))])])])}}}),tM=(0,n.aZ)({name:"xform-bs-group-view",props:{field:{type:d.ZQ,required:!0}},setup:function(e){var t=(0,d.qp)().renderField,M=$t(),i=M.collasped,u=M.renderHeader;return function(){var M=e.field.fields,l={"xform-item":!0,"xform-bs-group":!0,"xform-is-collasped":i.value};return(0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CAxLTMzLjM2OTk1MTY3IDAgMjMuNTY2MzUwNTEgMjMuNTY2MzUwNTEgMCAwIDEgMC0zMy4zNjk5NTE2N2w2Ni43Mzk5MDMzMy02Ni42OTI3NzExYTIzLjU2NjM1MDUxIDIzLjU2NjM1MDUxIDAgMCAxIDE2LjYzNzg0MzU5LTYuODgxMzczMjh6IiBmaWxsPSIjMzMzIj48L3BhdGg+Cjwvc3ZnPg==",type:"group",title:"分组",custom:!0,scoped:!0,preview:eM,setting:Ht,build:eM,view:tM,onDragOver:function(e){var t=e.currentTarget;if(t.matches(Kt)){e.stopPropagation(),e.preventDefault();var M=e.context,n=M.directionY,i=M.moveMarkEl,u=e.dragElement.contains(t);i(n,u?e.dragElement:e.target,u?e.dragElement.parentElement.closest(Vt.DROPPABLE):t)}},onDrop:function(e){var t,M=e.currentTarget;if(M.matches(Vt.SCOPE)){e.stopPropagation(),e.preventDefault();var n=e.context,i=n.getMarkEl(),u=null!==(t=e.dragElement.parentElement.closest(Vt.SCOPE))&&void 0!==t?t:n.getRootScopeEl(),l=M.querySelector(Kt),a=Array.prototype.indexOf.call(l.children,i),r=(0,d.$s)(M,_t.SCOPE),o=n.getPublicInstance();if(n.mode==Jt.INSERT){var c=d.h.findFieldConf(n.fieldType);if(null!=c){var N=new d.ZQ(c);r.fields.splice(a,0,N),o.updateSchema(),o.chooseField(N)}return n.resetDragStatus()}if(n.mode==Jt.SORT){var s=n.field;if(u==M){var z=r.fields.indexOf(s);n.moveField(z,a,r.fields)}else{var j=(0,d.$s)(u,_t.SCOPE),D=j.fields.indexOf(s);j.fields.splice(D,1),r.fields.splice(a,0,s)}return o.updateSchema(),o.chooseField(s),n.resetDragStatus()}n.resetDragStatus()}}}),nM=(M(6541),M(9714),d.a9.Y0),iM=d.a9._i,uM=d.a9.Tr,lM=d.a9.bo,aM=d.No.create({type:"tabs.pane",title:"标签面板",custom:!0,scoped:!0,build:(0,n.aZ)({name:"tabs-pane",props:{field:{type:d.ZQ,required:!0},behavior:{type:String,default:null}},setup:function(e){return function(){var t=(0,d.qp)(),M=e.field.fields,i="designer"==e.behavior&&0==M.length?(0,n.Wm)("p",{class:[iM.IS_EMPTY_TIP,"xform-bs-empty-tip"]},[(0,n.Uk)("请将左侧控件拖动到此处")]):null;return(0,n.Wm)("div",{class:"tab-pane"},[i,M.map((function(e){return t.renderField(e)}))])}}}),view:(0,n.aZ)({name:"tabs-pane-view",props:{field:{type:d.ZQ,required:!0}},setup:function(e){var t=(0,d.qp)();return function(){var M=e.field.fields;return(0,n.Wm)("div",{class:"tab-pane"},[M.map((function(e){return t.renderField(e)}))])}}}),onDragOver:function(e){var t=e.currentTarget;e.stopPropagation(),e.preventDefault();var M=e.context,n=M.directionY,i=M.moveMarkEl,u=e.dragElement.contains(t);i(n,u?e.dragElement:e.target,u?e.dragElement.parentElement.closest(nM.DROPPABLE):t)},onDrop:function(e){var t,M=e.currentTarget;e.stopPropagation(),e.preventDefault();var n=e.context,i=n.getMarkEl(),u=null!==(t=e.dragElement.parentElement.closest(nM.SCOPE))&&void 0!==t?t:n.getRootScopeEl(),l=Array.prototype.indexOf.call(M.children,i),a=(0,d.$s)(M,lM.SCOPE),r=n.getPublicInstance();if(n.mode==uM.INSERT){var o=d.h.findFieldConf(n.fieldType);if(null!=o){var c=new d.ZQ(o);a.fields.splice(l,0,c),r.updateSchema(),r.chooseField(c)}return n.resetDragStatus()}if(n.mode==uM.SORT){var N=n.field;if(u==M){var s=a.fields.indexOf(N);n.moveField(s,l,a.fields)}else{var z=(0,d.$s)(u,lM.SCOPE),j=z.fields.indexOf(N);z.fields.splice(j,1),a.fields.splice(l,0,N)}return r.updateSchema(),r.chooseField(N),n.resetDragStatus()}n.resetDragStatus()}});var rM=d.a9._i,oM=d.a9.bo,cM=(0,n.aZ)({name:"xform-bs-tabs-setting",props:{field:{type:d.ZQ,required:!0}},setup:function(e,t){var M=t.emit;function i(){var t=e.field,M=new d.ZQ(aM);M.title="标签".concat(e.field.fields.length+1),t.fields.push(M)}function u(t){var M=e.field.fields;if(!(M.length<=1)){var n=M.indexOf(t);n>=0&&M.splice(n,1)}}function l(e,t){e.title=t.target.value}return function(){var t=e.field,a=t.fields.map((function(e){var M=t.fields.length<=1;return(0,n.Wm)("div",{class:"xform-bs-setting-option"},[(0,n.Wm)("input",{type:"text",class:"form-control form-control-sm",placeholder:"请输入标签名称",value:e.title,onInput:l.bind(null,e)},null),(0,n.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:u.bind(null,e),disabled:M},[(0,n.Uk)("删除")])])}));return(0,n.Wm)(n.HY,null,[(0,n.Wm)("h3",{class:"xform-setting-head"},[(0,n.Uk)("选项卡")]),(0,n.Wm)("section",{class:"xform-setting"},[(0,n.Wm)("div",{class:"xform-bs-tabs-setting-title"},[(0,n.Wm)("header",null,[(0,n.Uk)("标题:")]),(0,n.Wm)("div",{class:"custom-control custom-checkbox"},[(0,n.Wm)("input",{type:"checkbox",class:"custom-control-input",id:"".concat(t.name,"-show-title"),name:"".concat(t.name,"-show-title"),checked:t.attributes.showTitle,onInput:function(e){return g(M,e,"showTitle","attributes")}},null),(0,n.Wm)("label",{class:"custom-control-label",for:"".concat(t.name,"-show-title")},[(0,n.Uk)("显示标题")])])]),(0,n.Wm)("input",{value:t.title,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题...",onInput:l.bind(null,t)},null)]),(0,n.Wm)("div",{class:"xform-setting"},[(0,n.Wm)("header",null,[(0,n.Uk)("标签:")]),a,(0,n.Wm)("button",{type:"button",class:"btn btn-link btn-sm",onClick:i},[(0,n.Uk)("添加标签")])])])}}}),NM=(0,n.aZ)({name:"tabs",props:{field:{type:d.ZQ,required:!0}},setup:function(e){var t=(0,n.iH)(e.field.fields[0].name);function M(e,M){M.preventDefault(),t.value=e.name}return(0,n.YP)(e.field.fields,(function(e){e.every((function(e){return e.name!=t.value}))&&(t.value=e[e.length-1].name)})),function(){var i,u=(0,d.qp)(),l=e.field,a=l.fields.map((function(e){var i={"nav-link":!0,active:t.value==e.name};return(0,n.Wm)("a",{class:i,href:"javascript:;",onClick:M.bind(null,e)},[e.title])})),r=l.fields.map((function(e){return u.renderField(e,(function(M){var n=d.D5.C(M.class);return n[rM.DROPPABLE]=!0,n[rM.SCOPE]=!0,n.active=t.value==e.name,M.class=n,M[oM.SCOPE]=e,M[oM.XFIELD]=e,M}),!1)}));return(0,n.Wm)("div",{class:"xform-item xform-bs-tabs"},[(0,n.Wm)("div",{class:"nav nav-tabs"},[!0===l.attributes.showTitle&&(0,n.Wm)("strong",{class:"nav-tabs-title"},[l.title]),a]),(0,n.Wm)("div",{class:"tab-content"},(i=r,"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!(0,n.lA)(i)?r:{default:function(){return[r]}}))])}}}),sM={name:"bootstrap",version:"0.5.6",slots:{setting_form:s},fieldConfs:[Y,B,ue,ye,Qe,tt,zt,ht,MM,d.No.create({type:"tabs",title:"标签页",icon:"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogIDxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik03MC4xMzA5MzY2MyAyNDYuODc4NTYxOTd2NjYyLjgwMzU5NTA2aDg4My43MzgxMjY3NFYyNDYuODc4NTYxOTdINzAuMTMwOTM2NjN6IG04MzkuNTUxMjIwNCA2MTguNjE2Njg4NzNIMTE0LjMxNzg0Mjk3VjI5MS4wNjU0NjgzaDc5NS4zNjQzMTQwNnY1NzQuNDI5NzgyNHoiPjwvcGF0aD4KICA8cGF0aCBmaWxsPSIjMzMzIiBkPSJNNDMyLjQ2MzU2ODU5IDU2MC42MDU1OTY5OGMxNy42NzQ3NjI1My0xMy4yN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DQuNDE4NjkwNjMtMzUuMzQ5NTI1MDcgMTcuNjc0NzYyNTQtNDQuMTg2OTA2MzQgOC44MzczODEyNy0xMy4yNTYwNzE5IDI2LjUxMjE0MzgxLTE3LjY3NDc2MjUzIDM5Ljc2ODIxNTctMTcuNjc0NzYyNTMgMTcuNjc0NzYyNTMgMCAzMC45MzA4MzQ0MyA0LjQxODY5MDYzIDM5Ljc2ODIxNTcxIDE3LjY3NDc2MjUzIDguODM3MzgxMjcgMTMuMjU2MDcxOSAxMy4yNTYwNzE5IDI2LjUxMjE0MzgxIDEzLjI1NjA3MTg5IDQ4LjYwNTU5Njk3IDAgMjYuNTEyMTQzODEtNC40MTg2OTA2MyA0NC4xODY5MDYzNC0xMy4yNTYwNzE4OSA1Ny40NDI5NzgyNC04LjgzNzM4MTI3IDEzLjI1NjA3MTktMjIuMDkzNDUzMTcgMjIuMDkzNDUzMTctNDQuMTg2OTA2MzQgMjIuMDkzNDUzMTctMTMuMjU2MDcxOSAwLTI2LjUxMjE0MzgxLTQuNDE4NjkwNjMtMzkuNzY4MjE1Ny0xNy42NzQ3NjI1NHMtMTMuMjU2MDcxOS0yMi4wOTM0NTMxNy0xMy4yNTYwNzE5MS0zOS43NjgyMTU3MVY2MDAuMzczODEyNjh6TTcwLjEzMDkzNjYzIDExNC4zMTc4NDI5N2gzMDkuMzA4MzQ0MzV2NDQuMTg2OTA2MzNINzAuMTMwOTM2NjN6Ij48L3BhdGg+Cjwvc3ZnPg==",custom:!0,setting:cM,build:NM,view:NM,dependencies:[aM],onCreate:function(e,t,M){if(M){var n=new d.ZQ(aM);n.title="标签".concat(e.fields.length+1),e.fields.push(n)}}})]}},6699:function(e,t,M){"use strict";var n=M(2109),i=M(1318).includes,u=M(1223);n({target:"Array",proto:!0,forced:!M(9207)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),u("includes")},9653:function(e,t,M){"use strict";var n=M(9781),i=M(7854),u=M(4705),l=M(1320),a=M(6656),r=M(4326),o=M(9587),c=M(7593),N=M(7293),s=M(30),d=M(8006).f,z=M(1236).f,j=M(3070).f,D=M(3111).trim,I="Number",m=i.Number,g=m.prototype,T=r(s(g))==I,y=function(e){var t,M,n,i,u,l,a,r,o=c(e,!1);if("string"==typeof o&&o.length>2)if(43===(t=(o=D(o)).charCodeAt(0))||45===t){if(88===(M=o.charCodeAt(2))||120===M)return NaN}else if(48===t){switch(o.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+o}for(l=(u=o.slice(2)).length,a=0;ai)return NaN;return parseInt(u,n)}return+o};if(u(I,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var p,f=function(e){var t=arguments.length<1?0:e,M=this;return M instanceof f&&(T?N((function(){g.valueOf.call(M)})):r(M)!=I)?o(new m(y(t)),M,f):y(t)},A=n?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),x=0;A.length>x;x++)a(m,p=A[x])&&!a(f,p)&&j(f,p,z(m,p));f.prototype=g,g.constructor=f,l(i,I,f)}},2023:function(e,t,M){"use strict";var n=M(2109),i=M(3929),u=M(4488);n({target:"String",proto:!0,forced:!M(4964)("includes")},{includes:function(e){return!!~String(u(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})}}]); \ No newline at end of file diff --git a/docs/815.fd0a61f5.css b/docs/815.fd0a61f5.css deleted file mode 100644 index 93f0398..0000000 --- a/docs/815.fd0a61f5.css +++ /dev/null @@ -1 +0,0 @@ -.xform-bs-group-list{position:relative;min-height:200px}.xform-preview-group.xform-is-selected>.xform-preview-cover,.xform-preview-group:hover>.xform-preview-cover{background-color:#fdd58a}.xform-bs-group{flex-direction:column}.xform-bs-group .card{border-radius:0}.xform-bs-group.xform-is-collasped .card-header{border-bottom:0}.xform-bs-group.xform-is-collasped .xform-bs-group-list{display:none}.xform-bs-group .card-header{display:flex;flex-flow:row nowrap;padding-left:10px;padding-right:10px;font-size:14px;font-weight:700;align-items:center;margin-top:0}.xform-bs-group .card-header span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xform-bs-group-toggle{border:none;margin:0;background-color:transparent;padding:0;height:16px;line-height:16px;font-size:14px}.xform-bs-group .xform-bs-group-list{padding:10px}.xform-setting .custom-control{line-height:24px}.xform-bs-empty-tip{position:absolute;top:45%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:0;text-align:center;color:#9a9a9a;font-size:14px;font-weight:600}.xform-bs-setting-option{display:flex;flex-flow:row nowrap;align-items:center}.xform-bs-setting-option .form-control{width:auto;flex:1}.xform-bs-setting-option>button{font-size:14px}.xform-bs-setting-option+.xform-bs-setting-option{margin-top:5px}.xform-bs-tabs-setting-title{position:relative}.xform-bs-tabs-setting-title header{line-height:20px;margin-bottom:5px;font-weight:700}.xform-bs-tabs-setting-title .custom-checkbox{position:absolute;top:-2px;right:0}.xform-bs-number-setting-range strong{padding:0 10px}.xform-bs-is-empty{color:#6c757d}.xform-bs-select option{color:#495057}.xform-bs-select option.xform-bs-is-placeholer{color:#6c757d}.xform-bs-radio{padding:5px 0}.xform-bs-radio .custom-radio{line-height:24px}.xform-bs-checkbox{padding:5px 0}.xform-bs-checkbox .custom-checkbox{line-height:24px}.xform-divider{position:relative;height:32px;line-height:32px;padding:0 5px;text-align:center}.xform-divider.xform-item{display:block}.xform-divider.xform-divider-left{text-align:left}.xform-divider.xform-divider-right{text-align:right}.xform-divider-line{position:absolute;left:0;right:0;z-index:0}.xform-divider-line.xform-divider-type-solid{top:15px;border-top:1px solid #666}.xform-divider-line.xform-divider-type-dashed{top:15px;border-top:1px dashed #666}.xform-divider-line.xform-divider-type-double{box-sizing:border-box;top:14px;height:4px;border-top:1px solid #666;border-bottom:1px solid #666}.xform-divider-line.xform-divider-type-solid-dashed{box-sizing:border-box;top:14px;height:4px;border-top:1px solid #666;border-bottom:1px dashed #666}.xform-divider-line.xform-divider-type-dashed-solid{box-sizing:border-box;top:14px;height:4px;border-top:1px dashed #666;border-bottom:1px solid #666}.xform-divider-title{position:relative;z-index:1;padding:0 5px;font-size:18px;font-weight:600;background-color:#fff}.xform-el-divider-preview{padding:8px}.xform-el-divider-setting-types .el-radio-group{width:100%}.xform-el-divider-setting-type{display:flex;flex-flow:row nowrap;align-items:center}.xform-el-divider-setting-type .el-radio{margin-right:10px}.xform-el-divider-setting-type .el-radio__label{display:none}.xform-el-divider-setting-type .xform-divider{flex:1}.xform-el-divider-margin{display:flex;flex-flow:row nowrap;align-items:center}.xform-el-divider-margin label{margin-right:10px}.xform-el-divider-margin .el-slider{flex:1}.xform-divider-types .custom-control{display:flex;align-items:center}.xform-divider-types .custom-control-label{flex:1}.xform-divider-types .custom-control-label:after,.xform-divider-types .custom-control-label:before{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.xform-bs-divider-range{display:flex;flex-flow:row nowrap;margin-top:10px}.xform-bs-divider-range label{width:100px}.xform-bs-tabs{display:block}.xform-bs-tabs .tab-pane{padding:5px;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;border-bottom:1px solid #dee2e6;min-height:200px}.xform-bs-tabs .nav-tabs-title{padding:.5rem 10px}.xform-viewer .nav-tabs-title{padding-left:0}.xform-preview-tabs .nav-tabs .nav-link{position:relative;z-index:9}.xform-preview-tabs .tab-pane{position:relative;min-height:200px;padding:5px 0 0}.xform-preview-tabs .tab-pane .xform-preview:first-child{margin-top:0}.xform-preview-tabs.xform-is-selected>.xform-preview-cover,.xform-preview-tabs:hover>.xform-preview-cover{background-color:#fdd58a} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index c4cdda5..e56c271 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -xForm示例
\ No newline at end of file +xForm示例
\ No newline at end of file diff --git a/docs/main.57f78cb6.js b/docs/main.57f78cb6.js new file mode 100644 index 0000000..1f40206 --- /dev/null +++ b/docs/main.57f78cb6.js @@ -0,0 +1 @@ +(()=>{var e,t,n,r,o,i={534:(e,t,n)=>{"use strict";n.d(t,{ZQ:()=>se.Z,No:()=>le.N,a9:()=>r,Ew:()=>C,ZP:()=>ce,$s:()=>a.$s,C_:()=>c.C_,h:()=>i.ZP,qp:()=>k,i8:()=>ae});n(4747),n(6833);var r=n(3925);const o={writable:!0};Object.values(r.bo).forEach((e=>Object.defineProperty(HTMLElement.prototype,e,o)));var i=n(4140),s=n(5393),l=(n(9337),n(9877)),a=n(8961),c=n(9947);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:r();if(t==n){if(Array.prototype.indexOf.call(n.children,o)<0){const e=n.querySelector(l.Y0.IS_EMPTY_TIP);n.insertBefore(o,e)}return}const i=e==l.iu.UP?t:t.nextElementSibling;i==o||null!=i&&i.previousElementSibling==o||(null!=i?n.insertBefore(o,i):n.appendChild(o))}function u(){t.context.reset(t.instance),t.context=null,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",m)}function d(e,t,n){if(e<0||t<0||e==t)return;const r=t>e?t-1:t;if(e==r)return;const o=n.splice(e,1)[0];n.splice(r,0,o)}function p(e){if(0!==e.button)return;const n=e.target.closest(l.Y0.DRAGGABLE);null!=n&&(t.context=new l.QV(e,n),document.addEventListener("mousemove",h,{passive:!0}),document.addEventListener("mouseup",m))}function h(n){const r=t.context,i=t.instance;r.move(n,i);const s=(0,c.am)(i.refs,"ghost"),u=(0,c.am)(i.refs,"root"),d=(0,c.am)(i.refs,"mark"),p=(0,a.Kw)(n.clientX,n.clientY,l.Y0.DROPPABLE,u);if(null==p||0==p.length)return u.appendChild(d),void s.classList.add(l._i.GHOST_NOT_ALLOW);s.classList.remove(l._i.GHOST_NOT_ALLOW);const h=r.createDragOverEvent(p,n,f({},e));if(r.trigger(h),h.defaultPrevented)return;const m=(0,c.am)(i.refs,"list");o(r.directionY,p[0],m,d)}function m(r){const o=t.instance,s=t.context,p=(0,c.am)(o.refs,"mark"),h=function(e,t){if(!(e instanceof Element))return[];t=t instanceof Element?t:document.body;const n=[];let r=e.parentElement;for(;null!=r&&t.contains(r);)r.matches(l.Y0.DROPPABLE)&&n.push(r),r=r.parentElement;return n}(p,(0,c.am)(o.refs,"root")),m=s.createDropEvent(h,r,f({},e));if(s.trigger(m),m.defaultPrevented)return;const v=o.props.schema,g=(0,c.am)(o.refs,"list"),y=n(),b=s.isImmediateInsert?-1:Array.prototype.indexOf.call(g.children,p);if(b<0)return u();if(s.isInsert){const e=i.ZP.findFieldConf(s.fieldType);if(null!=e){const t=new l.ZQ(e);v.fields.splice(b,0,t),y.updateSchema(),y.chooseField(t)}return u()}if(s.isSort){var x,w;const e=null!==(x=s.dragElement.parentElement.closest(l.Y0.SCOPE))&&void 0!==x?x:g,t=null!==(w=p.closest(l.Y0.SCOPE))&&void 0!==w?w:g,n=s.field;if(e==t){const t=(0,a.$s)(e,l.bo.SCOPE);d(t.fields.indexOf(n),b,t.fields)}else{const r=(0,a.$s)(e,l.bo.SCOPE),o=(0,a.$s)(t,l.bo.SCOPE),i=r.fields.indexOf(n);r.fields.splice(i,1),o.fields.splice(b,0,n)}return y.updateSchema(),y.chooseField(n),u()}u()}(0,s.bv)((()=>{document.addEventListener("mousedown",p)})),(0,s.Ah)((()=>{document.removeEventListener("mousedown",p)}))}const h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAd4AAADABAMAAABYGx+vAAAAElBMVEX29vbr6+v////y8vLZ2dnk5OQZBXI3AAAMPklEQVR42u1dTXebOhAlkO6jEvaK87IXlbNva7N/tPD//8qTZiQhOWCEgCDyGNuJT3JyyPWdb4lRcvp/SXLgPfAeeA+8B94D74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WYmXqrvMfLdmAVWjNyM5k3zw3H1JsbCXEe4/mX2VPw8S6rYrWvtXlb2wMozTRomFw/e14f7nLv0MpQVjmbGG/2+JGPv1zqfc+2oDx35ouyefPc3CRLY0Z+YxgvqsZBdyOg559/ZCYUShNGwA+RjI/Faao8t+cDs2xWfqVDkuEX5wPLAdBks3nIpRyVW1qWawZALzEvN7UVWnXfJdicbDTOnCikqMi5fbjIML0T+AUHTdXNhFRihrnaMFp8k4cRzrvEaoTeCecfpSoimSnBFA4jkJUS3+Shrsx56Y5vz+6MM5/Crwv5lCZwLXm17Q5fyJ0DCZBdps/4momXqsa7vqGQgh6VznT8zxX77IWO3Xv0TuNXHhWjD9igEq916Q0eH07JUaPb757slk7SZ8Uw+OhvFwttNCfkmNPq5p4nooOwep1oTOcBmROQRg9dnISXWt2OiM4/Ylgk6ETy7lGT0/hF0z1FxG8Gp1sZuMvy6zD9uP35ZRKrVmQIRMzwuxzeFI/0EvqcbX3ApHMmH4TctfgVgAXerYXZ3CYr8asRR4C3o1adpTnKr2/922fCLAaxjsG1+J1fD9Ke38YgqvRjnvxOyyddieioY4ff1c7/jYhfY79j53fPwBvRSdZs7BxcLeed8zv1fPbzn53r80R5noH3dY+A03C8168GdwTv89P/C+/jZX94TzPwvlTsa9E7gvfU/P1a9I7hfbvui+CHP/Pwnsie0GbF9TITryib5D5FuO10B9+rdDZe4bWuTXXZw/fq7+idgBEf3rWKHHgPvAfeA++B98B74D3wHngPvAdef/kPur4HCyP/8nEAAAAASUVORK5CYII=";var m=n(7998);const v=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i,g=/]*)?>[\s\S]*<\/svg>/,y={REMOVE:"remove",UPDATE_SCHEMA:"update:schema"};function b(e){const t="function"==typeof e.icon?e.icon(e):e.icon;return(0,s.lA)(t)?t:v.test(t)?(0,s.Wm)("img",{src:t,class:"xform-icon xform-icon-is-img"},null):g.test(t)?(0,s.h)("i",{innerHTML:t,className:"xform-icon xform-icon-is-svg"}):(0,s.Wm)("i",{class:t},null)}function x(e){return e.map(((e,t)=>{const n=e.title?(0,s.Wm)("h3",null,[e.title]):null,r=e.fieldConfs.filter((e=>null!=e)).map((e=>{const t={class:"".concat(l._i.FIELD," xform-template-").concat(e.type," ").concat(l._i.DRAGGABLE),key:e.type,[l.bo.XFIELD_TYPE]:e.type,[l.bo.DRAG_MODE]:l.WF.INSERT};return(0,s.Wm)("div",t,[(0,s.Wm)("strong",null,[e.title]),b(e)])}));return(0,s.Wm)("div",{key:t,class:"xform-designer-field-group"},[n,(0,s.Wm)("div",{class:"xform-designer-field-list"},[r])])}))}function w(e,t,n){const r=function(e,t,n){const r=e.$slots,o=r["preview_name_".concat(t.name)];if((0,m.mf)(o))return o({field:t});const i=r["preview_type_".concat(t.type)];if((0,m.mf)(i))return i({field:t});const a=e.mode,u=(0,c.dK)(t,l.Nz.PREVIEW,a)||(0,c.dK)(t,l.Nz.BUILD,a);if(null==u)return null;const f=(0,c.$I)(u,{field:t,behavior:l.KV.DESIGNER});return(0,s.Wm)(u,(0,m.mf)(n)?n(f):f)}(e,t,n),o=(0,s.up)("xform-item"),i={field:t,validation:!1};return(0,s.h)(o,i,(function(){return null==r?(console.warn("field[".concat(t.title,": ").concat(t.name,"] not implement preview component")),(0,s.Wm)("p",{class:"xform-is-unknown"},[(0,s.Uk)("暂不支持的字段类型")])):r}))}function E(e,t,n){var r,o,i;let a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const c=e.selectedField,u=e.icon,f=e.clone,d=e.remove,p=e.chooseField,h=[];!1!==t.allowClone&&h.push((0,s.Wm)("button",{type:"button",title:"复制",onClick:f.bind(null,t),innerHTML:u.clone},null)),!1!==t.allowRemove&&h.push((0,s.Wm)("button",{type:"button",title:"删除",onClick:d.bind(null,t),innerHTML:u.remove},null));const m=h.length>0?(0,s.Wm)("div",{class:"xform-preview-operate"},[h]):null,v=w(e,t,n);if(!1===a)return v;const g={class:{"xform-preview":!0,"xform-draggable":!0,"xform-droppable":!0,["xform-preview-"+t.type]:!0,"xform-is-selected":t==c,[l._i.SCOPE]:null!==(r=null===(o=t.conf)||void 0===o?void 0:o.scoped)&&void 0!==r&&r},key:t.name,[l.bo.XFIELD]:t,[l.bo.SCOPE]:!0===(null===(i=t.conf)||void 0===i?void 0:i.scoped)?t:void 0};return(0,s.Wm)("div",g,[v,m,(0,s.Wm)("div",{class:"xform-preview-cover",onClick:p.bind(null,t)},null)])}function S(e,t){const n=0==t.length?(0,s.Wm)("div",{class:[l._i.IS_EMPTY_TIP,"xform-preview-empty-tip"]},[(0,s.Wm)("img",{src:h},null),(0,s.Wm)("p",null,[(0,s.Uk)("请将左侧控件拖动到此处")])]):t.map((t=>E(e,t))),r={ref:"list",class:["xform-designer-list",l._i.DROPPABLE],[l.bo.SCOPE]:e.schema};return(0,s.Wm)("div",{class:"xform-designer-responsive xform-is-pc xform-is-scroll",ref:"scroll"},[(0,s.Wm)("div",r,[n])])}function O(e,t,n){if(null==e||null==e.conf)return(0,s.Wm)("p",{class:"xform-setting-tip"},[(0,s.Uk)("点击字段设置属性")]);const r={field:e,key:e.name},o=t["setting_name_".concat(e.name)];if((0,m.mf)(o))return o(r);const i=t["setting_type_".concat(e.type)];if((0,m.mf)(i))return i(r);const a=(0,c.dK)(e,l.Nz.SETTING,n.mode);return null==a?(console.warn("[xform] field not implement setting component: ".concat(e.title,"(").concat(e.name,")")),null):(r["onUpdate:field"]=function(t){const r=t.prop,o=t.value,i=t.scope;let s=e;null!=i&&(null==s[i]&&(s[i]={}),s=s[i]),s[r]=o,n.updateSchema()},(0,s.Wm)(a,r))}function _(e,t,n){const r=n.selectedField,o=n.selectedTab,l=n.chooseTab,a=function(e,t,n){var r;if((0,m.mf)(e.setting_form))return e.setting_form({schema:t});const o=i.ZP.getPreset();return null!=o&&null!==(r=o.slots)&&void 0!==r&&r.setting_form?(0,s.h)(o.slots.setting_form,{schema:t,"onUpdate:prop":function(e){const r=e.prop,o=e.value;t[r]=o,n.updateSchema(t)}}):null}(e,t,n);if(null==a)return(0,s.Wm)("div",{class:"xform-designer-setting-field xform-is-scroll"},[O(r,e,n)]);const c="field"==o?O(r,e,n):a;return[(0,s.Wm)("ul",{class:"xform-tabs"},[(0,s.Wm)("li",{class:{"xform-is-active":"field"==o},onClick:l.bind(null,"field")},[(0,s.Uk)("字段")]),(0,s.Wm)("li",{class:{"xform-is-active":"form"==o},onClick:l.bind(null,"form")},[(0,s.Uk)("表单")])]),(0,s.Wm)("div",{class:"xform-tabs-main xform-is-scroll"},[(0,s.Wm)("div",{class:"xform-tabs-content"},[c])])]}const A=(0,s.aZ)({name:"xform-designer",props:{mode:{type:String,required:!1,default:null},schema:{type:Object,required:!0}},emits:Object.values(y),setup(e,t){let n=t.emit;const r=(0,s.FN)(),o=(0,s.iH)(null),u=(0,s.iH)("form"),f=(0,s.Fl)((()=>i.ZP.findFieldGroups(e.mode))),d=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.schema;n(y.UPDATE_SCHEMA,t)},h=function(e){u.value=e},v=function(e){o.value=e,null!=e&&(h("field"),function(e){(0,s.Y3)((()=>{const t=(0,c.am)(e.refs,"scroll"),n=(0,c.am)(e.refs,"list").querySelector(l.Y0.IS_SELECTED);null!=n&&(0,a.xj)(n,t)&&(t.scrollTop=n.offsetTop)}))}(r))};return p(),(0,s.JJ)(l.Xu,(0,s.Vh)(e,"schema")),(0,s.JJ)(l.d1,{type:"designer",renderField:E.bind(null,r.proxy)}),{clone:function(t,n){var r;if(!1===t.allowClone)return;const o=n.target.closest(l.Y0.PREVIEW),i=null!==(r=(0,a.be)(o))&&void 0!==r?r:e.schema,s=t.clone();i.fields.splice(i.fields.indexOf(t)+1,0,s),d(e.schema),v(s)},chooseField:v,chooseTab:h,doScroll:function(e){const t=(0,a.fN)(e).pixelY;r.refs.scroll.scrollTop+=t},groups:f,icon:{clone:'\n \n',remove:'\n \n'},remove:function(t,o){var i,u;if(!1===t.allowRemove)return;const f=(0,c.pF)(y.REMOVE),p=null===(i=r.vnode)||void 0===i||null===(u=i.props)||void 0===u?void 0:u[f],h=function(){var n;const i=o.target.closest(l.Y0.PREVIEW),c=null!==(n=(0,a.be)(i))&&void 0!==n?n:e.schema;c.fields.splice(c.fields.indexOf(t),1),v(null),d(e.schema),(0,s.Y3)((()=>{var e;const n=null===(e=t.conf)||void 0===e?void 0:e.onRemoved;(0,m.mf)(n)&&n(t,c,r)}))};(0,m.mf)(p)?n(y.REMOVE,{field:t,defaultAction:h}):h()},reset:function(){n(y.UPDATE_SCHEMA,{})},selectedField:o,selectedTab:u,updateSchema:d}},render(e){const t=e.$slots,n=e.schema,r=e.groups,o=Array.isArray(n.fields)?n.fields:[];return(0,s.Wm)("div",{class:"xform-designer",ref:"root"},[(0,s.Wm)("div",{class:"xform-designer-panel"},[x(r)]),(0,s.Wm)("div",{class:"xform-designer-main"},[(0,m.mf)(t.tool)&&t.tool(),(0,s.Wm)("div",{class:"xform-designer-board"},[S(e,o)])]),(0,s.Wm)("div",{class:"xform-designer-setting"},[_(t,n,e)]),(0,s.Wm)("div",{ref:"ghost",key:"xform-designer-ghost",class:"xform-designer-ghost",onWheel:e.doScroll},[(0,s.Wm)("div",{class:"xform-designer-ghost-template",ref:"template"},null),(0,s.Wm)("div",{class:"xform-designer-cover"},null)]),(0,s.Wm)("div",{ref:"mark",key:"xform-designer-mark",class:"xform-designer-mark"},null)])}});n(8674),n(1038),n(1817),n(6992),n(3948);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(){return(0,s.f3)(l.d1)}function C(e){const t=function(e){for(var t=1;t0&&(t.fields=t.fields.map(l.ZQ.create)),t}function R(){i.ZP.getConfig().validation.enable=!0}n(6699),n(2023),n(1532),n(5827),n(189);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=F(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function F(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.has(e.name))),r=e instanceof l.ZQ?[]:function(){const n=(0,c.YD)(e),r=[];var o,i=L(t);try{for(i.s();!(o=i.n()).done;){const e=T(o.value,2),t=e[1].fieldRef.value;n.indexOf(t)<0&&r.push(t)}}catch(e){i.e(e)}finally{i.f()}return r}();return n.concat(r)}function W(e){return[l.nS.DEFAULT,l.nS.SLEF].includes(e)}function D(e,t){return!0===e.required&&(0,m.Ft)(t[e.name])?Promise.reject("必填"):Promise.resolve()}function M(e){return!0===e.canceled}function V(){const e=new Map;function t(t,r,o){t.validation.validating=!0;const s=function(e,t,n){const r=null==e?void 0:e.validator,o=t.validationRef,s=i.ZP.isEnableValidate()&&!1!==o.value&&!1!==r;let a=null,c=l.nS.DEFAULT;var u;return null!=(u=r)&&"mode"in u?(W(r.mode)&&(c=r.mode),a=r.validator):(0,m.mf)(r)&&(a=r),(0,m.mf)(o.value)&&(a=o.value),null!=n&&W(n.mode)&&(c=n.mode),{enable:s,validator:a,mode:c}}(t.conf,e.get(t.name),o);return s.enable?s.mode==l.nS.SLEF?function(e,t,n){return(0,m.mf)(n.validator)?n.validator(e,t):e.hasSubField?e.fields.some((e=>e.validation.valid===l.th.ERROR))?Promise.reject():Promise.resolve():D(e,t)}(t,r,s):t.hasSubField?n(t,r).then((e=>(0,m.mf)(s.validator)?(0,m.Mq)(s.validator(t,r)):e.some((e=>"rejected"===e.status))?Promise.reject():Promise.resolve())):(0,m.mf)(s.validator)?(0,m.Mq)(s.validator(t,r)):D(t,r):Promise.resolve()}function n(t,n){const o=N(t,e).map((e=>r(e,n)));return Promise.allSettled(o)}function r(n,r,o){if(n.validation.validating||!i.ZP.isEnableValidate())return Promise.resolve();const s=t(n,r,o),a=e.get(n.name);return a.queue.add(s),s.then((e=>{if(a.queue.delete(s),M(s))return;const t=(0,m.kW)(e);return n.validation.message=t,n.validation.valid=l.th.SUCCESS,n.validation.validating=!1,t})).catch((e=>{if(a.queue.delete(s),M(s))return;const t=(0,m.kW)(e);return n.validation.message=t,n.validation.valid=l.th.ERROR,n.validation.validating=!1,Promise.reject(t)}))}function o(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return N(t,e).reduce(((e,t)=>{const r=o(t,n),i={valid:t.validation.valid!==l.th.ERROR,message:t.validation.message,name:t.name,title:t.title,type:t.type};return e.push(i),n?e.concat(r):(i.fields=r,e)}),[])}return{extractValidResult:o,getRegisteredFields:function(){return Array.from(e.values()).map((e=>e.fieldRef.value)).filter((e=>null!=e))},registerField:function(t,n){n.queue instanceof Set||(n.queue=new Set),e.set(t,n)},removeField:function(t){const n=e.get(t);return null!=n&&e.delete(t),n},resetFieldValidation:function(t){t.validation.valid=l.th.NONE,t.validation.validating=!1,t.validation.message=null;const n=e.get(t.name);if((null==n?void 0:n.queue)instanceof Set){var r,o=L(n.queue);try{for(o.s();!(r=o.n()).done;){r.value.canceled=!0}}catch(e){o.e(e)}finally{o.f()}}},validateField:r,validateFieldByName:function(t,n,o){var i;const s=e.get(t),l=null==s||null===(i=s.fieldRef)||void 0===i?void 0:i.value;return(0,m.Ft)(l)?Promise.resolve():r(l,n,o)},validateSchema:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n(e,t).then((t=>({result:o(e,r),valid:t.every((e=>"fulfilled"==e.status))})))}}}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.model[r]),(()=>{i.ZP.isImmediateValidate()&&!o.value&&(0,m.KQ)(a.validateField(t.value,e.model))})),u=()=>{o.value||(0,m.KQ)(a.validateField(t.value,e.model,{mode:l.nS.SLEF}))};t.value&&(0,m.qt)(t.value.fields)&&t.value.fields.forEach((e=>e.on(l.ZQ.EVENT_VALID_CHANGE,u))),a.registerField(r,{fieldRef:t,validationRef:n,stopHandle:c,eventHandle:u})}function u(e){const t=a.removeField(e);if(null!=t){const e=t.fieldRef.value;t.stopHandle(),(0,m.qt)(e.fields)&&(null==e||e.fields.forEach((e=>e.off(l.ZQ.EVENT_VALID_CHANGE,t.eventHandle))))}}function f(t){const r=e.model,o=t.value;r[t.name]=o,n(X,r),n(G,t)}function d(){var e,t=z(a.getRegisteredFields());try{for(t.s();!(e=t.n()).done;){const t=e.value;a.resetFieldValidation(t)}}catch(e){t.e(e)}finally{t.f()}}return(0,s.JJ)(l.hx,(0,s.Vh)(e,"model")),(0,s.JJ)(l.Xu,(0,s.Vh)(e,"schema")),(0,s.JJ)(l.d1,{type:"builder",registerField:c,removeField:u,updateFieldValue:f,renderField:J.bind(null,r.proxy)}),{validate(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return o.value?Promise.reject("[xform error]: validate pending..."):(o.value=!0,a.validateSchema(e.schema,e.model,t).then((e=>(o.value=!1,e))))},validateField(){for(var t=arguments.length,n=new Array(t),r=0;r{t.preventDefault(),e.$emit(Y,e.validate,n)},i.onReset=t=>{t.preventDefault(),e.reset()});const a=(0,s.Wm)("div",{class:"xform-builder-main"},[(0,m.mf)(t.header)&&t.header(),r.fields.map((t=>J(e,t))),(0,m.mf)(t.default)&&t.default(),(0,m.mf)(t.footer)&&t.footer()]);return(0,s.h)(o,i,a)}});function K(e,t,n){const r=i.ZP.getConfig().formatter(t,e.$props,e),o=function(e,t,n,r){const o=e.$slots,i=o["name_".concat(t.name)];if((0,m.mf)(i))return i({field:t,value:n});const a=o["type_".concat(t.type)];if((0,m.mf)(a))return a({field:t,value:n});const u=(0,c.dK)(t,l.Nz.VIEW,e.mode);if(null==u)return null;const f=(0,c.$I)(u,{field:t,value:n,model:e.model});return(0,s.Wm)(u,(0,m.mf)(r)?r(f):f)}(e,t,r,n),a=(0,s.up)("xform-item"),u={key:t.name,field:t,validation:!1};return(0,s.h)(a,u,(function(){return null!=o?o:r}))}const Z=(0,s.aZ)({name:"xform-viewer",props:{schema:{type:Object,required:!0},model:{type:Object,required:!0},mode:{type:String,default:null}},setup(e){const t=(0,s.FN)();return(0,s.JJ)(l.Xu,(0,s.Vh)(e,"schema")),(0,s.JJ)(l.d1,{type:"viewer",renderField:K.bind(null,t.proxy)}),{}},render(e){const t=e.schema,n=e.$slots;return(0,s.Wm)("div",{class:"xform-viewer"},[(0,s.Wm)("div",{class:"xform-viewer-main"},["function"==typeof n.header&&n.header(),t.fields.map((t=>K(e,t))),"function"==typeof n.default&&n.default(),"function"==typeof n.footer&&n.footer()])])}});function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;te.field));const n=(0,s.qj)(new l.ZQ);return(0,s.Fl)((()=>{var r,o;return r=n,o=ee(ee({},e),t),r.type=o.type,r.name=o.name,r.title=o.title,r.required="required"in o&&!1!==o.required,n}))}(e,r),c=(0,s.f3)(l.hx,null);return ne(i)&&(i.registerField(a,(0,s.Vh)(e,"validation")),(0,s.Jd)((()=>{i.removeField(a.value.name)}))),function(){var e,t;const r=a.value;if(!0===(null==r||null===(e=r.conf)||void 0===e?void 0:e.custom))return(0,m.mf)(n.default)?n.default():null;const u=null!==(t=o.value.labelPosition)&&void 0!==t?t:l.b3.LEFT,f=o.value.labelSuffix,d={"xform-item":!0,["xform-is-".concat(u)]:!0,"xform-is-required":r.required,[l._i.IS_ERROR]:r.validation.valid==l.th.ERROR};return(0,s.Wm)("div",{class:d},[(0,s.Wm)("label",{class:"xform-item-label",for:r.name},[(0,s.Wm)("span",{class:"xform-item-title"},[r.title]),(p=f,p?(0,s.Wm)("span",null,[p]):null)]),(0,s.Wm)("div",{class:"xform-item-content"},[oe(n,r,c,i),re(r)])]);var p}}});var se=n(9794),le=n(4026);const ae="0.5.6",ce={install:function(e,t){null!=t&&i.ZP.use(t),e.component(A.name,A),e.component($.name,$),e.component(Z.name,Z),e.component(ie.name,ie)},store:i.ZP,version:ae}},9794:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});n(4747),n(5827);var r=n(5393),o=n(7998),i=n(4140),s=n(3925),l=n(4026);n(1532),n(6992),n(3948),n(189),n(1038),n(1817);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n!1!==e.allowClone));t.forEach(f),e.fields=t}}class d{constructor(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=n instanceof l.N?n.toParams():n,c=new u;this.type=a.type,this.name=null!==(e=a.name)&&void 0!==e?e:(0,i.iE)().genName(n),this.title=a.title,this.placeholder=a.placeholder,this.required=!0===a.required,this.options=Array.isArray(a.options)?a.options:void 0,this.attributes=null!==(t=a.attributes)&&void 0!==t?t:{},this.fields=Array.isArray(a.fields)?a.fields.map(d.create):[],this.allowRemove=a.allowRemove,this.allowClone=a.allowClone,this.validation=function(e,t){let n=s.th.NONE;return{get valid(){return n},set valid(o){o!=s.th.NONE&&o!=n&&(0,r.Y3)((()=>e.trigger(t))),n=o},validating:!1,message:null}}(c,d.EVENT_VALID_CHANGE),Object.defineProperty(this,"storage",{value:(0,r.Xl)({valid:s.th.NONE,rawData:a,excludeProps:["validation"],emitter:c})});const f=this.conf;f&&(0,o.mf)(f.onCreate)&&f.onCreate(this,a,n instanceof l.N)}get conf(){return(0,i.gq)(this.type)}get rawData(){return this.storage.rawData}get hasSubField(){return Array.isArray(this.fields)&&this.fields.length>0}static create(e){return e instanceof d?e:new d(e)}clone(){const e=JSON.parse(JSON.stringify(this));return f(e),new d(e)}toJSON(){const e=this,t=this.storage.excludeProps;return Object.keys(e).filter((e=>t.indexOf(e)<0)).reduce(((t,n)=>(t[n]=e[n],t)),{})}on(e,t){return this.storage.emitter.on(e,t),this}off(e,t){return this.storage.emitter.off(e,t),this}}d.EVENT_VALID_CHANGE="valid:change"},4026:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,N:()=>l});var r=n(5393),o=n(7998),i=n(3925);i.RJ.DRAGOVER,i.RJ.DROP;class s{constructor(e){this.factory=(0,o.mf)(e.factory)?e.factory:null,this.extension=(0,o.PO)(e.extension)?e.extension:{}}}class l extends class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.onCreate=(0,o.mf)(e.onCreate)?e.onCreate:null,this.onRemoved=(0,o.mf)(e.onRemoved)?e.onRemoved:null,this[i.RJ.DRAGOVER]=(0,o.mf)(e[i.RJ.DRAGOVER])?e[i.RJ.DRAGOVER]:null,this[i.RJ.DROP]=(0,o.mf)(e[i.RJ.DROP])?e[i.RJ.DROP]:null}}{constructor(e){super(e),this.type=e.type,this.title=e.title,this.icon=e.icon,this.alias=e.alias instanceof l?e.alias:null,this.scoped=!0===e.scoped,this.custom=!0===e.custom,this.validator=e.validator,this.setting=(0,o.Ft)(e.setting)?null:(0,r.Xl)(e.setting),this.preview=(0,o.Ft)(e.preview)?null:(0,r.Xl)(e.preview),this.build=(0,o.Ft)(e.build)?null:(0,r.Xl)(e.build),this.view=(0,o.Ft)(e.view)?null:(0,r.Xl)(e.view),this.dependencies=(0,o.qo)(e.dependencies)}get available(){return null!=this.type}toParams(){return{type:this.type,title:this.title}}static create(e){return new Proxy(new l(e),{get(e,t,n){const r=Reflect.get(e,t,n);return null==r&&e.alias instanceof l?Reflect.get(e.alias,t,e.alias):r}})}static createFieldComponent(e){return new s(e)}}},3925:(e,t,n)=>{"use strict";n.d(t,{d1:()=>r,Xu:()=>o,hx:()=>i,_i:()=>s,Y0:()=>l,bo:()=>a,b3:()=>c,WF:()=>u,iu:()=>f,th:()=>d,nS:()=>p,Nz:()=>h,SG:()=>m,RJ:()=>v,KV:()=>g});n(1817);const r=Symbol.for("@@xform.builder.context.provide@@"),o=Symbol.for("@@xform.schema.provide@@"),i=Symbol.for("@@xform.model.provide@@"),s={GHOST_NOT_ALLOW:"xform-is-not-allowed",IS_DRAGGING:"xform-is-dragging",IS_SELECTED:"xform-is-selected",IS_SHOW:"xform-is-show",LIST_SILENCE:"xform-is-silence",SCOPE:"xform-is-scope",DRAGGABLE:"xform-draggable",DROPPABLE:"xform-droppable",PREVIEW:"xform-preview",FIELD:"xform-designer-field",IS_EMPTY_TIP:"xform-is-empty-tip",IS_ERROR:"xform-is-error"},l={DRAGGABLE:".".concat(s.DRAGGABLE),DROPPABLE:".".concat(s.DROPPABLE),FIELD:".".concat(s.FIELD),IS_SELECTED:".".concat(s.IS_SELECTED),PREVIEW:".".concat(s.PREVIEW),SCOPE:".".concat(s.SCOPE),IS_EMPTY_TIP:".".concat(s.IS_EMPTY_TIP)},a={XFIELD:"xform_prop:field",SCHEMA:"xform_prop:schema",SCOPE:"xform_prop:scope",XFIELD_TYPE:"xform_prop:xfield_type",DRAG_MODE:"xform_prop:drag_mode"};var c,u,f,d,p,h,m,v,g;!function(e){e.TOP="top",e.BOTTOM="bottom",e.LEFT="left"}(c||(c={})),function(e){e.INSERT="insert",e.SORT="sort"}(u||(u={})),function(e){e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=4]="LEFT",e[e.RIGHT=8]="RIGHT"}(f||(f={})),function(e){e.SUCCESS="success",e.ERROR="error",e.NONE="none"}(d||(d={})),function(e){e[e.DEFAULT=1]="DEFAULT",e[e.SLEF=2]="SLEF"}(p||(p={})),function(e){e.SETTING="setting",e.PREVIEW="preview",e.BUILD="build",e.VIEW="view"}(h||(h={})),function(e){e.DRAGOVER="dragover",e.DROP="drop"}(m||(m={})),function(e){e.DRAGOVER="onDragOver",e.DROP="onDrop"}(v||(v={})),function(e){e.DESIGNER="designer",e.BUILDER="builder"}(g||(g={}))},9877:(e,t,n)=>{"use strict";n.d(t,{_i:()=>r._i,KV:()=>r.KV,Nz:()=>r.Nz,iu:()=>r.iu,WF:()=>r.WF,b3:()=>r.b3,nS:()=>r.nS,th:()=>r.th,CF:()=>d.C,QV:()=>u,bo:()=>r.bo,Y0:()=>r.Y0,d1:()=>r.d1,Xu:()=>r.Xu,hx:()=>r.hx,ZQ:()=>f.Z,No:()=>d.N});n(5306),n(1038),n(1817),n(6992),n(3948);var r=n(3925),o=n(9947),i=n(8961),s=n(7998);function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n').concat(null!==(t=null==o?void 0:o.title)&&void 0!==t?t:"未知字段",""):(o?i.outerHTML.replace(/(.*)<\/strong>/,"".concat(o.title,"")):i.outerHTML).replace(/class="([^"]*)"/,'class="'.concat(r._i.FIELD," xform-template-").concat(n,'"'))}}var f=n(9794),d=n(4026)},4140:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g,gq:()=>m,iE:()=>v});n(1532),n(6992),n(3948),n(9601),n(4747),n(1038),n(1817);var r=n(9877),o=n(7998);n(9714);const i={modes:null,validation:{enable:!0,immediate:!0},genName(){const e=Date.now().toString(36),t=Math.random().toString(36).slice(-4);return"field_".concat(e,"_").concat(t)},formatter(e,t){var n;const r=t.model[e.name];return(0,o.Ft)(r)||(0,o.xb)(r)?null!==(n=t.schema.viewerPlaceholder)&&void 0!==n?n:"":Array.isArray(r)?r.join(","):r}};function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?e.slice(0,t):e,r=a.fields.get(n);return(0,o.Ft)(r)||t<0?r:r.dependencies.find((t=>t.type==e))}function v(){return a.config}const g={findFieldConf:m,findFieldGroups:function(e){const t=function(e){if(null==e||null==a.config.modes)return Array.from(a.fields.keys());const t=a.config.modes[e];return Array.isArray(t)?t.filter((e=>null!=e)):[]}(e);if(0==t.length)return[];const n="object"!=typeof t[0]?[{types:t}]:t;var r,o=s(n);try{for(o.s();!(r=o.n()).done;){const e=r.value;e.fieldConfs=e.types.map(m).filter((e=>e&&e.available))}}catch(e){o.e(e)}finally{o.f()}return n},getConfig:v,getPreset:function(){return a.preset},hasField:function(e){return a.fields.has(e)},isEnableValidate:function(){return!0===a.config.validation.enable},isImmediateValidate:function(){return!1!==a.config.validation.immediate},registerField:h,registerManyField:function(){for(var e=arguments.length,t=new Array(e),n=0;ne instanceof r.No&&h(e)))},reset:function(e){d(),p(),null!=e&&f(e)},resetConfig:p,resetField:function(){a.fields.clear()},resetPreset:d,use:f,useConfig:c,usePreset:u}},9947:(e,t,n)=>{"use strict";n.d(t,{dK:()=>i,am:()=>s,$I:()=>l,pF:()=>a,C_:()=>c,YD:()=>u});n(5827),n(3123);var r=n(9877),o=n(7998);function i(e,t,n){var i;const s=null===(i=e.conf)||void 0===i?void 0:i[t];return s instanceof r.CF?(0,o.mf)(s.factory)?s.factory(e,n):s.extension["".concat(n,"_").concat(e.name)]||s.extension[n]:s}function s(e,t){return function(e,t){return e[t]}(e,t)}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.props,o=e.emits;let i=[];return null!=r&&(i=i.concat(Object.keys(r))),Array.isArray(o)&&(i=i.concat(o.map(a))),i.reduce(((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e}),n)}function a(e){return"on"+e[0].toUpperCase()+e.slice(1)}function c(e){return(0,o.Kn)(e)?e:((0,o.HD)(e)&&(e=e.split(" ").filter((e=>e))),Array.isArray(e)?e.reduce(((e,t)=>(e[t]=!0,e)),{}):{})}function u(e){return e.fields.reduce(((e,t)=>{if(e.push(t),Array.isArray(t.fields)&&t.fields.length>0){const n=u(t);return e.concat(n)}return e}),[])}},8961:(e,t,n)=>{"use strict";n.d(t,{xj:()=>i,Kw:()=>s,fN:()=>l,$s:()=>a,be:()=>c});n(1038),n(1817),n(6992),n(3948);var r=n(9877),o=n(7998);function i(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.bottomr.bottom}function s(e,t,n,r){const i=document.elementsFromPoint||document.msElementsFromPoint;if("function"!=typeof i)return null;return i.call(document,e,t).filter((e=>!(null!=r&&!r.contains(e))&&((0,o.HD)(n)?e.matches(n):!!Array.isArray(n)&&n.some((t=>e.matches(t))))))}function l(e){const t=e.deltaX,n=e.deltaY,r=0==e.deltaMode?1:1==e.deltaMode?40:800;return{pixelX:t*r,pixelY:n*r}}function a(e,t){return e[t]}function c(e){const t=e.closest(r.Y0.SCOPE);return null==t||t==e?null:a(t,r.bo.SCOPE)}},7998:(e,t,n)=>{"use strict";n.d(t,{HD:()=>i,xb:()=>s,Ft:()=>l,Kn:()=>a,mf:()=>c,PO:()=>u,hU:()=>f,GS:()=>p,qo:()=>h,qt:()=>m,Mq:()=>v,$H:()=>g,KQ:()=>y,kW:()=>b});n(3210),n(8674),n(5827),n(9714);const r=Object.prototype.toString;function o(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r.call(e)}function i(e){return"string"==typeof e}function s(e){return i(e)&&0==e.trim().length}function l(e){return null==e}function a(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function c(e){return"function"==typeof e}function u(e){if(null==e||"object"!=typeof e||"[object Object]"!=o(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(f);const t={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];t[n]=null==r||"object"!=typeof e?r:f(r)}return t}function d(e,t){for(const n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||null==t[n])continue;const r=t[n];if("object"!=typeof r||Array.isArray(r)){e[n]=r;continue}const o=e[n];e[n]=d(a(o)?o:{},r)}return e}function p(){if(arguments.length<2)return arguments.length<=0?void 0:arguments[0];let e=arguments.length<=0?void 0:arguments[0];for(let t=1;t0}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"need a Promise instance";return e instanceof Promise?e:Promise.reject(t)}function g(e){return Array.isArray(e)?e.reduce(((e,t)=>e.concat(t)),[]):[]}function y(e){if(e instanceof Promise)e.catch((e=>!1));else if(c(e))try{return y(e())}catch(e){return}}function b(e){return null==e?null:e instanceof Error?e.message:i(e)?e:u(e)&&"message"in e?e.message:c(e.toString)?e.toString():null}},672:e=>{e.exports={website:{base:"/xForm/"}}},3099:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:(e,t,n)=>{var r=n(111);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:(e,t,n)=>{var r=n(5112),o=n(30),i=n(3070),s=r("unscopables"),l=Array.prototype;null==l[s]&&i.f(l,s,{configurable:!0,value:o(null)}),e.exports=function(e){l[s][e]=!0}},1530:(e,t,n)=>{"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},9670:(e,t,n)=>{var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},8533:(e,t,n)=>{"use strict";var r=n(2092).forEach,o=n(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:(e,t,n)=>{"use strict";var r=n(9974),o=n(7908),i=n(3411),s=n(7659),l=n(7466),a=n(6135),c=n(1246);e.exports=function(e){var t,n,u,f,d,p,h=o(e),m="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,y=void 0!==g,b=c(h),x=0;if(y&&(g=r(g,v>2?arguments[2]:void 0,2)),null==b||m==Array&&s(b))for(n=new m(t=l(h.length));t>x;x++)p=y?g(h[x],x):h[x],a(n,x,p);else for(d=(f=b.call(h)).next,n=new m;!(u=d.call(f)).done;x++)p=y?i(f,g,[u.value,x],!0):u.value,a(n,x,p);return n.length=x,n}},1318:(e,t,n)=>{var r=n(5656),o=n(7466),i=n(1400),s=function(e){return function(t,n,s){var l,a=r(t),c=o(a.length),u=i(s,c);if(e&&n!=n){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},2092:(e,t,n)=>{var r=n(9974),o=n(8361),i=n(7908),s=n(7466),l=n(5417),a=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,m,v,g){for(var y,b,x=i(h),w=o(x),E=r(m,v,3),S=s(w.length),O=0,_=g||l,A=t?_(h,S):n||d?_(h,0):void 0;S>O;O++)if((p||O in w)&&(b=E(y=w[O],O,x),e))if(t)A[O]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return O;case 2:a.call(A,y)}else switch(e){case 4:return!1;case 7:a.call(A,y)}return f?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},9341:(e,t,n)=>{"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},3671:(e,t,n)=>{var r=n(3099),o=n(7908),i=n(8361),s=n(7466),l=function(e){return function(t,n,l,a){r(n);var c=o(t),u=i(c),f=s(c.length),d=e?f-1:0,p=e?-1:1;if(l<2)for(;;){if(d in u){a=u[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in u&&(a=n(a,u[d],d,c));return a}};e.exports={left:l(!1),right:l(!0)}},5417:(e,t,n)=>{var r=n(111),o=n(3157),i=n(5112)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},3411:(e,t,n)=>{var r=n(9670),o=n(9212);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},4326:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:(e,t,n)=>{var r=n(1694),o=n(4326),i=n(5112)("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:s?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},5631:(e,t,n)=>{"use strict";var r=n(3070).f,o=n(30),i=n(2248),s=n(9974),l=n(5787),a=n(408),c=n(654),u=n(6340),f=n(9781),d=n(2423).fastKey,p=n(9909),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){l(e,u,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&a(r,e[c],{that:e,AS_ENTRIES:n})})),p=m(t),v=function(e,t,n){var r,o,i=p(e),s=g(e,t);return s?s.value=n:(i.last=s={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=s),r&&(r.next=s),f?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},g=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(u.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=s(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(u.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",o=m(t),i=m(r);c(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},7710:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(4705),s=n(1320),l=n(2423),a=n(408),c=n(5787),u=n(111),f=n(7293),d=n(7072),p=n(8003),h=n(9587);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=m?"set":"add",y=o[e],b=y&&y.prototype,x=y,w={},E=function(e){var t=b[e];s(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof y||!(v||b.forEach&&!f((function(){(new y).entries().next()})))))x=n.getConstructor(t,e,m,g),l.REQUIRED=!0;else if(i(e,!0)){var S=new x,O=S[g](v?{}:-0,1)!=S,_=f((function(){S.has(1)})),A=d((function(e){new y(e)})),j=!v&&f((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));A||((x=t((function(t,n){c(t,x,e);var r=h(new y,t,x);return null!=n&&a(n,r[g],{that:r,AS_ENTRIES:m}),r}))).prototype=b,b.constructor=x),(_||j)&&(E("delete"),E("has"),m&&E("get")),(j||O)&&E(g),v&&b.clear&&delete b.clear}return w[e]=x,r({global:!0,forced:x!=y},w),p(x,e),v||n.setStrong(x,e,m),x}},9920:(e,t,n)=>{var r=n(6656),o=n(3887),i=n(1236),s=n(3070);e.exports=function(e,t){for(var n=o(t),l=s.f,a=i.f,c=0;c{var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,n)=>{"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),s=n(8003),l=n(7497),a=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),s(e,c,!1,!0),l[c]=a,e}},8880:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,n)=>{"use strict";var r=n(7593),o=n(3070),i=n(9114);e.exports=function(e,t,n){var s=r(t);s in e?o.f(e,s,i(0,n)):e[s]=n}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(4994),i=n(9518),s=n(7674),l=n(8003),a=n(8880),c=n(1320),u=n(5112),f=n(1913),d=n(7497),p=n(3383),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,v=u("iterator"),g="keys",y="values",b="entries",x=function(){return this};e.exports=function(e,t,n,u,p,w,E){o(n,t,u);var S,O,_,A=function(e){if(e===p&&R)return R;if(!m&&e in k)return k[e];switch(e){case g:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",P=!1,k=e.prototype,C=k[v]||k["@@iterator"]||p&&k[p],R=!m&&C||A(p),T="Array"==t&&k.entries||C;if(T&&(S=i(T.call(new e)),h!==Object.prototype&&S.next&&(f||i(S)===h||(s?s(S,h):"function"!=typeof S[v]&&a(S,v,x)),l(S,j,!0,!0),f&&(d[j]=x))),p==y&&C&&C.name!==y&&(P=!0,R=function(){return C.call(this)}),f&&!E||k[v]===R||a(k,v,R),d[t]=R,p)if(O={values:A(y),keys:w?R:A(g),entries:A(b)},E)for(_ in O)(m||P||!(_ in k))&&c(k,_,O[_]);else r({target:t,proto:!0,forced:m||P},O);return O}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),o=n(111),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8334:(e,t,n)=>{var r=n(8113);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},5268:(e,t,n)=>{var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},1036:(e,t,n)=>{var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:(e,t,n)=>{var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,i=n(7854),s=n(8113),l=i.process,a=l&&l.versions,c=a&&a.v8;c?o=(r=c.split("."))[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,t,n)=>{var r=n(7854),o=n(1236).f,i=n(8880),s=n(1320),l=n(3505),a=n(9920),c=n(4705);e.exports=function(e,t){var n,u,f,d,p,h=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[h]||l(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!c(m?u:h+(v?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;a(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),s(n,u,d,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,t,n)=>{"use strict";n(4916);var r=n(1320),o=n(7293),i=n(5112),s=n(2261),l=n(8880),a=i("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),u="$0"==="a".replace(/./,"$0"),f=i("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=i(e),m=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=m&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[a]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!m||!v||"replace"===e&&(!c||!u||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===s?m&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],x=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&l(RegExp.prototype[h],"sham",!0)}},6677:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(e,t,n)=>{var r=n(3099);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},5005:(e,t,n)=>{var r=n(857),o=n(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(7497),i=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},647:(e,t,n)=>{var r=n(7908),o=Math.floor,i="".replace,s=/\$([$&'`]|\d\d?|<[^>]*>)/g,l=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,n,a,c,u){var f=n+e.length,d=a.length,p=l;return void 0!==c&&(c=r(c),p=s),i.call(u,p,(function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":s=c[i.slice(1,-1)];break;default:var l=+i;if(0===l)return r;if(l>d){var u=o(l/10);return 0===u?r:u<=d?void 0===a[u-1]?i.charAt(1):a[u-1]+i.charAt(1):r}s=a[l-1]}return void 0===s?"":s}))}},7854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},490:(e,t,n)=>{var r=n(5005);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(7293),o=n(4326),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},9587:(e,t,n)=>{var r=n(111),o=n(7674);e.exports=function(e,t,n){var i,s;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(s=i.prototype)&&s!==n.prototype&&o(e,s),e}},2788:(e,t,n)=>{var r=n(5465),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},2423:(e,t,n)=>{var r=n(3501),o=n(111),i=n(6656),s=n(3070).f,l=n(9711),a=n(6677),c=l("meta"),u=0,f=Object.isExtensible||function(){return!0},d=function(e){s(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!i(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return a&&p.REQUIRED&&f(e)&&!i(e,c)&&d(e),e}};r[c]=!0},9909:(e,t,n)=>{var r,o,i,s=n(8536),l=n(7854),a=n(111),c=n(8880),u=n(6656),f=n(5465),d=n(6200),p=n(3501),h=l.WeakMap;if(s){var m=f.state||(f.state=new h),v=m.get,g=m.has,y=m.set;r=function(e,t){return t.facade=e,y.call(m,e,t),t},o=function(e){return v.call(m,e)||{}},i=function(e){return g.call(m,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){return t.facade=e,c(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),i=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},3157:(e,t,n)=>{var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4705:(e,t,n)=>{var r=n(7293),o=/#|\.prototype\./,i=function(e,t){var n=l[s(e)];return n==c||n!=a&&("function"==typeof t?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=i.data={},a=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},111:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:e=>{e.exports=!1},7850:(e,t,n)=>{var r=n(111),o=n(4326),i=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},408:(e,t,n)=>{var r=n(9670),o=n(7659),i=n(7466),s=n(9974),l=n(1246),a=n(9212),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,f,d,p,h,m,v,g=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=s(t,g,1+y+x),E=function(e){return u&&a(u),new c(!0,e)},S=function(e){return y?(r(e),x?w(e[0],e[1],E):w(e[0],e[1])):x?w(e,E):w(e)};if(b)u=e;else{if("function"!=typeof(f=l(e)))throw TypeError("Target is not iterable");if(o(f)){for(d=0,p=i(e.length);p>d;d++)if((h=S(e[d]))&&h instanceof c)return h;return new c(!1)}u=f.call(e)}for(m=u.next;!(v=m.call(u)).done;){try{h=S(v.value)}catch(e){throw a(u),e}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},9212:(e,t,n)=>{var r=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},3383:(e,t,n)=>{"use strict";var r,o,i,s=n(7293),l=n(9518),a=n(8880),c=n(6656),u=n(5112),f=n(1913),d=u("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):p=!0);var h=null==r||s((function(){var e={};return r[d].call(e)!==e}));h&&(r={}),f&&!h||c(r,d)||a(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:e=>{e.exports={}},5948:(e,t,n)=>{var r,o,i,s,l,a,c,u,f=n(7854),d=n(1236).f,p=n(261).set,h=n(8334),m=n(1036),v=n(5268),g=f.MutationObserver||f.WebKitMutationObserver,y=f.document,b=f.process,x=f.Promise,w=d(f,"queueMicrotask"),E=w&&w.value;E||(r=function(){var e,t;for(v&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?s():i=void 0,e}}i=void 0,e&&e.enter()},h||v||m||!g||!y?x&&x.resolve?(c=x.resolve(void 0),u=c.then,s=function(){u.call(c,r)}):s=v?function(){b.nextTick(r)}:function(){p.call(f,r)}:(l=!0,a=y.createTextNode(""),new g(r).observe(a,{characterData:!0}),s=function(){a.data=l=!l})),e.exports=E||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,s()),i=t}},3366:(e,t,n)=>{var r=n(7854);e.exports=r.Promise},133:(e,t,n)=>{var r=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},8536:(e,t,n)=>{var r=n(7854),o=n(2788),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},8523:(e,t,n)=>{"use strict";var r=n(3099),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},3929:(e,t,n)=>{var r=n(7850);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(7293),i=n(1956),s=n(5181),l=n(5296),a=n(7908),c=n(8361),u=Object.assign,f=Object.defineProperty;e.exports=!u||o((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||i(u({},t)).join("")!=o}))?function(e,t){for(var n=a(e),o=arguments.length,u=1,f=s.f,d=l.f;o>u;)for(var p,h=c(arguments[u++]),m=f?i(h).concat(f(h)):i(h),v=m.length,g=0;v>g;)p=m[g++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:u},30:(e,t,n)=>{var r,o=n(9670),i=n(6048),s=n(748),l=n(3501),a=n(490),c=n(317),u=n(6200),f=u("IE_PROTO"),d=function(){},p=function(e){return"