diff --git a/docs/447.1a99e3f3.css b/docs/447.1a99e3f3.css deleted file mode 100644 index 478b73d..0000000 --- a/docs/447.1a99e3f3.css +++ /dev/null @@ -1 +0,0 @@ -.example-designer-tool .el-button--small{font-size:14px}.example-designer-tool .el-button+.el-button{margin-left:15px}.example-builder-footer .el-button--small{font-size:14px}.example-el-confirm strong{margin:0 2px}.example-el-confirm strong[danger]{color:#f56c6c}.example-el-confirm strong[info]{color:#409eff}.example-el-notify .example-schema-error{padding-left:0}.xform-setting+.xform-setting{margin-top:10px}.xform-setting header{font-weight:700}.xform-el-setting-option{align-items:center;display:flex;flex-flow:row nowrap;margin-bottom:5px}.xform-el-setting-option .el-button{margin-left:5px}.xform-el-empty-tip{color:#9a9a9a;font-size:14px;font-weight:600;left:50%;margin:0;position:absolute;text-align:center;top:45%;transform:translateX(-50%)}.rPD0B2se_558N8J3zEwk{align-items:center;display:flex;flex-flow:row nowrap;height:30px;line-height:30px}.rPD0B2se_558N8J3zEwk strong{margin:0 4px}.rPD0B2se_558N8J3zEwk>.el-select{margin-left:10px;width:100px}.rPD0B2se_558N8J3zEwk>.el-input,.rPD0B2se_558N8J3zEwk>.el-input-number{margin-left:10px;width:150px}.rPD0B2se_558N8J3zEwk>.Sj0x4FkQGA7lrN6KIFh0{width:150px}.xform-el-checkbox-block .el-checkbox{display:flex;margin:0;white-space:normal;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.nvXUVNRMBnPTDYR1nlt1{display:flex;flex-flow:row nowrap;height:500px}.PydYKRiTAC7fV40xtSAa{border-right:1px solid #dee2e6;display:flex;flex-flow:column nowrap;width:200px}.PydYKRiTAC7fV40xtSAa h5{background-color:#f0f0f0;border-bottom:1px solid #dee2e6;border-top:1px solid #dee2e6;font-size:14px;line-height:20px;margin:0;padding:4px 10px}.zkFYjUnmaOIo7OFzjIWU{display:flex;flex-flow:column nowrap;max-height:50%}.zkFYjUnmaOIo7OFzjIWU h5{border-top-color:transparent}.wcuEasrlKx0gGhcJailM{display:flex;flex:1;flex-flow:column nowrap;height:0}.wcuEasrlKx0gGhcJailM h5{position:relative}.wcuEasrlKx0gGhcJailM h5 button{margin:0;position:absolute;right:10px;top:4px}.c1HbMKvNMsq1VBgjI9sC,.frZZEkiqDstOTP882TlO{flex:1;height:0}.WQxdmEedM0V75KipOZud{flex:1;padding:15px 10px;width:0}.aEpvVSWsA76hfSesn_H0{border:1px dashed #ccc;padding:15px;position:relative}.aEpvVSWsA76hfSesn_H0.is-composed{padding:24px 20px}.aEpvVSWsA76hfSesn_H0.is-error{border-color:var(--xform-color-danger)!important}.aEpvVSWsA76hfSesn_H0.is-selected{border-color:#007bff;border-style:solid}.aEpvVSWsA76hfSesn_H0 .is-logic-legend{background-color:#fff;left:12px;line-height:20px;padding-left:8px;position:absolute;top:-10px;z-index:2}.aEpvVSWsA76hfSesn_H0 .is-logic-legend strong{margin:0 2px}.aEpvVSWsA76hfSesn_H0+.aEpvVSWsA76hfSesn_H0{margin-top:15px}.aEpvVSWsA76hfSesn_H0>.aEpvVSWsA76hfSesn_H0:after{border-bottom:1px dashed #ccc;content:"";left:-20px;position:absolute;top:50%;width:20px}.Exkbzke6uyngN6DG2a38{background-color:#fff!important;position:absolute;right:10px;top:-10px}.M8j6XwiKGXGRt2UD1Wjf{background-color:transparent;border:none;border-bottom:1px solid transparent;color:var(--xform-color-primary);cursor:pointer;font-size:14px;height:20px;line-height:20px;margin:0 5px;padding:0;transition:border-bottom-color .3s ease}.M8j6XwiKGXGRt2UD1Wjf:hover{border-bottom-color:currentColor}.M8j6XwiKGXGRt2UD1Wjf.uMqLGhPdsNOBar9RejRo{color:var(--xform-color-danger)}.Wap5eyoLe71hYMLihiBN{cursor:pointer;line-height:20px;padding:4px 10px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.Wap5eyoLe71hYMLihiBN.xform-is-disabled{color:#6c757d;cursor:not-allowed}.Wap5eyoLe71hYMLihiBN:hover{background-color:#f0f0f0}.MYqnhW_hU3hRIJcvQFX6{color:var(--xform-text-color-secondary);padding-top:120px;text-align:center}.tgeXjHzTskDb8HZle1n9{color:var(--xform-text-color-secondary);line-height:20px}.nzbYZbOqkpn9LQjr8iGY{bottom:0;color:var(--xform-color-danger);font-size:12px;left:20px;line-height:15px;position:absolute}.I4YgaCPHxWiqPlEV6LGw .el-dialog__header{border-bottom:1px solid #dee2e6;margin-right:0;padding:10px 0 10px 10px}.I4YgaCPHxWiqPlEV6LGw .el-dialog__body{padding:0}.I4YgaCPHxWiqPlEV6LGw .el-dialog__headerbtn{height:24px;right:10px;top:10px;width:24px}.I4YgaCPHxWiqPlEV6LGw .el-dialog__headerbtn i{vertical-align:middle}.I4YgaCPHxWiqPlEV6LGw .el-dialog__footer{border-top:1px solid #dee2e6;padding:10px}.RqYi3vFp2AwPJyA0k2G9{float:right}.VCwWDbNe0VrBrhZwP6Ir{color:var(--xform-text-color-secondary)}.xform-el-field-setting-head{border-bottom:1px solid rgba(0,0,0,.125);font-size:16px;font-weight:700;line-height:24px;margin:0 0 10px;padding:0 0 3px}.xform-el-field-setting-prop+.xform-el-field-setting-prop{margin-top:15px}.xform-el-field-setting-prop>header{font-size:14px;font-weight:700;line-height:20px;margin-bottom:5px}.xform-el-field-setting-prop>header>.el-button.is-link{height:20px;padding-bottom:0;padding-top:0}.McgB5UGrmYfAVKKWqEze{display:flex;flex-flow:row nowrap}.dc0FJ2Ie4xOwyEeS_6d7{flex:1}.MV8D6SrdLk9beWbxiROq{margin-left:5px;width:200px}.xform-preview-datatable.xform-is-selected>.xform-preview-cover,.xform-preview-datatable:hover>.xform-preview-cover{background-color:#fdd58a}.xform-preview-datatable .xform-el-datatable{border:1px solid #ccc;position:relative;z-index:9}.xform-preview-datatable .xform-preview{margin-top:0}.xform-preview-datatable .xform-preview+.xform-preview{margin-left:5px}.xform-preview-datatable .xform-el-empty-tip{top:50%;transform:translate(-50%,-50%)}.xform-preview-datatable .xform-el-datatable-cell{height:26px;line-height:26px;overflow:hidden;text-align:center;white-space:nowrap}.xform-preview-datatable .xform-el-datatable-columns{display:flex;flex-flow:row nowrap;float:left;height:50px;min-width:100%;padding:5px}.xform-el-datatable-cell span{position:relative}.xform-el-datatable-cell.xform-is-required{font-weight:700}.xform-el-datatable-cell.xform-is-required span:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:-8px;line-height:1;position:absolute;top:0}.xform-el-datatable.xform-el-datatable-is-empty .el-table__empty-block{min-height:1px}.xform-el-datatable.xform-el-datatable-is-empty .el-table__empty-text{display:none}.xform-el-datatable.xform-el-datatable-is-empty .el-table__body-wrapper{z-index:9}.xform-el-datatable.xform-el-datatable-is-empty .el-table__body-wrapper:after{content:"点击添加按钮插入数据";display:block;font-size:14px;height:60px;left:0;line-height:60px;position:-webkit-sticky;position:sticky;text-align:center;width:100%}.xform-el-datatable[data-layout=inline] .hover-row .xform-el-datatable-row-index,.xform-el-datatable[data-layout=inline] .xform-el-datatable-remove{display:none}.xform-el-datatable[data-layout=inline] .hover-row .xform-el-datatable-remove{display:block}.xform-el-datatable .el-table__header .cell{font-size:14px}.xform-el-datatable .el-table__header .cell.xform-is-required{color:var(--el-text-color-primary)}.xform-el-datatable .el-table__header .cell.xform-is-required:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:0;line-height:1;position:absolute;top:3px}.xform-el-datatable .el-table__body .el-table__cell{padding-bottom:0;padding-top:0}.xform-el-datatable .el-table__body .el-table__cell .cell{padding-bottom:12px;padding-top:12px}.xform-el-datatable .el-table__body .el-table__cell .cell .xform-item{margin:0}.xform-el-datatable .el-table__body .el-table__cell .cell .xform-item-message{bottom:-13px;line-height:14px}.xform-el-datatable th.el-table__cell{background-color:var(--el-background-color-base);padding-bottom:12px;padding-top:12px}.xform-el-datatable textarea{resize:none}.xform-el-datatable-dialog{--el-dialog-width:640px}.xform-el-datatable-dialog .el-dialog__body{padding:20px 10px}.xform-el-datatable-column{border:1px solid #ced4da;border-radius:3px;line-height:30px;overflow:hidden;position:relative}.xform-el-datatable-column:after{content:"px";font-weight:700;position:absolute;right:0;text-align:center;top:0;width:20px;z-index:2}.xform-el-datatable-column label{font-weight:700;margin:0;padding-left:10px;position:relative;z-index:2}.xform-el-datatable-column input{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;background-color:#e9ecef!important;border:none;border-radius:3px;box-shadow:none!important;height:26px;line-height:20px;outline:none;padding:3px 5px;position:absolute;right:20px;top:2px;width:90px;z-index:2}.xform-el-datatable-column input::-webkit-inner-spin-button{-webkit-appearance:none!important}.xform-el-datatable-column+.xform-el-datatable-column{margin-top:5px}.xform-el-datatable-column-width{background-color:#f3f6f8;border-right:1px solid #ced4da;height:100%;left:0;position:absolute;top:0;z-index:1}.xform-el-date{width:100%!important}.W1_4cM9t0XUQp3kkRER9{display:flex}.W1_4cM9t0XUQp3kkRER9 .el-select{flex:1;width:0}.W1_4cM9t0XUQp3kkRER9 .el-date-editor{margin-left:5px;width:200px}.xform-divider{height:32px;line-height:32px;padding:0 5px;position:relative;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{left:0;position:absolute;right:0;z-index:0}.xform-divider-line.xform-divider-type-solid{border-top:1px solid #666;top:15px}.xform-divider-line.xform-divider-type-dashed{border-top:1px dashed #666;top:15px}.xform-divider-line.xform-divider-type-double{border-bottom:1px solid #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-solid-dashed{border-bottom:1px dashed #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-dashed-solid{border-bottom:1px solid #666;border-top:1px dashed #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-title{background-color:#fff;font-size:18px;font-weight:600;padding:0 5px;position:relative;z-index:1}.xform-divider-types .el-radio{align-items:center;display:flex;margin:0}.xform-divider-types .el-radio__label{flex:1}.xform-el-divider-range{align-items:center;display:flex;flex-flow:row nowrap}.xform-el-divider-range .el-slider{flex:1;margin-left:10px;margin-right:10px}.xform-el-divider-range label{width:64px}.xform-preview-group.xform-is-selected>.xform-preview-cover,.xform-preview-group:hover>.xform-preview-cover{background-color:#fdd58a}.xform-el-group{display:block}.xform-el-group .el-card{--el-card-padding:10px}.xform-el-group .xform-el-group-list{min-height:200px;position:relative}.xform-el-group .el-card__header{background-color:#f5f7fa}.xform-el-group .xform-el-card-header{align-items:center;display:flex;flex-flow:row nowrap;line-height:24px}.xform-el-group .xform-el-card-header h3{color:var(--xform-text-color);cursor:default;flex:1;font-size:var(--xform-font-size);font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xform-el-group .xform-el-card-header .el-button--text{font-size:var(--xform-font-size);min-height:0;padding:0}.xform-el-group.xform-is-collasped .el-card__header{border-bottom:0}.xform-el-group.xform-is-collasped .el-card__body{display:none}.gDh76HrtnYJROGe9waEL{-webkit-user-select:none;-moz-user-select:none;user-select:none}.gDh76HrtnYJROGe9waEL header{display:flex;flex-flow:row nowrap;justify-content:space-between}.gDh76HrtnYJROGe9waEL header .el-button{min-height:0;padding:0}.gDh76HrtnYJROGe9waEL .el-input-number{width:100%}.gDh76HrtnYJROGe9waEL .el-input-number .el-input__inner{text-align:left}.xform-el-number{-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.xform-el-number .el-input__inner{text-align:left}.xform-el-radio-block .el-radio{display:flex;margin:0;white-space:normal;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.EYoxV2gUxNnFruKVfDOr{display:flex;flex-flow:row nowrap}.yMYY62i8ZM4c4tyPF03w{flex:1}.fCqRxjv_hPijVSX_zf06{margin-left:5px;width:200px}.xform-el-select{width:100%}.buWLHnYOZJ9q5aMiviBh{display:flex;flex-flow:row nowrap}.IznQOOjQcNY3r9kGdoEY{flex:1}.j7F9f5B2UoshYHqgEw42{margin-left:5px;width:200px}.xform-el-tabs{background-color:#fff;display:block;position:relative}.xform-el-tabs .el-tabs{border-radius:4px;box-shadow:none;overflow:hidden;transition:var(--el-transition-duration)}.xform-el-tabs .el-tabs:hover{box-shadow:var(--el-box-shadow-light)}.xform-el-tabs .el-tabs__nav-next,.xform-el-tabs .el-tabs__nav-prev{height:38px;text-align:center;width:20px}.xform-el-tabs .el-tabs__nav-next:hover,.xform-el-tabs .el-tabs__nav-prev:hover{color:var(--el-color-primary)}.xform-el-tabs .el-tabs__content{padding:10px}.xform-el-tabs.xform-is-with-title .el-tabs__header{display:flex}.xform-el-tabs.xform-is-with-title .el-tabs__header:before{align-self:center;box-sizing:content-box;color:var(--xform-text-color);content:var(--xform-el-tabs-field-title);font-size:var(--xform-font-size);font-weight:700;max-width:var(--xform-label-width);overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.xform-el-tabs.xform-is-with-title .el-tabs__nav-wrap{flex:1}.xform-el-tabs.xform-is-with-title .el-tabs--border-card .el-tabs__item:first-child{margin-left:0}.xform-el-tab-pane{min-height:200px}.xform-preview-tabs .el-tabs__nav-wrap{position:relative;z-index:9}.xform-preview-tabs .xform-el-tab-pane{position:relative}.xform-preview-tabs.xform-is-selected>.xform-preview-cover,.xform-preview-tabs:hover>.xform-preview-cover{background-color:#fdd58a}.xform-el-tabs-option .el-button--small{padding-left:10px;padding-right:10px} \ No newline at end of file diff --git a/docs/447.31b25508.js b/docs/447.31b25508.js new file mode 100644 index 0000000..a8a2c62 --- /dev/null +++ b/docs/447.31b25508.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkxform=self.webpackChunkxform||[]).push([[447],{2286:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Cl});var l=n(9784),r=n(6252);n(1249),n(4916),n(1539);const o={logicForm:"rPD0B2se_558N8J3zEwk",valueSelect:"Sj0x4FkQGA7lrN6KIFh0"};var u=n(8018),a=(n(9826),(0,l.hS)().CLASS);function i(e,t){var n=t.parent.find(e.field);if(null==n)return(0,r.Wm)("div",{class:a.IS_WARNING},[(0,r.Uk)("当前逻辑失效,目标字段被删除或位置发生变化")]);var l=(0,r.Wm)("strong",{class:o.warnFieldTitle},[n.title]);return(0,r.Wm)("div",{class:a.IS_WARNING},[(0,r.Uk)("当前逻辑失效,目标字段"),l,(0,r.Uk)("的位置发生变化")])}function d(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.lA)(e)}var f=l.gN.createFieldLogic({type:"string_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return i(e,t);var l=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_CONTAINS,u.d.OPERATOR_EMPTY].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{label:e.title,value:e.type},null)})),a=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},d(l)?l:{default:function(){return[l]}}),f=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-input"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null);return(0,r.Wm)("div",{class:o.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[n?n.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的值")]),a,f])},test:function(e,t){var n=u.d.get(e.operator);if(null==n)return!0;var l=t.previousField(e.field);return null==l||n.test(l.value,e.value)},validator:function(e){return e.operator==u.d.OPERATOR_EMPTY.type||(!(0,l.xb)(e.value)||"请补全目标值")},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}}),c=l.gN.createFieldLogic({type:"string_length_compare",title:"长度",render:function(e,t){var n=t.previousField(e.field);if(null==n)return i(e,t);var l=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_LT,u.d.OPERATOR_LTE,u.d.OPERATOR_GT,u.d.OPERATOR_GTE].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{label:e.title,value:e.type},null)})),a=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},d(l)?l:{default:function(){return[l]}}),f=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-input-number"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值","controls-position":"right",min:0,"step-strictly":!0},null);return(0,r.Wm)("div",{class:o.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[n?n.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的长度")]),a,f])},test:function(e,t){var n=u.d.get(e.operator);if(null==n)return!0;var l=t.previousField(e.field);if(null==l)return!0;var r=l.value;return"string"==typeof r&&n.test(r.length,e.value)},validator:function(e){return!(0,l.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}});n(8309);var s=l.gN.createFieldLogic({type:"number_value_compare",title:"值",render:function(e,t){var n=t.previous().find((function(t){return t.name==e.field}));if(null==n)return i(e,t);var l,a=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_LT,u.d.OPERATOR_LTE,u.d.OPERATOR_GT,u.d.OPERATOR_GTE].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{value:e.type,label:e.title},null)})),d=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},"function"==typeof(l=a)||"[object Object]"===Object.prototype.toString.call(l)&&!(0,r.lA)(l)?a:{default:function(){return[a]}}),f=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-input-number"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值","controls-position":"right",min:0,"step-strictly":!0},null);return(0,r.Wm)("div",{class:o.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[n?n.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的值")]),d,f])},test:function(e,t){var n=u.d.get(e.operator);if(null==n)return!0;var l=t.previousField(e.field);if(null==l)return!0;var r=l.value;return"number"==typeof r&&n.test(r,e.value)},validator:function(e){return!(0,l.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}});var p=l.gN.createFieldLogic({type:"date_value_compare",title:"值",render:function(e,t){var n,l,a=t.previousField(e.field);if(null==a)return i(e,t);var d,f=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_LT,u.d.OPERATOR_LTE,u.d.OPERATOR_GT,u.d.OPERATOR_GTE,u.d.OPERATOR_EMPTY].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{value:e.type,label:e.title},null)})),c=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},"function"==typeof(d=f)||"[object Object]"===Object.prototype.toString.call(d)&&!(0,r.lA)(d)?f:{default:function(){return[f]}}),s=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-date-picker"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值",format:null===(n=a.attributes)||void 0===n?void 0:n.format,"value-format":null===(l=a.attributes)||void 0===l?void 0:l.valueFormat},null);return(0,r.Wm)("div",{class:o.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[a?a.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的值")]),c,s])},test:function(e,t){var n=u.d.get(e.operator);if(null==n)return!0;var l=t.previousField(e.field);return null==l||n.test(l.value,e.value)},validator:function(e){return!(0,l.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}}),m=n(9963);n(9753),n(7042),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var l=0,r=function(){};return{s:r,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:r}}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 o,u=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){a=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);ne.length)&&(t=e.length);for(var n=0,l=new Array(t);ne.length)&&(t=e.length);for(var n=0,l=new Array(t);n=0&&(n.splice(l,1),t.value=n)}return(0,r.Jd)((function(){a.value=null,d=null})),function(){var l,o=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==o.length)return(0,r.Wm)("div",{class:"xform-is-unknown"},[(0,r.Uk)("请放入至少一个字段")]);var m=e.disabled||e.field.disabled,v=null!==(l=e.field.attributes.colWidths)&&void 0!==l?l:{},b={default:function(){var e={header:function(){return m?"#":(0,r.Wm)((0,r.up)("el-button"),{onClick:f.bind(null,null),type:"primary",size:"small",link:!0},{default:function(){return[(0,r.Uk)("添加")]}})}},t={default:function(e){return[(0,r.Wm)((0,r.up)("el-button"),{onClick:f.bind(null,e.row),type:"primary",size:"small",link:!0},{default:function(){return[(0,r.Uk)("编辑")]}}),(0,r.Wm)((0,r.up)("el-button"),{onClick:p.bind(null,e.row),type:"danger",size:"small",link:!0},{default:function(){return[(0,r.Uk)("删除")]}})]}},n=o.map((function(e){var t,n=null!==(t=v[e.name])&&void 0!==t?t:ve,l={default:function(t){var n=t.row[e.name];return i.renderField(n,{parentProps:{disabled:m},renderItem:function(e,t){return t.custom=!0,(0,r.h)(e,t,(function(){var e;return null!==(e=n.value)&&void 0!==e?e:u.value.viewerPlaceholder}))}})}};return(0,r.Wm)((0,r.up)("el-table-column"),{prop:e.name,label:e.title,"min-width":n,"label-class-name":e.required?"xform-is-required":null},l)}));return[(0,r.Wm)((0,r.up)("el-table-column"),{type:"index",fixed:"left",width:"60px"},e)].concat(We(n),[m?null:(0,r.Wm)((0,r.up)("el-table-column"),{label:"操作",fixed:"right",width:"100px",aligh:"right"},t)])}},y={default:function(){return n.value?(0,r.Wm)((0,r.up)("xform-builder"),{schema:a.value,ref:"form",onSubmit:s},{default:function(){return[(0,r.Wm)("button",{class:"xform-is-hidden",type:"submit"},null)]}}):null},footer:function(){return(0,r.Wm)("div",null,[(0,r.Wm)((0,r.up)("el-button"),{onClick:c},{default:function(){return[(0,r.Uk)("取消")]}}),(0,r.Wm)((0,r.up)("el-button"),{type:"primary",onClick:s},{default:function(){return[(0,r.Uk)("确定")]}})])}},g={"xform-el-datatable":!0,"xform-el-datatable-is-empty":0==t.value.length},h="".concat(null==d?"添加":"编辑","数据");return(0,r.Wm)(r.HY,null,[(0,r.Wm)((0,r.up)("el-table"),{class:g,size:"small","data-layout":"modal",data:t.value},b),(0,r.Wm)((0,r.up)("el-dialog"),{modelValue:n.value,"onUpdate:modelValue":function(e){return n.value=e},title:h,"custom-class":"xform-el-datatable-dialog","append-to-body":!0},y)])}}var ke=n(7736);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Re(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==Re(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Re(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ae=(0,l.hS)(),Ne=Ae.CLASS,De=Ae.PROPS,Ce=Ae.EVENTS,Ie=Ae.EnumValidateMode,Fe=(0,r.aZ)({name:"xform-el-datatable-preview",props:{field:{type:l.Wi,required:!0}},setup:function(e){var t=(0,l.j9)();return function(){var n,l,o=e.field,u=o.fields,a=null!==(n=o.attributes.colWidths)&&void 0!==n?n:{},i=0==u.length?(0,r.Wm)("p",{class:"".concat(Ne.IS_EMPTY_TIP," xform-el-empty-tip")},[(0,r.Uk)("请将左侧控件拖动到此处")]):u.map((function(e){return t.renderField(e,{renderItem:function(){var t,n={"xform-el-datatable-cell":!0,"xform-is-required":e.required},l={width:"".concat(null!==(t=a[e.name])&&void 0!==t?t:ve,"px")};return(0,r.Wm)("div",{class:n,style:l},[(0,r.Wm)("span",null,[e.title])])}})})),d=(Ue(l={class:"".concat(be," ").concat(Ne.DROPPABLE," ").concat(Ne.SCOPE)},"."+De.FIELD,e.field),Ue(l,"."+De.SCOPE,e.field),l);return(0,r.Wm)("div",{class:"xform-el-datatable ".concat(Ne.IS_SCROLL," ").concat(Ne.IS_HORIZONTAL_SCROLL)},[(0,r.Wm)("div",d,[i])])}}}),Ze=(0,r.aZ)({name:"xform-el-datatable",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},emits:[Ce.UPDATE_VALUE],setup:function(e){var t=(0,w.Hg)(),n=je(e,t),o=function(e,t){var n=(0,l.j9)();function o(){var n=e.field.fields.reduce((function(t,n){var l=n.clone(!0);return l.setParent(e.field),t[n.name]=l,t}),{}),l=t.value;l.push(n),t.value=l}function u(e){var n=t.value,l=n.indexOf(e);l>=0&&(n.splice(l,1),t.value=n)}return function(){var l=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==l.length)return(0,r.Wm)("div",{class:"xform-is-unknown"},[(0,r.Uk)("请放入至少一个字段")]);var a=e.disabled||e.field.disabled,i={default:function(){var t,i={default:function(e){return[(0,r.Wm)("strong",{class:"xform-el-datatable-row-index"},[e.$index+1]),a?null:(0,r.Wm)((0,r.up)("el-button"),{onClick:u.bind(null,e.row),type:"danger",size:"small",link:!0,class:"xform-el-datatable-remove"},{default:function(){return[(0,r.Uk)("删除")]}})]},header:function(){return a?"#":(0,r.Wm)((0,r.up)("el-button"),{onClick:o,type:"primary",size:"small",link:!0},{default:function(){return[(0,r.Uk)("添加")]}})}},d=null!==(t=e.field.attributes.colWidths)&&void 0!==t?t:{},f=l.map((function(e){var t,l=null!==(t=d[e.name])&&void 0!==t?t:ve,o={default:function(t){return n.renderField(t.row[e.name],{parentProps:{disabled:a},renderItem:function(e,t,n){return t.label=!1,(0,r.h)(e,t,n)}})}};return(0,r.Wm)((0,r.up)("el-table-column"),{prop:e.name,label:e.title,"min-width":l,"label-class-name":e.required?"xform-is-required":null},o)}));return[(0,r.Wm)((0,r.up)("el-table-column"),{type:"index",fixed:"left",width:"60px"},i)].concat(we(f))}},d={"xform-el-datatable":!0,"xform-el-datatable-is-empty":0==t.value.length};return(0,r.Wm)((0,r.up)("el-table"),{data:t.value,size:"small",class:d,"data-layout":"inline"},i)}}(e,t);return function(){return"inline"==e.field.attributes.layout?o():n()}}}),Le=(0,r.aZ)({name:"xform-el-datatable-view",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,w.Hg)(),n=(0,l.j9)(),o=(0,l.I_)();return function(){var l,u=e.field.fields;if(!Array.isArray(t.value)||0==t.value.length||0==u.length)return(0,r.Wm)("span",{class:"xform-viewer-value"},[o.value.viewerPlaceholder]);var a=null!==(l=e.field.attributes.colWidths)&&void 0!==l?l:{},i=t.value,d=u.map((function(e){var t,l=null!==(t=a[e.name])&&void 0!==t?t:ve,o={default:function(t){return n.renderField(t.row[e.name],{renderItem:function(e,t,n){return n()}})}};return(0,r.Wm)((0,r.up)("el-table-column"),{prop:e.name,label:e.title,"min-width":l,"label-class-name":e.required?"xform-is-required":null},o)}));return(0,r.Wm)((0,r.up)("el-table"),{data:i,size:"small",class:"xform-el-datatable"},{default:function(){return[(0,r.Wm)((0,r.up)("el-table-column"),{type:"index",width:60,fixed:"left"},null),d]}})}}});const Me=l.gN.create({type:"datatable",title:"数据表格",icon:ie.Z,buttons:[ke.n,l.gN.BUTTON_COPY,l.gN.BUTTON_REMOVE],accept:["text","textarea","number","select","radio","checkbox","date"],setting:_e,preview:Fe,build:Ze,view:Le,onDragOver:function(e){var t=e.currentTarget;if(t.matches("."+be)){e.stopPropagation(),e.preventDefault();var n=e.context,l=n.directionX,r=n.moveMarkEl,o=n.getRootScopeEl,u=e.dragElement.contains(t);r(l,u?e.dragElement:e.target,u?o():t)}},onDrop:function(e){e.stopPropagation()},onCreate:function(e,t,n){n&&(e.attributes.colWidths={},e.attributes.layout="modal")},onSubmit:function(e){var t,n,l=null!==(t=null===(n=e.attributes)||void 0===n?void 0:n.colWidths)&&void 0!==t?t:{},r=e.fields.map((function(e){return e.name}));for(var o in l)r.indexOf(o)<0&&delete l[o];return e},onValueInit:function(e,t){if(!Array.isArray(t))return[];var n=e.fields;return t.map((function(t){return n.reduce((function(n,l){var r=l.clone(!0);return r.setValue(t[l.name]),r.setParent(e),n[l.name]=r,n}),{})}))},onValueSubmit:function(e){if(Array.isArray(e.value)){var t=e.fields;return e.value.map((function(e){return t.map((function(e){return e.name})).reduce((function(t,n){var l,r=e[n],o=null===(l=r.conf)||void 0===l?void 0:l.onValueSubmit;return t[r.name]="function"==typeof o?o(r):r.value,t}),{})}))}},validator:function(e,t,n){if(e.required&&(0,l.xb)(t))return Promise.reject("必填");var r=t.reduce((function(e,t){return e.concat(Object.values(t))}),[]).map((function(e){return n.mode==Ie.RECURSIVE?e.validate({mode:Ie.RECURSIVE}):e.invalid?Promise.reject():Promise.resolve()}));return Promise.allSettled(r).then((function(e){return e.some((function(e){return"rejected"===e.status}))?Promise.reject("请补全必填内容"):Promise.resolve()}))},onValidate:function(e){return(0,l.xb)(e.title)?Promise.reject("标题为空"):0==e.fields.length?Promise.reject("至少需要一个字段"):Promise.resolve()}});var qe=n(6113);const Ye=(0,r.aZ)({name:"xform-el-date",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,w.Hg)(),popperOptions:{placement:"bottom-start"}}}}),He=(0,W.Z)(Ye,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-date-picker");return(0,r.wg)(),(0,r.j4)(a,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),name:e.field.name,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,format:e.field.attributes.format,"value-format":e.field.attributes.valueFormat,editable:!1,"popper-options":e.popperOptions,class:"xform-el-date"},null,8,["modelValue","name","placeholder","disabled","format","value-format","popper-options"])}]]);var Be={class:"xform-el-field-setting-prop"},Ge=(0,r._)("header",null,"默认值:",-1);function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}var Qe=(0,l.hS)(),ze=Qe.BuiltInDefaultValueType,Xe=Qe.EVENTS;const $e=(0,r.aZ)({name:"xform-el-date-setting",props:{field:l.Wi},emits:[Xe.UPDATE_FIELD],setup:function(){var e=[{value:ze.MANUAL,label:"手动指定"},{value:ze.DATE_NOW,label:"当前时间"}],t=(0,w.Xu)(e);return{isManual:t.useIsManual(),compatType:t.useCompatType(),compatValue:t.useCompatValue(),defTypes:e,popperOptions:{placement:"bottom-end"}}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ke(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==Ke(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ke(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},X.name,X)}),Je={classes:{defaultValue:"W1_4cM9t0XUQp3kkRER9"}},et=(0,W.Z)($e,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-option"),i=(0,r.up)("el-select"),d=(0,r.up)("el-date-picker"),f=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(f,{field:e.field},{default:(0,r.w5)((function(){return[(0,r._)("section",Be,[Ge,(0,r._)("div",{class:(0,_.C_)(e.classes.defaultValue)},[(0,r.Wm)(i,{modelValue:e.compatType,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatType=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.defTypes,(function(e,t){return(0,r.wg)(),(0,r.j4)(a,{key:t,value:e.value,label:e.label||e.value},null,8,["value","label"])})),128))]})),_:1},8,["modelValue"]),e.isManual?((0,r.wg)(),(0,r.j4)(d,{key:0,modelValue:e.compatValue,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.compatValue=t}),placeholder:"请选择默认时间",format:e.field.attributes.format,"value-format":e.field.attributes.valueFormat,editable:!1,"popper-options":e.popperOptions},null,8,["modelValue","format","value-format","popper-options"])):(0,r.kq)("",!0)],2)])]})),_:1},8,["field"])}],["__cssModules",Je]]),tt=l.gN.create({icon:qe.Z,type:"date",title:"日期",setting:et,build:He,onCreate:function(e){var t,n;e.attributes.format=null!==(t=e.attributes.format)&&void 0!==t?t:"YYYY-MM-DD",e.attributes.valueFormat=null!==(n=e.attributes.valueFormat)&&void 0!==n?n:"YYYY-MM-DD"},validator:function(e,t){return e.required&&(0,l.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[p]});var nt=n(2209);var lt=n(898);function rt(e){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(e)}const ot=(0,r.aZ)({name:"xform-el-divider",inheritAttrs:!1,props:{field:{type:l.Wi,required:!0}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==rt(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},lt.Z.name,lt.Z)}),ut=(0,W.Z)(ot,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("xform-divider");return(0,r.wg)(),(0,r.j4)(a,{class:"xform-item xform-el-divider",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 at,it={class:"xform-el-field-setting-prop xform-divider-types"},dt=(0,r._)("header",null,"样式:",-1),ft={class:"xform-el-field-setting-prop"},ct=(0,r._)("header",null,"间距:",-1),st={class:"xform-el-divider-range"},pt=(0,r._)("label",null,"上间距:",-1),mt={class:"xform-el-divider-range"},vt=(0,r._)("label",null,"下间距:",-1);function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function yt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==bt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==bt(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=(0,l.hS)().EVENTS;const ht=(0,r.aZ)({name:"xform-el-divider-setting",props:{field:l.Wi},emits:[gt.UPDATE_FIELD],setup:function(){return{types:["solid","dashed","double","solid-dashed","dashed-solid"],compatType:(0,w.Et)("type","attributes"),compatTop:(0,w.Et)("top","attributes"),compatBottom:(0,w.Et)("bottom","attributes")}},components:(at={},yt(at,lt.Z.name,lt.Z),yt(at,X.name,X),at)}),Ot=(0,W.Z)(ht,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("xform-divider"),i=(0,r.up)("el-radio"),d=(0,r.up)("el-slider"),f=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(f,{field:e.field,placeholder:!1,attributes:!1},{default:(0,r.w5)((function(){return[(0,r._)("section",it,[dt,((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.types,(function(n){return(0,r.wg)(),(0,r.j4)(i,{key:n,modelValue:e.compatType,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatType=t}),name:"setting-divider-type",label:n},{default:(0,r.w5)((function(){return[(0,r.Wm)(a,{type:n},null,8,["type"])]})),_:2},1032,["modelValue","label"])})),128))]),(0,r._)("section",ft,[ct,(0,r._)("div",st,[pt,(0,r.Wm)(d,{modelValue:e.compatTop,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.compatTop=t}),min:0,max:100,step:5,"show-stops":""},null,8,["modelValue"])]),(0,r._)("div",mt,[vt,(0,r.Wm)(d,{modelValue:e.compatBottom,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.compatBottom=t}),min:0,max:100,step:5,"show-stops":""},null,8,["modelValue"])])])]})),_:1},8,["field"])}]]),Pt=l.gN.create({icon:nt.Z,type:"divider",title:"分割线",custom:!0,setting:Ot,build:ut,view:ut,onCreate:function(e,t,n){n&&(e.attributes.type="solid",e.attributes.top=0,e.attributes.bottom=0)}});n(4819),n(3593);var Et=n(1993);function St(e){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(e)}var Vt=(0,l.hS)().EVENTS;const _t=(0,r.aZ)({name:"xform-el-group-setting",props:{field:l.Wi},emits:[Vt.UPDATE_FIELD],setup:function(){return{collapsable:(0,w.Et)("collapsable","attributes")}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==St(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==St(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===St(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},X.name,X)}),wt=(0,W.Z)(_t,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-checkbox"),i=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(i,{field:e.field,placeholder:!1,required:!1},{attributes:(0,r.w5)((function(){return[(0,r.Wm)(a,{name:"".concat(e.field.name,"-collapsable"),modelValue:e.collapsable,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.collapsable=t}),title:"勾选则支持展开/收起分组"},{default:(0,r.w5)((function(){return[(0,r.Uk)("允许收起")]})),_:1},8,["name","modelValue"])]})),_:1},8,["field"])}]]);function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function Wt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Tt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==Tt(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Tt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt=(0,l.hS)(),jt=xt.SELECTOR,kt=xt.CLASS,Rt=xt.EnumRenderType,Ut=xt.PROPS,At=xt.EnumValidateMode,Nt=xt.EnumValidityState,Dt="xform-el-group-list",Ct=".".concat(Dt);function It(){var e=(0,q.iH)(!1);function t(){e.value=!e.value}return{collasped:e,renderHeader:function(n){if(null==n.title)return null;var l=!0===n.attributes.collapsable?(0,r.Wm)((0,r.up)("el-button"),{type:"text",title:e.value?"展开":"收起",onClick:t,size:"small"},{default:function(){return[e.value?"展开":"收起"]}}):null;return(0,r.Wm)("div",{class:"xform-el-card-header"},[(0,r.Wm)("h3",null,[n.title]),l])}}}var Ft=(0,r.aZ)({name:"xform-el-group",props:{field:{type:l.Wi,required:!0},behavior:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup:function(e){var t=It(),n=t.collasped,o=t.renderHeader,u=(0,l.j9)();return function(){var t,l=e.field.value,a=e.field.fields,i=e.behavior==Rt.DESIGNER||u.type==Rt.DESIGNER,d=e.field.validation.message,f=e.disabled,c=Wt({"xform-item":!0,"xform-el-group":!0,"xform-is-collasped":n.value},kt.IS_ERROR,e.field.validation.valid==Nt.ERROR),s=i&&0==a.length?(0,r.Wm)("p",{class:[kt.IS_EMPTY_TIP,"xform-el-empty-tip"]},[(0,r.Uk)("请将左侧控件拖动到此处")]):null,p=a.map((function(e){return u.renderField(i?e:l[e.name],{parentProps:{disabled:f}})})),m=Wt({class:(t={},Wt(t,Dt,!0),Wt(t,kt.DROPPABLE,i),Wt(t,kt.SCOPE,i),t)},"."+Ut.FIELD,i?e.field:void 0),v={header:function(){return o(e.field)},default:function(){return(0,r.Wm)("div",m,[s,p])}};return(0,r.Wm)("div",{class:c},[(0,r.Wm)((0,r.up)("el-card"),{shadow:i?"never":"hover"},v),d&&(0,r.Wm)("p",{class:"xform-item-message"},[d])])}}}),Zt=(0,r.aZ)({name:"xform-el-group-view",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,l.j9)().renderField,n=It(),o=n.collasped,u=n.renderHeader;return function(){var n=e.field.value,l=e.field.fields,a={"xform-item":!0,"xform-el-group":!0,"xform-is-collasped":o.value},i={header:function(){return u(e.field)},default:function(){return l.map((function(l){return t(n[l.name],{parentProps:{disabled:e.disabled}})}))}};return(0,r.Wm)("div",{class:a},[(0,r.Wm)((0,r.up)("el-card"),{shadow:"hover"},i)])}}});const Lt=l.gN.create({icon:Et.Z,type:"group",title:"分组",custom:!0,buttons:[ke.n,l.gN.BUTTON_COPY,l.gN.BUTTON_REMOVE],preview:Ft,setting:wt,build:Ft,view:Zt,onDragOver:function(e){var t=e.currentTarget;if(t.matches(Ct)){e.stopPropagation(),e.preventDefault();var n=e.context,l=n.directionY,r=n.moveMarkEl,o=e.dragElement.contains(t);r(l,o?e.dragElement:e.target,o?e.dragElement.parentElement.closest(jt.DROPPABLE):t)}},onDrop:function(e){e.currentTarget.matches(jt.SCOPE)&&e.stopPropagation()},onValueInit:function(e,t){var n=null==t||"object"!=Tt(t)?{}:t;return e.fields.reduce((function(t,l){var r=l.clone(!0);return r.setValue(n[l.name]),r.setParent(e),t[l.name]=r,t}),{})},onValueSubmit:function(e){var t=e.value;if(null!=t&&"object"==Tt(t)&&0!=Object.keys(t).length)return e.fields.map((function(e){return e.name})).reduce((function(e,n){var l=Reflect.get(t,n,t);if(null!=l){var r=l.conf,o="function"==typeof(null==r?void 0:r.onValueSubmit)?r.onValueSubmit(l):l.value;Reflect.set(e,n,o,e)}return e}),{})},validator:function(e,t,n){var l=e.value,r=Object.keys(l).map((function(e){var t=l[e];return n.mode==At.RECURSIVE?t.validate({mode:At.RECURSIVE}):t.invalid?Promise.reject():Promise.resolve()}));return Promise.allSettled(r).then((function(e){return e.some((function(e){return"rejected"===e.status}))?Promise.reject("请补全必填内容"):Promise.resolve()}))}});var Mt=n(4874),qt=(0,r._)("span",null,"默认值:",-1);function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}var Ht=(0,l.hS)().EVENTS;const Bt=(0,r.aZ)({name:"xform-el-number-setting",props:{field:l.Wi},emits:[Ht.UPDATE_FIELD],setup:function(e){var t=(0,w.Xu)(),n=(0,q.iH)(1),o=(0,w.Et)("integer","attributes"),u=t.useCompatValue((function(e){var t=e.value;return"number"==typeof t?t:(0,l.xb)(t)?NaN:Number(t)}));return(0,r.YP)(o,(function(e){if(e){var t=u.value;isNaN(t)||(u.value=Math.round(t))}})),{integer:o,compatValue:u,version:n,updateValue:function(t){if(!(!0===e.field.attributes.integer))return u.value=t;u.value=Math.round(t),n.value++},clearDefaultValue:function(){u.value=null,n.value++}}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Yt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==Yt(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},X.name,X)}),Gt={classes:{propDefaultValue:"gDh76HrtnYJROGe9waEL"}},Kt=(0,W.Z)(Bt,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-button"),i=(0,r.up)("el-input-number"),d=(0,r.up)("el-checkbox"),f=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(f,{field:e.field},{attributes:(0,r.w5)((function(){return[(0,r.Wm)(d,{title:"勾选则只允许输入整数",modelValue:e.integer,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.integer=t})},{default:(0,r.w5)((function(){return[(0,r.Uk)("整数")]})),_:1},8,["modelValue"])]})),default:(0,r.w5)((function(){return[(0,r._)("section",{class:(0,_.C_)(["xform-el-field-setting-prop",e.classes.propDefaultValue])},[(0,r._)("header",null,[qt,(0,r.Wm)(a,{onClick:e.clearDefaultValue,type:"primary",link:""},{default:(0,r.w5)((function(){return[(0,r.Uk)("清除")]})),_:1},8,["onClick"])]),((0,r.wg)(),(0,r.j4)(i,{"model-value":e.compatValue,key:e.version,placeholder:"[可选] 如果字段没有填写,默认为设定的值","controls-position":"right","onUpdate:modelValue":e.updateValue},null,8,["model-value","onUpdate:modelValue"]))],2)]})),_:1},8,["field"])}],["__cssModules",Gt]]);const Qt=(0,r.aZ)({name:"xform-el-number",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,q.iH)(1),n=(0,w.Hg)(NaN);return{value:n,version:t,updateValue:function(l){if(!(!0===e.field.attributes.integer))return n.value=l;n.value=Math.round(l),t.value++}}}}),zt=(0,W.Z)(Qt,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-input-number");return(0,r.wg)(),(0,r.j4)(a,{key:e.version,id:e.field.uid,name:e.field.name,"model-value":e.value,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,"controls-position":"right",class:"xform-el-number","onUpdate:modelValue":e.updateValue},null,8,["id","name","model-value","placeholder","disabled","onUpdate:modelValue"])}]]),Xt=l.gN.create({icon:Mt.Z,type:"number",title:"数字",setting:Kt,build:zt,validator:function(e,t){return e.required&&(0,l.xb)(t)?Promise.reject("必填"):e.attributes.integer&&!/^[-+]?[1-9]?\d+$/.test(t+"")?Promise.reject("请输入整数"):Promise.resolve()},onValueInit:function(e,t){return parseFloat(t)},logic:[s]});var $t=n(3684);const Jt=(0,r.aZ)({name:"xform-el-radio",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){return{value:(0,w.Hg)(),className:(0,r.Fl)((function(){var t=["xform-el-radio"];return"block"==e.field.attributes.layout&&t.push("xform-el-radio-block"),t}))}}}),en=(0,W.Z)(Jt,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-radio"),i=(0,r.up)("el-radio-group");return(0,r.wg)(),(0,r.j4)(i,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),disabled:e.disabled||e.field.disabled,class:(0,_.C_)(e.className)},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.field.options,(function(t,n){return(0,r.wg)(),(0,r.j4)(a,{key:n,label:t.value,name:e.field.name},null,8,["label","name"])})),128))]})),_:1},8,["modelValue","disabled","class"])}]]);var tn={class:"xform-el-field-setting-prop"},nn=(0,r._)("header",null,"布局:",-1),ln={class:"xform-el-field-setting-prop"},rn=(0,r._)("header",null,"选项:",-1),on={class:"xform-el-field-setting-prop"},un=(0,r._)("header",null,"默认值:",-1);function an(e){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(e)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}function fn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==an(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==an(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===an(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=(0,l.hS)(),sn=cn.BuiltInDefaultValueType,pn=cn.EVENTS;const mn=(0,r.aZ)({name:"xform-el-radio-setting",props:{field:l.Wi},emits:[pn.UPDATE_FIELD],setup:function(){var e=[{value:sn.MANUAL,label:"手动指定"},{value:sn.OPTION_FIRST,label:"首选项"}],t=(0,w.D2)((function(){if(!l.value)return;var e=t.options.value,n=o.value;o.value=e.some((function(e){return e.value==n}))?n:void 0})),n=(0,w.Xu)(e),l=n.useIsManual(),r=n.useCompatType(),o=n.useCompatValue((function(e){return e.value||""}));return function(e){for(var t=1;t=e.field.fields.length-1||e.field.fields[t].move(t+1)}return function(){var l=e.field,i=l.fields.map((function(e,t){var n=l.fields.length;return(0,r.Wm)("div",{class:"xform-el-setting-option xform-el-tabs-option"},[(0,r.Wm)((0,r.up)("el-input"),{placeholder:"请输入标签名称",modelValue:e.title,"onUpdate:modelValue":function(t){return e.title=t}},null),(0,r.Wm)((0,r.up)("el-button"),{type:"primary",link:!0,onClick:u.bind(null,t),disabled:0==t},{default:function(){return[(0,r.Uk)("上移")]}}),(0,r.Wm)((0,r.up)("el-button"),{type:"primary",link:!0,onClick:a.bind(null,t),disabled:t==n-1},{default:function(){return[(0,r.Uk)("下移")]}}),(0,r.Wm)((0,r.up)("el-button"),{type:"danger",link:!0,onClick:o.bind(null,e),disabled:n<=1},{default:function(){return[(0,r.Uk)("删除")]}})])})),d={default:function(){return(0,r.Wm)("div",{class:"xform-el-field-setting-prop"},[(0,r.Wm)("header",null,[(0,r.Uk)("标签:")]),i,(0,r.Wm)((0,r.up)("el-button"),{type:"primary",onClick:n,link:!0},{default:function(){return[(0,r.Uk)("添加标签")]}})])},attributes:function(){return(0,r.Wm)((0,r.up)("el-checkbox"),{name:"".concat(l.name,"-hide-title"),modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},title:"勾选则不显示标题"},{default:function(){return[(0,r.Uk)("隐藏标题")]}})}};return(0,r.Wm)((0,r.up)("field-setting"),{field:l,placeholder:!1,required:!1},d)}},components:Bn({},X.name,X)});function el(e){return e.validation.valid!==zn.ERROR?null:(0,r.Wm)("p",{class:"xform-item-message"},[e.validation.message])}var tl=(0,r.aZ)({name:"xform-el-tabs",props:{field:{type:l.Wi,required:!0},behavior:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,q.iH)(e.field.fields[0].name),n=(0,l.j9)();return(0,r.Jd)((0,r.YP)(e.field.fields,(function(e){e.every((function(e){return e.name!=t.value}))&&(t.value=e[e.length-1].name)}))),function(){var l,o=e.field,u=null!==(l=o.value)&&void 0!==l?l:{},a=e.disabled,i=!0!==o.attributes.hideTitle,d=e.behavior==$n.DESIGNER||n.type==$n.DESIGNER,f=o.fields.map((function(e){var t;return(0,r.Wm)((0,r.up)("el-tab-pane"),{label:e.title,name:e.name,lazy:!0},Gn(t=n.renderField(d?e:u[e.name],{parentProps:{disabled:a},renderPreivew:function(e,t,n,l){return l()}}))?t:{default:function(){return[t]}})})),c={class:Bn({"xform-item":!0,"xform-el-tabs":!0,"xform-is-with-title":i},Qn.IS_ERROR,o.invalid),style:i?{"--xform-el-tabs-field-title":'"'.concat(o.title,'"')}:null};return(0,r.Wm)("div",c,[(0,r.Wm)((0,r.up)("el-tabs"),{modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},type:"border-card"},Gn(f)?f:{default:function(){return[f]}}),el(o)])}}});const nl=l.gN.create({type:"tabs",title:"标签页",icon:Nn.Z,custom:!0,setting:Jn,build:tl,view:tl,dependencies:[Yn],onCreate:function(e,t,n){if(n){var r=new l.Wi(Yn);r.title="标签".concat(e.fields.length+1),e.push(r)}},onValueInit:function(e,t){var n=null!=t?t:{};return e.fields.reduce((function(t,l){var r=l.name,o=l.clone(!0);return o.setValue(n[r]),o.setParent(e),t[r]=o,t}),{})},onValueSubmit:function(e){var t,n=null!==(t=e.value)&&void 0!==t?t:{};return e.fields.map((function(e){return e.name})).reduce((function(e,t){var l,r=n[t],o=null===(l=r.conf)||void 0===l?void 0:l.onValueSubmit;return e[t]="function"==typeof o?o(r):r.value,e}),{})},validator:function(e,t,n){var l=Object.values(null!=t?t:{}).map((function(e){return e.validate({mode:n.mode})}));return Promise.allSettled(l).then((function(e){var t=e.map((function(e){return"rejected"==e.status?e.reason:null})).filter((function(e){return e}));return t.length>0?Promise.reject(t.join("\n")):Promise.resolve()}))}});var ll=n(3161);const rl=(0,r.aZ)({name:"xform-el-text",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,w.Hg)()}}}),ol=(0,W.Z)(rl,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-input");return(0,r.wg)(),(0,r.j4)(a,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,class:"xform-el-text"},null,8,["modelValue","id","name","placeholder","disabled"])}]]);var ul={class:"xform-el-field-setting-prop"},al=(0,r._)("header",null,"默认值:",-1);function il(e){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(e)}var dl=(0,l.hS)().EVENTS;const fl=(0,r.aZ)({name:"xform-el-text-setting",props:{field:l.Wi},emits:[dl.UPDATE_FIELD],setup:function(){return{compatValue:(0,w.Xu)([]).useCompatValue()}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==il(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==il(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===il(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},X.name,X)}),cl=(0,W.Z)(fl,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-input"),i=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(i,{field:e.field},{default:(0,r.w5)((function(){return[(0,r._)("section",ul,[al,(0,r.Wm)(a,{modelValue:e.compatValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,8,["modelValue"])])]})),_:1},8,["field"])}]]),sl=l.gN.create({icon:ll.Z,type:"text",title:"单行文本",setting:cl,build:ol,validator:function(e,t){return e.required&&(0,l.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[f,c]});var pl=n(3923);const ml=(0,r.aZ)({name:"xform-el-textarea",props:{field:{type:l.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,w.Hg)()}}}),vl=(0,W.Z)(ml,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-input");return(0,r.wg)(),(0,r.j4)(a,{type:"textarea",modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,rows:3,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,class:"xform-el-textarea"},null,8,["modelValue","id","name","placeholder","disabled"])}]]);var bl={class:"xform-el-field-setting-prop"},yl=(0,r._)("header",null,"默认值:",-1);function gl(e){return gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gl(e)}var hl=(0,l.hS)().EVENTS;const Ol=(0,r.aZ)({name:"xform-el-textarea-setting",props:{field:l.Wi},emits:[hl.UPDATE_FIELD],setup:function(){return{compatValue:(0,w.Xu)([]).useCompatValue()}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==gl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!==gl(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},X.name,X)}),Pl=(0,W.Z)(Ol,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-input"),i=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(i,{field:e.field},{default:(0,r.w5)((function(){return[(0,r._)("section",bl,[yl,(0,r.Wm)(a,{modelValue:e.compatValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,8,["modelValue"])])]})),_:1},8,["field"])}]]),El=l.gN.create({icon:pl.Z,type:"textarea",title:"多行文本",setting:Pl,build:vl,validator:function(e,t){return e.required&&(0,l.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[f,c]});var Sl=[ae,Me,tt,Pt,Lt,Xt,yn,An,nl,sl,El];const Vl={use:function(){(0,l.sZ)(Sl)},remove:function(){Sl.forEach(l.QZ)}};var _l={class:"xform-setting"},wl=(0,r._)("header",null,"标题后缀:",-1),Tl={class:"xform-setting"},Wl=(0,r._)("header",null,"空值显示为:",-1),xl={class:"xform-setting"},jl=(0,r._)("header",null,"标题位置:",-1);n(6699),n(2023);var kl=(0,l.hS)(),Rl=kl.EVENTS,Ul=kl.LabelPosition,Al=Object.values(Ul);const Nl=(0,r.aZ)({name:"form-setting",props:{schema:{type:l.GH,required:!0}},emits:[Rl.UPDATE_PROP],setup:function(){return{LabelPosition:Ul,labelPosition:(0,w.yj)("labelPosition",(function(e){var t=e.labelPosition;return Al.includes(t)?t:Ul.LEFT})),labelSuffix:(0,w.yj)("labelSuffix"),viewerPlaceholder:(0,w.yj)("viewerPlaceholder")}}}),Dl=(0,W.Z)(Nl,[["render",function(e,t,n,l,o,u){var a=(0,r.up)("el-input"),i=(0,r.up)("el-radio-button"),d=(0,r.up)("el-radio-group");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("section",_l,[wl,(0,r.Wm)(a,{modelValue:e.labelSuffix,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.labelSuffix=t}),placeholder:"请输入标题后缀..."},null,8,["modelValue"])]),(0,r._)("section",Tl,[Wl,(0,r.Wm)(a,{modelValue:e.viewerPlaceholder,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.viewerPlaceholder=t}),placeholder:"查看表单时如果值为空,则显示输入值"},null,8,["modelValue"])]),(0,r._)("section",xl,[jl,(0,r.Wm)(d,{modelValue:e.labelPosition,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.labelPosition=t})},{default:(0,r.w5)((function(){return[(0,r.Wm)(i,{label:e.LabelPosition.LEFT},{default:(0,r.w5)((function(){return[(0,r.Uk)("左对齐")]})),_:1},8,["label"]),(0,r.Wm)(i,{label:e.LabelPosition.TOP},{default:(0,r.w5)((function(){return[(0,r.Uk)("顶部对齐")]})),_:1},8,["label"]),(0,r.Wm)(i,{label:e.LabelPosition.RIGHT},{default:(0,r.w5)((function(){return[(0,r.Uk)("右对齐")]})),_:1},8,["label"])]})),_:1},8,["modelValue"])])],64)}]]);const Cl={name:"element-plus",version:"0.8.1",install:function(){return(0,l.QL)("setting_form",Dl),Vl.use(),S.use(),function(){(0,l.ac)("setting_form"),Vl.remove(),S.remove()}}}}}]); \ No newline at end of file diff --git a/docs/447.a2c9c1d5.js b/docs/447.a2c9c1d5.js deleted file mode 100644 index a7414c6..0000000 --- a/docs/447.a2c9c1d5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkxform=self.webpackChunkxform||[]).push([[447],{2286:(e,t,l)=>{l.r(t),l.d(t,{default:()=>Qn});var n=l(9784),r=l(6252);l(1249),l(4916),l(1539);const a={logicForm:"rPD0B2se_558N8J3zEwk",valueSelect:"Sj0x4FkQGA7lrN6KIFh0"};var u=l(8018),o=(l(9826),(0,n.hS)().CLASS);function i(e,t){var l=t.parent.find(e.field);if(null==l)return(0,r.Wm)("div",{class:o.IS_WARNING},[(0,r.Uk)("当前逻辑失效,目标字段被删除或位置发生变化")]);var n=(0,r.Wm)("strong",{class:a.warnFieldTitle},[l.title]);return(0,r.Wm)("div",{class:o.IS_WARNING},[(0,r.Uk)("当前逻辑失效,目标字段"),n,(0,r.Uk)("的位置发生变化")])}function d(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.lA)(e)}var c=n.gN.createFieldLogic({type:"string_value_compare",title:"值",render:function(e,t){var l=t.previousField(e.field);if(null==l)return i(e,t);var n=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_CONTAINS,u.d.OPERATOR_EMPTY].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{label:e.title,value:e.type},null)})),o=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},d(n)?n:{default:function(){return[n]}}),c=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-input"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null);return(0,r.Wm)("div",{class:a.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[l?l.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的值")]),o,c])},test:function(e,t){var l=u.d.get(e.operator);if(null==l)return!0;var n=t.previousField(e.field);return null==n||l.test(n.value,e.value)},validator:function(e){return e.operator==u.d.OPERATOR_EMPTY.type||(!(0,n.xb)(e.value)||"请补全目标值")},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}}),f=n.gN.createFieldLogic({type:"string_length_compare",title:"长度",render:function(e,t){var l=t.previousField(e.field);if(null==l)return i(e,t);var n=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_LT,u.d.OPERATOR_LTE,u.d.OPERATOR_GT,u.d.OPERATOR_GTE].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{label:e.title,value:e.type},null)})),o=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},d(n)?n:{default:function(){return[n]}}),c=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-input-number"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值","controls-position":"right",min:0,"step-strictly":!0},null);return(0,r.Wm)("div",{class:a.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[l?l.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的长度")]),o,c])},test:function(e,t){var l=u.d.get(e.operator);if(null==l)return!0;var n=t.previousField(e.field);if(null==n)return!0;var r=n.value;return"string"==typeof r&&l.test(r.length,e.value)},validator:function(e){return!(0,n.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}});l(8309);var s=n.gN.createFieldLogic({type:"number_value_compare",title:"值",render:function(e,t){var l=t.previous().find((function(t){return t.name==e.field}));if(null==l)return i(e,t);var n,o=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_LT,u.d.OPERATOR_LTE,u.d.OPERATOR_GT,u.d.OPERATOR_GTE].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{value:e.type,label:e.title},null)})),d=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},"function"==typeof(n=o)||"[object Object]"===Object.prototype.toString.call(n)&&!(0,r.lA)(n)?o:{default:function(){return[o]}}),c=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-input-number"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值","controls-position":"right",min:0,"step-strictly":!0},null);return(0,r.Wm)("div",{class:a.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[l?l.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的值")]),d,c])},test:function(e,t){var l=u.d.get(e.operator);if(null==l)return!0;var n=t.previousField(e.field);if(null==n)return!0;var r=n.value;return"number"==typeof r&&l.test(r,e.value)},validator:function(e){return!(0,n.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}});var p=n.gN.createFieldLogic({type:"date_value_compare",title:"值",render:function(e,t){var l,n,o=t.previousField(e.field);if(null==o)return i(e,t);var d,c=[u.d.OPERATOR_EQ,u.d.OPERATOR_NE,u.d.OPERATOR_LT,u.d.OPERATOR_LTE,u.d.OPERATOR_GT,u.d.OPERATOR_GTE,u.d.OPERATOR_EMPTY].map((function(e){return(0,r.Wm)((0,r.up)("el-option"),{value:e.type,label:e.title},null)})),f=(0,r.Wm)((0,r.up)("el-select"),{modelValue:e.operator,"onUpdate:modelValue":function(t){return e.operator=t}},"function"==typeof(d=c)||"[object Object]"===Object.prototype.toString.call(d)&&!(0,r.lA)(d)?c:{default:function(){return[c]}}),s=e.operator===u.d.OPERATOR_EMPTY.type?null:(0,r.Wm)((0,r.up)("el-date-picker"),{modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值",format:null===(l=o.attributes)||void 0===l?void 0:l.format,"value-format":null===(n=o.attributes)||void 0===n?void 0:n.valueFormat},null);return(0,r.Wm)("div",{class:a.logicForm},[(0,r.Wm)("span",null,[(0,r.Uk)("如果")]),(0,r.Wm)("strong",null,[o?o.title:"N/A"]),(0,r.Wm)("span",null,[(0,r.Uk)("的值")]),f,s])},test:function(e,t){var l=u.d.get(e.operator);if(null==l)return!0;var n=t.previousField(e.field);return null==n||l.test(n.value,e.value)},validator:function(e){return!(0,n.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=u.d.OPERATOR_EQ.type)}}),m=l(9963);l(9753),l(7042),l(1038),l(8783),l(2526),l(1817),l(2165),l(6992),l(3948);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){var l="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!l){if(Array.isArray(e)||(l=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var l=Object.prototype.toString.call(e).slice(8,-1);"Object"===l&&e.constructor&&(l=e.constructor.name);if("Map"===l||"Set"===l)return Array.from(e);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){l&&(e=l);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}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 a,u=!0,o=!1;return{s:function(){l=l.call(e)},n:function(){var e=l.next();return u=e.done,e},e:function(e){o=!0,a=e},f:function(){try{u||null==l.return||l.return()}finally{if(o)throw a}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,n=new Array(t);le.length)&&(t=e.length);for(var l=0,n=new Array(t);le.length)&&(t=e.length);for(var l=0,n=new Array(t);l=0&&(l.splice(n,1),t.value=l)}return(0,r.Jd)((function(){o.value=null,d=null})),function(){var n,a=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==a.length)return(0,r.Wm)("div",{class:"xform-is-unknown"},[(0,r.Uk)("请放入至少一个字段")]);var m=e.disabled||e.field.disabled,v=null!==(n=e.field.attributes.colWidths)&&void 0!==n?n:{},b={default:function(){var e={header:function(){return m?"#":(0,r.Wm)((0,r.up)("el-button"),{onClick:c.bind(null,null),type:"primary",size:"small",link:!0},{default:function(){return[(0,r.Uk)("添加")]}})}},t={default:function(e){return[(0,r.Wm)((0,r.up)("el-button"),{onClick:c.bind(null,e.row),type:"primary",size:"small",link:!0},{default:function(){return[(0,r.Uk)("编辑")]}}),(0,r.Wm)((0,r.up)("el-button"),{onClick:p.bind(null,e.row),type:"danger",size:"small",link:!0},{default:function(){return[(0,r.Uk)("删除")]}})]}},l=a.map((function(e){var t,l=null!==(t=v[e.name])&&void 0!==t?t:xe,n={default:function(t){var l=t.row[e.name];return i.renderField(l,{parentProps:{disabled:m},renderItem:function(e,t){return t.custom=!0,(0,r.h)(e,t,(function(){var e;return null!==(e=l.value)&&void 0!==e?e:u.value.viewerPlaceholder}))}})}};return(0,r.Wm)((0,r.up)("el-table-column"),{prop:e.name,label:e.title,"min-width":l,"label-class-name":e.required?"xform-is-required":null},n)}));return[(0,r.Wm)((0,r.up)("el-table-column"),{type:"index",fixed:"left",width:"60px"},e)].concat(Ze(l),[m?null:(0,r.Wm)((0,r.up)("el-table-column"),{label:"操作",fixed:"right",width:"100px",aligh:"right"},t)])}},y={default:function(){return l.value?(0,r.Wm)((0,r.up)("xform-builder"),{schema:o.value,ref:"form",onSubmit:s},{default:function(){return[(0,r.Wm)("button",{class:"xform-is-hidden",type:"submit"},null)]}}):null},footer:function(){return(0,r.Wm)("div",null,[(0,r.Wm)((0,r.up)("el-button"),{onClick:f},{default:function(){return[(0,r.Uk)("取消")]}}),(0,r.Wm)((0,r.up)("el-button"),{type:"primary",onClick:s},{default:function(){return[(0,r.Uk)("确定")]}})])}},g={"xform-el-datatable":!0,"xform-el-datatable-is-empty":0==t.value.length},O="".concat(null==d?"添加":"编辑","数据");return(0,r.Wm)(r.HY,null,[(0,r.Wm)((0,r.up)("el-table"),{class:g,size:"small","data-layout":"modal",data:t.value},b),(0,r.Wm)((0,r.up)("el-dialog"),{modelValue:l.value,"onUpdate:modelValue":function(e){return l.value=e},title:O,"custom-class":"xform-el-datatable-dialog","append-to-body":!0},y)])}}var qe=l(7736);function Ye(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var He=(0,n.hS)(),Be=He.CLASS,Ge=He.PROPS,Ke=He.EVENTS,Qe=He.EnumValidateMode,ze=(0,r.aZ)({name:"xform-el-datatable-preview",props:{field:{type:n.Wi,required:!0}},setup:function(e){var t=(0,n.j9)();return function(){var l,n,a=e.field,u=a.fields,o=null!==(l=a.attributes.colWidths)&&void 0!==l?l:{},i=0==u.length?(0,r.Wm)("p",{class:"".concat(Be.IS_EMPTY_TIP," xform-el-empty-tip")},[(0,r.Uk)("请将左侧控件拖动到此处")]):u.map((function(e){return t.renderField(e,{renderItem:function(){var t,l={"xform-el-datatable-cell":!0,"xform-is-required":e.required},n={width:"".concat(null!==(t=o[e.name])&&void 0!==t?t:xe,"px")};return(0,r.Wm)("div",{class:l,style:n},[(0,r.Wm)("span",null,[e.title])])}})})),d=(Ye(n={class:"".concat(ke," ").concat(Be.DROPPABLE," ").concat(Be.SCOPE)},"."+Ge.FIELD,e.field),Ye(n,"."+Ge.SCOPE,e.field),n);return(0,r.Wm)("div",{class:"xform-el-datatable ".concat(Be.IS_SCROLL," ").concat(Be.IS_HORIZONTAL_SCROLL)},[(0,r.Wm)("div",d,[i])])}}}),Xe=(0,r.aZ)({name:"xform-el-datatable",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},emits:[Ke.UPDATE_VALUE],setup:function(e){var t=(0,W.Hg)(),l=Me(e,t),a=function(e,t){var l=(0,n.j9)();function a(){var l=e.field.fields.reduce((function(t,l){var n=l.clone(!0);return n.setParent(e.field),t[l.name]=n,t}),{}),n=t.value;n.push(l),t.value=n}function u(e){var l=t.value,n=l.indexOf(e);n>=0&&(l.splice(n,1),t.value=l)}return function(){var n=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==n.length)return(0,r.Wm)("div",{class:"xform-is-unknown"},[(0,r.Uk)("请放入至少一个字段")]);var o=e.disabled||e.field.disabled,i={default:function(){var t,i={default:function(e){return[(0,r.Wm)("strong",{class:"xform-el-datatable-row-index"},[e.$index+1]),o?null:(0,r.Wm)((0,r.up)("el-button"),{onClick:u.bind(null,e.row),type:"danger",size:"small",link:!0,class:"xform-el-datatable-remove"},{default:function(){return[(0,r.Uk)("删除")]}})]},header:function(){return o?"#":(0,r.Wm)((0,r.up)("el-button"),{onClick:a,type:"primary",size:"small",link:!0},{default:function(){return[(0,r.Uk)("添加")]}})}},d=null!==(t=e.field.attributes.colWidths)&&void 0!==t?t:{},c=n.map((function(e){var t,n=null!==(t=d[e.name])&&void 0!==t?t:xe,a={default:function(t){return l.renderField(t.row[e.name],{parentProps:{disabled:o},renderItem:function(e,t,l){return t.label=!1,(0,r.h)(e,t,l)}})}};return(0,r.Wm)((0,r.up)("el-table-column"),{prop:e.name,label:e.title,"min-width":n,"label-class-name":e.required?"xform-is-required":null},a)}));return[(0,r.Wm)((0,r.up)("el-table-column"),{type:"index",fixed:"left",width:"60px"},i)].concat(Ie(c))}},d={"xform-el-datatable":!0,"xform-el-datatable-is-empty":0==t.value.length};return(0,r.Wm)((0,r.up)("el-table"),{data:t.value,size:"small",class:d,"data-layout":"inline"},i)}}(e,t);return function(){return"inline"==e.field.attributes.layout?a():l()}}}),$e=(0,r.aZ)({name:"xform-el-datatable-view",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,W.Hg)(),l=(0,n.j9)(),a=(0,n.I_)();return function(){var n,u=e.field.fields;if(!Array.isArray(t.value)||0==t.value.length||0==u.length)return(0,r.Wm)("span",{class:"xform-viewer-value"},[a.value.viewerPlaceholder]);var o=null!==(n=e.field.attributes.colWidths)&&void 0!==n?n:{},i=t.value,d=u.map((function(e){var t,n=null!==(t=o[e.name])&&void 0!==t?t:xe,a={default:function(t){return l.renderField(t.row[e.name],{renderItem:function(e,t,l){return l()}})}};return(0,r.Wm)((0,r.up)("el-table-column"),{prop:e.name,label:e.title,"min-width":n,"label-class-name":e.required?"xform-is-required":null},a)}));return(0,r.Wm)((0,r.up)("el-table"),{data:i,size:"small",class:"xform-el-datatable"},{default:function(){return[(0,r.Wm)((0,r.up)("el-table-column"),{type:"index",width:60,fixed:"left"},null),d]}})}}});const Je=n.gN.create({type:"datatable",title:"数据表格",icon:ye.Z,buttons:[qe.n,n.gN.BUTTON_COPY,n.gN.BUTTON_REMOVE],accept:["text","textarea","number","select","radio","checkbox","date"],setting:Ce,preview:ze,build:Xe,view:$e,onDragOver:function(e){var t=e.currentTarget;if(t.matches("."+ke)){e.stopPropagation(),e.preventDefault();var l=e.context,n=l.directionX,r=l.moveMarkEl,a=l.getRootScopeEl,u=e.dragElement.contains(t);r(n,u?e.dragElement:e.target,u?a():t)}},onDrop:function(e){e.stopPropagation()},onCreate:function(e,t,l){l&&(e.attributes.colWidths={},e.attributes.layout="modal")},onSubmit:function(e){var t,l,n=null!==(t=null===(l=e.attributes)||void 0===l?void 0:l.colWidths)&&void 0!==t?t:{},r=e.fields.map((function(e){return e.name}));for(var a in n)r.indexOf(a)<0&&delete n[a];return e},onValueInit:function(e,t){if(!Array.isArray(t))return[];var l=e.fields;return t.map((function(t){return l.reduce((function(l,n){var r=n.clone(!0);return r.setValue(t[n.name]),r.setParent(e),l[n.name]=r,l}),{})}))},onValueSubmit:function(e){if(Array.isArray(e.value)){var t=e.fields;return e.value.map((function(e){return t.map((function(e){return e.name})).reduce((function(t,l){var n,r=e[l],a=null===(n=r.conf)||void 0===n?void 0:n.onValueSubmit;return t[r.name]="function"==typeof a?a(r):r.value,t}),{})}))}},validator:function(e,t,l){if(e.required&&(0,n.xb)(t))return Promise.reject("必填");var r=t.reduce((function(e,t){return e.concat(Object.values(t))}),[]).map((function(e){return l.mode==Qe.RECURSIVE?e.validate({mode:Qe.RECURSIVE}):e.invalid?Promise.reject():Promise.resolve()}));return Promise.allSettled(r).then((function(e){return e.some((function(e){return"rejected"===e.status}))?Promise.reject("请补全必填内容"):Promise.resolve()}))},onValidate:function(e){return(0,n.xb)(e.title)?Promise.reject("标题为空"):0==e.fields.length?Promise.reject("至少需要一个字段"):Promise.resolve()}});var et=l(6113);const tt=(0,r.aZ)({name:"xform-el-date",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,W.Hg)(),popperOptions:{placement:"bottom-start"}}}}),lt=(0,x.Z)(tt,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-date-picker");return(0,r.wg)(),(0,r.j4)(o,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),name:e.field.name,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,format:e.field.attributes.format,"value-format":e.field.attributes.valueFormat,editable:!1,"popper-options":e.popperOptions,class:"xform-el-date"},null,8,["modelValue","name","placeholder","disabled","format","value-format","popper-options"])}]]);var nt={class:"xform-el-field-setting-prop"},rt=(0,r._)("header",null,"默认值:",-1);var at=(0,n.hS)(),ut=at.BuiltInDefaultValueType,ot=at.EVENTS;const it=(0,r.aZ)({name:"xform-el-date-setting",props:{field:n.Wi},emits:[ot.UPDATE_FIELD],setup:function(){var e=[{value:ut.MANUAL,label:"手动指定"},{value:ut.DATE_NOW,label:"当前时间"}],t=(0,W.Xu)(e);return{isManual:t.useIsManual(),compatType:t.useCompatType(),compatValue:t.useCompatValue(),defTypes:e,popperOptions:{placement:"bottom-end"}}},components:function(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}({},oe.name,oe)}),dt={classes:{defaultValue:"W1_4cM9t0XUQp3kkRER9"}},ct=(0,x.Z)(it,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-option"),i=(0,r.up)("el-select"),d=(0,r.up)("el-date-picker"),c=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(c,{field:e.field},{default:(0,r.w5)((function(){return[(0,r._)("section",nt,[rt,(0,r._)("div",{class:(0,w.C_)(e.classes.defaultValue)},[(0,r.Wm)(i,{modelValue:e.compatType,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatType=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.defTypes,(function(e,t){return(0,r.wg)(),(0,r.j4)(o,{key:t,value:e.value,label:e.label||e.value},null,8,["value","label"])})),128))]})),_:1},8,["modelValue"]),e.isManual?((0,r.wg)(),(0,r.j4)(d,{key:0,modelValue:e.compatValue,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.compatValue=t}),placeholder:"请选择默认时间",format:e.field.attributes.format,"value-format":e.field.attributes.valueFormat,editable:!1,"popper-options":e.popperOptions},null,8,["modelValue","format","value-format","popper-options"])):(0,r.kq)("",!0)],2)])]})),_:1},8,["field"])}],["__cssModules",dt]]),ft=n.gN.create({icon:et.Z,type:"date",title:"日期",setting:ct,build:lt,onCreate:function(e){var t,l;e.attributes.format=null!==(t=e.attributes.format)&&void 0!==t?t:"YYYY-MM-DD",e.attributes.valueFormat=null!==(l=e.attributes.valueFormat)&&void 0!==l?l:"YYYY-MM-DD"},validator:function(e,t){return e.required&&(0,n.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[p]});var st=l(2209);var pt=l(898);const mt=(0,r.aZ)({name:"xform-el-divider",inheritAttrs:!1,props:{field:{type:n.Wi,required:!0}},components:function(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}({},pt.Z.name,pt.Z)}),vt=(0,x.Z)(mt,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("xform-divider");return(0,r.wg)(),(0,r.j4)(o,{class:"xform-item xform-el-divider",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 bt,yt={class:"xform-el-field-setting-prop xform-divider-types"},gt=(0,r._)("header",null,"样式:",-1),Ot={class:"xform-el-field-setting-prop"},ht=(0,r._)("header",null,"间距:",-1),Vt={class:"xform-el-divider-range"},_t=(0,r._)("label",null,"上间距:",-1),Et={class:"xform-el-divider-range"},Pt=(0,r._)("label",null,"下间距:",-1);function wt(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var Wt=(0,n.hS)().EVENTS;const Tt=(0,r.aZ)({name:"xform-el-divider-setting",props:{field:n.Wi},emits:[Wt.UPDATE_FIELD],setup:function(){return{types:["solid","dashed","double","solid-dashed","dashed-solid"],compatType:(0,W.Et)("type","attributes"),compatTop:(0,W.Et)("top","attributes"),compatBottom:(0,W.Et)("bottom","attributes")}},components:(bt={},wt(bt,pt.Z.name,pt.Z),wt(bt,oe.name,oe),bt)}),xt=(0,x.Z)(Tt,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("xform-divider"),i=(0,r.up)("el-radio"),d=(0,r.up)("el-slider"),c=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(c,{field:e.field,placeholder:!1,attributes:!1},{default:(0,r.w5)((function(){return[(0,r._)("section",yt,[gt,((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.types,(function(l){return(0,r.wg)(),(0,r.j4)(i,{key:l,modelValue:e.compatType,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatType=t}),name:"setting-divider-type",label:l},{default:(0,r.w5)((function(){return[(0,r.Wm)(o,{type:l},null,8,["type"])]})),_:2},1032,["modelValue","label"])})),128))]),(0,r._)("section",Ot,[ht,(0,r._)("div",Vt,[_t,(0,r.Wm)(d,{modelValue:e.compatTop,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.compatTop=t}),min:0,max:100,step:5,"show-stops":""},null,8,["modelValue"])]),(0,r._)("div",Et,[Pt,(0,r.Wm)(d,{modelValue:e.compatBottom,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.compatBottom=t}),min:0,max:100,step:5,"show-stops":""},null,8,["modelValue"])])])]})),_:1},8,["field"])}]]),kt=n.gN.create({icon:st.Z,type:"divider",title:"分割线",custom:!0,setting:xt,build:vt,view:vt,onCreate:function(e,t,l){l&&(e.attributes.type="solid",e.attributes.top=0,e.attributes.bottom=0)}});l(4819),l(3593);var Rt=l(1993),Ut=(0,r.Uk)("允许收起");var jt=(0,n.hS)().EVENTS;const St=(0,r.aZ)({name:"xform-el-group-setting",props:{field:n.Wi},emits:[jt.UPDATE_FIELD],setup:function(){return{collapsable:(0,W.Et)("collapsable","attributes")}},components:function(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}({},oe.name,oe)}),At=(0,x.Z)(St,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-checkbox"),i=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(i,{field:e.field,placeholder:!1,required:!1},{attributes:(0,r.w5)((function(){return[(0,r.Wm)(o,{name:"".concat(e.field.name,"-collapsable"),modelValue:e.collapsable,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.collapsable=t}),title:"勾选则支持展开/收起分组"},{default:(0,r.w5)((function(){return[Ut]})),_:1},8,["name","modelValue"])]})),_:1},8,["field"])}]]);function Nt(e){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(e)}function Dt(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var Ct=(0,n.hS)(),It=Ct.SELECTOR,Ft=Ct.CLASS,Zt=Ct.EnumRenderType,Lt=Ct.PROPS,Mt=Ct.EnumValidateMode,qt=Ct.EnumValidityState,Yt="xform-el-group-list",Ht=".".concat(Yt);function Bt(){var e=(0,z.iH)(!1);function t(){e.value=!e.value}return{collasped:e,renderHeader:function(l){if(null==l.title)return null;var n=!0===l.attributes.collapsable?(0,r.Wm)((0,r.up)("el-button"),{type:"text",title:e.value?"展开":"收起",onClick:t,size:"small"},{default:function(){return[e.value?"展开":"收起"]}}):null;return(0,r.Wm)("div",{class:"xform-el-card-header"},[(0,r.Wm)("h3",null,[l.title]),n])}}}var Gt=(0,r.aZ)({name:"xform-el-group",props:{field:{type:n.Wi,required:!0},behavior:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup:function(e){var t=Bt(),l=t.collasped,a=t.renderHeader,u=(0,n.j9)();return function(){var t,n=e.field.value,o=e.field.fields,i=e.behavior==Zt.DESIGNER||u.type==Zt.DESIGNER,d=e.field.validation.message,c=e.disabled,f=Dt({"xform-item":!0,"xform-el-group":!0,"xform-is-collasped":l.value},Ft.IS_ERROR,e.field.validation.valid==qt.ERROR),s=i&&0==o.length?(0,r.Wm)("p",{class:[Ft.IS_EMPTY_TIP,"xform-el-empty-tip"]},[(0,r.Uk)("请将左侧控件拖动到此处")]):null,p=o.map((function(e){return u.renderField(i?e:n[e.name],{parentProps:{disabled:c}})})),m=Dt({class:(t={},Dt(t,Yt,!0),Dt(t,Ft.DROPPABLE,i),Dt(t,Ft.SCOPE,i),t)},"."+Lt.FIELD,i?e.field:void 0),v={header:function(){return a(e.field)},default:function(){return(0,r.Wm)("div",m,[s,p])}};return(0,r.Wm)("div",{class:f},[(0,r.Wm)((0,r.up)("el-card"),{shadow:i?"never":"hover"},v),d&&(0,r.Wm)("p",{class:"xform-item-message"},[d])])}}}),Kt=(0,r.aZ)({name:"xform-el-group-view",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,n.j9)().renderField,l=Bt(),a=l.collasped,u=l.renderHeader;return function(){var l=e.field.value,n=e.field.fields,o={"xform-item":!0,"xform-el-group":!0,"xform-is-collasped":a.value},i={header:function(){return u(e.field)},default:function(){return n.map((function(n){return t(l[n.name],{parentProps:{disabled:e.disabled}})}))}};return(0,r.Wm)("div",{class:o},[(0,r.Wm)((0,r.up)("el-card"),{shadow:"hover"},i)])}}});const Qt=n.gN.create({icon:Rt.Z,type:"group",title:"分组",custom:!0,buttons:[qe.n,n.gN.BUTTON_COPY,n.gN.BUTTON_REMOVE],preview:Gt,setting:At,build:Gt,view:Kt,onDragOver:function(e){var t=e.currentTarget;if(t.matches(Ht)){e.stopPropagation(),e.preventDefault();var l=e.context,n=l.directionY,r=l.moveMarkEl,a=e.dragElement.contains(t);r(n,a?e.dragElement:e.target,a?e.dragElement.parentElement.closest(It.DROPPABLE):t)}},onDrop:function(e){e.currentTarget.matches(It.SCOPE)&&e.stopPropagation()},onValueInit:function(e,t){var l=null==t||"object"!=Nt(t)?{}:t;return e.fields.reduce((function(t,n){var r=n.clone(!0);return r.setValue(l[n.name]),r.setParent(e),t[n.name]=r,t}),{})},onValueSubmit:function(e){var t=e.value;if(null!=t&&"object"==Nt(t)&&0!=Object.keys(t).length)return e.fields.map((function(e){return e.name})).reduce((function(e,l){var n=Reflect.get(t,l,t);if(null!=n){var r=n.conf,a="function"==typeof(null==r?void 0:r.onValueSubmit)?r.onValueSubmit(n):n.value;Reflect.set(e,l,a,e)}return e}),{})},validator:function(e,t,l){var n=e.value,r=Object.keys(n).map((function(e){var t=n[e];return l.mode==Mt.RECURSIVE?t.validate({mode:Mt.RECURSIVE}):t.invalid?Promise.reject():Promise.resolve()}));return Promise.allSettled(r).then((function(e){return e.some((function(e){return"rejected"===e.status}))?Promise.reject("请补全必填内容"):Promise.resolve()}))}});var zt=l(4874),Xt=(0,r._)("span",null,"默认值:",-1),$t=(0,r.Uk)("清除"),Jt=(0,r.Uk)("整数");l(9653);var el=(0,n.hS)().EVENTS;const tl=(0,r.aZ)({name:"xform-el-number-setting",props:{field:n.Wi},emits:[el.UPDATE_FIELD],setup:function(e){var t=(0,W.Xu)(),l=(0,z.iH)(1),a=(0,W.Et)("integer","attributes"),u=t.useCompatValue((function(e){var t=e.value;return"number"==typeof t?t:(0,n.xb)(t)?NaN:Number(t)}));return(0,r.YP)(a,(function(e){if(e){var t=u.value;isNaN(t)||(u.value=Math.round(t))}})),{integer:a,compatValue:u,version:l,updateValue:function(t){if(!(!0===e.field.attributes.integer))return u.value=t;u.value=Math.round(t),l.value++},clearDefaultValue:function(){u.value=null,l.value++}}},components:function(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}({},oe.name,oe)}),ll={classes:{propDefaultValue:"gDh76HrtnYJROGe9waEL"}},nl=(0,x.Z)(tl,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-button"),i=(0,r.up)("el-input-number"),d=(0,r.up)("el-checkbox"),c=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(c,{field:e.field},{attributes:(0,r.w5)((function(){return[(0,r.Wm)(d,{title:"勾选则只允许输入整数",modelValue:e.integer,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.integer=t})},{default:(0,r.w5)((function(){return[Jt]})),_:1},8,["modelValue"])]})),default:(0,r.w5)((function(){return[(0,r._)("section",{class:(0,w.C_)(["xform-el-field-setting-prop",e.classes.propDefaultValue])},[(0,r._)("header",null,[Xt,(0,r.Wm)(o,{onClick:e.clearDefaultValue,type:"primary",link:""},{default:(0,r.w5)((function(){return[$t]})),_:1},8,["onClick"])]),((0,r.wg)(),(0,r.j4)(i,{"model-value":e.compatValue,key:e.version,placeholder:"[可选] 如果字段没有填写,默认为设定的值","controls-position":"right","onUpdate:modelValue":e.updateValue},null,8,["model-value","onUpdate:modelValue"]))],2)]})),_:1},8,["field"])}],["__cssModules",ll]]);const rl=(0,r.aZ)({name:"xform-el-number",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,z.iH)(1),l=(0,W.Hg)(NaN);return{value:l,version:t,updateValue:function(n){if(!(!0===e.field.attributes.integer))return l.value=n;l.value=Math.round(n),t.value++}}}}),al=(0,x.Z)(rl,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-input-number");return(0,r.wg)(),(0,r.j4)(o,{key:e.version,id:e.field.uid,name:e.field.name,"model-value":e.value,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,"controls-position":"right",class:"xform-el-number","onUpdate:modelValue":e.updateValue},null,8,["id","name","model-value","placeholder","disabled","onUpdate:modelValue"])}]]),ul=n.gN.create({icon:zt.Z,type:"number",title:"数字",setting:nl,build:al,validator:function(e,t){return e.required&&(0,n.xb)(t)?Promise.reject("必填"):e.attributes.integer&&!/^[-+]?[1-9]?\d+$/.test(t+"")?Promise.reject("请输入整数"):Promise.resolve()},onValueInit:function(e,t){return parseFloat(t)},logic:[s]});var ol=l(3684);const il=(0,r.aZ)({name:"xform-el-radio",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){return{value:(0,W.Hg)(),className:(0,r.Fl)((function(){var t=["xform-el-radio"];return"block"==e.field.attributes.layout&&t.push("xform-el-radio-block"),t}))}}}),dl=(0,x.Z)(il,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-radio"),i=(0,r.up)("el-radio-group");return(0,r.wg)(),(0,r.j4)(i,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),disabled:e.disabled||e.field.disabled,class:(0,w.C_)(e.className)},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.field.options,(function(t,l){return(0,r.wg)(),(0,r.j4)(o,{key:l,label:t.value,name:e.field.name},null,8,["label","name"])})),128))]})),_:1},8,["modelValue","disabled","class"])}]]);var cl={class:"xform-el-field-setting-prop"},fl=(0,r._)("header",null,"布局:",-1),sl=(0,r.Uk)("行内"),pl=(0,r.Uk)("换行"),ml={class:"xform-el-field-setting-prop"},vl=(0,r._)("header",null,"选项:",-1),bl=(0,r.Uk)("删除"),yl=(0,r.Uk)("添加选项"),gl={class:"xform-el-field-setting-prop"},Ol=(0,r._)("header",null,"默认值:",-1);function hl(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),l.push.apply(l,n)}return l}function Vl(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var _l=(0,n.hS)(),El=_l.BuiltInDefaultValueType,Pl=_l.EVENTS;const wl=(0,r.aZ)({name:"xform-el-radio-setting",props:{field:n.Wi},emits:[Pl.UPDATE_FIELD],setup:function(){var e=[{value:El.MANUAL,label:"手动指定"},{value:El.OPTION_FIRST,label:"首选项"}],t=(0,W.D2)((function(){if(!n.value)return;var e=t.options.value,l=a.value;a.value=e.some((function(e){return e.value==l}))?l:void 0})),l=(0,W.Xu)(e),n=l.useIsManual(),r=l.useCompatType(),a=l.useCompatValue((function(e){return e.value||""}));return function(e){for(var t=1;t=e.field.fields.length-1||e.field.fields[t].move(t+1)}return function(){var n=e.field,i=n.fields.map((function(e,t){var l=n.fields.length;return(0,r.Wm)("div",{class:"xform-el-setting-option xform-el-tabs-option"},[(0,r.Wm)((0,r.up)("el-input"),{placeholder:"请输入标签名称",modelValue:e.title,"onUpdate:modelValue":function(t){return e.title=t}},null),(0,r.Wm)((0,r.up)("el-button"),{type:"primary",link:!0,onClick:u.bind(null,t),disabled:0==t},{default:function(){return[(0,r.Uk)("上移")]}}),(0,r.Wm)((0,r.up)("el-button"),{type:"primary",link:!0,onClick:o.bind(null,t),disabled:t==l-1},{default:function(){return[(0,r.Uk)("下移")]}}),(0,r.Wm)((0,r.up)("el-button"),{type:"danger",link:!0,onClick:a.bind(null,e),disabled:l<=1},{default:function(){return[(0,r.Uk)("删除")]}})])})),d={default:function(){return(0,r.Wm)("div",{class:"xform-el-field-setting-prop"},[(0,r.Wm)("header",null,[(0,r.Uk)("标签:")]),i,(0,r.Wm)((0,r.up)("el-button"),{type:"primary",onClick:l,link:!0},{default:function(){return[(0,r.Uk)("添加标签")]}})])},attributes:function(){return(0,r.Wm)((0,r.up)("el-checkbox"),{name:"".concat(n.name,"-hide-title"),modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},title:"勾选则不显示标题"},{default:function(){return[(0,r.Uk)("隐藏标题")]}})}};return(0,r.Wm)((0,r.up)("field-setting"),{field:n,placeholder:!1,required:!1},d)}},components:ln({},oe.name,oe)});function fn(e){return e.validation.valid!==un.ERROR?null:(0,r.Wm)("p",{class:"xform-item-message"},[e.validation.message])}var sn=(0,r.aZ)({name:"xform-el-tabs",props:{field:{type:n.Wi,required:!0},behavior:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,z.iH)(e.field.fields[0].name),l=(0,n.j9)();return(0,r.Jd)((0,r.YP)(e.field.fields,(function(e){e.every((function(e){return e.name!=t.value}))&&(t.value=e[e.length-1].name)}))),function(){var n,a=e.field,u=null!==(n=a.value)&&void 0!==n?n:{},o=e.disabled,i=!0!==a.attributes.hideTitle,d=e.behavior==dn.DESIGNER||l.type==dn.DESIGNER,c=a.fields.map((function(e){var t;return(0,r.Wm)((0,r.up)("el-tab-pane"),{label:e.title,name:e.name,lazy:!0},nn(t=l.renderField(d?e:u[e.name],{parentProps:{disabled:o},renderPreivew:function(e,t,l,n){return n()}}))?t:{default:function(){return[t]}})})),f={class:ln({"xform-item":!0,"xform-el-tabs":!0,"xform-is-with-title":i},an.IS_ERROR,a.invalid),style:i?{"--xform-el-tabs-field-title":'"'.concat(a.title,'"')}:null};return(0,r.Wm)("div",f,[(0,r.Wm)((0,r.up)("el-tabs"),{modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},type:"border-card"},nn(c)?c:{default:function(){return[c]}}),fn(a)])}}});const pn=n.gN.create({type:"tabs",title:"标签页",icon:Gl.Z,custom:!0,setting:cn,build:sn,view:sn,dependencies:[tn],onCreate:function(e,t,l){if(l){var r=new n.Wi(tn);r.title="标签".concat(e.fields.length+1),e.push(r)}},onValueInit:function(e,t){var l=null!=t?t:{};return e.fields.reduce((function(t,n){var r=n.name,a=n.clone(!0);return a.setValue(l[r]),a.setParent(e),t[r]=a,t}),{})},onValueSubmit:function(e){var t,l=null!==(t=e.value)&&void 0!==t?t:{};return e.fields.map((function(e){return e.name})).reduce((function(e,t){var n,r=l[t],a=null===(n=r.conf)||void 0===n?void 0:n.onValueSubmit;return e[t]="function"==typeof a?a(r):r.value,e}),{})},validator:function(e,t,l){var n=Object.values(null!=t?t:{}).map((function(e){return e.validate({mode:l.mode})}));return Promise.allSettled(n).then((function(e){var t=e.map((function(e){return"rejected"==e.status?e.reason:null})).filter((function(e){return e}));return t.length>0?Promise.reject(t.join("\n")):Promise.resolve()}))}});var mn=l(3161);const vn=(0,r.aZ)({name:"xform-el-text",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,W.Hg)()}}}),bn=(0,x.Z)(vn,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-input");return(0,r.wg)(),(0,r.j4)(o,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,class:"xform-el-text"},null,8,["modelValue","id","name","placeholder","disabled"])}]]);var yn={class:"xform-el-field-setting-prop"},gn=(0,r._)("header",null,"默认值:",-1);var On=(0,n.hS)().EVENTS;const hn=(0,r.aZ)({name:"xform-el-text-setting",props:{field:n.Wi},emits:[On.UPDATE_FIELD],setup:function(){return{compatValue:(0,W.Xu)([]).useCompatValue()}},components:function(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}({},oe.name,oe)}),Vn=(0,x.Z)(hn,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-input"),i=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(i,{field:e.field},{default:(0,r.w5)((function(){return[(0,r._)("section",yn,[gn,(0,r.Wm)(o,{modelValue:e.compatValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,8,["modelValue"])])]})),_:1},8,["field"])}]]),_n=n.gN.create({icon:mn.Z,type:"text",title:"单行文本",setting:Vn,build:bn,validator:function(e,t){return e.required&&(0,n.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[c,f]});var En=l(3923);const Pn=(0,r.aZ)({name:"xform-el-textarea",props:{field:{type:n.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,W.Hg)()}}}),wn=(0,x.Z)(Pn,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-input");return(0,r.wg)(),(0,r.j4)(o,{type:"textarea",modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,rows:3,placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled,class:"xform-el-textarea"},null,8,["modelValue","id","name","placeholder","disabled"])}]]);var Wn={class:"xform-el-field-setting-prop"},Tn=(0,r._)("header",null,"默认值:",-1);var xn=(0,n.hS)().EVENTS;const kn=(0,r.aZ)({name:"xform-el-textarea-setting",props:{field:n.Wi},emits:[xn.UPDATE_FIELD],setup:function(){return{compatValue:(0,W.Xu)([]).useCompatValue()}},components:function(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}({},oe.name,oe)}),Rn=(0,x.Z)(kn,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-input"),i=(0,r.up)("field-setting");return(0,r.wg)(),(0,r.j4)(i,{field:e.field},{default:(0,r.w5)((function(){return[(0,r._)("section",Wn,[Tn,(0,r.Wm)(o,{modelValue:e.compatValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,8,["modelValue"])])]})),_:1},8,["field"])}]]),Un=n.gN.create({icon:En.Z,type:"textarea",title:"多行文本",setting:Rn,build:wn,validator:function(e,t){return e.required&&(0,n.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[c,f]});var jn=[be,Je,ft,kt,Qt,ul,xl,Bl,pn,_n,Un];const Sn={use:function(){(0,n.sZ)(jn)},remove:function(){jn.forEach(n.QZ)}};var An={class:"xform-setting"},Nn=(0,r._)("header",null,"标题后缀:",-1),Dn={class:"xform-setting"},Cn=(0,r._)("header",null,"空值显示为:",-1),In={class:"xform-setting"},Fn=(0,r._)("header",null,"标题位置:",-1),Zn=(0,r.Uk)("左对齐"),Ln=(0,r.Uk)("顶部对齐"),Mn=(0,r.Uk)("右对齐");l(6699),l(2023);var qn=(0,n.hS)(),Yn=qn.EVENTS,Hn=qn.LabelPosition,Bn=Object.values(Hn);const Gn=(0,r.aZ)({name:"form-setting",props:{schema:{type:n.GH,required:!0}},emits:[Yn.UPDATE_PROP],setup:function(){return{LabelPosition:Hn,labelPosition:(0,W.yj)("labelPosition",(function(e){var t=e.labelPosition;return Bn.includes(t)?t:Hn.LEFT})),labelSuffix:(0,W.yj)("labelSuffix"),viewerPlaceholder:(0,W.yj)("viewerPlaceholder")}}}),Kn=(0,x.Z)(Gn,[["render",function(e,t,l,n,a,u){var o=(0,r.up)("el-input"),i=(0,r.up)("el-radio-button"),d=(0,r.up)("el-radio-group");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("section",An,[Nn,(0,r.Wm)(o,{modelValue:e.labelSuffix,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.labelSuffix=t}),placeholder:"请输入标题后缀..."},null,8,["modelValue"])]),(0,r._)("section",Dn,[Cn,(0,r.Wm)(o,{modelValue:e.viewerPlaceholder,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.viewerPlaceholder=t}),placeholder:"查看表单时如果值为空,则显示输入值"},null,8,["modelValue"])]),(0,r._)("section",In,[Fn,(0,r.Wm)(d,{modelValue:e.labelPosition,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.labelPosition=t})},{default:(0,r.w5)((function(){return[(0,r.Wm)(i,{label:e.LabelPosition.LEFT},{default:(0,r.w5)((function(){return[Zn]})),_:1},8,["label"]),(0,r.Wm)(i,{label:e.LabelPosition.TOP},{default:(0,r.w5)((function(){return[Ln]})),_:1},8,["label"]),(0,r.Wm)(i,{label:e.LabelPosition.RIGHT},{default:(0,r.w5)((function(){return[Mn]})),_:1},8,["label"])]})),_:1},8,["modelValue"])])],64)}]]);const Qn={name:"element-plus",version:"0.8.1",install:function(){return(0,n.QL)("setting_form",Kn),Sn.use(),E.use(),function(){(0,n.ac)("setting_form"),Sn.remove(),E.remove()}}}}}]); \ No newline at end of file diff --git a/docs/447.e065a385.css b/docs/447.e065a385.css new file mode 100644 index 0000000..3b0c25c --- /dev/null +++ b/docs/447.e065a385.css @@ -0,0 +1 @@ +.example-designer-tool .el-button--small{font-size:14px}.example-designer-tool .el-button+.el-button{margin-left:15px}.example-builder-footer .el-button--small{font-size:14px}.example-el-confirm strong{margin:0 2px}.example-el-confirm strong[danger]{color:#f56c6c}.example-el-confirm strong[info]{color:#409eff}.example-el-notify .example-schema-error{padding-left:0}.xform-setting+.xform-setting{margin-top:10px}.xform-setting header{font-weight:700}.xform-el-setting-option{align-items:center;display:flex;flex-flow:row nowrap;margin-bottom:5px}.xform-el-setting-option .el-button{margin-left:5px}.xform-el-empty-tip{color:#9a9a9a;font-size:14px;font-weight:600;left:50%;margin:0;position:absolute;text-align:center;top:45%;transform:translateX(-50%)}.rPD0B2se_558N8J3zEwk{align-items:center;display:flex;flex-flow:row nowrap;height:30px;line-height:30px}.rPD0B2se_558N8J3zEwk strong{margin:0 4px}.rPD0B2se_558N8J3zEwk>.el-select{margin-left:10px;width:100px}.rPD0B2se_558N8J3zEwk>.el-input,.rPD0B2se_558N8J3zEwk>.el-input-number{margin-left:10px;width:150px}.rPD0B2se_558N8J3zEwk>.Sj0x4FkQGA7lrN6KIFh0{width:150px}.xform-el-checkbox-block .el-checkbox{display:flex;margin:0;white-space:normal;width:-moz-fit-content;width:fit-content}.nvXUVNRMBnPTDYR1nlt1{display:flex;flex-flow:row nowrap;height:500px}.PydYKRiTAC7fV40xtSAa{border-right:1px solid #dee2e6;display:flex;flex-flow:column nowrap;width:200px}.PydYKRiTAC7fV40xtSAa h5{background-color:#f0f0f0;border-bottom:1px solid #dee2e6;border-top:1px solid #dee2e6;font-size:14px;line-height:20px;margin:0;padding:4px 10px}.zkFYjUnmaOIo7OFzjIWU{display:flex;flex-flow:column nowrap;max-height:50%}.zkFYjUnmaOIo7OFzjIWU h5{border-top-color:transparent}.wcuEasrlKx0gGhcJailM{display:flex;flex:1;flex-flow:column nowrap;height:0}.wcuEasrlKx0gGhcJailM h5{position:relative}.wcuEasrlKx0gGhcJailM h5 button{margin:0;position:absolute;right:10px;top:4px}.c1HbMKvNMsq1VBgjI9sC,.frZZEkiqDstOTP882TlO{flex:1;height:0}.WQxdmEedM0V75KipOZud{flex:1;padding:15px 10px;width:0}.aEpvVSWsA76hfSesn_H0{border:1px dashed #ccc;padding:15px;position:relative}.aEpvVSWsA76hfSesn_H0.is-composed{padding:24px 20px}.aEpvVSWsA76hfSesn_H0.is-error{border-color:var(--xform-color-danger)!important}.aEpvVSWsA76hfSesn_H0.is-selected{border-color:#007bff;border-style:solid}.aEpvVSWsA76hfSesn_H0 .is-logic-legend{background-color:#fff;left:12px;line-height:20px;padding-left:8px;position:absolute;top:-10px;z-index:2}.aEpvVSWsA76hfSesn_H0 .is-logic-legend strong{margin:0 2px}.aEpvVSWsA76hfSesn_H0+.aEpvVSWsA76hfSesn_H0{margin-top:15px}.aEpvVSWsA76hfSesn_H0>.aEpvVSWsA76hfSesn_H0:after{border-bottom:1px dashed #ccc;content:"";left:-20px;position:absolute;top:50%;width:20px}.Exkbzke6uyngN6DG2a38{background-color:#fff!important;position:absolute;right:10px;top:-10px}.M8j6XwiKGXGRt2UD1Wjf{background-color:transparent;border:none;border-bottom:1px solid transparent;color:var(--xform-color-primary);cursor:pointer;font-size:14px;height:20px;line-height:20px;margin:0 5px;padding:0;transition:border-bottom-color .3s ease}.M8j6XwiKGXGRt2UD1Wjf:hover{border-bottom-color:currentColor}.M8j6XwiKGXGRt2UD1Wjf.uMqLGhPdsNOBar9RejRo{color:var(--xform-color-danger)}.Wap5eyoLe71hYMLihiBN{cursor:pointer;line-height:20px;padding:4px 10px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.Wap5eyoLe71hYMLihiBN.xform-is-disabled{color:#6c757d;cursor:not-allowed}.Wap5eyoLe71hYMLihiBN:hover{background-color:#f0f0f0}.MYqnhW_hU3hRIJcvQFX6{color:var(--xform-text-color-secondary);padding-top:120px;text-align:center}.tgeXjHzTskDb8HZle1n9{color:var(--xform-text-color-secondary);line-height:20px}.nzbYZbOqkpn9LQjr8iGY{bottom:0;color:var(--xform-color-danger);font-size:12px;left:20px;line-height:15px;position:absolute}.I4YgaCPHxWiqPlEV6LGw .el-dialog__header{border-bottom:1px solid #dee2e6;margin-right:0;padding:10px 0 10px 10px}.I4YgaCPHxWiqPlEV6LGw .el-dialog__body{padding:0}.I4YgaCPHxWiqPlEV6LGw .el-dialog__headerbtn{height:24px;right:10px;top:10px;width:24px}.I4YgaCPHxWiqPlEV6LGw .el-dialog__headerbtn i{vertical-align:middle}.I4YgaCPHxWiqPlEV6LGw .el-dialog__footer{border-top:1px solid #dee2e6;padding:10px}.RqYi3vFp2AwPJyA0k2G9{float:right}.VCwWDbNe0VrBrhZwP6Ir{color:var(--xform-text-color-secondary)}.xform-el-field-setting-head{border-bottom:1px solid rgba(0,0,0,.125);font-size:16px;font-weight:700;line-height:24px;margin:0 0 10px;padding:0 0 3px}.xform-el-field-setting-prop+.xform-el-field-setting-prop{margin-top:15px}.xform-el-field-setting-prop>header{font-size:14px;font-weight:700;line-height:20px;margin-bottom:5px}.xform-el-field-setting-prop>header>.el-button.is-link{height:20px;padding-bottom:0;padding-top:0}.McgB5UGrmYfAVKKWqEze{display:flex;flex-flow:row nowrap}.dc0FJ2Ie4xOwyEeS_6d7{flex:1}.MV8D6SrdLk9beWbxiROq{margin-left:5px;width:200px}.xform-preview-datatable.xform-is-selected>.xform-preview-cover,.xform-preview-datatable:hover>.xform-preview-cover{background-color:#fdd58a}.xform-preview-datatable .xform-el-datatable{border:1px solid #ccc;position:relative;z-index:9}.xform-preview-datatable .xform-preview{margin-top:0}.xform-preview-datatable .xform-preview+.xform-preview{margin-left:5px}.xform-preview-datatable .xform-el-empty-tip{top:50%;transform:translate(-50%,-50%)}.xform-preview-datatable .xform-el-datatable-cell{height:26px;line-height:26px;overflow:hidden;text-align:center;white-space:nowrap}.xform-preview-datatable .xform-el-datatable-columns{display:flex;flex-flow:row nowrap;float:left;height:50px;min-width:100%;padding:5px}.xform-el-datatable-cell span{position:relative}.xform-el-datatable-cell.xform-is-required{font-weight:700}.xform-el-datatable-cell.xform-is-required span:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:-8px;line-height:1;position:absolute;top:0}.xform-el-datatable.xform-el-datatable-is-empty .el-table__empty-block{min-height:1px}.xform-el-datatable.xform-el-datatable-is-empty .el-table__empty-text{display:none}.xform-el-datatable.xform-el-datatable-is-empty .el-table__body-wrapper{z-index:9}.xform-el-datatable.xform-el-datatable-is-empty .el-table__body-wrapper:after{content:"点击添加按钮插入数据";display:block;font-size:14px;height:60px;left:0;line-height:60px;position:sticky;text-align:center;width:100%}.xform-el-datatable[data-layout=inline] .hover-row .xform-el-datatable-row-index,.xform-el-datatable[data-layout=inline] .xform-el-datatable-remove{display:none}.xform-el-datatable[data-layout=inline] .hover-row .xform-el-datatable-remove{display:block}.xform-el-datatable .el-table__header .cell{font-size:14px}.xform-el-datatable .el-table__header .cell.xform-is-required{color:var(--el-text-color-primary)}.xform-el-datatable .el-table__header .cell.xform-is-required:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:0;line-height:1;position:absolute;top:3px}.xform-el-datatable .el-table__body .el-table__cell{padding-bottom:0;padding-top:0}.xform-el-datatable .el-table__body .el-table__cell .cell{padding-bottom:12px;padding-top:12px}.xform-el-datatable .el-table__body .el-table__cell .cell .xform-item{margin:0}.xform-el-datatable .el-table__body .el-table__cell .cell .xform-item-message{bottom:-13px;line-height:14px}.xform-el-datatable th.el-table__cell{background-color:var(--el-background-color-base);padding-bottom:12px;padding-top:12px}.xform-el-datatable textarea{resize:none}.xform-el-datatable-dialog{--el-dialog-width:640px}.xform-el-datatable-dialog .el-dialog__body{padding:20px 10px}.xform-el-datatable-column{border:1px solid #ced4da;border-radius:3px;line-height:30px;overflow:hidden;position:relative}.xform-el-datatable-column:after{content:"px";font-weight:700;position:absolute;right:0;text-align:center;top:0;width:20px;z-index:2}.xform-el-datatable-column label{font-weight:700;margin:0;padding-left:10px;position:relative;z-index:2}.xform-el-datatable-column input{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;background-color:#e9ecef!important;border:none;border-radius:3px;box-shadow:none!important;height:26px;line-height:20px;outline:none;padding:3px 5px;position:absolute;right:20px;top:2px;width:90px;z-index:2}.xform-el-datatable-column input::-webkit-inner-spin-button{-webkit-appearance:none!important}.xform-el-datatable-column+.xform-el-datatable-column{margin-top:5px}.xform-el-datatable-column-width{background-color:#f3f6f8;border-right:1px solid #ced4da;height:100%;left:0;position:absolute;top:0;z-index:1}.xform-el-date{width:100%!important}.W1_4cM9t0XUQp3kkRER9{display:flex}.W1_4cM9t0XUQp3kkRER9 .el-select{flex:1;width:0}.W1_4cM9t0XUQp3kkRER9 .el-date-editor{margin-left:5px;width:200px}.xform-divider{height:32px;line-height:32px;padding:0 5px;position:relative;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{left:0;position:absolute;right:0;z-index:0}.xform-divider-line.xform-divider-type-solid{border-top:1px solid #666;top:15px}.xform-divider-line.xform-divider-type-dashed{border-top:1px dashed #666;top:15px}.xform-divider-line.xform-divider-type-double{border-bottom:1px solid #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-solid-dashed{border-bottom:1px dashed #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-dashed-solid{border-bottom:1px solid #666;border-top:1px dashed #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-title{background-color:#fff;font-size:18px;font-weight:600;padding:0 5px;position:relative;z-index:1}.xform-divider-types .el-radio{align-items:center;display:flex;margin:0}.xform-divider-types .el-radio__label{flex:1}.xform-el-divider-range{align-items:center;display:flex;flex-flow:row nowrap}.xform-el-divider-range .el-slider{flex:1;margin-left:10px;margin-right:10px}.xform-el-divider-range label{width:64px}.xform-preview-group.xform-is-selected>.xform-preview-cover,.xform-preview-group:hover>.xform-preview-cover{background-color:#fdd58a}.xform-el-group{display:block}.xform-el-group .el-card{--el-card-padding:10px}.xform-el-group .xform-el-group-list{min-height:200px;position:relative}.xform-el-group .el-card__header{background-color:#f5f7fa}.xform-el-group .xform-el-card-header{align-items:center;display:flex;flex-flow:row nowrap;line-height:24px}.xform-el-group .xform-el-card-header h3{color:var(--xform-text-color);cursor:default;flex:1;font-size:var(--xform-font-size);font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xform-el-group .xform-el-card-header .el-button--text{font-size:var(--xform-font-size);min-height:0;padding:0}.xform-el-group.xform-is-collasped .el-card__header{border-bottom:0}.xform-el-group.xform-is-collasped .el-card__body{display:none}.gDh76HrtnYJROGe9waEL{-webkit-user-select:none;-moz-user-select:none;user-select:none}.gDh76HrtnYJROGe9waEL header{display:flex;flex-flow:row nowrap;justify-content:space-between}.gDh76HrtnYJROGe9waEL header .el-button{min-height:0;padding:0}.gDh76HrtnYJROGe9waEL .el-input-number{width:100%}.gDh76HrtnYJROGe9waEL .el-input-number .el-input__inner{text-align:left}.xform-el-number{-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.xform-el-number .el-input__inner{text-align:left}.xform-el-radio-block .el-radio{display:flex;margin:0;white-space:normal;width:-moz-fit-content;width:fit-content}.EYoxV2gUxNnFruKVfDOr{display:flex;flex-flow:row nowrap}.yMYY62i8ZM4c4tyPF03w{flex:1}.fCqRxjv_hPijVSX_zf06{margin-left:5px;width:200px}.xform-el-select{width:100%}.buWLHnYOZJ9q5aMiviBh{display:flex;flex-flow:row nowrap}.IznQOOjQcNY3r9kGdoEY{flex:1}.j7F9f5B2UoshYHqgEw42{margin-left:5px;width:200px}.xform-el-tabs{background-color:#fff;display:block;position:relative}.xform-el-tabs .el-tabs{border-radius:4px;box-shadow:none;overflow:hidden;transition:var(--el-transition-duration)}.xform-el-tabs .el-tabs:hover{box-shadow:var(--el-box-shadow-light)}.xform-el-tabs .el-tabs__nav-next,.xform-el-tabs .el-tabs__nav-prev{height:38px;text-align:center;width:20px}.xform-el-tabs .el-tabs__nav-next:hover,.xform-el-tabs .el-tabs__nav-prev:hover{color:var(--el-color-primary)}.xform-el-tabs .el-tabs__content{padding:10px}.xform-el-tabs.xform-is-with-title .el-tabs__header{display:flex}.xform-el-tabs.xform-is-with-title .el-tabs__header:before{align-self:center;box-sizing:content-box;color:var(--xform-text-color);content:var(--xform-el-tabs-field-title);font-size:var(--xform-font-size);font-weight:700;max-width:var(--xform-label-width);overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.xform-el-tabs.xform-is-with-title .el-tabs__nav-wrap{flex:1}.xform-el-tabs.xform-is-with-title .el-tabs--border-card .el-tabs__item:first-child{margin-left:0}.xform-el-tab-pane{min-height:200px}.xform-preview-tabs .el-tabs__nav-wrap{position:relative;z-index:9}.xform-preview-tabs .xform-el-tab-pane{position:relative}.xform-preview-tabs.xform-is-selected>.xform-preview-cover,.xform-preview-tabs:hover>.xform-preview-cover{background-color:#fdd58a}.xform-el-tabs-option .el-button--small{padding-left:10px;padding-right:10px} \ No newline at end of file diff --git a/docs/780.acb592ab.js b/docs/780.acb592ab.js new file mode 100644 index 0000000..1347440 --- /dev/null +++ b/docs/780.acb592ab.js @@ -0,0 +1 @@ +(self.webpackChunkxform=self.webpackChunkxform||[]).push([[780],{3147:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ul});var r=n(9784),o=n(6252),l=n(9963);n(1249),n(4916);const i={logicForm:"AXFb4Oig8ZeDiFbhXuYz",logicOperator:"iWE_4uCf4uyQn_tLfdFy",multipleSelect:"sB3AFYNaFORDlWcGrxlt",isOpen:"OtHZDvPvfQXl3I11LAgt",multipleSelectPanel:"KWHt_ndQ5GEsVJUtXQYh",multipleSelectInput:"h1PUhksP8HK12SoDIGes",multipleSelectContent:"WmRtyHt8kqMQHupjVvLp",multipleSelectTags:"xePwQttuwHZK5vdsCR3C",multipleSelectTag:"DVFkYWXKXx2rZjsQFmu4",isSingle:"WNtQTCU1_0FMcrKNFNtQ",multipleSelectCount:"N3qbgu_2jrraEnSTvr4v",isBottom:"eB5UIkUUUezJM4OFekON",isTop:"j7WxDYcNwNmrUp0hYKDC",multipleSelectOptions:"cfOFhC3FekAfcitjEycp",multipleSelectOption:"mwsDV3WFwJJI70BjHpCL",isSelected:"MEYf6umeDEjDlX5WICTO",multipleSelectPlaceholder:"vzAYAKVuocClV63pX2iZ",warnFieldTitle:"cAYZ4kU7Yau6BiGPdWNa"};var a=n(8018),u=(n(9826),n(1539),(0,r.hS)().CLASS);function c(e,t){var n=t.parent.find(e.field);if(null==n)return(0,o.Wm)("div",{class:u.IS_WARNING},[(0,o.Uk)("当前逻辑失效,目标字段被删除或位置发生变化")]);var r=(0,o.Wm)("strong",{class:i.warnFieldTitle},[n.title]);return(0,o.Wm)("div",{class:u.IS_WARNING},[(0,o.Uk)("当前逻辑失效,目标字段"),r,(0,o.Uk)("的位置发生变化")])}var s=r.gN.createFieldLogic({type:"string_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_CONTAINS,a.d.OPERATOR_EMPTY].map((function(e){return(0,o.Wm)("option",{value:e.type},[e.title])})),u=(0,o.wy)((0,o.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[l.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,o.wy)((0,o.Wm)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[l.nr,e.value]]);return(0,o.Wm)("div",{class:i.logicForm},[(0,o.Wm)("span",null,[(0,o.Uk)("如果")]),(0,o.Wm)("strong",null,[n?n.title:"N/A"]),(0,o.Wm)("span",null,[(0,o.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},validator:function(e){return e.operator==a.d.OPERATOR_EMPTY.type||(!(0,r.xb)(e.value)||"请补全目标值")},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}}),f=r.gN.createFieldLogic({type:"string_length_compare",title:"长度",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_LT,a.d.OPERATOR_LTE,a.d.OPERATOR_GT,a.d.OPERATOR_GTE].map((function(e){return(0,o.Wm)("option",{value:e.type},[e.title])})),u=(0,o.wy)((0,o.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[l.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,o.wy)((0,o.Wm)("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[l.nr,e.value]]);return(0,o.Wm)("div",{class:i.logicForm},[(0,o.Wm)("span",null,[(0,o.Uk)("如果")]),(0,o.Wm)("strong",null,[n?n.title:"N/A"]),(0,o.Wm)("span",null,[(0,o.Uk)("的长度")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);if(null==r)return!0;var o=r.value;return"string"==typeof o&&n.test(o.length,e.value)},validator:function(e){return!(0,r.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}}),d=(n(8309),r.gN.createFieldLogic({type:"number_value_compare",title:"值",render:function(e,t){var n=t.previous().find((function(t){return t.name==e.field}));if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_LT,a.d.OPERATOR_LTE,a.d.OPERATOR_GT,a.d.OPERATOR_GTE].map((function(e){return(0,o.Wm)("option",{value:e.type},[e.title])})),u=(0,o.wy)((0,o.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[l.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,o.wy)((0,o.Wm)("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[l.nr,e.value,void 0,{number:!0}]]);return(0,o.Wm)("div",{class:i.logicForm},[(0,o.Wm)("span",null,[(0,o.Uk)("如果")]),(0,o.Wm)("strong",null,[n?n.title:"N/A"]),(0,o.Wm)("span",null,[(0,o.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);if(null==r)return!0;var o=r.value;return"number"==typeof o&&n.test(o,e.value)},validator:function(e){return!(0,r.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}})),m=r.gN.createFieldLogic({type:"date_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_LT,a.d.OPERATOR_LTE,a.d.OPERATOR_GT,a.d.OPERATOR_GTE,a.d.OPERATOR_EMPTY].map((function(e){return(0,o.Wm)("option",{value:e.type},[e.title])})),u=(0,o.wy)((0,o.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[l.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,o.wy)((0,o.Wm)("input",{type:"date",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[l.nr,e.value]]);return(0,o.Wm)("div",{class:i.logicForm},[(0,o.Wm)("span",null,[(0,o.Uk)("如果")]),(0,o.Wm)("strong",null,[n?n.title:"N/A"]),(0,o.Wm)("span",null,[(0,o.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},validator:function(e){return!(0,r.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}}),p=(n(9753),n(2772),n(561),n(7042),n(6699),n(2023),n(4812),n(8674),n(2526),n(1817),n(2165),n(6992),n(8783),n(3948),n(1038),n(6649),n(6078),n(9653),n(9070),n(2443),n(3680),n(3706),n(2703),n(8011),n(489),n(9554),n(4747),n(8304),n(5069),n(2262));function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var l=t&&t.prototype instanceof d?t:d,i=Object.create(l.prototype),a=new W(o||[]);return r(i,"_invoke",{value:O(e,n,a)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function d(){}function m(){}function p(){}var y={};u(y,l,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(k([])));h&&h!==t&&n.call(h,l)&&(y=h);var _=p.prototype=d.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(r,l,i,a){var u=s(e[r],e,l);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==v(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,i,a)}),(function(e){o("throw",e,i,a)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,a)}))}a(u.arg)}var l;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return l=l?l.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,l){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw l;return T()}for(n.method=o,n.arg=l;;){var i=n.delegate;if(i){var a=P(i,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var l=o.arg;return l?l.done?(t[e.resultName]=l.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):l:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function W(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function k(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var l=this.tryEntries[o],i=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var a=n.call(l,"catchLoc"),u=n.call(l,"finallyLoc");if(a&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||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 h(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?o.splice(l,1):o.push(t.value),n("update:modelValue",o)}function f(e){if(null==r.value)return 1;var t=r.value,n=t.closest(E.IS_SCROLL);if(null==n)return 1;var o=t.getBoundingClientRect(),l=n.getBoundingClientRect();return e.getBoundingClientRect().bottom+o.height>l.bottom?-1:1}function d(e){return m.apply(this,arguments)}function m(){return(m=S(b().mark((function e(t){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.value=!a.value,a.value){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,o.Y3)();case 5:u.value=f(t.target);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){var t=e.target;t instanceof Element&&null!=l.value&&(l.value.contains(t)||(a.value=!1))}function h(t){t.stopPropagation();var r=e.modelValue;r.splice(0,1),n("update:modelValue",r)}return document.addEventListener("click",v,!0),(0,o.Jd)((function(){document.removeEventListener("click",v,!0)})),function(){var t,n=e.options.map((function(t){var n,r,l=(y(n={},i.multipleSelectOption,!0),y(n,i.isSelected,e.modelValue&&e.modelValue.includes(t.value)),n);return(0,o.Wm)("div",{class:l,onClick:s.bind(null,t)},[null!==(r=t.label)&&void 0!==r?r:t.value])})),f=(y(t={},i.multipleSelect,!0),y(t,i.isOpen,a.value),y(t,i.isBottom,1===u.value),y(t,i.isTop,-1===u.value),t),m=c.value?(0,o.Wm)("div",{class:i.multipleSelectPlaceholder},[(0,o.Uk)("请选择目标值")]):function(){var t=e.modelValue;if(1==t.length)return(0,o.Wm)("div",{class:i.multipleSelectContent},[(0,o.Wm)("div",{class:i.multipleSelectTags},[(0,o.Wm)("div",{class:[i.multipleSelectTag,i.isSingle]},[t[0]])])]);var n=g(t),r=n[0],l=n.slice(1);return(0,o.Wm)("div",{class:i.multipleSelectContent},[(0,o.Wm)("div",{class:i.multipleSelectTags},[(0,o.Wm)("div",{class:i.multipleSelectTag},[(0,o.Wm)("span",{class:i.multipleSelectTagContent},[r]),(0,o.Wm)("button",{type:"button",class:"btn-close shadow-none",onClick:h},null)])]),(0,o.Wm)("div",{class:i.multipleSelectCount},[(0,o.Uk)("+"),l.length])])}();return(0,o.Wm)("div",{class:f,ref:l},[(0,o.Wm)("div",{class:i.multipleSelectInput,onClick:d},[m]),(0,o.Wm)("div",{class:i.multipleSelectPanel,ref:r},[(0,o.Wm)("div",{class:[i.multipleSelectOptions,P.IS_SCROLL]},[n])])])}}});function W(e,t){if(e.operator==a.d.OPERATOR_EMPTY.type)return null;if(e.operator==a.d.OPERATOR_CONTAINS.type)return(0,o.wy)((0,o.Wm)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[l.nr,e.value]]);if(!Array.isArray(t.options))return null;if(e.operator==a.d.OPERATOR_OPTION_EQ.type||e.operator==a.d.OPERATOR_OPTION_NE.type||e.operator==a.d.OPERATOR_OPTION_CONTAINS.type)return(0,o.Wm)(x,{options:t.options,modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},null);var n=t.options.map((function(e){var t;return(0,o.Wm)("option",{value:e.value},[null!==(t=e.label)&&void 0!==t?t:e.value])}));return(0,o.wy)((0,o.Wm)("select",{class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t}},[(0,o.Wm)("option",{value:null,disabled:!0},[(0,o.Uk)("-- 请选择目标值 --")]),n]),[[l.bM,e.value]])}function k(e,t){if(!(t instanceof r.Wi)||null==e.value)return!1;var n=t.previous().find((function(t){return t.name==e.field}));if(null==n)return!1;var o=n.options;if(!Array.isArray(o)||0==o.length)return!1;var l,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(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 l,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,l=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw l}}}}(Array.isArray(e.value)?e.value:[e.value]);try{var a=function(){var e=l.value;if(null==o.find((function(t){return t.value===e})))return{v:!1}};for(i.s();!(l=i.n()).done;){var u=a();if("object"===v(u))return u.v}}catch(e){i.e(e)}finally{i.f()}return!0}var T=r.gN.createFieldLogic({type:"option_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_CONTAINS,a.d.OPERATOR_EMPTY].map((function(e){return(0,o.Wm)("option",{value:e.type},[e.title])})),u=(0,o.wy)((0,o.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[l.bM,e.operator]]),s=W(e,n);return(0,o.Wm)("div",{class:i.logicForm},[(0,o.Wm)("span",null,[(0,o.Uk)("如果")]),(0,o.Wm)("strong",null,[n.title]),(0,o.Wm)("span",null,[(0,o.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},validator:function(e,t){return e.operator==a.d.OPERATOR_EMPTY.type||(e.operator==a.d.OPERATOR_CONTAINS.type?!(0,r.xb)(e.value)||"请输入目标值":!((0,r.xb)(e.value)||!k(e,t))||"请选择目标值")},onCreated:function(e,t){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type),e.operator==a.d.OPERATOR_CONTAINS.type||k(e,t)||(e.value=null)}}),R=r.gN.createFieldLogic({type:"multiple_option_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_OPTION_EQ,a.d.OPERATOR_OPTION_NE,a.d.OPERATOR_OPTION_CONTAINS,a.d.OPERATOR_EMPTY].map((function(e){return(0,o.Wm)("option",{value:e.type},[e.title])})),u=(0,o.wy)((0,o.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[l.bM,e.operator]]),s=W(e,n);return(0,o.Wm)("div",{class:i.logicForm},[(0,o.Wm)("span",null,[(0,o.Uk)("如果")]),(0,o.Wm)("strong",null,[n.title]),(0,o.Wm)("span",null,[(0,o.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},onCreated:function(e,t){null==e.operator&&(e.operator=a.d.OPERATOR_OPTION_EQ.type),k(e,t)||(e.value=null)}});const j={use:function(){(0,r.ZN)(s),(0,r.ZN)(f),(0,r.ZN)(d),(0,r.ZN)(m),(0,r.ZN)(T),(0,r.ZN)(R)},remove:function(){(0,r.I5)(s),(0,r.I5)(f),(0,r.I5)(d),(0,r.I5)(m),(0,r.I5)(T),(0,r.I5)(R)}};var A=n(3161),C=["id","name","placeholder","disabled"];n(4678),n(7327);var V=n(1207),D=(0,r.hS)().EVENTS;function N(e){return"_value"in e?e._value:e.value}function I(e){var t=e.checked,n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}function U(e){return null==N(e)?e.checked:e.value}function L(e){var t=e.selectedIndex;return t<0?null:N(e.options[t])}function F(e,t,n,r){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"build",n=e.value,r=e.type;if("number"==r){var o=parseFloat(n);return isNaN(o)?n:o}if("select"==r)return L(e);if("checkbox"==r){var l='input[type="checkbox"][name="'.concat(e.name,'"]'),i=Array.from(document.querySelectorAll(l));return"setting"===t&&1==i.length?I(i[0]):i.filter((function(e){return e.checked})).map(U)}return e.value}(t.target,"setting");e(D.UPDATE_FIELD,{prop:n,value:o,scope:r})}const Z=(0,o.aZ)({name:"xform-bs-text",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,V.Hg)()}}});var M=n(3744);const q=(0,M.Z)(Z,[["render",function(e,t,n,r,i,a){return(0,o.wy)(((0,o.wg)(),(0,o.iD)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,type:"text",class:"form-control form-control-sm",placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled},null,8,C)),[[l.nr,e.value]])}]]);var Y={class:"xform-bs-field-setting-prop"},H=(0,o._)("header",null,"默认值:",-1);var B=n(3577),G={class:"xform-bs-field-setting-head"},Q={class:"xform-bs-field-setting-prop"},K=(0,o._)("header",null,"标题:",-1),z={key:0,class:"xform-bs-field-setting-prop"},X=(0,o._)("header",null,"提示:",-1),$={key:1,class:"xform-bs-field-setting-prop"},J=(0,o._)("header",null,"属性:",-1),ee={key:0,class:"form-check form-check-inline"},te=["id","name"],ne=["for"],re={class:"form-check form-check-inline"},oe=["id","name"],le=["for"],ie={class:"form-check form-check-inline"},ae=["id","name"],ue=["for"];var ce={class:"xform-bs-field-setting-prop"},se=(0,o._)("span",null,"逻辑:",-1);var fe=n(9622),de=["id"],me={class:"modal-content"},pe={class:"modal-header"},ve={key:0,class:"modal-title"},be={class:"modal-body"},ye={class:"modal-footer"},ge={key:0,class:"modal-footer-left"};var he=1e4;function _e(){var e=null,t="xbs-modal__".concat(he++);function n(t){if(null!=e){var n=e._element;n.addEventListener("hidden.bs.modal",(function e(){n.removeEventListener("hidden.bs.modal",e),"function"==typeof t&&t()})),e.hide()}}return{id:t,show:function(){var n;n=document.getElementById(t),(e=null==n?null:new window.bootstrap.Modal(n,{backdrop:"static",keyboard:!1}))&&e.show()},hide:n,destroy:function(){var t=function(){e.dispose(),e=null};if(null!=e)return e._isShown?n(t):void t()}}}const we=(0,o.aZ)({name:"modal",inheritAttrs:!1,props:{title:{type:String,default:null},visible:{type:Boolean,default:!1},width:{type:String,default:"640px"}},emits:["update:visible","confirm","closed"],setup:function(e,t){var n=t.emit,r=(0,p.iH)(!1),l=_e();function i(){n("update:visible",!1)}return(0,o.YP)((function(){return e.visible}),(function(){e.visible?(r.value=!0,(0,o.Y3)((function(){return l.show()}))):l.hide((function(){r.value=!1,n("closed")}))})),(0,o.Jd)((function(){l.destroy(),i()})),{id:l.id,close:i,confirm:function(){n("confirm")},rendered:r}}}),Se=(0,M.Z)(we,[["render",function(e,t,n,r,l,i){return(0,o.wg)(),(0,o.j4)(o.lR,{to:"body"},[e.rendered?((0,o.wg)(),(0,o.iD)("div",(0,o.dG)({key:0,class:"modal fade xform-bs-modal",id:e.id},e.$attrs),[(0,o._)("div",{class:"modal-dialog modal-dialog-centered",style:(0,B.j5)({width:e.width})},[(0,o._)("div",me,[(0,o._)("div",pe,[(0,o.WI)(e.$slots,"header",{},(function(){return[e.title?((0,o.wg)(),(0,o.iD)("h5",ve,(0,B.zw)(e.title),1)):(0,o.kq)("",!0)]})),(0,o._)("button",{type:"button",class:"btn-close shadow-none",onClick:t[0]||(t[0]=function(){return e.close&&e.close.apply(e,arguments)})})]),(0,o._)("div",be,[(0,o.WI)(e.$slots,"default")]),(0,o._)("div",ye,[e.$slots["footer-left"]?((0,o.wg)(),(0,o.iD)("div",ge,[(0,o.WI)(e.$slots,"footer-left")])):(0,o.kq)("",!0),(0,o._)("button",{type:"button",class:"btn btn-sm btn-link btn-text",onClick:t[1]||(t[1]=function(){return e.close&&e.close.apply(e,arguments)})},"关闭"),(0,o._)("button",{type:"button",class:"btn btn-sm btn-primary",onClick:t[2]||(t[2]=function(){return e.confirm&&e.confirm.apply(e,arguments)})},"保存")])])],4)],16,de)):(0,o.kq)("",!0)])}]]),Oe=(0,o.aZ)({name:"field-logic",props:{field:{type:r.Wi,required:!0}},setup:function(e){var t=(0,r.j9)(),n=(0,p.iH)(null),l=(0,p.iH)(!1),i=(0,o.Fl)({get:function(){return e.field.logic},set:function(n){t.updateField(e.field,{prop:"logic",value:n})}});return{editor:n,logic:i,visible:l,save:function(){var e=n.value;if(null!=e){var t=e.submit();t.valid&&(i.value=t.data,l.value=!1)}},showModal:function(){l.value=!0}}},components:{LogicEditor:fe.h,Modal:Se}}),Pe={classes:{modal:"MyFDKdyFHQgakOSw6YhR",logicBtn:"VMGeYtrSlpdGbmEa3zR4",tip:"o5agcyLGhHZQzloobthZ"}},Ee=(0,M.Z)(Oe,[["render",function(e,t,n,r,l,i){var a=(0,o.up)("LogicEditor"),u=(0,o.up)("Modal");return(0,o.wg)(),(0,o.iD)("section",ce,[(0,o._)("header",null,[se,(0,o._)("button",{type:"button",class:(0,B.C_)(["btn btn-link btn-text",e.classes.logicBtn]),onClick:t[0]||(t[0]=function(){return e.showModal&&e.showModal.apply(e,arguments)})},"配置",2)]),(0,o._)("div",{class:(0,B.C_)(e.classes.tip)},"配置字段逻辑后,如果依赖的字段能够满足指定的条件,就会显示该字段,否则会隐藏该字段。",2),(0,o.Wm)(u,{title:"配置逻辑",class:(0,B.C_)(e.classes.modal),width:"840px",visible:e.visible,"onUpdate:visible":t[1]||(t[1]=function(t){return e.visible=t}),onConfirm:e.save},{default:(0,o.w5)((function(){return[(0,o.Wm)(a,{field:e.field,ref:"editor"},null,8,["field"])]})),_:1},8,["class","visible","onConfirm"])])}],["__cssModules",Pe]]),xe=(0,o.aZ)({name:"field-setting",props:{field:{type:r.Wi,required:!0},placeholder:{type:Boolean,default:!0},required:{type:Boolean,default:!0},logic:{type:Boolean,default:!0},attributes:{type:Boolean,default:!0}},setup:function(e){return{fieldRef:(0,p.Vh)(e,"field"),allowLogic:(0,o.Fl)((function(){return!0===(0,r.iE)().logic}))}},components:{FieldLogic:Ee}}),We=(0,M.Z)(xe,[["render",function(e,t,n,r,i,a){var u=(0,o.up)("FieldLogic");return(0,o.wg)(),(0,o.iD)("div",{class:(0,B.C_)("xform-bs-field-setting xform-bs-".concat(e.fieldRef.type,"-setting"))},[(0,o._)("h3",G,(0,B.zw)(e.field.conf.title),1),(0,o._)("section",Q,[K,(0,o.wy)((0,o._)("input",{type:"text",class:"form-control form-control-sm",placeholder:"[必填] 请输入标题...","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.fieldRef.title=t})},null,512),[[l.nr,e.fieldRef.title]]),(0,o.WI)(e.$slots,"title")]),e.placeholder?((0,o.wg)(),(0,o.iD)("section",z,[X,(0,o.wy)((0,o._)("textarea",{class:"form-control form-control-sm",placeholder:"[可选] 请输入提示信息...",rows:"3","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.fieldRef.placeholder=t})},null,512),[[l.nr,e.fieldRef.placeholder]])])):(0,o.kq)("",!0),e.attributes?((0,o.wg)(),(0,o.iD)("section",$,[J,e.required?((0,o.wg)(),(0,o.iD)("div",ee,[(0,o.wy)((0,o._)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.fieldRef.required=t})},null,8,te),[[l.e8,e.fieldRef.required]]),(0,o._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-required"),title:"勾选则该字段在表单提交时必须填写"},"必填",8,ne)])):(0,o.kq)("",!0),(0,o._)("div",re,[(0,o.wy)((0,o._)("input",{id:"".concat(e.field.name,"-disabled"),name:"".concat(e.field.name,"-disabled"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.fieldRef.disabled=t})},null,8,oe),[[l.e8,e.fieldRef.disabled]]),(0,o._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-disabled"),title:"勾选则该字段在表单中无法编辑, 也不参与表单验证"},"禁用",8,le)]),(0,o._)("div",ie,[(0,o.wy)((0,o._)("input",{id:"".concat(e.field.name,"-hidden"),name:"".concat(e.field.name,"-hidden"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.fieldRef.hidden=t})},null,8,ae),[[l.e8,e.fieldRef.hidden]]),(0,o._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-hidden"),title:"勾选则该字段将不会再表单中显示"},"隐藏",8,ue)]),(0,o.WI)(e.$slots,"attributes")])):(0,o.kq)("",!0),(0,o.WI)(e.$slots,"default"),e.allowLogic?((0,o.wg)(),(0,o.j4)(u,{key:2,field:e.fieldRef,"onUpdate:field":t[5]||(t[5]=function(t){return e.fieldRef=t})},null,8,["field"])):(0,o.kq)("",!0)],2)}]]);function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}var Te=(0,r.hS)().EVENTS;const Re=(0,o.aZ)({name:"xform-bs-text-setting",props:{field:r.Wi},emits:[Te.UPDATE_FIELD],setup:function(){return{compatValue:(0,V.Xu)([]).useCompatValue()}},components:(je={},Ae=We.name,Ce=We,(Ae=function(e){var t=function(e,t){if("object"!==ke(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ke(t)?t:String(t)}(Ae))in je?Object.defineProperty(je,Ae,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):je[Ae]=Ce,je)});var je,Ae,Ce;const Ve=(0,M.Z)(Re,[["render",function(e,t,n,r,i,a){var u=(0,o.up)("field-setting");return(0,o.wg)(),(0,o.j4)(u,{field:e.field},{default:(0,o.w5)((function(){return[(0,o._)("section",Y,[H,(0,o.wy)((0,o._)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,512),[[l.nr,e.compatValue]])])]})),_:1},8,["field"])}]]),De=r.gN.create({icon:A.Z,type:"text",title:"单行文本",setting:Ve,build:q,validator:function(e,t){return e.required&&(0,r.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[s,f]});var Ne=n(3923),Ie=["id","name","placeholder","disabled"];const Ue=(0,o.aZ)({name:"xform-bs-textarea",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,V.Hg)()}}}),Le=(0,M.Z)(Ue,[["render",function(e,t,n,r,i,a){return(0,o.wy)(((0,o.wg)(),(0,o.iD)("textarea",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,rows:"3",name:e.field.name,class:"form-control form-control-sm",placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled},null,8,Ie)),[[l.nr,e.value]])}]]);var Fe={class:"xform-bs-field-setting-prop"},Ze=(0,o._)("header",null,"默认值:",-1);function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var qe=(0,r.hS)().EVENTS;const Ye=(0,o.aZ)({name:"xform-bs-textarea-setting",props:{field:r.Wi},emits:[qe.UPDATE_FIELD],setup:function(){return{compatValue:(0,V.Xu)([]).useCompatValue()}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Me(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Me(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},We.name,We)}),He=(0,M.Z)(Ye,[["render",function(e,t,n,r,i,a){var u=(0,o.up)("field-setting");return(0,o.wg)(),(0,o.j4)(u,{field:e.field},{default:(0,o.w5)((function(){return[(0,o._)("section",Fe,[Ze,(0,o.wy)((0,o._)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,512),[[l.nr,e.compatValue]])])]})),_:1},8,["field"])}]]),Be=r.gN.create({icon:Ne.Z,type:"textarea",title:"多行文本",setting:He,build:Le,validator:function(e,t){return e.required&&(0,r.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[s,f]});var Ge=n(4874),Qe={class:"xform-bs-field-setting-prop"},Ke=(0,o._)("header",null,"默认值:",-1),ze={class:"form-check form-check-inline"},Xe=["id","name"],$e=["for"];function Je(e){return Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Je(e)}var et=(0,r.hS)().EVENTS;const tt=(0,o.aZ)({name:"xform-bs-number-setting",props:{field:r.Wi},emits:[et.UPDATE_FIELD],setup:function(){var e=(0,V.Xu)([]);return{integer:(0,V.Et)("integer","attributes"),compatValue:e.useCompatValue()}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Je(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Je(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},We.name,We)}),nt=(0,M.Z)(tt,[["render",function(e,t,n,r,i,a){var u=(0,o.up)("field-setting");return(0,o.wg)(),(0,o.j4)(u,{field:e.field},{attributes:(0,o.w5)((function(){return[(0,o._)("div",ze,[(0,o.wy)((0,o._)("input",{id:"".concat(e.field.name,"-integer"),name:"".concat(e.field.name,"-integer"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.integer=t})},null,8,Xe),[[l.e8,e.integer]]),(0,o._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-integer"),title:"勾选则只允许输入整数"},"整数",8,$e)])]})),default:(0,o.w5)((function(){return[(0,o._)("section",Qe,[Ke,(0,o.wy)((0,o._)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,512),[[l.nr,e.compatValue,void 0,{number:!0}]])])]})),_:1},8,["field"])}]]);var rt=(0,o.aZ)({name:"xform-bs-number",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,V.Hg)();return function(){return(0,o.wy)((0,o.Wm)("input",{id:e.field.uid,name:e.field.name,type:"number","onUpdate:modelValue":function(e){return t.value=e},class:"form-control form-control-sm",placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled},null),[[l.nr,t.value,void 0,{number:!0}]])}}});const ot=r.gN.create({icon:Ge.Z,type:"number",title:"数字",setting:nt,build:rt,validator:function(e,t){return e.required&&(0,r.xb)(t)?Promise.reject("必填"):e.attributes.integer&&!/^[-+]?[1-9]?\d+$/.test(t+"")?Promise.reject("请输入整数"):Promise.resolve()},logic:[d]});var lt=n(1871),it=["id","name","disabled"],at={class:"xform-bs-is-placeholer",value:""},ut=["value"];const ct=(0,o.aZ)({name:"xform-bs-select",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){var e=(0,V.Hg)("");return{value:e,className:(0,o.Fl)((function(){return{"form-select":!0,"form-select-sm":!0,"xform-bs-select":!0,"xform-bs-is-empty":null==e||"string"==typeof e.value&&0==e.value.length}}))}}}),st=(0,M.Z)(ct,[["render",function(e,t,n,r,i,a){return(0,o.wy)(((0,o.wg)(),(0,o.iD)("select",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,class:(0,B.C_)(e.className),disabled:e.disabled||e.field.disabled},[(0,o._)("option",at,"---- "+(0,B.zw)(e.field.placeholder||"请选择")+" ----",1),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.field.options,(function(e){return(0,o.wg)(),(0,o.iD)("option",{key:e.value,value:e.value},(0,B.zw)(e.value),9,ut)})),128))],10,it)),[[l.bM,e.value]])}]]);var ft={class:"xform-bs-field-setting-prop"},dt=(0,o._)("header",null,"选项:",-1),mt=["value","onInput"],pt=["onClick","disabled"],vt={class:"xform-bs-field-setting-prop"},bt=(0,o._)("header",null,"默认值:",-1),yt=["value"],gt=(0,o._)("option",{value:""},"-- 请选择--",-1),ht=["value"];n(5212),n(7941),n(5003),n(9337),n(3321);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function wt(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 St(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_t(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=(0,r.hS)(),Pt=Ot.BuiltInDefaultValueType,Et=Ot.EVENTS;const xt=(0,o.aZ)({name:"xform-bs-select-setting",props:{field:r.Wi},emits:[Et.UPDATE_FIELD],setup:function(){var e=[{value:Pt.MANUAL,label:"手动指定"},{value:Pt.OPTION_FIRST,label:"首选项"}],t=(0,V.D2)((function(){if(!r.value)return;var e=t.options.value,n=l.value;l.value=e.some((function(e){return e.value==n}))?n:void 0})),n=(0,V.Xu)(e),r=n.useIsManual(),o=n.useCompatType(),l=n.useCompatValue((function(e){return e.value||""}));return function(e){for(var t=1;t=e.field.fields.length-1||e.field.fields[t].move(t+1)}return function(){var r=e.field,s=r.fields.map((function(e,t){var n=r.fields.length;return(0,o.Wm)("div",{class:"xform-bs-setting-option"},[(0,o.Wm)("input",{type:"text",class:"form-control form-control-sm",placeholder:"请输入标签名称",value:e.title,onInput:a.bind(null,e)},null),(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text",onClick:u.bind(null,t),disabled:0==t},[(0,o.Uk)("上移")]),(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text",onClick:c.bind(null,t),disabled:t==n-1},[(0,o.Uk)("下移")]),(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text text-danger",onClick:i.bind(null,e),disabled:n<=1},[(0,o.Uk)("删除")])])})),f={default:function(){return(0,o.Wm)("div",{class:"xform-bs-field-setting-prop"},[(0,o.Wm)("header",null,[(0,o.Uk)("标签:")]),s,(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-sm btn-text p-0",onClick:n},[(0,o.Uk)("添加标签")])])},attributes:function(){return(0,o.Wm)("div",{class:"form-check form-check-inline"},[(0,o.wy)((0,o.Wm)("input",{type:"checkbox",class:"form-check-input",id:"".concat(r.name,"-hide-title"),name:"".concat(r.name,"-hide-title"),"onUpdate:modelValue":function(e){return t.value=e}},null),[[l.e8,t.value]]),(0,o.Wm)("label",{class:"form-check-label",for:"".concat(r.name,"-hide-title"),title:"勾选则不显示标题"},[(0,o.Uk)("隐藏标题")])])}};return(0,o.Wm)((0,o.up)("field-setting"),{field:r,placeholder:!1,required:!1},f)}},components:$r({},We.name,We)});function lo(e){return e.validation.valid!==to.ERROR?null:(0,o.Wm)("p",{class:"xform-item-message"},[e.validation.message])}var io=(0,o.aZ)({name:"xform-bs-tabs",props:{field:{type:r.Wi,required:!0},behavior:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,p.iH)(e.field.fields[0].name),n=(0,o.FN)(),l=(0,r.j9)();function i(e,n){n.preventDefault(),t.value=e.name}function a(e){var t=(0,r.am)(n.refs,"scroll"),o=(0,r.am)(n.refs,"list");if(!(o.offsetWidth<=t.offsetWidth)){e.preventDefault();var l=function(e,t,n){var o=(0,r.fN)(e).pixelY+(t.__offset__||0);return o<0?0:o>t.offsetWidth-n.offsetWidth?t.offsetWidth-n.offsetWidth:o}(e,o,t);o.__offset__=l,o.style.transform="translateX(".concat(-l,"px)")}}var u=(0,o.YP)(e.field.fields,(function(e){e.every((function(e){return e.name!=t.value}))&&(t.value=e[e.length-1].name)}));return(0,o.Jd)(u),function(){var n,u=e.field,c=null!==(n=u.value)&&void 0!==n?n:{},s=!0===u.attributes.hideTitle?null:(0,o.Wm)("strong",{class:"nav-tabs-title"},[u.title]),f=e.disabled,d=e.behavior==ro.DESIGNER||l.type==ro.DESIGNER,m=u.fields.map((function(e){var n={"nav-link":!0,active:t.value==e.name};return(0,o.Wm)("a",{class:n,href:"javascript:;",onClick:i.bind(null,e)},[e.title])})),p=u.fields.map((function(e){return l.renderField(d?e:c[e.name],{parentProps:{disabled:f},renderContent:function(n,l){return l.class=(0,r.C_)(l.class,{active:t.value==e.name}),(0,o.h)(n,l)},renderPreivew:function(e,t,n,r){return r()}})})),v=$r({"xform-item":!0,"xform-bs-tabs":!0},eo.IS_ERROR,u.invalid);return(0,o.Wm)("div",{class:v},[(0,o.Wm)("div",{class:"nav nav-tabs"},[s,(0,o.Wm)("div",{class:"xform-bs-tabs-scroll",onWheel:a,ref:"scroll"},[(0,o.Wm)("div",{class:"xform-bs-tab-list",ref:"list"},[m])])]),(0,o.Wm)("div",{class:"tab-content"},[p]),lo(u)])}}});const ao=r.gN.create({type:"tabs",title:"标签页",icon:Zr.Z,custom:!0,setting:oo,build:io,view:io,dependencies:[zr],onCreate:function(e,t,n){if(n){var o=new r.Wi(zr);o.title="标签".concat(e.fields.length+1),e.push(o)}},onValueInit:function(e,t){var n=null!=t?t:{};return e.fields.reduce((function(t,r){var o=r.name,l=r.clone(!0);return l.setValue(n[o]),l.setParent(e),t[o]=l,t}),{})},onValueSubmit:function(e){var t,n=null!==(t=e.value)&&void 0!==t?t:{};return e.fields.map((function(e){return e.name})).reduce((function(e,t){var r,o=n[t],l=null===(r=o.conf)||void 0===r?void 0:r.onValueSubmit;return e[t]="function"==typeof l?l(o):o.value,e}),{})},validator:function(e,t,n){var r=Object.values(null!=t?t:{}).map((function(e){return e.validate({mode:n.mode})}));return Promise.allSettled(r).then((function(e){var t=e.map((function(e){return"rejected"==e.status?e.reason:null})).filter((function(e){return e}));return t.length>0?Promise.reject(t.join("\n")):Promise.resolve()}))}});n(2222);var uo=150,co="xform-bs-datatable-columns";function so(e,t){var n=(0,p.iH)(!1),l=(0,o.FN)(),i=(0,r.I_)(),a=(0,p.iH)(null),u=(0,r.j9)(),c=null;function s(e){c=e,m()}function f(){c=null,m()}function d(e){n.value=e}function m(){var t=function(e,t){return null==t?{}:e.reduce((function(e,n){var r,o=t[n.name],l=null===(r=o.conf)||void 0===r?void 0:r.onValueSubmit;return e[n.name]="function"==typeof l?l(o):o.value,e}),{})}(e.field.fields,c),r=e.field.fields.map((function(e){return e.clone(!0)}));a.value=i.value.genSchema({fields:r},t),n.value=!0}function v(){n.value=!1}function b(){var n=l.refs.form;if(null==n)return v();n.validate().then((function(n){var r,o,l;n.valid&&(null==c?(r=n.model,o=e.field.fields.reduce((function(t,n){var o=n.clone(!0);return o.setValue(r[n.name]),o.setParent(e.field),t[n.name]=o,t}),{}),(l=t.value).push(o),t.value=l):function(t){e.field.fields.forEach((function(e){var n=e.name;c[n].value=t[n]})),c=null}(n.model),v())}))}function y(e){var n=t.value,r=n.indexOf(e);r>=0&&(n.splice(r,1),t.value=n)}function g(e,t,n){return e>0?null:t?(0,o.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,o.Uk)("暂无数据")]):(0,o.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,o.Wm)("span",null,[(0,o.Uk)("点击")]),(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text btn-sm shadow-none",onClick:f},[(0,o.Uk)("+ 添加")]),(0,o.Wm)("span",null,[(0,o.Uk)("按钮插入数据")])])}return(0,o.Jd)((function(){a.value=null,c=null})),function(){var r,l=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==l.length)return(0,o.Wm)("div",{class:"xform-is-unknown"},[(0,o.Uk)("请放入至少一个字段")]);var m=e.disabled||e.field.disabled,p=null!==(r=e.field.attributes.colWidths)&&void 0!==r?r:{},v=l.reduce((function(e,t){var n,r=null!==(n=p[t.name])&&void 0!==n?n:uo;return e.total+=r,e.cols.push((0,o.Wm)("col",{style:{width:"".concat(r,"px")}},null)),e}),{cols:[],total:60}),h=v.cols,_=v.total,w=t.value.map((function(e,t){var n=l.map((function(t){var n=e[t.name],r=u.renderField(n,{parentProps:{disabled:m},renderItem:function(e,t){return t.custom=!0,(0,o.h)(e,t,(function(){var e;return null!==(e=n.value)&&void 0!==e?e:i.value.viewerPlaceholder}))}});return(0,o.Wm)("td",null,[r])})),r=m?null:(0,o.Wm)("td",{class:"xform-bs-datatable-operate"},[(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text shadow-none",onClick:s.bind(null,e)},[(0,o.Uk)("编辑")]),(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text text-danger shadow-none",onClick:y.bind(null,e)},[(0,o.Uk)("删除")])]);return(0,o.Wm)("tr",{class:"xform-bs-datatable-row"},[(0,o.Wm)("td",{class:"xform-bs-datatable-index"},[t+1]),n,r])})),S=_+(m?0:100),O=m?"#":(0,o.Wm)("button",{type:"button",class:"btn btn-sm btn-link btn-text shadow-none",onClick:f},[(0,o.Uk)("添加")]),P=(0,o.Wm)("table",{class:"table table-hover",style:"width: ".concat(S,"px")},[(0,o.Wm)("colgroup",null,[(0,o.Wm)("col",{style:"width: ".concat(60,"px")},null),h,m?null:(0,o.Wm)("col",{style:"width: ".concat(100,"px")},null)]),(0,o.Wm)("thead",null,[(0,o.Wm)("th",{class:"xform-bs-datatable-index"},[O]),l.map((function(e){var t={"xform-bs-datatable-cell":!0,"xform-is-required":!m&&!e.disabled&&e.required};return(0,o.Wm)("th",{class:t},[(0,o.Wm)("span",null,[e.title])])})),m?null:(0,o.Wm)("th",{class:"xform-bs-datatable-operate"},[(0,o.Uk)("操作")])]),(0,o.Wm)("tbody",null,[w])]);return(0,o.Wm)("div",{class:"xform-bs-datatable","data-layout":"modal"},[(0,o.Wm)("div",{class:"table-responsive"},[P,g(w.length,m,S)]),(0,o.Wm)((0,o.up)("modal"),(0,o.dG)({title:"".concat(null==c?"添加":"编辑","数据"),class:"xform-bs-datatable-modal-layout",onConfirm:b},{visible:n.value,"onUpdate:visible":d}),{default:function(){return[(0,o.Wm)((0,o.up)("xform-builder"),{schema:a.value,ref:"form",onSubmit:b},{default:function(){return[(0,o.Wm)("button",{class:"xform-is-hidden",type:"submit"},null)]}})]}})])}}var fo={class:"form-check form-check-inline"},mo=["id","name"],po=["for"],vo={class:"form-check form-check-inline"},bo=["id","name"],yo=["for"],go={class:"xform-bs-field-setting-prop"},ho=(0,o._)("header",null,"表单布局:",-1),_o={class:"btn-group",role:"group"},wo={class:"xform-bs-field-setting-prop"},So=(0,o._)("header",null,"列宽:",-1),Oo=["placeholder","value","onInput"],Po={key:0,class:"text-secondary"};function Eo(e){return Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eo(e)}var xo=(0,r.hS)(),Wo=xo.EVENTS,ko=xo.LabelPosition,To="attributes";const Ro=(0,o.aZ)({name:"xform-bs-datatable-setting",props:{field:{type:r.Wi,required:!0}},emits:[Wo.UPDATE_FIELD],setup:function(e,t){var n=t.emit;return{DEF_COLUMN_WIDTH:uo,updateColWidth:function(t,r){var o=t.target,l=parseFloat(o.value),i=e.field.attributes.colWidths;i[r]=isNaN(l)?null:l,n(Wo.UPDATE_FIELD,{prop:"colWidths",value:i,scope:To})},getColumnWidth:function(t){return e.field.attributes.colWidths[t]},hideTitle:(0,V.Et)("hideTitle",To),layout:(0,V.Et)("layout",To),labelPosition:(0,o.Fl)({get:function(){var t;return(null===(t=e.field.attributes)||void 0===t?void 0:t.labelPosition)==ko.TOP},set:function(e){var t=!0===e?ko.TOP:void 0;n(Wo.UPDATE_FIELD,{prop:"labelPosition",scope:To,value:t})}})}},components:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Eo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Eo(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},We.name,We)}),jo={classes:{columnBg:"D2xFwxXoIfj0ESDBQYqx",titleProps:"tx1MA84ThNWpBbZ1ULgu"}},Ao=(0,M.Z)(Ro,[["render",function(e,t,n,r,i,a){var u=(0,o.up)("field-setting");return(0,o.wg)(),(0,o.j4)(u,{field:e.field,placeholder:!1},{title:(0,o.w5)((function(){return[(0,o._)("div",{class:(0,B.C_)(e.classes.titleProps)},[(0,o._)("div",fo,[(0,o.wy)((0,o._)("input",{id:"".concat(e.field.name,"-hide-title"),name:"".concat(e.field.name,"-hide-title"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.hideTitle=t})},null,8,mo),[[l.e8,e.hideTitle]]),(0,o._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-hide-title"),title:"勾选则不显示标题"},"隐藏标题",8,po)]),(0,o._)("div",vo,[(0,o.wy)((0,o._)("input",{id:"".concat(e.field.name,"-label-position"),name:"".concat(e.field.name,"-label-position"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.labelPosition=t})},null,8,bo),[[l.e8,e.labelPosition]]),(0,o._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-label-position"),title:"勾选则标题位于顶部"},"顶部对齐",8,yo)])],2)]})),default:(0,o.w5)((function(){return[(0,o._)("section",go,[ho,(0,o._)("div",_o,[(0,o._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"modal"==e.layout}]),onClick:t[2]||(t[2]=function(t){return e.layout="modal"}),title:"选中则表单在弹出模态框中编辑"},"窗口",2),(0,o._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"inline"==e.layout}]),onClick:t[3]||(t[3]=function(t){return e.layout="inline"}),title:"选中则表单在表格中直接编辑"},"行内",2)])]),(0,o._)("section",wo,[So,((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.field.fields,(function(t){var n;return(0,o.wg)(),(0,o.iD)("div",{class:"xform-bs-datatable-column",key:t.uid},[(0,o._)("div",{class:(0,B.C_)(e.classes.columnBg),style:(0,B.j5)({width:"".concat(null!==(n=e.getColumnWidth(t.name))&&void 0!==n?n:e.DEF_COLUMN_WIDTH,"px")})},null,6),(0,o._)("label",null,(0,B.zw)(t.title),1),(0,o._)("input",{type:"number",min:"0",placeholder:"默认宽度".concat(e.DEF_COLUMN_WIDTH),class:"form-control form-control-sm",value:e.getColumnWidth(t.name),onInput:function(n){return e.updateColWidth(n,t.name)}},null,40,Oo)])})),128)),0==e.field.fields.length?((0,o.wg)(),(0,o.iD)("div",Po,"请至少放入一个字段")):(0,o.kq)("",!0)])]})),_:1},8,["field"])}],["__cssModules",jo]]);var Co=n(9704);function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Do(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Vo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vo(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No=(0,r.hS)(),Io=No.CLASS,Uo=No.PROPS,Lo=No.EVENTS,Fo=No.EnumValidateMode,Zo=(0,o.aZ)({name:"xform-bs-datatable-preview",props:{field:{type:r.Wi,required:!0}},setup:function(e){var t=(0,r.j9)();return function(){var n,r=e.field,l=r.fields,i=null!==(n=r.attributes.colWidths)&&void 0!==n?n:{},a=0==l.length?(0,o.Wm)("p",{class:"".concat(Io.IS_EMPTY_TIP," xform-bs-empty-tip")},[(0,o.Uk)("请将左侧控件拖动到此处")]):l.map((function(e){return t.renderField(e,{renderItem:function(){var t,n={"xform-bs-datatable-cell":!0,"xform-is-required":e.required},r={width:"".concat(null!==(t=i[e.name])&&void 0!==t?t:uo,"px")};return(0,o.Wm)("div",{class:n,style:r},[(0,o.Wm)("span",null,[e.title])])}})})),u=Do({class:"".concat(co," ").concat(Io.DROPPABLE," ").concat(Io.SCOPE)},"."+Uo.FIELD,e.field);return(0,o.Wm)("div",{class:"xform-bs-datatable ".concat(Io.IS_SCROLL," ").concat(Io.IS_HORIZONTAL_SCROLL)},[(0,o.Wm)("div",u,[a])])}}}),Mo=(0,o.aZ)({name:"xform-bs-datatable",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},emits:[Lo.UPDATE_VALUE],setup:function(e){var t=(0,V.Hg)(),n=so(e,t),l=function(e,t){var n=(0,r.j9)();function l(){var n=e.field.fields.reduce((function(t,n){var r=n.clone(!0);return r.setParent(e.field),t[n.name]=r,t}),{}),r=t.value;r.push(n),t.value=r}function i(e){var n=t.value,r=n.indexOf(e);r>=0&&(n.splice(r,1),t.value=n)}function a(e,t,n){return e>0?null:t?(0,o.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,o.Uk)("暂无数据")]):(0,o.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,o.Wm)("span",null,[(0,o.Uk)("点击")]),(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text btn-sm shadow-none",onClick:l},[(0,o.Uk)("+ 添加")]),(0,o.Wm)("span",null,[(0,o.Uk)("按钮插入数据")])])}return function(){var r,u=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==u.length)return(0,o.Wm)("div",{class:"xform-is-unknown"},[(0,o.Uk)("请放入至少一个字段")]);var c=e.disabled||e.field.disabled,s=null!==(r=e.field.attributes.colWidths)&&void 0!==r?r:{},f=u.reduce((function(e,t){var n,r=null!==(n=s[t.name])&&void 0!==n?n:uo;return e.total+=r,e.cols.push((0,o.Wm)("col",{style:{width:"".concat(r,"px")}},null)),e}),{cols:[],total:60}),d=f.cols,m=f.total,p=t.value.map((function(e,t){var r=u.map((function(t){var r=n.renderField(e[t.name],{parentProps:{disabled:c},renderItem:function(e,t,n){return t.label=!1,(0,o.h)(e,t,n)}});return(0,o.Wm)("td",null,[r])}));return(0,o.Wm)("tr",{class:"xform-bs-datatable-row"},[(0,o.Wm)("td",{class:"xform-bs-datatable-index"},[(0,o.Wm)("strong",null,[t+1]),c?null:(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text text-danger",onClick:i.bind(null,e)},[(0,o.Uk)("删除")])]),r])})),v=c?"#":(0,o.Wm)("button",{type:"button",class:"btn btn-link btn-text btn-sm shadow-none",onClick:l},[(0,o.Uk)("添加")]);return(0,o.Wm)("div",{class:"xform-bs-datatable","data-layout":"inline"},[(0,o.Wm)("div",{class:"table-responsive"},[(0,o.Wm)("table",{class:"table table-hover",style:{width:m+"px"}},[(0,o.Wm)("colgroup",null,[(0,o.Wm)("col",{style:"width: ".concat(60,"px")},null),d]),(0,o.Wm)("thead",null,[(0,o.Wm)("th",{class:"xform-bs-datatable-index"},[v]),u.map((function(e){var t={"xform-bs-datatable-cell":!0,"xform-is-required":!c&&!e.disabled&&e.required};return(0,o.Wm)("th",{class:t},[(0,o.Wm)("span",null,[e.title])])}))]),(0,o.Wm)("tbody",null,[p])]),a(p.length,c,m)])])}}(e,t);return function(){return"inline"==e.field.attributes.layout?l():n()}},components:Do({},Se.name,Se)}),qo=(0,o.aZ)({name:"xform-bs-datatable-view",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,V.Hg)(),n=(0,r.j9)(),l=(0,r.I_)();return function(){var r,i=e.field.fields;if(!Array.isArray(t.value)||0==t.value.length||0==i.length)return(0,o.Wm)("span",{class:"xform-viewer-value"},[l.value.viewerPlaceholder]);var a=null!==(r=e.field.attributes.colWidths)&&void 0!==r?r:{},u=i.reduce((function(e,t){var n,r=null!==(n=a[t.name])&&void 0!==n?n:uo;return e.total+=r,e.cols.push((0,o.Wm)("col",{style:"width: ".concat(r,"px")},null)),e}),{cols:[],total:60}),c=u.cols,s=u.total,f=t.value.map((function(t,r){var l=i.map((function(r){return(0,o.Wm)("td",null,[n.renderField(t[r.name],{parentProps:{disabled:e.disabled},renderItem:function(e,t,n){return n()}})])})),a=(0,o.Wm)("td",{class:"xform-bs-datatable-index"},[(0,o.Wm)("strong",null,[r+1])]);return(0,o.Wm)("tr",null,[a,l])}));return(0,o.Wm)("div",{class:"xform-bs-datatable xform-bs-datatable-view"},[(0,o.Wm)("div",{class:"table-responsive"},[(0,o.Wm)("table",{class:"table table-hover",style:{width:s+"px"}},[(0,o.Wm)("colgroup",null,[(0,o.Wm)("col",{style:"width: ".concat(60,"px")},null),c]),(0,o.Wm)("thead",null,[(0,o.Wm)("th",{class:"xform-bs-datatable-index"},[(0,o.Uk)("#")]),i.map((function(t){var n={"xform-bs-datatable-cell":!0,"xform-is-required":!e.disabled&&!t.disabled&&t.required};return(0,o.Wm)("th",{class:n},[(0,o.Wm)("span",null,[t.title])])}))]),(0,o.Wm)("tbody",null,[f])])])])}}});const Yo=r.gN.create({type:"datatable",title:"数据表格",icon:Co.Z,buttons:[yr.n,r.gN.BUTTON_COPY,r.gN.BUTTON_REMOVE],accept:["text","textarea","number","select","radio","checkbox","date"],setting:Ao,preview:Zo,build:Mo,view:qo,onDragOver:function(e){var t=e.currentTarget;if(t.matches("."+co)){e.stopPropagation(),e.preventDefault();var n=e.context,r=n.directionX,o=n.moveMarkEl,l=n.getRootScopeEl,i=e.dragElement.contains(t);o(r,i?e.dragElement:e.target,i?l():t)}},onDrop:function(e){e.stopPropagation()},onCreate:function(e,t,n){n&&(e.attributes.colWidths={},e.attributes.layout="modal")},onSubmit:function(e){var t,n,r=null!==(t=null===(n=e.attributes)||void 0===n?void 0:n.colWidths)&&void 0!==t?t:{},o=e.fields.map((function(e){return e.name}));for(var l in r)o.indexOf(l)<0&&delete r[l];return e},onValueInit:function(e,t){if(!Array.isArray(t))return[];var n=e.fields;return t.map((function(t){return n.reduce((function(n,r){var o=r.clone(!0);return o.setValue(t[r.name]),o.setParent(e),n[r.name]=o,n}),{})}))},onValueSubmit:function(e){if(Array.isArray(e.value)){var t=e.fields;return e.value.map((function(e){return t.map((function(e){return e.name})).reduce((function(t,n){var r,o=e[n],l=null===(r=o.conf)||void 0===r?void 0:r.onValueSubmit;return t[o.name]="function"==typeof l?l(o):o.value,t}),{})}))}},validator:function(e,t,n){if(e.required&&(0,r.xb)(t))return Promise.reject("必填");var o=t.reduce((function(e,t){return e.concat(Object.values(t))}),[]).map((function(e){return n.mode==Fo.RECURSIVE?e.validate({mode:Fo.RECURSIVE}):e.invalid?Promise.reject():Promise.resolve()}));return Promise.allSettled(o).then((function(e){return e.some((function(e){return"rejected"===e.status}))?Promise.reject("请补全必填内容"):Promise.resolve()}))},onValidate:function(e){return(0,r.xb)(e.title)?Promise.reject("标题为空"):0==e.fields.length?Promise.reject("至少需要一个字段"):Promise.resolve()}});var Ho=[jn,Yo,Bn,br,Fr,ot,rn,Tt,ao,De,Be];const Bo={use:function(){(0,r.sZ)(Ho)},remove:function(){Ho.forEach(r.QZ)}};var Go={class:"xform-setting"},Qo=(0,o._)("header",null,"标题后缀:",-1),Ko=["value"],zo={class:"xform-setting"},Xo=(0,o._)("header",null,"空值显示为:",-1),$o=["value"],Jo={class:"xform-setting"},el=(0,o._)("header",null,"标题位置:",-1),tl={class:"btn-group",role:"group"};var nl=(0,r.hS)(),rl=nl.EVENTS,ol=nl.LabelPosition,ll=Object.values(ol);const il=(0,o.aZ)({name:"form-setting",props:{schema:{type:Object,required:!0}},emits:[rl.UPDATE_PROP],setup:function(e,t){var n=t.emit;return{updateProp:function(e,t){n(rl.UPDATE_PROP,{prop:e,value:t})},labelPosition:(0,o.Fl)((function(){var t=e.schema.labelPosition;return ll.includes(t)?t:"left"}))}}}),al=(0,M.Z)(il,[["render",function(e,t,n,r,l,i){return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("section",Go,[Qo,(0,o._)("input",{value:e.schema.labelSuffix,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题后缀...",onInput:t[0]||(t[0]=function(t){return e.updateProp("labelSuffix",t.target.value)})},null,40,Ko)]),(0,o._)("section",zo,[Xo,(0,o._)("input",{value:e.schema.viewerPlaceholder,type:"text",class:"form-control form-control-sm",placeholder:"查看表单时如果值为空,则显示输入值",onInput:t[1]||(t[1]=function(t){return e.updateProp("viewerPlaceholder",t.target.value)})},null,40,$o)]),(0,o._)("section",Jo,[el,(0,o._)("div",tl,[(0,o._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"left"==e.labelPosition}]),onClick:t[2]||(t[2]=function(t){return e.updateProp("labelPosition","left")})},"左对齐",2),(0,o._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"top"==e.labelPosition}]),onClick:t[3]||(t[3]=function(t){return e.updateProp("labelPosition","top")})},"顶部对齐",2),(0,o._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"right"==e.labelPosition}]),onClick:t[4]||(t[4]=function(t){return e.updateProp("labelPosition","right")})},"右对齐",2)])])],64)}]]);const ul={name:"bootstrap",version:"0.8.1",install:function(){return(0,r.QL)("setting_form",al),Bo.use(),j.use(),function(){(0,r.ac)("setting_form"),Bo.remove(),j.remove()}}}},3009:(e,t,n)=>{var r=n(7854),o=n(7293),l=n(1702),i=n(1340),a=n(3111).trim,u=n(1361),c=r.parseInt,s=r.Symbol,f=s&&s.iterator,d=/^[+-]?0x/i,m=l(d.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!o((function(){c(Object(f))}));e.exports=p?function(e,t){var n=a(i(e));return c(n,t>>>0||(m(d,n)?16:10))}:c},1058:(e,t,n)=>{var r=n(2109),o=n(3009);r({global:!0,forced:parseInt!=o},{parseInt:o})}}]); \ No newline at end of file diff --git a/docs/780.b2d4c8f3.css b/docs/780.fb15166d.css similarity index 87% rename from docs/780.b2d4c8f3.css rename to docs/780.fb15166d.css index a6c81a3..b13a9d1 100644 --- a/docs/780.b2d4c8f3.css +++ b/docs/780.fb15166d.css @@ -1 +1 @@ -.example-designer-tool-left .form-check{height:24px;line-height:24px;margin-right:10px}.example-designer-tool-left .form-check-input{margin-top:5px}.xform-setting .custom-control{line-height:24px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.xform-setting+.xform-setting{margin-top:10px}.xform-setting header{font-weight:700}.xform-bs-empty-tip{color:#9a9a9a;font-size:14px;font-weight:600;left:50%;margin:0;position:absolute;text-align:center;top:45%;transform:translateX(-50%)}.xform-bs-setting-option{align-items:center;display:flex;flex-flow:row nowrap;margin-bottom:5px}.xform-bs-setting-option .form-control{flex:1;width:auto}.xform-bs-setting-option>button{box-shadow:none!important;font-size:14px;padding:0 5px}.xform-bs-tabs-setting-title{position:relative}.xform-bs-tabs-setting-title header{font-weight:700;line-height:20px;margin-bottom:5px}.xform-bs-tabs-setting-title .custom-checkbox{position:absolute;right:0;top:-2px}.btn-text{box-shadow:none!important;text-decoration:none}.btn-text:hover{text-decoration:underline}.AXFb4Oig8ZeDiFbhXuYz{align-items:center;display:flex;flex-flow:row nowrap;height:30px;line-height:30px}.AXFb4Oig8ZeDiFbhXuYz strong{margin:0 4px}.AXFb4Oig8ZeDiFbhXuYz .form-control{line-height:24px;margin-left:10px;min-height:auto;padding-bottom:2px;padding-top:2px;width:150px}.AXFb4Oig8ZeDiFbhXuYz select.form-control{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;height:30px}.iWE_4uCf4uyQn_tLfdFy{width:100px!important}.sB3AFYNaFORDlWcGrxlt{margin-left:10px;position:relative;width:150px}.sB3AFYNaFORDlWcGrxlt.OtHZDvPvfQXl3I11LAgt .KWHt_ndQ5GEsVJUtXQYh{display:block}.h1PUhksP8HK12SoDIGes{background-color:#fff;border:1px solid #ced4da;border-radius:.2rem;font-size:14px}.WmRtyHt8kqMQHupjVvLp{align-items:center;cursor:pointer;display:flex;flex-flow:row nowrap;height:28px;padding:3px}.xePwQttuwHZK5vdsCR3C{flex:1;height:22px;overflow:hidden;width:0}.DVFkYWXKXx2rZjsQFmu4{background-color:#f0f0f0;border-radius:.2rem;display:inline-block;line-height:22px;max-width:100%;overflow:hidden;padding-left:4px;padding-right:22px;position:relative;text-overflow:ellipsis;white-space:nowrap}.DVFkYWXKXx2rZjsQFmu4 button{height:10px;margin:0;outline:none;padding:0;position:absolute;right:6px;top:6px;width:10px}.DVFkYWXKXx2rZjsQFmu4 button:hover{opacity:1}.DVFkYWXKXx2rZjsQFmu4.WNtQTCU1_0FMcrKNFNtQ{padding-right:4px}.N3qbgu_2jrraEnSTvr4v{margin-left:8px}.KWHt_ndQ5GEsVJUtXQYh{background-color:#fff;display:none;left:0;position:absolute;visibility:hidden;z-index:9}.eB5UIkUUUezJM4OFekON .KWHt_ndQ5GEsVJUtXQYh{bottom:auto;padding-top:2px;top:100%;visibility:visible}.j7WxDYcNwNmrUp0hYKDC .KWHt_ndQ5GEsVJUtXQYh{bottom:100%;padding-bottom:2px;top:auto;visibility:visible}.cfOFhC3FekAfcitjEycp{border:1px solid #ced4da;border-radius:.2rem;max-height:150px;min-width:100%}.mwsDV3WFwJJI70BjHpCL{color:var(--xform-text-color);cursor:pointer;height:30px;line-height:30px;max-width:320px;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.mwsDV3WFwJJI70BjHpCL:hover{background-color:var(--xform-color-primary-lighten)}.mwsDV3WFwJJI70BjHpCL.MEYf6umeDEjDlX5WICTO{color:var(--xform-color-primary);font-weight:700}.vzAYAKVuocClV63pX2iZ{color:#6c757d;cursor:pointer;padding-left:.5rem;padding-right:.5rem}.cAYZ4kU7Yau6BiGPdWNa{margin:0 4px}.nvXUVNRMBnPTDYR1nlt1{display:flex;flex-flow:row nowrap;height:500px}.PydYKRiTAC7fV40xtSAa{border-right:1px solid #dee2e6;display:flex;flex-flow:column nowrap;width:200px}.PydYKRiTAC7fV40xtSAa h5{background-color:#f0f0f0;border-bottom:1px solid #dee2e6;border-top:1px solid #dee2e6;font-size:14px;line-height:20px;margin:0;padding:4px 10px}.zkFYjUnmaOIo7OFzjIWU{display:flex;flex-flow:column nowrap;max-height:50%}.zkFYjUnmaOIo7OFzjIWU h5{border-top-color:transparent}.wcuEasrlKx0gGhcJailM{display:flex;flex:1;flex-flow:column nowrap;height:0}.wcuEasrlKx0gGhcJailM h5{position:relative}.wcuEasrlKx0gGhcJailM h5 button{margin:0;position:absolute;right:10px;top:4px}.c1HbMKvNMsq1VBgjI9sC,.frZZEkiqDstOTP882TlO{flex:1;height:0}.WQxdmEedM0V75KipOZud{flex:1;padding:15px 10px;width:0}.aEpvVSWsA76hfSesn_H0{border:1px dashed #ccc;padding:15px;position:relative}.aEpvVSWsA76hfSesn_H0.is-composed{padding:24px 20px}.aEpvVSWsA76hfSesn_H0.is-error{border-color:var(--xform-color-danger)!important}.aEpvVSWsA76hfSesn_H0.is-selected{border-color:#007bff;border-style:solid}.aEpvVSWsA76hfSesn_H0 .is-logic-legend{background-color:#fff;left:12px;line-height:20px;padding-left:8px;position:absolute;top:-10px;z-index:2}.aEpvVSWsA76hfSesn_H0 .is-logic-legend strong{margin:0 2px}.aEpvVSWsA76hfSesn_H0+.aEpvVSWsA76hfSesn_H0{margin-top:15px}.aEpvVSWsA76hfSesn_H0>.aEpvVSWsA76hfSesn_H0:after{border-bottom:1px dashed #ccc;content:"";left:-20px;position:absolute;top:50%;width:20px}.Exkbzke6uyngN6DG2a38{background-color:#fff!important;position:absolute;right:10px;top:-10px}.M8j6XwiKGXGRt2UD1Wjf{background-color:transparent;border:none;border-bottom:1px solid transparent;color:var(--xform-color-primary);cursor:pointer;font-size:14px;height:20px;line-height:20px;margin:0 5px;padding:0;transition:border-bottom-color .3s ease}.M8j6XwiKGXGRt2UD1Wjf:hover{border-bottom-color:currentColor}.M8j6XwiKGXGRt2UD1Wjf.uMqLGhPdsNOBar9RejRo{color:var(--xform-color-danger)}.Wap5eyoLe71hYMLihiBN{cursor:pointer;line-height:20px;padding:4px 10px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.Wap5eyoLe71hYMLihiBN.xform-is-disabled{color:#6c757d;cursor:not-allowed}.Wap5eyoLe71hYMLihiBN:hover{background-color:#f0f0f0}.MYqnhW_hU3hRIJcvQFX6{color:var(--xform-text-color-secondary);padding-top:120px;text-align:center}.tgeXjHzTskDb8HZle1n9{color:var(--xform-text-color-secondary);line-height:20px}.nzbYZbOqkpn9LQjr8iGY{bottom:0;color:var(--xform-color-danger);font-size:12px;left:20px;line-height:15px;position:absolute}.xform-bs-modal .modal-dialog{max-width:none}.xform-bs-modal .modal-title{line-height:27px;margin:0;padding:0}.xform-bs-modal .modal-header{align-items:center;padding:10px 18px 10px 10px}.xform-bs-modal .modal-body{padding:10px}.xform-bs-modal .modal-footer{padding:10px;position:relative}.xform-bs-modal .modal-footer .btn{margin:0 0 0 10px;min-width:60px}.xform-bs-modal .modal-footer-left{left:0;margin:0;position:absolute;top:10px}.MyFDKdyFHQgakOSw6YhR .modal-body{overflow:auto;padding:0}.VMGeYtrSlpdGbmEa3zR4{border:none;box-shadow:none!important;float:right;font-size:14px;line-height:20px;padding:0}.o5agcyLGhHZQzloobthZ{color:var(--xform-text-color-secondary)}.xform-bs-field-setting-head{border-bottom:1px solid rgba(0,0,0,.125);font-size:16px;font-weight:700;line-height:24px;margin:0 0 10px;padding:0 0 3px}.xform-bs-field-setting-prop+.xform-bs-field-setting-prop{margin-top:15px}.xform-bs-field-setting-prop>header{font-size:14px;font-weight:700;line-height:20px;margin-bottom:5px}.xform-bs-is-empty{color:#6c757d}.xform-bs-select option{color:#495057}.xform-bs-select option.xform-bs-is-placeholer{color:#6c757d}.deY9Z_hB27uAHEd9_O0C{display:flex;flex-flow:row nowrap}.deY9Z_hB27uAHEd9_O0C select+select{margin-left:5px}.xform-bs-radio{padding:5px 0}.xform-bs-radio .form-check{font-size:16px;line-height:24px;margin-bottom:0}.xform-bs-radio .form-check+.form-check{margin-top:5px}.xform-bs-radio .form-check-label{font-size:var(--xform-font-size)}.xform-bs-radio .form-check-inline{margin-top:0!important}.ySdLSG3unM25YHrKsbYt{display:flex;flex-flow:row nowrap}.ySdLSG3unM25YHrKsbYt select+select{margin-left:5px}.xform-bs-checkbox{padding:5px 0}.xform-bs-checkbox .form-check{font-size:16px;line-height:24px;margin-bottom:0}.xform-bs-checkbox .form-check+.form-check{margin-top:5px}.xform-bs-checkbox .form-check-label{font-size:var(--xform-font-size)}.xform-bs-checkbox .form-check-inline{margin-top:0!important}.vWbaOSSoRLt4TBhSTiME select+select{margin-top:5px}.u7Tcivau3QkBOwAATtHv{display:flex}.u7Tcivau3QkBOwAATtHv select{flex:1}.u7Tcivau3QkBOwAATtHv input[type=date]{margin-left:5px;width:200px}.xform-divider{height:32px;line-height:32px;padding:0 5px;position:relative;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{left:0;position:absolute;right:0;z-index:0}.xform-divider-line.xform-divider-type-solid{border-top:1px solid #666;top:15px}.xform-divider-line.xform-divider-type-dashed{border-top:1px dashed #666;top:15px}.xform-divider-line.xform-divider-type-double{border-bottom:1px solid #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-solid-dashed{border-bottom:1px dashed #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-dashed-solid{border-bottom:1px solid #666;border-top:1px dashed #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-title{background-color:#fff;font-size:18px;font-weight:600;padding:0 5px;position:relative;z-index:1}.xform-divider-types .form-check-input{margin-top:9px}.xform-divider-types .form-check-label{display:block;width:100%}.xform-bs-divider-range{display:flex;flex-flow:row nowrap;margin-top:10px}.xform-bs-divider-range label{width:64px}.xform-bs-divider-range .form-range{flex:1}.xform-preview-group.xform-is-selected>.xform-preview-cover,.xform-preview-group:hover>.xform-preview-cover{background-color:#fdd58a}.xform-preview-group .card-body.xform-bs-group-list{padding:5px}.xform-preview-group .xform-is-top{padding-left:0!important}.xform-bs-group{display:block}.xform-bs-group .xform-is-top{padding-left:10px}.xform-bs-group .xform-bs-group-list{min-height:200px;padding:10px 10px 10px 5px;position:relative}.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{align-items:center;display:flex;flex-flow:row nowrap;font-size:14px;font-weight:700;margin-top:0;padding-left:10px;padding-right:10px}.xform-bs-group .card-header span{color:var(--xform-text-color);cursor:default;flex:1;font-size:var(--xform-font-size);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xform-bs-group-toggle{background-color:transparent;border:none;box-shadow:none!important;font-size:14px;height:16px;line-height:16px;margin:0;padding:0}.xform-bs-tabs{background-color:#fff;display:block;position:relative}.xform-bs-tabs .tab-pane{border-bottom:1px solid #dee2e6;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;min-height:200px;padding:10px 5px}.xform-bs-tabs .nav-tabs-title{border-bottom:1px solid #dee2e6;box-sizing:content-box;color:var(--xform-text-color);cursor:default;font-size:var(--xform-font-size);max-width:var(--xform-label-width);overflow:hidden;padding:.5rem 10px;text-overflow:ellipsis;white-space:nowrap}.xform-bs-tabs .nav-tabs{background-color:rgba(0,0,0,.03);border:1px solid #dee2e6;border-bottom:none;border-radius:.25rem .25rem 0 0;display:flex;flex-flow:row nowrap;padding-top:5px}.xform-bs-tabs .xform-bs-tabs-scroll{flex:1;overflow:hidden}.xform-bs-tabs .xform-bs-tab-list{border-bottom:1px solid #dee2e6;float:left;min-width:100%;padding:0 5px;white-space:nowrap}.xform-bs-tabs .xform-bs-tab-list .nav-link{display:inline-block}.xform-bs-tabs .nav-link{color:inherit}.xform-bs-tabs .nav-link.active,.xform-bs-tabs .nav-link:hover{color:#007bff}.xform-bs-tabs .tab-pane{border-radius:0 0 .25rem .25rem}.xform-preview-tabs .xform-bs-tabs-scroll{position:relative;z-index:9}.xform-preview-tabs .tab-pane{padding:5px;position:relative}.xform-preview-datatable.xform-is-selected>.xform-preview-cover,.xform-preview-datatable:hover>.xform-preview-cover,.xform-preview-tabs.xform-is-selected>.xform-preview-cover,.xform-preview-tabs:hover>.xform-preview-cover{background-color:#fdd58a}.xform-preview-datatable .xform-bs-datatable{border:1px solid #ccc;position:relative;z-index:9}.xform-preview-datatable .xform-preview{margin-top:0}.xform-preview-datatable .xform-preview+.xform-preview{margin-left:5px}.xform-preview-datatable .xform-bs-empty-tip{top:50%;transform:translate(-50%,-50%)}.xform-preview-datatable .xform-bs-datatable-cell{height:26px;line-height:26px;overflow:hidden;text-align:center;white-space:nowrap}.xform-preview-datatable .xform-bs-datatable-columns{display:flex;flex-flow:row nowrap;float:left;height:50px;min-width:100%;padding:5px}.xform-bs-datatable .xform-item{margin-bottom:0}.xform-bs-datatable .xform-item .xform-item-message{bottom:-13px;line-height:14px}.xform-bs-datatable .xform-viewer-value{display:inline;line-height:24px;padding-bottom:0;padding-top:0}.xform-bs-datatable tr td{padding:14px 8px;vertical-align:middle}.xform-bs-datatable th.xform-bs-datatable-index,.xform-bs-datatable th.xform-bs-datatable-operate{background-color:#f5f5f5}.xform-bs-datatable td.xform-bs-datatable-index,.xform-bs-datatable td.xform-bs-datatable-operate{background-color:#fff}.xform-bs-datatable .table>thead{border-top-color:#dee2e6;border-top-width:1px}.xform-bs-datatable .table>tbody{border-top-color:#dee2e6}.xform-bs-datatable-view td,.xform-bs-datatable-view th,.xform-bs-datatable[data-layout=modal] td,.xform-bs-datatable[data-layout=modal] th{padding:8px}.xform-bs-datatable .table,.xform-bs-datatable-view .table{margin-bottom:0}.xform-bs-datatable[data-layout=inline] td.xform-bs-datatable-index button{display:none;text-align:center}.xform-bs-datatable[data-layout=inline] tbody tr:hover td.xform-bs-datatable-index strong{display:none}.xform-bs-datatable[data-layout=inline] tbody tr:hover td.xform-bs-datatable-index button{display:block}.xform-bs-datatable-cell span{padding:0!important;position:relative}.xform-bs-datatable-cell.xform-is-required{font-weight:700}.xform-bs-datatable-cell.xform-is-required span:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:-8px;line-height:1;position:absolute;top:0}.xform-bs-datatable-operate{position:-webkit-sticky;position:sticky;right:0;text-align:center;z-index:8}.xform-bs-datatable-index>button,.xform-bs-datatable-operate>button{font-size:14px;line-height:1;padding:0}.xform-bs-datatable-operate>button+button{margin-left:10px}.xform-bs-datatable-index{font-size:14px;left:0;position:-webkit-sticky;position:sticky;z-index:8}.xform-bs-datatable-tip{color:#6c757d;left:0;max-width:100%;padding:10px 0;position:-webkit-sticky;position:sticky;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.xform-bs-datatable-tip span{display:inline-block;height:20px;line-height:20px;vertical-align:middle}.xform-bs-datatable-tip button{border:none;height:20px;line-height:20px;padding:0 5px;vertical-align:middle}.xform-bs-datatable-error{line-height:31px}.xform-bs-datatable-modal-layout .modal-dialog{margin-top:12vh;max-height:76vh;min-height:auto}.xform-bs-datatable-modal-layout .modal-body{padding:10px 0 0}.xform-bs-datatable-column{border:1px solid #ced4da;border-radius:3px;line-height:30px;overflow:hidden;position:relative}.xform-bs-datatable-column:after{content:"px";font-weight:700;position:absolute;right:0;text-align:center;top:0;width:20px;z-index:2}.xform-bs-datatable-column label{font-weight:700;margin:0;padding-left:10px;position:relative;z-index:2}.xform-bs-datatable-column input{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;background-color:#e9ecef!important;border:none;box-shadow:none!important;height:26px;line-height:20px;min-height:0;padding:3px 5px;position:absolute;right:20px;top:2px;width:90px;z-index:2}.xform-bs-datatable-column input::-webkit-inner-spin-button{-webkit-appearance:none!important}.xform-bs-datatable-column+.xform-bs-datatable-column{margin-top:5px}.D2xFwxXoIfj0ESDBQYqx{background-color:#f3f6f8;border-right:1px solid #ced4da;height:100%;left:0;position:absolute;top:0;z-index:1}.tx1MA84ThNWpBbZ1ULgu{margin-top:7px} \ No newline at end of file +.example-designer-tool-left .form-check{height:24px;line-height:24px;margin-right:10px}.example-designer-tool-left .form-check-input{margin-top:5px}.xform-setting .custom-control{line-height:24px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.xform-setting+.xform-setting{margin-top:10px}.xform-setting header{font-weight:700}.xform-bs-empty-tip{color:#9a9a9a;font-size:14px;font-weight:600;left:50%;margin:0;position:absolute;text-align:center;top:45%;transform:translateX(-50%)}.xform-bs-setting-option{align-items:center;display:flex;flex-flow:row nowrap;margin-bottom:5px}.xform-bs-setting-option .form-control{flex:1;width:auto}.xform-bs-setting-option>button{box-shadow:none!important;font-size:14px;padding:0 5px}.xform-bs-tabs-setting-title{position:relative}.xform-bs-tabs-setting-title header{font-weight:700;line-height:20px;margin-bottom:5px}.xform-bs-tabs-setting-title .custom-checkbox{position:absolute;right:0;top:-2px}.btn-text{box-shadow:none!important;text-decoration:none}.btn-text:hover{text-decoration:underline}.AXFb4Oig8ZeDiFbhXuYz{align-items:center;display:flex;flex-flow:row nowrap;height:30px;line-height:30px}.AXFb4Oig8ZeDiFbhXuYz strong{margin:0 4px}.AXFb4Oig8ZeDiFbhXuYz .form-control{line-height:24px;margin-left:10px;min-height:auto;padding-bottom:2px;padding-top:2px;width:150px}.AXFb4Oig8ZeDiFbhXuYz select.form-control{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;height:30px}.iWE_4uCf4uyQn_tLfdFy{width:100px!important}.sB3AFYNaFORDlWcGrxlt{margin-left:10px;position:relative;width:150px}.sB3AFYNaFORDlWcGrxlt.OtHZDvPvfQXl3I11LAgt .KWHt_ndQ5GEsVJUtXQYh{display:block}.h1PUhksP8HK12SoDIGes{background-color:#fff;border:1px solid #ced4da;border-radius:.2rem;font-size:14px}.WmRtyHt8kqMQHupjVvLp{align-items:center;cursor:pointer;display:flex;flex-flow:row nowrap;height:28px;padding:3px}.xePwQttuwHZK5vdsCR3C{flex:1;height:22px;overflow:hidden;width:0}.DVFkYWXKXx2rZjsQFmu4{background-color:#f0f0f0;border-radius:.2rem;display:inline-block;line-height:22px;max-width:100%;overflow:hidden;padding-left:4px;padding-right:22px;position:relative;text-overflow:ellipsis;white-space:nowrap}.DVFkYWXKXx2rZjsQFmu4 button{height:10px;margin:0;outline:none;padding:0;position:absolute;right:6px;top:6px;width:10px}.DVFkYWXKXx2rZjsQFmu4 button:hover{opacity:1}.DVFkYWXKXx2rZjsQFmu4.WNtQTCU1_0FMcrKNFNtQ{padding-right:4px}.N3qbgu_2jrraEnSTvr4v{margin-left:8px}.KWHt_ndQ5GEsVJUtXQYh{background-color:#fff;display:none;left:0;position:absolute;visibility:hidden;z-index:9}.eB5UIkUUUezJM4OFekON .KWHt_ndQ5GEsVJUtXQYh{bottom:auto;padding-top:2px;top:100%;visibility:visible}.j7WxDYcNwNmrUp0hYKDC .KWHt_ndQ5GEsVJUtXQYh{bottom:100%;padding-bottom:2px;top:auto;visibility:visible}.cfOFhC3FekAfcitjEycp{border:1px solid #ced4da;border-radius:.2rem;max-height:150px;min-width:100%}.mwsDV3WFwJJI70BjHpCL{color:var(--xform-text-color);cursor:pointer;height:30px;line-height:30px;max-width:320px;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.mwsDV3WFwJJI70BjHpCL:hover{background-color:var(--xform-color-primary-lighten)}.mwsDV3WFwJJI70BjHpCL.MEYf6umeDEjDlX5WICTO{color:var(--xform-color-primary);font-weight:700}.vzAYAKVuocClV63pX2iZ{color:#6c757d;cursor:pointer;padding-left:.5rem;padding-right:.5rem}.cAYZ4kU7Yau6BiGPdWNa{margin:0 4px}.nvXUVNRMBnPTDYR1nlt1{display:flex;flex-flow:row nowrap;height:500px}.PydYKRiTAC7fV40xtSAa{border-right:1px solid #dee2e6;display:flex;flex-flow:column nowrap;width:200px}.PydYKRiTAC7fV40xtSAa h5{background-color:#f0f0f0;border-bottom:1px solid #dee2e6;border-top:1px solid #dee2e6;font-size:14px;line-height:20px;margin:0;padding:4px 10px}.zkFYjUnmaOIo7OFzjIWU{display:flex;flex-flow:column nowrap;max-height:50%}.zkFYjUnmaOIo7OFzjIWU h5{border-top-color:transparent}.wcuEasrlKx0gGhcJailM{display:flex;flex:1;flex-flow:column nowrap;height:0}.wcuEasrlKx0gGhcJailM h5{position:relative}.wcuEasrlKx0gGhcJailM h5 button{margin:0;position:absolute;right:10px;top:4px}.c1HbMKvNMsq1VBgjI9sC,.frZZEkiqDstOTP882TlO{flex:1;height:0}.WQxdmEedM0V75KipOZud{flex:1;padding:15px 10px;width:0}.aEpvVSWsA76hfSesn_H0{border:1px dashed #ccc;padding:15px;position:relative}.aEpvVSWsA76hfSesn_H0.is-composed{padding:24px 20px}.aEpvVSWsA76hfSesn_H0.is-error{border-color:var(--xform-color-danger)!important}.aEpvVSWsA76hfSesn_H0.is-selected{border-color:#007bff;border-style:solid}.aEpvVSWsA76hfSesn_H0 .is-logic-legend{background-color:#fff;left:12px;line-height:20px;padding-left:8px;position:absolute;top:-10px;z-index:2}.aEpvVSWsA76hfSesn_H0 .is-logic-legend strong{margin:0 2px}.aEpvVSWsA76hfSesn_H0+.aEpvVSWsA76hfSesn_H0{margin-top:15px}.aEpvVSWsA76hfSesn_H0>.aEpvVSWsA76hfSesn_H0:after{border-bottom:1px dashed #ccc;content:"";left:-20px;position:absolute;top:50%;width:20px}.Exkbzke6uyngN6DG2a38{background-color:#fff!important;position:absolute;right:10px;top:-10px}.M8j6XwiKGXGRt2UD1Wjf{background-color:transparent;border:none;border-bottom:1px solid transparent;color:var(--xform-color-primary);cursor:pointer;font-size:14px;height:20px;line-height:20px;margin:0 5px;padding:0;transition:border-bottom-color .3s ease}.M8j6XwiKGXGRt2UD1Wjf:hover{border-bottom-color:currentColor}.M8j6XwiKGXGRt2UD1Wjf.uMqLGhPdsNOBar9RejRo{color:var(--xform-color-danger)}.Wap5eyoLe71hYMLihiBN{cursor:pointer;line-height:20px;padding:4px 10px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.Wap5eyoLe71hYMLihiBN.xform-is-disabled{color:#6c757d;cursor:not-allowed}.Wap5eyoLe71hYMLihiBN:hover{background-color:#f0f0f0}.MYqnhW_hU3hRIJcvQFX6{color:var(--xform-text-color-secondary);padding-top:120px;text-align:center}.tgeXjHzTskDb8HZle1n9{color:var(--xform-text-color-secondary);line-height:20px}.nzbYZbOqkpn9LQjr8iGY{bottom:0;color:var(--xform-color-danger);font-size:12px;left:20px;line-height:15px;position:absolute}.xform-bs-modal .modal-dialog{max-width:none}.xform-bs-modal .modal-title{line-height:27px;margin:0;padding:0}.xform-bs-modal .modal-header{align-items:center;padding:10px 18px 10px 10px}.xform-bs-modal .modal-body{padding:10px}.xform-bs-modal .modal-footer{padding:10px;position:relative}.xform-bs-modal .modal-footer .btn{margin:0 0 0 10px;min-width:60px}.xform-bs-modal .modal-footer-left{left:0;margin:0;position:absolute;top:10px}.MyFDKdyFHQgakOSw6YhR .modal-body{overflow:auto;padding:0}.VMGeYtrSlpdGbmEa3zR4{border:none;box-shadow:none!important;float:right;font-size:14px;line-height:20px;padding:0}.o5agcyLGhHZQzloobthZ{color:var(--xform-text-color-secondary)}.xform-bs-field-setting-head{border-bottom:1px solid rgba(0,0,0,.125);font-size:16px;font-weight:700;line-height:24px;margin:0 0 10px;padding:0 0 3px}.xform-bs-field-setting-prop+.xform-bs-field-setting-prop{margin-top:15px}.xform-bs-field-setting-prop>header{font-size:14px;font-weight:700;line-height:20px;margin-bottom:5px}.xform-bs-is-empty{color:#6c757d}.xform-bs-select option{color:#495057}.xform-bs-select option.xform-bs-is-placeholer{color:#6c757d}.deY9Z_hB27uAHEd9_O0C{display:flex;flex-flow:row nowrap}.deY9Z_hB27uAHEd9_O0C select+select{margin-left:5px}.xform-bs-radio{padding:5px 0}.xform-bs-radio .form-check{font-size:16px;line-height:24px;margin-bottom:0}.xform-bs-radio .form-check+.form-check{margin-top:5px}.xform-bs-radio .form-check-label{font-size:var(--xform-font-size)}.xform-bs-radio .form-check-inline{margin-top:0!important}.ySdLSG3unM25YHrKsbYt{display:flex;flex-flow:row nowrap}.ySdLSG3unM25YHrKsbYt select+select{margin-left:5px}.xform-bs-checkbox{padding:5px 0}.xform-bs-checkbox .form-check{font-size:16px;line-height:24px;margin-bottom:0}.xform-bs-checkbox .form-check+.form-check{margin-top:5px}.xform-bs-checkbox .form-check-label{font-size:var(--xform-font-size)}.xform-bs-checkbox .form-check-inline{margin-top:0!important}.vWbaOSSoRLt4TBhSTiME select+select{margin-top:5px}.u7Tcivau3QkBOwAATtHv{display:flex}.u7Tcivau3QkBOwAATtHv select{flex:1}.u7Tcivau3QkBOwAATtHv input[type=date]{margin-left:5px;width:200px}.xform-divider{height:32px;line-height:32px;padding:0 5px;position:relative;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{left:0;position:absolute;right:0;z-index:0}.xform-divider-line.xform-divider-type-solid{border-top:1px solid #666;top:15px}.xform-divider-line.xform-divider-type-dashed{border-top:1px dashed #666;top:15px}.xform-divider-line.xform-divider-type-double{border-bottom:1px solid #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-solid-dashed{border-bottom:1px dashed #666;border-top:1px solid #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-line.xform-divider-type-dashed-solid{border-bottom:1px solid #666;border-top:1px dashed #666;box-sizing:border-box;height:4px;top:14px}.xform-divider-title{background-color:#fff;font-size:18px;font-weight:600;padding:0 5px;position:relative;z-index:1}.xform-divider-types .form-check-input{margin-top:9px}.xform-divider-types .form-check-label{display:block;width:100%}.xform-bs-divider-range{display:flex;flex-flow:row nowrap;margin-top:10px}.xform-bs-divider-range label{width:64px}.xform-bs-divider-range .form-range{flex:1}.xform-preview-group.xform-is-selected>.xform-preview-cover,.xform-preview-group:hover>.xform-preview-cover{background-color:#fdd58a}.xform-preview-group .card-body.xform-bs-group-list{padding:5px}.xform-preview-group .xform-is-top{padding-left:0!important}.xform-bs-group{display:block}.xform-bs-group .xform-is-top{padding-left:10px}.xform-bs-group .xform-bs-group-list{min-height:200px;padding:10px 10px 10px 5px;position:relative}.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{align-items:center;display:flex;flex-flow:row nowrap;font-size:14px;font-weight:700;margin-top:0;padding-left:10px;padding-right:10px}.xform-bs-group .card-header span{color:var(--xform-text-color);cursor:default;flex:1;font-size:var(--xform-font-size);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xform-bs-group-toggle{background-color:transparent;border:none;box-shadow:none!important;font-size:14px;height:16px;line-height:16px;margin:0;padding:0}.xform-bs-tabs{background-color:#fff;display:block;position:relative}.xform-bs-tabs .tab-pane{border-bottom:1px solid #dee2e6;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;min-height:200px;padding:10px 5px}.xform-bs-tabs .nav-tabs-title{border-bottom:1px solid #dee2e6;box-sizing:content-box;color:var(--xform-text-color);cursor:default;font-size:var(--xform-font-size);max-width:var(--xform-label-width);overflow:hidden;padding:.5rem 10px;text-overflow:ellipsis;white-space:nowrap}.xform-bs-tabs .nav-tabs{background-color:rgba(0,0,0,.03);border:1px solid #dee2e6;border-bottom:none;border-radius:.25rem .25rem 0 0;display:flex;flex-flow:row nowrap;padding-top:5px}.xform-bs-tabs .xform-bs-tabs-scroll{flex:1;overflow:hidden}.xform-bs-tabs .xform-bs-tab-list{border-bottom:1px solid #dee2e6;float:left;min-width:100%;padding:0 5px;white-space:nowrap}.xform-bs-tabs .xform-bs-tab-list .nav-link{display:inline-block}.xform-bs-tabs .nav-link{color:inherit}.xform-bs-tabs .nav-link.active,.xform-bs-tabs .nav-link:hover{color:#007bff}.xform-bs-tabs .tab-pane{border-radius:0 0 .25rem .25rem}.xform-preview-tabs .xform-bs-tabs-scroll{position:relative;z-index:9}.xform-preview-tabs .tab-pane{padding:5px;position:relative}.xform-preview-datatable.xform-is-selected>.xform-preview-cover,.xform-preview-datatable:hover>.xform-preview-cover,.xform-preview-tabs.xform-is-selected>.xform-preview-cover,.xform-preview-tabs:hover>.xform-preview-cover{background-color:#fdd58a}.xform-preview-datatable .xform-bs-datatable{border:1px solid #ccc;position:relative;z-index:9}.xform-preview-datatable .xform-preview{margin-top:0}.xform-preview-datatable .xform-preview+.xform-preview{margin-left:5px}.xform-preview-datatable .xform-bs-empty-tip{top:50%;transform:translate(-50%,-50%)}.xform-preview-datatable .xform-bs-datatable-cell{height:26px;line-height:26px;overflow:hidden;text-align:center;white-space:nowrap}.xform-preview-datatable .xform-bs-datatable-columns{display:flex;flex-flow:row nowrap;float:left;height:50px;min-width:100%;padding:5px}.xform-bs-datatable .xform-item{margin-bottom:0}.xform-bs-datatable .xform-item .xform-item-message{bottom:-13px;line-height:14px}.xform-bs-datatable .xform-viewer-value{display:inline;line-height:24px;padding-bottom:0;padding-top:0}.xform-bs-datatable tr td{padding:14px 8px;vertical-align:middle}.xform-bs-datatable th.xform-bs-datatable-index,.xform-bs-datatable th.xform-bs-datatable-operate{background-color:#f5f5f5}.xform-bs-datatable td.xform-bs-datatable-index,.xform-bs-datatable td.xform-bs-datatable-operate{background-color:#fff}.xform-bs-datatable .table>thead{border-top-color:#dee2e6;border-top-width:1px}.xform-bs-datatable .table>tbody{border-top-color:#dee2e6}.xform-bs-datatable-view td,.xform-bs-datatable-view th,.xform-bs-datatable[data-layout=modal] td,.xform-bs-datatable[data-layout=modal] th{padding:8px}.xform-bs-datatable .table,.xform-bs-datatable-view .table{margin-bottom:0}.xform-bs-datatable[data-layout=inline] td.xform-bs-datatable-index button{display:none;text-align:center}.xform-bs-datatable[data-layout=inline] tbody tr:hover td.xform-bs-datatable-index strong{display:none}.xform-bs-datatable[data-layout=inline] tbody tr:hover td.xform-bs-datatable-index button{display:block}.xform-bs-datatable-cell span{padding:0!important;position:relative}.xform-bs-datatable-cell.xform-is-required{font-weight:700}.xform-bs-datatable-cell.xform-is-required span:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:-8px;line-height:1;position:absolute;top:0}.xform-bs-datatable-operate{position:sticky;right:0;text-align:center;z-index:8}.xform-bs-datatable-index>button,.xform-bs-datatable-operate>button{font-size:14px;line-height:1;padding:0}.xform-bs-datatable-operate>button+button{margin-left:10px}.xform-bs-datatable-index{font-size:14px;left:0;position:sticky;z-index:8}.xform-bs-datatable-tip{color:#6c757d;left:0;max-width:100%;padding:10px 0;position:sticky;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.xform-bs-datatable-tip span{display:inline-block;height:20px;line-height:20px;vertical-align:middle}.xform-bs-datatable-tip button{border:none;height:20px;line-height:20px;padding:0 5px;vertical-align:middle}.xform-bs-datatable-error{line-height:31px}.xform-bs-datatable-modal-layout .modal-dialog{margin-top:12vh;max-height:76vh;min-height:auto}.xform-bs-datatable-modal-layout .modal-body{padding:10px 0 0}.xform-bs-datatable-column{border:1px solid #ced4da;border-radius:3px;line-height:30px;overflow:hidden;position:relative}.xform-bs-datatable-column:after{content:"px";font-weight:700;position:absolute;right:0;text-align:center;top:0;width:20px;z-index:2}.xform-bs-datatable-column label{font-weight:700;margin:0;padding-left:10px;position:relative;z-index:2}.xform-bs-datatable-column input{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;background-color:#e9ecef!important;border:none;box-shadow:none!important;height:26px;line-height:20px;min-height:0;padding:3px 5px;position:absolute;right:20px;top:2px;width:90px;z-index:2}.xform-bs-datatable-column input::-webkit-inner-spin-button{-webkit-appearance:none!important}.xform-bs-datatable-column+.xform-bs-datatable-column{margin-top:5px}.D2xFwxXoIfj0ESDBQYqx{background-color:#f3f6f8;border-right:1px solid #ced4da;height:100%;left:0;position:absolute;top:0;z-index:1}.tx1MA84ThNWpBbZ1ULgu{margin-top:7px} \ No newline at end of file diff --git a/docs/780.ff657e47.js b/docs/780.ff657e47.js deleted file mode 100644 index 90957ee..0000000 --- a/docs/780.ff657e47.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkxform=self.webpackChunkxform||[]).push([[780],{3147:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Gl});var r=n(9784),l=n(6252),o=n(9963);n(1249),n(4916);const i={logicForm:"AXFb4Oig8ZeDiFbhXuYz",logicOperator:"iWE_4uCf4uyQn_tLfdFy",multipleSelect:"sB3AFYNaFORDlWcGrxlt",isOpen:"OtHZDvPvfQXl3I11LAgt",multipleSelectPanel:"KWHt_ndQ5GEsVJUtXQYh",multipleSelectInput:"h1PUhksP8HK12SoDIGes",multipleSelectContent:"WmRtyHt8kqMQHupjVvLp",multipleSelectTags:"xePwQttuwHZK5vdsCR3C",multipleSelectTag:"DVFkYWXKXx2rZjsQFmu4",isSingle:"WNtQTCU1_0FMcrKNFNtQ",multipleSelectCount:"N3qbgu_2jrraEnSTvr4v",isBottom:"eB5UIkUUUezJM4OFekON",isTop:"j7WxDYcNwNmrUp0hYKDC",multipleSelectOptions:"cfOFhC3FekAfcitjEycp",multipleSelectOption:"mwsDV3WFwJJI70BjHpCL",isSelected:"MEYf6umeDEjDlX5WICTO",multipleSelectPlaceholder:"vzAYAKVuocClV63pX2iZ",warnFieldTitle:"cAYZ4kU7Yau6BiGPdWNa"};var a=n(8018),u=(n(9826),n(1539),(0,r.hS)().CLASS);function c(e,t){var n=t.parent.find(e.field);if(null==n)return(0,l.Wm)("div",{class:u.IS_WARNING},[(0,l.Uk)("当前逻辑失效,目标字段被删除或位置发生变化")]);var r=(0,l.Wm)("strong",{class:i.warnFieldTitle},[n.title]);return(0,l.Wm)("div",{class:u.IS_WARNING},[(0,l.Uk)("当前逻辑失效,目标字段"),r,(0,l.Uk)("的位置发生变化")])}var s=r.gN.createFieldLogic({type:"string_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_CONTAINS,a.d.OPERATOR_EMPTY].map((function(e){return(0,l.Wm)("option",{value:e.type},[e.title])})),u=(0,l.wy)((0,l.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[o.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,l.wy)((0,l.Wm)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[o.nr,e.value]]);return(0,l.Wm)("div",{class:i.logicForm},[(0,l.Wm)("span",null,[(0,l.Uk)("如果")]),(0,l.Wm)("strong",null,[n?n.title:"N/A"]),(0,l.Wm)("span",null,[(0,l.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},validator:function(e){return e.operator==a.d.OPERATOR_EMPTY.type||(!(0,r.xb)(e.value)||"请补全目标值")},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}}),d=r.gN.createFieldLogic({type:"string_length_compare",title:"长度",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_LT,a.d.OPERATOR_LTE,a.d.OPERATOR_GT,a.d.OPERATOR_GTE].map((function(e){return(0,l.Wm)("option",{value:e.type},[e.title])})),u=(0,l.wy)((0,l.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[o.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,l.wy)((0,l.Wm)("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[o.nr,e.value]]);return(0,l.Wm)("div",{class:i.logicForm},[(0,l.Wm)("span",null,[(0,l.Uk)("如果")]),(0,l.Wm)("strong",null,[n?n.title:"N/A"]),(0,l.Wm)("span",null,[(0,l.Uk)("的长度")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);if(null==r)return!0;var l=r.value;return"string"==typeof l&&n.test(l.length,e.value)},validator:function(e){return!(0,r.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}}),f=(n(8309),r.gN.createFieldLogic({type:"number_value_compare",title:"值",render:function(e,t){var n=t.previous().find((function(t){return t.name==e.field}));if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_LT,a.d.OPERATOR_LTE,a.d.OPERATOR_GT,a.d.OPERATOR_GTE].map((function(e){return(0,l.Wm)("option",{value:e.type},[e.title])})),u=(0,l.wy)((0,l.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[o.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,l.wy)((0,l.Wm)("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[o.nr,e.value,void 0,{number:!0}]]);return(0,l.Wm)("div",{class:i.logicForm},[(0,l.Wm)("span",null,[(0,l.Uk)("如果")]),(0,l.Wm)("strong",null,[n?n.title:"N/A"]),(0,l.Wm)("span",null,[(0,l.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);if(null==r)return!0;var l=r.value;return"number"==typeof l&&n.test(l,e.value)},validator:function(e){return!(0,r.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}})),p=r.gN.createFieldLogic({type:"date_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_LT,a.d.OPERATOR_LTE,a.d.OPERATOR_GT,a.d.OPERATOR_GTE,a.d.OPERATOR_EMPTY].map((function(e){return(0,l.Wm)("option",{value:e.type},[e.title])})),u=(0,l.wy)((0,l.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[o.bM,e.operator]]),s=e.operator===a.d.OPERATOR_EMPTY.type?null:(0,l.wy)((0,l.Wm)("input",{type:"date",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[o.nr,e.value]]);return(0,l.Wm)("div",{class:i.logicForm},[(0,l.Wm)("span",null,[(0,l.Uk)("如果")]),(0,l.Wm)("strong",null,[n?n.title:"N/A"]),(0,l.Wm)("span",null,[(0,l.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},validator:function(e){return!(0,r.xb)(e.value)||"请补全目标值"},onCreated:function(e){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type)}}),m=(n(9753),n(2772),n(561),n(7042),n(6699),n(2023),n(4812),n(8674),n(2526),n(1817),n(2165),n(6992),n(8783),n(3948),n(1038),n(9070),n(2443),n(3680),n(3706),n(2703),n(8011),n(489),n(9554),n(4747),n(8304),n(5069),n(2262));function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var l=t&&t.prototype instanceof d?t:d,o=Object.create(l.prototype),i=new P(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(l,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===l)throw o;return k()}for(n.method=l,n.arg=o;;){var i=n.delegate;if(i){var a=w(i,n);if(a){if(a===s)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var s={};function d(){}function f(){}function p(){}var m={};a(m,l,(function(){return this}));var y=Object.getPrototypeOf,h=y&&y(y(W([])));h&&h!==t&&n.call(h,l)&&(m=h);var g=p.prototype=d.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(l,o,i,a){var u=c(e[l],e,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==v(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,a)}))}a(u.arg)}var l;this._invoke=function(e,n){function o(){return new t((function(t,l){r(e,n,t,l)}))}return l=l?l.then(o,o):o()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var l=r.arg;return l?l.done?(t[e.resultName]=l.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):l:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function W(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--l){var o=this.tryEntries[l],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--r){var l=this.tryEntries[r];if(l.tryLoc<=this.prev&&n.call(l,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var l=r.arg;E(n)}return l}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:W(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||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 g(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?l.splice(o,1):l.push(t.value),n("update:modelValue",l)}function d(e){if(null==r.value)return 1;var t=r.value,n=t.closest(P.IS_SCROLL);if(null==n)return 1;var l=t.getBoundingClientRect(),o=n.getBoundingClientRect();return e.getBoundingClientRect().bottom+l.height>o.bottom?-1:1}function f(e){return p.apply(this,arguments)}function p(){return(p=w(b().mark((function e(t){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.value=!a.value,a.value){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,l.Y3)();case 5:u.value=d(t.target);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){var t=e.target;t instanceof Element&&null!=o.value&&(o.value.contains(t)||(a.value=!1))}function g(t){t.stopPropagation();var r=e.modelValue;r.splice(0,1),n("update:modelValue",r)}return document.addEventListener("click",v,!0),(0,l.Jd)((function(){document.removeEventListener("click",v,!0)})),function(){var t,n=e.options.map((function(t){var n,r,o=(y(n={},i.multipleSelectOption,!0),y(n,i.isSelected,e.modelValue&&e.modelValue.includes(t.value)),n);return(0,l.Wm)("div",{class:o,onClick:s.bind(null,t)},[null!==(r=t.label)&&void 0!==r?r:t.value])})),d=(y(t={},i.multipleSelect,!0),y(t,i.isOpen,a.value),y(t,i.isBottom,1===u.value),y(t,i.isTop,-1===u.value),t),p=c.value?(0,l.Wm)("div",{class:i.multipleSelectPlaceholder},[(0,l.Uk)("请选择目标值")]):function(){var t=e.modelValue;if(1==t.length)return(0,l.Wm)("div",{class:i.multipleSelectContent},[(0,l.Wm)("div",{class:i.multipleSelectTags},[(0,l.Wm)("div",{class:[i.multipleSelectTag,i.isSingle]},[t[0]])])]);var n=h(t),r=n[0],o=n.slice(1);return(0,l.Wm)("div",{class:i.multipleSelectContent},[(0,l.Wm)("div",{class:i.multipleSelectTags},[(0,l.Wm)("div",{class:i.multipleSelectTag},[(0,l.Wm)("span",{class:i.multipleSelectTagContent},[r]),(0,l.Wm)("button",{type:"button",class:"btn-close shadow-none",onClick:g},null)])]),(0,l.Wm)("div",{class:i.multipleSelectCount},[(0,l.Uk)("+"),o.length])])}();return(0,l.Wm)("div",{class:d,ref:o},[(0,l.Wm)("div",{class:i.multipleSelectInput,onClick:f},[p]),(0,l.Wm)("div",{class:i.multipleSelectPanel,ref:r},[(0,l.Wm)("div",{class:[i.multipleSelectOptions,E.IS_SCROLL]},[n])])])}}});function k(e,t){if(e.operator==a.d.OPERATOR_EMPTY.type)return null;if(e.operator==a.d.OPERATOR_CONTAINS.type)return(0,l.wy)((0,l.Wm)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t},placeholder:"目标值"},null),[[o.nr,e.value]]);if(!Array.isArray(t.options))return null;if(e.operator==a.d.OPERATOR_OPTION_EQ.type||e.operator==a.d.OPERATOR_OPTION_NE.type||e.operator==a.d.OPERATOR_OPTION_CONTAINS.type)return(0,l.Wm)(W,{options:t.options,modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},null);var n=t.options.map((function(e){var t;return(0,l.Wm)("option",{value:e.value},[null!==(t=e.label)&&void 0!==t?t:e.value])}));return(0,l.wy)((0,l.Wm)("select",{class:"form-control form-control-sm","onUpdate:modelValue":function(t){return e.value=t}},[(0,l.Wm)("option",{value:null,disabled:!0},[(0,l.Uk)("-- 请选择目标值 --")]),n]),[[o.bM,e.value]])}function T(e,t){if(!(t instanceof r.Wi)||null==e.value)return!1;var n=t.previous().find((function(t){return t.name==e.field}));if(null==n)return!1;var l=n.options;if(!Array.isArray(l)||0==l.length)return!1;var o,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}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 o,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(Array.isArray(e.value)?e.value:[e.value]);try{var a=function(){var e=o.value;if(null==l.find((function(t){return t.value===e})))return{v:!1}};for(i.s();!(o=i.n()).done;){var u=a();if("object"===v(u))return u.v}}catch(e){i.e(e)}finally{i.f()}return!0}var S=r.gN.createFieldLogic({type:"option_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_EQ,a.d.OPERATOR_NE,a.d.OPERATOR_CONTAINS,a.d.OPERATOR_EMPTY].map((function(e){return(0,l.Wm)("option",{value:e.type},[e.title])})),u=(0,l.wy)((0,l.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[o.bM,e.operator]]),s=k(e,n);return(0,l.Wm)("div",{class:i.logicForm},[(0,l.Wm)("span",null,[(0,l.Uk)("如果")]),(0,l.Wm)("strong",null,[n.title]),(0,l.Wm)("span",null,[(0,l.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},validator:function(e,t){return e.operator==a.d.OPERATOR_EMPTY.type||(e.operator==a.d.OPERATOR_CONTAINS.type?!(0,r.xb)(e.value)||"请输入目标值":!((0,r.xb)(e.value)||!T(e,t))||"请选择目标值")},onCreated:function(e,t){null==e.operator&&(e.operator=a.d.OPERATOR_EQ.type),e.operator==a.d.OPERATOR_CONTAINS.type||T(e,t)||(e.value=null)}}),R=r.gN.createFieldLogic({type:"multiple_option_value_compare",title:"值",render:function(e,t){var n=t.previousField(e.field);if(null==n)return c(e,t);var r=[a.d.OPERATOR_OPTION_EQ,a.d.OPERATOR_OPTION_NE,a.d.OPERATOR_OPTION_CONTAINS,a.d.OPERATOR_EMPTY].map((function(e){return(0,l.Wm)("option",{value:e.type},[e.title])})),u=(0,l.wy)((0,l.Wm)("select",{class:"form-control form-control-sm ".concat(i.logicOperator),"onUpdate:modelValue":function(t){return e.operator=t}},[r]),[[o.bM,e.operator]]),s=k(e,n);return(0,l.Wm)("div",{class:i.logicForm},[(0,l.Wm)("span",null,[(0,l.Uk)("如果")]),(0,l.Wm)("strong",null,[n.title]),(0,l.Wm)("span",null,[(0,l.Uk)("的值")]),u,s])},test:function(e,t){var n=a.d.get(e.operator);if(null==n)return!0;var r=t.previousField(e.field);return null==r||n.test(r.value,e.value)},onCreated:function(e,t){null==e.operator&&(e.operator=a.d.OPERATOR_OPTION_EQ.type),T(e,t)||(e.value=null)}});const A={use:function(){(0,r.ZN)(s),(0,r.ZN)(d),(0,r.ZN)(f),(0,r.ZN)(p),(0,r.ZN)(S),(0,r.ZN)(R)},remove:function(){(0,r.I5)(s),(0,r.I5)(d),(0,r.I5)(f),(0,r.I5)(p),(0,r.I5)(S),(0,r.I5)(R)}};var C=n(3161),V=["id","name","placeholder","disabled"];n(4678),n(7327);var D=n(1207),I=(0,r.hS)().EVENTS;function U(e){return"_value"in e?e._value:e.value}function j(e){var t=e.checked,n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}function N(e){return null==U(e)?e.checked:e.value}function L(e){var t=e.selectedIndex;return t<0?null:U(e.options[t])}function F(e,t,n,r){var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"build",n=e.value,r=e.type;if("number"==r){var l=parseFloat(n);return isNaN(l)?n:l}if("select"==r)return L(e);if("checkbox"==r){var o='input[type="checkbox"][name="'.concat(e.name,'"]'),i=Array.from(document.querySelectorAll(o));return"setting"===t&&1==i.length?j(i[0]):i.filter((function(e){return e.checked})).map(N)}return e.value}(t.target,"setting");e(I.UPDATE_FIELD,{prop:n,value:l,scope:r})}const Z=(0,l.aZ)({name:"xform-bs-text",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,D.Hg)()}}});var M=n(3744);const q=(0,M.Z)(Z,[["render",function(e,t,n,r,i,a){return(0,l.wy)(((0,l.wg)(),(0,l.iD)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,type:"text",class:"form-control form-control-sm",placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled},null,8,V)),[[o.nr,e.value]])}]]);var Y={class:"xform-bs-field-setting-prop"},H=(0,l._)("header",null,"默认值:",-1);var B=n(3577),G={class:"xform-bs-field-setting-head"},Q={class:"xform-bs-field-setting-prop"},K=(0,l._)("header",null,"标题:",-1),z={key:0,class:"xform-bs-field-setting-prop"},X=(0,l._)("header",null,"提示:",-1),$={key:1,class:"xform-bs-field-setting-prop"},J=(0,l._)("header",null,"属性:",-1),ee={key:0,class:"form-check form-check-inline"},te=["id","name"],ne=["for"],re={class:"form-check form-check-inline"},le=["id","name"],oe=["for"],ie={class:"form-check form-check-inline"},ae=["id","name"],ue=["for"];var ce={class:"xform-bs-field-setting-prop"},se=(0,l._)("span",null,"逻辑:",-1);var de=n(9622),fe=["id"],pe={class:"modal-content"},me={class:"modal-header"},ve={key:0,class:"modal-title"},be={class:"modal-body"},ye={class:"modal-footer"},he={key:0,class:"modal-footer-left"};var ge=1e4;function _e(){var e=null,t="xbs-modal__".concat(ge++);function n(t){if(null!=e){var n=e._element;n.addEventListener("hidden.bs.modal",(function e(){n.removeEventListener("hidden.bs.modal",e),"function"==typeof t&&t()})),e.hide()}}return{id:t,show:function(){var n;n=document.getElementById(t),(e=null==n?null:new window.bootstrap.Modal(n,{backdrop:"static",keyboard:!1}))&&e.show()},hide:n,destroy:function(){var t=function(){e.dispose(),e=null};if(null!=e)return e._isShown?n(t):void t()}}}const Oe=(0,l.aZ)({name:"modal",inheritAttrs:!1,props:{title:{type:String,default:null},visible:{type:Boolean,default:!1},width:{type:String,default:"640px"}},emits:["update:visible","confirm","closed"],setup:function(e,t){var n=t.emit,r=(0,m.iH)(!1),o=_e();function i(){n("update:visible",!1)}return(0,l.YP)((function(){return e.visible}),(function(){e.visible?(r.value=!0,(0,l.Y3)((function(){return o.show()}))):o.hide((function(){r.value=!1,n("closed")}))})),(0,l.Jd)((function(){o.destroy(),i()})),{id:o.id,close:i,confirm:function(){n("confirm")},rendered:r}}}),we=(0,M.Z)(Oe,[["render",function(e,t,n,r,o,i){return(0,l.wg)(),(0,l.j4)(l.lR,{to:"body"},[e.rendered?((0,l.wg)(),(0,l.iD)("div",(0,l.dG)({key:0,class:"modal fade xform-bs-modal",id:e.id},e.$attrs),[(0,l._)("div",{class:"modal-dialog modal-dialog-centered",style:(0,B.j5)({width:e.width})},[(0,l._)("div",pe,[(0,l._)("div",me,[(0,l.WI)(e.$slots,"header",{},(function(){return[e.title?((0,l.wg)(),(0,l.iD)("h5",ve,(0,B.zw)(e.title),1)):(0,l.kq)("",!0)]})),(0,l._)("button",{type:"button",class:"btn-close shadow-none",onClick:t[0]||(t[0]=function(){return e.close&&e.close.apply(e,arguments)})})]),(0,l._)("div",be,[(0,l.WI)(e.$slots,"default")]),(0,l._)("div",ye,[e.$slots["footer-left"]?((0,l.wg)(),(0,l.iD)("div",he,[(0,l.WI)(e.$slots,"footer-left")])):(0,l.kq)("",!0),(0,l._)("button",{type:"button",class:"btn btn-sm btn-link btn-text",onClick:t[1]||(t[1]=function(){return e.close&&e.close.apply(e,arguments)})},"关闭"),(0,l._)("button",{type:"button",class:"btn btn-sm btn-primary",onClick:t[2]||(t[2]=function(){return e.confirm&&e.confirm.apply(e,arguments)})},"保存")])])],4)],16,fe)):(0,l.kq)("",!0)])}]]),xe=(0,l.aZ)({name:"field-logic",props:{field:{type:r.Wi,required:!0}},setup:function(e){var t=(0,r.j9)(),n=(0,m.iH)(null),o=(0,m.iH)(!1),i=(0,l.Fl)({get:function(){return e.field.logic},set:function(n){t.updateField(e.field,{prop:"logic",value:n})}});return{editor:n,logic:i,visible:o,save:function(){var e=n.value;if(null!=e){var t=e.submit();t.valid&&(i.value=t.data,o.value=!1)}},showModal:function(){o.value=!0}}},components:{LogicEditor:de.h,Modal:we}}),Ee={classes:{modal:"MyFDKdyFHQgakOSw6YhR",logicBtn:"VMGeYtrSlpdGbmEa3zR4",tip:"o5agcyLGhHZQzloobthZ"}},Pe=(0,M.Z)(xe,[["render",function(e,t,n,r,o,i){var a=(0,l.up)("LogicEditor"),u=(0,l.up)("Modal");return(0,l.wg)(),(0,l.iD)("section",ce,[(0,l._)("header",null,[se,(0,l._)("button",{type:"button",class:(0,B.C_)(["btn btn-link btn-text",e.classes.logicBtn]),onClick:t[0]||(t[0]=function(){return e.showModal&&e.showModal.apply(e,arguments)})},"配置",2)]),(0,l._)("div",{class:(0,B.C_)(e.classes.tip)},"配置字段逻辑后,如果依赖的字段能够满足指定的条件,就会显示该字段,否则会隐藏该字段。",2),(0,l.Wm)(u,{title:"配置逻辑",class:(0,B.C_)(e.classes.modal),width:"840px",visible:e.visible,"onUpdate:visible":t[1]||(t[1]=function(t){return e.visible=t}),onConfirm:e.save},{default:(0,l.w5)((function(){return[(0,l.Wm)(a,{field:e.field,ref:"editor"},null,8,["field"])]})),_:1},8,["class","visible","onConfirm"])])}],["__cssModules",Ee]]),We=(0,l.aZ)({name:"field-setting",props:{field:{type:r.Wi,required:!0},placeholder:{type:Boolean,default:!0},required:{type:Boolean,default:!0},logic:{type:Boolean,default:!0},attributes:{type:Boolean,default:!0}},setup:function(e){return{fieldRef:(0,m.Vh)(e,"field"),allowLogic:(0,l.Fl)((function(){return!0===(0,r.iE)().logic}))}},components:{FieldLogic:Pe}}),ke=(0,M.Z)(We,[["render",function(e,t,n,r,i,a){var u=(0,l.up)("FieldLogic");return(0,l.wg)(),(0,l.iD)("div",{class:(0,B.C_)("xform-bs-field-setting xform-bs-".concat(e.fieldRef.type,"-setting"))},[(0,l._)("h3",G,(0,B.zw)(e.field.conf.title),1),(0,l._)("section",Q,[K,(0,l.wy)((0,l._)("input",{type:"text",class:"form-control form-control-sm",placeholder:"[必填] 请输入标题...","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.fieldRef.title=t})},null,512),[[o.nr,e.fieldRef.title]]),(0,l.WI)(e.$slots,"title")]),e.placeholder?((0,l.wg)(),(0,l.iD)("section",z,[X,(0,l.wy)((0,l._)("textarea",{class:"form-control form-control-sm",placeholder:"[可选] 请输入提示信息...",rows:"3","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.fieldRef.placeholder=t})},null,512),[[o.nr,e.fieldRef.placeholder]])])):(0,l.kq)("",!0),e.attributes?((0,l.wg)(),(0,l.iD)("section",$,[J,e.required?((0,l.wg)(),(0,l.iD)("div",ee,[(0,l.wy)((0,l._)("input",{id:"".concat(e.field.name,"-required"),name:"".concat(e.field.name,"-required"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.fieldRef.required=t})},null,8,te),[[o.e8,e.fieldRef.required]]),(0,l._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-required"),title:"勾选则该字段在表单提交时必须填写"},"必填",8,ne)])):(0,l.kq)("",!0),(0,l._)("div",re,[(0,l.wy)((0,l._)("input",{id:"".concat(e.field.name,"-disabled"),name:"".concat(e.field.name,"-disabled"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.fieldRef.disabled=t})},null,8,le),[[o.e8,e.fieldRef.disabled]]),(0,l._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-disabled"),title:"勾选则该字段在表单中无法编辑, 也不参与表单验证"},"禁用",8,oe)]),(0,l._)("div",ie,[(0,l.wy)((0,l._)("input",{id:"".concat(e.field.name,"-hidden"),name:"".concat(e.field.name,"-hidden"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.fieldRef.hidden=t})},null,8,ae),[[o.e8,e.fieldRef.hidden]]),(0,l._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-hidden"),title:"勾选则该字段将不会再表单中显示"},"隐藏",8,ue)]),(0,l.WI)(e.$slots,"attributes")])):(0,l.kq)("",!0),(0,l.WI)(e.$slots,"default"),e.allowLogic?((0,l.wg)(),(0,l.j4)(u,{key:2,field:e.fieldRef,"onUpdate:field":t[5]||(t[5]=function(t){return e.fieldRef=t})},null,8,["field"])):(0,l.kq)("",!0)],2)}]]);var Te=(0,r.hS)().EVENTS;const Se=(0,l.aZ)({name:"xform-bs-text-setting",props:{field:r.Wi},emits:[Te.UPDATE_FIELD],setup:function(){return{compatValue:(0,D.Xu)([]).useCompatValue()}},components:(Re={},Ae=ke.name,Ce=ke,Ae in Re?Object.defineProperty(Re,Ae,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):Re[Ae]=Ce,Re)});var Re,Ae,Ce;const Ve=(0,M.Z)(Se,[["render",function(e,t,n,r,i,a){var u=(0,l.up)("field-setting");return(0,l.wg)(),(0,l.j4)(u,{field:e.field},{default:(0,l.w5)((function(){return[(0,l._)("section",Y,[H,(0,l.wy)((0,l._)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,512),[[o.nr,e.compatValue]])])]})),_:1},8,["field"])}]]),De=r.gN.create({icon:C.Z,type:"text",title:"单行文本",setting:Ve,build:q,validator:function(e,t){return e.required&&(0,r.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[s,d]});var Ie=n(3923),Ue=["id","name","placeholder","disabled"];const je=(0,l.aZ)({name:"xform-bs-textarea",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){return{value:(0,D.Hg)()}}}),Ne=(0,M.Z)(je,[["render",function(e,t,n,r,i,a){return(0,l.wy)(((0,l.wg)(),(0,l.iD)("textarea",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,rows:"3",name:e.field.name,class:"form-control form-control-sm",placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled},null,8,Ue)),[[o.nr,e.value]])}]]);var Le={class:"xform-bs-field-setting-prop"},Fe=(0,l._)("header",null,"默认值:",-1);var Ze=(0,r.hS)().EVENTS;const Me=(0,l.aZ)({name:"xform-bs-textarea-setting",props:{field:r.Wi},emits:[Ze.UPDATE_FIELD],setup:function(){return{compatValue:(0,D.Xu)([]).useCompatValue()}},components:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},ke.name,ke)}),qe=(0,M.Z)(Me,[["render",function(e,t,n,r,i,a){var u=(0,l.up)("field-setting");return(0,l.wg)(),(0,l.j4)(u,{field:e.field},{default:(0,l.w5)((function(){return[(0,l._)("section",Le,[Fe,(0,l.wy)((0,l._)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,512),[[o.nr,e.compatValue]])])]})),_:1},8,["field"])}]]),Ye=r.gN.create({icon:Ie.Z,type:"textarea",title:"多行文本",setting:qe,build:Ne,validator:function(e,t){return e.required&&(0,r.xb)(t)?Promise.reject("必填"):Promise.resolve()},logic:[s,d]});var He=n(4874),Be={class:"xform-bs-field-setting-prop"},Ge=(0,l._)("header",null,"默认值:",-1),Qe={class:"form-check form-check-inline"},Ke=["id","name"],ze=["for"];var Xe=(0,r.hS)().EVENTS;const $e=(0,l.aZ)({name:"xform-bs-number-setting",props:{field:r.Wi},emits:[Xe.UPDATE_FIELD],setup:function(){var e=(0,D.Xu)([]);return{integer:(0,D.Et)("integer","attributes"),compatValue:e.useCompatValue()}},components:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},ke.name,ke)}),Je=(0,M.Z)($e,[["render",function(e,t,n,r,i,a){var u=(0,l.up)("field-setting");return(0,l.wg)(),(0,l.j4)(u,{field:e.field},{attributes:(0,l.w5)((function(){return[(0,l._)("div",Qe,[(0,l.wy)((0,l._)("input",{id:"".concat(e.field.name,"-integer"),name:"".concat(e.field.name,"-integer"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.integer=t})},null,8,Ke),[[o.e8,e.integer]]),(0,l._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-integer"),title:"勾选则只允许输入整数"},"整数",8,ze)])]})),default:(0,l.w5)((function(){return[(0,l._)("section",Be,[Ge,(0,l.wy)((0,l._)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.compatValue=t}),placeholder:"[可选] 如果字段没有填写,默认为设定的值"},null,512),[[o.nr,e.compatValue,void 0,{number:!0}]])])]})),_:1},8,["field"])}]]);var et=(0,l.aZ)({name:"xform-bs-number",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,D.Hg)();return function(){return(0,l.wy)((0,l.Wm)("input",{id:e.field.uid,name:e.field.name,type:"number","onUpdate:modelValue":function(e){return t.value=e},class:"form-control form-control-sm",placeholder:e.field.placeholder,disabled:e.disabled||e.field.disabled},null),[[o.nr,t.value,void 0,{number:!0}]])}}});const tt=r.gN.create({icon:He.Z,type:"number",title:"数字",setting:Je,build:et,validator:function(e,t){return e.required&&(0,r.xb)(t)?Promise.reject("必填"):e.attributes.integer&&!/^[-+]?[1-9]?\d+$/.test(t+"")?Promise.reject("请输入整数"):Promise.resolve()},logic:[f]});var nt=n(1871),rt=["id","name","disabled"],lt={class:"xform-bs-is-placeholer",value:""},ot=["value"];const it=(0,l.aZ)({name:"xform-bs-select",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(){var e=(0,D.Hg)("");return{value:e,className:(0,l.Fl)((function(){return{"form-select":!0,"form-select-sm":!0,"xform-bs-select":!0,"xform-bs-is-empty":null==e||"string"==typeof e.value&&0==e.value.length}}))}}}),at=(0,M.Z)(it,[["render",function(e,t,n,r,i,a){return(0,l.wy)(((0,l.wg)(),(0,l.iD)("select",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),id:e.field.uid,name:e.field.name,class:(0,B.C_)(e.className),disabled:e.disabled||e.field.disabled},[(0,l._)("option",lt,"---- "+(0,B.zw)(e.field.placeholder||"请选择")+" ----",1),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.field.options,(function(e){return(0,l.wg)(),(0,l.iD)("option",{key:e.value,value:e.value},(0,B.zw)(e.value),9,ot)})),128))],10,rt)),[[o.bM,e.value]])}]]);var ut={class:"xform-bs-field-setting-prop"},ct=(0,l._)("header",null,"选项:",-1),st=["value","onInput"],dt=["onClick","disabled"],ft={class:"xform-bs-field-setting-prop"},pt=(0,l._)("header",null,"默认值:",-1),mt=["value"],vt=(0,l._)("option",{value:""},"-- 请选择--",-1),bt=["value"];n(5212),n(7941),n(5003),n(9337),n(3321);function yt(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 ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=(0,r.hS)(),_t=gt.BuiltInDefaultValueType,Ot=gt.EVENTS;const wt=(0,l.aZ)({name:"xform-bs-select-setting",props:{field:r.Wi},emits:[Ot.UPDATE_FIELD],setup:function(){var e=[{value:_t.MANUAL,label:"手动指定"},{value:_t.OPTION_FIRST,label:"首选项"}],t=(0,D.D2)((function(){if(!r.value)return;var e=t.options.value,n=o.value;o.value=e.some((function(e){return e.value==n}))?n:void 0})),n=(0,D.Xu)(e),r=n.useIsManual(),l=n.useCompatType(),o=n.useCompatValue((function(e){return e.value||""}));return function(e){for(var t=1;t=e.field.fields.length-1||e.field.fields[t].move(t+1)}return function(){var r=e.field,s=r.fields.map((function(e,t){var n=r.fields.length;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:a.bind(null,e)},null),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text",onClick:u.bind(null,t),disabled:0==t},[(0,l.Uk)("上移")]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text",onClick:c.bind(null,t),disabled:t==n-1},[(0,l.Uk)("下移")]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text text-danger",onClick:i.bind(null,e),disabled:n<=1},[(0,l.Uk)("删除")])])})),d={default:function(){return(0,l.Wm)("div",{class:"xform-bs-field-setting-prop"},[(0,l.Wm)("header",null,[(0,l.Uk)("标签:")]),s,(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-sm btn-text p-0",onClick:n},[(0,l.Uk)("添加标签")])])},attributes:function(){return(0,l.Wm)("div",{class:"form-check form-check-inline"},[(0,l.wy)((0,l.Wm)("input",{type:"checkbox",class:"form-check-input",id:"".concat(r.name,"-hide-title"),name:"".concat(r.name,"-hide-title"),"onUpdate:modelValue":function(e){return t.value=e}},null),[[o.e8,t.value]]),(0,l.Wm)("label",{class:"form-check-label",for:"".concat(r.name,"-hide-title"),title:"勾选则不显示标题"},[(0,l.Uk)("隐藏标题")])])}};return(0,l.Wm)((0,l.up)("field-setting"),{field:r,placeholder:!1,required:!1},d)}},components:Fr({},ke.name,ke)});function Gr(e){return e.validation.valid!==qr.ERROR?null:(0,l.Wm)("p",{class:"xform-item-message"},[e.validation.message])}var Qr=(0,l.aZ)({name:"xform-bs-tabs",props:{field:{type:r.Wi,required:!0},behavior:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,m.iH)(e.field.fields[0].name),n=(0,l.FN)(),o=(0,r.j9)();function i(e,n){n.preventDefault(),t.value=e.name}function a(e){var t=(0,r.am)(n.refs,"scroll"),l=(0,r.am)(n.refs,"list");if(!(l.offsetWidth<=t.offsetWidth)){e.preventDefault();var o=function(e,t,n){var l=(0,r.fN)(e).pixelY+(t.__offset__||0);return l<0?0:l>t.offsetWidth-n.offsetWidth?t.offsetWidth-n.offsetWidth:l}(e,l,t);l.__offset__=o,l.style.transform="translateX(".concat(-o,"px)")}}var u=(0,l.YP)(e.field.fields,(function(e){e.every((function(e){return e.name!=t.value}))&&(t.value=e[e.length-1].name)}));return(0,l.Jd)(u),function(){var n,u=e.field,c=null!==(n=u.value)&&void 0!==n?n:{},s=!0===u.attributes.hideTitle?null:(0,l.Wm)("strong",{class:"nav-tabs-title"},[u.title]),d=e.disabled,f=e.behavior==Hr.DESIGNER||o.type==Hr.DESIGNER,p=u.fields.map((function(e){var n={"nav-link":!0,active:t.value==e.name};return(0,l.Wm)("a",{class:n,href:"javascript:;",onClick:i.bind(null,e)},[e.title])})),m=u.fields.map((function(e){return o.renderField(f?e:c[e.name],{parentProps:{disabled:d},renderContent:function(n,o){return o.class=(0,r.C_)(o.class,{active:t.value==e.name}),(0,l.h)(n,o)},renderPreivew:function(e,t,n,r){return r()}})})),v=Fr({"xform-item":!0,"xform-bs-tabs":!0},Mr.IS_ERROR,u.invalid);return(0,l.Wm)("div",{class:v},[(0,l.Wm)("div",{class:"nav nav-tabs"},[s,(0,l.Wm)("div",{class:"xform-bs-tabs-scroll",onWheel:a,ref:"scroll"},[(0,l.Wm)("div",{class:"xform-bs-tab-list",ref:"list"},[p])])]),(0,l.Wm)("div",{class:"tab-content"},[m]),Gr(u)])}}});const Kr=r.gN.create({type:"tabs",title:"标签页",icon:Ar.Z,custom:!0,setting:Br,build:Qr,view:Qr,dependencies:[Lr],onCreate:function(e,t,n){if(n){var l=new r.Wi(Lr);l.title="标签".concat(e.fields.length+1),e.push(l)}},onValueInit:function(e,t){var n=null!=t?t:{};return e.fields.reduce((function(t,r){var l=r.name,o=r.clone(!0);return o.setValue(n[l]),o.setParent(e),t[l]=o,t}),{})},onValueSubmit:function(e){var t,n=null!==(t=e.value)&&void 0!==t?t:{};return e.fields.map((function(e){return e.name})).reduce((function(e,t){var r,l=n[t],o=null===(r=l.conf)||void 0===r?void 0:r.onValueSubmit;return e[t]="function"==typeof o?o(l):l.value,e}),{})},validator:function(e,t,n){var r=Object.values(null!=t?t:{}).map((function(e){return e.validate({mode:n.mode})}));return Promise.allSettled(r).then((function(e){var t=e.map((function(e){return"rejected"==e.status?e.reason:null})).filter((function(e){return e}));return t.length>0?Promise.reject(t.join("\n")):Promise.resolve()}))}});n(2222);var zr=150,Xr="xform-bs-datatable-columns";function $r(e,t){var n=(0,m.iH)(!1),o=(0,l.FN)(),i=(0,r.I_)(),a=(0,m.iH)(null),u=(0,r.j9)(),c=null;function s(e){c=e,p()}function d(){c=null,p()}function f(e){n.value=e}function p(){var t=function(e,t){return null==t?{}:e.reduce((function(e,n){var r,l=t[n.name],o=null===(r=l.conf)||void 0===r?void 0:r.onValueSubmit;return e[n.name]="function"==typeof o?o(l):l.value,e}),{})}(e.field.fields,c),r=e.field.fields.map((function(e){return e.clone(!0)}));a.value=i.value.genSchema({fields:r},t),n.value=!0}function v(){n.value=!1}function b(){var n=o.refs.form;if(null==n)return v();n.validate().then((function(n){var r,l,o;n.valid&&(null==c?(r=n.model,l=e.field.fields.reduce((function(t,n){var l=n.clone(!0);return l.setValue(r[n.name]),l.setParent(e.field),t[n.name]=l,t}),{}),(o=t.value).push(l),t.value=o):function(t){e.field.fields.forEach((function(e){var n=e.name;c[n].value=t[n]})),c=null}(n.model),v())}))}function y(e){var n=t.value,r=n.indexOf(e);r>=0&&(n.splice(r,1),t.value=n)}function h(e,t,n){return e>0?null:t?(0,l.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,l.Uk)("暂无数据")]):(0,l.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,l.Wm)("span",null,[(0,l.Uk)("点击")]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text btn-sm shadow-none",onClick:d},[(0,l.Uk)("+ 添加")]),(0,l.Wm)("span",null,[(0,l.Uk)("按钮插入数据")])])}return(0,l.Jd)((function(){a.value=null,c=null})),function(){var r,o=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==o.length)return(0,l.Wm)("div",{class:"xform-is-unknown"},[(0,l.Uk)("请放入至少一个字段")]);var p=e.disabled||e.field.disabled,m=null!==(r=e.field.attributes.colWidths)&&void 0!==r?r:{},v=o.reduce((function(e,t){var n,r=null!==(n=m[t.name])&&void 0!==n?n:zr;return e.total+=r,e.cols.push((0,l.Wm)("col",{style:{width:"".concat(r,"px")}},null)),e}),{cols:[],total:60}),g=v.cols,_=v.total,O=t.value.map((function(e,t){var n=o.map((function(t){var n=e[t.name],r=u.renderField(n,{parentProps:{disabled:p},renderItem:function(e,t){return t.custom=!0,(0,l.h)(e,t,(function(){var e;return null!==(e=n.value)&&void 0!==e?e:i.value.viewerPlaceholder}))}});return(0,l.Wm)("td",null,[r])})),r=p?null:(0,l.Wm)("td",{class:"xform-bs-datatable-operate"},[(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text shadow-none",onClick:s.bind(null,e)},[(0,l.Uk)("编辑")]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text text-danger shadow-none",onClick:y.bind(null,e)},[(0,l.Uk)("删除")])]);return(0,l.Wm)("tr",{class:"xform-bs-datatable-row"},[(0,l.Wm)("td",{class:"xform-bs-datatable-index"},[t+1]),n,r])})),w=_+(p?0:100),x=p?"#":(0,l.Wm)("button",{type:"button",class:"btn btn-sm btn-link btn-text shadow-none",onClick:d},[(0,l.Uk)("添加")]),E=(0,l.Wm)("table",{class:"table table-hover",style:"width: ".concat(w,"px")},[(0,l.Wm)("colgroup",null,[(0,l.Wm)("col",{style:"width: ".concat(60,"px")},null),g,p?null:(0,l.Wm)("col",{style:"width: ".concat(100,"px")},null)]),(0,l.Wm)("thead",null,[(0,l.Wm)("th",{class:"xform-bs-datatable-index"},[x]),o.map((function(e){var t={"xform-bs-datatable-cell":!0,"xform-is-required":!p&&!e.disabled&&e.required};return(0,l.Wm)("th",{class:t},[(0,l.Wm)("span",null,[e.title])])})),p?null:(0,l.Wm)("th",{class:"xform-bs-datatable-operate"},[(0,l.Uk)("操作")])]),(0,l.Wm)("tbody",null,[O])]);return(0,l.Wm)("div",{class:"xform-bs-datatable","data-layout":"modal"},[(0,l.Wm)("div",{class:"table-responsive"},[E,h(O.length,p,w)]),(0,l.Wm)((0,l.up)("modal"),(0,l.dG)({title:"".concat(null==c?"添加":"编辑","数据"),class:"xform-bs-datatable-modal-layout",onConfirm:b},{visible:n.value,"onUpdate:visible":f}),{default:function(){return[(0,l.Wm)((0,l.up)("xform-builder"),{schema:a.value,ref:"form",onSubmit:b},{default:function(){return[(0,l.Wm)("button",{class:"xform-is-hidden",type:"submit"},null)]}})]}})])}}var Jr={class:"form-check form-check-inline"},el=["id","name"],tl=["for"],nl={class:"form-check form-check-inline"},rl=["id","name"],ll=["for"],ol={class:"xform-bs-field-setting-prop"},il=(0,l._)("header",null,"表单布局:",-1),al={class:"btn-group",role:"group"},ul={class:"xform-bs-field-setting-prop"},cl=(0,l._)("header",null,"列宽:",-1),sl=["placeholder","value","onInput"],dl={key:0,class:"text-secondary"};var fl=(0,r.hS)(),pl=fl.EVENTS,ml=fl.LabelPosition,vl="attributes";const bl=(0,l.aZ)({name:"xform-bs-datatable-setting",props:{field:{type:r.Wi,required:!0}},emits:[pl.UPDATE_FIELD],setup:function(e,t){var n=t.emit;return{DEF_COLUMN_WIDTH:zr,updateColWidth:function(t,r){var l=t.target,o=parseFloat(l.value),i=e.field.attributes.colWidths;i[r]=isNaN(o)?null:o,n(pl.UPDATE_FIELD,{prop:"colWidths",value:i,scope:vl})},getColumnWidth:function(t){return e.field.attributes.colWidths[t]},hideTitle:(0,D.Et)("hideTitle",vl),layout:(0,D.Et)("layout",vl),labelPosition:(0,l.Fl)({get:function(){var t;return(null===(t=e.field.attributes)||void 0===t?void 0:t.labelPosition)==ml.TOP},set:function(e){var t=!0===e?ml.TOP:void 0;n(pl.UPDATE_FIELD,{prop:"labelPosition",scope:vl,value:t})}})}},components:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},ke.name,ke)}),yl={classes:{columnBg:"D2xFwxXoIfj0ESDBQYqx",titleProps:"tx1MA84ThNWpBbZ1ULgu"}},hl=(0,M.Z)(bl,[["render",function(e,t,n,r,i,a){var u=(0,l.up)("field-setting");return(0,l.wg)(),(0,l.j4)(u,{field:e.field,placeholder:!1},{title:(0,l.w5)((function(){return[(0,l._)("div",{class:(0,B.C_)(e.classes.titleProps)},[(0,l._)("div",Jr,[(0,l.wy)((0,l._)("input",{id:"".concat(e.field.name,"-hide-title"),name:"".concat(e.field.name,"-hide-title"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.hideTitle=t})},null,8,el),[[o.e8,e.hideTitle]]),(0,l._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-hide-title"),title:"勾选则不显示标题"},"隐藏标题",8,tl)]),(0,l._)("div",nl,[(0,l.wy)((0,l._)("input",{id:"".concat(e.field.name,"-label-position"),name:"".concat(e.field.name,"-label-position"),type:"checkbox",class:"form-check-input","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.labelPosition=t})},null,8,rl),[[o.e8,e.labelPosition]]),(0,l._)("label",{class:"form-check-label",for:"".concat(e.field.name,"-label-position"),title:"勾选则标题位于顶部"},"顶部对齐",8,ll)])],2)]})),default:(0,l.w5)((function(){return[(0,l._)("section",ol,[il,(0,l._)("div",al,[(0,l._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"modal"==e.layout}]),onClick:t[2]||(t[2]=function(t){return e.layout="modal"}),title:"选中则表单在弹出模态框中编辑"},"窗口",2),(0,l._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"inline"==e.layout}]),onClick:t[3]||(t[3]=function(t){return e.layout="inline"}),title:"选中则表单在表格中直接编辑"},"行内",2)])]),(0,l._)("section",ul,[cl,((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.field.fields,(function(t){var n;return(0,l.wg)(),(0,l.iD)("div",{class:"xform-bs-datatable-column",key:t.uid},[(0,l._)("div",{class:(0,B.C_)(e.classes.columnBg),style:(0,B.j5)({width:"".concat(null!==(n=e.getColumnWidth(t.name))&&void 0!==n?n:e.DEF_COLUMN_WIDTH,"px")})},null,6),(0,l._)("label",null,(0,B.zw)(t.title),1),(0,l._)("input",{type:"number",min:"0",placeholder:"默认宽度".concat(e.DEF_COLUMN_WIDTH),class:"form-control form-control-sm",value:e.getColumnWidth(t.name),onInput:function(n){return e.updateColWidth(n,t.name)}},null,40,sl)])})),128)),0==e.field.fields.length?((0,l.wg)(),(0,l.iD)("div",dl,"请至少放入一个字段")):(0,l.kq)("",!0)])]})),_:1},8,["field"])}],["__cssModules",yl]]);var gl=n(9704);function _l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ol=(0,r.hS)(),wl=Ol.CLASS,xl=Ol.PROPS,El=Ol.EVENTS,Pl=Ol.EnumValidateMode,Wl=(0,l.aZ)({name:"xform-bs-datatable-preview",props:{field:{type:r.Wi,required:!0}},setup:function(e){var t=(0,r.j9)();return function(){var n,r=e.field,o=r.fields,i=null!==(n=r.attributes.colWidths)&&void 0!==n?n:{},a=0==o.length?(0,l.Wm)("p",{class:"".concat(wl.IS_EMPTY_TIP," xform-bs-empty-tip")},[(0,l.Uk)("请将左侧控件拖动到此处")]):o.map((function(e){return t.renderField(e,{renderItem:function(){var t,n={"xform-bs-datatable-cell":!0,"xform-is-required":e.required},r={width:"".concat(null!==(t=i[e.name])&&void 0!==t?t:zr,"px")};return(0,l.Wm)("div",{class:n,style:r},[(0,l.Wm)("span",null,[e.title])])}})})),u=_l({class:"".concat(Xr," ").concat(wl.DROPPABLE," ").concat(wl.SCOPE)},"."+xl.FIELD,e.field);return(0,l.Wm)("div",{class:"xform-bs-datatable ".concat(wl.IS_SCROLL," ").concat(wl.IS_HORIZONTAL_SCROLL)},[(0,l.Wm)("div",u,[a])])}}}),kl=(0,l.aZ)({name:"xform-bs-datatable",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},emits:[El.UPDATE_VALUE],setup:function(e){var t=(0,D.Hg)(),n=$r(e,t),o=function(e,t){var n=(0,r.j9)();function o(){var n=e.field.fields.reduce((function(t,n){var r=n.clone(!0);return r.setParent(e.field),t[n.name]=r,t}),{}),r=t.value;r.push(n),t.value=r}function i(e){var n=t.value,r=n.indexOf(e);r>=0&&(n.splice(r,1),t.value=n)}function a(e,t,n){return e>0?null:t?(0,l.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,l.Uk)("暂无数据")]):(0,l.Wm)("div",{class:"xform-bs-datatable-tip",style:"width: ".concat(n,"px")},[(0,l.Wm)("span",null,[(0,l.Uk)("点击")]),(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text btn-sm shadow-none",onClick:o},[(0,l.Uk)("+ 添加")]),(0,l.Wm)("span",null,[(0,l.Uk)("按钮插入数据")])])}return function(){var r,u=e.field.fields.filter((function(e){return!0!==e.hidden}));if(0==u.length)return(0,l.Wm)("div",{class:"xform-is-unknown"},[(0,l.Uk)("请放入至少一个字段")]);var c=e.disabled||e.field.disabled,s=null!==(r=e.field.attributes.colWidths)&&void 0!==r?r:{},d=u.reduce((function(e,t){var n,r=null!==(n=s[t.name])&&void 0!==n?n:zr;return e.total+=r,e.cols.push((0,l.Wm)("col",{style:{width:"".concat(r,"px")}},null)),e}),{cols:[],total:60}),f=d.cols,p=d.total,m=t.value.map((function(e,t){var r=u.map((function(t){var r=n.renderField(e[t.name],{parentProps:{disabled:c},renderItem:function(e,t,n){return t.label=!1,(0,l.h)(e,t,n)}});return(0,l.Wm)("td",null,[r])}));return(0,l.Wm)("tr",{class:"xform-bs-datatable-row"},[(0,l.Wm)("td",{class:"xform-bs-datatable-index"},[(0,l.Wm)("strong",null,[t+1]),c?null:(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text text-danger",onClick:i.bind(null,e)},[(0,l.Uk)("删除")])]),r])})),v=c?"#":(0,l.Wm)("button",{type:"button",class:"btn btn-link btn-text btn-sm shadow-none",onClick:o},[(0,l.Uk)("添加")]);return(0,l.Wm)("div",{class:"xform-bs-datatable","data-layout":"inline"},[(0,l.Wm)("div",{class:"table-responsive"},[(0,l.Wm)("table",{class:"table table-hover",style:{width:p+"px"}},[(0,l.Wm)("colgroup",null,[(0,l.Wm)("col",{style:"width: ".concat(60,"px")},null),f]),(0,l.Wm)("thead",null,[(0,l.Wm)("th",{class:"xform-bs-datatable-index"},[v]),u.map((function(e){var t={"xform-bs-datatable-cell":!0,"xform-is-required":!c&&!e.disabled&&e.required};return(0,l.Wm)("th",{class:t},[(0,l.Wm)("span",null,[e.title])])}))]),(0,l.Wm)("tbody",null,[m])]),a(m.length,c,p)])])}}(e,t);return function(){return"inline"==e.field.attributes.layout?o():n()}},components:_l({},we.name,we)}),Tl=(0,l.aZ)({name:"xform-bs-datatable-view",props:{field:{type:r.Wi,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){var t=(0,D.Hg)(),n=(0,r.j9)(),o=(0,r.I_)();return function(){var r,i=e.field.fields;if(!Array.isArray(t.value)||0==t.value.length||0==i.length)return(0,l.Wm)("span",{class:"xform-viewer-value"},[o.value.viewerPlaceholder]);var a=null!==(r=e.field.attributes.colWidths)&&void 0!==r?r:{},u=i.reduce((function(e,t){var n,r=null!==(n=a[t.name])&&void 0!==n?n:zr;return e.total+=r,e.cols.push((0,l.Wm)("col",{style:"width: ".concat(r,"px")},null)),e}),{cols:[],total:60}),c=u.cols,s=u.total,d=t.value.map((function(t,r){var o=i.map((function(r){return(0,l.Wm)("td",null,[n.renderField(t[r.name],{parentProps:{disabled:e.disabled},renderItem:function(e,t,n){return n()}})])})),a=(0,l.Wm)("td",{class:"xform-bs-datatable-index"},[(0,l.Wm)("strong",null,[r+1])]);return(0,l.Wm)("tr",null,[a,o])}));return(0,l.Wm)("div",{class:"xform-bs-datatable xform-bs-datatable-view"},[(0,l.Wm)("div",{class:"table-responsive"},[(0,l.Wm)("table",{class:"table table-hover",style:{width:s+"px"}},[(0,l.Wm)("colgroup",null,[(0,l.Wm)("col",{style:"width: ".concat(60,"px")},null),c]),(0,l.Wm)("thead",null,[(0,l.Wm)("th",{class:"xform-bs-datatable-index"},[(0,l.Uk)("#")]),i.map((function(t){var n={"xform-bs-datatable-cell":!0,"xform-is-required":!e.disabled&&!t.disabled&&t.required};return(0,l.Wm)("th",{class:n},[(0,l.Wm)("span",null,[t.title])])}))]),(0,l.Wm)("tbody",null,[d])])])])}}});const Sl=r.gN.create({type:"datatable",title:"数据表格",icon:gl.Z,buttons:[ur.n,r.gN.BUTTON_COPY,r.gN.BUTTON_REMOVE],accept:["text","textarea","number","select","radio","checkbox","date"],setting:hl,preview:Wl,build:kl,view:Tl,onDragOver:function(e){var t=e.currentTarget;if(t.matches("."+Xr)){e.stopPropagation(),e.preventDefault();var n=e.context,r=n.directionX,l=n.moveMarkEl,o=n.getRootScopeEl,i=e.dragElement.contains(t);l(r,i?e.dragElement:e.target,i?o():t)}},onDrop:function(e){e.stopPropagation()},onCreate:function(e,t,n){n&&(e.attributes.colWidths={},e.attributes.layout="modal")},onSubmit:function(e){var t,n,r=null!==(t=null===(n=e.attributes)||void 0===n?void 0:n.colWidths)&&void 0!==t?t:{},l=e.fields.map((function(e){return e.name}));for(var o in r)l.indexOf(o)<0&&delete r[o];return e},onValueInit:function(e,t){if(!Array.isArray(t))return[];var n=e.fields;return t.map((function(t){return n.reduce((function(n,r){var l=r.clone(!0);return l.setValue(t[r.name]),l.setParent(e),n[r.name]=l,n}),{})}))},onValueSubmit:function(e){if(Array.isArray(e.value)){var t=e.fields;return e.value.map((function(e){return t.map((function(e){return e.name})).reduce((function(t,n){var r,l=e[n],o=null===(r=l.conf)||void 0===r?void 0:r.onValueSubmit;return t[l.name]="function"==typeof o?o(l):l.value,t}),{})}))}},validator:function(e,t,n){if(e.required&&(0,r.xb)(t))return Promise.reject("必填");var l=t.reduce((function(e,t){return e.concat(Object.values(t))}),[]).map((function(e){return n.mode==Pl.RECURSIVE?e.validate({mode:Pl.RECURSIVE}):e.invalid?Promise.reject():Promise.resolve()}));return Promise.allSettled(l).then((function(e){return e.some((function(e){return"rejected"===e.status}))?Promise.reject("请补全必填内容"):Promise.resolve()}))},onValidate:function(e){return(0,r.xb)(e.title)?Promise.reject("标题为空"):0==e.fields.length?Promise.reject("至少需要一个字段"):Promise.resolve()}});var Rl=[Pn,Sl,Ln,ar,Rr,tt,$t,Pt,Kr,De,Ye];const Al={use:function(){(0,r.sZ)(Rl)},remove:function(){Rl.forEach(r.QZ)}};var Cl={class:"xform-setting"},Vl=(0,l._)("header",null,"标题后缀:",-1),Dl=["value"],Il={class:"xform-setting"},Ul=(0,l._)("header",null,"空值显示为:",-1),jl=["value"],Nl={class:"xform-setting"},Ll=(0,l._)("header",null,"标题位置:",-1),Fl={class:"btn-group",role:"group"};var Zl=(0,r.hS)(),Ml=Zl.EVENTS,ql=Zl.LabelPosition,Yl=Object.values(ql);const Hl=(0,l.aZ)({name:"form-setting",props:{schema:{type:Object,required:!0}},emits:[Ml.UPDATE_PROP],setup:function(e,t){var n=t.emit;return{updateProp:function(e,t){n(Ml.UPDATE_PROP,{prop:e,value:t})},labelPosition:(0,l.Fl)((function(){var t=e.schema.labelPosition;return Yl.includes(t)?t:"left"}))}}}),Bl=(0,M.Z)(Hl,[["render",function(e,t,n,r,o,i){return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("section",Cl,[Vl,(0,l._)("input",{value:e.schema.labelSuffix,type:"text",class:"form-control form-control-sm",placeholder:"请输入标题后缀...",onInput:t[0]||(t[0]=function(t){return e.updateProp("labelSuffix",t.target.value)})},null,40,Dl)]),(0,l._)("section",Il,[Ul,(0,l._)("input",{value:e.schema.viewerPlaceholder,type:"text",class:"form-control form-control-sm",placeholder:"查看表单时如果值为空,则显示输入值",onInput:t[1]||(t[1]=function(t){return e.updateProp("viewerPlaceholder",t.target.value)})},null,40,jl)]),(0,l._)("section",Nl,[Ll,(0,l._)("div",Fl,[(0,l._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"left"==e.labelPosition}]),onClick:t[2]||(t[2]=function(t){return e.updateProp("labelPosition","left")})},"左对齐",2),(0,l._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"top"==e.labelPosition}]),onClick:t[3]||(t[3]=function(t){return e.updateProp("labelPosition","top")})},"顶部对齐",2),(0,l._)("button",{type:"button",class:(0,B.C_)(["btn btn-sm btn-primary",{active:"right"==e.labelPosition}]),onClick:t[4]||(t[4]=function(t){return e.updateProp("labelPosition","right")})},"右对齐",2)])])],64)}]]);const Gl={name:"bootstrap",version:"0.8.1",install:function(){return(0,r.QL)("setting_form",Bl),Al.use(),A.use(),function(){(0,r.ac)("setting_form"),Al.remove(),A.remove()}}}},3009:(e,t,n)=>{var r=n(7854),l=n(7293),o=n(1702),i=n(1340),a=n(3111).trim,u=n(1361),c=r.parseInt,s=r.Symbol,d=s&&s.iterator,f=/^[+-]?0x/i,p=o(f.exec),m=8!==c(u+"08")||22!==c(u+"0x16")||d&&!l((function(){c(Object(d))}));e.exports=m?function(e,t){var n=a(i(e));return c(n,t>>>0||(p(f,n)?16:10))}:c},1058:(e,t,n)=>{var r=n(2109),l=n(3009);r({global:!0,forced:parseInt!=l},{parseInt:l})}}]); \ No newline at end of file diff --git a/docs/938.55c873f1.js b/docs/938.55c873f1.js deleted file mode 100644 index 5e24937..0000000 --- a/docs/938.55c873f1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkxform=self.webpackChunkxform||[]).push([[938],{7736:(M,N,z)=>{"use strict";z.d(N,{n:()=>I});z(7327),z(1539),z(7042),z(8309),z(1038),z(8783),z(4916),z(2526),z(1817),z(2165),z(6992),z(3948),z(9753);var j=z(9784);var D=z(6252);function u(M,N){var z="undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(!z){if(Array.isArray(M)||(z=function(M,N){if(!M)return;if("string"==typeof M)return t(M,N);var z=Object.prototype.toString.call(M).slice(8,-1);"Object"===z&&M.constructor&&(z=M.constructor.name);if("Map"===z||"Set"===z)return Array.from(M);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return t(M,N)}(M))||N&&M&&"number"==typeof M.length){z&&(M=z);var j=0,D=function(){};return{s:D,n:function(){return j>=M.length?{done:!0}:{done:!1,value:M[j++]}},e:function(M){throw M},f:D}}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 u,T=!0,I=!1;return{s:function(){z=z.call(M)},n:function(){var M=z.next();return T=M.done,M},e:function(M){I=!0,u=M},f:function(){try{T||null==z.return||z.return()}finally{if(I)throw u}}}}function t(M,N){(null==N||N>M.length)&&(N=M.length);for(var z=0,j=new Array(N);z\n \n',title:"清空",handle:function(M,N,z){var t,I,i=(0,j.pF)(T),g=function(){var j,t=u(M.fields.filter((function(M){return!1!==M.allowRemove})));try{var T=function(){var N=j.value;M.remove(N),(0,D.Y3)((function(){var j,D=null===(j=M.conf)||void 0===j?void 0:j.onRemoved;"function"==typeof D&&D(N,M,z)}))};for(t.s();!(j=t.n()).done;)T()}catch(M){t.e(M)}finally{t.f()}N.updateSchema()};"function"==typeof(null===(t=z.vnode)||void 0===t||null===(I=t.props)||void 0===I?void 0:I[i])?z.emit(T,{field:M,useDefault:g}):g()}}},9622:(M,N,z)=>{"use strict";z.d(N,{h:()=>S});var j=z(6252);z(2526),z(1817),z(1539),z(1249),z(4812),z(8309),z(9753),z(9554),z(4747),z(2772),z(561),z(7327),z(9070);const D="nvXUVNRMBnPTDYR1nlt1",u="PydYKRiTAC7fV40xtSAa",t="zkFYjUnmaOIo7OFzjIWU",T="wcuEasrlKx0gGhcJailM",I="c1HbMKvNMsq1VBgjI9sC",i="frZZEkiqDstOTP882TlO",g="WQxdmEedM0V75KipOZud",e="aEpvVSWsA76hfSesn_H0",n="Exkbzke6uyngN6DG2a38",A="M8j6XwiKGXGRt2UD1Wjf",y="uMqLGhPdsNOBar9RejRo",c="Wap5eyoLe71hYMLihiBN",r="MYqnhW_hU3hRIJcvQFX6",l="tgeXjHzTskDb8HZle1n9",O="nzbYZbOqkpn9LQjr8iGY";var o=z(2262),L=z(9784);function a(M,N,z){return N in M?Object.defineProperty(M,N,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[N]=z,M}var x=Symbol(),E=(0,L.hS)().CLASS;function w(M){var N=M.composedLogic,z=M.disabled,D=M.add;if(0==N.length)return null;var u=N.map((function(M){var N,u={class:(N={},a(N,c,!0),a(N,E.IS_DISABLED,z.value),N)};return z.value||(u.onClick=D.bind(null,M)),(0,j.Wm)("div",u,[(0,j.Wm)("strong",null,[M.title])])}));return(0,j.Wm)("div",{class:[t]},[(0,j.Wm)("h5",null,[(0,j.Uk)("组合逻辑")]),(0,j.Wm)("div",{class:[I,E.IS_SCROLL]},[u])])}function s(M){return M.previous.map((function(N){var z,D=(a(z={},c,!0),a(z,E.IS_DISABLED,M.disabled.value),z);return(0,j.Wm)("div",{class:D,onClick:M.selectField.bind(null,N)},[(0,j.Wm)("strong",null,[N.title])])}))}function Y(M){var N=M.selectedField,z=M.add;return N.value.conf.logic.map((function(N){var D,u={class:(D={},a(D,c,!0),a(D,E.IS_DISABLED,M.disabled.value),D)};return M.disabled.value||(u.onClick=z.bind(null,N)),(0,j.Wm)("div",u,[(0,j.Wm)("strong",null,[N.title])])}))}function C(M){var N=M.previous,z=M.selectedField;if(0==N.length)return null;var D=null==z.value?null:(0,j.Wm)("button",{type:"button",class:A,onClick:M.selectField.bind(null,null)},[(0,j.Uk)("返回")]),u=null==z.value?"字段逻辑":z.value.title;return(0,j.Wm)("div",{class:T},[(0,j.Wm)("h5",null,[(0,j.Wm)("span",null,[u]),D]),(0,j.Wm)("div",{class:[i,E.IS_SCROLL]},[null==z.value?s(M):Y(M)])])}function d(M,N,z){var j=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(null==M&&j)N.value=!0;else{var D=(0,L.qB)(M.type);if(null!=D&&"function"==typeof D.validator){var u=D.validator(M,z);M.message="string"==typeof u?u:!1!==u&&null,N.value=null==M.message}Array.isArray(M.conditions)&&M.conditions.length>0&&M.conditions.forEach((function(M){return d(M,N,z,!1)}))}}var U=(0,j.aZ)({name:"logic-graph",props:{logic:{type:Object,default:null},selected:{type:Object,default:null},first:{type:String,default:null},last:{type:String,default:null},parent:{type:Object,default:null}},emits:["select","remove","update:logic"],setup:function(M,N){var z=N.emit,D=(0,j.f3)(x);function u(N){N.stopPropagation(),D.selectLogic(M.logic)}function t(N){N.stopPropagation();var z=M.parent;if(null!=z){var j=M.logic,D=z.conditions,u=D.indexOf(j);if(!(u<0)){var t=D.splice(u,1)[0];D.splice(u-1,0,t)}}}function T(N){N.stopPropagation();var z=M.parent;if(null!=z){var j=M.logic,D=z.conditions,u=D.indexOf(j);if(!(u<0)){var t=D.splice(u+1,1)[0];D.splice(u,0,t)}}}function I(N){N.stopPropagation();var j=M.parent;if(null==j)return z("update:logic",null),void D.selectLogic(null);var u=M.logic,t=j.conditions,T=t.indexOf(u);T<0||t.splice(T,1)}function i(N){return N?(0,j.Wm)("div",{class:n},["N"===M.first&&(0,j.Wm)("button",{type:"button",onClick:t,class:A},[(0,j.Uk)("上移")]),"N"===M.last&&(0,j.Wm)("button",{type:"button",onClick:T,class:A},[(0,j.Uk)("下移")]),(0,j.Wm)("button",{type:"button",onClick:I,class:[A,y]},[(0,j.Uk)("删除")])]):null}return function(){var N,z=M.logic;if(null==z)return(0,j.Wm)("div",{class:r},[(0,j.Uk)("请先添加一条逻辑")]);var t=(0,L.qB)(z.type),T=M.selected==M.logic;if(null==t){var I,g=(a(I={},e,!0),a(I,"is-selected",M.selected==M.logic),I);return(0,j.Wm)("div",{class:g,onClick:u},[(0,j.Wm)("div",{class:E.IS_UNKNOWN},[(0,j.Uk)("暂不支持的字段逻辑")]),i(T)])}var n=!0!==t.composed?null:Array.isArray(z.conditions)&&0!=z.conditions.length?z.conditions.map((function(N,D){return(0,j.Wm)((0,j.up)("logic-graph"),{logic:N,parent:z,first:0==D?"Y":"N",last:D==z.conditions.length-1?"Y":"N",selected:M.selected},null)})):(0,j.Wm)("div",{class:l},[(0,j.Uk)("请先添加一条子逻辑")]),A=(a(N={},e,!0),a(N,"is-composed",t.composed),a(N,"is-selected",M.selected==M.logic),a(N,"is-error","string"==typeof z.message||!1===z.message),N),y="string"==typeof z.message?(0,j.Wm)("div",{class:O},[z.message]):null;return(0,j.Wm)("div",{class:A,onClick:u},[t.render(z,D.field.value),n,y,i(T)])}}}),S=(0,j.aZ)({name:"logic-editor",props:{field:{type:L.Wi,required:!0}},setup:function(M,N){var z,t=N.expose,T=(0,L.wi)(),I=M.field.previous().filter((function(M){return Array.isArray(M.conf.logic)&&M.conf.logic.length>0})),i=(0,o.iH)(function(M,N){if(null==M)return null;var z=JSON.parse(JSON.stringify(M));return L.rY.create(z,N)}(null===(z=M.field)||void 0===z?void 0:z.logic,M.field)),e=(0,o.iH)(null),n=(0,o.iH)(null),A=(0,o.iH)(null),y=(0,j.Fl)((function(){return null==e.value&&null!=i.value||null!=e.value&&!Array.isArray(e.value.conditions)}));function c(N){var z=function(M,N,z){return L.rY.create(!0===M.composed?{type:M.type,conditions:[]}:{type:M.type,field:N.name},z)}(N,n.value,M.field);return null==e.value?(i.value=z,void r(z)):Array.isArray(e.value.conditions)?(e.value.conditions.push(z),void r(z)):(e.value=z,void r(z))}function r(M){e.value=M,n.value=null}function l(M){y.value||(n.value=M)}return(0,j.JJ)(x,{selectLogic:r,field:(0,o.Vh)(M,"field")}),(0,j.Jd)((0,j.YP)(i,(function(){return d(i.value,A,M.field)}),{deep:!0})),t({submit:function(){return null==A.value&&d(i.value,A,M.field),!1===A.value?{valid:!1}:{valid:!0,data:i.value}},validate:function(){return d(i.value,A,M.field)}}),function(){var M={composedLogic:T,disabled:y,add:c},N={disabled:y,previous:I,selectedField:n,selectField:l,add:c};return(0,j.Wm)("div",{class:D},[(0,j.Wm)("div",{class:[u,"xform-is-scroll"]},[w(M),C(N)]),(0,j.Wm)("div",{class:[g,"xform-is-scroll"]},[(0,j.Wm)(U,{logic:i.value,"onUpdate:logic":function(M){return i.value=M},selected:e.value},null)])])}}})},8018:(M,N,z)=>{"use strict";z.d(N,{d:()=>g});z(6699),z(2023),z(9753),z(3210),z(9596),z(1539),z(7042),z(8309),z(1038),z(8783),z(4916),z(2526),z(1817),z(2165),z(6992),z(3948);var j=z(9784),D=z(1207);function u(M){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},u(M)}function t(M,N){var z="undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(!z){if(Array.isArray(M)||(z=function(M,N){if(!M)return;if("string"==typeof M)return T(M,N);var z=Object.prototype.toString.call(M).slice(8,-1);"Object"===z&&M.constructor&&(z=M.constructor.name);if("Map"===z||"Set"===z)return Array.from(M);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return T(M,N)}(M))||N&&M&&"number"==typeof M.length){z&&(M=z);var j=0,D=function(){};return{s:D,n:function(){return j>=M.length?{done:!0}:{done:!1,value:M[j++]}},e:function(M){throw M},f:D}}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 u,t=!0,I=!1;return{s:function(){z=z.call(M)},n:function(){var M=z.next();return t=M.done,M},e:function(M){I=!0,u=M},f:function(){try{t||null==z.return||z.return()}finally{if(I)throw u}}}}function T(M,N){(null==N||N>M.length)&&(N=M.length);for(var z=0,j=new Array(N);zj}},OPERATOR_GTE:{type:"gte",title:"大于或等于",test:function(M,N){var z=(0,D.vb)(M),j=(0,D.vb)(N);return null!=z&&null!=j&&z>=j}},OPERATOR_LT:{type:"lt",title:"小于",test:function(M,N){var z=(0,D.vb)(M),j=(0,D.vb)(N);return null!=z&&null!=j&&z{"use strict";z.d(N,{D2:()=>A,Et:()=>g,Hg:()=>e,Xu:()=>n,vb:()=>c,yj:()=>y});z(5212),z(1539),z(2772),z(561),z(3210);var j=z(9784),D=z(6252),u=z(2262),t=(0,j.hS)(),T=t.EVENTS,I=t.BuiltInDefaultValueType;function i(){var M=(0,D.FN)();return(0,u.Vh)(M.props,"field")}function g(M,N,z){var j=i(),u=(0,D.FN)();return(0,D.Fl)({get:function(){var D,u=j.value,t=N?null==u||null===(D=u[N])||void 0===D?void 0:D[M]:null==u?void 0:u[M];return null!=t?t:z},set:function(z){var j=""===z?void 0:z;u.emit(T.UPDATE_FIELD,{prop:M,value:j,scope:N})}})}function e(M){var N=i();return(0,D.Fl)({get:function(){var z;return null!==(z=N.value.value)&&void 0!==z?z:M},set:function(M){N.value.value=M}})}function n(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=g("defaultValue");function z(){return(0,D.Fl)({get:function(){var z=N.value.type;return M.some((function(M){return M.value==z}))?z:I.MANUAL},set:function(M){N.value.type=M,M!=I.MANUAL&&(N.value.value=void 0)}})}function j(M){return(0,D.Fl)({get:function(){return"function"==typeof M?M(N.value):N.value.value},set:function(M){N.value.value=""===M?void 0:M}})}function u(){return(0,D.Fl)((function(){return N.value.type==I.MANUAL}))}return{useCompatType:z,useCompatValue:j,useIsManual:u}}function A(M){var N=(0,D.FN)(),z=(0,D.Fl)((function(){return N.props.field.options}));function j(z,j,D){N.emit(T.UPDATE_FIELD,{prop:z,value:j,scope:D}),"function"==typeof M&&M()}return{options:z,addOption:function(){var M=z.value;M.push({value:"选项".concat(M.length+1)}),j("options",M)},updateOption:function(M,N){var D=M.target.value;N.value=D,j("options",z.value)},removeOption:function(M){var N=z.value;if(!(N.length<=1)){var D=N.indexOf(M);D>=0&&N.splice(D,1),j("options",N)}},update:j}}function y(M,N){var z=function(){var M=(0,D.FN)();return(0,u.Vh)(M.props,"schema")}(),j=(0,D.FN)();return(0,D.Fl)({get:"function"==typeof N?function(){return N(z.value)}:function(){var j;return null!==(j=z.value[M])&&void 0!==j?j:N},set:function(N){var z=""===N?void 0:N;j.emit(T.UPDATE_PROP,{prop:M,value:z})}})}function c(M){if(null==M)return null;var N="function"==typeof M.valueOf?M.valueOf():M;return"string"==typeof N?""==N.trim()?null:N:"number"==typeof N?N:"boolean"==typeof N?String(N):null}},863:(M,N,z)=>{var j=z(1702);M.exports=j(1..valueOf)},6699:(M,N,z)=>{"use strict";var j=z(2109),D=z(1318).includes,u=z(7293),t=z(1223);j({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(M){return D(this,M,arguments.length>1?arguments[1]:void 0)}}),t("includes")},9653:(M,N,z)=>{"use strict";var j=z(9781),D=z(7854),u=z(1702),t=z(4705),T=z(8052),I=z(2597),i=z(9587),g=z(7976),e=z(2190),n=z(7593),A=z(7293),y=z(8006).f,c=z(1236).f,r=z(3070).f,l=z(863),O=z(3111).trim,o="Number",L=D.Number,a=L.prototype,x=D.TypeError,E=u("".slice),w=u("".charCodeAt),s=function(M){var N=n(M,"number");return"bigint"==typeof N?N:Y(N)},Y=function(M){var N,z,j,D,u,t,T,I,i=n(M,"number");if(e(i))throw x("Cannot convert a Symbol value to a number");if("string"==typeof i&&i.length>2)if(i=O(i),43===(N=w(i,0))||45===N){if(88===(z=w(i,2))||120===z)return NaN}else if(48===N){switch(w(i,1)){case 66:case 98:j=2,D=49;break;case 79:case 111:j=8,D=55;break;default:return+i}for(t=(u=E(i,2)).length,T=0;TD)return NaN;return parseInt(u,j)}return+i};if(t(o,!L(" 0o1")||!L("0b1")||L("+0x1"))){for(var C,d=function(M){var N=arguments.length<1?0:L(s(M)),z=this;return g(a,z)&&A((function(){l(z)}))?i(Object(N),z,d):N},U=j?y(L):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),S=0;U.length>S;S++)I(L,C=U[S])&&!I(d,C)&&r(d,C,c(L,C));d.prototype=a,a.constructor=d,T(D,o,d,{constructor:!0})}},2023:(M,N,z)=>{"use strict";var j=z(2109),D=z(1702),u=z(3929),t=z(4488),T=z(1340),I=z(4964),i=D("".indexOf);j({target:"String",proto:!0,forced:!I("includes")},{includes:function(M){return!!~i(T(t(this)),T(u(M)),arguments.length>1?arguments[1]:void 0)}})},1683:(M,N,z)=>{"use strict";z.d(N,{Z:()=>j});const j="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTcxMy4zMzE1NjExNSA4MDQuNzgxMjU5MDdIMTgyLjIyMzkzMTRBOTEuNTE0NzMzMzkgOTEuNTE0NzMzMzkgMCAwIDEgOTAuNzc0MjkxOTkgNzEzLjMzMTYxODg0VjE4Mi4yMjM5ODkwN0E5MS41MTQ3MzMzOSA5MS41MTQ3MzMzOSAwIDAgMSAxODIuMjIzOTMxNCA5MC43NzQzNDk2N0g2NTUuODkwNjQ3MzFhMzIuNDUyMjM3NTIgMzIuNDUyMjM3NTIgMCAwIDEgMCA2NC45MDM2NTE4OUgxODIuMjIzOTMxNGEyNi42MTAyNTgzNiAyNi42MTAyNTgzNiAwIDAgMC0yNi41NDU5ODc1MyAyNi41NDU5ODc1MXY1MzEuMDQzMzU5NzVhMjYuNjEwMjU4MzYgMjYuNjEwMjU4MzYgMCAwIDAgMjYuNTQ1OTg3NTMgMjYuNTQ1MTY0MzZoNTMxLjA0MzM1OTc0YTI2LjYxMDI1ODM2IDI2LjYxMDI1ODM2IDAgMCAwIDI2LjU0NTE2NDM2LTI2LjU0NTk4ODMzVjU1Ny4zMDI5NzM1M2EzMi40NTIyMzc1MiAzMi40NTIyMzc1MiAwIDAgMSA2NC45MDQ0NzU4NyAwdjE1NS45NjM1NTEzMWE5MS41MTQ3MzMzOSA5MS41MTQ3MzMzOSAwIDAgMS05MS4zODUzNzAyMiA5MS41MTQ3MzQ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=>T});var j=z(6252),D=z(3577),u={key:0,class:"xform-divider-title"};z(9653);const t=(0,j.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 M={};return this.top>0&&(M.marginTop="".concat(this.top,"px")),this.bottom>0&&(M.marginBottom="".concat(this.bottom,"px")),M}}});const T=(0,z(3744).Z)(t,[["render",function(M,N,z,t,T,I){return(0,j.wg)(),(0,j.iD)("div",{class:(0,D.C_)(["xform-divider","xform-divider-".concat(M.layout)]),style:(0,D.j5)(M.style)},[(0,j._)("div",{class:(0,D.C_)(["xform-divider-line","xform-divider-type-".concat(M.type)])},null,2),M.title?((0,j.wg)(),(0,j.iD)("strong",u,(0,D.zw)(M.title),1)):(0,j.kq)("",!0)],6)}]])}}]); \ No newline at end of file diff --git a/docs/938.89f56e07.js b/docs/938.89f56e07.js new file mode 100644 index 0000000..9f0cde0 --- /dev/null +++ b/docs/938.89f56e07.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkxform=self.webpackChunkxform||[]).push([[938],{7736:(M,N,z)=>{z.d(N,{n:()=>t});z(7327),z(1539),z(7042),z(8309),z(1038),z(8783),z(4916),z(2526),z(1817),z(2165),z(6992),z(3948),z(9753);var j=z(9784);var D=z(6252);function u(M,N){var z="undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(!z){if(Array.isArray(M)||(z=function(M,N){if(!M)return;if("string"==typeof M)return T(M,N);var z=Object.prototype.toString.call(M).slice(8,-1);"Object"===z&&M.constructor&&(z=M.constructor.name);if("Map"===z||"Set"===z)return Array.from(M);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return T(M,N)}(M))||N&&M&&"number"==typeof M.length){z&&(M=z);var j=0,D=function(){};return{s:D,n:function(){return j>=M.length?{done:!0}:{done:!1,value:M[j++]}},e:function(M){throw M},f:D}}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 u,I=!0,t=!1;return{s:function(){z=z.call(M)},n:function(){var M=z.next();return I=M.done,M},e:function(M){t=!0,u=M},f:function(){try{I||null==z.return||z.return()}finally{if(t)throw u}}}}function T(M,N){(null==N||N>M.length)&&(N=M.length);for(var z=0,j=new Array(N);z\n \n',title:"清空",handle:function(M,N,z){var T,t,i=(0,j.pF)(I),g=function(){var j,T=u(M.fields.filter((function(M){return!1!==M.allowRemove})));try{var I=function(){var N=j.value;M.remove(N),(0,D.Y3)((function(){var j,D=null===(j=M.conf)||void 0===j?void 0:j.onRemoved;"function"==typeof D&&D(N,M,z)}))};for(T.s();!(j=T.n()).done;)I()}catch(M){T.e(M)}finally{T.f()}N.updateSchema()};"function"==typeof(null===(T=z.vnode)||void 0===T||null===(t=T.props)||void 0===t?void 0:t[i])?z.emit(I,{field:M,useDefault:g}):g()}}},9622:(M,N,z)=>{z.d(N,{h:()=>v});var j=z(6252);z(2526),z(1817),z(1539),z(1249),z(4812),z(8309),z(9753),z(9554),z(4747),z(2772),z(561),z(7327),z(6649),z(6078),z(9653),z(9070),z(2165),z(6992),z(8783),z(3948);const D="nvXUVNRMBnPTDYR1nlt1",u="PydYKRiTAC7fV40xtSAa",T="zkFYjUnmaOIo7OFzjIWU",I="wcuEasrlKx0gGhcJailM",t="c1HbMKvNMsq1VBgjI9sC",i="frZZEkiqDstOTP882TlO",g="WQxdmEedM0V75KipOZud",n="aEpvVSWsA76hfSesn_H0",y="Exkbzke6uyngN6DG2a38",A="M8j6XwiKGXGRt2UD1Wjf",e="uMqLGhPdsNOBar9RejRo",c="Wap5eyoLe71hYMLihiBN",l="MYqnhW_hU3hRIJcvQFX6",O="tgeXjHzTskDb8HZle1n9",o="nzbYZbOqkpn9LQjr8iGY";var r=z(2262),L=z(9784);function a(M){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},a(M)}function x(M,N,z){return(N=function(M){var N=function(M,N){if("object"!==a(M)||null===M)return M;var z=M[Symbol.toPrimitive];if(void 0!==z){var j=z.call(M,N||"default");if("object"!==a(j))return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===N?String:Number)(M)}(M,"string");return"symbol"===a(N)?N:String(N)}(N))in M?Object.defineProperty(M,N,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[N]=z,M}var E=Symbol(),w=(0,L.hS)().CLASS;function Y(M){var N=M.composedLogic,z=M.disabled,D=M.add;if(0==N.length)return null;var u=N.map((function(M){var N,u={class:(N={},x(N,c,!0),x(N,w.IS_DISABLED,z.value),N)};return z.value||(u.onClick=D.bind(null,M)),(0,j.Wm)("div",u,[(0,j.Wm)("strong",null,[M.title])])}));return(0,j.Wm)("div",{class:[T]},[(0,j.Wm)("h5",null,[(0,j.Uk)("组合逻辑")]),(0,j.Wm)("div",{class:[t,w.IS_SCROLL]},[u])])}function C(M){return M.previous.map((function(N){var z,D=(x(z={},c,!0),x(z,w.IS_DISABLED,M.disabled.value),z);return(0,j.Wm)("div",{class:D,onClick:M.selectField.bind(null,N)},[(0,j.Wm)("strong",null,[N.title])])}))}function d(M){var N=M.selectedField,z=M.add;return N.value.conf.logic.map((function(N){var D,u={class:(D={},x(D,c,!0),x(D,w.IS_DISABLED,M.disabled.value),D)};return M.disabled.value||(u.onClick=z.bind(null,N)),(0,j.Wm)("div",u,[(0,j.Wm)("strong",null,[N.title])])}))}function s(M){var N=M.previous,z=M.selectedField;if(0==N.length)return null;var D=null==z.value?null:(0,j.Wm)("button",{type:"button",class:A,onClick:M.selectField.bind(null,null)},[(0,j.Uk)("返回")]),u=null==z.value?"字段逻辑":z.value.title;return(0,j.Wm)("div",{class:I},[(0,j.Wm)("h5",null,[(0,j.Wm)("span",null,[u]),D]),(0,j.Wm)("div",{class:[i,w.IS_SCROLL]},[null==z.value?C(M):d(M)])])}function S(M,N,z){var j=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(null==M&&j)N.value=!0;else{var D=(0,L.qB)(M.type);if(null!=D&&"function"==typeof D.validator){var u=D.validator(M,z);M.message="string"==typeof u?u:!1!==u&&null,N.value=null==M.message}Array.isArray(M.conditions)&&M.conditions.length>0&&M.conditions.forEach((function(M){return S(M,N,z,!1)}))}}var U=(0,j.aZ)({name:"logic-graph",props:{logic:{type:Object,default:null},selected:{type:Object,default:null},first:{type:String,default:null},last:{type:String,default:null},parent:{type:Object,default:null}},emits:["select","remove","update:logic"],setup:function(M,N){var z=N.emit,D=(0,j.f3)(E);function u(N){N.stopPropagation(),D.selectLogic(M.logic)}function T(N){N.stopPropagation();var z=M.parent;if(null!=z){var j=M.logic,D=z.conditions,u=D.indexOf(j);if(!(u<0)){var T=D.splice(u,1)[0];D.splice(u-1,0,T)}}}function I(N){N.stopPropagation();var z=M.parent;if(null!=z){var j=M.logic,D=z.conditions,u=D.indexOf(j);if(!(u<0)){var T=D.splice(u+1,1)[0];D.splice(u,0,T)}}}function t(N){N.stopPropagation();var j=M.parent;if(null==j)return z("update:logic",null),void D.selectLogic(null);var u=M.logic,T=j.conditions,I=T.indexOf(u);I<0||T.splice(I,1)}function i(N){return N?(0,j.Wm)("div",{class:y},["N"===M.first&&(0,j.Wm)("button",{type:"button",onClick:T,class:A},[(0,j.Uk)("上移")]),"N"===M.last&&(0,j.Wm)("button",{type:"button",onClick:I,class:A},[(0,j.Uk)("下移")]),(0,j.Wm)("button",{type:"button",onClick:t,class:[A,e]},[(0,j.Uk)("删除")])]):null}return function(){var N,z=M.logic;if(null==z)return(0,j.Wm)("div",{class:l},[(0,j.Uk)("请先添加一条逻辑")]);var T=(0,L.qB)(z.type),I=M.selected==M.logic;if(null==T){var t,g=(x(t={},n,!0),x(t,"is-selected",M.selected==M.logic),t);return(0,j.Wm)("div",{class:g,onClick:u},[(0,j.Wm)("div",{class:w.IS_UNKNOWN},[(0,j.Uk)("暂不支持的字段逻辑")]),i(I)])}var y=!0!==T.composed?null:Array.isArray(z.conditions)&&0!=z.conditions.length?z.conditions.map((function(N,D){return(0,j.Wm)((0,j.up)("logic-graph"),{logic:N,parent:z,first:0==D?"Y":"N",last:D==z.conditions.length-1?"Y":"N",selected:M.selected},null)})):(0,j.Wm)("div",{class:O},[(0,j.Uk)("请先添加一条子逻辑")]),A=(x(N={},n,!0),x(N,"is-composed",T.composed),x(N,"is-selected",M.selected==M.logic),x(N,"is-error","string"==typeof z.message||!1===z.message),N),e="string"==typeof z.message?(0,j.Wm)("div",{class:o},[z.message]):null;return(0,j.Wm)("div",{class:A,onClick:u},[T.render(z,D.field.value),y,e,i(I)])}}}),v=(0,j.aZ)({name:"logic-editor",props:{field:{type:L.Wi,required:!0}},setup:function(M,N){var z,T=N.expose,I=(0,L.wi)(),t=M.field.previous().filter((function(M){return Array.isArray(M.conf.logic)&&M.conf.logic.length>0})),i=(0,r.iH)(function(M,N){if(null==M)return null;var z=JSON.parse(JSON.stringify(M));return L.rY.create(z,N)}(null===(z=M.field)||void 0===z?void 0:z.logic,M.field)),n=(0,r.iH)(null),y=(0,r.iH)(null),A=(0,r.iH)(null),e=(0,j.Fl)((function(){return null==n.value&&null!=i.value||null!=n.value&&!Array.isArray(n.value.conditions)}));function c(N){var z=function(M,N,z){return L.rY.create(!0===M.composed?{type:M.type,conditions:[]}:{type:M.type,field:N.name},z)}(N,y.value,M.field);return null==n.value?(i.value=z,void l(z)):Array.isArray(n.value.conditions)?(n.value.conditions.push(z),void l(z)):(n.value=z,void l(z))}function l(M){n.value=M,y.value=null}function O(M){e.value||(y.value=M)}return(0,j.JJ)(E,{selectLogic:l,field:(0,r.Vh)(M,"field")}),(0,j.Jd)((0,j.YP)(i,(function(){return S(i.value,A,M.field)}),{deep:!0})),T({submit:function(){return null==A.value&&S(i.value,A,M.field),!1===A.value?{valid:!1}:{valid:!0,data:i.value}},validate:function(){return S(i.value,A,M.field)}}),function(){var M={composedLogic:I,disabled:e,add:c},N={disabled:e,previous:t,selectedField:y,selectField:O,add:c};return(0,j.Wm)("div",{class:D},[(0,j.Wm)("div",{class:[u,"xform-is-scroll"]},[Y(M),s(N)]),(0,j.Wm)("div",{class:[g,"xform-is-scroll"]},[(0,j.Wm)(U,{logic:i.value,"onUpdate:logic":function(M){return i.value=M},selected:n.value},null)])])}}})},8018:(M,N,z)=>{z.d(N,{d:()=>g});z(6699),z(2023),z(9753),z(3210),z(9596),z(1539),z(7042),z(8309),z(1038),z(8783),z(4916),z(2526),z(1817),z(2165),z(6992),z(3948);var j=z(9784),D=z(1207);function u(M){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},u(M)}function T(M,N){var z="undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(!z){if(Array.isArray(M)||(z=function(M,N){if(!M)return;if("string"==typeof M)return I(M,N);var z=Object.prototype.toString.call(M).slice(8,-1);"Object"===z&&M.constructor&&(z=M.constructor.name);if("Map"===z||"Set"===z)return Array.from(M);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return I(M,N)}(M))||N&&M&&"number"==typeof M.length){z&&(M=z);var j=0,D=function(){};return{s:D,n:function(){return j>=M.length?{done:!0}:{done:!1,value:M[j++]}},e:function(M){throw M},f:D}}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 u,T=!0,t=!1;return{s:function(){z=z.call(M)},n:function(){var M=z.next();return T=M.done,M},e:function(M){t=!0,u=M},f:function(){try{T||null==z.return||z.return()}finally{if(t)throw u}}}}function I(M,N){(null==N||N>M.length)&&(N=M.length);for(var z=0,j=new Array(N);zj}},OPERATOR_GTE:{type:"gte",title:"大于或等于",test:function(M,N){var z=(0,D.vb)(M),j=(0,D.vb)(N);return null!=z&&null!=j&&z>=j}},OPERATOR_LT:{type:"lt",title:"小于",test:function(M,N){var z=(0,D.vb)(M),j=(0,D.vb)(N);return null!=z&&null!=j&&z{z.d(N,{D2:()=>A,Et:()=>g,Hg:()=>n,Xu:()=>y,vb:()=>c,yj:()=>e});z(5212),z(1539),z(2772),z(561),z(3210);var j=z(9784),D=z(6252),u=z(2262),T=(0,j.hS)(),I=T.EVENTS,t=T.BuiltInDefaultValueType;function i(){var M=(0,D.FN)();return(0,u.Vh)(M.props,"field")}function g(M,N,z){var j=i(),u=(0,D.FN)();return(0,D.Fl)({get:function(){var D,u=j.value,T=N?null==u||null===(D=u[N])||void 0===D?void 0:D[M]:null==u?void 0:u[M];return null!=T?T:z},set:function(z){var j=""===z?void 0:z;u.emit(I.UPDATE_FIELD,{prop:M,value:j,scope:N})}})}function n(M){var N=i();return(0,D.Fl)({get:function(){var z;return null!==(z=N.value.value)&&void 0!==z?z:M},set:function(M){N.value.value=M}})}function y(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=g("defaultValue");function z(){return(0,D.Fl)({get:function(){var z=N.value.type;return M.some((function(M){return M.value==z}))?z:t.MANUAL},set:function(M){N.value.type=M,M!=t.MANUAL&&(N.value.value=void 0)}})}function j(M){return(0,D.Fl)({get:function(){return"function"==typeof M?M(N.value):N.value.value},set:function(M){N.value.value=""===M?void 0:M}})}function u(){return(0,D.Fl)((function(){return N.value.type==t.MANUAL}))}return{useCompatType:z,useCompatValue:j,useIsManual:u}}function A(M){var N=(0,D.FN)(),z=(0,D.Fl)((function(){return N.props.field.options}));function j(z,j,D){N.emit(I.UPDATE_FIELD,{prop:z,value:j,scope:D}),"function"==typeof M&&M()}return{options:z,addOption:function(){var M=z.value;M.push({value:"选项".concat(M.length+1)}),j("options",M)},updateOption:function(M,N){var D=M.target.value;N.value=D,j("options",z.value)},removeOption:function(M){var N=z.value;if(!(N.length<=1)){var D=N.indexOf(M);D>=0&&N.splice(D,1),j("options",N)}},update:j}}function e(M,N){var z=function(){var M=(0,D.FN)();return(0,u.Vh)(M.props,"schema")}(),j=(0,D.FN)();return(0,D.Fl)({get:"function"==typeof N?function(){return N(z.value)}:function(){var j;return null!==(j=z.value[M])&&void 0!==j?j:N},set:function(N){var z=""===N?void 0:N;j.emit(I.UPDATE_PROP,{prop:M,value:z})}})}function c(M){if(null==M)return null;var N="function"==typeof M.valueOf?M.valueOf():M;return"string"==typeof N?""==N.trim()?null:N:"number"==typeof N?N:"boolean"==typeof N?String(N):null}},6699:(M,N,z)=>{var j=z(2109),D=z(1318).includes,u=z(7293),T=z(1223);j({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(M){return D(this,M,arguments.length>1?arguments[1]:void 0)}}),T("includes")},2023:(M,N,z)=>{var j=z(2109),D=z(1702),u=z(3929),T=z(4488),I=z(1340),t=z(4964),i=D("".indexOf);j({target:"String",proto:!0,forced:!t("includes")},{includes:function(M){return!!~i(I(T(this)),I(u(M)),arguments.length>1?arguments[1]:void 0)}})},1683:(M,N,z)=>{z.d(N,{Z:()=>j});const j="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPHBhdGggZmlsbD0iIzMzMyIgZD0iTTcxMy4zMzE1NjExNSA4MDQuNzgxMjU5MDdIMTgyLjIyMzkzMTRBOTEuNTE0NzMzMzkgOTEuNTE0NzMzMzkgMCAwIDEgOTAuNzc0MjkxOTkgNzEzLjMzMTYxODg0VjE4Mi4yMjM5ODkwN0E5MS41MTQ3MzMzOSA5MS41MTQ3MzMzOSAwIDAgMSAxODIuMjIzOTMxNCA5MC43NzQzNDk2N0g2NTUuODkwNjQ3MzFhMzIuNDUyMjM3NTIgMzIuNDUyMjM3NTIgM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zMzMyIgZD0iTTkyNi43MiA1NzQuMzEwNEw3MzEuMzQwOCA3NTcuNzZoNjkuMjIyNGwxMjYuMTU2OC0xMjEuNjUxMnYtNjEuNzk4NHpNNjY4LjcyMzIgNzU3Ljc2bDI1OC4wNDgtMjQ0LjIyNFYyNTAuODhIOTcuMjh2NTA2Ljg4aDU3MS40NDMyeiBtMjU4LjA0OC01NS4yOTZsLTU3LjI5MjggNTUuMjk2SDkyNi43MnYtNTUuMjk2ek0xODkuNDQgMzQzLjA0aDQ2LjA4djI3Ni40OGgtNDYuMDhWMzQzLjA0ek01MS4yIDIwNC44aDkyMS42djU5OS4wNEg1MS4yVjIwNC44eiI+PC9wYXRoPgo8L3N2Zz4="},898:(M,N,z)=>{z.d(N,{Z:()=>I});var j=z(6252),D=z(3577),u={key:0,class:"xform-divider-title"};z(9653);const T=(0,j.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 M={};return this.top>0&&(M.marginTop="".concat(this.top,"px")),this.bottom>0&&(M.marginBottom="".concat(this.bottom,"px")),M}}});const I=(0,z(3744).Z)(T,[["render",function(M,N,z,T,I,t){return(0,j.wg)(),(0,j.iD)("div",{class:(0,D.C_)(["xform-divider","xform-divider-".concat(M.layout)]),style:(0,D.j5)(M.style)},[(0,j._)("div",{class:(0,D.C_)(["xform-divider-line","xform-divider-type-".concat(M.type)])},null,2),M.title?((0,j.wg)(),(0,j.iD)("strong",u,(0,D.zw)(M.title),1)):(0,j.kq)("",!0)],6)}]])}}]); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 53f2224..cf109d8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,7 +7,7 @@ xForm在线示例 - +
loading ...
diff --git a/docs/main.9aa8b4ff.css b/docs/main.2a412442.css similarity index 83% rename from docs/main.9aa8b4ff.css rename to docs/main.2a412442.css index 2621dc7..220e7f8 100644 --- a/docs/main.9aa8b4ff.css +++ b/docs/main.2a412442.css @@ -1 +1 @@ -:root{--xform-color-primary:#409eff;--xform-color-primary-lighten:#e8f3ff;--xform-color-danger:#f56c6c;--xform-color-warning:#e6a23c;--xform-border-color:#eee;--xform-text-color:#343a40;--xform-text-color-secondary:#9a9a9a;--xform-font-size:14px;--xform-label-width:120px;--xform-designer-mark-color:red;--xform-designer-responsive-width:640px}.xform-is-scroll{overflow:auto;scrollbar-color:hsla(0,0%,78%,.5) #f5f5f5;scrollbar-width:thin}.xform-is-scroll::-webkit-scrollbar{height:8px;width:8px}.xform-is-scroll::-webkit-scrollbar-track{background-color:#f5f5f5}.xform-is-scroll::-webkit-scrollbar-thumb{background-color:hsla(0,0%,78%,.5)}.xform-is-scroll::-webkit-scrollbar-thumb:hover{background-color:#c8c8c8}.xform-is-hidden{display:none!important}.xform-is-unknown{color:var(--xform-text-color-secondary)}.xform-is-unknown,.xform-is-warning{line-height:20px;margin:0;padding:5px 0}.xform-is-warning{color:var(--xform-color-warning)}.xform-builder{background-color:#fff;margin:0 auto;padding:0 10px}.xform-builder,.xform-designer{color:var(--xform-text-color);font-size:var(--xform-font-size)}.xform-designer{display:flex;flex-flow:row nowrap;height:100%}.xform-designer-panel{background-color:#fff;border-right:1px solid var(--xform-border-color);box-sizing:content-box;overflow-x:hidden;overflow-y:auto;width:320px}.xform-designer-main{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:0}.xform-designer-responsive{background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.05);height:100%;margin:0 auto;max-width:var(--xform-designer-responsive-width)}.xform-designer-board{background-color:#f8f8f9;flex:1;overflow:hidden;padding:10px}.xform-designer-list{background-color:#fff;box-sizing:border-box;min-height:100%;padding:5px;position:relative}.xform-designer-field-group h3{font-size:16px;font-weight:400;margin:0;padding:10px 0 0 10px}.xform-designer-field-list{display:flex;flex-flow:row wrap;justify-content:space-between;padding:0 10px 10px;width:320px}.xform-designer-field,.xform-designer-field-list{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}.xform-designer-field{background-color:var(--xform-color-primary-lighten);border:1px solid var(--xform-color-primary-lighten);border-radius:2px;cursor:move;font-size:13px;height:32px;line-height:24px;margin:10px 0 0;overflow:hidden;padding:4px 24px 4px 8px;position:relative;text-align:left;text-overflow:ellipsis;transition:border-color .3s ease;white-space:nowrap;width:145px}.xform-designer-field>span{font-weight:600}.xform-designer-field .xform-icon{font-size:20px;position:absolute;right:2px;text-align:center;top:5px}.xform-designer-field .xform-icon.xform-icon-is-img{height:20px;width:20px}.xform-icon.xform-icon-is-svg svg{display:block;height:20px;width:20px}.xform-designer-field:hover{border-color:var(--xform-color-primary);border-style:dashed}.xform-preview{border:1px dashed #ccc;padding:5px;transition:border-color .3s ease,background-color .3s ease}.xform-preview,.xform-preview.xform-is-preview-hidden .xform-item{position:relative}.xform-preview+.xform-preview{margin-top:5px}.xform-preview .xform-item-top .xform-item-label{padding-top:0}.xform-preview.xform-is-preview-hidden .xform-preview-cover{background-color:#fdc45c}.xform-preview.xform-is-selected,.xform-preview:hover{border-color:var(--xform-color-primary)}.xform-preview.xform-is-selected{border-style:solid;outline:var(--xform-color-primary) solid 1px}.xform-preview-cover:hover,.xform-preview.xform-is-selected>.xform-preview-cover{background-color:var(--xform-color-primary)}.xform-preview-cover{bottom:0;cursor:move;left:0;opacity:.175;position:absolute;right:0;top:0;z-index:8}.xform-designer-ghost{background-color:#fff;box-shadow:0 0 12px hsla(0,0%,49%,.25);display:none;left:0;position:fixed;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:19}.xform-designer-ghost.xform-is-show{display:block}.xform-designer-ghost-template>*{margin:0}.xform-designer-ghost.xform-is-not-allowed .xform-designer-cover{background-color:#fff;cursor:not-allowed;opacity:.35}.xform-designer-ghost .xform-designer-field{border:none}.xform-designer-ghost .xform-designer-cover{bottom:0;cursor:move;left:0;position:absolute;right:0;top:0;z-index:1}.xform-preview-empty-tip{padding:150px 0}.xform-preview-empty-tip>img{display:block;margin:0 auto;width:320px}.xform-preview-empty-tip>p{color:var(--xform-text-color-secondary);font-size:15px;font-weight:600;margin:10px 0 0;text-align:center}.xform-designer-mark{display:none;height:0;position:relative}.xform-designer-mark:not(:first-child)+.xform-preview{margin-top:5px}.xform-is-horizontal-scroll .xform-designer-mark:not(:first-child)+.xform-preview{margin-left:5px;margin-top:0}.xform-designer-mark>hr{background:linear-gradient(to bottom,transparent 5px,var(--xform-designer-mark-color) 5px,var(--xform-designer-mark-color) 8px,transparent 8px);border:none;box-sizing:content-box;height:3px;left:0;margin:0 auto;opacity:1;padding:5px 0;position:absolute;right:0;top:-4px;z-index:10}.xform-designer-mark>hr:after,.xform-designer-mark>hr:before{border-bottom:7px solid transparent;border-top:7px solid transparent;content:"";position:absolute;top:0;z-index:10}.xform-designer-mark>hr:before{border-left:4px solid var(--xform-designer-mark-color);left:0}.xform-designer-mark>hr:after{border-right:4px solid var(--xform-designer-mark-color);right:0}.xform-is-horizontal-scroll .xform-designer-mark{height:100%;width:0}.xform-is-horizontal-scroll .xform-designer-mark>hr{background:linear-gradient(to right,transparent 5px,var(--xform-designer-mark-color) 5px,var(--xform-designer-mark-color) 8px,transparent 8px);bottom:0;height:100%;left:-4px;margin:0;padding:0 5px;top:0;width:3px}.xform-is-horizontal-scroll .xform-designer-mark>hr:after,.xform-is-horizontal-scroll .xform-designer-mark>hr:before{border-left:7px solid transparent;border-right:7px solid transparent;left:0}.xform-is-horizontal-scroll .xform-designer-mark>hr:before{border-top:4px solid red;top:0}.xform-is-horizontal-scroll .xform-designer-mark>hr:after{border-bottom:4px solid red;bottom:0}.xform-is-silence .xform-designer-mark{display:block}.xform-is-silence .xform-preview{border-color:#ccc;outline:none}.xform-is-silence .xform-preview>.xform-preview-cover{background-color:transparent!important}.xform-is-silence .xform-preview.xform-is-dragging{border-color:#6c757d!important}.xform-is-silence .xform-preview.xform-is-dragging>.xform-preview-cover{background-color:rgba(255,255,0,.075)!important;background-image:repeating-linear-gradient(-45deg,transparent,transparent 40%,#6c757d 0,#6c757d 50%);background-size:8px 8px;opacity:1;z-index:9}.xform-designer-mark~.xform-is-empty-tip{display:none}.xform-designer-setting{background-color:#fff;border-left:1px solid var(--xform-border-color);box-sizing:content-box;height:100%;overflow:hidden;width:360px}.xform-setting-tip{color:var(--xform-text-color-secondary);font-size:14px;font-weight:700;padding-top:180px;text-align:center}.xform-tabs{display:flex;flex-flow:row nowrap;height:38px;line-height:38px;list-style:none;margin:0;padding:0}.xform-tabs li{border-bottom:1px solid var(--xform-border-color);cursor:pointer;flex:1;position:relative;text-align:center}.xform-tabs-main{box-sizing:border-box;height:calc(100% - 38px);overflow-x:hidden;width:360px}.xform-tabs li.xform-is-active{border-color:var(--xform-color-primary);color:var(--xform-color-primary)}.xform-designer-setting-field{height:100%;padding:10px}.xform-tabs-content{padding:10px}.xform-is-scope .xform-preview{z-index:9}.xform-designer-setting [title]{cursor:help}.xform-item{box-sizing:border-box;color:var(--xform-text-color);display:flex;flex-flow:row nowrap;font-size:var(--xform-font-size)}.xform-builder .xform-item,.xform-viewer .xform-item{margin-bottom:24px}.xform-item.xform-is-required .xform-item-label{font-weight:700}.xform-item.xform-is-required .xform-item-label>span.xform-item-title:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:-10px;line-height:1;position:absolute;top:0}.xform-is-left .xform-item-label{text-align:left}.xform-is-right .xform-item-label{text-align:right}.xform-is-top{flex-direction:column}.xform-is-top .xform-item-label{padding-bottom:4px;padding-left:0;padding-top:0;width:auto!important}.xform-is-top.xform-is-required .xform-item-label{padding-left:10px}.xform-is-top .xform-item-content{width:100%}.xform-item-label{box-sizing:border-box;line-height:20px;margin:0;padding:5px 10px 0;width:var(--xform-label-width);word-break:break-all}.xform-item-label>span{position:relative}.xform-item-content{box-sizing:border-box;flex:1;line-height:20px;position:relative;width:0}i.xform-item-help-icon{color:#909399;cursor:help;font-size:14px;margin-left:2px}pre.xform-item-help-content{font-family:inherit;line-height:1.25;margin:0;max-height:320px;max-width:480px;overflow:auto;white-space:pre-line}.xform-is-error .xform-item-control{border-color:var(--xform-color-danger)}.xform-is-error .xform-item-message{color:var(--xform-color-danger)}.xform-is-validating,.xform-item-message{color:#606266;font-size:12px;line-height:20px;margin:0;position:absolute;white-space:pre-line}.xform-viewer{background-color:#fff;color:var(--xform-text-color);font-size:var(--xform-font-size);margin:0 auto;padding:0 10px}.xform-viewer .xform-item-label>span:before{content:none!important}.xform-viewer-value{display:inline-block;line-height:21px;padding-bottom:5px;padding-top:5px}.Qs467eLc3xVfFSobcZ4V{display:none;position:absolute;right:-1px;top:-1px;z-index:10}.xform-is-selected>.Qs467eLc3xVfFSobcZ4V{display:block}.xform-is-silence .Qs467eLc3xVfFSobcZ4V{display:none!important}.WNsezfJtjSCoULFHOfeP{display:flex;flex-flow:row nowrap}.WNsezfJtjSCoULFHOfeP>button{background-color:var(--xform-color-primary);border:none;color:#fff;cursor:pointer;height:26px;margin:0;outline:none;padding:0;width:26px}.WNsezfJtjSCoULFHOfeP .xform-icon-is-svg svg{fill:#fff;height:16px;margin:0 auto;width:16px}.WNsezfJtjSCoULFHOfeP .xform-icon-is-img{height:16px;width:16px}.exa-modal-mask{background-color:hsla(0,0%,100%,.25);bottom:0;left:0;position:fixed;right:0;top:0;z-index:999}.exa-modal{background-color:#fff;border-radius:1px;box-shadow:1px 6px 20px 5px rgba(40,120,255,.125),1px 16px 24px 2px rgba(0,0,0,.075);margin:50px auto;max-width:1200px;width:80vw}.exa-modal-header{border-bottom:1px solid #ddd;display:flex;flex-flow:row nowrap}.exa-modal-header>h3{flex:1;font-size:16px;font-weight:700;line-height:20px;margin:0;padding:8px 10px}.exa-modal-close{background-color:transparent;border:none;color:#666;cursor:pointer;font-size:24px;height:36px;outline:none;outline:none!important;padding:0;transition:color .3s ease;width:36px}.exa-modal-close:hover{color:red}.exa-modal-body{padding:10px}.exa-fade-enter-active,.exa-fade-leave-active{transition:opacity .15s ease-in-out}.exa-fade-enter-from,.exa-fade-leave-to{opacity:0}.exa-fade-enter-active .exa-modal,.exa-fade-leave-active .exa-modal{transition:transform .15s ease-in-out}.exa-fade-enter-from .exa-modal,.exa-fade-leave-to .exa-modal{transform:scale(.85)}.X49OaGHJPiGQ_u3nOKEB{display:inline-block}.sq_wwO8E9uMiw6igKsIA{display:inline-block;position:relative}.sq_wwO8E9uMiw6igKsIA:hover .k6E2OhfWldDeblPdeYOx{display:block}.k6E2OhfWldDeblPdeYOx{background-color:#fff;box-shadow:0 1px 8px rgba(0,123,255,.15);color:var(--doc-text-color-primary);display:none;left:0;list-style:none;margin:0;padding:0;position:absolute;top:100%;width:180px;z-index:9}.k6E2OhfWldDeblPdeYOx li{color:#000;cursor:pointer;display:flex;flex-flow:row nowrap;font-size:14px;justify-content:space-between;line-height:24px;padding:4px 5px;text-align:left;transition:background-color .3s ease}.k6E2OhfWldDeblPdeYOx li strong{font-size:14px;font-weight:400}.k6E2OhfWldDeblPdeYOx li small{color:#989dab}.k6E2OhfWldDeblPdeYOx li.is-dev strong{color:red!important}.k6E2OhfWldDeblPdeYOx li:hover{background-color:var(--doc-link-hover-bg-color);color:var(--doc-link-color)}.k6E2OhfWldDeblPdeYOx li+li{border-top:1px dashed #ccc}.notification-layout{position:absolute;z-index:10000}.notification-layout[data-placement=top-right]{right:10px}.notification{background-color:#fff;border-radius:2px;box-shadow:1px 6px 20px 5px rgba(40,120,255,.13),1px 16px 24px 2px rgba(0,0,0,.08);padding:10px;position:relative;width:360px}.notification h3{line-height:20px;margin:0;overflow:hidden;padding:5px 30px 5px 0;text-overflow:ellipsis;white-space:nowrap}.notification-content{line-height:20px;max-height:240px;overflow:auto;padding:5px 0;white-space:pre-line;word-break:break-all}.notification-close{background-color:transparent;border:none;color:#666;cursor:pointer;font-size:24px;height:30px;line-height:30px;outline:none;outline:none!important;padding:0;position:absolute;right:10px;top:10px;transition:color .3s ease;width:30px}.notification-close:hover{color:red}.notification-error .notification-title{color:#dc3545}.notification-success .notification-title{color:#28a745}textarea.example-value{background-color:#f0f0f0;border:1px solid #ced4da;border-radius:.25rem;box-sizing:border-box;display:block;font-family:cascadia code,Consolas,Arial,Helvetica,sans-serif;font-size:14px;height:calc(100vh - 150px);line-height:20px;outline:none;resize:none;width:100%}textarea.example-value:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25);outline:0}html.is-example{overflow:hidden}.example{display:flex;flex-flow:column nowrap;height:100vh}.main{flex:1;height:0}.header{align-items:center;background-color:#007bff;box-shadow:0 1px 8px rgba(0,123,255,.5);display:flex;flex-flow:row nowrap;font-size:15px;justify-content:space-between;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:99}.header a:not(.example-nav-link){border-bottom:1px solid transparent;color:#fff;text-decoration:none;transition:border-bottom-color .3s ease}.header a:not(.example-nav-link):hover{border-bottom-color:#fff;text-decoration:none}.example-nav{background-color:#fff;display:flex;flex-flow:row nowrap;margin:0 auto}.header-left{left:0;padding-left:10px}.header-left,.header-right{align-items:center;display:flex;flex-flow:row nowrap;position:absolute}.header-right{padding-right:10px;right:0}.header-right a{color:#fff!important}.logo{color:#fff}.logo strong{font-size:24px;font-weight:600}.logo span{font-weight:400;margin-left:4px;white-space:pre}.logo a,.logo span{font-size:13px}.example-with-slash{display:inline-block;line-height:20px;margin-right:15px;position:relative}.example-with-slash:after{content:"/";line-height:20px;position:absolute;right:-15px;text-align:center;top:0;width:15px}.example-icon-github{margin-left:40px;position:relative}.example-icon-github img{height:16px;left:-20px;position:absolute;top:4px;width:16px;z-index:0}.example-nav-link{background-color:#007bff;border:none;box-sizing:content-box;color:#fff!important;display:block;height:24px;line-height:24px;padding:10px 10px 10px 30px;position:relative;text-align:center;text-decoration:none;text-decoration:none!important;transition:background-color .3s ease;width:100px}.example-nav-link:after,.example-nav-link:before{border-bottom:22px solid transparent;border-top:22px solid transparent;content:"";height:0;position:absolute;top:0;transition:border-color .3s ease;width:0}.example-nav-link:before{border-left:20px solid #fff;left:0;z-index:8}.example-nav-link:after{border-left:20px solid #007bff;right:-20px;z-index:9}.example-nav-link.router-link-active,.example-nav-link:hover{background-color:#005dc2}.example-nav-link.router-link-active:after,.example-nav-link:hover:after{border-left-color:#005dc2}.example-nav-link:first-child{padding-left:10px}.example-nav-link:first-child:before,.example-nav-link:last-child:after{content:none}.example-nav-link+.example-nav-link{margin-left:4px}.example-designer-tool{align-items:center;border-bottom:1px solid #eee;height:38px;justify-content:space-between;line-height:38px;padding:0 10px;text-align:right}.example-designer-tool,.example-designer-tool-left{display:flex;flex-flow:row nowrap}.is-wide{--xform-designer-responsive-width:100%}.example-logic-head{margin:0}.example-logic-target-remove{color:var(--xform-color-danger);font-size:14px;font-weight:700;margin:0 5px}.example-logic-target-move{color:var(--xform-color-primary);cursor:pointer;font-size:14px;font-weight:700;margin:0 4px}.example-logic-target-move:hover{border-bottom:1px solid}.example-logic-message{line-height:20px;margin-top:5px;padding:0 0 0 20px;position:relative}.example-logic-message strong{color:var(--xform-color-primary);cursor:pointer;font-size:14px;font-weight:700}.example-logic-message strong:hover{border-bottom:1px solid}.example-logic-message:before{content:"-";left:0;line-height:20px;position:absolute;text-align:center;top:0;width:20px}.example-schema-error{padding-left:10px}.example-schema-error p{margin-bottom:0}.example-schema-error+.example-schema-error{margin-top:4px}.example-schema-error .example-schema-error-message{padding-left:10px}.example-builder{max-width:640px;padding:15px 0 65px}.is-wide .example-builder{max-width:none;width:calc(100vw - 702px)}.example-builder-footer{margin-top:20px;text-align:right}.example-builder-footer button{min-width:72px}.example-builder-footer button+button{margin-left:10px}.example-builder-title{font-size:18px;font-weight:700;margin:10px 0 15px;text-align:center}.example-builder-tip{color:#fabb46;font-size:14px;margin:0}.example-viewer{max-width:640px;padding:15px 0}.is-wide .example-viewer{max-width:none;width:calc(100vw - 702px)}:root{--doc-color-primary:#007bff;--doc-text-color-primary:#24292e;--doc-head-text-color:#212433;--doc-link-color:#007bff;--doc-link-hover-bg-color:rgba(0,76,252,.1);--doc-main-width:1180px}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-track{background-color:#f5f5f5}::-webkit-scrollbar-thumb{background-color:hsla(210,7%,84%,.5)}::-webkit-scrollbar-thumb:hover{background-color:#d3d6d9}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased}body{-webkit-tap-highlight-color:rgba(26,26,26,0);color:var(--doc-text-color-primary);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:14px;line-height:1.6;margin:0}[hidden]{display:none!important}p{margin-bottom:15px;margin-top:0}pre{margin:10px 0}h1,h2,h3,h4,h5,h6{color:var(--doc-head-text-color);font-weight:600;margin:10px 0}h1{font-size:24px;line-height:24px;margin:0 0 20px;padding:0}h2{font-size:18px}h3{font-size:16px}ul{margin:0 0 15px;padding-left:34px}ul.doc-ul{list-style:none}ul.doc-ul>li{position:relative}ul.doc-ul>li:before{background-color:#191f2f;border-radius:50%;content:"";height:6px;left:-20px;position:absolute;top:9px;transition:background-color .3s ease;width:6px}ul.doc-ul>li:hover:before{background-color:var(--doc-color-primary);box-shadow:0 0 4px rgba(0,123,255,.5)}code:not(.hljs-code){color:#e45649;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;margin:0 2px}md-meta{display:none}iframe{border:none;display:block;width:100%}code-box{display:block;margin:10px 0;position:relative}table{border-collapse:collapse;table-layout:fixed;width:100%}table th{text-align:left}table thead{background-color:#f5f5f5}table tbody tr+tr{border-top:1px dashed #e5e5e6}table td,table th{line-height:24px;padding:8px}blockquote{border-left:4px solid #dfe2e5;color:#999;margin:15px 0;padding:8px 10px 8px 20px}blockquote>p{margin:0}img{max-width:100%}.hljs{background:#f8f9fa;border-radius:1px;color:#383a42;display:block;line-height:18px;position:relative}.hljs[language]:after{color:#ccc;content:attr(language);font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:12px;font-weight:600;line-height:1;position:absolute;right:8px;top:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hljs code{display:block;font-family:Cascadia Code,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;overflow-x:auto;padding:15px}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#a626a4}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-addition,.hljs-attribute,.hljs-meta-string,.hljs-regexp,.hljs-string{color:#50a14f}.hljs-built_in,.hljs-class .hljs-title{color:#c18401}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#986801}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#4078f2}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.doc a{border-bottom:1px solid transparent;text-decoration:none;transition:border-bottom-color .3s ease,background-color .3s ease}.doc a:hover,.doc a:link,.doc a:visited{color:var(--doc-link-color)}.doc a:hover{background-color:var(--doc-link-hover-bg-color);border-bottom-color:var(--doc-link-color);text-decoration:none}.doc a:not([href]):not([tabindex]):focus{outline:0}.doc-header{background-color:#fff;border-bottom:1px solid #dcdfe6;height:45px;position:fixed;top:0;width:100%;z-index:10}.doc-header-main{align-items:center;height:100%;justify-content:space-between}.doc-container,.doc-header-main{display:flex;flex-flow:row nowrap;margin:0 auto;width:var(--doc-main-width)}.doc-container{min-height:calc(100vh - 45px);padding-top:45px}.doc-nav{max-height:calc(100vh - 85px);overflow-y:auto;padding:20px 0;position:-webkit-sticky;position:sticky;top:45px;width:240px}.doc-content{flex:1;padding-right:180px;position:relative;width:0}.doc-main{padding:20px 20px 0}.doc-footer{height:40px;padding:10px 0}.doc-copyright{color:#999;font-size:13px;line-height:20px;margin:0 auto;text-align:center;width:var(--doc-main-width)}.doc-menus{list-style:none;margin:0;padding:0}.doc-menu-item{font-size:15px;line-height:20px;padding-right:24px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.doc-menu-group:first-child{margin-top:0}.doc-menu-item>a:link,.doc-menu-item>a:visited{color:#333}.doc-menu-item>a:hover{color:var(--doc-link-color)}.doc-menu-item>a.router-link-exact-active{color:var(--doc-link-color);font-weight:700}.doc-menu-item>small{color:#666;font-size:12px;margin-left:8px}.doc-menu-group{font-size:16px;font-weight:700;height:28px;line-height:28px;margin:15px 0 0}.doc-menu-loading:after{-webkit-animation:doc-menu-rotate 1s linear infinite;animation:doc-menu-rotate 1s linear infinite;border:2px solid transparent;border-radius:50%;border-right:2px solid var(--doc-color-primary);content:"";height:16px;position:absolute;right:4px;top:2px;width:16px}@-webkit-keyframes doc-menu-rotate{to{transform:rotate(1turn)}}@keyframes doc-menu-rotate{to{transform:rotate(1turn)}}.doc-logo>strong{font-size:24px;font-weight:600;-webkit-user-select:none;-moz-user-select:none;user-select:none}.doc-logo>small{color:#666;font-size:12px;margin-left:4px}.doc-header-links a,.doc-header-links img{display:inline-block;vertical-align:middle}.doc-header-links a{color:var(--doc-text-color-primar);font-weight:500;height:18px;line-height:18px;margin:0 2px 0 20px}.doc-header-links a:hover{color:var(--doc-link-color)}.doc-not-found{flex:1;font-size:24px;margin:0;padding-top:100px;text-align:center}.doc-footer-guide{border-top:1px solid #dcdfe6;margin-top:40px;overflow:hidden;padding:15px 0}.doc-footer-guide-prev{float:left}.doc-footer-guide-next{float:right}.doc-affix{padding-left:20px;position:absolute;right:0;top:20px;width:180px}.icon-outbound{background:url(/xForm/e4569756afee27e7ac50.svg) no-repeat}.icon-outbound,is-link{display:inline-block;height:16px;vertical-align:middle;width:16px}is-link{cursor:pointer}is-link:hover path,is-link:hover polygon{fill:var(--doc-color-primary)}is-link>svg{display:block}@media (max-width:768px){.doc-container,.doc-copyright,.doc-header-main{width:100%}.doc-header-main{padding-left:20px;padding-right:20px}.doc-affix,.doc-nav{display:none}.doc-content{padding-right:0}.doc-toggle-btn{display:block!important}}.doc-nav.is-open{background-color:rgba(0,0,0,.125);bottom:0;display:block!important;left:0;max-height:100%;padding:0;position:fixed;right:0;top:0;width:100%;z-index:19}.doc-nav.is-open .doc-menus{background-color:#fff;float:right;height:100%;overflow:auto;padding:20px;width:280px}.doc-toggle-btn{background-color:#fff;border:1px solid #dcdfe6;border-radius:50%;bottom:20px;box-shadow:0 1px 4px rgba(0,0,0,.125);display:none;font-size:12px;font-weight:700;height:40px;outline:none;position:fixed;right:20px;width:40px;z-index:18}.article>h3{font-style:italic}.article-toc{margin:0;padding-left:34px;position:fixed;width:180px}.article-toc>li{height:20px;line-height:20px}.article-toc>li.active{border-left-color:var(--doc-color-primary)}.article-toc>li.active a{color:var(--doc-link-color)!important}.article-toc>li+li{margin-top:5px}.article-toc>li>a:link,.article-toc>li>a:visited{color:#333}.article-toc>li>a:hover{color:var(--doc-link-color)}.article-anchor{float:left;margin-left:-15px!important}.article-anchor:hover{background-color:transparent;border-bottom-color:transparent}.article-sticky-heading{background-color:#fff;position:-webkit-sticky;position:sticky;top:45px;z-index:9}.event-table th:first-child{width:160px}.event-table th:nth-child(2){width:180px}.md-container{border-radius:1px;margin-bottom:10px;padding:15px}.md-container-title{font-size:16px;font-weight:700;line-height:20px;margin:0 0 10px}.md-container>:last-child{margin-bottom:0!important}.md-container-tip{background-color:#e6f7ff}.md-container-warning{background-color:rgba(255,229,100,.3);border-color:#e7c000;color:#6b5900}.md-container-danger{background-color:#f8d7da;color:#721c24} \ No newline at end of file +:root{--xform-color-primary:#409eff;--xform-color-primary-lighten:#e8f3ff;--xform-color-danger:#f56c6c;--xform-color-warning:#e6a23c;--xform-border-color:#eee;--xform-text-color:#343a40;--xform-text-color-secondary:#9a9a9a;--xform-font-size:14px;--xform-label-width:120px;--xform-designer-mark-color:red;--xform-designer-responsive-width:640px}.xform-is-scroll{overflow:auto;scrollbar-color:hsla(0,0%,78%,.5) #f5f5f5;scrollbar-width:thin}.xform-is-scroll::-webkit-scrollbar{height:8px;width:8px}.xform-is-scroll::-webkit-scrollbar-track{background-color:#f5f5f5}.xform-is-scroll::-webkit-scrollbar-thumb{background-color:hsla(0,0%,78%,.5)}.xform-is-scroll::-webkit-scrollbar-thumb:hover{background-color:#c8c8c8}.xform-is-hidden{display:none!important}.xform-is-unknown{color:var(--xform-text-color-secondary)}.xform-is-unknown,.xform-is-warning{line-height:20px;margin:0;padding:5px 0}.xform-is-warning{color:var(--xform-color-warning)}.xform-builder{background-color:#fff;margin:0 auto;padding:0 10px}.xform-builder,.xform-designer{color:var(--xform-text-color);font-size:var(--xform-font-size)}.xform-designer{display:flex;flex-flow:row nowrap;height:100%}.xform-designer-panel{background-color:#fff;border-right:1px solid var(--xform-border-color);box-sizing:content-box;overflow-x:hidden;overflow-y:auto;width:320px}.xform-designer-main{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:0}.xform-designer-responsive{background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.05);height:100%;margin:0 auto;max-width:var(--xform-designer-responsive-width)}.xform-designer-board{background-color:#f8f8f9;flex:1;overflow:hidden;padding:10px}.xform-designer-list{background-color:#fff;box-sizing:border-box;min-height:100%;padding:5px;position:relative}.xform-designer-field-group h3{font-size:16px;font-weight:400;margin:0;padding:10px 0 0 10px}.xform-designer-field-list{display:flex;flex-flow:row wrap;justify-content:space-between;padding:0 10px 10px;width:320px}.xform-designer-field,.xform-designer-field-list{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}.xform-designer-field{background-color:var(--xform-color-primary-lighten);border:1px solid var(--xform-color-primary-lighten);border-radius:2px;cursor:move;font-size:13px;height:32px;line-height:24px;margin:10px 0 0;overflow:hidden;padding:4px 24px 4px 8px;position:relative;text-align:left;text-overflow:ellipsis;transition:border-color .3s ease;white-space:nowrap;width:145px}.xform-designer-field>span{font-weight:600}.xform-designer-field .xform-icon{font-size:20px;position:absolute;right:2px;text-align:center;top:5px}.xform-designer-field .xform-icon.xform-icon-is-img{height:20px;width:20px}.xform-icon.xform-icon-is-svg svg{display:block;height:20px;width:20px}.xform-designer-field:hover{border-color:var(--xform-color-primary);border-style:dashed}.xform-preview{border:1px dashed #ccc;padding:5px;transition:border-color .3s ease,background-color .3s ease}.xform-preview,.xform-preview.xform-is-preview-hidden .xform-item{position:relative}.xform-preview+.xform-preview{margin-top:5px}.xform-preview .xform-item-top .xform-item-label{padding-top:0}.xform-preview.xform-is-preview-hidden .xform-preview-cover{background-color:#fdc45c}.xform-preview.xform-is-selected,.xform-preview:hover{border-color:var(--xform-color-primary)}.xform-preview.xform-is-selected{border-style:solid;outline:var(--xform-color-primary) solid 1px}.xform-preview-cover:hover,.xform-preview.xform-is-selected>.xform-preview-cover{background-color:var(--xform-color-primary)}.xform-preview-cover{bottom:0;cursor:move;left:0;opacity:.175;position:absolute;right:0;top:0;z-index:8}.xform-designer-ghost{background-color:#fff;box-shadow:0 0 12px hsla(0,0%,49%,.25);display:none;left:0;position:fixed;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:19}.xform-designer-ghost.xform-is-show{display:block}.xform-designer-ghost-template>*{margin:0}.xform-designer-ghost.xform-is-not-allowed .xform-designer-cover{background-color:#fff;cursor:not-allowed;opacity:.35}.xform-designer-ghost .xform-designer-field{border:none}.xform-designer-ghost .xform-designer-cover{bottom:0;cursor:move;left:0;position:absolute;right:0;top:0;z-index:1}.xform-preview-empty-tip{padding:150px 0}.xform-preview-empty-tip>img{display:block;margin:0 auto;width:320px}.xform-preview-empty-tip>p{color:var(--xform-text-color-secondary);font-size:15px;font-weight:600;margin:10px 0 0;text-align:center}.xform-designer-mark{display:none;height:0;position:relative}.xform-designer-mark:not(:first-child)+.xform-preview{margin-top:5px}.xform-is-horizontal-scroll .xform-designer-mark:not(:first-child)+.xform-preview{margin-left:5px;margin-top:0}.xform-designer-mark>hr{background:linear-gradient(to bottom,transparent 5px,var(--xform-designer-mark-color) 5px,var(--xform-designer-mark-color) 8px,transparent 8px);border:none;box-sizing:content-box;height:3px;left:0;margin:0 auto;opacity:1;padding:5px 0;position:absolute;right:0;top:-4px;z-index:10}.xform-designer-mark>hr:after,.xform-designer-mark>hr:before{border-bottom:7px solid transparent;border-top:7px solid transparent;content:"";position:absolute;top:0;z-index:10}.xform-designer-mark>hr:before{border-left:4px solid var(--xform-designer-mark-color);left:0}.xform-designer-mark>hr:after{border-right:4px solid var(--xform-designer-mark-color);right:0}.xform-is-horizontal-scroll .xform-designer-mark{height:100%;width:0}.xform-is-horizontal-scroll .xform-designer-mark>hr{background:linear-gradient(to right,transparent 5px,var(--xform-designer-mark-color) 5px,var(--xform-designer-mark-color) 8px,transparent 8px);bottom:0;height:100%;left:-4px;margin:0;padding:0 5px;top:0;width:3px}.xform-is-horizontal-scroll .xform-designer-mark>hr:after,.xform-is-horizontal-scroll .xform-designer-mark>hr:before{border-left:7px solid transparent;border-right:7px solid transparent;left:0}.xform-is-horizontal-scroll .xform-designer-mark>hr:before{border-top:4px solid red;top:0}.xform-is-horizontal-scroll .xform-designer-mark>hr:after{border-bottom:4px solid red;bottom:0}.xform-is-silence .xform-designer-mark{display:block}.xform-is-silence .xform-preview{border-color:#ccc;outline:none}.xform-is-silence .xform-preview>.xform-preview-cover{background-color:transparent!important}.xform-is-silence .xform-preview.xform-is-dragging{border-color:#6c757d!important}.xform-is-silence .xform-preview.xform-is-dragging>.xform-preview-cover{background-color:rgba(255,255,0,.075)!important;background-image:repeating-linear-gradient(-45deg,transparent,transparent 40%,#6c757d 0,#6c757d 50%);background-size:8px 8px;opacity:1;z-index:9}.xform-designer-mark~.xform-is-empty-tip{display:none}.xform-designer-setting{background-color:#fff;border-left:1px solid var(--xform-border-color);box-sizing:content-box;height:100%;overflow:hidden;width:360px}.xform-setting-tip{color:var(--xform-text-color-secondary);font-size:14px;font-weight:700;padding-top:180px;text-align:center}.xform-tabs{display:flex;flex-flow:row nowrap;height:38px;line-height:38px;list-style:none;margin:0;padding:0}.xform-tabs li{border-bottom:1px solid var(--xform-border-color);cursor:pointer;flex:1;position:relative;text-align:center}.xform-tabs-main{box-sizing:border-box;height:calc(100% - 38px);overflow-x:hidden;width:360px}.xform-tabs li.xform-is-active{border-color:var(--xform-color-primary);color:var(--xform-color-primary)}.xform-designer-setting-field{height:100%;padding:10px}.xform-tabs-content{padding:10px}.xform-is-scope .xform-preview{z-index:9}.xform-designer-setting [title]{cursor:help}.xform-item{box-sizing:border-box;color:var(--xform-text-color);display:flex;flex-flow:row nowrap;font-size:var(--xform-font-size)}.xform-builder .xform-item,.xform-viewer .xform-item{margin-bottom:24px}.xform-item.xform-is-required .xform-item-label{font-weight:700}.xform-item.xform-is-required .xform-item-label>span.xform-item-title:before{color:var(--xform-color-danger);content:"*";font-size:18px;font-weight:700;left:-10px;line-height:1;position:absolute;top:0}.xform-is-left .xform-item-label{text-align:left}.xform-is-right .xform-item-label{text-align:right}.xform-is-top{flex-direction:column}.xform-is-top .xform-item-label{padding-bottom:4px;padding-left:0;padding-top:0;width:auto!important}.xform-is-top.xform-is-required .xform-item-label{padding-left:10px}.xform-is-top .xform-item-content{width:100%}.xform-item-label{box-sizing:border-box;line-height:20px;margin:0;padding:5px 10px 0;width:var(--xform-label-width);word-break:break-all}.xform-item-label>span{position:relative}.xform-item-content{box-sizing:border-box;flex:1;line-height:20px;position:relative;width:0}i.xform-item-help-icon{color:#909399;cursor:help;font-size:14px;margin-left:2px}pre.xform-item-help-content{font-family:inherit;line-height:1.25;margin:0;max-height:320px;max-width:480px;overflow:auto;white-space:pre-line}.xform-is-error .xform-item-control{border-color:var(--xform-color-danger)}.xform-is-error .xform-item-message{color:var(--xform-color-danger)}.xform-is-validating,.xform-item-message{color:#606266;font-size:12px;line-height:20px;margin:0;position:absolute;white-space:pre-line}.xform-viewer{background-color:#fff;color:var(--xform-text-color);font-size:var(--xform-font-size);margin:0 auto;padding:0 10px}.xform-viewer .xform-item-label>span:before{content:none!important}.xform-viewer-value{display:inline-block;line-height:21px;padding-bottom:5px;padding-top:5px}.Qs467eLc3xVfFSobcZ4V{display:none;position:absolute;right:-1px;top:-1px;z-index:10}.xform-is-selected>.Qs467eLc3xVfFSobcZ4V{display:block}.xform-is-silence .Qs467eLc3xVfFSobcZ4V{display:none!important}.WNsezfJtjSCoULFHOfeP{display:flex;flex-flow:row nowrap}.WNsezfJtjSCoULFHOfeP>button{background-color:var(--xform-color-primary);border:none;color:#fff;cursor:pointer;height:26px;margin:0;outline:none;padding:0;width:26px}.WNsezfJtjSCoULFHOfeP .xform-icon-is-svg svg{fill:#fff;height:16px;margin:0 auto;width:16px}.WNsezfJtjSCoULFHOfeP .xform-icon-is-img{height:16px;width:16px}.exa-modal-mask{background-color:hsla(0,0%,100%,.25);bottom:0;left:0;position:fixed;right:0;top:0;z-index:999}.exa-modal{background-color:#fff;border-radius:1px;box-shadow:1px 6px 20px 5px rgba(40,120,255,.125),1px 16px 24px 2px rgba(0,0,0,.075);margin:50px auto;max-width:1200px;width:80vw}.exa-modal-header{border-bottom:1px solid #ddd;display:flex;flex-flow:row nowrap}.exa-modal-header>h3{flex:1;font-size:16px;font-weight:700;line-height:20px;margin:0;padding:8px 10px}.exa-modal-close{background-color:transparent;border:none;color:#666;cursor:pointer;font-size:24px;height:36px;outline:none;outline:none!important;padding:0;transition:color .3s ease;width:36px}.exa-modal-close:hover{color:red}.exa-modal-body{padding:10px}.exa-fade-enter-active,.exa-fade-leave-active{transition:opacity .15s ease-in-out}.exa-fade-enter-from,.exa-fade-leave-to{opacity:0}.exa-fade-enter-active .exa-modal,.exa-fade-leave-active .exa-modal{transition:transform .15s ease-in-out}.exa-fade-enter-from .exa-modal,.exa-fade-leave-to .exa-modal{transform:scale(.85)}.X49OaGHJPiGQ_u3nOKEB{display:inline-block}.sq_wwO8E9uMiw6igKsIA{display:inline-block;position:relative}.sq_wwO8E9uMiw6igKsIA:hover .k6E2OhfWldDeblPdeYOx{display:block}.k6E2OhfWldDeblPdeYOx{background-color:#fff;box-shadow:0 1px 8px rgba(0,123,255,.15);color:var(--doc-text-color-primary);display:none;left:0;list-style:none;margin:0;padding:0;position:absolute;top:100%;width:180px;z-index:9}.k6E2OhfWldDeblPdeYOx li{color:#000;cursor:pointer;display:flex;flex-flow:row nowrap;font-size:14px;justify-content:space-between;line-height:24px;padding:4px 5px;text-align:left;transition:background-color .3s ease}.k6E2OhfWldDeblPdeYOx li strong{font-size:14px;font-weight:400}.k6E2OhfWldDeblPdeYOx li small{color:#989dab}.k6E2OhfWldDeblPdeYOx li.is-dev strong{color:red!important}.k6E2OhfWldDeblPdeYOx li:hover{background-color:var(--doc-link-hover-bg-color);color:var(--doc-link-color)}.k6E2OhfWldDeblPdeYOx li+li{border-top:1px dashed #ccc}.notification-layout{position:absolute;z-index:10000}.notification-layout[data-placement=top-right]{right:10px}.notification{background-color:#fff;border-radius:2px;box-shadow:1px 6px 20px 5px rgba(40,120,255,.13),1px 16px 24px 2px rgba(0,0,0,.08);padding:10px;position:relative;width:360px}.notification h3{line-height:20px;margin:0;overflow:hidden;padding:5px 30px 5px 0;text-overflow:ellipsis;white-space:nowrap}.notification-content{line-height:20px;max-height:240px;overflow:auto;padding:5px 0;white-space:pre-line;word-break:break-all}.notification-close{background-color:transparent;border:none;color:#666;cursor:pointer;font-size:24px;height:30px;line-height:30px;outline:none;outline:none!important;padding:0;position:absolute;right:10px;top:10px;transition:color .3s ease;width:30px}.notification-close:hover{color:red}.notification-error .notification-title{color:#dc3545}.notification-success .notification-title{color:#28a745}textarea.example-value{background-color:#f0f0f0;border:1px solid #ced4da;border-radius:.25rem;box-sizing:border-box;display:block;font-family:cascadia code,Consolas,Arial,Helvetica,sans-serif;font-size:14px;height:calc(100vh - 150px);line-height:20px;outline:none;resize:none;width:100%}textarea.example-value:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25);outline:0}html.is-example{overflow:hidden}.example{display:flex;flex-flow:column nowrap;height:100vh}.main{flex:1;height:0}.header{align-items:center;background-color:#007bff;box-shadow:0 1px 8px rgba(0,123,255,.5);display:flex;flex-flow:row nowrap;font-size:15px;justify-content:space-between;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:99}.header a:not(.example-nav-link){border-bottom:1px solid transparent;color:#fff;text-decoration:none;transition:border-bottom-color .3s ease}.header a:not(.example-nav-link):hover{border-bottom-color:#fff;text-decoration:none}.example-nav{background-color:#fff;display:flex;flex-flow:row nowrap;margin:0 auto}.header-left{left:0;padding-left:10px}.header-left,.header-right{align-items:center;display:flex;flex-flow:row nowrap;position:absolute}.header-right{padding-right:10px;right:0}.header-right a{color:#fff!important}.logo{color:#fff}.logo strong{font-size:24px;font-weight:600}.logo span{font-weight:400;margin-left:4px;white-space:pre}.logo a,.logo span{font-size:13px}.example-with-slash{display:inline-block;line-height:20px;margin-right:15px;position:relative}.example-with-slash:after{content:"/";line-height:20px;position:absolute;right:-15px;text-align:center;top:0;width:15px}.example-icon-github{margin-left:40px;position:relative}.example-icon-github img{height:16px;left:-20px;position:absolute;top:4px;width:16px;z-index:0}.example-nav-link{background-color:#007bff;border:none;box-sizing:content-box;color:#fff!important;display:block;height:24px;line-height:24px;padding:10px 10px 10px 30px;position:relative;text-align:center;text-decoration:none;text-decoration:none!important;transition:background-color .3s ease;width:100px}.example-nav-link:after,.example-nav-link:before{border-bottom:22px solid transparent;border-top:22px solid transparent;content:"";height:0;position:absolute;top:0;transition:border-color .3s ease;width:0}.example-nav-link:before{border-left:20px solid #fff;left:0;z-index:8}.example-nav-link:after{border-left:20px solid #007bff;right:-20px;z-index:9}.example-nav-link.router-link-active,.example-nav-link:hover{background-color:#005dc2}.example-nav-link.router-link-active:after,.example-nav-link:hover:after{border-left-color:#005dc2}.example-nav-link:first-child{padding-left:10px}.example-nav-link:first-child:before,.example-nav-link:last-child:after{content:none}.example-nav-link+.example-nav-link{margin-left:4px}.example-designer-tool{align-items:center;border-bottom:1px solid #eee;height:38px;justify-content:space-between;line-height:38px;padding:0 10px;text-align:right}.example-designer-tool,.example-designer-tool-left{display:flex;flex-flow:row nowrap}.is-wide{--xform-designer-responsive-width:100%}.example-logic-head{margin:0}.example-logic-target-remove{color:var(--xform-color-danger);font-size:14px;font-weight:700;margin:0 5px}.example-logic-target-move{color:var(--xform-color-primary);cursor:pointer;font-size:14px;font-weight:700;margin:0 4px}.example-logic-target-move:hover{border-bottom:1px solid}.example-logic-message{line-height:20px;margin-top:5px;padding:0 0 0 20px;position:relative}.example-logic-message strong{color:var(--xform-color-primary);cursor:pointer;font-size:14px;font-weight:700}.example-logic-message strong:hover{border-bottom:1px solid}.example-logic-message:before{content:"-";left:0;line-height:20px;position:absolute;text-align:center;top:0;width:20px}.example-schema-error{padding-left:10px}.example-schema-error p{margin-bottom:0}.example-schema-error+.example-schema-error{margin-top:4px}.example-schema-error .example-schema-error-message{padding-left:10px}.example-builder{max-width:640px;padding:15px 0 65px}.is-wide .example-builder{max-width:none;width:calc(100vw - 702px)}.example-builder-footer{margin-top:20px;text-align:right}.example-builder-footer button{min-width:72px}.example-builder-footer button+button{margin-left:10px}.example-builder-title{font-size:18px;font-weight:700;margin:10px 0 15px;text-align:center}.example-builder-tip{color:#fabb46;font-size:14px;margin:0}.example-viewer{max-width:640px;padding:15px 0}.is-wide .example-viewer{max-width:none;width:calc(100vw - 702px)}:root{--doc-color-primary:#007bff;--doc-text-color-primary:#24292e;--doc-head-text-color:#212433;--doc-link-color:#007bff;--doc-link-hover-bg-color:rgba(0,76,252,.1);--doc-main-width:1180px}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-track{background-color:#f5f5f5}::-webkit-scrollbar-thumb{background-color:hsla(210,7%,84%,.5)}::-webkit-scrollbar-thumb:hover{background-color:#d3d6d9}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased}body{-webkit-tap-highlight-color:rgba(26,26,26,0);color:var(--doc-text-color-primary);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:14px;line-height:1.6;margin:0}[hidden]{display:none!important}p{margin-bottom:15px;margin-top:0}pre{margin:10px 0}h1,h2,h3,h4,h5,h6{color:var(--doc-head-text-color);font-weight:600;margin:10px 0}h1{font-size:24px;line-height:24px;margin:0 0 20px;padding:0}h2{font-size:18px}h3{font-size:16px}ul{margin:0 0 15px;padding-left:34px}ul.doc-ul{list-style:none}ul.doc-ul>li{position:relative}ul.doc-ul>li:before{background-color:#191f2f;border-radius:50%;content:"";height:6px;left:-20px;position:absolute;top:9px;transition:background-color .3s ease;width:6px}ul.doc-ul>li:hover:before{background-color:var(--doc-color-primary);box-shadow:0 0 4px rgba(0,123,255,.5)}code:not(.hljs-code){color:#e45649;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;margin:0 2px}md-meta{display:none}iframe{border:none;display:block;width:100%}code-box{display:block;margin:10px 0;position:relative}table{border-collapse:collapse;table-layout:fixed;width:100%}table th{text-align:left}table thead{background-color:#f5f5f5}table tbody tr+tr{border-top:1px dashed #e5e5e6}table td,table th{line-height:24px;padding:8px}blockquote{border-left:4px solid #dfe2e5;color:#999;margin:15px 0;padding:8px 10px 8px 20px}blockquote>p{margin:0}img{max-width:100%}.hljs{background:#f8f9fa;border-radius:1px;color:#383a42;display:block;line-height:18px;position:relative}.hljs[language]:after{color:#ccc;content:attr(language);font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:12px;font-weight:600;line-height:1;position:absolute;right:8px;top:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hljs code{display:block;font-family:Cascadia Code,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;overflow-x:auto;padding:15px}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#a626a4}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-addition,.hljs-attribute,.hljs-meta-string,.hljs-regexp,.hljs-string{color:#50a14f}.hljs-built_in,.hljs-class .hljs-title{color:#c18401}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#986801}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#4078f2}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.doc a{border-bottom:1px solid transparent;text-decoration:none;transition:border-bottom-color .3s ease,background-color .3s ease}.doc a:hover,.doc a:link,.doc a:visited{color:var(--doc-link-color)}.doc a:hover{background-color:var(--doc-link-hover-bg-color);border-bottom-color:var(--doc-link-color);text-decoration:none}.doc a:not([href]):not([tabindex]):focus{outline:0}.doc-header{background-color:#fff;border-bottom:1px solid #dcdfe6;height:45px;position:fixed;top:0;width:100%;z-index:10}.doc-header-main{align-items:center;height:100%;justify-content:space-between}.doc-container,.doc-header-main{display:flex;flex-flow:row nowrap;margin:0 auto;width:var(--doc-main-width)}.doc-container{min-height:calc(100vh - 45px);padding-top:45px}.doc-nav{max-height:calc(100vh - 85px);overflow-y:auto;padding:20px 0;position:sticky;top:45px;width:240px}.doc-content{flex:1;padding-right:180px;position:relative;width:0}.doc-main{padding:20px 20px 0}.doc-footer{height:40px;padding:10px 0}.doc-copyright{color:#999;font-size:13px;line-height:20px;margin:0 auto;text-align:center;width:var(--doc-main-width)}.doc-menus{list-style:none;margin:0;padding:0}.doc-menu-item{font-size:15px;line-height:20px;padding-right:24px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.doc-menu-group:first-child{margin-top:0}.doc-menu-item>a:link,.doc-menu-item>a:visited{color:#333}.doc-menu-item>a:hover{color:var(--doc-link-color)}.doc-menu-item>a.router-link-exact-active{color:var(--doc-link-color);font-weight:700}.doc-menu-item>small{color:#666;font-size:12px;margin-left:8px}.doc-menu-group{font-size:16px;font-weight:700;height:28px;line-height:28px;margin:15px 0 0}.doc-menu-loading:after{animation:doc-menu-rotate 1s linear infinite;border:2px solid transparent;border-radius:50%;border-right:2px solid var(--doc-color-primary);content:"";height:16px;position:absolute;right:4px;top:2px;width:16px}@keyframes doc-menu-rotate{to{transform:rotate(1turn)}}.doc-logo>strong{font-size:24px;font-weight:600;-webkit-user-select:none;-moz-user-select:none;user-select:none}.doc-logo>small{color:#666;font-size:12px;margin-left:4px}.doc-header-links a,.doc-header-links img{display:inline-block;vertical-align:middle}.doc-header-links a{color:var(--doc-text-color-primar);font-weight:500;height:18px;line-height:18px;margin:0 2px 0 20px}.doc-header-links a:hover{color:var(--doc-link-color)}.doc-not-found{flex:1;font-size:24px;margin:0;padding-top:100px;text-align:center}.doc-footer-guide{border-top:1px solid #dcdfe6;margin-top:40px;overflow:hidden;padding:15px 0}.doc-footer-guide-prev{float:left}.doc-footer-guide-next{float:right}.doc-affix{padding-left:20px;position:absolute;right:0;top:20px;width:180px}.icon-outbound{background:url(/xForm/e4569756afee27e7ac50.svg) no-repeat}.icon-outbound,is-link{display:inline-block;height:16px;vertical-align:middle;width:16px}is-link{cursor:pointer}is-link:hover path,is-link:hover polygon{fill:var(--doc-color-primary)}is-link>svg{display:block}@media (max-width:768px){.doc-container,.doc-copyright,.doc-header-main{width:100%}.doc-header-main{padding-left:20px;padding-right:20px}.doc-affix,.doc-nav{display:none}.doc-content{padding-right:0}.doc-toggle-btn{display:block!important}}.doc-nav.is-open{background-color:rgba(0,0,0,.125);bottom:0;display:block!important;left:0;max-height:100%;padding:0;position:fixed;right:0;top:0;width:100%;z-index:19}.doc-nav.is-open .doc-menus{background-color:#fff;float:right;height:100%;overflow:auto;padding:20px;width:280px}.doc-toggle-btn{background-color:#fff;border:1px solid #dcdfe6;border-radius:50%;bottom:20px;box-shadow:0 1px 4px rgba(0,0,0,.125);display:none;font-size:12px;font-weight:700;height:40px;outline:none;position:fixed;right:20px;width:40px;z-index:18}.article>h3{font-style:italic}.article-toc{margin:0;padding-left:34px;position:fixed;width:180px}.article-toc>li{height:20px;line-height:20px}.article-toc>li.active{border-left-color:var(--doc-color-primary)}.article-toc>li.active a{color:var(--doc-link-color)!important}.article-toc>li+li{margin-top:5px}.article-toc>li>a:link,.article-toc>li>a:visited{color:#333}.article-toc>li>a:hover{color:var(--doc-link-color)}.article-anchor{float:left;margin-left:-15px!important}.article-anchor:hover{background-color:transparent;border-bottom-color:transparent}.article-sticky-heading{background-color:#fff;position:sticky;top:45px;z-index:9}.event-table th:first-child{width:160px}.event-table th:nth-child(2){width:180px}.md-container{border-radius:1px;margin-bottom:10px;padding:15px}.md-container-title{font-size:16px;font-weight:700;line-height:20px;margin:0 0 10px}.md-container>:last-child{margin-bottom:0!important}.md-container-tip{background-color:#e6f7ff}.md-container-warning{background-color:rgba(255,229,100,.3);border-color:#e7c000;color:#6b5900}.md-container-danger{background-color:#f8d7da;color:#721c24} \ No newline at end of file diff --git a/docs/main.49f347fb.js b/docs/main.49f347fb.js deleted file mode 100644 index f88ca52..0000000 --- a/docs/main.49f347fb.js +++ /dev/null @@ -1,7 +0,0 @@ -(()=>{var e,t,n,r,o,i={2262:(e,t,n)=>{"use strict";n.d(t,{$y:()=>ke,B:()=>a,BK:()=>ze,Bj:()=>i,EB:()=>s,Fl:()=>Ke,IU:()=>Pe,Jd:()=>O,OT:()=>Se,PG:()=>Oe,SU:()=>Be,Um:()=>xe,Vh:()=>Xe,WL:()=>qe,X$:()=>P,X3:()=>je,XI:()=>De,Xl:()=>Ce,YS:()=>Ee,ZM:()=>Ge,cE:()=>x,dq:()=>Ne,iH:()=>Fe,j:()=>A,lk:()=>k,nZ:()=>u,oR:()=>We,qj:()=>we,qq:()=>b,sT:()=>S,yT:()=>Ae});var r=n(3577);let o;class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},f=e=>(e.w&h)>0,d=e=>(e.n&h)>0,p=new WeakMap;let v=0,h=1;let m;const y=Symbol(""),g=Symbol("");class b{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,l(this,n)}run(){if(!this.active)return this.fn();let e=m,t=E;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=m,m=this,E=!0,h=1<<++v,v<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(n)&&u.push(l.get("length")):(u.push(l.get(y)),(0,r._N)(e)&&u.push(l.get(g)));break;case"delete":(0,r.kJ)(e)||(u.push(l.get(y)),(0,r._N)(e)&&u.push(l.get(g)));break;case"set":(0,r._N)(e)&&u.push(l.get(y))}if(1===u.length)u[0]&&C(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);C(c(e))}}function C(e,t){const n=(0,r.kJ)(e)?e:[...e];for(const e of n)e.computed&&R(e,t);for(const e of n)e.computed||R(e,t)}function R(e,t){(e!==m||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const I=(0,r.fY)("__proto__,__v_isRef,__isVue"),T=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.yk)),L=W(),N=W(!1,!0),F=W(!0),D=W(!0,!0),M=U();function U(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pe(this);for(let e=0,t=this.length;e{e[t]=function(...e){O();const n=Pe(this)[t].apply(this,e);return k(),n}})),e}function W(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?be:ge:t?ye:me).get(n))return n;const a=(0,r.kJ)(n);if(!e&&a&&(0,r.RI)(M,o))return Reflect.get(M,o,i);const l=Reflect.get(n,o,i);return((0,r.yk)(o)?T.has(o):I(o))?l:(e||A(n,0,o),t?l:Ne(l)?a&&(0,r.S0)(o)?l:l.value:(0,r.Kn)(l)?e?Se(l):we(l):l)}}const B=q(),V=q(!0);function q(e=!1){return function(t,n,o,i){let a=t[n];if(ke(a)&&Ne(a)&&!Ne(o))return!1;if(!e&&!ke(o)&&(Ae(o)||(o=Pe(o),a=Pe(a)),!(0,r.kJ)(t)&&Ne(a)&&!Ne(o)))return a.value=o,!0;const l=(0,r.kJ)(t)&&(0,r.S0)(n)?Number(n)!0,deleteProperty:(e,t)=>!0},z=(0,r.l7)({},H,{get:N,set:V}),J=(0,r.l7)({},G,{get:D}),X=e=>e,Y=e=>Reflect.getPrototypeOf(e);function K(e,t,n=!1,r=!1){const o=Pe(e=e.__v_raw),i=Pe(t);n||(t!==i&&A(o,0,t),A(o,0,i));const{has:a}=Y(o),l=r?X:n?Ie:Re;return a.call(o,t)?l(e.get(t)):a.call(o,i)?l(e.get(i)):void(e!==o&&e.get(t))}function Z(e,t=!1){const n=this.__v_raw,r=Pe(n),o=Pe(e);return t||(e!==o&&A(r,0,e),A(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function $(e,t=!1){return e=e.__v_raw,!t&&A(Pe(e),0,y),Reflect.get(e,"size",e)}function Q(e){e=Pe(e);const t=Pe(this);return Y(t).has.call(t,e)||(t.add(e),P(t,"add",e,e)),this}function ee(e,t){t=Pe(t);const n=Pe(this),{has:o,get:i}=Y(n);let a=o.call(n,e);a||(e=Pe(e),a=o.call(n,e));const l=i.call(n,e);return n.set(e,t),a?(0,r.aU)(t,l)&&P(n,"set",e,t):P(n,"add",e,t),this}function te(e){const t=Pe(this),{has:n,get:r}=Y(t);let o=n.call(t,e);o||(e=Pe(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&P(t,"delete",e,void 0),i}function ne(){const e=Pe(this),t=0!==e.size,n=e.clear();return t&&P(e,"clear",void 0,void 0),n}function re(e,t){return function(n,r){const o=this,i=o.__v_raw,a=Pe(i),l=t?X:e?Ie:Re;return!e&&A(a,0,y),i.forEach(((e,t)=>n.call(r,l(e),l(t),o)))}}function oe(e,t,n){return function(...o){const i=this.__v_raw,a=Pe(i),l=(0,r._N)(a),u="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,c=i[e](...o),f=n?X:t?Ie:Re;return!t&&A(a,0,s?g:y),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:u?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function ie(e){return function(...t){return"delete"!==e&&this}}function ae(){const e={get(e){return K(this,e)},get size(){return $(this)},has:Z,add:Q,set:ee,delete:te,clear:ne,forEach:re(!1,!1)},t={get(e){return K(this,e,!1,!0)},get size(){return $(this)},has:Z,add:Q,set:ee,delete:te,clear:ne,forEach:re(!1,!0)},n={get(e){return K(this,e,!0)},get size(){return $(this,!0)},has(e){return Z.call(this,e,!0)},add:ie("add"),set:ie("set"),delete:ie("delete"),clear:ie("clear"),forEach:re(!0,!1)},r={get(e){return K(this,e,!0,!0)},get size(){return $(this,!0)},has(e){return Z.call(this,e,!0)},add:ie("add"),set:ie("set"),delete:ie("delete"),clear:ie("clear"),forEach:re(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=oe(o,!1,!1),n[o]=oe(o,!0,!1),t[o]=oe(o,!1,!0),r[o]=oe(o,!0,!0)})),[e,n,t,r]}const[le,ue,se,ce]=ae();function fe(e,t){const n=t?e?ce:se:e?ue:le;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.RI)(n,o)&&o in t?n:t,o,i)}const de={get:fe(!1,!1)},pe={get:fe(!1,!0)},ve={get:fe(!0,!1)},he={get:fe(!0,!0)};const me=new WeakMap,ye=new WeakMap,ge=new WeakMap,be=new WeakMap;function we(e){return ke(e)?e:_e(e,!1,H,de,me)}function xe(e){return _e(e,!1,z,pe,ye)}function Se(e){return _e(e,!0,G,ve,ge)}function Ee(e){return _e(e,!0,J,he,be)}function _e(e,t,n,o,i){if(!(0,r.Kn)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const l=(u=e).__v_skip||!Object.isExtensible(u)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.W7)(u));var u;if(0===l)return e;const s=new Proxy(e,2===l?o:n);return i.set(e,s),s}function Oe(e){return ke(e)?Oe(e.__v_raw):!(!e||!e.__v_isReactive)}function ke(e){return!(!e||!e.__v_isReadonly)}function Ae(e){return!(!e||!e.__v_isShallow)}function je(e){return Oe(e)||ke(e)}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}function Ce(e){return(0,r.Nj)(e,"__v_skip",!0),e}const Re=e=>(0,r.Kn)(e)?we(e):e,Ie=e=>(0,r.Kn)(e)?Se(e):e;function Te(e){E&&m&&j((e=Pe(e)).dep||(e.dep=c()))}function Le(e,t){(e=Pe(e)).dep&&C(e.dep)}function Ne(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return Me(e,!1)}function De(e){return Me(e,!0)}function Me(e,t){return Ne(e)?e:new Ue(e,t)}class Ue{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pe(e),this._value=t?e:Re(e)}get value(){return Te(this),this._value}set value(e){e=this.__v_isShallow?e:Pe(e),(0,r.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Re(e),Le(this))}}function We(e){Le(e)}function Be(e){return Ne(e)?e.value:e}const Ve={get:(e,t,n)=>Be(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ne(o)&&!Ne(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function qe(e){return Oe(e)?e:new Proxy(e,Ve)}class He{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Te(this)),(()=>Le(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ge(e){return new He(e)}function ze(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Xe(e,n);return t}class Je{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Xe(e,t,n){const r=e[t];return Ne(r)?r:new Je(e,t,n)}class Ye{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new b(e,(()=>{this._dirty||(this._dirty=!0,Le(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Pe(this);return Te(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ke(e,t,n=!1){let o,i;const a=(0,r.mf)(e);a?(o=e,i=r.dG):(o=e.get,i=e.set);return new Ye(o,i,a||!i,n)}},6252:(e,t,n)=>{"use strict";n.d(t,{$d:()=>c,$y:()=>r.$y,Ah:()=>Je,B:()=>r.B,BK:()=>r.BK,Bj:()=>r.Bj,Bz:()=>ur,C3:()=>xn,C_:()=>o.C_,Cn:()=>G,EB:()=>r.EB,Eo:()=>Yt,F4:()=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g:()=>fn,wy:()=>$e,xv:()=>an,yT:()=>r.yT,yX:()=>fe,zw:()=>o.zw});var r=n(2262),o=n(3577);const i=[];function a(e,...t){(0,r.Jd)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)s(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${or(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${or(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...l(e.props),i]:[o+i]}(e))})),t}(a)),console.warn(...n)}(0,r.lk)()}function l(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...u(n,e[n]))})),n.length>3&&t.push(" ..."),t}function u(e,t,n){return(0,o.HD)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:(0,r.dq)(t)?(t=u(e,(0,r.IU)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.IU)(t),n?t:[`${e}=`,t])}function s(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){f(e,t,n)}return o}function c(e,t,n,r){if((0,o.mf)(e)){const i=s(e,t,n,r);return i&&(0,o.tI)(i)&&i.catch((e=>{f(e,t,n)})),i}const i=[];for(let o=0;o>>1;I(v[r])I(e)-I(t))),x=0;xnull==e.id?1/0:e.id;function T(e){p=!1,d=!0,C(e),v.sort(((e,t)=>I(e)-I(t)));o.dG;try{for(h=0;hL.emit(e,...t))),N=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{D(e,t)})),setTimeout((()=>{L||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,F=!0,N=[])}),3e3)}else F=!0,N=[]}function M(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.kT;let i=n;const a=t.startsWith("update:"),l=a&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:a}=r[e]||o.kT;a&&(i=n.map((e=>e.trim()))),t&&(i=n.map(o.He))}let u;let s=r[u=(0,o.hR)(t)]||r[u=(0,o.hR)((0,o._A)(t))];!s&&a&&(s=r[u=(0,o.hR)((0,o.rs)(t))]),s&&c(s,e,6,i);const f=r[u+"Once"];if(f){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,c(f,e,6,i)}}function U(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let l={},u=!1;if(!(0,o.mf)(e)){const r=e=>{const n=U(e,t,!0);n&&(u=!0,(0,o.l7)(l,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||u?((0,o.kJ)(a)?a.forEach((e=>l[e]=null)):(0,o.l7)(l,a),r.set(e,l),l):(r.set(e,null),null)}function W(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let B=null,V=null;function q(e){const t=B;return B=e,V=e&&e.type.__scopeId||null,t}function H(e){V=e}function G(){V=null}const z=e=>J;function J(e,t=B,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&hn(-1);const o=q(t),i=e(...n);return q(o),r._d&&hn(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function X(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[l],slots:u,attrs:s,emit:c,render:d,renderCache:p,data:v,setupState:h,ctx:m,inheritAttrs:y}=e;let g,b;const w=q(e);try{if(4&n.shapeFlag){const e=i||r;g=Tn(d.call(e,e,p,a,h,v,m)),b=s}else{const e=t;0,g=Tn(e.length>1?e(a,{attrs:s,slots:u,emit:c}):e(a,null)),b=t.props?s:K(s)}}catch(t){sn.length=0,f(t,e,1),g=kn(ln)}let x=g;if(b&&!1!==y){const e=Object.keys(b),{shapeFlag:t}=x;e.length&&7&t&&(l&&e.some(o.tR)&&(b=Z(b,l)),x=Pn(x,b))}return n.dirs&&(x=Pn(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),g=x,q(w),g}function Y(e){let t;for(let n=0;n{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},Z=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function $(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,te={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,l,u,s){null==e?function(e,t,n,r,o,i,a,l,u){const{p:s,o:{createElement:c}}=u,f=c("div"),d=e.suspense=re(e,o,r,t,f,n,i,a,l,u);s(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(ne(e,"onPending"),ne(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,i,a),ae(d,e.ssFallback)):d.resolve()}(t,n,r,o,i,a,l,u,s):function(e,t,n,r,o,i,a,l,{p:u,um:s,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:v,pendingBranch:h,isInFallback:m,isHydrating:y}=f;if(h)f.pendingBranch=d,wn(d,h)?(u(h,d,f.hiddenContainer,null,o,f,i,a,l),f.deps<=0?f.resolve():m&&(u(v,p,n,r,o,null,i,a,l),ae(f,p))):(f.pendingId++,y?(f.isHydrating=!1,f.activeBranch=h):s(h,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),m?(u(null,d,f.hiddenContainer,null,o,f,i,a,l),f.deps<=0?f.resolve():(u(v,p,n,r,o,null,i,a,l),ae(f,p))):v&&wn(d,v)?(u(v,d,n,r,o,f,i,a,l),f.resolve(!0)):(u(null,d,f.hiddenContainer,null,o,f,i,a,l),f.deps<=0&&f.resolve()));else if(v&&wn(d,v))u(v,d,n,r,o,f,i,a,l),ae(f,d);else if(ne(t,"onPending"),f.pendingBranch=d,f.pendingId++,u(null,d,f.hiddenContainer,null,o,f,i,a,l),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(p)}),e):0===e&&f.fallback(p)}}(e,t,n,r,o,a,l,u,s)},hydrate:function(e,t,n,r,o,i,a,l,u){const s=t.suspense=re(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,l,!0),c=u(e,s.pendingBranch=t.ssContent,n,s,i,a);0===s.deps&&s.resolve();return c},create:re,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=oe(r?n.default:n),e.ssFallback=r?oe(n.fallback):kn(ln)}};function ne(e,t){const n=e.props&&e.props[t];(0,o.mf)(n)&&n()}function re(e,t,n,r,i,a,l,u,s,c,d=!1){const{p,m:v,um:h,n:m,o:{parentNode:y,remove:g}}=c,b=(0,o.He)(e.props&&e.props.timeout),w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:i,parentComponent:a,container:l}=w;if(w.isHydrating)w.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===w.pendingId&&v(r,l,t,0)});let{anchor:t}=w;n&&(t=m(n),h(n,a,w,!0)),e||v(r,l,t,0)}ae(w,r),w.pendingBranch=null,w.isInFallback=!1;let u=w.parent,s=!1;for(;u;){if(u.pendingBranch){u.effects.push(...i),s=!0;break}u=u.parent}s||P(i),w.effects=[],ne(t,"onResolve")},fallback(e){if(!w.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:i}=w;ne(t,"onFallback");const a=m(n),l=()=>{w.isInFallback&&(p(null,e,o,a,r,null,i,u,s),ae(w,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=l),w.isInFallback=!0,h(n,r,null,!0),c||l()},move(e,t,n){w.activeBranch&&v(w.activeBranch,e,t,n),w.container=e},next:()=>w.activeBranch&&m(w.activeBranch),registerDep(e,t){const n=!!w.pendingBranch;n&&w.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{f(t,e,0)})).then((o=>{if(e.isUnmounted||w.isUnmounted||w.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Kn(e,o,!1),r&&(i.el=r);const a=!r&&e.subTree.el;t(e,i,y(r||e.subTree.el),r?null:m(e.subTree),w,l,s),a&&g(a),Q(e,i.el),n&&0==--w.deps&&w.resolve()}))},unmount(e,t){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,e,t),w.pendingBranch&&h(w.pendingBranch,n,e,t)}};return w}function oe(e){let t;if((0,o.mf)(e)){const n=vn&&e._c;n&&(e._d=!1,fn()),e=e(),n&&(e._d=!0,t=cn,dn())}if((0,o.kJ)(e)){const t=Y(e);0,e=t}return e=Tn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function ie(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):P(e)}function ae(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Q(r,o))}function le(e,t){if(Bn){let n=Bn.provides;const r=Bn.parent&&Bn.parent.provides;r===n&&(n=Bn.provides=Object.create(r)),n[e]=t}else 0}function ue(e,t,n=!1){const r=Bn||B;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}else 0}function se(e,t){return ve(e,null,t)}function ce(e,t){return ve(e,null,{flush:"post"})}function fe(e,t){return ve(e,null,{flush:"sync"})}const de={};function pe(e,t,n){return ve(e,t,n)}function ve(e,t,{immediate:n,deep:i,flush:a,onTrack:l,onTrigger:u}=o.kT){const f=Bn;let d,p,v=!1,h=!1;if((0,r.dq)(e)?(d=()=>e.value,v=(0,r.yT)(e)):(0,r.PG)(e)?(d=()=>e,i=!0):(0,o.kJ)(e)?(h=!0,v=e.some((e=>(0,r.PG)(e)||(0,r.yT)(e))),d=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?ye(e):(0,o.mf)(e)?s(e,f,2):void 0))):d=(0,o.mf)(e)?t?()=>s(e,f,2):()=>{if(!f||!f.isUnmounted)return p&&p(),c(e,f,3,[b])}:o.dG,t&&i){const e=d;d=()=>ye(e())}let b=e=>{p=E.onStop=()=>{s(e,f,4)}};if(Xn)return b=o.dG,t?n&&c(t,f,3,[d(),h?[]:void 0,b]):d(),o.dG;let w=h?[]:de;const x=()=>{if(E.active)if(t){const e=E.run();(i||v||(h?e.some(((e,t)=>(0,o.aU)(e,w[t]))):(0,o.aU)(e,w)))&&(p&&p(),c(t,f,3,[e,w===de?void 0:w,b]),w=e)}else E.run()};let S;x.allowRecurse=!!t,S="sync"===a?x:"post"===a?()=>Jt(x,f&&f.suspense):()=>function(e){j(e,y,m,g)}(x);const E=new r.qq(d,S);return t?n?x():w=E.run():"post"===a?Jt(E.run.bind(E),f&&f.suspense):E.run(),()=>{E.stop(),f&&f.scope&&(0,o.Od)(f.scope.effects,E)}}function he(e,t,n){const r=this.proxy,i=(0,o.HD)(e)?e.includes(".")?me(r,e):()=>r[e]:e.bind(r,r);let a;(0,o.mf)(t)?a=t:(a=t.handler,n=t);const l=Bn;qn(this);const u=ve(i,a.bind(r),n);return l?qn(l):Hn(),u}function me(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{ye(e,t)}));else if((0,o.PO)(e))for(const n in e)ye(e[n],t);return e}function ge(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qe((()=>{e.isMounted=!0})),ze((()=>{e.isUnmounting=!0})),e}const be=[Function,Array],we={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:be,onEnter:be,onAfterEnter:be,onEnterCancelled:be,onBeforeLeave:be,onLeave:be,onAfterLeave:be,onLeaveCancelled:be,onBeforeAppear:be,onAppear:be,onAfterAppear:be,onAppearCancelled:be},setup(e,{slots:t}){const n=Vn(),o=ge();let i;return()=>{const a=t.default&&ke(t.default(),!0);if(!a||!a.length)return;let l=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==ln){0,l=t,e=!0;break}}const u=(0,r.IU)(e),{mode:s}=u;if(o.isLeaving)return Ee(l);const c=_e(l);if(!c)return Ee(l);const f=Se(c,u,o,n);Oe(c,f);const d=n.subTree,p=d&&_e(d);let v=!1;const{getTransitionKey:h}=c.type;if(h){const e=h();void 0===i?i=e:e!==i&&(i=e,v=!0)}if(p&&p.type!==ln&&(!wn(c,p)||v)){const e=Se(p,u,o,n);if(Oe(p,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Ee(l);"in-out"===s&&c.type!==ln&&(e.delayLeave=(e,t,n)=>{xe(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=n})}return l}}};function xe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Se(e,t,n,r){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:u,onEnter:s,onAfterEnter:f,onEnterCancelled:d,onBeforeLeave:p,onLeave:v,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:y,onAppear:g,onAfterAppear:b,onAppearCancelled:w}=t,x=String(e.key),S=xe(n,e),E=(e,t)=>{e&&c(e,r,9,t)},_=(e,t)=>{const n=t[1];E(e,t),(0,o.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},O={mode:a,persisted:l,beforeEnter(t){let r=u;if(!n.isMounted){if(!i)return;r=y||u}t._leaveCb&&t._leaveCb(!0);const o=S[x];o&&wn(e,o)&&o.el._leaveCb&&o.el._leaveCb(),E(r,[t])},enter(e){let t=s,r=f,o=d;if(!n.isMounted){if(!i)return;t=g||s,r=b||f,o=w||d}let a=!1;const l=e._enterCb=t=>{a||(a=!0,E(t?o:r,[e]),O.delayedLeave&&O.delayedLeave(),e._enterCb=void 0)};t?_(t,[e,l]):l()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();E(p,[t]);let i=!1;const a=t._leaveCb=n=>{i||(i=!0,r(),E(n?m:h,[t]),t._leaveCb=void 0,S[o]===e&&delete S[o])};S[o]=e,v?_(v,[t,a]):a()},clone:e=>Se(e,t,n,r)};return O}function Ee(e){if(Re(e))return(e=Pn(e)).children=null,e}function _e(e){return Re(e)?e.children?e.children[0]:void 0:e}function Oe(e,t){6&e.shapeFlag&&e.component?Oe(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ke(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;e!!e.type.__asyncLoader;function Pe(e){(0,o.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:a=200,timeout:l,suspensible:u=!0,onError:s}=e;let c,d=null,p=0;const v=()=>{let e;return d||(e=d=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((p++,d=null,v()))),(()=>n(e)),p+1)}));throw e})).then((t=>e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return Ae({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return c},setup(){const e=Bn;if(c)return()=>Ce(c,e);const t=t=>{d=null,f(t,e,13,!i)};if(u&&e.suspense||Xn)return v().then((t=>()=>Ce(t,e))).catch((e=>(t(e),()=>i?kn(i,{error:e}):null)));const o=(0,r.iH)(!1),s=(0,r.iH)(),p=(0,r.iH)(!!a);return a&&setTimeout((()=>{p.value=!1}),a),null!=l&&setTimeout((()=>{if(!o.value&&!s.value){const e=new Error(`Async component timed out after ${l}ms.`);t(e),s.value=e}}),l),v().then((()=>{o.value=!0,e.parent&&Re(e.parent.vnode)&&k(e.parent.update)})).catch((e=>{t(e),s.value=e})),()=>o.value&&c?Ce(c,e):s.value&&i?kn(i,{error:s.value}):n&&!p.value?kn(n):void 0}})}function Ce(e,{vnode:{ref:t,props:n,children:r,shapeFlag:o},parent:i}){const a=kn(e,n,r);return a.ref=t,a}const Re=e=>e.type.__isKeepAlive,Ie={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Vn(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,a=new Set;let l=null;const u=n.suspense,{renderer:{p:s,m:c,um:f,o:{createElement:d}}}=r,p=d("div");function v(e){Me(e),f(e,n,u,!0)}function h(e){i.forEach(((t,n)=>{const r=rr(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=i.get(e);l&&t.type===l.type?l&&Me(l):v(t),i.delete(e),a.delete(e)}r.activate=(e,t,n,r,i)=>{const a=e.component;c(e,t,n,0,u),s(a.vnode,e,t,n,a,u,r,e.slotScopeIds,i),Jt((()=>{a.isDeactivated=!1,a.a&&(0,o.ir)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&Dn(t,a.parent,e)}),u)},r.deactivate=e=>{const t=e.component;c(e,p,null,1,u),Jt((()=>{t.da&&(0,o.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Dn(n,t.parent,e),t.isDeactivated=!0}),u)},pe((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>Te(e,t))),t&&h((e=>!Te(t,e)))}),{flush:"post",deep:!0});let y=null;const g=()=>{null!=y&&i.set(y,Ue(n.subTree))};return qe(g),Ge(g),ze((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,o=Ue(t);if(e.type!==o.type)v(e);else{Me(o);const e=o.component.da;e&&Jt(e,r)}}))})),()=>{if(y=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return l=null,n;if(!(bn(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return l=null,r;let o=Ue(r);const u=o.type,s=rr(je(o)?o.type.__asyncResolved||{}:u),{include:c,exclude:f,max:d}=e;if(c&&(!s||!Te(c,s))||f&&s&&Te(f,s))return l=o,r;const p=null==o.key?u:o.key,v=i.get(p);return o.el&&(o=Pn(o),128&r.shapeFlag&&(r.ssContent=o)),y=p,v?(o.el=v.el,o.component=v.component,o.transition&&Oe(o,o.transition),o.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),d&&a.size>parseInt(d,10)&&m(a.values().next().value)),o.shapeFlag|=256,l=o,ee(r.type)?r:o}}};function Te(e,t){return(0,o.kJ)(e)?e.some((e=>Te(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Le(e,t){Fe(e,"a",t)}function Ne(e,t){Fe(e,"da",t)}function Fe(e,t,n=Bn){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(We(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Re(e.parent.vnode)&&De(r,t,n,e),e=e.parent}}function De(e,t,n,r){const i=We(t,e,r,!0);Je((()=>{(0,o.Od)(r[t],i)}),n)}function Me(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Ue(e){return 128&e.shapeFlag?e.ssContent:e}function We(e,t,n=Bn,o=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)(),qn(n);const i=c(t,n,e,o);return Hn(),(0,r.lk)(),i});return o?i.unshift(a):i.push(a),a}}const Be=e=>(t,n=Bn)=>(!Xn||"sp"===e)&&We(e,t,n),Ve=Be("bm"),qe=Be("m"),He=Be("bu"),Ge=Be("u"),ze=Be("bum"),Je=Be("um"),Xe=Be("sp"),Ye=Be("rtg"),Ke=Be("rtc");function Ze(e,t=Bn){We("ec",e,t)}function $e(e,t){const n=B;if(null===n)return e;const r=tr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r!bn(e)||e.type!==ln&&!(e.type===on&&!ct(e.children))))?e:null}function ft(e){const t={};for(const n in e)t[(0,o.hR)(n)]=e[n];return t}const dt=e=>e?Gn(e)?tr(e)||e.proxy:dt(e.parent):null,pt=(0,o.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dt(e.parent),$root:e=>dt(e.root),$emit:e=>e.emit,$options:e=>wt(e),$forceUpdate:e=>e.f||(e.f=()=>k(e.update)),$nextTick:e=>e.n||(e.n=O.bind(e.proxy)),$watch:e=>he.bind(e)}),vt={get({_:e},t){const{ctx:n,setupState:i,data:a,props:l,accessCache:u,type:s,appContext:c}=e;let f;if("$"!==t[0]){const r=u[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(i!==o.kT&&(0,o.RI)(i,t))return u[t]=1,i[t];if(a!==o.kT&&(0,o.RI)(a,t))return u[t]=2,a[t];if((f=e.propsOptions[0])&&(0,o.RI)(f,t))return u[t]=3,l[t];if(n!==o.kT&&(0,o.RI)(n,t))return u[t]=4,n[t];mt&&(u[t]=0)}}const d=pt[t];let p,v;return d?("$attrs"===t&&(0,r.j)(e,"get",t),d(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==o.kT&&(0,o.RI)(n,t)?(u[t]=4,n[t]):(v=c.config.globalProperties,(0,o.RI)(v,t)?v[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return i!==o.kT&&(0,o.RI)(i,t)?(i[t]=n,!0):r!==o.kT&&(0,o.RI)(r,t)?(r[t]=n,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},l){let u;return!!n[l]||e!==o.kT&&(0,o.RI)(e,l)||t!==o.kT&&(0,o.RI)(t,l)||(u=a[0])&&(0,o.RI)(u,l)||(0,o.RI)(r,l)||(0,o.RI)(pt,l)||(0,o.RI)(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const ht=(0,o.l7)({},vt,{get(e,t){if(t!==Symbol.unscopables)return vt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,o.e1)(t)});let mt=!0;function yt(e){const t=wt(e),n=e.proxy,i=e.ctx;mt=!1,t.beforeCreate&>(t.beforeCreate,e,"bc");const{data:a,computed:l,methods:u,watch:s,provide:c,inject:f,created:d,beforeMount:p,mounted:v,beforeUpdate:h,updated:m,activated:y,deactivated:g,beforeDestroy:b,beforeUnmount:w,destroyed:x,unmounted:S,render:E,renderTracked:_,renderTriggered:O,errorCaptured:k,serverPrefetch:A,expose:j,inheritAttrs:P,components:C,directives:R,filters:I}=t;if(f&&function(e,t,n=o.dG,i=!1){(0,o.kJ)(e)&&(e=_t(e));for(const n in e){const a=e[n];let l;l=(0,o.Kn)(a)?"default"in a?ue(a.from||n,a.default,!0):ue(a.from||n):ue(a),(0,r.dq)(l)&&i?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e}):t[n]=l}}(f,i,null,e.appContext.config.unwrapInjectedRef),u)for(const e in u){const t=u[e];(0,o.mf)(t)&&(i[e]=t.bind(n))}if(a){0;const t=a.call(n,n);0,(0,o.Kn)(t)&&(e.data=(0,r.qj)(t))}if(mt=!0,l)for(const e in l){const t=l[e],r=(0,o.mf)(t)?t.bind(n,n):(0,o.mf)(t.get)?t.get.bind(n,n):o.dG;0;const a=!(0,o.mf)(t)&&(0,o.mf)(t.set)?t.set.bind(n):o.dG,u=ar({get:r,set:a});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>u.value,set:e=>u.value=e})}if(s)for(const e in s)bt(s[e],i,n,e);if(c){const e=(0,o.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{le(t,e[t])}))}function T(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&>(d,e,"c"),T(Ve,p),T(qe,v),T(He,h),T(Ge,m),T(Le,y),T(Ne,g),T(Ze,k),T(Ke,_),T(Ye,O),T(ze,w),T(Je,S),T(Xe,A),(0,o.kJ)(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});E&&e.render===o.dG&&(e.render=E),null!=P&&(e.inheritAttrs=P),C&&(e.components=C),R&&(e.directives=R)}function gt(e,t,n){c((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function bt(e,t,n,r){const i=r.includes(".")?me(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&pe(i,n)}else if((0,o.mf)(e))pe(i,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>bt(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&pe(i,r,e)}else 0}function wt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let u;return l?u=l:o.length||n||r?(u={},o.length&&o.forEach((e=>xt(u,e,a,!0))),xt(u,t,a)):u=t,i.set(t,u),u}function xt(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&xt(e,i,n,!0),o&&o.forEach((t=>xt(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=St[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const St={data:Et,props:kt,emits:kt,methods:kt,computed:kt,beforeCreate:Ot,created:Ot,beforeMount:Ot,mounted:Ot,beforeUpdate:Ot,updated:Ot,beforeDestroy:Ot,beforeUnmount:Ot,destroyed:Ot,unmounted:Ot,activated:Ot,deactivated:Ot,errorCaptured:Ot,serverPrefetch:Ot,components:kt,directives:kt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,o.l7)(Object.create(null),e);for(const r in t)n[r]=Ot(e[r],t[r]);return n},provide:Et,inject:function(e,t){return kt(_t(e),_t(t))}};function Et(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function _t(e){if((0,o.kJ)(e)){const t={};for(let n=0;n{s=!0;const[n,r]=Pt(e,t,!0);(0,o.l7)(l,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!s)return r.set(e,o.Z6),o.Z6;if((0,o.kJ)(a))for(let e=0;e-1,r[1]=n<0||e-1||(0,o.RI)(r,"default"))&&u.push(t)}}}}const c=[l,u];return r.set(e,c),c}function Ct(e){return"$"!==e[0]}function Rt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function It(e,t){return Rt(e)===Rt(t)}function Tt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>It(t,e))):(0,o.mf)(t)&&It(t,e)?0:-1}const Lt=e=>"_"===e[0]||"$stable"===e,Nt=e=>(0,o.kJ)(e)?e.map(Tn):[Tn(e)],Ft=(e,t,n)=>{if(t._n)return t;const r=J(((...e)=>Nt(t(...e))),n);return r._c=!1,r},Dt=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Lt(n))continue;const i=e[n];if((0,o.mf)(i))t[n]=Ft(0,i,r);else if(null!=i){0;const e=Nt(i);t[n]=()=>e}}},Mt=(e,t)=>{const n=Nt(t);e.slots.default=()=>n};function Ut(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Wt=0;function Bt(e,t){return function(n,r=null){(0,o.mf)(n)||(n=Object.assign({},n)),null==r||(0,o.Kn)(r)||(r=null);const i=Ut(),a=new Set;let l=!1;const u=i.app={_uid:Wt++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Er,get config(){return i.config},set config(e){0},use:(e,...t)=>(a.has(e)||(e&&(0,o.mf)(e.install)?(a.add(e),e.install(u,...t)):(0,o.mf)(e)&&(a.add(e),e(u,...t))),u),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),u),component:(e,t)=>t?(i.components[e]=t,u):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,u):i.directives[e],mount(o,a,s){if(!l){0;const c=kn(n,r);return c.appContext=i,a&&t?t(c,o):e(c,o,s),l=!0,u._container=o,o.__vue_app__=u,tr(c.component)||c.component.proxy}},unmount(){l&&(e(null,u._container),delete u._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,u)};return u}}function Vt(e,t,n,i,a=!1){if((0,o.kJ)(e))return void e.forEach(((e,r)=>Vt(e,t&&((0,o.kJ)(t)?t[r]:t),n,i,a)));if(je(i)&&!a)return;const l=4&i.shapeFlag?tr(i.component)||i.component.proxy:i.el,u=a?null:l,{i:c,r:f}=e;const d=t&&t.r,p=c.refs===o.kT?c.refs={}:c.refs,v=c.setupState;if(null!=d&&d!==f&&((0,o.HD)(d)?(p[d]=null,(0,o.RI)(v,d)&&(v[d]=null)):(0,r.dq)(d)&&(d.value=null)),(0,o.mf)(f))s(f,c,12,[u,p]);else{const t=(0,o.HD)(f),i=(0,r.dq)(f);if(t||i){const r=()=>{if(e.f){const n=t?p[f]:f.value;a?(0,o.kJ)(n)&&(0,o.Od)(n,l):(0,o.kJ)(n)?n.includes(l)||n.push(l):t?(p[f]=[l],(0,o.RI)(v,f)&&(v[f]=p[f])):(f.value=[l],e.k&&(p[e.k]=f.value))}else t?(p[f]=u,(0,o.RI)(v,f)&&(v[f]=u)):i&&(f.value=u,e.k&&(p[e.k]=u))};u?(r.id=-1,Jt(r,n)):r()}else 0}}let qt=!1;const Ht=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Gt=e=>8===e.nodeType;function zt(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:l,remove:u,insert:s,createComment:c}}=e,f=(n,r,o,u,c,y=!1)=>{const g=Gt(n)&&"["===n.data,b=()=>h(n,r,o,u,c,g),{type:w,ref:x,shapeFlag:S,patchFlag:E}=r,_=n.nodeType;r.el=n,-2===E&&(y=!1,r.dynamicChildren=null);let O=null;switch(w){case an:3!==_?""===r.children?(s(r.el=i(""),l(n),n),O=n):O=b():(n.data!==r.children&&(qt=!0,n.data=r.children),O=a(n));break;case ln:O=8!==_||g?b():a(n);break;case un:if(1===_||3===_){O=n;const e=!r.children.length;for(let t=0;t{l=l||!!t.dynamicChildren;const{type:s,props:c,patchFlag:f,shapeFlag:d,dirs:v}=t,h="input"===s&&v||"option"===s;if(h||-1!==f){if(v&&Qe(t,null,n,"created"),c)if(h||!l||48&f)for(const t in c)(h&&t.endsWith("value")||(0,o.F7)(t)&&!(0,o.Gg)(t))&&r(e,t,null,c[t],!1,void 0,n);else c.onClick&&r(e,"onClick",null,c.onClick,!1,void 0,n);let s;if((s=c&&c.onVnodeBeforeMount)&&Dn(s,n,t),v&&Qe(t,null,n,"beforeMount"),((s=c&&c.onVnodeMounted)||v)&&ie((()=>{s&&Dn(s,n,t),v&&Qe(t,null,n,"mounted")}),i),16&d&&(!c||!c.innerHTML&&!c.textContent)){let r=p(e.firstChild,t,e,n,i,a,l);for(;r;){qt=!0;const e=r;r=r.nextSibling,u(e)}}else 8&d&&e.textContent!==t.children&&(qt=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,i,a,l)=>{l=l||!!t.dynamicChildren;const u=t.children,s=u.length;for(let t=0;t{const{slotScopeIds:u}=t;u&&(o=o?o.concat(u):u);const f=l(e),d=p(a(e),t,f,n,r,o,i);return d&&Gt(d)&&"]"===d.data?a(t.anchor=d):(qt=!0,s(t.anchor=c("]"),f,d),d)},h=(e,t,r,o,i,s)=>{if(qt=!0,t.el=null,s){const t=m(e);for(;;){const n=a(e);if(!n||n===t)break;u(n)}}const c=a(e),f=l(e);return u(e),n(null,t,f,c,r,o,Ht(f),i),c},m=e=>{let t=0;for(;e;)if((e=a(e))&&Gt(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return a(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),R(),void(t._vnode=e);qt=!1,f(t.firstChild,e,null,null,null),R(),t._vnode=e,qt&&console.error("Hydration completed but contains mismatches.")},f]}const Jt=ie;function Xt(e){return Kt(e)}function Yt(e){return Kt(e,zt)}function Kt(e,t){(0,o.E9)().__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:l,createText:u,createComment:s,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=o.dG,cloneNode:y,insertStaticContent:g}=e,b=(e,t,n,r=null,o=null,i=null,a=!1,l=null,u=!!t.dynamicChildren)=>{if(e===t)return;e&&!wn(e,t)&&(r=Z(e),G(e,o,i,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);const{type:s,ref:c,shapeFlag:f}=t;switch(s){case an:w(e,t,n,r);break;case ln:x(e,t,n,r);break;case un:null==e&&S(t,n,r,a);break;case on:L(e,t,n,r,o,i,a,l,u);break;default:1&f?_(e,t,n,r,o,i,a,l,u):6&f?N(e,t,n,r,o,i,a,l,u):(64&f||128&f)&&s.process(e,t,n,r,o,i,a,l,u,te)}null!=c&&o&&Vt(c,e&&e.ref,i,t||e,!t)},w=(e,t,r,o)=>{if(null==e)n(t.el=u(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},x=(e,t,r,o)=>{null==e?n(t.el=s(t.children||""),r,o):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),i(e),e=n;i(t)},_=(e,t,n,r,o,i,a,l,u)=>{a=a||"svg"===t.type,null==e?O(t,n,r,o,i,a,l,u):P(e,t,o,i,a,l,u)},O=(e,t,r,i,u,s,c,d)=>{let p,v;const{type:h,props:m,shapeFlag:g,transition:b,patchFlag:w,dirs:x}=e;if(e.el&&void 0!==y&&-1===w)p=e.el=y(e.el);else{if(p=e.el=l(e.type,s,m&&m.is,m),8&g?f(p,e.children):16&g&&j(e.children,p,null,i,u,s&&"foreignObject"!==h,c,d),x&&Qe(e,null,i,"created"),m){for(const t in m)"value"===t||(0,o.Gg)(t)||a(p,t,null,m[t],s,e.children,i,u,K);"value"in m&&a(p,"value",null,m.value),(v=m.onVnodeBeforeMount)&&Dn(v,i,e)}A(p,e,e.scopeId,c,i)}x&&Qe(e,null,i,"beforeMount");const S=(!u||u&&!u.pendingBranch)&&b&&!b.persisted;S&&b.beforeEnter(p),n(p,t,r),((v=m&&m.onVnodeMounted)||S||x)&&Jt((()=>{v&&Dn(v,i,e),S&&b.enter(p),x&&Qe(e,null,i,"mounted")}),u)},A=(e,t,n,r,o)=>{if(n&&m(e,n),r)for(let t=0;t{for(let s=u;s{const s=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const v=e.props||o.kT,h=t.props||o.kT;let m;n&&Zt(n,!1),(m=h.onVnodeBeforeUpdate)&&Dn(m,n,t,e),p&&Qe(t,e,n,"beforeUpdate"),n&&Zt(n,!0);const y=i&&"foreignObject"!==t.type;if(d?I(e.dynamicChildren,d,s,n,r,y,l):u||B(e,t,s,null,n,r,y,l,!1),c>0){if(16&c)T(s,t,v,h,n,r,i);else if(2&c&&v.class!==h.class&&a(s,"class",null,h.class,i),4&c&&a(s,"style",v.style,h.style,i),8&c){const o=t.dynamicProps;for(let t=0;t{m&&Dn(m,n,t,e),p&&Qe(t,e,n,"updated")}),r)},I=(e,t,n,r,o,i,a)=>{for(let l=0;l{if(n!==r){for(const s in r){if((0,o.Gg)(s))continue;const c=r[s],f=n[s];c!==f&&"value"!==s&&a(e,s,f,c,u,t.children,i,l,K)}if(n!==o.kT)for(const s in n)(0,o.Gg)(s)||s in r||a(e,s,n[s],null,u,t.children,i,l,K);"value"in r&&a(e,"value",n.value,r.value)}},L=(e,t,r,o,i,a,l,s,c)=>{const f=t.el=e?e.el:u(""),d=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:v,slotScopeIds:h}=t;h&&(s=s?s.concat(h):h),null==e?(n(f,r,o),n(d,r,o),j(t.children,r,d,i,a,l,s,c)):p>0&&64&p&&v&&e.dynamicChildren?(I(e.dynamicChildren,v,r,i,a,l,s),(null!=t.key||i&&t===i.subTree)&&$t(e,t,!0)):B(e,t,r,d,i,a,l,s,c)},N=(e,t,n,r,o,i,a,l,u)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,u):F(t,n,r,o,i,a,u):D(e,t,u)},F=(e,t,n,r,o,i,a)=>{const l=e.component=Wn(e,r,o);if(Re(e)&&(l.ctx.renderer=te),Yn(l),l.asyncDep){if(o&&o.registerDep(l,M),!e.el){const e=l.subTree=kn(ln);x(null,e,t,n)}}else M(l,e,t,n,o,i,a)},D=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:u}=t,s=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&u>=0))return!(!o&&!l||l&&l.$stable)||r!==a&&(r?!a||$(r,a,s):!!a);if(1024&u)return!0;if(16&u)return r?$(r,a,s):!!a;if(8&u){const e=t.dynamicProps;for(let t=0;th&&v.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},M=(e,t,n,i,a,l,u)=>{const s=e.effect=new r.qq((()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:s,vnode:c}=e,f=n;0,Zt(e,!1),n?(n.el=c.el,U(e,n,u)):n=c,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Dn(t,s,n,c),Zt(e,!0);const p=X(e);0;const v=e.subTree;e.subTree=p,b(v,p,d(v.el),Z(v),e,a,l),n.el=p.el,null===f&&Q(e,p.el),i&&Jt(i,a),(t=n.props&&n.props.onVnodeUpdated)&&Jt((()=>Dn(t,s,n,c)),a)}else{let r;const{el:u,props:s}=t,{bm:c,m:f,parent:d}=e,p=je(t);if(Zt(e,!1),c&&(0,o.ir)(c),!p&&(r=s&&s.onVnodeBeforeMount)&&Dn(r,d,t),Zt(e,!0),u&&re){const n=()=>{e.subTree=X(e),re(u,e.subTree,e,a,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const r=e.subTree=X(e);0,b(null,r,n,i,e,a,l),t.el=r.el}if(f&&Jt(f,a),!p&&(r=s&&s.onVnodeMounted)){const e=t;Jt((()=>Dn(r,d,e)),a)}(256&t.shapeFlag||d&&je(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Jt(e.a,a),e.isMounted=!0,t=n=i=null}}),(()=>k(c)),e.scope),c=e.update=()=>s.run();c.id=e.uid,Zt(e,!0),c()},U=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:a,attrs:l,vnode:{patchFlag:u}}=e,s=(0,r.IU)(a),[c]=e.propsOptions;let f=!1;if(!(i||u>0)||16&u){let r;At(e,t,a,l)&&(f=!0);for(const i in s)t&&((0,o.RI)(t,i)||(r=(0,o.rs)(i))!==i&&(0,o.RI)(t,r))||(c?!n||void 0===n[i]&&void 0===n[r]||(a[i]=jt(c,s,i,void 0,e,!0)):delete a[i]);if(l!==s)for(const e in l)t&&(0,o.RI)(t,e)||(delete l[e],f=!0)}else if(8&u){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let a=!0,l=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,o.l7)(i,t),n||1!==e||delete i._):(a=!t.$stable,Dt(t,i)),l=t}else t&&(Mt(e,t),l={default:1});if(a)for(const e in i)Lt(e)||e in l||delete i[e]})(e,t.children,n),(0,r.Jd)(),C(void 0,e.update),(0,r.lk)()},B=(e,t,n,r,o,i,a,l,u=!1)=>{const s=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:v}=t;if(p>0){if(128&p)return void q(s,d,n,r,o,i,a,l,u);if(256&p)return void V(s,d,n,r,o,i,a,l,u)}8&v?(16&c&&K(s,o,i),d!==s&&f(n,d)):16&c?16&v?q(s,d,n,r,o,i,a,l,u):K(s,o,i,!0):(8&c&&f(n,""),16&v&&j(d,n,r,o,i,a,l,u))},V=(e,t,n,r,i,a,l,u,s)=>{e=e||o.Z6,t=t||o.Z6;const c=e.length,f=t.length,d=Math.min(c,f);let p;for(p=0;pf?K(e,i,a,!0,!1,d):j(t,n,r,i,a,l,u,s,d)},q=(e,t,n,r,i,a,l,u,s)=>{let c=0;const f=t.length;let d=e.length-1,p=f-1;for(;c<=d&&c<=p;){const r=e[c],o=t[c]=s?Ln(t[c]):Tn(t[c]);if(!wn(r,o))break;b(r,o,n,null,i,a,l,u,s),c++}for(;c<=d&&c<=p;){const r=e[d],o=t[p]=s?Ln(t[p]):Tn(t[p]);if(!wn(r,o))break;b(r,o,n,null,i,a,l,u,s),d--,p--}if(c>d){if(c<=p){const e=p+1,o=ep)for(;c<=d;)G(e[c],i,a,!0),c++;else{const v=c,h=c,m=new Map;for(c=h;c<=p;c++){const e=t[c]=s?Ln(t[c]):Tn(t[c]);null!=e.key&&m.set(e.key,c)}let y,g=0;const w=p-h+1;let x=!1,S=0;const E=new Array(w);for(c=0;c=w){G(r,i,a,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(y=h;y<=p;y++)if(0===E[y-h]&&wn(r,t[y])){o=y;break}void 0===o?G(r,i,a,!0):(E[o-h]=c+1,o>=S?S=o:x=!0,b(r,t[o],n,null,i,a,l,u,s),g++)}const _=x?function(e){const t=e.slice(),n=[0];let r,o,i,a,l;const u=e.length;for(r=0;r>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];for(;i-- >0;)n[i]=a,a=t[a];return n}(E):o.Z6;for(y=_.length-1,c=w-1;c>=0;c--){const e=h+c,o=t[e],d=e+1{const{el:a,type:l,transition:u,children:s,shapeFlag:c}=e;if(6&c)return void H(e.component.subTree,t,r,o);if(128&c)return void e.suspense.move(t,r,o);if(64&c)return void l.move(e,t,r,te);if(l===on){n(a,t,r);for(let e=0;e{let i;for(;e&&e!==t;)i=p(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);if(2!==o&&1&c&&u)if(0===o)u.beforeEnter(a),n(a,t,r),Jt((()=>u.enter(a)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=u,l=()=>n(a,t,r),s=()=>{e(a,(()=>{l(),i&&i()}))};o?o(a,l,s):s()}else n(a,t,r)},G=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:l,children:u,dynamicChildren:s,shapeFlag:c,patchFlag:f,dirs:d}=e;if(null!=l&&Vt(l,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&d,v=!je(e);let h;if(v&&(h=a&&a.onVnodeBeforeUnmount)&&Dn(h,t,e),6&c)Y(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&Qe(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,te,r):s&&(i!==on||f>0&&64&f)?K(s,t,n,!1,!0):(i===on&&384&f||!o&&16&c)&&K(u,t,n),r&&z(e)}(v&&(h=a&&a.onVnodeUnmounted)||p)&&Jt((()=>{h&&Dn(h,t,e),p&&Qe(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===on)return void J(n,r);if(t===un)return void E(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},J=(e,t)=>{let n;for(;e!==t;)n=p(e),i(e),e=n;i(t)},Y=(e,t,n)=>{const{bum:r,scope:i,update:a,subTree:l,um:u}=e;r&&(0,o.ir)(r),i.stop(),a&&(a.active=!1,G(l,e,t,n)),u&&Jt(u,t),Jt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a6&e.shapeFlag?Z(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),R(),t._vnode=e},te={p:b,um:G,m:H,r:z,mt:F,mc:j,pc:B,pbc:I,n:Z,o:e};let ne,re;return t&&([ne,re]=t(te)),{render:ee,hydrate:ne,createApp:Bt(ee,ne)}}function Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $t(e,t,n=!1){const r=e.children,i=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(i))for(let e=0;ee&&(e.disabled||""===e.disabled),en=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,tn=(e,t)=>{const n=e&&e.to;if((0,o.HD)(n)){if(t){const e=t(n);return e}return null}return n};function nn(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:a,anchor:l,shapeFlag:u,children:s,props:c}=e,f=2===i;if(f&&r(a,t,n),(!f||Qt(c))&&16&u)for(let e=0;e{16&g&&c(b,e,t,o,i,a,l,u)};y?m(n,s):f&&m(f,d)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,p=t.targetAnchor=e.targetAnchor,h=Qt(e.props),m=h?n:c,g=h?r:p;if(a=a||en(c),w?(d(e.dynamicChildren,w,m,o,i,a,l),$t(e,t,!0)):u||f(e,t,m,g,o,i,a,l,!1),y)h||nn(t,n,r,s,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=tn(t.props,v);e&&nn(t,e,null,s,0)}else h&&nn(t,c,p,s,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:u,anchor:s,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),(a||!Qt(d))&&(i(s),16&l))for(let e=0;e0?cn||o.Z6:null,dn(),vn>0&&cn&&cn.push(e),e}function yn(e,t,n,r,o,i){return mn(On(e,t,n,r,o,i,!0))}function gn(e,t,n,r,o){return mn(kn(e,t,n,r,o,!0))}function bn(e){return!!e&&!0===e.__v_isVNode}function wn(e,t){return e.type===t.type&&e.key===t.key}function xn(e){pn=e}const Sn="__vInternal",En=({key:e})=>null!=e?e:null,_n=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||(0,r.dq)(e)||(0,o.mf)(e)?{i:B,r:e,k:t,f:!!n}:e:null;function On(e,t=null,n=null,r=0,i=null,a=(e===on?0:1),l=!1,u=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&En(t),ref:t&&_n(t),scopeId:V,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return u?(Nn(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=(0,o.HD)(n)?8:16),vn>0&&!l&&cn&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&cn.push(s),s}const kn=An;function An(e,t=null,n=null,i=0,a=null,l=!1){if(e&&e!==nt||(e=ln),bn(e)){const r=Pn(e,t,!0);return n&&Nn(r,n),vn>0&&!l&&cn&&(6&r.shapeFlag?cn[cn.indexOf(e)]=r:cn.push(r)),r.patchFlag|=-2,r}if(ir(e)&&(e=e.__vccOpts),t){t=jn(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&((0,r.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}return On(e,t,n,i,a,(0,o.HD)(e)?1:ee(e)?128:(e=>e.__isTeleport)(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0,l,!0)}function jn(e){return e?(0,r.X3)(e)||Sn in e?(0,o.l7)({},e):e:null}function Pn(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:l}=e,u=t?Fn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&En(u),ref:t&&t.ref?n&&i?(0,o.kJ)(i)?i.concat(_n(t)):[i,_n(t)]:_n(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==on?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pn(e.ssContent),ssFallback:e.ssFallback&&Pn(e.ssFallback),el:e.el,anchor:e.anchor}}function Cn(e=" ",t=0){return kn(an,null,e,t)}function Rn(e,t){const n=kn(un,null,e);return n.staticCount=t,n}function In(e="",t=!1){return t?(fn(),gn(ln,null,e)):kn(ln,null,e)}function Tn(e){return null==e||"boolean"==typeof e?kn(ln):(0,o.kJ)(e)?kn(on,null,e.slice()):"object"==typeof e?Ln(e):kn(an,null,String(e))}function Ln(e){return null===e.el||e.memo?e:Pn(e)}function Nn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Nn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Sn in t?3===r&&B&&(1===B.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=B}}else(0,o.mf)(t)?(t={default:t,_ctx:B},n=32):(t=String(t),64&r?(n=16,t=[Cn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fn(...e){const t={};for(let n=0;nBn||B,qn=e=>{Bn=e,e.scope.on()},Hn=()=>{Bn&&Bn.scope.off(),Bn=null};function Gn(e){return 4&e.vnode.shapeFlag}let zn,Jn,Xn=!1;function Yn(e,t=!1){Xn=t;const{props:n,children:i}=e.vnode,a=Gn(e);!function(e,t,n,i=!1){const a={},l={};(0,o.Nj)(l,Sn,1),e.propsDefaults=Object.create(null),At(e,t,a,l);for(const t in e.propsOptions[0])t in a||(a[t]=void 0);n?e.props=i?a:(0,r.Um)(a):e.type.props?e.props=a:e.props=l,e.attrs=l}(e,n,a,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,o.Nj)(t,"_",n)):Dt(t,e.slots={})}else e.slots={},t&&Mt(e,t);(0,o.Nj)(e.slots,Sn,1)})(e,i);const l=a?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,vt)),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?er(e):null;qn(e),(0,r.Jd)();const a=s(i,e,0,[e.props,n]);if((0,r.lk)(),Hn(),(0,o.tI)(a)){if(a.then(Hn,Hn),t)return a.then((n=>{Kn(e,n,t)})).catch((t=>{f(t,e,0)}));e.asyncDep=a}else Kn(e,a,t)}else Qn(e,t)}(e,t):void 0;return Xn=!1,l}function Kn(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,r.WL)(t)),Qn(e,n)}function Zn(e){zn=e,Jn=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ht))}}const $n=()=>!zn;function Qn(e,t,n){const i=e.type;if(!e.render){if(!t&&zn&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=i,u=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:a},r),l);i.render=zn(t,u)}}e.render=i.render||o.dG,Jn&&Jn(e)}qn(e),(0,r.Jd)(),yt(e),(0,r.lk)(),Hn()}function er(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>((0,r.j)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function tr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in pt?pt[n](e):void 0}))}const nr=/(?:^|[-_])(\w)/g;function rr(e,t=!0){return(0,o.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function or(e,t,n=!1){let r=rr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(nr,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function ir(e){return(0,o.mf)(e)&&"__vccOpts"in e}const ar=(e,t)=>(0,r.Fl)(e,t,Xn);function lr(){return null}function ur(){return null}function sr(e){0}function cr(e,t){return null}function fr(){return pr().slots}function dr(){return pr().attrs}function pr(){const e=Vn();return e.setupContext||(e.setupContext=er(e))}function vr(e,t){const n=(0,o.kJ)(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const r=n[e];r?(0,o.kJ)(r)||(0,o.mf)(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function hr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function mr(e){const t=Vn();let n=e();return Hn(),(0,o.tI)(n)&&(n=n.catch((e=>{throw qn(t),e}))),[n,()=>qn(t)]}function yr(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?bn(t)?kn(e,null,[t]):kn(e,t):kn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&bn(n)&&(n=[n]),kn(e,t,n))}const gr=Symbol(""),br=()=>{{const e=ue(gr);return e||a("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function wr(){return void 0}function xr(e,t,n,r){const o=n[r];if(o&&Sr(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function Sr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&cn&&cn.push(e),!0}const Er="3.2.37",_r={createComponentInstance:Wn,setupComponent:Yn,renderComponentRoot:X,setCurrentRenderingInstance:q,isVNode:bn,normalizeVNode:Tn},Or=null,kr=null},9963:(e,t,n)=>{"use strict";n.d(t,{$d:()=>o.$d,$y:()=>o.$y,Ah:()=>_,B:()=>o.B,BK:()=>o.BK,Bj:()=>o.Bj,Bz:()=>o.Bz,C3:()=>o.C3,C_:()=>o.C_,Cn:()=>o.Cn,D2:()=>be,EB:()=>o.EB,Eo:()=>o.Eo,F4:()=>o.F4,F8:()=>we,FN:()=>o.FN,Fl:()=>o.Fl,G:()=>o.G,G2:()=>le,HX:()=>o.HX,HY:()=>o.HY,Ho:()=>o.Ho,IU:()=>o.IU,JJ:()=>o.JJ,Jd:()=>o.Jd,KU:()=>o.KU,Ko:()=>o.Ko,LL:()=>o.LL,MW:()=>E,MX:()=>o.MX,Mr:()=>o.Mr,Nd:()=>Te,Nv:()=>o.Nv,OT:()=>o.OT,Ob:()=>o.Ob,P$:()=>o.P$,PG:()=>o.PG,Q2:()=>o.Q2,Q6:()=>o.Q6,RC:()=>o.RC,Rh:()=>o.Rh,Rr:()=>o.Rr,S3:()=>o.S3,SK:()=>o.Ah,SU:()=>o.SU,U2:()=>o.U2,Uc:()=>o.Uc,Uk:()=>o.Uk,Um:()=>o.Um,Us:()=>o.Us,Vh:()=>o.Vh,W3:()=>Z,WI:()=>o.WI,WL:()=>o.WL,WY:()=>o.WY,Wm:()=>o.Wm,X3:()=>o.X3,XI:()=>o.XI,Xl:()=>o.Xl,Xn:()=>o.Xn,Y1:()=>o.Y1,Y3:()=>o.Y3,Y8:()=>o.Y8,YP:()=>o.YP,YS:()=>o.YS,YZ:()=>de,Yq:()=>o.Yq,ZB:()=>je,ZK:()=>o.ZK,ZM:()=>o.ZM,Zq:()=>o.Zq,_:()=>o._,_A:()=>o._A,a2:()=>k,aZ:()=>o.aZ,b9:()=>o.b9,bM:()=>ue,bT:()=>o.bT,bv:()=>o.bv,cE:()=>o.cE,d1:()=>o.d1,dD:()=>o.dD,dG:()=>o.dG,dl:()=>o.dl,dq:()=>o.dq,e8:()=>ie,ec:()=>o.ec,eq:()=>o.eq,f3:()=>o.f3,fb:()=>A,h:()=>o.h,hR:()=>o.hR,i8:()=>o.i8,iD:()=>o.iD,iH:()=>o.iH,iM:()=>ye,ic:()=>o.ic,j4:()=>o.j4,j5:()=>o.j5,kC:()=>o.kC,kq:()=>o.kq,l1:()=>o.l1,lA:()=>o.lA,lR:()=>o.lR,m0:()=>o.m0,mW:()=>o.mW,mv:()=>o.mv,mx:()=>o.mx,n4:()=>o.n4,nK:()=>o.nK,nQ:()=>o.nQ,nZ:()=>o.nZ,nr:()=>oe,oR:()=>o.oR,of:()=>o.of,p1:()=>o.p1,qG:()=>o.qG,qZ:()=>o.qZ,qb:()=>o.qb,qj:()=>o.qj,qq:()=>o.qq,ri:()=>Pe,ry:()=>o.ry,sT:()=>o.sT,sY:()=>Ae,se:()=>o.se,sj:()=>j,sv:()=>o.sv,uE:()=>o.uE,uT:()=>T,u_:()=>o.u_,up:()=>o.up,vl:()=>o.vl,vr:()=>Ce,vs:()=>o.vs,w5:()=>o.w5,wF:()=>o.wF,wg:()=>o.wg,wy:()=>o.wy,xv:()=>o.xv,yT:()=>o.yT,yX:()=>o.yX,yb:()=>o.MW,zw:()=>o.zw});var r=n(3577),o=n(6252),i=n(2262);const a="undefined"!=typeof document?document:null,l=a&&a.createElement("template"),u={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?a.createElementNS("http://www.w3.org/2000/svg",e):a.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{l.innerHTML=r?`${e}`:e;const o=l.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const s=/\s*!important$/;function c(e,t,n){if((0,r.kJ)(n))n.forEach((n=>c(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=d[t];if(n)return n;let o=(0,r._A)(t);if("filter"!==o&&o in e)return d[t]=o;o=(0,r.kC)(o);for(let n=0;n{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let m=0;const y=Promise.resolve(),g=()=>{m=0};function b(e,t,n,r){e.addEventListener(t,n,r)}function w(e,t,n,i,a=null){const l=e._vei||(e._vei={}),u=l[t];if(i&&u)u.value=i;else{const[n,s]=function(e){let t;if(x.test(e)){let n;for(t={};n=e.match(x);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,r.rs)(e.slice(2)),t]}(t);if(i){const u=l[t]=function(e,t){const n=e=>{const i=e.timeStamp||v();(h||i>=n.attached-1)&&(0,o.$d)(function(e,t){if((0,r.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>m||(y.then(g),m=v()))(),n}(i,a);b(e,n,u,s)}else u&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,u,s),l[t]=void 0)}}const x=/(?:Once|Passive|Capture)$/;const S=/^on[a-z]/;function E(e,t){const n=(0,o.aZ)(e);class r extends k{constructor(e){super(n,e,t)}}return r.def=n,r}const _=e=>E(e,je),O="undefined"!=typeof HTMLElement?HTMLElement:class{};class k extends O{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,(0,o.Y3)((()=>{this._connected||(Ae(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,o=!(0,r.kJ)(t),i=t?o?Object.keys(t):t:[];let a;if(o)for(const e in this._props){const n=t[e];(n===Number||n&&n.type===Number)&&(this._props[e]=(0,r.He)(this._props[e]),(a||(a=Object.create(null)))[e]=!0)}this._numberProps=a;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e],!0,!1);for(const e of i.map(r._A))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=(0,r.He)(t)),this._setProp((0,r._A)(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,r.rs)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,r.rs)(e),t+""):t||this.removeAttribute((0,r.rs)(e))))}_update(){Ae(this._createVNode(),this.shadowRoot)}_createVNode(){const e=(0,o.Wm)(this._def,(0,r.l7)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof k){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function A(e="$style"){{const t=(0,o.FN)();if(!t)return r.kT;const n=t.type.__cssModules;if(!n)return r.kT;const i=n[e];return i||r.kT}}function j(e){const t=(0,o.FN)();if(!t)return;const n=()=>P(t.subTree,e(t.proxy));(0,o.Rh)(n),(0,o.bv)((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,o.Ah)((()=>e.disconnect()))}))}function P(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{P(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)C(e.el,t);else if(e.type===o.HY)e.children.forEach((e=>P(e,t)));else if(e.type===o.qG){let{el:n,anchor:r}=e;for(;n&&(C(n,t),n!==r);)n=n.nextSibling}}function C(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const R="transition",I="animation",T=(e,{slots:t})=>(0,o.h)(o.P$,M(e),t);T.displayName="Transition";const L={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},N=T.props=(0,r.l7)({},o.P$.props,L),F=(e,t=[])=>{(0,r.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},D=e=>!!e&&((0,r.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function M(e){const t={};for(const n in e)n in L||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:s=a,appearActiveClass:c=l,appearToClass:f=u,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if((0,r.Kn)(e))return[U(e.enter),U(e.leave)];{const t=U(e);return[t,t]}}(i),m=h&&h[0],y=h&&h[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:w,onLeave:x,onLeaveCancelled:S,onBeforeAppear:E=g,onAppear:_=b,onAppearCancelled:O=w}=t,k=(e,t,n)=>{B(e,t?f:u),B(e,t?c:l),n&&n()},A=(e,t)=>{e._isLeaving=!1,B(e,d),B(e,v),B(e,p),t&&t()},j=e=>(t,n)=>{const r=e?_:b,i=()=>k(t,e,n);F(r,[t,i]),V((()=>{B(t,e?s:a),W(t,e?f:u),D(r)||H(t,o,m,i)}))};return(0,r.l7)(t,{onBeforeEnter(e){F(g,[e]),W(e,a),W(e,l)},onBeforeAppear(e){F(E,[e]),W(e,s),W(e,c)},onEnter:j(!1),onAppear:j(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);W(e,d),X(),W(e,p),V((()=>{e._isLeaving&&(B(e,d),W(e,v),D(x)||H(e,o,y,n))})),F(x,[e,n])},onEnterCancelled(e){k(e,!1),F(w,[e])},onAppearCancelled(e){k(e,!0),F(O,[e])},onLeaveCancelled(e){A(e),F(S,[e])}})}function U(e){return(0,r.He)(e)}function W(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function B(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function V(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let q=0;function H(e,t,n,r){const o=e._endId=++q,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:u}=G(e,t);if(!a)return r();const s=a+"end";let c=0;const f=()=>{e.removeEventListener(s,d),i()},d=t=>{t.target===e&&++c>=u&&f()};setTimeout((()=>{c(n[e]||"").split(", "),o=r("transitionDelay"),i=r("transitionDuration"),a=z(o,i),l=r("animationDelay"),u=r("animationDuration"),s=z(l,u);let c=null,f=0,d=0;t===R?a>0&&(c=R,f=a,d=i.length):t===I?s>0&&(c=I,f=s,d=u.length):(f=Math.max(a,s),c=f>0?a>s?R:I:null,d=c?c===R?i.length:u.length:0);return{type:c,timeout:f,propCount:d,hasTransform:c===R&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function z(e,t){for(;e.lengthJ(t)+J(e[n]))))}function J(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function X(){return document.body.offsetHeight}const Y=new WeakMap,K=new WeakMap,Z={name:"TransitionGroup",props:(0,r.l7)({},N,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,o.FN)(),r=(0,o.Y8)();let a,l;return(0,o.ic)((()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=G(r);return o.removeChild(r),i}(a[0].el,n.vnode.el,t))return;a.forEach($),a.forEach(Q);const r=a.filter(ee);X(),r.forEach((e=>{const n=e.el,r=n.style;W(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,B(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const u=(0,i.IU)(e),s=M(u);let c=u.tag||o.HY;a=l,l=t.default?(0,o.Q6)(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return(0,r.kJ)(t)?e=>(0,r.ir)(t,e):t};function ne(e){e.target.composing=!0}function re(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const oe={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e._assign=te(i);const a=o||i.props&&"number"===i.props.type;b(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),a&&(o=(0,r.He)(o)),e._assign(o)})),n&&b(e,"change",(()=>{e.value=e.value.trim()})),t||(b(e,"compositionstart",ne),b(e,"compositionend",re),b(e,"change",re))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},a){if(e._assign=te(a),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((i||"number"===e.type)&&(0,r.He)(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},ie={deep:!0,created(e,t,n){e._assign=te(n),b(e,"change",(()=>{const t=e._modelValue,n=ce(e),o=e.checked,i=e._assign;if((0,r.kJ)(t)){const e=(0,r.hq)(t,n),a=-1!==e;if(o&&!a)i(t.concat(n));else if(!o&&a){const n=[...t];n.splice(e,1),i(n)}}else if((0,r.DM)(t)){const e=new Set(t);o?e.add(n):e.delete(n),i(e)}else i(fe(e,o))}))},mounted:ae,beforeUpdate(e,t,n){e._assign=te(n),ae(e,t,n)}};function ae(e,{value:t,oldValue:n},o){e._modelValue=t,(0,r.kJ)(t)?e.checked=(0,r.hq)(t,o.props.value)>-1:(0,r.DM)(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=(0,r.WV)(t,fe(e,!0)))}const le={created(e,{value:t},n){e.checked=(0,r.WV)(t,n.props.value),e._assign=te(n),b(e,"change",(()=>{e._assign(ce(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=te(o),t!==n&&(e.checked=(0,r.WV)(t,o.props.value))}},ue={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const i=(0,r.DM)(t);b(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,r.He)(ce(e)):ce(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=te(o)},mounted(e,{value:t}){se(e,t)},beforeUpdate(e,t,n){e._assign=te(n)},updated(e,{value:t}){se(e,t)}};function se(e,t){const n=e.multiple;if(!n||(0,r.kJ)(t)||(0,r.DM)(t)){for(let o=0,i=e.options.length;o-1:i.selected=t.has(a);else if((0,r.WV)(ce(i),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ce(e){return"_value"in e?e._value:e.value}function fe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const de={created(e,t,n){ve(e,t,n,null,"created")},mounted(e,t,n){ve(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ve(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ve(e,t,n,r,"updated")}};function pe(e,t){switch(e){case"SELECT":return ue;case"TEXTAREA":return oe;default:switch(t){case"checkbox":return ie;case"radio":return le;default:return oe}}}function ve(e,t,n,r,o){const i=pe(e.tagName,n.props&&n.props.type)[o];i&&i(e,t,n,r)}const he=["ctrl","shift","alt","meta"],me={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>he.some((n=>e[`${n}Key`]&&!t.includes(n)))},ye=(e,t)=>(n,...r)=>{for(let e=0;en=>{if(!("key"in n))return;const o=(0,r.rs)(n.key);return t.some((e=>e===o||ge[e]===o))?e(n):void 0},we={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xe(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),xe(e,!0),r.enter(e)):r.leave(e,(()=>{xe(e,!1)})):xe(e,t))},beforeUnmount(e,{value:t}){xe(e,t)}};function xe(e,t){e.style.display=t?e._vod:"none"}const Se=(0,r.l7)({patchProp:(e,t,n,o,i=!1,a,l,u,s)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,i=(0,r.HD)(n);if(n&&!i){for(const e in n)c(o,e,n[e]);if(t&&!(0,r.HD)(t))for(const e in t)null==n[e]&&c(o,e,"")}else{const r=o.display;i?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}(e,n,o):(0,r.F7)(t)?(0,r.tR)(t)||w(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&S.test(t)&&(0,r.mf)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(S.test(t)&&(0,r.HD)(n))return!1;return t in e}(e,t,o,i))?function(e,t,n,o,i,a,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,i,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let u=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=(0,r.yA)(n):null==n&&"string"===o?(n="",u=!0):"number"===o&&(n=0,u=!0)}try{e[t]=n}catch(e){}u&&e.removeAttribute(t)}(e,t,o,a,l,u,s):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,i){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(p,t.slice(6,t.length)):e.setAttributeNS(p,t,n);else{const o=(0,r.Pq)(t);null==n||o&&!(0,r.yA)(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,i))}},u);let Ee,_e=!1;function Oe(){return Ee||(Ee=(0,o.Us)(Se))}function ke(){return Ee=_e?Ee:(0,o.Eo)(Se),_e=!0,Ee}const Ae=(...e)=>{Oe().render(...e)},je=(...e)=>{ke().hydrate(...e)},Pe=(...e)=>{const t=Oe().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=Re(e);if(!o)return;const i=t._component;(0,r.mf)(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},Ce=(...e)=>{const t=ke().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Re(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Re(e){if((0,r.HD)(e)){return document.querySelector(e)}return e}let Ie=!1;const Te=()=>{Ie||(Ie=!0,oe.getSSRProps=({value:e})=>({value:e}),le.getSSRProps=({value:e},t)=>{if(t.props&&(0,r.WV)(t.props.value,e))return{checked:!0}},ie.getSSRProps=({value:e},t)=>{if((0,r.kJ)(e)){if(t.props&&(0,r.hq)(e,t.props.value)>-1)return{checked:!0}}else if((0,r.DM)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},de.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=pe(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},we.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})}},3577:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:()=>d,DM:()=>R,E9:()=>ne,F7:()=>E,Gg:()=>q,HD:()=>L,He:()=>ee,Kn:()=>F,NO:()=>x,Nj:()=>Q,Od:()=>k,PO:()=>B,Pq:()=>a,RI:()=>j,S0:()=>V,W7:()=>W,WV:()=>v,Z6:()=>b,_A:()=>z,_N:()=>C,aU:()=>Z,dG:()=>w,e1:()=>o,fY:()=>r,hR:()=>K,hq:()=>h,ir:()=>$,j5:()=>u,kC:()=>Y,kJ:()=>P,kT:()=>g,l7:()=>O,mf:()=>T,rs:()=>X,tI:()=>D,tR:()=>_,vs:()=>p,yA:()=>l,yk:()=>N,zw:()=>m});const o=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");const i="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=r(i);function l(e){return!!e||""===e}function u(e){if(P(e)){const t={};for(let n=0;n{if(e){const n=e.split(c);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function d(e){let t="";if(L(e))t=e;else if(P(e))for(let n=0;nv(e,t)))}const m=e=>L(e)?e:null==e?"":P(e)||F(e)&&(e.toString===M||!T(e.toString))?JSON.stringify(e,y,2):String(e),y=(e,t)=>t&&t.__v_isRef?y(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:R(t)?{[`Set(${t.size})`]:[...t.values()]}:!F(t)||P(t)||B(t)?t:String(t),g={},b=[],w=()=>{},x=()=>!1,S=/^on[^a-z]/,E=e=>S.test(e),_=e=>e.startsWith("onUpdate:"),O=Object.assign,k=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},A=Object.prototype.hasOwnProperty,j=(e,t)=>A.call(e,t),P=Array.isArray,C=e=>"[object Map]"===U(e),R=e=>"[object Set]"===U(e),I=e=>"[object Date]"===U(e),T=e=>"function"==typeof e,L=e=>"string"==typeof e,N=e=>"symbol"==typeof e,F=e=>null!==e&&"object"==typeof e,D=e=>F(e)&&T(e.then)&&T(e.catch),M=Object.prototype.toString,U=e=>M.call(e),W=e=>U(e).slice(8,-1),B=e=>"[object Object]"===U(e),V=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,q=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),H=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},G=/-(\w)/g,z=H((e=>e.replace(G,((e,t)=>t?t.toUpperCase():"")))),J=/\B([A-Z])/g,X=H((e=>e.replace(J,"-$1").toLowerCase())),Y=H((e=>e.charAt(0).toUpperCase()+e.slice(1))),K=H((e=>e?`on${Y(e)}`:"")),Z=(e,t)=>!Object.is(e,t),$=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ee=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let te;const ne=()=>te||(te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{})},9784:(e,t,n)=>{"use strict";n.d(t,{gN:()=>De,Wi:()=>$t,rY:()=>Zt,GH:()=>mt,Ew:()=>rn,hV:()=>on,ZP:()=>Bn,pF:()=>$,jL:()=>W,wi:()=>Ot,iE:()=>gt,am:()=>K,qB:()=>_t,xb:()=>j,C_:()=>Q,fN:()=>J,sZ:()=>he,ZN:()=>St,QL:()=>en,QZ:()=>me,I5:()=>Et,ac:()=>tn,mc:()=>sn,qo:()=>N,hS:()=>ln,j9:()=>nn,I_:()=>an,i8:()=>Wn});var r={};n.r(r),n.d(r,{BuiltInDefaultValueType:()=>w,CLASS:()=>h,EVENTS:()=>g,EnumComponent:()=>u,EnumDragDirection:()=>i,EnumDragEventType:()=>s,EnumDragHook:()=>c,EnumDragMode:()=>o,EnumRenderType:()=>f,EnumValidateMode:()=>l,EnumValidityState:()=>a,LabelPosition:()=>b,PROPS:()=>y,SELECTOR:()=>m,XFORM_CONTEXT_PROVIDE_KEY:()=>d,XFORM_ITEM_EXTERNAL_PROVIDE_KEY:()=>v,XFORM_SCHEMA_PROVIDE_KEY:()=>p});n(8309),n(2526),n(1817),n(1539);var o,i,a,l,u,s,c,f,d=Symbol(),p=Symbol(),v=Symbol(),h={DRAGGABLE:"xform-draggable",DROPPABLE:"xform-droppable",FIELD:"xform-designer-field",FORM_ITEM:"xform-item",GHOST_NOT_ALLOW:"xform-is-not-allowed",IS_DISABLED:"xform-is-disabled",IS_DRAGGING:"xform-is-dragging",IS_EMPTY_TIP:"xform-is-empty-tip",IS_ERROR:"xform-is-error",IS_HORIZONTAL_SCROLL:"xform-is-horizontal-scroll",IS_SCROLL:"xform-is-scroll",IS_SELECTED:"xform-is-selected",IS_SHOW:"xform-is-show",IS_UNKNOWN:"xform-is-unknown",IS_WARNING:"xform-is-warning",LIST_SILENCE:"xform-is-silence",PREVIEW:"xform-preview",SCOPE:"xform-is-scope"},m={DRAGGABLE:".".concat(h.DRAGGABLE),DROPPABLE:".".concat(h.DROPPABLE),FIELD:".".concat(h.FIELD),IS_DRAGGING:".".concat(h.IS_DRAGGING),IS_EMPTY_TIP:".".concat(h.IS_EMPTY_TIP),IS_HORIZONTAL_SCROLL:".".concat(h.IS_HORIZONTAL_SCROLL),IS_SCROLL:".".concat(h.IS_SCROLL),IS_SELECTED:".".concat(h.IS_SELECTED),PREVIEW:".".concat(h.PREVIEW),SCOPE:".".concat(h.SCOPE)},y={DRAG_MODE:"__PROP_XFORM_DRAGE_MODE__",FIELD:"__PROP_XFORM_FIELD__",FIELD_TYPE:"__PROP_XFORM_FIELD_TYPE__",SCHEMA:"__PROP_XFORM_SCHEMA__",SCOPE:"__PROP_XFORM_SCOPE__"},g={MESSAGE:"message",REMOVE:"remove",SUBMIT:"submit",UPDATE_FIELD:"update:field",UPDATE_PROP:"update:prop",UPDATE_SCHEMA:"update:schema",UPDATE_VALUE:"update:value",VALUE_CHANGE:"value:change"},b={LEFT:"left",RIGHT:"right",TOP:"top"};!function(e){e.INSERT="insert",e.SORT="sort"}(o||(o={})),function(e){e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=4]="LEFT",e[e.RIGHT=8]="RIGHT"}(i||(i={})),function(e){e.SUCCESS="success",e.ERROR="error",e.NONE="none"}(a||(a={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.RECURSIVE=1]="RECURSIVE"}(l||(l={})),function(e){e.SETTING="setting",e.PREVIEW="preview",e.BUILD="build",e.VIEW="view"}(u||(u={})),function(e){e.DRAGOVER="dragover",e.DROP="drop"}(s||(s={})),function(e){e.DRAGOVER="onDragOver",e.DROP="onDrop"}(c||(c={})),function(e){e.DESIGNER="designer",e.BUILDER="builder",e.VIEWER="viewer"}(f||(f={}));var w={MANUAL:"manual",OPTION_FIRST:"option_first",OPTION_ALL:"option_all",DATE_NOW:"date_now"},x=n(6252),S=n(2262);n(2222),n(9753),n(2772),n(4916),n(5306),n(3371),n(3593),n(9070),n(7042),n(1038),n(8783),n(2165),n(6992),n(3948),n(3210),n(489),n(1249),n(5827),n(7941),n(9554),n(4747),n(4678),n(8674),n(3710),n(9714),n(4129),n(8011),n(4819),n(9596),n(7318),n(7327),n(5003),n(9337),n(3321);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var _=Object.prototype.toString;function O(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_.call(e)}var k=0;function A(e){return"string"==typeof e}function j(e){return null==e||(A(e)?0==e.trim().length:function(e){return"number"==typeof e}(e)?isNaN(e)||!isFinite(e):!!Array.isArray(e)&&0==e.length)}function P(e){return null==e}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null!=e&&(t?"object"==E(e)||"function"==typeof e:"object"==E(e))}function R(e){return"function"==typeof e}function I(e){if(null==e||"object"!=E(e)||"[object Object]"!=O(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function T(e){return null==e||"object"!=E(e)?e:!0===e.__v_skip?e:Array.isArray(e)?e.map(T):Object.keys(e).reduce((function(t,n){return t[n]=T(e[n]),t}),{})}function L(e,t){return Object.keys(t).forEach((function(n){var r=t[n];if(void 0!==r)if(null===r||"object"!=E(r)||Array.isArray(r))e[n]=r;else{var o=e[n];e[n]=L(C(o)?o:{},r)}})),e}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(e)?e:t}function F(e){return Array.isArray(e)?e.reduce((function(e,t){return e.concat(t)}),[]):[]}function D(e){if(e instanceof Promise)e.catch((function(e){return!1}));else if(R(e))try{return D(e())}catch(e){return}}function M(e){return null==e?null:e instanceof Error?e.message:A(e)?e:I(e)&&"message"in e?e.message:R(e.toString)?e.toString():null}function U(e){var t=Math.random().toString(36).slice(2);return t.length>=e?t:t+W(e-t.length)}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return U(e).slice(0,e)}function B(e){return R(e)?e:null}function V(e,t){null!=e&&null!=t&&Object.keys(t).forEach((function(n){n in e||(e[n]=t[n])}))}var q=Symbol();function H(e,t,n){Reflect.defineProperty(e,q,{configurable:!1,enumerable:!1,writable:!1,value:function(e){if(e!==t){var r,o=null==this||null===(r=this.constructor)||void 0===r?void 0:r.name,i=o?"".concat(o,"."):"";throw new Error("`".concat(i,"props` is a private function."))}return n}})}function G(e,t){var n=Reflect.get(e,q);return R(n)?n(t):null}function z(e,t){var n=e;return null==n||"object"!=E(n)?n:(!0===t&&Reflect.ownKeys(n).forEach((function(e){return z(n[e],t)})),Object.freeze(e))}n(5212);function J(e){var t=e.deltaX,n=e.deltaY,r=0==e.deltaMode?1:1==e.deltaMode?40:800;return{pixelX:t*r,pixelY:n*r}}function X(e,t){return e[t]}n(3123),n(9601);function Y(e,t,n){var r,o=null===(r=e.conf)||void 0===r?void 0:r[t];return o instanceof Fe?o.get(e,n):o}function K(e,t){return function(e,t){return e[t]}(e,t)}function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.props,o=e.emits,i=[];return null!=r&&(i=i.concat(Object.keys(r))),Array.isArray(o)&&(i=i.concat(o.map($))),i.reduce((function(e,n){var r=t[n];return null!=r&&(e[n]=r),e}),n)}function $(e){return"on"+e[0].toUpperCase()+e.slice(1)}function Q(e,t){var n=function(e){return C(e)?e:(A(e)&&(e=e.split(" ").filter((function(e){return e}))),Array.isArray(e)?e.reduce((function(e,t){return e[t]=!0,e}),{}):{})}(e);return I(t)?Object.assign(n,t):n}function ee(e){return(0,x.Y3)((function(){var t=K(e.refs,"list").querySelector(m.IS_SELECTED);if(null!=t){var n=t.closest(m.IS_SCROLL),r=t.getBoundingClientRect(),o=n.getBoundingClientRect();r.topo.bottom&&(n.scrollTop=t.offsetTop+t.offsetHeight-n.offsetHeight+5),r.lefto.right&&(n.scrollLeft=t.offsetLeft+t.offsetWidth-n.offsetWidth+5)}}))}function te(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ne(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 ne(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,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n').concat(null!==(t=null==r?void 0:r.title)&&void 0!==t?t:"未知字段",""):(r?o.outerHTML.replace(/(.*)<\/strong>/,"".concat(r.title,"")):o.outerHTML).replace(/class="([^"]*)"/,'class="'.concat(h.FIELD," xform-template-").concat(n,'"'))}}],[{key:"createPublicDragEvent",value:function(e){return Object.freeze(e.context),new Proxy(e,{set:function(e,t,n,r){return A(t)&&le.indexOf(t)>=0&&Reflect.set(e,t,n,r),!0},deleteProperty:function(e,t){return!0}})}}]),e}();n(8304),n(4812),n(2419),n(9826),n(3843),n(9600),n(1532);function ce(){return{modes:null,logic:!1,validation:{immediate:!0},genName:function(){return"field_".concat(Date.now().toString(36),"_").concat(W())},formatter:function(e,t){var n,r=e.value;return P(r)||j(r)?null!==(n=t.schema.viewerPlaceholder)&&void 0!==n?n:"":Array.isArray(r)?r.join(","):r}}}var fe={preset:null,config:ce(),fields:new Map,slots:new Map,logic:new Map};function de(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return pe(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 pe(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,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function pe(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=fe.fields.get(n);if(P(r))return null;if(t<0)return r;var o=r.dependencies.find((function(t){return t.type==e}));return P(o)?null:o}function ge(e){var t=function(e){if(null==e||null==fe.config.modes)return Array.from(fe.fields.keys());var t=fe.config.modes[e];return Array.isArray(t)?t.filter((function(e){return null!=e})):[]}(e);if(0==t.length)return[];var n,r="object"!=ve(t[0])?[{types:t}]:t,o=de(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;i.fields=i.types.map(ye).filter((function(e){return e&&e.available}))}}catch(e){o.e(e)}finally{o.f()}return r}var be,we,xe={icon:'\n \n',title:"复制",handle:function(e,t){if(!1!==e.allowClone){var n=e.parent,r=e.clone();n.insert(n.indexOf(e)+1,r),t.updateSchema(),t.chooseField(r)}}},Se={icon:'\n \n',title:"删除",handle:function(e,t,n){var r,o;if(!1!==e.allowRemove){var i=$(g.REMOVE),a=function(){var r=e.parent;r.remove(e),t.chooseField(null),t.updateSchema(),(0,x.Y3)((function(){var t,o=null===(t=e.conf)||void 0===t?void 0:t.onRemoved;R(o)&&o(e,r,n)}))};R(null===(r=n.vnode)||void 0===r||null===(o=r.props)||void 0===o?void 0:o[i])?n.emit(g.REMOVE,{field:e,useDefault:a}):a()}}},Ee={icon:'\r\n \r\n',title:"选中上一级",handle:function(e,t,n,r){var o,i=r.target.closest(m.DRAGGABLE);if(null!=i){var a=null===(o=i.parentElement)||void 0===o?void 0:o.closest(m.DRAGGABLE);if(null!=a){var l=X(a,y.FIELD);null!=l&&t.chooseField(l)}}}};function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function Oe(e,t){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oe(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){if(t&&("object"===_e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return je(e)}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}function Ce(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};Ie(this,e),Te(this,"onValueInit",void 0),Te(this,"onValueSubmit",void 0),Te(this,"onValidate",void 0),Te(this,"onCreate",void 0),Te(this,"onRemoved",void 0),Te(this,"onSubmit",void 0),Te(this,be,void 0),Te(this,we,void 0),this.onValueInit=B(t.onValueInit),this.onValueSubmit=B(t.onValueSubmit),this.onValidate=B(t.onValidate),this.onCreate=B(t.onCreate),this.onRemoved=B(t.onRemoved),this.onSubmit=B(t.onSubmit),this[c.DRAGOVER]=B(t[c.DRAGOVER]),this[c.DROP]=B(t[c.DROP])})),Fe=function(){function e(t){Ie(this,e),Te(this,"factory",void 0),Te(this,"extension",void 0),this.factory=R(t.factory)?t.factory:null,this.extension=I(t.extension)?t.extension:{}}return Re(e,[{key:"get",value:function(e,t){return R(this.factory)?this.factory(e,t):this.extension["".concat(t,"_").concat(e.name)]||this.extension[t]}}]),e}(),De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oe(e,t)}(n,e);var t=ke(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return Ie(this,n),o!=Le&&console.warn("use `Field.create` instead of `new Field`"),Te(je(e=t.call(this,r)),"type",void 0),Te(je(e),"title",void 0),Te(je(e),"icon",void 0),Te(je(e),"buttons",void 0),Te(je(e),"alias",void 0),Te(je(e),"accept",void 0),Te(je(e),"custom",void 0),Te(je(e),"validator",void 0),Te(je(e),"setting",void 0),Te(je(e),"preview",void 0),Te(je(e),"build",void 0),Te(je(e),"view",void 0),Te(je(e),"dependencies",void 0),Te(je(e),"logic",void 0),e.type=r.type,e.title=r.title,e.icon=r.icon,e.buttons=N(r.buttons,null),e.alias=r.alias instanceof n||A(r.alias)?r.alias:null,e.accept=Array.isArray(r.accept)?r.accept:null,e.custom=!0===r.custom,e.validator=r.validator,e.setting=P(r.setting)?null:(0,S.Xl)(r.setting),e.preview=P(r.preview)?null:(0,S.Xl)(r.preview),e.build=P(r.build)?null:(0,S.Xl)(r.build),e.view=P(r.view)?null:(0,S.Xl)(r.view),e.dependencies=N(r.dependencies),e.logic=N(r.logic),e}return Re(n,[{key:"available",get:function(){return null!=this.type}},{key:"toParams",value:function(){return{type:this.type,title:this.title}}}],[{key:"create",value:function(e){return new Proxy(new n(e,Le),{get:function(e,t,r){var o=Reflect.get(e,t,r);if(null!=o)return o;var i=e.alias instanceof n?e.alias:A(e.alias)?ye(e.alias):null;return null==i?o:Reflect.get(i,t,e.alias)}})}},{key:"createFieldComponent",value:function(e){return new Fe(e)}},{key:"createFieldLogic",value:function(e){return Object.freeze(e)}}]),n}(Ne);Te(De,"BUTTON_COPY",xe),Te(De,"BUTTON_REMOVE",Se),Te(De,"BUTTON_PICK_UP",Ee);n(5735),n(3753);function Me(e,t){for(var n=0;n=0}},{key:"createFields",value:function(e,t){var n=this;N(e).forEach((function(e){var r=t(e);r.parent=n,n.fields.push(r)}))}},{key:"clear",value:function(){Array.isArray(this.fields)&&0!=this.fields.length&&(this.fields.forEach((function(e){e.parent=null,e.clear()})),this.fields=[])}},{key:"setParent",value:function(e){this.parent=e}},{key:"destroy",value:function(){this.fields.forEach((function(e){return e.destroy()})),this.parent=null,this.fields=null}}],n&&Ge(t.prototype,n),r&&Ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ve);function et(e,t){return"number"==typeof t?te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(i.fields=r),i}function vt(e){return j(e.title)?Promise.reject("标题为空"):Promise.resolve()}function ht(e){if(0==e.length)return Promise.resolve([]);var t=e.map((function(e,t){var n,r=null===(n=e.conf)||void 0===n?void 0:n.onValidate,o=R(r)?r:vt;return ht(e.fields).then((function(n){return o(e).then((function(){return pt(null,e,t,n)})).catch((function(r){return pt(r,e,t,n)}))}))}));return Promise.all(t).then((function(e){return e.filter((function(e){return!e.valid||e.valid&&null!=e.fields}))}))}$e=Ve.EXCLUDE_PROPS_KEY;var mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&it(e,t)}(i,e);var t,n,r,o=at(i);function i(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n!=dt&&console.warn("use `FormSchema.create` instead of `new FormSchema`"),ct(ut(r=o.call(this)),"parent",null),ct(ut(r),"fields",[]),ct(ut(r),"external",[]),ct(ut(r),"labelSuffix",void 0),ct(ut(r),"labelPosition",void 0),ct(ut(r),"viewerPlaceholder",void 0);var a=null!=t;return r.labelSuffix=e.labelSuffix,r.labelPosition=e.labelPosition,r.viewerPlaceholder=e.viewerPlaceholder,r.createFields(e.fields,(function(e){var n=$t.create(e);return a&&n.setValue(t[e.name],!0),n})),V(ut(r),e),H(ut(r),ft,{callbacks:[],initModel:t}),r}return t=i,n=[{key:"model",get:function(){return[].concat(nt(this.fields),nt(this.external)).reduce((function(e,t){var n=t.model;return P(n)||(e[t.name]=n),e}),{})}},{key:"root",get:function(){return this}},{key:"registerExternalField",value:function(e){if(this.external.indexOf(e)<0){var t,n=G(this,ft);this.external.push(e),e.setParent(this),e.setValue(null===(t=n.initModel)||void 0===t?void 0:t[e.name])}}},{key:"getNeedValidateFields",value:function(){return[].concat(nt(this.fields),nt(this.external)).filter((function(e){return e.state.mounted}))}},{key:"genSchema",value:function(e,t){var n=i[Ve.EXCLUDE_PROPS_KEY];for(var r in this)if(!("fields"==r||n.indexOf(r)>=0)){var o=e[r],a=this[r];e[r]=P(o)?T(a):o}return new i(e,t,dt)}},{key:"validate",value:function(){return 0==this.fields.length?Promise.resolve({valid:!0,result:[]}):ht(this.fields).then((function(e){return{valid:0==e.length,result:e}}))}},{key:"useEffect",value:function(e){var t=G(this,ft).callbacks;return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>=0&&t.splice(n,1)}}},{key:"previous",value:function(){return[]}},{key:"find",value:function(e){return this.fields.find((function(t){return t.name===e}))}},{key:"dispatch",value:function(e){G(this,ft).callbacks.forEach((function(t){return t(e)}))}}],r=[{key:"create",value:function(e,t){return new i(C(e)?e:{},t,dt)}}],n&&ot(t.prototype,n),r&&ot(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Qe);function yt(e){if(null!=e){var t=T(e);!function(){if(arguments.length<2)return arguments.length<=0?void 0:arguments[0];for(var e=arguments.length<=0?void 0:arguments[0],t=1;t0?n.map((function(e){return e.value})):[]})),wt(xt.OPTION_FIRST,(function(e){var t,n;return null===(t=e.options)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.value})),wt(xt.DATE_NOW,(function(){var e=new Date,t=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)}));n(189),n(2707);function St(e){fe.logic.set(e.type,e)}function Et(e){var t="string"==typeof e?e:e.type,n=fe.logic.get(t);return"string"==typeof e?(fe.logic.delete(t),n):n==e?(fe.fields.delete(t),n):null}function _t(e){return fe.logic.get(e)}function Ot(){return Array.from(fe.logic.values()).filter((function(e){return!0===e.composed}))}function kt(e,t){if(null==e)return!0;var n=_t(e.type);return null!=n&&("function"==typeof n.test&&n.test(e,t))}function At(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jt(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 jt(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,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?o:e.fields.length+1,a=e.fields.reduce((function(e,o,a){if(t==o||ar)return e;var l=Tt(a0&&void 0!==arguments[0]?arguments[0]:e.value,r=n.get(t);R(r)&&(r(),n.delete(t))}var l=(0,x.YP)(e,(function(e,t){a(t),i(e)}));i(e.value),(0,x.Jd)((function(){a(),l()}))}function Mt(){return Mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ut(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Mt.apply(this,arguments)}function Ut(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ht(e)););return e}function Wt(e,t){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wt(e,t)}function Bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(e,t){if(t&&("object"===Yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qt(e)}function qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ht(e){return Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ht(e)}function Gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(e,t){for(var n=0;n0}}],[{key:"create",value:function(t,n){if(C(t))return t instanceof e?t:new e(t,n)}}]),e}();Pt=Ve.EXCLUDE_PROPS_KEY;var $t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wt(e,t)}(n,e);var t=Bt(n);function n(e){var r,o,i;Gt(this,n),Xt(qt(i=t.call(this)),"uid",void 0),Xt(qt(i),"type",void 0),Xt(qt(i),"name",void 0),Xt(qt(i),"title",void 0),Xt(qt(i),"placeholder",void 0),Xt(qt(i),"options",void 0),Xt(qt(i),"required",void 0),Xt(qt(i),"disabled",void 0),Xt(qt(i),"hidden",void 0),Xt(qt(i),"attributes",void 0),Xt(qt(i),"allowRemove",void 0),Xt(qt(i),"allowClone",void 0),Xt(qt(i),"parent",null),Xt(qt(i),"fields",[]),Xt(qt(i),"value",void 0),Xt(qt(i),"defaultValue",void 0),Xt(qt(i),"logic",void 0),Xt(qt(i),"validation",void 0),Xt(qt(i),"state",{mounted:!1});var l,u,s=function(e){return P(e)||"object"!=Yt(e)?{}:e instanceof De?e.toParams():e}(e),c=e instanceof De,f=ye(s.type),d={value:void 0,valid:a.NONE};return i.type=s.type,i.name=null!==(r=s.name)&&void 0!==r?r:gt().genName(e),i.title=s.title,i.placeholder=s.placeholder,i.required=!0===s.required,i.disabled=!0===s.disabled,i.hidden=!0===s.hidden,i.options=Array.isArray(s.options)?s.options:void 0,i.attributes=null!==(o=s.attributes)&&void 0!==o?o:{},i.allowRemove=s.allowRemove,i.allowClone=s.allowClone,i.defaultValue=(l=s.defaultValue,{type:null!==(u=null==l?void 0:l.type)&&void 0!==u?u:w.MANUAL,value:null==l?void 0:l.value}),i.logic=Zt.create(s.logic),i.createFields(s.fields,(function(e){return n.create(e)})),function(e,t){e.validation={get valid(){return t.valid},set valid(n){var r=t.valid;if(t.valid=n,n!=r){var o={type:"valid.change",field:e,oldValue:r,newValue:n};e.dispatch(o)}},validating:!1,message:null,external:null}}(qt(i),d),function(e,t){Reflect.defineProperty(e,"value",{get:function(){return t.value},set:function(n){if(t.value=n,e.state.mounted){var r={type:"value.change",field:e};e.dispatch(r)}}})}(qt(i),d),V(qt(i),s),Reflect.defineProperty(qt(i),"uid",{value:"field__"+k++,enumerable:!1,writable:!1,configurable:!1}),H(qt(i),Kt,d),R(null==f?void 0:f.onCreate)&&f.onCreate(qt(i),s,c),i}return Jt(n,[{key:"conf",get:function(){return ye(this.type)}},{key:"invalid",get:function(){return this.validation.valid===a.ERROR}},{key:"root",get:function(){for(var e=this.parent;null!=e;){if(e instanceof mt)return e;e=e.parent}return null}},{key:"model",get:function(){if(!1!==this.state.mounted){var e=this.conf;return R(null==e?void 0:e.onValueSubmit)?e.onValueSubmit(this):this.value}}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=JSON.parse(JSON.stringify(this));return e||Qt(t),new n(t)}},{key:"validate",value:function(e){var t=this;return new Promise((function(n,r){var o={type:"validate",field:t,mode:null==e?void 0:e.mode,callback:function(e,t){e?n(t):r(t)}};t.dispatch(o)}))}},{key:"resetValidate",value:function(){this.validation.valid=a.NONE,this.validation.validating=!1,this.validation.message=null}},{key:"toJSON",value:function(){var e,t=Mt(Ht(n.prototype),"toJSON",this).call(this),r=null===(e=this.conf)||void 0===e?void 0:e.onSubmit;return R(r)?r(t):t}},{key:"find",value:function(e){return this.fields.find((function(t){return t.name==e}))}},{key:"previous",value:function(){var e=this.parent;if(null==e)return[];var t=e.indexOf(this);return e.fields.filter((function(e,n){return nn.scrollHeight-n.offsetHeight?null:window.requestAnimationFrame(t.bind(null,n,r))}function n(t,r){var o=t.scrollLeft+5*r;t.scrollLeft=o,e=o<0||o>t.scrollWidth-t.offsetWidth?null:window.requestAnimationFrame(n.bind(null,t,r))}function r(){null!=e&&(window.cancelAnimationFrame(e),e=null)}return{autoScrollIfNeed:function(o,i){if(null!=i){if(i.matches(m.IS_HORIZONTAL_SCROLL))return function(t,o){if(!(o.scrollWidth<=o.offsetWidth)){var i=o.getBoundingClientRect();return t.clientXi.right?null==e&&n(o,1):void r()}}(o,i);if(!(i.scrollHeight<=i.offsetHeight)){var a=i.getBoundingClientRect();return o.clientXa.right?r():o.clientYa.bottom?null==e&&t(i,1):void r()}}},cancelAutoScrollIfNeed:r}}function yn(){var e={getInternalInstance:function(){return t.instance},getApi:a,resetDragStatus:c,getMarkEl:l,moveMarkEl:s,getRootScopeEl:u},t={instance:(0,x.FN)(),context:null},n=mn(),r=n.autoScrollIfNeed,o=n.cancelAutoScrollIfNeed;function a(){return t.instance.exposed}function l(){return K(t.instance.refs,"mark")}function u(){return K(t.instance.refs,"list")}function s(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l();if(t!=n){if(!(Array.prototype.indexOf.call(n.children,t)<0)){var o=e==i.UP||e==i.LEFT?t:t.nextElementSibling;o==r||null!=o&&o.previousElementSibling==r||(null==o?n.appendChild(r):n.insertBefore(r,o))}}else if(Array.prototype.indexOf.call(n.children,r)<0){var a=Array.prototype.find.call(n.children,(function(e){return e.matches(m.IS_EMPTY_TIP)}));n.insertBefore(r,a)}}function c(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||ee(t.instance),t.context.reset(t.instance),t.context=null,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",d)}function f(n){var i=t.context,a=t.instance;if(!(n.timeStamp-i.timeStamp<150)){i.move(n,a);var l,u,c,f,d,p=K(a.refs,"ghost"),v=K(a.refs,"root"),y=K(a.refs,"mark"),g=(l=n.clientX,u=n.clientY,c=m.DROPPABLE,f=v,"function"!=typeof(d=document.elementsFromPoint||document.msElementsFromPoint)?null:d.call(document,l,u).filter((function(e){return!(null!=f&&!f.contains(e))&&(A(c)?e.matches(c):!!Array.isArray(c)&&c.some((function(t){return e.matches(t)})))})));if(null==g||0==g.length)return v.appendChild(y),p.classList.add(h.GHOST_NOT_ALLOW),r(n,i.dragElement.closest(m.IS_SCROLL));o(),p.classList.remove(h.GHOST_NOT_ALLOW);var b=i.createDragOverEvent(g,n,pn({},e));if(!i.trigger(b).defaultPrevented){var w=K(a.refs,"list");s(i.directionY,g[0],w,y)}}}function d(n){var r;o();var i=t.instance,l=t.context;if(!l.init&&!l.isImmediateInsert)return c(!0);var s=K(i.refs,"mark"),f=function(e,t){if(!(e instanceof Element))return[];t=t instanceof Element?t:document.body;for(var n=[],r=e.parentElement;null!=r&&t.contains(r);)r.matches(m.DROPPABLE)&&n.push(r),r=r.parentElement;return n}(s,K(i.refs,"root"));if(0==f.length&&!l.isImmediateInsert)return c();var d=l.createDropEvent(f,n,pn({},e));if(!l.trigger(d).defaultPrevented){var p,v,h=a(),g=u(),b=null!==(r=s.closest(m.SCOPE))&&void 0!==r?r:g,w=null!==(v=X(p=b,y.SCOPE))&&void 0!==v?v:X(p,y.FIELD);if(l.isInsert){var x=l.isImmediateInsert?w.fields.length:Array.prototype.indexOf.call(b.children,s);if(x<0)return c();var S=ye(l.fieldType);if(null!=S){var E=new $t(S);w.insert(x,E),h.updateSchema(),h.chooseField(E)}return c()}var _=l.field.parent;if(l.isSort){var O=l.field,k=Array.prototype.indexOf.call(b.children,s);if(_==w){var A=k>w.indexOf(O)?k-1:k;O.move(A)}else _.remove(O),w.insert(k,O);return h.updateSchema(),h.chooseField(O),c()}c()}}return{dragstart:function(e){if(0===e.button){var n=e.target.closest(m.DRAGGABLE);null!=n&&(t.context=new se(e,n),document.addEventListener("mousemove",f,{passive:!0}),document.addEventListener("mouseup",d))}},cancelAutoScrollIfNeed:o}}function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){return null!=e&&e.type==f.BUILDER}function wn(e){var t=e.validation,n=t.message;return t.validating?(0,x.Wm)("p",{class:"xform-is-validating"},[(0,x.Uk)("验证中...")]):n?(0,x.Wm)("p",{class:"xform-item-message"},[n]):null}function xn(e,t,n,r){if(R(e.default))return e.default({field:t,disabled:r});var o=Y(t,u.BUILD);if(null==o)return null;var i={field:t,disabled:r};return(0,x.Wm)(o,Z(o,i,{}))}function Sn(e){return{name:e,props:{field:{type:$t,default:null},validation:{type:[Boolean,Function],default:!1},label:{type:[String,Boolean],default:null},custom:{type:Boolean,default:!1},virtual:{type:Boolean,default:!1},title:{type:String,default:null},name:{type:String,default:null},type:{type:String,default:null},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},setup:function(t){var n=(0,x.Rr)(),r=(0,x.f3)(p,null),o=(0,x.f3)(d,null),i=function(e){if(!0!==e.virtual)return(0,x.Fl)((function(){return e.field}));var t=(0,S.qj)($t.create());return(0,x.Jd)((0,x.m0)((function(){t.type=e.type,t.name=e.name,t.title=e.title,t.required=!0===e.required}))),(0,x.Fl)((function(){return t}))}(t),l=(0,x.Fl)((function(){if(null==o)return!0;if(o.type==f.DESIGNER||!0!==gt().logic)return!0;var e=i.value;return kt(e.logic,e)})),u=e==hn.EXTERNAL||(0,x.f3)(v,!1);return e===hn.EXTERNAL&&(0,x.JJ)(v,!0),u&&null!=r&&r.value.registerExternalField(i.value),bn(o)&&(i.value.validation.external=function(){return t.validation}),(0,x.bv)((function(){i.value.state.mounted=!0})),(0,x.Jd)((function(){i.value.state.mounted=!1})),function(){var e,s,c,f,d,p,v,m=i.value;if(null==m||!l.value)return null;if(t.custom||!0===(null==m||null===(e=m.conf)||void 0===e?void 0:e.custom))return xn(n,m,0,t.disabled);var y=!1!==t.label&&!0!==(null===(s=m.attributes)||void 0===s?void 0:s.hideTitle)?function(e,t,n){var r,o,i="string"==typeof e?e:t.title,a=null==n||null===(r=n.value)||void 0===r?void 0:r.labelSuffix;return(0,x.Wm)("label",{class:"xform-item-label",for:t.uid},[(0,x.Wm)("span",{class:"xform-item-title"},[i]),(o=a,o?(0,x.Wm)("span",null,[o]):null)])}(t.label,m,r):null,g=null!==(c=null!==(f=null===(d=m.attributes)||void 0===d?void 0:d.labelPosition)&&void 0!==f?f:null==r||null===(p=r.value)||void 0===p?void 0:p.labelPosition)&&void 0!==c?c:b.LEFT,w=!(bn(o)&&!1===t.validation||t.disabled||m.disabled)&&m.required,S={class:(v={"xform-item":!0},gn(v,"xform-is-".concat(g),!0),gn(v,"xform-is-required",w),gn(v,"xform-is-exteranl",u),gn(v,h.IS_ERROR,m.validation.valid==a.ERROR),v)};return(0,x.Wm)("div",S,[y,(0,x.Wm)("div",{class:"xform-item-content"},[xn(n,m,0,t.disabled),wn(m)])])}}}}!function(e){e.EXTERNAL="xform-item",e.INTERNAL="xform-item-internal"}(hn||(hn={}));var En=Sn(hn.INTERNAL);const _n=Sn(hn.EXTERNAL);function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i,An=/]*)?>[\s\S]*<\/svg>/,jn="setting_form";function Pn(e,t,n){var r="function"==typeof e?e(t,n):e;return(0,x.lA)(r)?r:kn.test(r)?(0,x.Wm)("img",{src:r,class:"xform-icon xform-icon-is-img"},null):An.test(r)?(0,x.Wm)("i",{class:"xform-icon xform-icon-is-svg",innerHTML:r},null):(0,x.Wm)("i",{class:r},null)}function Cn(e,t,n){var r=(0,S.iH)(null),i=(0,S.iH)("form"),a={resetSelectedField:d,updateSchema:l,chooseField:c};function l(n){e.emit(g.UPDATE_SCHEMA,null!=n?n:t.value)}function s(e){i.value=e}function c(t){r.value=t,null!=t&&(s("field"),ee(e))}function d(){r.value=null}function p(e,t){var n=t.prop,r=t.value,o=t.scope,i=e;null!=o&&(null==i[o]&&(i[o]={}),i=i[o]),i[n]=r,l()}function v(t){if(null==t||null==t.conf)return(0,x.Wm)("p",{class:"xform-setting-tip"},[(0,x.Uk)("点击字段设置属性")]);var r=e.slots,o={field:t,key:t.name},i=r["setting_name_".concat(t.name)];if(R(i))return i(o);var a=r["setting_type_".concat(t.type)];if(R(a))return a(o);var l=Y(t,u.SETTING,n.value);return null==l?(console.warn("[xform] field not implement setting component: ".concat(t.title,"(").concat(t.name,")")),null):(o["onUpdate:field"]=p.bind(null,t),(0,x.Wm)(l,o))}function m(t){var n=e.slots;if(R(n.setting_form))return n.setting_form({schema:t});var r=function(e){return fe.slots.get(e)}(jn);return r?(0,x.h)(r,{schema:t,"onUpdate:prop":function(e){var n=e.prop,r=e.value;t[n]=r,l(t)}}):null}function b(t){var n=null!==t.parent&&!(t.parent instanceof mt),r=t.conf,o=(null==(null==r?void 0:r.buttons)?[De.BUTTON_PICK_UP,De.BUTTON_COPY,De.BUTTON_REMOVE]:r.buttons).filter((function(e){return(e!=De.BUTTON_COPY||!1!==t.allowClone)&&((e!=De.BUTTON_REMOVE||!1!==t.allowRemove)&&!(e==De.BUTTON_PICK_UP&&!n))})).map((function(n){var r=n.handle.bind(null,t,a,e),o=Pn(n.icon,t.conf);return(0,x.Wm)("button",{type:"button",title:n.title,onClick:r},[o])}));return 0==o.length?null:(0,x.Wm)("div",{class:cn},[(0,x.Wm)("div",{class:fn},[o])])}function w(t,r){var o,i=t.disabled||!0===(null===(o=r.parentProps)||void 0===o?void 0:o.disabled),a={field:t,validation:!1,disabled:i};return(R(null==r?void 0:r.renderItem)?r.renderItem:x.h)(En,a,(function(){var o;return null!==(o=function(t,r){var o,i=e.slots,a=t.disabled||!0===(null===(o=r.parentProps)||void 0===o?void 0:o.disabled),l=i["preview_name_".concat(t.name)];if(R(l))return l({field:t,disabled:a});var s=i["preview_type_".concat(t.type)];if(R(s))return s({field:t,disabled:a});var c=n.value,f=Y(t,u.PREVIEW,c)||Y(t,u.BUILD,c);if(null==f)return null;var d=Z(f,{field:t,disabled:a});return(R(null==r?void 0:r.renderContent)?r.renderContent:x.h)(f,d)}(t,r))&&void 0!==o?o:function(e){return console.warn("field[".concat(e.title,": ").concat(e.name,"] not implement preview component")),(0,x.Wm)("p",{class:"xform-is-unknown"},[(0,x.Uk)("暂不支持的字段类型")])}(t)}))}function E(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="div",i=On({class:(t={"xform-preview":!0,"xform-draggable":!0,"xform-droppable":!0},On(t,"xform-preview-"+e.type,!0),On(t,"xform-is-selected",e==r.value),On(t,"xform-is-preview-hidden",e.hidden),t),key:e.uid},"."+y.FIELD,e);var a=function(){return w(e,n)},l=function(){var t=b(e),n=(0,x.Wm)("div",{class:"xform-preview-cover",onClick:c.bind(null,e)},null);return[a(),t,n]};return R(n.renderPreivew)?n.renderPreivew(o,i,l,a):(0,x.h)(o,i,l())}return{renderFieldPanel:function(e){return e.map((function(e,t){var n=e.title?(0,x.Wm)("h3",null,[e.title]):null,r=e.fields,i=0==r.length?(0,x.Wm)("div",{class:"xform-is-unknown"},[(0,x.Uk)("请先注册该分组下的字段类型")]):r.map((function(e){var t,n=(On(t={class:"".concat(h.FIELD," xform-template-").concat(e.type," ").concat(h.DRAGGABLE),key:e.type},"."+y.FIELD_TYPE,e.type),On(t,"."+y.DRAG_MODE,o.INSERT),t);return(0,x.Wm)("div",n,[(0,x.Wm)("strong",null,[e.title]),Pn(e.icon,e)])}));return(0,x.Wm)("div",{key:t,class:"xform-designer-field-group"},[n,(0,x.Wm)("div",{class:"xform-designer-field-list"},[i])])}))},renderSetting:function(e){var t=m(e);if(null==t)return(0,x.Wm)("div",{class:"xform-designer-setting-field xform-is-scroll"},[v(r.value)]);var n="field"==i.value?v(r.value):t;return[(0,x.Wm)("ul",{class:"xform-tabs"},[(0,x.Wm)("li",{class:{"xform-is-active":"field"==i.value},onClick:s.bind(null,"field")},[(0,x.Uk)("字段")]),(0,x.Wm)("li",{class:{"xform-is-active":"form"==i.value},onClick:s.bind(null,"form")},[(0,x.Uk)("表单")])]),(0,x.Wm)("div",{class:"xform-tabs-main xform-is-scroll"},[(0,x.Wm)("div",{class:"xform-tabs-content"},[n])])]},renderPreviewList:function(e){var n=0==e.length?(0,x.Wm)("div",{class:[h.IS_EMPTY_TIP,"xform-preview-empty-tip"]},[(0,x.Wm)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAd4AAADABAMAAABYGx+vAAAAElBMVEX29vbr6+v////y8vLZ2dnk5OQZBXI3AAAMPklEQVR42u1dTXebOhAl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XqcTPj+Z6qblLbTev4FmwpqWTu4g+XkE16rvIevtf6B2daQ28kGmzvvKz1Rm2ABOJP84rw+gv8OPLWYmXqrvMfLdmAVWjNyM5k3zw3H1JsbCXEe4/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="},null),(0,x.Wm)("p",null,[(0,x.Uk)("请将左侧控件拖动到此处")])]):e.map((function(e){return E(e)})),r=On({ref:"list",class:["xform-designer-list",h.DROPPABLE]},"."+y.SCOPE,t.value);return(0,x.Wm)("div",{class:"xform-designer-responsive xform-is-scroll",ref:"scroll"},[(0,x.Wm)("div",r,[n])])},resetSelectedField:d,updateSchema:l,chooseField:c,api:a,context:{type:f.DESIGNER,renderField:E,updateField:p,chooseField:c,emit:e.emit}}}const Rn=(0,x.aZ)({name:"xform-designer",props:{mode:{type:String,required:!1,default:null},schema:{type:mt,required:!0}},emits:[g.UPDATE_SCHEMA,g.REMOVE,g.MESSAGE],setup:function(e,t){var n=t.emit,r=t.expose,o=(0,S.Vh)(e,"schema"),i=(0,S.Vh)(e,"mode"),a=(0,x.FN)(),l=Cn(a,o,i),u=yn(),s=u.dragstart,c=u.cancelAutoScrollIfNeed;!0===gt().logic&&Dt(o,(function(e){return n(g.MESSAGE,e)})),(0,x.JJ)(p,(0,S.Vh)(e,"schema")),(0,x.JJ)(d,l.context);var f=function(e){c();var t=J(e).pixelY,n=a.refs.mark.closest(m.IS_SCROLL),r=n.matches(m.IS_HORIZONTAL_SCROLL)?"scrollLeft":"scrollTop";n[r]=n[r]+=t};return r(l.api),function(){var e=a.slots,t=N(o.value.fields);return(0,x.Wm)("div",{class:"xform-designer",ref:"root",onMousedown:s},[(0,x.Wm)("div",{class:"xform-designer-panel"},[l.renderFieldPanel(ge(i.value))]),(0,x.Wm)("div",{class:"xform-designer-main"},[R(e.tool)&&e.tool(),(0,x.Wm)("div",{class:"xform-designer-board"},[l.renderPreviewList(t)])]),(0,x.Wm)("div",{class:"xform-designer-setting"},[l.renderSetting(o.value)]),(0,x.Wm)("div",{ref:"ghost",key:"xform-designer-ghost",class:"xform-designer-ghost",onWheel:f},[(0,x.Wm)("div",{class:"xform-designer-ghost-template",ref:"template"},null),(0,x.Wm)("div",{class:"xform-designer-cover"},null)]),(0,x.Wm)("div",{ref:"mark",key:"xform-designer-mark",class:"xform-designer-mark"},[(0,x.Wm)("hr",null,null)])])}}});n(2479),n(7314),n(6541);function In(e){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(e)}function Tn(e){return e in l}function Ln(e,t){if(null!=e&&"object"==In(e))return e instanceof $t?t(e):Array.isArray(e)?e.forEach((function(e){return Ln(e,t)})):C(e)?Object.values(e).forEach((function(e){return Ln(e,t)})):void 0}function Nn(e,t){e.validation.validating=!0;var n=function(e,t){var n,r,o,i=null==e||null===(n=e.conf)||void 0===n?void 0:n.validator,a=R(null==e||null===(r=e.validation)||void 0===r?void 0:r.external)?e.validation.external():null,u=!1!==a&&!1!==i,s=null,c=l.DEFAULT;return null!=(o=i)&&"mode"in o?(Tn(i.mode)&&(c=i.mode),s=i.validator):R(i)&&(s=i),R(a)&&(s=a),null!=t&&Tn(t.mode)&&(c=t.mode),{enable:u,validator:s,mode:c}}(e,t);return n.enable?R(n.validator)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"need a Promise instance";return e instanceof Promise?e:Promise.reject(t)}(n.validator(e,e.value,{mode:n.mode})):function(e){return!0===e.required&&P(e.value)?Promise.reject("必填"):Promise.resolve()}(e):Promise.resolve()}function Fn(e,t){var n=new Set,r=new WeakMap;function o(e){switch(e.type){case"value.change":D(i(e.field.reactive()));break;case"validate":var t={mode:e.mode},n=e.callback;i(e.field.reactive(),t).then((function(e){return R(n)&&n(!0,e)})).catch((function(e){return R(n)&&n(!1,e)}));break;case"valid.change":var r=e.newValue,o=e.oldValue;if(o==r||o==a.NONE&&r==a.SUCCESS||r==a.NONE)return;var l=e.field.parent;l instanceof $t&&D(i(l.reactive()))}}function i(e,r){if(t.value)return Promise.resolve();if(e.validation.validating)return Promise.resolve();var o=Nn(e,r);return o.uid=e.uid,n.add(o),o.then((function(t){if(n.has(o)){n.delete(o);var r=M(t);return e.validation.message=r,e.validation.valid=a.SUCCESS,e.validation.validating=!1,r}})).catch((function(t){if(n.has(o)){n.delete(o);var r=M(t);return e.validation.message=r,e.validation.valid=a.ERROR,e.validation.validating=!1,Promise.reject(r)}}))}function u(e){e.setValue(void 0,!0),n.forEach((function(t){return t.uid===e.uid&&n.delete(t)})),e.resetValidate()}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.value,n=t.useEffect(o);r.set(t,n)}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.value,n=r.get(t);R(n)&&(n(),r.delete(t))}var f=(0,x.YP)(e,(function(e,t){c(t),s(e)}));return s(e.value),(0,x.Jd)((function(){c(),n.clear(),f()})),{resetValidate:function(e){0!=e.length&&Ln(e,u)},validateField:i,validateSchema:function(e){var t=e.getNeedValidateFields().map((function(e){return e.validate({mode:l.RECURSIVE})}));return Promise.allSettled(t).then((function(t){var n={valid:t.every((function(e){return"fulfilled"==e.status}))};return n.valid&&(n.model=e.model),n}))}}}function Dn(e){return console.warn("[xform] field not implement build component: ".concat(e.title,"(").concat(e.name,")")),(0,x.Wm)("p",{class:"xform-is-unknown"},[(0,x.Uk)("暂不支持的字段类型")])}const Mn=(0,x.aZ)({name:"xform-builder",props:{mode:{type:String,default:null},schema:{type:mt,required:!0},tag:{type:String,default:"form"},novalidate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:[g.VALUE_CHANGE,g.SUBMIT],setup:function(e,t){var n=t.emit,r=t.expose,o=(0,x.FN)(),i=function(e){function t(t,n){var r,o=e.slots,i=e.props,a=i.disabled||t.disabled||!0===(null===(r=n.parentProps)||void 0===r?void 0:r.disabled),l=o["name_".concat(t.name)];if(R(l))return l({field:t,disabled:a});var s=o["type_".concat(t.type)];if(R(s))return s({field:t,disabled:a});var c={field:t,disabled:a},f=Y(t,u.BUILD,i.mode);return null==f?null:(R(n.renderContent)?n.renderContent:x.Wm)(f,Z(f,c))}return{type:f.BUILDER,renderField:function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0===n.hidden)return null;var i=e.props,a=i.disabled||n.disabled||!0===(null===(r=o.parentProps)||void 0===r?void 0:r.disabled),l=function(){var e;return null!==(e=t(n,o))&&void 0!==e?e:Dn(n)};return(R(o.renderItem)?o.renderItem:x.h)(En,{key:n.uid,field:n,validation:!i.novalidate&&!a,disabled:a},l)}}}(o),a=(0,S.iH)(1),l=(0,S.Vh)(e,"schema"),s=(0,S.iH)(!1),c=(0,S.iH)(!1),v=Fn(l,(0,x.Fl)((function(){return!0===e.novalidate||!0===e.disabled||!0===c.value}))),h=e.schema.useEffect((function(e){if("value.change"===e.type)n(g.VALUE_CHANGE)}));function m(){var t=e.schema.getNeedValidateFields();v.resetValidate(t)}function y(){c.value=!0,m(),(0,x.Y3)((function(){c.value=!1,a.value++}))}function b(){return s.value?Promise.reject("[xform error]: validate pending..."):(s.value=!0,v.validateSchema(e.schema).then((function(e){return s.value=!1,e})))}return(0,x.JJ)(p,(0,S.Vh)(e,"schema")),(0,x.JJ)(d,i),(0,x.Jd)(h),r({reset:y,resetValidate:m,validate:b}),function(){var t,r=o.slots,l=e.schema,u=(A(e.tag)?e.tag:"form").toLowerCase(),s={class:"xform-builder",key:a.value};return"form"==u&&((t=s).novalidate=!0,t.onSubmit=function(e){e.preventDefault(),n(g.SUBMIT,b)},t.onReset=function(e){e.preventDefault(),y()}),(0,x.Wm)(u,s,{default:function(){return[R(r.header)&&r.header(),l.fields.map((function(e){return i.renderField(e)})),R(r.default)?r.default():null,R(r.footer)&&r.footer()]}})}}});const Un=(0,x.aZ)({name:"xform-viewer",props:{schema:{type:mt,required:!0},mode:{type:String,default:null},formatter:{type:Function,default:null}},setup:function(e,t){var n=t.expose;function r(t){return(R(e.formatter)?e.formatter:gt().formatter)(t,e)}var o=(0,x.FN)(),i=function(e,t){function n(t,n,r){var o,i=e.slots,a=t.disabled||!0===(null===(o=r.parentProps)||void 0===o?void 0:o.disabled),l=i["name_".concat(t.name)];if(R(l))return l({field:t,value:n,disabled:a});var s=i["type_".concat(t.type)];if(R(s))return s({field:t,value:n,disabled:a});var c=Y(t,u.VIEW,e.props.mode);if(null==c)return null;var f=Z(c,{field:t,value:n,disabled:a});return(R(null==r?void 0:r.renderContent)?r.renderContent:x.Wm)(c,f)}return{type:f.VIEWER,renderField:function(r){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0===r.hidden)return null;var a=!0===(null===(o=i.parentProps)||void 0===o?void 0:o.disabled)||r.disabled,l=t(r,e.props),u={key:r.name,field:r,validation:!1,disabled:a},s=function(){var e;return null!==(e=n(r,l,i))&&void 0!==e?e:(0,x.Wm)("span",{class:"xform-viewer-value"},[l])};return(R(null==i?void 0:i.renderItem)?i.renderItem:x.Wm)(En,u,s)},formatter:t}}(o,r);return(0,x.JJ)(p,(0,S.Vh)(e,"schema")),(0,x.JJ)(d,i),n({formatter:r}),function(){var t=o.slots,n=e.schema;return(0,x.Wm)("div",{class:"xform-viewer"},["function"==typeof t.header&&t.header(),n.fields.map((function(e){return i.renderField(e)})),"function"==typeof t.default&&t.default(),"function"==typeof t.footer&&t.footer()])}}});var Wn="0.8.1";const Bn={install:function(e,t){null!=t&&un(t),e.component(Rn.name,Rn),e.component(Mn.name,Mn),e.component(Un.name,Un),e.component(_n.name,_n)},version:Wn}},672:e=>{e.exports={website:{base:"/xForm/"}}},9662:(e,t,n)=>{var r=n(614),o=n(6330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},9483:(e,t,n)=>{var r=n(4411),o=n(6330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},6077:(e,t,n)=>{var r=n(614),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},1223:(e,t,n)=>{var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),l=Array.prototype;null==l[a]&&i(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][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,t,n)=>{var r=n(7976),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},9670:(e,t,n)=>{var r=n(111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},7556:(e,t,n)=>{var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},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(6916),i=n(7908),a=n(3411),l=n(7659),u=n(4411),s=n(6244),c=n(6135),f=n(8554),d=n(1246),p=Array;e.exports=function(e){var t=i(e),n=u(this),v=arguments.length,h=v>1?arguments[1]:void 0,m=void 0!==h;m&&(h=r(h,v>2?arguments[2]:void 0));var y,g,b,w,x,S,E=d(t),_=0;if(!E||this===p&&l(E))for(y=s(t),g=n?new this(y):p(y);y>_;_++)S=m?h(t[_],_):t[_],c(g,_,S);else for(x=(w=f(t,E)).next,g=n?new this:[];!(b=o(x,w)).done;_++)S=m?a(w,h,[b.value,_],!0):b.value,c(g,_,S);return g.length=_,g}},1318:(e,t,n)=>{var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var l,u=r(t),s=i(u),c=o(a,s);if(e&&n!=n){for(;s>c;)if((l=u[c++])!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,t,n)=>{var r=n(9974),o=n(1702),i=n(8361),a=n(7908),l=n(6244),u=n(5417),s=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,f=6==e,d=7==e,p=5==e||f;return function(v,h,m,y){for(var g,b,w=a(v),x=i(w),S=r(h,m),E=l(x),_=0,O=y||u,k=t?O(v,E):n||d?O(v,0):void 0;E>_;_++)if((p||_ in x)&&(b=S(g=x[_],_,w),e))if(t)k[_]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:s(k,g)}else switch(e){case 4:return!1;case 7:s(k,g)}return f?-1:o||c?c:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},1194:(e,t,n)=>{var r=n(7293),o=n(5112),i=n(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},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(){return 1},1)}))}},3671:(e,t,n)=>{var r=n(9662),o=n(7908),i=n(8361),a=n(6244),l=TypeError,u=function(e){return function(t,n,u,s){r(n);var c=o(t),f=i(c),d=a(c),p=e?d-1:0,v=e?-1:1;if(u<2)for(;;){if(p in f){s=f[p],p+=v;break}if(p+=v,e?p<0:d<=p)throw l("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=v)p in f&&(s=n(s,f[p],p,c));return s}};e.exports={left:u(!1),right:u(!0)}},1589:(e,t,n)=>{var r=n(1400),o=n(6244),i=n(6135),a=Array,l=Math.max;e.exports=function(e,t,n){for(var u=o(e),s=r(t,u),c=r(void 0===n?u:n,u),f=a(l(c-s,0)),d=0;s{var r=n(1702);e.exports=r([].slice)},4362:(e,t,n)=>{var r=n(1589),o=Math.floor,i=function(e,t){var n=e.length,u=o(n/2);return n<8?a(e,t):l(e,i(r(e,0,u),t),i(r(e,u),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},l=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,l=0;a{var r=n(3157),o=n(4411),i=n(111),a=n(5112)("species"),l=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===l||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?l:t}},5417:(e,t,n)=>{var r=n(7475);e.exports=function(e,t){return new(r(e))(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){o(e,"throw",t)}}},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(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,t,n)=>{var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,t,n)=>{var r=n(1694),o=n(614),i=n(4326),a=n(5112)("toStringTag"),l=Object,u="Arguments"==i(function(){return arguments}());e.exports=r?i: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=l(e),a))?n:u?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},5631:(e,t,n)=>{"use strict";var r=n(3070).f,o=n(30),i=n(9190),a=n(9974),l=n(5787),u=n(408),s=n(654),c=n(6340),f=n(9781),d=n(2423).fastKey,p=n(9909),v=p.set,h=p.getterFor;e.exports={getConstructor:function(e,t,n,s){var c=e((function(e,r){l(e,p),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})})),p=c.prototype,m=h(t),y=function(e,t,n){var r,o,i=m(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=m(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(p,{clear:function(){for(var e=m(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=m(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=m(this),r=a(e,arguments.length>1?arguments[1]:void 0);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(p,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(p,"size",{get:function(){return m(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",o=h(t),i=h(r);s(e,t,(function(e,t){v(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),c(t)}}},9320:(e,t,n)=>{"use strict";var r=n(1702),o=n(9190),i=n(2423).getWeakData,a=n(9670),l=n(111),u=n(5787),s=n(408),c=n(2092),f=n(2597),d=n(9909),p=d.set,v=d.getterFor,h=c.find,m=c.findIndex,y=r([].splice),g=0,b=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},x=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var c=e((function(e,o){u(e,d),p(e,{type:t,id:g++,frozen:void 0}),null!=o&&s(o,e[r],{that:e,AS_ENTRIES:n})})),d=c.prototype,h=v(t),m=function(e,t,n){var r=h(e),o=i(a(t),!0);return!0===o?b(r).set(t,n):o[r.id]=n,e};return o(d,{delete:function(e){var t=h(this);if(!l(e))return!1;var n=i(e);return!0===n?b(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!l(e))return!1;var n=i(e);return!0===n?b(t).has(e):n&&f(n,t.id)}}),o(d,n?{get:function(e){var t=h(this);if(l(e)){var n=i(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),c}}},7710:(e,t,n)=>{"use strict";var r=n(2109),o=n(7854),i=n(1702),a=n(4705),l=n(8052),u=n(2423),s=n(408),c=n(5787),f=n(614),d=n(111),p=n(7293),v=n(7072),h=n(8003),m=n(9587);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),b=y?"set":"add",w=o[e],x=w&&w.prototype,S=w,E={},_=function(e){var t=i(x[e]);l(x,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return g&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(w)||!(g||x.forEach&&!p((function(){(new w).entries().next()})))))S=n.getConstructor(t,e,y,b),u.enable();else if(a(e,!0)){var O=new S,k=O[b](g?{}:-0,1)!=O,A=p((function(){O.has(1)})),j=v((function(e){new w(e)})),P=!g&&p((function(){for(var e=new w,t=5;t--;)e[b](t,t);return!e.has(-0)}));j||((S=t((function(e,t){c(e,x);var n=m(new w,e,S);return null!=t&&s(t,n[b],{that:n,AS_ENTRIES:y}),n}))).prototype=x,x.constructor=S),(A||P)&&(_("delete"),_("has"),y&&_("get")),(P||k)&&_(b),g&&x.clear&&delete x.clear}return E[e]=S,r({global:!0,constructor:!0,forced:S!=w},E),h(S,e),g||n.setStrong(S,e,y),S}},9920:(e,t,n)=>{var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t,n){for(var l=o(t),u=a.f,s=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),a=n(8003),l=n(7497),u=function(){return this};e.exports=function(e,t,n,s){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!s,n)}),a(e,c,!1,!0),l[c]=u,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(4948),o=n(3070),i=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},8052:(e,t,n)=>{var r=n(614),o=n(3070),i=n(6339),a=n(3072);e.exports=function(e,t,n,l){l||(l={});var u=l.enumerable,s=void 0!==l.name?l.name:t;return r(n)&&i(n,s,l),l.global?u?e[t]=n:a(t,n):(l.unsafe?e[t]&&(u=!0):delete e[t],u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})),e}},9190:(e,t,n)=>{var r=n(8052);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},3072:(e,t,n)=>{var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),i=n(1913),a=n(6530),l=n(614),u=n(4994),s=n(9518),c=n(7674),f=n(8003),d=n(8880),p=n(8052),v=n(5112),h=n(7497),m=n(3383),y=a.PROPER,g=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=v("iterator"),S="keys",E="values",_="entries",O=function(){return this};e.exports=function(e,t,n,a,v,m,k){u(n,t,a);var A,j,P,C=function(e){if(e===v&&N)return N;if(!w&&e in T)return T[e];switch(e){case S:case E:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",I=!1,T=e.prototype,L=T[x]||T["@@iterator"]||v&&T[v],N=!w&&L||C(v),F="Array"==t&&T.entries||L;if(F&&(A=s(F.call(new e)))!==Object.prototype&&A.next&&(i||s(A)===b||(c?c(A,b):l(A[x])||p(A,x,O)),f(A,R,!0,!0),i&&(h[R]=O)),y&&v==E&&L&&L.name!==E&&(!i&&g?d(T,"name",E):(I=!0,N=function(){return o(L,this)})),v)if(j={values:C(E),keys:m?N:C(S),entries:C(_)},k)for(P in j)(w||I||!(P in T))&&p(T,P,j[P]);else r({target:t,proto:!0,forced:w||I},j);return i&&!k||T[x]===N||p(T,x,N,{name:v}),h[t]=N,j}},7235:(e,t,n)=>{var r=n(857),o=n(2597),i=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},5117:(e,t,n)=>{"use strict";var r=n(6330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},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,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return 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}},8509:(e,t,n)=>{var r=n(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,t,n)=>{var r=n(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:e=>{e.exports="object"==typeof window&&"object"!=typeof Deno},256:(e,t,n)=>{var r=n(8113);e.exports=/MSIE|Trident/.test(r)},1528:(e,t,n)=>{var r=n(8113),o=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:(e,t,n)=>{var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*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),a=n(8113),l=i.process,u=i.Deno,s=l&&l.versions||u&&u.version,c=s&&s.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,t,n)=>{var r=n(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},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),a=n(8052),l=n(3072),u=n(9920),s=n(4705);e.exports=function(e,t){var n,c,f,d,p,v=e.target,h=e.global,m=e.stat;if(n=h?r:m?r[v]||l(v,{}):(r[v]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=o(n,c))&&p.value:n[c],!s(h?c:v+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,c,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(1702),o=n(8052),i=n(2261),a=n(7293),l=n(5112),u=n(8880),s=l("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var d=l(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),v=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!v||n){var h=r(/./[d]),m=t(d,""[e],(function(e,t,n,o,a){var l=r(e),u=t.exec;return u===i||u===c.exec?p&&!a?{done:!0,value:h(t,n,o)}:{done:!0,value:l(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(c,d,m[1])}f&&u(c[d],"sham",!0)}},6677:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:(e,t,n)=>{var r=n(4374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},9974:(e,t,n)=>{var r=n(1702),o=n(9662),i=n(4374),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},4374:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},7065:(e,t,n)=>{"use strict";var r=n(1702),o=n(9662),i=n(111),a=n(2597),l=n(206),u=n(4374),s=Function,c=r([].concat),f=r([].join),d={},p=function(e,t,n){if(!a(d,t)){for(var r=[],o=0;o{var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:(e,t,n)=>{var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),u=l&&"something"===function(){}.name,s=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:u,CONFIGURABLE:s}},1702:(e,t,n)=>{var r=n(4374),o=Function.prototype,i=o.bind,a=o.call,l=r&&i.bind(a,a);e.exports=r?function(e){return e&&l(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5005:(e,t,n)=>{var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(8173),i=n(7497),a=n(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,t,n)=>{var r=n(6916),o=n(9662),i=n(9670),a=n(6330),l=n(1246),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return i(r(n,e));throw u(a(e)+" is not iterable")}},8173:(e,t,n)=>{var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},647:(e,t,n)=>{var r=n(1702),o=n(7908),i=Math.floor,a=r("".charAt),l=r("".replace),u=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,v=r.length,h=c;return void 0!==f&&(f=o(f),h=s),l(d,h,(function(o,l){var s;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":s=f[u(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>v){var d=i(c/10);return 0===d?o:d<=v?void 0===r[d-1]?a(l,1):r[d-1]+a(l,1):o}s=r[c-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")()},2597:(e,t,n)=>{var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},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(1702),o=n(7293),i=n(4326),a=Object,l=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?l(e,""):a(e)}:a},9587:(e,t,n)=>{var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var a,l;return i&&r(a=t.constructor)&&a!==n&&o(l=a.prototype)&&l!==n.prototype&&i(e,l),e}},2788:(e,t,n)=>{var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2423:(e,t,n)=>{var r=n(2109),o=n(1702),i=n(3501),a=n(111),l=n(2597),u=n(3070).f,s=n(8006),c=n(1156),f=n(2050),d=n(9711),p=n(6677),v=!1,h=d("meta"),m=0,y=function(e){u(e,h,{value:{objectID:"O"+m++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},v=!0;var e=s.f,t=o([].splice),n={};n[h]=1,e(n).length&&(s.f=function(n){for(var r=e(n),o=0,i=r.length;o{var r,o,i,a=n(8536),l=n(7854),u=n(1702),s=n(111),c=n(8880),f=n(2597),d=n(5465),p=n(6200),v=n(3501),h="Object already initialized",m=l.TypeError,y=l.WeakMap;if(a||d.state){var g=d.state||(d.state=new y),b=u(g.get),w=u(g.has),x=u(g.set);r=function(e,t){if(w(g,e))throw new m(h);return t.facade=e,x(g,e,t),t},o=function(e){return b(g,e)||{}},i=function(e){return w(g,e)}}else{var S=p("state");v[S]=!0,r=function(e,t){if(f(e,S))throw new m(h);return t.facade=e,c(e,S,t),t},o=function(e){return f(e,S)?e[S]:{}},i=function(e){return f(e,S)}}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(!s(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,t,n)=>{var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,t,n)=>{var r=n(1702),o=n(7293),i=n(614),a=n(648),l=n(5005),u=n(2788),s=function(){},c=[],f=l("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),v=!d.exec(s),h=function(e){if(!i(e))return!1;try{return f(s,c,e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!p(d,u(e))}catch(e){return!0}};m.sham=!0,e.exports=!f||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},5032:(e,t,n)=>{var r=n(2597);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},4705:(e,t,n)=>{var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=u[l(e)];return n==c||n!=s&&(o(t)?r(t):!!t)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},111:(e,t,n)=>{var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(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))}},2190:(e,t,n)=>{var r=n(5005),o=n(614),i=n(7976),a=n(3307),l=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,l(e))}},408:(e,t,n)=>{var r=n(9974),o=n(6916),i=n(9670),a=n(6330),l=n(7659),u=n(6244),s=n(7976),c=n(8554),f=n(1246),d=n(9212),p=TypeError,v=function(e,t){this.stopped=e,this.result=t},h=v.prototype;e.exports=function(e,t,n){var m,y,g,b,w,x,S,E=n&&n.that,_=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),A=r(t,E),j=function(e){return m&&d(m,"normal",e),new v(!0,e)},P=function(e){return _?(i(e),k?A(e[0],e[1],j):A(e[0],e[1])):k?A(e,j):A(e)};if(O)m=e;else{if(!(y=f(e)))throw p(a(e)+" is not iterable");if(l(y)){for(g=0,b=u(e);b>g;g++)if((w=P(e[g]))&&s(h,w))return w;return new v(!1)}m=c(e,y)}for(x=m.next;!(S=o(x,m)).done;){try{w=P(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof w&&w&&s(h,w))return w}return new v(!1)}},9212:(e,t,n)=>{var r=n(6916),o=n(9670),i=n(8173);e.exports=function(e,t,n){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===t)throw n;if(l)throw a;return o(a),n}},3383:(e,t,n)=>{"use strict";var r,o,i,a=n(7293),l=n(614),u=n(30),s=n(9518),c=n(8052),f=n(5112),d=n(1913),p=f("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):v=!0),null==r||a((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=u(r)),l(r[p])||c(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},7497:e=>{e.exports={}},6244:(e,t,n)=>{var r=n(7466);e.exports=function(e){return r(e.length)}},6339:(e,t,n)=>{var r=n(7293),o=n(614),i=n(2597),a=n(9781),l=n(6530).CONFIGURABLE,u=n(2788),s=n(9909),c=s.enforce,f=s.get,d=Object.defineProperty,p=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),v=String(String).split("String"),h=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||l&&e.name!==t)&&d(e,"name",{value:t,configurable:!0}),p&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=v.join("string"==typeof t?t:"")),e};Function.prototype.toString=h((function(){return o(this)&&f(this).source||u(this)}),"toString")},4758:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5948:(e,t,n)=>{var r,o,i,a,l,u,s,c,f=n(7854),d=n(9974),p=n(1236).f,v=n(261).set,h=n(6833),m=n(1528),y=n(1036),g=n(5268),b=f.MutationObserver||f.WebKitMutationObserver,w=f.document,x=f.process,S=f.Promise,E=p(f,"queueMicrotask"),_=E&&E.value;_||(r=function(){var e,t;for(g&&(e=x.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},h||g||y||!b||!w?!m&&S&&S.resolve?((s=S.resolve(void 0)).constructor=S,c=d(s.then,s),a=function(){c(r)}):g?a=function(){x.nextTick(r)}:(v=d(v,f),a=function(){v(r)}):(l=!0,u=w.createTextNode(""),new b(r).observe(u,{characterData:!0}),a=function(){u.data=l=!l})),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},735:(e,t,n)=>{var r=n(133);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},133:(e,t,n)=>{var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,t,n)=>{var r=n(7854),o=n(614),i=n(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},8523:(e,t,n)=>{"use strict";var r=n(9662),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),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},2814:(e,t,n)=>{var r=n(7854),o=n(7293),i=n(1702),a=n(1340),l=n(3111).trim,u=n(1361),s=i("".charAt),c=r.parseFloat,f=r.Symbol,d=f&&f.iterator,p=1/c(u+"-0")!=-1/0||d&&!o((function(){c(Object(d))}));e.exports=p?function(e){var t=l(a(e)),n=c(t);return 0===n&&"-"==s(t,0)?-0:n}:c},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(1702),i=n(6916),a=n(7293),l=n(1956),u=n(5181),s=n(5296),c=n(7908),f=n(8361),d=Object.assign,p=Object.defineProperty,v=o([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(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!=d({},e)[n]||l(d({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,d=u.f,p=s.f;o>a;)for(var h,m=f(arguments[a++]),y=d?v(l(m),d(m)):l(m),g=y.length,b=0;g>b;)h=y[b++],r&&!i(p,m,h)||(n[h]=m[h]);return n}:d},30:(e,t,n)=>{var r,o=n(9670),i=n(6048),a=n(748),l=n(3501),u=n(490),s=n(317),c=n(6200),f=c("IE_PROTO"),d=function(){},p=function(e){return"