/*! * FormCreate商业版可视化表单设计器-让表单设计更简单 * fc-designer-pro v5.6.0 * (c) 2018-2025 FormCreate Team https://form-create.com/ * license 仅限于被授权主体(个人、企业或组织)使用 */ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-step-form{width:100%}._fc-step-form .van-step{line-height:1.4;text-align:left}._fc-popup.van-popup{display:flex;height:100%;padding-bottom:110px;padding-top:50px}._fc-popup-title{color:#333;font-size:16px;left:0;position:absolute;text-align:center;top:16px;width:100%}._fc-popup-content{display:flex;flex:1;overflow:auto}._fc-popup-footer{bottom:0;left:0;padding:10px;position:absolute;right:0}._fc-data-table{width:100%}._fc-data-table .ant-pagination{display:flex;margin-top:10px}._fc-data-table .ant-pagination.left{justify-content:flex-start}._fc-data-table .ant-pagination.center{justify-content:center}._fc-data-table .ant-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .ant-image{height:60px;max-width:150px}._fc-data-table ._fc-data-table-img-list .ant-image img{height:100%;object-fit:cover;width:100%}._fc-data-table .ant-btn+.ant-btn{margin-left:12px}._fc-table{overflow:auto}._fc-table>table{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-table-form .form-create .ant-form-item{margin-bottom:1px!important}._fc-table-form .ant-form-item-label,._fc-table-form .van-field__label{display:none!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .ant-cascader,._fc-tf-table .ant-input-number,._fc-tf-table .ant-picker,._fc-tf-table .ant-select,._fc-tf-table .ant-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .ant-form-item{margin-bottom:1px}._fc-infinite-table-form .ant-form-item-label,._fc-infinite-table-form .van-field__label{display:none!important}._fc-itf-table ._fc-itf-head-idx,._fc-itf-table ._fc-itf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-itf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-itf-sub-idx{width:30px}._fc-itf-btn,._fc-itf-edit{min-width:70px;text-align:center;width:70px}._fc-itf-btn .fc-icon{cursor:pointer}._fc-infinite-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-infinite-table-form._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-itf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-itf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-itf-table ._fc-itf-table>thead{display:none}._fc-itf-table ._fc-itf-table{border-right:0}._fc-itf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-itf-table tr{min-height:50px}._fc-itf-table ._fc-read-view{text-align:center;width:100%}._fc-itf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-itf-table td+td{border-left:1px solid #ebeef5}._fc-itf-table .ant-cascader,._fc-itf-table .ant-input-number,._fc-itf-table .ant-picker,._fc-itf-table .ant-select,._fc-itf-table .ant-slider{width:100%}._fc-infinite-table-form ._fc-itf-sub{padding:5px 0 5px 10px}._fc-itf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-itf-sub ._fc-tf-table{border:0}._fc-itf-idx+._fc-itf-idx,._fc-itf-sub-idx+._fc-itf-head-idx{border-left:0}._fc-itf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-nested-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-nested-table-form .form-create .ant-form-item{margin-bottom:1px!important}._fc-nested-table-form .ant-form-item-label,._fc-nested-table-form .van-field__label{display:none!important}._fc-ntf-table ._fc-ntf-head-idx,._fc-ntf-table ._fc-ntf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-ntf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-ntf-sub-idx{width:30px}._fc-ntf-btn,._fc-ntf-edit{min-width:70px;text-align:center;width:70px}._fc-ntf-btn .fc-icon{cursor:pointer}._fc-nested-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-nested-table-form._fc-disabled ._fc-ntf-btn .fc-icon,._fc-nested-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-ntf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-ntf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-ntf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-ntf-table tr{min-height:50px}._fc-ntf-table ._fc-read-view{text-align:center;width:100%}._fc-ntf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-ntf-table td+td{border-left:1px solid #ebeef5}._fc-ntf-table .ant-cascader,._fc-ntf-table .ant-input-number,._fc-ntf-table .ant-picker,._fc-ntf-table .ant-select,._fc-ntf-table .ant-slider{width:100%}._fc-nested-table-form ._fc-ntf-sub{background-color:#fafafa}._fc-ntf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-ntf-sub ._fc-tf-table{border:0}._fc-ntf-idx+._fc-ntf-idx,._fc-ntf-sub-idx+._fc-ntf-head-idx{border-left:0}._fc-ntf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-cell{display:inline-block}._fc-cell .ant-cascader,._fc-cell .ant-input-number,._fc-cell .ant-picker,._fc-cell .ant-select,._fc-cell .ant-slider{width:100%}._fc-line-form{display:flex;flex-wrap:wrap;width:100%}._fc-line-form .ant-form-item{flex:none;flex-wrap:nowrap;margin-inline-end:16px;margin-bottom:0}.form-create ._fc-line-form ._fc-line-form,.form-create ._fc-line-form ._fd-drag-item,.form-create ._fc-line-form ._fd-drag-tool,.form-create ._fc-line-form .ant-col-24{display:inline-flex;flex:initial;flex:unset!important;flex-wrap:wrap;max-width:100%;width:auto!important}._fc-m-con .form-create ._fc-line-form>.ant-col-24{width:100%!important}._fc-line-form .ant-select,._fc-line-form .ant-slider{width:220px}._fc-echarts{height:300px;width:100%}._fc-m-signature{width:100%}._fc-m-signature-btn,._fc-m-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-m-signature-btn{cursor:pointer}._fc-m-signature-preview>img{display:inline-block;height:88px}._fc-m-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-m-signature-btn i{font-size:14px}._fc-m-signature-dialog .van-dialog__header{padding:15px 0;position:relative}._fc-m-signature-dialog .icon-add2{color:var(--fc-text-color-3);display:inline-block;position:absolute;right:18px;transform:rotate(45deg)}._fc-m-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;width:100%}._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-iframe-box,._fc-video-box{width:100%}.form-create-m .van-checkbox--horizontal,.form-create-m .van-radio--horizontal{margin-bottom:5px}.form-create-m .ant-picker:before,.form-create-m .ant-select:before{border-bottom:1px solid var(--van-cell-border-color);bottom:-1px;box-sizing:border-box;content:" ";left:var(--van-padding-md);pointer-events:none;position:absolute;right:var(--van-padding-md);transform:scaleY(.5)}.form-create-m .ant-picker,.form-create-m .ant-select,.form-create-m .ant-tree{flex:1;padding:0}.form-create-m .ant-upload-picture-card-wrapper .ant-upload-list-item-container,.form-create-m .ant-upload-select-picture-card{height:60px!important;width:60px!important}.form-create-m .ant-upload-list-item{padding:0!important}.form-create-m .ant-upload-list-item:before{height:100%!important;width:100%!important}.form-create-m.is-preview .ant-upload,.form-create-m.is-preview .ant-upload-list-item-action{display:none!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")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-location:before{content:"\\e6d4"}.icon-qrcode:before{content:"\\e6ce"}.icon-input-id:before{content:"\\e6d1"}.icon-iframe:before{content:"\\e6d2"}.icon-audio:before{content:"\\e6d3"}.icon-form-model:before{content:"\\e6d5"}.icon-title:before{content:"\\e6d6"}.icon-sign:before{content:"\\e6d7"}.icon-address:before{content:"\\e6d8"}.icon-statistic:before{content:"\\e6d9"}.icon-barcode:before{content:"\\e6da"}.icon-video:before{content:"\\e6db"}.icon-avatar:before{content:"\\e6dc"}.icon-suspend:before{content:"\\e6cf"}.icon-warning:before{content:"\\e6d0"}.icon-send:before{content:"\\e6cc"}.icon-refresh2:before{content:"\\e6cd"}.icon-ai:before{content:"\\e6cb"}.icon-ai.bright{-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text}.icon-column4:before{content:"\\e6c7"}.icon-column3:before{content:"\\e6c6"}.icon-column2:before{content:"\\e6c8"}.icon-column1:before{content:"\\e6c9"}.icon-layout:before{content:"\\e6ca"}.icon-segmented:before{content:"\\e682"}.icon-mention:before{content:"\\e6c5"}.icon-input-tag:before{content:"\\e6c4"}.icon-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-alignitems-flexstart:before{content:"\\e67f";display:inline-block;transform:rotate(180deg)}.icon-align-center:before{content:"\\e6a5";display:inline-block;transform:rotate(90deg)}.icon-align-flexstart:before{content:"\\e6a4";display:inline-block;transform:rotate(90deg)}.icon-align-spacearound:before{content:"\\e670";display:inline-block;transform:rotate(-90deg)}.icon-align-spacebetween:before{content:"\\e695";display:inline-block;transform:rotate(-90deg)}.icon-align-stretch:before{content:"\\e6a7";display:inline-block;transform:rotate(-90deg)}.icon-align-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(-90deg)}.icon-justify-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(180deg)}.icon-direction-row:before{content:"\\e68b";display:inline-block;transform:rotate(180deg)}.icon-direction-column:before{content:"\\e68b";display:inline-block;transform:rotate(-90deg)}.icon-direction-columnreverse:before{content:"\\e68b";display:inline-block;transform:rotate(90deg)}.icon-arrow:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-cell:before{content:"\\e654"}.icon-table:before{content:"\\eb0a"}.icon-next-step:before{content:"\\e6b4";display:inline-block;transform:rotateY(180deg)}.icon-grid:before{content:"\\e65c";display:inline-block;transform:rotate(90deg)}.icon-alignitems-stretch:before{content:"\\e67e"}.icon-alignitems-flexend:before{content:"\\e67f"}.icon-check:before{content:"\\e680"}.icon-auto:before{content:"\\e681"}.icon-config-event:before{content:"\\e66e"}.icon-calendar:before{content:"\\e683"}.icon-config-style:before{content:"\\e684"}.icon-copy:before{content:"\\e676"}.icon-config-advanced:before{content:"\\e686"}.icon-config-props:before{content:"\\e687"}.icon-delete-circle2:before{content:"\\e688"}.icon-delete-circle:before,.icon-delete2:before{content:"\\e689"}.icon-delete:before{content:"\\e68a"}.icon-direction-rowreverse:before{content:"\\e68b"}.icon-display-flex:before{content:"\\e68c"}.icon-dialog:before{content:"\\e66f"}.icon-drag:before{content:"\\e68e"}.icon-display-block:before{content:"\\e68f"}.icon-data:before{content:"\\e690"}.icon-edit2:before{content:"\\e691"}.icon-edit:before{content:"\\e692"}.icon-add-col:before{content:"\\e693"}.icon-display-inlineblock:before{content:"\\e694"}.icon-config-base:before{content:"\\e6bf"}.icon-config-validate:before{content:"\\e696"}.icon-down:before{content:"\\e697"}.icon-display-inline:before{content:"\\e698"}.icon-eye:before{content:"\\e699"}.icon-eye-close:before{content:"\\e69a"}.icon-import:before{content:"\\e6a6"}.icon-preview:before{content:"\\e69b"}.icon-flex-nowrap:before{content:"\\e69c"}.icon-folder:before{content:"\\e69d"}.icon-form-circle:before{content:"\\e69e"}.icon-flex-wrap:before{content:"\\e69f"}.icon-form:before{content:"\\e6a0"}.icon-form-item:before{content:"\\e6a1"}.icon-icon:before{content:"\\e6a2"}.icon-image:before{content:"\\e6a3"}.icon-justify-flexstart:before{content:"\\e6a4"}.icon-justify-center:before{content:"\\e6a5"}.icon-justify-spacearound:before{content:"\\e670"}.icon-justify-stretch:before{content:"\\e6a7"}.icon-link2:before{content:"\\e6a8"}.icon-justify-spacebetween:before{content:"\\e695"}.icon-minus:before{content:"\\e6aa"}.icon-menu2:before{content:"\\e6ab"}.icon-more:before{content:"\\e6ac"}.icon-menu:before{content:"\\e6ad"}.icon-language:before{content:"\\e6ae"}.icon-pad:before{content:"\\e6af"}.icon-mobile:before{content:"\\e6b0"}.icon-page-max:before{content:"\\e6b1"}.icon-move:before{content:"\\e6b2"}.icon-page-min:before{content:"\\e6b3"}.icon-pre-step:before{content:"\\e6b4"}.icon-pc:before{content:"\\e6b5"}.icon-page:before{content:"\\e6b6"}.icon-refresh:before{content:"\\e6b7"}.icon-radius:before{content:"\\e6b8"}.icon-save-filled:before{content:"\\e6b9"}.icon-question:before{content:"\\e6ba"}.icon-scroll:before{content:"\\e6bb"}.icon-script:before{content:"\\e6bc"}.icon-setting:before{content:"\\e6bd"}.icon-save-online:before,.icon-save:before{content:"\\e6be"}.icon-task-add:before{content:"\\e68d"}.icon-shadow:before{content:"\\e6c0"}.icon-variable:before{content:"\\e6c1"}.icon-yes:before{content:"\\e6c2"}.icon-shadow-inset:before{content:"\\e6c3"}.icon-date:before{content:"\\e642"}.icon-date-range:before{content:"\\e643"}.icon-collapse:before{content:"\\e644"}.icon-slider:before{content:"\\e665"}.icon-switch:before{content:"\\e646"}.icon-subform:before{content:"\\e647"}.icon-time-range:before{content:"\\e685"}.icon-tree-select:before{content:"\\e649"}.icon-value:before{content:"\\e64a"}.icon-table-form3:before{content:"\\e6a9"}.icon-alert:before{content:"\\e64c"}.icon-card:before{content:"\\e64d"}.icon-checkbox:before{content:"\\e64e"}.icon-cascader:before{content:"\\e64f"}.icon-button:before{content:"\\e650"}.icon-data-table:before{content:"\\e651"}.icon-group:before{content:"\\e652"}.icon-divider:before{content:"\\e653"}.icon-flex:before{content:"\\e654"}.icon-descriptions:before{content:"\\e655"}.icon-html:before{content:"\\e656"}.icon-editor:before{content:"\\e657"}.icon-input:before{content:"\\e658"}.icon-link:before{content:"\\e659"}.icon-password:before{content:"\\e65a"}.icon-radio:before{content:"\\e65b"}.icon-row:before{content:"\\e65c"}.icon-inline:before{content:"\\e65d"}.icon-rate:before{content:"\\e65e"}.icon-color:before{content:"\\e65f"}.icon-select:before{content:"\\e660"}.icon-json:before{content:"\\e661"}.icon-number:before{content:"\\e662"}.icon-space:before{content:"\\e664"}.icon-step-form:before{content:"\\e663"}.icon-table-form:before{content:"\\e666"}.icon-table-form2:before{content:"\\e667"}.icon-time:before{content:"\\e668"}.icon-span:before{content:"\\e669"}.icon-textarea:before{content:"\\e66a"}.icon-tooltip:before{content:"\\e66b"}.icon-slot:before{content:"\\e66c"}.icon-transfer:before{content:"\\e66d"}.icon-upload:before{content:"\\e673"}.icon-tag:before{content:"\\e671"}.icon-watermark:before{content:"\\e672"}.icon-tab:before{content:"\\e674"}.icon-tree:before{content:"\\e675"}.icon-table:before{content:"\\e677"}.icon-add-child:before{content:"\\e678"}.icon-add2:before{content:"\\e679"}.icon-add:before{content:"\\e67a"}.icon-alignitems-baseline:before{content:"\\e67b"}.icon-add-circle:before{content:"\\e67c"}.icon-alignitems-center:before{content:"\\e67d"}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); (function(Ue,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("vant"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","vant","ant-design-vue"],l):(Ue=typeof globalThis<"u"?globalThis:Ue||self,l(Ue.formCreateMobile={},Ue.Vue,Ue.vant,Ue.antd))})(this,function(Ue,l,ln,$r){"use strict";/*! * @form-create/vant v3.2.18 * (c) 2018-2025 xaboy * Github https://github.com/xaboy/form-create * Released under the MIT License. */var uo="fcSubForm",lo=l.defineComponent({name:uo,props:{rule:Array,options:{type:Object,default:function(){return l.reactive({submitBtn:!1,resetBtn:!1})}},modelValue:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},formCreateInject:Object},data:function(){return{cacheValue:{},subApi:{},form:l.markRaw(this.formCreateInject.form.$form())}},emits:["fc:subform","update:modelValue","change","itemMounted"],watch:{modelValue:function(e){this.setValue(e)}},methods:{formData:function(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue:function(e){var n=JSON.stringify(e);this.cacheValue!==n&&(this.cacheValue=n,this.subApi.coverValue(e||{}))},add$f:function(e){var n=this;this.subApi=e,l.nextTick(function(){n.$emit("itemMounted",e)})}},render:function(){var e=this.form;return l.createVNode(e,{disabled:this.disabled,"onUpdate:modelValue":this.formData,modelValue:this.modelValue,"onEmit-event":this.$emit,"onUpdate:api":this.add$f,rule:this.rule,option:this.options,extendOption:!0},null)}});function Or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function G(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function po(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mo(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return po(t)}function go(t){var e=ho();return function(){var r=Mt(t),i;if(e){var a=Mt(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return mo(this,i)}}function oe(t){return vo(t)||_o(t)||yo(t)||bo()}function vo(t){if(Array.isArray(t))return fn(t)}function _o(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yo(t,e){if(!!t){if(typeof t=="string")return fn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fn(t,e)}}function fn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},Function:function(e){var n=this.getType(e);return n==="Function"||n==="AsyncFunction"},getType:function(e){var n=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(n)[1]},empty:function(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(function(t){j[t]=function(e){return j.type(e,t)}});function me(t,e){return{}.hasOwnProperty.call(t,e)}var wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sr={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(wo,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",u="hour",d="day",h="week",y="month",_="quarter",A="year",S="date",C="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var b=["th","st","nd","rd"],f=O%100;return"["+O+(b[(f-20)%10]||b[f]||b[0])+"]"}},L=function(O,b,f){var c=String(O);return!c||c.length>=b?O:""+Array(b+1-c.length).join(f)+O},Y={s:L,z:function(O){var b=-O.utcOffset(),f=Math.abs(b),c=Math.floor(f/60),m=f%60;return(b<=0?"+":"-")+L(c,2,"0")+":"+L(m,2,"0")},m:function k(O,b){if(O.date()1)return k(v[0])}else{var p=O.name;Z[p]=O,c=p}return!f&&c&&(ne=c),c||!f&&ne},se=function(O,b){if(X(O))return O.clone();var f=pe(b)=="object"?b:{};return f.date=O,f.args=arguments,new $e(f)},re=Y;re.l=ce,re.i=X,re.w=function(k,O){return se(k,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var $e=function(){function k(b){this.$L=ce(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[Q]=!0}var O=k.prototype;return O.parse=function(b){this.$d=function(f){var c=f.date,m=f.utc;if(c===null)return new Date(NaN);if(re.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var v=c.match(T);if(v){var p=v[2]-1||0,E=(v[7]||"0").substring(0,3);return m?new Date(Date.UTC(v[1],p,v[3]||1,v[4]||0,v[5]||0,v[6]||0,E)):new Date(v[1],p,v[3]||1,v[4]||0,v[5]||0,v[6]||0,E)}}return new Date(c)}(b),this.init()},O.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},O.$utils=function(){return re},O.isValid=function(){return this.$d.toString()!==C},O.isSame=function(b,f){var c=se(b);return this.startOf(f)<=c&&c<=this.endOf(f)},O.isAfter=function(b,f){return se(b)-1?[]:[t]}var Po="fcUploader";function Er(t,e){return pe(t)==="object"?t:{url:t,is_string:!0,name:ko(t),uid:e}}function Cr(t){return G(G({},t),{},{file:t,value:t})}function ko(t){return(""+t).split("/").pop()}var Vo=l.defineComponent({name:Po,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:[Array,String,Object],afterRead:Function,action:String,headers:Object,method:String,data:Object,uploadName:String,onSuccess:Function,onError:Function,maxCount:Number},emits:["update:modelValue","delete"],setup:function(e,n){var r=l.toRef(e,"afterRead"),i=l.toRef(e,"modelValue",[]),a=l.ref(Ze(i.value).map(Er).map(Cr));l.watch(function(){return i.value},function(s){a.value=Ze(s).map(Er).map(Cr)});var o=function(){var u=a.value.map(function(d){return d.is_string?d.url:d.value||d.url}).filter(function(d){return d!==void 0});n.emit("update:modelValue",e.maxCount===1?u[0]||"":u)};return{fileList:a,modelValue:i,onDelete:function(u){o(),n.emit("delete",u)},uploadFile:function(u){var d=this;if(u.status="uploading",r.value)return r.value(u);var h=e.data||{};h[e.uploadName||"file"]=u.file,e.formCreateInject.api.fetch({action:e.action,dataType:"formData",source:"upload",headers:e.headers||{},method:e.method||"post",data:h}).then(function(y){u.status="success",e.onSuccess&&e.onSuccess(y,u),o()}).catch(function(y){u.status="failed",u.message=d.formCreateInject.t("uploadFail")||"\u4E0A\u4F20\u5931\u8D25",e.onError&&e.onError(y,u)})}}},render:function(){var e=this;return l.createVNode(l.resolveComponent("van-uploader"),l.mergeProps(this.$attrs,{"model-value":this.fileList,"onUpdate:model-value":function(r){return e.fileList=r},afterRead:this.uploadFile,onDelete:this.onDelete}),null)}});function Mo(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!l.isVNode(t)}var Fo="fcRadio",To=l.defineComponent({name:Fo,inheritAttrs:!1,props:{modelValue:[String,Number],options:Array},emits:["update:modelValue"],setup:function(e,n){var r=l.toRef(e,"modelValue",[]),i=l.toRef(e,"options");return{options:i,modelValue:r,onInput:function(o){n.emit("update:modelValue",o)}}},render:function(){var e;return l.createVNode(l.resolveComponent("van-radio-group"),l.mergeProps({direction:"horizontal"},this.$attrs,{modelValue:this.modelValue,"onUpdate:modelValue":this.onInput}),Mo(e=(this.options||[]).map(function(n){var r=G({},n),i=n.text,a=n.value;return delete r.text,delete r.value,l.createVNode(l.resolveComponent("van-radio"),l.mergeProps({name:a},r),{default:function(){return[i||n.label||a]}})}))?e:{default:function(){return[e]}})}}),jo="fcDatePicker",Bo=l.defineComponent({name:jo,inheritAttrs:!1,props:{disabled:Boolean,clearable:Boolean,placeholder:String,modelValue:[String,Number],minDate:[String,Date],maxDate:[String,Date]},emits:["update:modelValue","fc.el"],setup:function(e,n){var r=l.ref(!1),i=l.toRef(e,"modelValue"),a=l.computed(function(){return i.value==null||i.value===""?[]:i.value.split("-")}),o=l.computed(function(){return{minDate:e.minDate?ct(e.minDate).toDate():void 0,maxDate:e.maxDate?ct(e.maxDate).toDate():void 0}}),s=function(d){n.emit("update:modelValue",d)};return{show:r,formValue:a,dateRange:o,open:function(){e.disabled||(r.value=!0)},confirm:function(d){var h=d.selectedValues;s(h.join("-")),r.value=!1},clear:function(d){d.stopPropagation(),s("")}}},render:function(){var e=this,n=function(){return e.$props.clearable&&e.modelValue?l.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return l.createVNode(l.Fragment,null,[l.createVNode(l.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.modelValue,border:!1,isLink:!0},{"right-icon":n}),l.createVNode(l.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[l.createVNode(l.resolveComponent("van-date-picker"),l.mergeProps({columnsType:["year","month","day"]},G(G({},e.$attrs),e.dateRange),{modelValue:e.formValue,onConfirm:e.confirm,onCancel:function(){return e.show=!1}}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),Io="fcTimePicker",No=l.defineComponent({name:Io,inheritAttrs:!1,props:{disabled:Boolean,clearable:Boolean,placeholder:String,modelValue:[String,Number]},emits:["update:modelValue","fc.el"],setup:function(e,n){var r=l.ref(!1),i=l.toRef(e,"modelValue"),a=l.computed(function(){return i.value==null||i.value===""?[]:i.value.split(":")}),o=function(u){n.emit("update:modelValue",u)};return{show:r,formValue:a,open:function(){e.disabled||(r.value=!0)},confirm:function(u){var d=u.selectedValues;o(d.join(":")),r.value=!1},clear:function(u){u.stopPropagation(),o("")}}},render:function(){var e=this,n=function(){return e.$props.clearable&&e.modelValue?l.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return l.createVNode(l.Fragment,null,[l.createVNode(l.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.modelValue,border:!1,isLink:!0},{"right-icon":n}),l.createVNode(l.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[l.createVNode(l.resolveComponent("van-time-picker"),l.mergeProps({columnsType:["hour","minute"]},e.$attrs,{modelValue:e.formValue,onConfirm:e.confirm,onCancel:function(){return e.show=!1}}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function ke(t,e,n){t[e]=n}function et(t,e){delete t[e]}function wt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=!1;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=e[i];if((r=Array.isArray(a))||j.Object(a)){var o=t[i]===void 0;if(r)r=!1,o&&ke(t,i,[]);else if(a._clone&&n!==void 0)if(n)a=a.getRule(),o&&ke(t,i,{});else{ke(t,i,a._clone());continue}else o&&ke(t,i,{});t[i]=wt(t[i],a,n)}else ke(t,i,a),j.Undef(a)||(j.Undef(a.__json)||(t[i].__json=a.__json),j.Undef(a.__origin)||(t[i].__origin=a.__origin))}return n!==void 0&&Array.isArray(t)?t.filter(function(s){return!s||!s.__ctrl}):t}function Be(t){return wt({},{value:t}).value}var Lo=Object.assign||function(t){for(var e,n=1;n0&&this.expandRule(n)},modelValue:{handler:function(e){var n=this;e=e||[];var r=this.sort,i=r.length,a=i-e.length;if(a<0){for(var o=a;o<0;o++)this.addRule(e.length+o,!0);for(var s=0;s0)for(var u=0;uthis.min&&a.push(this.delIcon(n,r)),this.sortBtn&&n&&a.push(this.sortUpIcon(n)),this.sortBtn&&n!==e-1&&a.push(this.sortDownIcon(n)),a},emitEvent:function(e,n,r,i){this.$emit.apply(this,[e].concat(oe(n),[this.cacheRule[i].$f,r]))},expandRule:function(e){for(var n=0;n0&&this.expandRule(n)},render:function(){var e=this,n=this.sort,r=this.button,i=this.form,a=this.disabled,o=n.length===0?this.$slots.default?this.$slots.default({vm:this,add:this.add}):l.createVNode("div",{key:"a_def",class:"_fc-m-group-plus-minus _fc-m-group-add fc-clock",onClick:this.add},null):n.map(function(s,u){var d=e.cacheRule[s],h=d.rule,y=d.options,_=r&&!a?e.makeIcon(n.length,u,s):[];return l.createVNode("div",{class:"_fc-m-group-container",key:s},[l.createVNode(i,l.mergeProps({key:s},{disabled:a,"onUpdate:modelValue":function(S){return e.formData(s,S)},"onEmit-event":function(S){for(var C=arguments.length,T=new Array(C>1?C-1:0),q=1;q-1&&ce.splice(se,1)}else X.subForm()},L=null;l.onBeforeMount(function(){l.watchEffect(function(){var Q="",X=i.option&&i.option.globalClass||{};Object.keys(X).forEach(function(ce){var se="";X[ce].style&&Object.keys(X[ce].style).forEach(function(re){se+=$t(re)+":"+X[ce].style[re]+";"}),X[ce].content&&(se+=X[ce].content+";"),se&&(Q+=".".concat(ce,"{").concat(se,"}"))}),i.option&&i.option.style&&(Q+=i.option.style),L||(L=document.createElement("style"),L.type="text/css",document.head.appendChild(L)),L.innerHTML=Q||""})});var Y=tt(function(){S.bus.$emit("$loadData.$topForm")},100),ne=tt(function(){S.bus.$emit("$loadData.$form")},100),Z=function(X){S.bus.$emit("change-$form."+X)};return l.onMounted(function(){o&&(C.top.bus.$on("$loadData.$form",Y),C.top.bus.$on("change",Z)),S.mounted()}),l.onBeforeUnmount(function(){o&&(C.top.bus.$off("$loadData.$form",Y),C.top.bus.$off("change",Z)),L&&document.head.removeChild(L),U(),A.destroyed=!0,S.unmount()}),l.onUpdated(function(){S.updated()}),l.watch(y,function(Q){Q?q():U()},{immediate:!0}),l.watch(function(){return oe(d.value)},function(Q){S.$handle.isBreakWatch()||Q.length===A.renderRule.length&&Q.every(function(X){return A.renderRule.indexOf(X)>-1})||(S.$handle.updateAppendData(),S.$handle.reloadRule(d.value),a.setupState.renderRule())}),l.watch(function(){return i.option},function(){S.initOptions(),C.refresh()},{deep:!0}),l.watch(function(){return[i.disabled,i.preview]},function(){C.refresh()}),l.watch(h,function(Q){JSON.stringify(Q||{})!==A.updateValue&&(C.config.forceCoverValue?C.coverValue(Q||{}):C.setValue(Q||{}))},{deep:!0,flush:"post"}),l.watch(function(){return i.index},function(){C.coverValue({}),S.$handle.updateAppendData(),l.nextTick(function(){l.nextTick(function(){C.clearValidateState()})})},{flush:"sync"}),G(G({fc:l.markRaw(S),parent:o&&l.markRaw(o),top:l.markRaw(s),fapi:l.markRaw(C)},l.toRefs(A)),{},{getGroupInject:function(){return Ft(a,o)},refresh:function(){++A.unique},renderRule:function(){A.renderRule=oe(d.value||[])},updateValue:function(X){if(!A.destroyed){var ce=JSON.stringify(X);A.updateValue!==ce&&(A.updateValue=ce,a.emit("update:modelValue",X),l.nextTick(function(){ne(),o||Y()}))}}})},created:function(){var i=l.getCurrentInstance();i.emit("update:api",i.setupState.fapi),i.setupState.fc.init()}})}var Ar=["props"],Dr=["class","style","directives"],Rr=["on","hook"],nt=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=[].concat(Ar,oe(r.normal||[])),a=[].concat(Dr,oe(r.array||[])),o=[].concat(Rr,oe(r.functional||[])),s=r.props||[];return e.reduce(function(u,d){for(var h in d)if(u[h])if(s.indexOf(h)>-1)u[h]=t([d[h]],u[h]);else if(i.indexOf(h)>-1)u[h]=G(G({},u[h]),d[h]);else if(a.indexOf(h)>-1){var y=u[h]instanceof Array?u[h]:[u[h]],_=d[h]instanceof Array?d[h]:[d[h]];u[h]=[].concat(oe(y),oe(_))}else if(o.indexOf(h)>-1)for(var A in d[h])if(u[h][A]){var S=u[h][A]instanceof Array?u[h][A]:[u[h][A]],C=d[h][A]instanceof Array?d[h][A]:[d[h][A]];u[h][A]=[].concat(oe(S),oe(C))}else u[h][A]=d[h][A];else if(h==="hook")for(var T in d[h])u[h][T]?u[h][T]=Qo(u[h][T],d[h][T]):u[h][T]=d[h][T];else u[h]=d[h];else i.indexOf(h)>-1||o.indexOf(h)>-1||s.indexOf(h)>-1?u[h]=G({},d[h]):a.indexOf(h)>-1?u[h]=d[h]instanceof Array?oe(d[h]):pe(d[h])==="object"?G({},d[h]):d[h]:u[h]=d[h];return u},n)},Qo=function(e,n){return function(){e&&e.apply(this,arguments),n&&n.apply(this,arguments)}},hn=["type","slot","ignore","emitPrefix","value","name","native","hidden","display","inject","options","emit","link","prefix","suffix","update","sync","optionsTo","key","slotUpdate","computed","preview","component","cache","modelEmit"],Tt=["validate","children","control"],jt=["effect","deep","renderSlots"];function Pr(){return[].concat(hn,oe(Ar),oe(Dr),oe(Rr),Tt,jt)}function kr(t,e,n){return"[form-create ".concat(t,"]: ").concat(e)+(n?` rule: `+JSON.stringify(n.getRule?n.getRule():n):"")}function pn(t,e){console.error(kr("err",t,e))}function Ko(t){pn(t.toString()),console.error(t)}function Ie(t){var e=t.replace(/(-[a-z])/g,function(n){return n.replace("-","").toLocaleUpperCase()});return Vr(e)}function Vr(t){return t.replace(t[0],t[0].toLowerCase())}var mn="[[FORM-CREATE-PREFIX-",gn="-FORM-CREATE-SUFFIX]]";function vn(t,e){return JSON.stringify(wt(Array.isArray(t)?[]:{},t,!0),function(n,r){if(!(r&&r._isVue===!0)){if(typeof r!="function")return r;if(r.__json)return r.__json;if(r.__origin&&(r=r.__origin),!r.__emit)return mn+r+gn}},e)}function _n(t){return new Function("return "+t)()}function ze(t,e){if(t&&j.String(t)&&t.length>4){var n=t.trim(),r=!1;try{if(n.indexOf(gn)>0&&n.indexOf(mn)===0)n=n.replace(gn,"").replace(mn,""),r=!0;else if(n.indexOf("$FN:")===0)n=n.substring(4),r=!0;else if(n.indexOf("$EXEC:")===0)n=n.substring(6),r=!0;else if(n.indexOf("$GLOBAL:")===0){var i=n.substring(8);return n=function(){for(var s=arguments.length,u=new Array(s),d=0;d0&&(n=Ie(n));var r="on".concat(Yo(n));Array.isArray(e[r])?e[r]=[].concat(oe(e[r]),[t.on[n]]):e[r]?e[r]=[e[r],t.on[n]]:e[r]=t.on[n]}),e.key=t.key,e.ref=t.ref,e.class=t.class,e.id=t.id,e.style=t.style,e.slot&&delete e.slot,e}function Bt(t,e){return Object.setPrototypeOf(t,e),t}var Nr=function(e,n){return typeof e=="string"?String(n):typeof e=="number"?Number(n):n},it={"==":function(e,n){return JSON.stringify(e)===JSON.stringify(Nr(e,n))},"!=":function(e,n){return!it["=="](e,n)},">":function(e,n){return e>n},">=":function(e,n){return e>=n},"<":function(e,n){return e-1},notOn:function(e,n){return!it.on(e,n)},in:function(e,n){return n&&n.indexOf&&n.indexOf(e)>-1},notIn:function(e,n){return!it.in(e,n)},between:function(e,n){return e>n[0]&&en[1]},empty:function(e){return j.empty(e)},notEmpty:function(e){return!j.empty(e)},pattern:function(e,n){return new RegExp(n,"g").test(e)}};function Ve(t,e){return(Array.isArray(e)?e:(e||"").split(".")).forEach(function(n){t!=null&&(t=t[n])}),t}function ea(t){for(var e=/{{\s*(.*?)\s*}}/g,n,r={};(n=e.exec(t))!==null;)n[1]&&(r[n[1]]=!0);return Object.keys(r)}function Lr(t){var e=t.split("."),n=[],r="";return e.forEach(function(i,a){a===0?r=i:r+="."+i,n.push(r)}),n.join(" && ")}function Ur(){return{props:{},on:{},options:[],children:[],hidden:!1,display:!0,value:void 0}}function It(t,e){return function(n,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=new wn(t,n,r,i,a);return e&&(j.Function(e)?e(o):o.props(e)),o}}function wn(t,e,n,r,i){this._data=J(Ur(),{type:t,title:e,field:n,value:r,props:i||{}}),this.event=this.on}J(wn.prototype,{getRule:function(){return this._data},setProp:function(e,n){return ke(this._data,e,n),this},modelField:function(e){return this._data.modelField=e,this},_clone:function(){var e=new this.constructor;return e._data=Fr(this._data),e}});function zr(t){t.forEach(function(e){wn.prototype[e]=function(n){return He(this._data,Se({},e,arguments.length<2?n:Se({},n,arguments[1]))),this}})}zr(Pr());var ta=It("");function na(t,e,n){var r=ta("",e);return r._data.type=t,r._data.title=n,r}function ra(){return{create:na,factory:It}}function ia(t,e,n){var r="fail to ".concat(t," ").concat(n.status,"'"),i=new Error(r);return i.status=n.status,i.url=t,i}function qr(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}function Gr(t){if(!(typeof XMLHttpRequest>"u")){var e=new XMLHttpRequest,n=t.action||"";if(e.upload&&t.onProgress&&e.upload.addEventListener("progress",function(o){o.percent=o.total>0?o.loaded/o.total*100:0,t.onProgress(o)}),t.query){var r=new URLSearchParams(t.query).toString();n.includes("?")?n+="&".concat(r):n+="?".concat(r)}e.onerror=function(s){t.onError(s)},e.onload=function(){if(e.status<200||e.status>=300)return t.onError(ia(n,t,e),qr(e));t.onSuccess(qr(e))},e.open(t.method||"get",n,!0);var i;(t.data||t.file)&&(t.file||(t.dataType||"").toLowerCase()!=="json"?(i=new FormData,Object.keys(t.data||{}).map(function(o){i.append(o,t.data[o])})):(i=JSON.stringify(t.data||{}),e.setRequestHeader("content-type","application/json"))),t.file&&i.append(t.filename,t.file,t.file.name),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var a=t.headers||{};Object.keys(a).forEach(function(o){a[o]!=null&&e.setRequestHeader(o,a[o])}),e.send(i)}}function Hr(t,e,n){return new Promise(function(r,i){(e||Gr)(G(G({},t),{},{onSuccess:function(o){var s=function(h){return h},u=ze(t.parse);j.Function(u)?s=u:u&&j.String(u)&&(s=function(h){return Ve(h,u)}),r(s(o,void 0,n))},onError:function(o){i(o)}}))})}function Ot(t){return Be(t)}function oa(t){function e(a){return j.Undef(a)?a=t.fields():Array.isArray(a)||(a=[a]),a}function n(a,o,s){e(a).forEach(function(u){t.getCtxs(u).forEach(function(d){ke(d.rule,o,s),t.$render.clearCache(d)})})}function r(){var a=t.subForm;return Object.keys(a).reduce(function(o,s){var u=a[s];return u&&(Array.isArray(u)?o.push.apply(o,oe(u)):o.push(u)),o},[])}var i={get config(){return t.options},set config(a){t.fc.options.value=a},get options(){return t.options},set options(a){t.fc.options.value=a},get form(){return t.form},get rule(){return t.rules},get parent(){return t.vm.setupState.parent&&t.vm.setupState.parent.setupState.fapi},get top(){return i.parent?i.parent.top:i},get children(){return r()},get siblings(){var a=t.vm.setupState.getGroupInject();if(a){var o=a.getSubForm();if(Array.isArray(o))return oe(o)}},get index(){var a=i.siblings;if(a){var o=a.indexOf(i);return o>-1?o:void 0}},formData:function(o){if(o==null){var s={};return Object.keys(t.form).forEach(function(u){t.ignoreFields.indexOf(u)===-1&&(s[u]=Ot(t.form[u]))}),s}else return e(o).reduce(function(u,d){return u[d]=i.getValue(d),u},{})},getValue:function(o){var s=t.getFieldCtx(o);return s?Ot(s.rule.value):t.options.appendValue!==!1&&me(t.appendData,o)?Ot(t.appendData[o]):void 0},coverValue:function(o){var s=G({},o||{});t.deferSyncValue(function(){t.appendData={},i.fields().forEach(function(u){var d=t.fieldCtx[u];if(d){var h=me(o,u);d.forEach(function(y){y.rule.value=h?o[u]:void 0}),delete s[u]}}),J(t.appendData,s)},!0)},setValue:function(o){var s=o;arguments.length>=2&&(s=Se({},o,arguments[1])),t.deferSyncValue(function(){Object.keys(s).forEach(function(u){var d=t.fieldCtx[u];if(!d)return t.appendData[u]=s[u];d.forEach(function(h){h.rule.value=s[u]})})},!0)},removeField:function(o){var s=t.getCtx(o);return t.deferSyncValue(function(){t.getCtxs(o).forEach(function(u){u.rm()})},!0),s?s.origin:void 0},removeRule:function(o){var s=o&&rt(o);if(!!s)return s.rm(),s.origin},fields:function(){return t.fields()},append:function(o,s,u){var d=t.sort.length-1,h,y=t.getCtx(s);if(y)if(u){if(h=y.getPending("children",y.rule.children),!Array.isArray(h))return;d=y.rule.children.length-1}else d=y.root.indexOf(y.origin),h=y.root;else h=t.rules;h.splice(d+1,0,o)},prepend:function(o,s,u){var d=0,h,y=t.getCtx(s);if(y)if(u){if(h=y.getPending("children",y.rule.children),!Array.isArray(h))return}else d=y.root.indexOf(y.origin),h=y.root;else h=t.rules;h.splice(d,0,o)},hidden:function(o,s){n(s,"hidden",!!o),t.refresh()},hiddenStatus:function(o){var s=t.getCtx(o);if(!!s)return!!s.rule.hidden},display:function(o,s){n(s,"display",!!o),t.refresh()},displayStatus:function(o){var s=t.getCtx(o);if(!!s)return!!s.rule.display},disabled:function(o,s){e(s).forEach(function(u){t.getCtxs(u).forEach(function(d){ke(d.rule.props,"disabled",!!o)})}),t.refresh()},all:function(o){return Object.keys(t.ctxs).map(function(s){var u=t.ctxs[s];return o?u.origin:u.rule})},model:function(o){return t.fields().reduce(function(s,u){var d=t.fieldCtx[u][0];return s[u]=o?d.origin:d.rule,s},{})},component:function(o){return Object.keys(t.nameCtx).reduce(function(s,u){var d=t.nameCtx[u].map(function(h){return o?h.origin:h.rule});return s[u]=d.length===1?d[0]:d,s},{})},bind:function(){return i.form},reload:function(o){t.reloadRule(o)},updateOptions:function(o){t.fc.updateOptions(o),i.refresh()},onSubmit:function(o){i.updateOptions({onSubmit:o})},sync:function(o){if(Array.isArray(o)){o.forEach(function(u){return i.sync(u)});return}var s=j.Object(o)?rt(o):t.getCtxs(o);!s||(s=Array.isArray(s)?s:[s],s.forEach(function(u){if(!u.deleted){var d=t.subForm[u.id];d&&(Array.isArray(d)?d.forEach(function(h){h.refresh()}):d&&d.refresh()),t.$render.clearCache(u)}}),t.refresh())},refresh:function(){r().forEach(function(o){o.refresh()}),t.$render.clearCacheAll(),t.refresh()},refreshOptions:function(){t.$manager.updateOptions(t.options),i.refresh()},hideForm:function(o){t.vm.setupState.isShow=!o},changeStatus:function(){return t.changeStatus},clearChangeStatus:function(){t.changeStatus=!1},updateRule:function(o,s){t.getCtxs(o).forEach(function(u){J(u.rule,s)})},updateRules:function(o){Object.keys(o).forEach(function(s){i.updateRule(s,o[s])})},mergeRule:function(o,s){t.getCtxs(o).forEach(function(u){He(u.rule,s)})},mergeRules:function(o){Object.keys(o).forEach(function(s){i.mergeRule(s,o[s])})},getRule:function(o,s){var u=t.getCtx(o);if(u)return s?u.origin:u.rule},getRenderRule:function(o){var s=t.getCtx(o);if(s)return s.prop},getRefRule:function(o){var s=t.getCtxs(o);if(s){var u=s.map(function(d){return d.rule});return u.length===1?u[0]:u}},setEffect:function(o,s,u){var d=t.getCtx(o);d&&s&&(s[0]==="$"&&(s=s.substr(1)),me(d.rule,"$"+s)&&ke(d.rule,"$"+s,u),me(d.rule,"effect")||(d.rule.effect={}),ke(d.rule.effect,s,u))},clearEffectData:function(o,s){var u=t.getCtx(o);u&&(s&&s[0]==="$"&&(s=s.substr(1)),u.clearEffectData(s),i.sync(o))},updateValidate:function(o,s,u){u?i.mergeRule(o,{validate:s}):n(o,"validate",s)},updateValidates:function(o,s){Object.keys(o).forEach(function(u){i.updateValidate(u,o[u],s)})},refreshValidate:function(){i.refresh()},resetFields:function(o){e(o).forEach(function(s){t.getCtxs(s).forEach(function(u){t.$render.clearCache(u),u.rule.value=Ot(u.defaultValue)})}),l.nextTick(function(){l.nextTick(function(){l.nextTick(function(){i.clearValidateState(o)})})}),o==null&&(j.Function(t.options.onReset)&&de(function(){return t.options.onReset(i)}),t.vm.emit("reset",i))},method:function(o,s){var u=i.el(o);if(!u||!u[s])throw new Error(kr("err","".concat(s," \u65B9\u6CD5\u4E0D\u5B58\u5728")));return function(){return u[s].apply(u,arguments)}},exec:function(o,s){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h2?d-2:0),y=2;y1?u-1:0),h=1;h-1&&n.indexOf("}}")>-1){var a=n,o=ea(n),s;if(o.forEach(function(u){var d=u.split("||"),h=d[0].trim();if(h){var y=(d[1]||"").trim(),_=r?r(h,y):i.fc.getLoadData(h,y);s=_,n=n.replaceAll("{{".concat(u,"}}"),_==null?"":_)}}),o.length===1&&a==="{{".concat(o[0],"}}"))return s}return n},loadFetchVar:function(n,r){var i=this,a=function(s){return i.loadStrVar(s,r)};return n.action=a(n.action||""),["headers","data","query"].forEach(function(o){if(n[o]){var s={};Object.keys(n[o]).forEach(function(u){s[a(u)]=a(n[o][u])}),n[o]=s}}),n}})}var Wr=["hook:updated","hook:mounted"];function da(t){J(t.prototype,{usePage:function(){var n=this,r=this.options.page;if(!!r){var i=25,a=ha(this.rules);j.Object(r)&&(r.first&&(i=parseInt(r.first,10)||i),r.limit&&(a=parseInt(r.limit,10)||a)),J(this,{first:i,limit:a,pageEnd:this.rules.length<=i}),this.bus.$on("page-end",function(){return n.vm.emit("page-end",n.api)}),this.pageLoad()}},pageLoad:function(){var n=this,r=function i(){n.pageEnd?(n.bus.$off(Wr,i),n.bus.$emit("page-end")):(n.first+=n.limit,n.pageEnd=n.rules.length<=n.first,n.loadRule(),n.refresh())};this.bus.$on(Wr,r)}})}function ha(t){return t.length<31?31:Math.ceil(t.length/3)}function pa(t){J(t.prototype,{clearNextTick:function(){this.nextTick&&clearTimeout(this.nextTick),this.nextTick=null},bindNextTick:function(n){var r=this;this.clearNextTick(),this.nextTick=setTimeout(function(){n(),r.nextTick=null},10)},render:function(){return++this.loadedId,this.vm.setupState.unique>0?this.$render.render():(this.vm.setupState.unique=1,[])}})}function ma(t){Object.defineProperties(t.origin,{__fc__:yn(l.markRaw(t),!0)}),t.rule!==t.origin&&Object.defineProperties(t.rule,{__fc__:yn(l.markRaw(t),!0)})}function Xr(t,e,n){var r=Nt(),i=!!e.field;J(this,{id:r,ref:r,wrapRef:r+"fi",rule:e,origin:e.__origin__||e,name:e.name,pending:{},none:!1,watch:[],linkOn:[],root:[],ctrlRule:[],children:[],parent:null,group:e.subRule?this:null,cacheConfig:null,prop:G({},e),computed:{},payload:{},refRule:{},input:i,el:void 0,exportEl:void 0,defaultValue:i?Be(n):void 0,field:e.field||void 0}),this.updateKey(),ma(this),this.update(t,!0)}J(Xr.prototype,{getParentGroup:function(){for(var e=this.parent;e;){if(e.group)return e;e=e.parent}},loadChildrenPending:function(){var e=this,n=this.rule.children||[];return Array.isArray(n)?n:this.loadPending({key:"children",origin:n,def:[],onLoad:function(i){e.$handle&&e.$handle.loadChildren(i,e)},onUpdate:function(i,a){e.$handle&&(i===a?e.$handle.loadChildren(i,e):e.$handle.updateChildren(e,i,a))},onReload:function(i){e.$handle?e.$handle.updateChildren(e,[],i):delete e.pending.children}})},loadPending:function(e){var n=this,r=e.key,i=e.origin,a=e.def,o=e.onLoad,s=e.onReload,u=e.onUpdate;if(this.pending[r]&&this.pending[r].origin===i)return this.getPending(r,a);delete this.pending[r];var d=i;if(j.Function(i)){var h=de(function(){return i({rule:n.rule,api:n.$api,update:function(_){var A=_||a,S=n.getPending(r,a);n.setPending(r,i,A),u&&u(A,S)},reload:function(){var _=n.getPending(r,a);delete n.pending[r],s&&s(_),n.$api&&n.$api.sync(n.rule)}})});h&&j.Function(h.then)?(h.then(function(y){var _=y||a;n.setPending(r,i,_),o&&o(_),n.$api&&n.$api.sync(n.rule)}).catch(function(y){console.error(y)}),d=a,this.setPending(r,i,d)):(d=h||a,this.setPending(r,i,d),o&&o(d))}return d},getPending:function(e,n){return this.pending[e]&&this.pending[e].value||n},setPending:function(e,n,r){this.pending[e]={origin:n,value:l.reactive(r)}},effectData:function(e){return this.payload[e]||(this.payload[e]={}),this.payload[e]},clearEffectData:function(e){e===void 0?this.payload={}:delete this.payload[e]},updateKey:function(e){this.key=Nt(),e&&this.parent&&this.parent.updateKey(e)},updateType:function(){this.originType=this.rule.type,this.type=Ie(this.rule.type),this.trueType=this.$handle.getType(this.originType)},setParser:function(e){this.parser=e,e.init(this)},initProp:function(){var e=this,n,r,i=G({},this.rule);delete i.children,delete i.validate,this.prop=He({},[i].concat(oe(Object.keys(this.payload).map(function(a){return e.payload[a]})),[this.computed])),this.prop.validate=[].concat(oe(((n=this.refRule)===null||n===void 0||(r=n.__$validate)===null||r===void 0?void 0:r.value)||[]),oe(this.prop.validate||[]))},initNone:function(){this.none=!(j.Undef(this.prop.display)||!!this.prop.display)},injectValidate:function(){return this.prop.validate},check:function(e){return this.vm===e.vm},unwatch:function(){this.watch.forEach(function(e){return e()}),this.watch=[],this.refRule={}},unlink:function(){this.linkOn.forEach(function(e){return e()}),this.linkOn=[]},link:function(){this.unlink(),this.$handle.appendLink(this)},watchTo:function(){this.$handle.watchCtx(this)},delete:function(){this.unwatch(),this.unlink(),this.rmCtrl(),this.parent&&this.parent.children.splice(this.parent.children.indexOf(this)>>>0,1),J(this,{deleted:!0,computed:{},parent:null,children:[],cacheConfig:null,none:!1})},rmCtrl:function(){this.ctrlRule.forEach(function(e){return e.__fc__&&e.__fc__.rm()}),this.ctrlRule=[]},rm:function(){var e=this,n=function(){var i=e.root.indexOf(e.origin);i>-1&&(e.root.splice(i,1),e.$handle&&e.$handle.refresh())};if(this.deleted){n();return}this.$handle.noWatch(function(){e.$handle.deferSyncValue(function(){e.rmCtrl(),n(),e.$handle.rmCtx(e),J(e,{root:[]})},e.input)})},update:function(e,n){J(this,{deleted:!1,$handle:e,$render:e.$render,$api:e.api,vm:e.vm,vNode:e.$render.vNode,updated:!1,cacheValue:this.rule.value}),!n&&this.unwatch(),this.watchTo(),this.link(),this.updateType()}});function ga(t){J(t.prototype,{nextRefresh:function(n){var r=this,i=this.loadedId;l.nextTick(function(){i===r.loadedId&&(n?n():r.refresh())})},parseRule:function(n){var r=this,i=jr(n);return Object.defineProperties(i,{__origin__:yn(n,!0)}),va(i),this.appendValue(i),[i,i.prefix,i.suffix].forEach(function(a){!a||r.loadFn(a,i)}),this.loadCtrl(i),i.update&&(i.update=ze(i.update)),i},loadFn:function(n,r){var i=this;["on","props","deep"].forEach(function(a){n[a]&&i.parseInjectEvent(r,n[a])})},loadCtrl:function(n){n.control&&n.control.forEach(function(r){r.handle&&(r.handle=ze(r.handle))})},syncProp:function(n){var r=this,i=n.rule;j.trueArray(i.sync)&&nt([{on:i.sync.reduce(function(a,o){return a[pe(o)==="object"&&o.event||"update:".concat(o)]=function(s){i.props[pe(o)==="object"&&o.prop||o]=s,r.vm.emit("sync",o,s,i,r.fapi)},a},{})}],n.computed)},loadRule:function(){var n=this;this.cycleLoad=!1,this.loading=!0,this.pageEnd&&this.bus.$emit("load-start"),this.deferSyncValue(function(){if(n._loadRule(n.rules),n.loading=!1,n.cycleLoad&&n.pageEnd)return n.loadRule();n.syncForm(),n.pageEnd&&n.bus.$emit("load-end"),n.vm.setupState.renderRule()})},loadChildren:function(n,r){if(this.cycleLoad=!1,this.loading=!0,this.bus.$emit("load-start"),this._loadRule(n,r),this.loading=!1,this.cycleLoad)return this.loadRule();this.syncForm(),this.bus.$emit("load-end"),this.$render.clearCache(r)},_loadRule:function(n,r){var i=this,a=function u(d){var h=n[d-1];if(!h||!h.__fc__)return d>0?u(d-1):-1;var y=i.sort.indexOf(h.__fc__.id);return y>-1?y:u(d-1)},o=function(d,h){j.trueArray(d)&&i._loadRule(d,h)},s=n.map(function(u,d){if(!(r&&!j.Object(u))&&!(!i.pageEnd&&!r&&d>=i.first)){if(u.__fc__&&u.__fc__.root===n&&i.ctxs[u.__fc__.id])return o(u.__fc__.loadChildrenPending(),u.__fc__),u.__fc__;var h=jr(u),y=function(){return!!(h.field&&i.fieldCtx[h.field]&&i.fieldCtx[h.field][0]!==u.__fc__)};i.fc.targetFormDriver("loadRule",{rule:h,api:i.api},i.fc),i.ruleEffect(h,"init",{repeat:y()}),y()&&i.vm.emit("repeat-field",u,i.api);var _,A=!1,S=!!u.__fc__,C=h.value;if(S){if(_=u.__fc__,C=_.defaultValue,_.deleted){if(Yr(_))return;_.update(i)}else if(!_.check(i)){if(Yr(_))return;n[d]=u=u._clone?u._clone():Mr(vn(u)),_=null,A=!0}}if(_)_.originType!==_.rule.type&&_.updateType(),i.bindParser(_),i.appendValue(_.rule),_.parent&&_.parent!==r&&i.rmSubRuleData(_);else{var T=i.parseRule(u);_=new Xr(i,T,C),i.bindParser(_)}i.parseEmit(_),i.syncProp(_),_.parent=r||null,_.root=n,i.setCtx(_),!A&&!S&&(i.effect(_,"load"),i.targetHook(_,"load")),i.effect(_,"created");var q=_.loadChildrenPending();if(_.parser.loadChildren===!1||o(q,_),!r){var U=a(d);U>-1||!d?i.sort.splice(U+1,0,_.id):i.sort.push(_.id)}var L=_.rule;return _.updated||(_.updated=!0,j.Function(L.update)&&i.bus.$once("load-end",function(){i.refreshUpdate(_,L.value,"init")}),i.effect(_,"loaded")),i.refreshControl(_)&&(i.cycleLoad=!0),_}}).filter(function(u){return!!u});r&&(r.children=s)},refreshControl:function(n){return n.input&&n.rule.control&&this.useCtrl(n)},useCtrl:function(n){var r=this,i=_a(n),a=[],o=this.api;if(!i.length)return!1;for(var s=function(A){var S=i[A],C=S.handle||function(q){return(it[S.condition||"=="]||it["=="])(q,S.value)};if(!j.trueArray(S.rule))return"continue";var T=G(G({},S),{},{valid:de(function(){return C(n.rule.value,o)}),ctrl:ya(n,S.rule),isHidden:j.String(S.rule[0])});if(T.valid&&T.ctrl||!T.valid&&!T.ctrl&&!T.isHidden)return"continue";a.push(T)},u=0;u>>0,1),h[S?"push":"unshift"](function(){Y==="disabled"||Y==="enabled"?r.api.disabled(!S,C):Y==="display"?r.api.display(S,C):Y==="required"?(C.forEach(function(Q){r.api.setEffect(Q,"required",S)}),S||r.api.clearValidateState(C)):r.api.hidden(!S,C)});return}if(S){y=!0;var ne={type:"fragment",native:!0,__ctrl:!0,children:C};n.ctrlRule.push(ne),r.bus.$once("load-start",function(){T?o.prepend(ne,T,U):q||U?o.append(ne,q||n.id,U):n.root.splice(n.root.indexOf(n.origin)+1,0,ne)})}else{n.ctrlRule.splice(n.ctrlRule.indexOf(L),1);var Z=rt(L);Z&&Z.rm()}})}),h.length&&(this.loading?h.length&&this.bus.$once("load-end",function(){h.forEach(function(_){return _()})}):h.length&&l.nextTick(function(){h.forEach(function(_){return _()})})),this.vm.emit("control",n.origin,this.api),this.effect(n,"control"),y},reloadRule:function(n){return this._reloadRule(n)},_reloadRule:function(n){var r=this;n||(n=this.rules);var i=G({},this.ctxs);this.clearNextTick(),this.initData(n),this.fc.rules=n,this.deferSyncValue(function(){r.bus.$once("load-end",function(){Object.keys(i).filter(function(a){return r.ctxs[a]===void 0}).forEach(function(a){return r.rmCtx(i[a])}),r.$render.clearCacheAll()}),r.reloading=!0,r.loadRule(),r.reloading=!1,r.refresh(),r.bus.$emit("reloading",r.api)}),this.bus.$off("next-tick",this.nextReload),this.bus.$once("next-tick",this.nextReload),this.bus.$emit("update",this.api)},refresh:function(){this.vm.setupState.refresh()}})}function va(t){var e=Ur();return Object.keys(e).forEach(function(n){me(t,n)||(t[n]=e[n])}),t}function _a(t){var e=t.rule.control||[];return j.Object(e)?[e]:e}function ya(t,e){for(var n=0;n>>0,1).length>0;return o.length||delete this[a][r],s},getFieldCtx:function(n){return(this.fieldCtx[n]||[])[0]},getNameCtx:function(n){return this.nameCtx[n]||[]},setCtx:function(n){var r=n.id,i=n.field,a=n.name,o=n.rule;this.ctxs[r]=n,a&&this.setIdCtx(n,a,"name"),n.input&&(this.setIdCtx(n,i,"field"),this.setFormData(n,n.parser.toFormValue(o.value,n)),this.isMounted&&!this.reloading&&this.vm.emit("change",n.field,o.value,n.origin,this.api))},getParser:function(n){var r=this.fc.parsers,i=this.fc.renderDriver;if(i){var a=i.parsers||{},o=a[n.originType]||a[Ie(n.type)]||a[n.trueType];if(o)return o}return r[n.originType]||r[Ie(n.type)]||r[n.trueType]||Lt},bindParser:function(n){n.setParser(this.getParser(n))},getType:function(n){var r=this.fc.CreateNode.aliasMap,i=r[n]||r[Ie(n)]||n;return Ie(i)},noWatch:function(n){this.noWatchFn||(this.noWatchFn=n),de(n),this.noWatchFn===n&&(this.noWatchFn=null)},watchCtx:function(n){var r=this,i=Pr();if(i.filter(function(o){return o[0]!=="_"&&o[0]!=="$"&&wa.indexOf(o)===-1}).forEach(function(o){var s=l.toRef(n.rule,o),u=o==="children";n.refRule[o]=s,n.watch.push(l.watch(u?function(){return j.Function(s.value)?s.value:oe(s.value||[])}:function(){return s.value},function(d,h){var y=s.value;if(!r.isBreakWatch()){if(u&&n.parser.loadChildren===!1){r.$render.clearCache(n),r.nextRefresh();return}if(r.watching=!0,l.nextTick(function(){r.targetHook(n,"watch",{key:o,oldValue:h,newValue:y})}),o==="hidden"&&Boolean(y)!==Boolean(h)&&(r.$render.clearCacheAll(),l.nextTick(function(){r.targetHook(n,"hidden",{value:y})})),o==="ignore"&&n.input||o==="hidden"&&n.input&&(n.rule.ignore==="hidden"||r.options.ignoreHiddenFields))r.syncForm();else if(o==="link"){n.link();return}else["props","on","deep"].indexOf(o)>-1?(r.parseInjectEvent(n.rule,y||{}),o==="props"&&n.input&&r.setFormData(n,n.parser.toFormValue(n.rule.value,n))):o==="emit"?r.parseEmit(n):["prefix","suffix"].indexOf(o)>-1?y&&r.loadFn(y,n.rule):o==="type"?(n.updateType(),r.bindParser(n)):u&&(j.Function(h)&&(h=n.getPending("children",[])),j.Function(y)&&(y=n.loadChildrenPending()),r.updateChildren(n,y,h));r.$render.clearCache(n),r.refresh(),r.watching=!1}},{deep:!u,sync:u}))}),n.refRule.__$title=l.computed(function(){var o=(pe(n.rule.title)==="object"?n.rule.title.title:n.rule.title)||"";if(o){var s=o.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);s&&(o=r.api.t(s[1]))}return o}),n.refRule.__$info=l.computed(function(){var o=(pe(n.rule.info)==="object"?n.rule.info.info:n.rule.info)||"";if(o){var s=o.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);s&&(o=r.api.t(s[1]))}return o}),n.refRule.__$validate=l.computed(function(){return Ze(n.rule.validate).map(function(o){var s=G({},o);if(s.message){var u=s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);u&&(s.message=r.api.t(u[1],{title:n.refRule.__$title.value}))}if(j.Function(s.validator)){var d=n;return s.validator=function(){for(var h,y=arguments.length,_=new Array(y),A=0;A-1:d.value!==Ve(n.rule,s))&&h(d.value),n.watch.push(l.watch(d,function(y){u=y,setTimeout(function(){h(y)})}))}))}),this.watchEffect(n)},compute:function(n,r){var i=this,a;if(pe(r)==="object"){var o=n.getParentGroup(),s=function h(y){if(y=Array.isArray(y)?{mode:"AND",group:y}:y,!j.trueArray(y.group))return!0;for(var _=y.mode==="OR",A=!0,S=function(U){var L=y.group[U],Y=void 0,ne=null;if(L.variable)ne=JSON.stringify(i.fc.getLoadData(L.variable)||"");else if(L.field)ne=Lr(L.field||"");else return{v:!0};var Z=L.compare;if(Z&&(Z=Lr(Z||"")),L.mode?Y=h(L):it[L.condition]?j.Function(L.handler)?Y=de(function(){return L.handler(i.api,n.rule)}):Y=new Function("$condition","$val","$form","$group","$rule","with($form){with(this){with($group){ return $condition['".concat(L.condition,"'](").concat(ne,", ").concat(Z||"$val","); }}}")).call(i.api.form,it,L.value,i.api.top.form,o?i.subRuleData[o.id]||{}:{},n.rule):Y=!1,_&&Y)return{v:!0};_||(A=A&&Y)},C=0;C-1&&this.sort.splice(d,1),this.$render.clearCache(n),n.delete(),this.effect(n,"deleted"),this.targetHook(n,"deleted"),o&&!this.fieldCtx[a]&&this.vm.emit("remove-field",a,n.rule,this.api),n.rule.__ctrl||this.vm.emit("remove-rule",n.rule,this.api),n}}})}function Oa(t){J(t.prototype,{mounted:function(){var n=this,r=function(){n.isMounted=!0,n.lifecycle("mounted")};this.pageEnd?r():this.bus.$once("page-end",r)},lifecycle:function(n){this.fc.targetFormDriver(n,this.api,this.fc),this.vm.emit(n,this.api),this.emitEvent(n,this.api)},emitEvent:function(n){for(var r,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o-1||(i.push(o),r.bus.$on("p:".concat(n.name,":").concat(o,":").concat(n.input?1:0),function(s,u){n[s]&&n[s].apply(n,oe(u))}))}),n._used=i},watchEffect:function(n){var r=this,i={required:function(){var o,s;return(me(n.rule,"$required")?n.rule.$required:(o=n.rule)===null||o===void 0||(s=o.effect)===null||s===void 0?void 0:s.required)||!1}};Object.keys(n.rule.effect||{}).forEach(function(a){i[a]=function(){return n.rule.effect[a]}}),Object.keys(n.rule).forEach(function(a){a[0]==="$"&&(i[a.substr(1)]=function(){return n.rule[a]})}),Object.keys(i).forEach(function(a){n.watch.push(l.watch(i[a],function(o){r.effect(n,"watch",Se({},a,o))},{deep:!0}))})},ruleEffect:function(n,r,i){this.emitEffect({rule:n,input:!!n.field,type:this.getType(n.type)},r,i)},effect:function(n,r,i){this.emitEffect({rule:n.rule,input:n.input,type:n.trueType,ctx:n,custom:i},r)},getEffect:function(n,r){if(me(n,"$"+r))return n["$"+r];if(me(n,"effect")&&me(n.effect,r))return n.effect[r]},emitEffect:function(n,r,i){var a=this,o=n.ctx,s=n.rule,u=n.input,d=n.type,h=n.custom;if(!(!d||["fcFragment","fragment"].indexOf(d)>-1)){var y=h||Object.keys(s).reduce(function(_,A){return A[0]==="$"&&(_[A.substr(1)]=s[A]),_},G({},s.effect||{}));Object.keys(y).forEach(function(_){var A=a.providers[_];if(!(!A||A.input&&!u)){var S;if(!A._c)S="*";else if(A._used.indexOf(d)>-1)S=d;else return;var C=G({value:y[_],getValue:function(){return a.getEffect(s,_)}},i||{});o&&(C.getProp=function(){return o.effectData(_)},C.clearProp=function(){return o.clearEffectData(_)},C.mergeProp=function(T){return He(C.getProp(),[T])},C.id=o.id),a.bus.$emit("p:".concat(_,":").concat(S,":").concat(A.input?1:0),r,[C,s,a.api])}})}}})}function Ea(t){return t.filter(function(e,n,r){return r.indexOf(e,0)===n})}function Ca(t){var e=t.components;if(Array.isArray(e)){var n=Ea(e.filter(function(r){return r!=="*"}));return n.length?n:!1}else return j.String(e)?[e]:!1}function qe(t){var e=this;Br(this,{options:function(){return t.options.value||{}},bus:function(){return t.bus},preview:function(){return t.vm.props.preview!=null?t.vm.props.preview:t.options.value.preview||!1}}),J(this,{fc:t,vm:t.vm,watching:!1,loading:!1,reloading:!1,noWatchFn:null,deferSyncFn:null,isMounted:!1,formData:l.reactive({}),subRuleData:l.reactive({}),subForm:{},form:l.reactive({}),appendData:{},ignoreFields:[],providers:{},cycleLoad:null,loadedId:1,nextTick:null,changeStatus:!1,pageEnd:!0,nextReload:function(){e.lifecycle("reload")}}),this.initData(t.rules),this.$manager=new t.manager(this),this.$render=new $n(this),this.api=t.extendApiFn.reduce(function(n,r){var i=de(function(){return r(n,e)});return i&&i!==n&&J(n,i),n},oa(this))}J(qe.prototype,{initData:function(e){J(this,{ctxs:{},fieldCtx:{},nameCtx:{},sort:[],rules:e})},init:function(){this.updateAppendData(),this.useProvider(),this.usePage(),this.loadRule(),this.$manager.__init(),this.lifecycle("created")},updateAppendData:function(){this.appendData=G(G(G({},this.options.formData||{}),this.fc.vm.props.modelValue||{}),this.appendData)},isBreakWatch:function(){return this.loading||this.noWatchFn||this.reloading},beforeFetch:function(e){var n=this;return new Promise(function(r){var i=n.options.beforeFetch&&de(function(){return n.options.beforeFetch(e,{api:n.api})});i&&j.Function(i.then)?i.then(r):r()})}}),fa(qe),da(qe),pa(qe),ga(qe),ba(qe),$a(qe),Oa(qe),Sa(qe);var xa="fcFragment",On=l.defineComponent({name:xa,inheritAttrs:!1,props:["vnode"],render:function(){return this.vnode}});function Aa(t){return Object.keys(t).map(function(e){var n=t[e],r=l.resolveDirective(e);if(!!r)return[r,n.value,n.arg,n.modifiers]}).filter(function(e){return!!e})}function Kr(t,e){var n=t.directives;return n?(Array.isArray(n)||(n=[n]),l.withDirectives(e,n.reduce(function(r,i){return r.concat(Aa(i))},[]))):e}function Da(){var t={};function e(){}return J(e.prototype,{make:function(r,i,a){return Kr(i,this.h(r,Ir(i),a))},makeComponent:function(r,i,a){try{return Kr(i,l.createVNode(r,Ir(i),a))}catch(o){return console.error(o),l.createVNode("")}},h:function(r,i,a){var o=l.getCurrentInstance().appContext.config.isNativeTag(r);o&&delete i.formCreateInject;try{return l.createVNode(o?r:l.resolveComponent(r),i,a)}catch(s){return console.error(s),l.createVNode("")}},aliasMap:t}),J(e,{aliasMap:t,alias:function(r,i){t[r]=i},use:function(r){Object.keys(r).forEach(function(i){var a=$t(i),o=sa(i).toLocaleLowerCase(),s=r[i];[i,a,o].forEach(function(u){e.alias(i,s),e.prototype[u]=function(d,h){return this.make(s,d,h)}})})}}),e}function Ra(t){var e=function(n){fo(i,n);var r=go(i);function i(){return co(this,i),r.apply(this,arguments)}return i}(Zr);return Object.assign(e.prototype,t),e}function Zr(t){J(this,{$handle:t,vm:t.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}J(Zr.prototype,{__init:function(){var e=this;this.$render=this.$handle.$render,this.$r=function(){var n;return(n=e.$render).renderRule.apply(n,arguments)}},updateKey:function(){this.key=Nt()},init:function(){},update:function(){},beforeRender:function(){},form:function(){return this.vm.refs[this.ref]},getSlot:function(e){var n=function r(i){if(i){var a=i.slots[e];return a||r(i.setupState.parent)}};return n(this.vm)},mergeOptions:function(e,n){var r=this;return nt(e.map(function(i){return r.tidyOptions(i)}),n,this.mergeOptionsRule)},updateOptions:function(e){this.$handle.fc.targetFormDriver("updateOptions",e,{handle:this.$handle,api:this.$handle.api}),this.options=this.mergeOptions([e],this.getDefaultOptions()),this.update()},tidyOptions:function(e){return e},tidyRule:function(e){},mergeProp:function(e){},getDefaultOptions:function(){return{}},render:function(e){}});var Pa=function(e){var n={name:"loadData",_fn:[],loaded:function(i,a,o){this.deleted(i);var s=Ze(i.getValue()),u=[];s.forEach(function(d){if(d&&(d.attr||d.template)){var h=function(S){var C;d.template?C=e.$handle.loadStrVar(d.template,S):d.handler&&j.Function(d.handler)?C=d.handler(S,a,o):C=S(d.attr,d.default),d.copy!==!1&&(C=Be(C));var T=d.modify?a:i.getProp();d.to==="child"?T.children?T.children[0]=C:T.children=[C]:Je(T,d.to||"options",C),o.sync(a)},y=function(S){return h(S)},_=e.watchLoadData(y);h=tt(h,d.wait||300),d.watch!==!1?u.push(_):_()}}),this._fn[i.id]=u},deleted:function(i){this._fn[i.id]&&(this._fn[i.id].forEach(function(a){a()}),delete this._fn[i.id]),i.clearProp()}};return n.watch=n.mounted,n},ka=function(e){var n={name:"t",_fn:[],loaded:function(i,a,o){this.deleted(i);var s=i.getValue()||{},u=[];Object.keys(s).forEach(function(d){var h=s[d];if(h){var y=pe(h)==="object",_=function(T){var q=e.t(y?h.attr:h,y?h.params:null,T),U=y&&h.modify?a:i.getProp();d==="child"?U.children?U.children[0]=q:U.children=[q]:Je(U,d,q),o.sync(a)},A=function(T){return _(T)},S=e.watchLoadData(A);_=tt(_,h.wait||300),h.watch!==!1?u.push(S):S()}}),this._fn[i.id]=u},deleted:function(i){this._fn[i.id]&&(this._fn[i.id].forEach(function(a){a()}),delete this._fn[i.id]),i.clearProp()}};return n.watch=n.loaded,n},Sn={name:"componentValidate",load:function(e,n,r){var i=e.getValue();if(!i||i.method===!1)e.clearProp(),r.clearValidateState([n.field]);else{j.Object(i)||(i={method:i});var a=i.method;delete i.method,e.getProp().validate=[G(G({},i),{},{validator:function(){var s=rt(n);if(s){for(var u=arguments.length,d=new Array(u),h=0;h>>0,1)},$emit:function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o1?g-1:0),w=1;w1&&arguments[1]!==void 0?arguments[1]:{};return $e(H,W)};z(w),P.config.globalProperties.$formCreate=w;var R=X();P.component(R.name,R),o.forEach(function(V){de(function(){return V(D,P)})})}}})}if(z(T),B(T),m("$cookie",La),m("$localStorage",Ua),m("$sessionStorage",za),A.use({fragment:"fcFragment"}),t.install&&$e.use(t),U(function(D,x){x.mixin({props:["formCreateInject"]})}),Z(ja),t.inherit){var I=t.inherit;I.components&&J(e,I.components),I.parsers&&J(n,I.parsers),I.directives&&J(r,I.directives),I.modelFields&&J(i,I.modelFields),I.providers&&J(d,I.providers),I.useApps&&J(o,I.useApps),I.maker&&J(h,I.maker),I.loadData&&J(_,I.loadData),I.formulas&&J(S,I.formulas)}var N=X();return Bt(N,T),Object.defineProperties(N,{fetch:{get:function(){return T.fetch},set:function(x){T.fetch=x}}}),N.util=T,N}var xn="hidden",Wa={name:xn,maker:Se({},xn,function(t,e){return It(xn)("",t,e)}),render:function(){return[]}},Xa={name:"FcRow",render:function(e,n){return n.vNode.col({props:{span:24}},{default:function(){return[n.vNode.row(n.prop,e)]}})}},Ya={name:"checkbox",mergeProp:function(e){var n=e.prop.props;me(n,"options")||(n.options=e.prop.options||[])}},Ja={name:"radio",mergeProp:function(e){var n=e.prop.props;me(n,"options")||(n.options=e.prop.options||[])}},Qa={name:"select",mergeProp:function(e){var n=e.prop.props;me(n,"options")||(n.options=e.prop.options||[])}},Ka={name:"cascader",mergeProp:function(e){var n=e.prop.props;me(n,"options")||(n.options=e.prop.options||[])}},Za=[Wa,Xa,Ka,Ya,Ja,Qa],De="van",es={button:De+"-button",icon:De+"-icon",slider:De+"-slider",stepper:De+"-stepper",rate:De+"-rate",uploader:"fc-uploader",cell:De+"-cell",timePicker:"fc-time-picker",datePicker:"fc-date-picker",switch:De+"-switch",select:"fc-select",cascader:"fc-cascader",calendar:"fc-calendar",checkbox:"fc-checkbox",radio:"fc-radio",input:De+"-field",field:De+"-field",formItem:De+"-field",form:De+"-form",col:De+"-col",row:De+"-row",group:"fc-group",array:"fc-group",object:"fc-sub-form",subForm:"fc-sub-form"};function ts(){return{form:{required:"auto",labelAlign:"right",inputAlign:"right"},row:{show:!0,gutter:0},submitBtn:{type:"primary",loading:!1,disabled:!1,block:!0,innerText:"",size:"small",show:!0,col:void 0,click:void 0},resetBtn:{type:"default",loading:!1,disabled:!1,block:!0,innerText:"",size:"small",show:!1,col:void 0,click:void 0}}}function ti(t,e){if(!!me(t,e)&&j.String(t[e])){var n;t[e]=(n={},Se(n,e,t[e]),Se(n,"show",!0),n)}}function We(t){return t===!1}function ns(t,e){me(t,e)&&!j.Object(t[e])&&(t[e]={show:!!t[e]})}function ni(t){var e=G({},t);return delete e.children,e}var rs={validate:function(){var e=this.form();return e?e.validate():new Promise(function(n){return n()})},validateField:function(e){var n=this;return new Promise(function(r,i){var a=n.form();a?a.validate(e).then(r).catch(i):r()})},clearValidateState:function(e){var n=this.form();if(n)return n.resetValidation(e.id)},tidyOptions:function(e){return["submitBtn","resetBtn","row","info","wrap","col","title"].forEach(function(n){ns(e,n)}),e},tidyRule:function(e){var n=e.prop;return ti(n,"title"),ti(n,"info"),n},mergeProp:function(e){var n=this,r={info:{icon:!0},title:{},col:{span:24},wrap:{}};["info","wrap","col","title"].forEach(function(i){e.prop[i]=nt([n.options[i]||{},e.prop[i]||{}],r[i])})},getDefaultOptions:function(){return ts()},update:function(){var e=this.options.form;this.rule={props:G({},e),on:{submit:function(r){r.preventDefault()}},class:[e.className,e.class,"form-create-m",this.$handle.preview?"is-preview":""],style:e.style,type:"form"}},beforeRender:function(){var e=this.key,n=this.ref;J(this.rule,{key:e,ref:n})},render:function(e){var n=this;return e.slotLen()&&!this.$handle.preview&&e.setSlot(void 0,function(){return n.makeFormBtn()}),this.$r(this.rule,We(this.options.row.show)?e.getSlots():[this.makeRow(e)])},makeWrap:function(e,n){var r=this,i=e.prop,a="".concat(this.key).concat(e.key),o=i.col,s=this.isTitle(i)&&i.wrap.title!==!1,u=this.rule.props.col;delete i.wrap.title;var d=We(i.wrap.show)?n:this.$r(nt([i.wrap,{props:G(G({modelValue:e.rule.value,label:s?i.title.title:void 0},ni(i.wrap||{})),{},{name:e.id,rules:e.injectValidate()}),class:this.$render.mergeClass(i.className,"fc-form-item"),key:"".concat(a,"fi"),ref:e.wrapRef,type:"formItem"}]),G({input:function(){return n}},s?{label:function(){return r.makeInfo(i,a,e)}}:{}));return We(u)||We(o.show)?d:this.makeCol(i,a,[d])},isTitle:function(e){if(this.options.form.title===!1)return!1;var n=e.title;return!(!n.title&&!n.native||We(n.show))},makeInfo:function(e,n,r){var i,a,o=G({},e.title),s=G({},e.info),u=this.getSlot("title"),d=[u?u({title:(i=r.refRule)===null||i===void 0?void 0:i.__$title.value,rule:r.rule,options:this.options}):(a=r.refRule)===null||a===void 0?void 0:a.__$title.value],h=!We(s.show)&&(s.info||s.native)&&!We(s.icon);h&&d[s.align!=="left"?"unshift":"push"](this.$r({type:s.icon===!0?"icon-warning":s.icon,style:"width:1em;"}));var y=nt([o,{props:ni(o),key:"".concat(n,"tit"),class:"fc-form-title",type:o.type||"span"}]);return h&&s.info&&!y.props.onClick&&(y.props.onClick=function(){var _;ln.showNotify({type:"warning",message:(_=r.refRule)===null||_===void 0?void 0:_.__$info.value,duration:1e3})}),delete y.props.show,delete y.props.title,delete y.props.native,this.$r(y,d)},makeCol:function(e,n,r){var i=e.col;return this.$r({class:this.$render.mergeClass(i.class,"fc-form-col"),type:"col",props:i||{span:24},key:"".concat(n,"col")},r)},makeRow:function(e){var n=this.options.row||{};return this.$r({type:"row",props:n,class:this.$render.mergeClass(n.class,"fc-form-row"),key:"".concat(this.key,"row")},e)},makeFormBtn:function(){var e=[];if(We(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),We(this.options.resetBtn.show)||e.push(this.makeResetBtn()),!!e.length)return this.$r({type:"cell",class:"fc-form-cell fc-form-footer",key:"".concat(this.key,"fb")},e)},makeResetBtn:function(){var e=this,n=G({},this.options.resetBtn),r=n.innerText||this.$handle.api.t("reset")||"\u91CD\u7F6E";return delete n.innerText,delete n.click,delete n.col,delete n.show,this.$r({type:"button",props:n,class:"fc-reset-btn",style:{width:n.width},on:{click:function(){var a=e.$handle.api;e.options.resetBtn.click?e.options.resetBtn.click(a):a.resetFields()}},key:"".concat(this.key,"b2")},[r])},makeSubmitBtn:function(){var e=this,n=G({},this.options.submitBtn),r=n.innerText||this.$handle.api.t("submit")||"\u63D0\u4EA4";return delete n.innerText,delete n.click,delete n.col,delete n.show,this.$r({type:"button",props:n,class:"fc-submit-btn",style:{width:n.width},on:{click:function(){var a=e.$handle.api;e.options.submitBtn.click?e.options.submitBtn.click(a):a.submit().catch(function(){})}},key:"".concat(this.key,"b1")},[r])}};function is(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var os='.form-create-m{width:100%}.form-create-m .fc-none,.form-create-m.is-preview .fc-clock{display:none!important}.form-create-m .van-field:has(.van-field__value>.van-field__body>.van-field__control>.van-field):after{display:none}.form-create-m .van-field>.van-field__value>.van-field__body>.van-field__control>*>.van-field:after,.form-create-m .van-field>.van-field__value>.van-field__body>.van-field__control>.van-field:after{display:block;right:0}.form-create-m .fc-form-item>.van-field__value>.van-field__body>.van-field__control>.van-cell{padding:0}.form-create-m .fc-form-item .fc-form-item{--van-padding-md:0;padding-left:0;padding-right:0}.form-create-m>.van-row>.van-col--24:last-of-type>.van-cell:last-of-type:after{display:none}.form-create-m .fc-reset-btn{margin-top:12px}.form-create-m .fc-form-title{align-items:center;display:inline-flex}.form-create-m.is-preview .van-field__label--required:before{display:none}._fc-m-group{align-items:flex-end;display:flex;flex-direction:column;justify-content:center;min-height:38px;width:100%}._fc-m-group-disabled ._fc-m-group-add,._fc-m-group-disabled ._fc-m-group-btn{cursor:not-allowed}._fc-m-group-handle{background-color:#fff;border:1px dashed #d9d9d9;border-radius:15px;bottom:-15px;display:flex;flex-direction:row;padding:3px 8px;position:absolute;right:30px;transform:scale(1.1)}._fc-m-group-btn{cursor:pointer}._fc-m-group-idx{align-items:center;background:#eee;border-radius:15px;bottom:-15px;display:flex;font-weight:700;height:30px;justify-content:center;left:10px;position:absolute;width:30px}._fc-m-group-handle ._fc-m-group-btn+._fc-m-group-btn{margin-left:7px}._fc-m-group-container{border:1px dashed #d9d9d9;border-radius:5px;box-sizing:border-box;display:flex;flex-direction:column;margin-bottom:25px;padding:5px 5px 25px;position:relative;width:100%}._fc-m-group-arrow{height:20px;position:relative;width:20px}._fc-m-group-arrow:before{border-left:2px solid #999;border-top:2px solid #999;content:"";height:9px;left:5px;position:absolute;top:8px;transform:rotate(45deg);width:9px}._fc-m-group-arrow._fc-m-group-down{transform:rotate(180deg)}._fc-m-group-plus-minus{cursor:pointer;height:20px;position:relative;width:20px}._fc-m-group-plus-minus:after,._fc-m-group-plus-minus:before{background-color:#409eff;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%}._fc-m-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-m-group-plus-minus._fc-m-group-minus:before{display:none}._fc-m-group-plus-minus._fc-m-group-minus:after{background-color:#f56c6c}._fc-m-group-add{border:1px solid rgba(64,158,255,.5);border-radius:15px;cursor:pointer;height:25px;transform:scale(1.1);width:25px}._fc-m-group-add._fc-m-group-plus-minus:after,._fc-m-group-add._fc-m-group-plus-minus:before{width:50%}';is(os);function ri(t,e){return j.Boolean(t)?t={show:t}:!j.Undef(t)&&!j.Object(t)&&(t={show:e}),t}function as(t,e){return{formEl:function(){return e.$manager.form()},wrapEl:function(r){var i=e.getFieldCtx(r);if(!!i)return e.vm.refs[i.wrapRef]},validate:function(r){return new Promise(function(i,a){var o=t.children,s=[e.$manager.validate()];o.forEach(function(u){s.push(u.validate())}),Promise.all(s).then(function(){i(!0),r&&r(!0)}).catch(function(u){a(u),r&&r(u),e.vm.emit("validate-fail",u,{api:t})})})},validateField:function(r,i){return new Promise(function(a,o){var s=e.getFieldCtx(r);if(!!s){var u=e.subForm[s.id],d=[e.$manager.validateField(s.id)];Ze(u).forEach(function(h){d.push(h.validate())}),Promise.all(d).then(function(){a(null),i&&i(null)}).catch(function(h){o(h),i&&i(h),e.vm.emit("validate-field-fail",h,{field:r,api:t})})}})},clearValidateState:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;t.helper.tidyFields(r).forEach(function(o){a&&i.clearSubValidateState(o),e.getCtxs(o).forEach(function(s){e.$manager.clearValidateState(s)})})},clearSubValidateState:function(r){t.helper.tidyFields(r).forEach(function(i){e.getCtxs(i).forEach(function(a){var o=e.subForm[a.id];!o||(Array.isArray(o)?o.forEach(function(s){s.clearValidateState()}):o&&o.clearValidateState())})})},btn:{loading:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.submitBtnProps({loading:!!r})},disabled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.submitBtnProps({disabled:!!r})},show:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.submitBtnProps({show:!!r})}},resetBtn:{loading:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.resetBtnProps({loading:!!r})},disabled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.resetBtnProps({disabled:!!r})},show:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t.resetBtnProps({show:!!r})}},submitBtnProps:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=ri(e.options.submitBtn,!0);J(i,r),e.options.submitBtn=i,t.refreshOptions()},resetBtnProps:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=ri(e.options.resetBtn,!1);J(i,r),e.options.resetBtn=i,t.refreshOptions()},submit:function(r,i){return new Promise(function(a,o){t.validate().then(function(){var s=t.formData();j.Function(r)&&de(function(){return r(s,t)}),j.Function(e.options.onSubmit)&&de(function(){return e.options.onSubmit(s,t)}),e.vm.emit("submit",s,t),a(s)}).catch(function(){for(var s=arguments.length,u=new Array(s),d=0;d-1?[]:[t]}function fs(t,e){return Object.keys(t).reduce(function(n,r){return(!e||e.indexOf(r)===-1)&&n.push(t[r]),n},[])}var ai={name:"PlusOutlined"},ds={class:"anticon"},hs=l.createElementVNode("svg",{height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[l.createElementVNode("defs"),l.createElementVNode("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",fill:"currentColor"}),l.createElementVNode("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z",fill:"currentColor"})],-1),ps=[hs];function ms(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("span",ds,ps)}ai.render=ms;var si={name:"UploadOutlined"},gs={class:"anticon"},vs=l.createElementVNode("svg",{focusable:"false","data-icon":"upload",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[l.createElementVNode("path",{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})],-1),_s=[vs];function ys(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("span",gs,_s)}si.render=ys;var ui=function(e,n){return zt(e)==="object"?e:{url:e,is_string:!0,name:bs(e),status:"done",uid:-1*(n+1)}},bs=function(e){return(""+e).split("/").pop()},li=function(e){return Dn(Dn({},e),{},{file:e,value:e})},ws="fcUpload",$s=l.defineComponent({name:ws,inheritAttrs:!1,formCreateParser:{toFormValue:function(e){return cs(e)},toValue:function(e,n){return n.prop.props.limit===1?e[0]||"":e}},props:{limit:{type:Number,default:0},modelValue:{type:[Array,String,Object],default:function(){return[]}},onSuccess:{type:Function,required:!0},onPreview:Function,listType:String,modalTitle:String,previewMask:void 0},emits:["update:modelValue","change","fc.el"],data:function(){return{previewImage:"",previewVisible:!1,uploadList:this.modelValue.map(ui).map(li)}},watch:{modelValue:function(e){this.uploadList=e.map(ui).map(li)}},methods:{handlePreview:function(e){this.onPreview?this.onPreview.apply(this,arguments):(this.previewImage=e.url,this.previewVisible=!0)},handleChange:function(e){var n=e.file,r=e.fileList;this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),this.uploadList=r,n.status==="done"?(this.onSuccess(n,r),this.input()):n.status==="removed"&&(r.forEach(function(i,a){i.file===n&&r.splice(a,1)}),this.input())},input:function(){this.$emit("update:modelValue",this.uploadList.map(function(e){return e.is_string?e.url:e.value||e.url}))}},render:function(){var e,n,r=this,i=!this.limit||this.limit>this.uploadList.length,a=l.resolveComponent("AModal"),o=oi({},a.props.open?"open":"visible",this.previewVisible);return l.createVNode(l.Fragment,null,[l.createVNode(l.resolveComponent("AUpload"),l.mergeProps({maxCount:this.limit,listType:this.listType||"picture-card"},this.$attrs,{onPreview:this.handlePreview,onChange:this.handleChange,fileList:this.uploadList,ref:"upload"}),Dn({default:function(){return[i?(e=(n=r.$slots).default)!==null&&e!==void 0&&e.call(n)||["text","picture"].indexOf(r.listType)===-1?l.createVNode(ai,{style:"font-size: 16px; width: 16px;"},null):l.createVNode(l.resolveComponent("AButton"),null,{default:function(){return[l.createVNode(si,null,null),l.createTextVNode("\u70B9\u51FB\u4E0A\u4F20")]}}):null]}},fs(this.$slots,["default"]))),l.createVNode(a,l.mergeProps({mask:this.previewMask,title:this.modalTitle},o,{onCancel:function(){return r.previewVisible=!1},footer:null}),{default:function(){return[l.createVNode("img",{style:"width: 100%",src:r.previewImage},null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.upload)}});const Fe={type(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!Fe.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const e=this.getType(t);return e==="Function"||e==="AsyncFunction"},getType(t){const e=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(e)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{Fe[t]=function(e){return Fe.type(e,t)}});function Rn(t,e){return{}.hasOwnProperty.call(t,e)}const ft={Add:(t,e)=>{let n,r,i;try{n=t.toString().split(".")[1].length}catch{n=0}try{r=e.toString().split(".")[1].length}catch{r=0}return i=Math.pow(10,Math.max(n,r)),(t*i+e*i)/i},Sub:(t,e)=>{let n,r,i;try{n=t.toString().split(".")[1].length}catch{n=0}try{r=e.toString().split(".")[1].length}catch{r=0}i=Math.pow(10,Math.max(n,r));let a=n>=r?n:r;return Number(((t*i-e*i)/i).toFixed(a))},Mul:(t,e)=>{let n=0,r=t.toString(),i=e.toString();try{n+=r.split(".")[1].length}catch{}try{n+=i.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)},Div:(t,e)=>{let n=0,r=0;try{n=t.toString().split(".")[1].length}catch{}try{r=e.toString().split(".")[1].length}catch{}let i=Number(t.toString().replace(".","")),a=Number(e.toString().replace(".",""));return i/a*Math.pow(10,r-n)}},St={ADD:function(t,e){return ft.Add(t,e)},SUB:function(t,e){return ft.Sub(t,e)},MUL:function(t,e){return ft.Mul(t,e)},DIV:function(t,e){return ft.Div(t,e)},SUM:function(...t){return(t||[]).reduce((e,n)=>ft.Add(e,Array.isArray(n)?St.SUM(...n):n||0),0)},MAX:function(...t){const e=Array.isArray(t[0])?t[0]:t;return Math.max(...e.map(n=>parseFloat(n)).filter(n=>!isNaN(n)))},MIN:function(...t){const e=Array.isArray(t[0])?t[0]:t;return Math.min(...e.map(n=>parseFloat(n)).filter(n=>!isNaN(n)))},ABS:function(t){return parseFloat(Math.abs(t))||0},AVG:function(...t){const e=Array.isArray(t[0])?t[0]:t;return e.length?ft.Div(St.SUM(e),e.length):0},POWER:function(t,e){return Math.pow(parseFloat(t),parseFloat(e))},RAND:function(){return Math.random()},CEIL:function(t){return Math.ceil(parseFloat(t))||0},FLOOR:function(t){return Math.floor(parseFloat(t)||0)},FIXED:function(t,e){const n=Math.pow(10,e||0);return(Math.floor(parseFloat(t)*n)/n).toFixed(e||0)},ISNUMBER:function(t){return t===""||t===null?!1:!isNaN(Number(t))},PI:function(){return Number(Math.PI)},ROUND:function(t,e){return t=parseFloat(t),isNaN(t)?0:parseFloat(t.toFixed(parseFloat(e)||0))},SQRT:function(t){return Math.sqrt(parseFloat(t))||0},TONUMBER:function(t){return parseFloat(t)||0},NOW:function(){const t=new Date,e=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),i=("0"+t.getHours()).slice(-2),a=("0"+t.getMinutes()).slice(-2),o=("0"+t.getSeconds()).slice(-2);return e+"-"+n+"-"+r+" "+i+":"+a+":"+o},TODAY:function(){const t=new Date,e=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2);return e+"-"+n+"-"+r},YEAR:function(t){return t?new Date(t).getFullYear():null},MONTH:function(t){return t?new Date(t).getMonth()+1:null},DAY:function(t){return t?new Date(t).getDate():null},HOUR:function(t){return t?new Date(t).getHours():null},MINUTE:function(t){return t?new Date(t).getMinutes():null},SECOND:function(t){return t?new Date(t).getSeconds():null},DIFFDAYS:function(t,e){const n=new Date(t),r=new Date(e);return parseInt(Math.ceil(Math.abs(r.getTime()-n.getTime())/(1e3*60*60*24)))},DIFFHOURS:function(t,e){const n=new Date(t),r=new Date(e);return parseFloat(Math.abs(r.getTime()-n.getTime())/(1e3*60*60)).toFixed(2)},DIFFMINUTES:function(t,e){const n=new Date(t),r=new Date(e);return parseInt(Math.ceil(Math.abs(r.getTime()-n.getTime())/(1e3*60)))},TIMESTAMP:function(t){return Date.parse(t)},STARTSWITH:function(t,e){return(""+t).substring(0,(""+e).length)===e},EMPTY:function(t){return Fe.empty(t)},NOTEMPTY:function(t){return!Fe.empty(t)},LEN:function(t){return Array.isArray(t)?t.length:0},MOD:function(t,e){return t=parseFloat(t),e=parseFloat(e),!t||!e||isNaN(t)||isNaN(e)?0:t%e},SLICELEFT:function(t,e){return(""+t).slice(0,Number(e)||0)},SLICERIGHT:function(t,e){return(""+t).slice(Number(e)*-1)},TOLOWER:function(t){return(""+t).toLowerCase()},TOUPPER:function(t){return(""+t).toUpperCase()},INCLUDES:function(t,e){return(t||"").indexOf(e||"")},REPLACE:function(t,e,n){return(t||"").replace(e||"",n||"")},REPLACEALL:function(t,e,n){return(t||"").replaceAll(e||"",n||"")},TRIM:function(t){return(t||"").trim()},TOCHINSESAMOUNT:function(t){let e=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],n=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"],r=["","\u62FE","\u4F70","\u4EDF"],i=["\u89D2","\u5206"];function a(_){let A="",S="",C=0,T=!0;for(;_>0;){let q=_%10;q===0?T||(T=!0,S=e[q]+S):(T=!1,A=e[q],A+=r[C],S=A+S),C++,_=Math.floor(_/10)}return S}let o=0,s="",u="",d=!1;if(t===0)return e[0];let h=Math.floor(t),y=Math.round((t-h)*100);for(;h>0;){let _=h%1e4;d&&(u=e[0]+u),s=a(_),s+=_!==0?n[o]:n[0],u=s+u,d=_<1e3&&_>0,h=Math.floor(h/1e4),o++}return u&&(u+="\u5143"),y>0?(u+=e[Math.floor(y/10)]+i[0],y%10!==0&&(u+=e[y%10]+i[1])):u&&(u+="\u6574"),u},UNION:function(...t){return(Array.isArray(t[0])?t[0]:t).filter((n,r,i)=>i.indexOf(n)===r)},AND:function(...t){return!!t.reduce((e,n)=>e&&n,!0)},OR:function(...t){return!!t.reduce((e,n)=>e||n,!1)},IF:function(t,e=!0,n=!1){return t?e:n},DEFAULT:function(t,e){return Fe.Undef(t)?e:t},CASE:function(...t){for(let e=0;e-1},FALSE:function(){return!1},TRUE:function(){return!0},NOT:function(t){return!t},EQ:function(t,e){return t===e},GE:function(t,e){return t>=e},GT:function(t,e){return t>e},LE:function(t,e){return t<=e},LT:function(t,e){return t{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},ci=t=>{const e=[];return t.forEach(n=>{n.field&&e.push(n.field),n.children&&e.push(...ci(n.children))}),e},Os=l.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>l.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:l.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(t){this.setValue(t)}},methods:{init(){this.steps.forEach((t,e)=>{this.cacheRule[e]?this.cacheRule[e].display=e===this.active:this.cacheRule[e]={type:"FcRow",native:!0,display:e===this.active,children:t.rule}})},onPrev(){this.active--},validate(){return new Promise((t,e)=>{const n=ci(this.cacheRule[this.active].children);n.length>0?Promise.all(n.map(r=>this.subApi.validateField(r))).then(()=>{t()}).catch(r=>{e(r)}):t()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(t=>{}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const t=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{t()}).catch(e=>{}):t()},addSubApi(t){this.subApi=t,this.$emit("itemMounted",t)},formData(t){this.cacheValue=JSON.stringify(t),this.$emit("update:modelValue",t),this.$emit("change",t)},setValue(t){const e=JSON.stringify(t);this.cacheValue!==e&&(this.cacheValue=e,this.subApi.coverValue(t||{}))}},created(){this.init()}}),Ss={class:"_fc-step-form"};function Es(t,e,n,r,i,a){const o=l.resolveComponent("van-step"),s=l.resolveComponent("van-steps"),u=l.resolveComponent("van-button"),d=l.resolveComponent("van-col"),h=l.resolveComponent("van-row");return l.openBlock(),l.createElementBlock("div",Ss,[l.createVNode(s,l.mergeProps({active:t.active},t.stepsProps),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.steps,y=>(l.openBlock(),l.createBlock(o,l.mergeProps({ref_for:!0},y.props),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.props.title),1)]),_:2},1040))),256))]),_:1},16,["active"]),(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.Form),{option:t.options,rule:t.cacheRule,extendOption:!0,modelValue:t.modelValue,"onUpdate:api":t.addSubApi,onEmitEvent:t.$emit,"onUpdate:modelValue":t.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),l.createVNode(h,null,{default:l.withCtx(()=>[l.createVNode(d,{span:24,style:{"margin-top":"15px"}},{default:l.withCtx(()=>[t.active>0?(l.openBlock(),l.createBlock(u,{key:0,block:"",size:"small",onClick:t.onPrev},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),t.active[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),t.active===t.cacheRule.length-1?(l.openBlock(),l.createBlock(u,{key:2,block:"",size:"small",class:"fc-clock",type:"primary",onClick:t.submit,style:{"margin-top":"10px"}},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0)]),_:1})]),_:1})])}const Cs=we(Os,[["render",Es]]);function dt(t,e,n){t[e]=n}function fi(t,e={},n){let r=!1;for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=e[i];if((r=Array.isArray(a))||Fe.Object(a)){let o=t[i]===void 0;if(r)r=!1,o&&dt(t,i,[]);else if(a._clone&&n!==void 0)if(n)a=a.getRule(),o&&dt(t,i,{});else{dt(t,i,a._clone());continue}else o&&dt(t,i,{});t[i]=fi(t[i],a,n)}else dt(t,i,a),Fe.Undef(a)||(Fe.Undef(a.__json)||(t[i].__json=a.__json),Fe.Undef(a.__origin)||(t[i].__origin=a.__origin))}return n!==void 0&&Array.isArray(t)?t.filter(i=>!i||!i.__ctrl):t}function ot(t){return fi({},{value:t}).value}const Xp="",xs=l.defineComponent({name:"FcPopup",emits:["confirm","submit","validateFail"],props:{formData:Object,options:{type:Object,default:()=>l.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},modelValue:Boolean,formCreateInject:Object,title:String},data(){return{visible:!1,fapi:{},value:{},formRule:[],Form:l.markRaw(this.formCreateInject.form.$form())}},methods:{open(t){this.$nextTick(()=>{this.visible=!0,this.value=ot(t||this.formData||{}),this.formRule=ot(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(t=>{this.$emit("submit",t,this.fapi,this.close),this.autoClose&&this.close()}).catch(t=>{this.$emit("validateFail",t,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),l.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),As={class:"_fc-popup-title"},Ds={class:"_fc-popup-content"},Rs={class:"_fc-popup-footer"};function Ps(t,e,n,r,i,a){const o=l.resolveComponent("van-button"),s=l.resolveComponent("van-popup");return l.openBlock(),l.createBlock(s,l.mergeProps({class:"_fc-popup",closeable:""},t.$attrs,{show:t.visible,"onUpdate:show":e[1]||(e[1]=u=>t.visible=u)}),{default:l.withCtx(()=>[l.createElementVNode("div",As,l.toDisplayString(t.title),1),l.createElementVNode("div",Ds,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.Form),{option:t.options,rule:t.formRule,extendOption:!0,api:t.fapi,"onUpdate:api":e[0]||(e[0]=u=>t.fapi=u),"model-value":t.value,onEmitEvent:t.$emit},null,40,["option","rule","api","model-value","onEmitEvent"]))]),l.createElementVNode("div",Rs,[t.footer!==!1?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(o,{block:"",size:"small",type:"primary",class:"fc-clock",onClick:t.handleConfirm},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"]),l.createVNode(o,{block:"",size:"small",class:"fc-clock",style:{"margin-top":"10px"},onClick:t.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"])],64)):l.createCommentVNode("",!0)])]),_:1},16,["show"])}const ks=we(xs,[["render",Ps]]);function Vs(t,e,n){return`[form-create ${t}]: ${e}`+(n?` rule: `+JSON.stringify(n.getRule?n.getRule():n):"")}function Ms(t,e){console.error(Vs("err",t,e))}const di="[[FORM-CREATE-PREFIX-",hi="-FORM-CREATE-SUFFIX]]";function Pn(t){return new Function("return "+t)()}function pi(t,e){if(t&&Fe.String(t)&&t.length>4){let n=t.trim(),r=!1;try{if(n.indexOf(hi)>0&&n.indexOf(di)===0)n=n.replace(hi,"").replace(di,""),r=!0;else if(n.indexOf("$FN:")===0)n=n.substring(4),r=!0;else if(n.indexOf("$EXEC:")===0)n=n.substring(6),r=!0;else if(n.indexOf("$GLOBAL:")===0){const a=n.substring(8);return n=function(...o){const s=o[0].api.getGlobalEvent(a);if(s)return s.call(this,...o)},n.__json=t,n.__inject=!0,n}else{if(n.indexOf("$FNX:")===0)return n=Pn("function($inject){"+n.substring(5)+"}"),n.__json=t,n.__inject=!0,n;(!e&&n.indexOf("function ")===0&&n!=="function "||!e&&n.indexOf("function(")===0&&n!=="function(")&&(r=!0)}if(!r)return t;let i;try{i=Pn(n)}catch{i=Pn("function "+n)}return i.__json=t,i}catch(i){Ms(`\u89E3\u6790\u5931\u8D25:${n} err: ${i}`);return}}return t}const Yp="",Fs=l.defineComponent({name:"DataTable",emits:["change","handleClick","rowSelectionChange"],props:{column:{type:Array,default:()=>[]},globalDataKey:[String,Object],fetch:Object,data:{type:Array,default:()=>[]},button:Object,index:Boolean,selection:Boolean,page:Object,formCreateInject:Object},data(){return{total:0,loading:!1,unwatch:null,list:[],currentPage:1,id:1,order:"",orderBy:""}},watch:{globalDataKey(){this.initPage()},fetch(){this.globalDataKey||this.initPage()},data(){!this.globalDataKey&&!this.fetch&&this.initPage()},selection(){this.id++},index(){this.id++},page:{handler(){this.initPage(),this.id++},deep:!0},button:{handler(){this.id++},deep:!0}},computed:{filterList(){let t=this.list||[];const e=[];return this.column.forEach(n=>{n.prop&&Array.isArray(n.filter)&&n.filter.length>0&&e.push(r=>n.filter.indexOf(r[n.prop])>-1)}),e.forEach(n=>{t=t.filter(n)}),t},tableColumns(){const t=[];return this.column.forEach(e=>{t.push({dataIndex:e.prop,title:e.label,width:e.width,fixed:e.fixed,className:e.className,align:e.align,sorter:e.sorter==="custom"?!0:e.sorter?(n,r)=>n[e.prop]>r[e.prop]:!1,customRender:n=>this.makeTd(e,n)})}),this.button&&this.button.open===!0&&this.button.column&&t.push({dataIndex:"_handle",label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"125px",customRender:e=>(this.button.column||[]).filter(n=>n.hidden!==!0).map(n=>l.h(l.resolveComponent("a-button"),this.btnProps(n,e),()=>[n.name]))}),t}},render(){return l.h("div",{class:"_fc-data-table"},[l.h(l.resolveComponent("a-spin"),{spinning:this.loading},()=>[l.h(l.resolveComponent("a-table"),{dataSource:this.filterList,columns:this.tableColumns,pagination:!1,rowSelection:this.selection?{onChange:(...t)=>{this.$emit("rowSelectionChange",...t)}}:void 0,...this.$attrs,key:this.id,ref:"table",onChange:(...t)=>{const e=t[2];this.$emit("change",...t),e.order&&e.field?(this.orderBy=e.order==="descend"?"DESC":"ASC",this.order=e.field):(this.orderBy="",this.order=""),this.initPage()}}),this.makePage()])])},methods:{getEl(){return this.$refs.table},deepGet(t,e,n){e=(e||"").split(".");let r=0,i=e.length;for(;t!=null&&r{this.list=t}):this.list=this.data},btnProps(t,e){const n={type:t.type,size:t.size,onClick:i=>{i.stopPropagation();const a=pi(t.click);try{a&&a(e,this.formCreateInject.api)}catch(o){console.error(o)}this.$emit("handleClick",{name:t.name,scope:e,column:e.record})}},r=pi(t.handle);try{const i=r&&r(n,e,this.formCreateInject.api);typeof i=="boolean"&&(n.disabled=i)}catch(i){console.error(i)}return n},getLimit(){return this.page.props&&this.page.props.pageSize||20},nextList(){if(this.globalDataKey||this.fetch)this.fetchData(!0).then(({list:t,total:e})=>{this.list=t,this.total=e});else{const t=this.data,e=this.getLimit(),n=this.currentPage*e;this.list=t.slice(n-e,n),this.total=t.length}},fetchData(t){return this.unwatch&&this.unwatch(),new Promise(e=>{let n=this.fetch;if(this.globalDataKey){const r=typeof this.globalDataKey=="string"?this.globalDataKey:this.globalDataKey.key;n=this.formCreateInject.api.options.globalData[r]}if(n)if(n.type==="fetch"||!this.globalDataKey){n={...n};let r={};if(t){const a=this.page.props&&this.page.props.pageSize||20,o=this.page.pageField||"page",s=this.page.pageSizeField||"limit";r={[o]:this.currentPage,[s]:a}}if(this.order){const a=this.page.orderField||"order",o=this.page.orderByField||"orderBy";r[a]=this.order,r[o]=this.orderBy}const i=Object.keys(r).map(a=>encodeURIComponent(a)+"="+encodeURIComponent(r[a]),"").join("&");i&&(n.action+=(n.action.indexOf("?")!==-1?"&":"?")+i),this.loading=!0,n.wait=1e3,this.unwatch=this.formCreateInject.api.watchFetch(n,(a,o)=>{this.loading=!1;const s=this.page.totalField,u=this.page.dataField,d=u?this.deepGet(a,u,[]):a;let h=s?this.deepGet(a,s):0;h||(h=d.length||0),e({list:d,total:h})},a=>{console.error(a),this.loading=!1},(a,o)=>{if(o)return this.unwatch&&this.unwatch(),this.unwatch=null,setTimeout(()=>{this.changePage(1)}),!1})}else{let r=n.data||[],i=n.data.length;if(t){const a=this.getLimit(),o=this.currentPage*a;r=r.slice(o-a,o),i=r.length}e({list:r,total:i})}else e({list:[],total:0})})},changePage(t){this.currentPage=t,this.nextList()},makePage(){if(this.page&&this.page.open===!0)return l.h(l.resolveComponent("a-pagination"),{total:this.total,current:this.currentPage,showSizeChanger:!1,"onUpdate:current":t=>{this.currentPage!==t&&this.changePage(t)},class:this.page.position||"right",...this.page.props||{},pageSize:this.page.props&&this.page.props.pageSize||20})},makeTd(t,e){return t.format==="custom"&&t.render?t.render(e,l.h,l.resolveComponent,this.formCreateInject.api):t.format==="tag"?l.h(l.resolveComponent("a-tag"),{color:"green"},()=>[this.deepGet(e.record,t.prop,"")]):t.format==="image"?l.h("div",{class:"_fc-data-table-img-list"},[l.h(l.resolveComponent("a-image-preview-group"),{},()=>{let n=this.deepGet(e.record,t.prop,"");return n=(Array.isArray(n)?n:[n]).filter(r=>!!r),n.map((r,i)=>l.h(l.resolveComponent("a-image"),{src:r}))})]):""+this.deepGet(e.record,t.prop,"")}},created(){this.initPage(),this.$watch(()=>this.data&&this.data.length,()=>{!this.globalDataKey&&!this.fetch&&this.initPage()})}}),Jp="",Ts={name:"FcTable",props:{label:String,width:[Number,String],border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},watch:{rule:{handler(){this.initRule(),this.loadRule(),this.tdStyle=this.rule.style||{},this.tdClass=this.rule.class||{}},immediate:!0,deep:!0}},data(){return{tdStyle:{},tdClass:{},lattice:{}}},computed:{tableColor(){const t={};return this.border===!1?t.border="0 none":(this.borderColor&&(t.borderColor=this.borderColor),this.borderWidth&&(t.borderWidth=this.borderWidth)),t}},methods:{initRule(){const t=this.rule;t.style||(t.style={}),t.layout||(t.layout=[]),t.row||(t.row=1),t.col||(t.col=1)},loadRule(){const t=[],e=this.rule||{row:1,col:1};for(let r=0;r{if((!r.row||r.row<=0)&&(!r.col||r.col<=0)||!t[r.top]||!t[r.top][r.left]||!t[r.top][r.left].show){e.layout.splice(i,1);return}const a=t[r.top][r.left];a.layout=r;let o=1,s=1;if(r.col&&(o=r.col+r.left>e.col?e.col-r.left:r.col,a.colspan=o),r.row&&(s=r.row+r.top>e.row?e.row-r.top:r.row,a.rowspan=s),s&&o)for(let u=0;u!!(!r||r.layout||!r.show);t.forEach((r,i)=>{r.forEach((a,o)=>{let s=!1,u=!1;if(a.layout){const d=a.layout.col||1,h=a.layout.row||1;for(let y=0;y[l.createElementVNode("div",js,[l.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:l.normalizeStyle(a.tableColor)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.rule.row,(s,u)=>(l.openBlock(),l.createElementBlock("tr",{key:u},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.rule.col,(d,h)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${u}${h}`},[i.lattice[u][h].show?(l.openBlock(),l.createElementBlock("td",l.mergeProps({key:0,ref_for:!0},i.lattice[u][h]?{colspan:i.lattice[u][h].colspan,rowspan:i.lattice[u][h].rowspan}:{},{valign:"top",class:i.tdClass&&i.tdClass[`${u}:${h}`]||"",style:[a.tableColor,i.tdStyle&&i.tdStyle[`${u}:${h}`]||{}]}),[l.renderSlot(t.$slots,`${u}:${h}`),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.lattice[u][h].slot,y=>l.renderSlot(t.$slots,`${y}`)),256))],16)):l.createCommentVNode("",!0)],64))),128))]))),128))],4)])]),_:3})}const Is=we(Ts,[["render",Bs]]),Qp="",Ns={name:"TableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},filterEmptyColumn:{type:Boolean,default:!0},options:{type:Object,default:()=>l.reactive({submitBtn:!1,resetBtn:!1})},max:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(t){this.emptyRule.children[0].props.colspan=this.columns.length+(t?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:l.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",emptyRule:{type:"tr",_isEmpty:!0,native:!0,subRule:!0,children:[{type:"td",style:{textAlign:"center"},native:!0,subRule:!0,props:{colspan:this.columns.length+(this.formCreateInject.preview?1:2)},children:[this.formCreateInject.t("dataEmpty")||"\u6682\u65E0\u6570\u636E"]}]}}},methods:{formChange(){this.updateValue()},updateValue(){const t=this.trs.map((n,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(n)})).filter(n=>{if(!this.filterEmptyColumn)return!0;if(n==null)return!1;let r=!1;return Object.keys(n).forEach(i=>{r=r||n[i]!==void 0&&n[i]!==""&&n[i]!==null}),r}),e=JSON.stringify(t);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,e){const n=this.trs[t];this.fapi.setChildrenFormData(n,e,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addEmpty(),this.modelValue.forEach((e,n)=>{this.trs[n]||this.addRaw(),this.setRawData(n,e||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.push(this.emptyRule)},delRaw(t){this.disabled||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addEmpty(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(e),this.updateRaw(e),t&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(t){const e=this.trs.indexOf(t);t.children[0].props.innerText=e+1,t.children[t.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let e=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(n=>{t.push({type:"th",native:!0,style:n.style,class:n.required?"_fc-tf-head-required":"",props:{innerText:n.label||""}}),e.push({type:"td",native:!0,children:[...n.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.push({type:"td",native:!0,class:"_fc-tf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,subRule:!0,children:e}]),this.rule=[{type:"table",native:!0,class:"_fc-tf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function Ls(t,e,n,r,i,a){const o=l.resolveComponent("a-button");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fc-table-form",{"_fc-disabled":n.disabled}])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.Form),{option:n.options,rule:i.rule,extendOption:!0,disabled:n.disabled,onChange:a.formChange,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:t.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),!n.max||n.max>this.trs.length?(l.openBlock(),l.createBlock(o,{key:0,type:"link",class:"fc-clock",onClick:e[1]||(e[1]=s=>a.addRaw(!0)),disabled:n.disabled},{default:l.withCtx(()=>[e[2]||(e[2]=l.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),l.createTextVNode(" "+l.toDisplayString(n.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):l.createCommentVNode("",!0)],2)}const Us=we(Ns,[["render",Ls]]),Kp="",zs={name:"InfiniteTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>l.reactive({submitBtn:!1,resetBtn:!1})},max:Number,layerMax:{type:Number,default:0},childrenField:String,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview},subField(){return this.childrenField||"children"}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(t){this.trs.forEach((e,n)=>{e.children[1]&&(e.children[1].children[0].props.colspan=this.rule[0].children[0].children[0].children.length-(t?1:0)),e.children[0].children[0].children[0].hidden=this.layerMax===1||t&&!(this.modelValue&&this.modelValue[n]&&Array.isArray(this.modelValue[n][this.subField])&&this.modelValue[n][this.subField].length>0)})}},data(){return{rule:[],trs:[],fapi:{},Form:l.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(t,e,n,r,i){i===!1&&this.updateValue()},updateValue(){const t=this.trs.map((n,r)=>{const i={...this.modelValue[r]||{},...this.fapi.getChildrenFormData(n)};return!Rn(i,this.subField)&&this.modelValue[r]&&(i[this.subField]=this.modelValue[r][this.subField]),i[this.subField]==null&&delete i[this.subField],i}),e=JSON.stringify(t);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,e){const n=this.trs[t];this.fapi.setChildrenFormData(n,e,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((e,n)=>{this.trs[n]||this.addRaw(),this.setRawData(n,e||{})}),this.rule[0].children[1].children=this.trs)},delRaw(t){this.disabled||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addRaw(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0],n={type:"template",subRule:!0,children:[]};n.children.push(e),this.trs.push(n),this.trs.forEach(r=>this.updateRaw(r)),t&&this.$emit("add",this.trs)},updateRaw(t){const e=this.trs.indexOf(t),n=t.children[0];n.children[0].children[0].hidden=this.layerMax===1||this.preview&&!(this.modelValue&&this.modelValue[e]&&Array.isArray(this.modelValue[e][this.subField])&&this.modelValue[e][this.subField].length>0),n.children[0].children[0].props.onClick=r=>{if(this.trs[e].children.length===1){if(this.disabled&&!(this.modelValue&&this.modelValue[e]&&Array.isArray(this.modelValue[e][this.subField])&&this.modelValue[e][this.subField].length>0))return;this.trs[e].children.push({type:"tr",native:!0,display:!0,children:[{type:"td",native:!0,props:{colspan:this.rule[0].children[0].children[0].children.length-(this.preview?1:0)},class:"_fc-itf-sub",children:[{type:"infiniteTableForm",field:this.subField,value:[...this.modelValue[e]&&this.modelValue[e][this.subField]||[]],props:{disabled:this.disabled,layerMax:this.layerMax===0?0:this.layerMax>1?this.layerMax-1:1,max:this.max||0,columns:ot(this.columns),options:ot(this.options)}}]}]})}const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[e].children[1].display=i==="-"},n.children[1].props.innerText=e+1,n.children[n.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-itf-sub-idx"},{type:"th",native:!0,class:"_fc-itf-head-idx",props:{innerText:"#"}}];let e=[{type:"td",class:"_fc-itf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-itf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(n=>{t.push({type:"th",native:!0,class:n.required?"_fc-itf-head-required":"",style:n.style,props:{innerText:n.label||""}}),e.push({type:"td",native:!0,children:[...n.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-itf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.push({type:"td",native:!0,class:"_fc-itf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:e}]),this.rule=[{type:"table",native:!0,class:"_fc-itf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function qs(t,e,n,r,i,a){const o=l.resolveComponent("a-button");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fc-infinite-table-form",{"_fc-disabled":n.disabled}])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.Form),{option:n.options,rule:i.rule,extendOption:!0,onChange:a.formChange,disabled:n.disabled,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:t.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!n.max||n.max>this.trs.length?(l.openBlock(),l.createBlock(o,{key:0,type:"link",class:"fc-clock",disabled:n.disabled,onClick:e[1]||(e[1]=s=>a.addRaw(!0))},{default:l.withCtx(()=>[e[2]||(e[2]=l.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),l.createTextVNode(" "+l.toDisplayString(n.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):l.createCommentVNode("",!0)],2)}const Gs=we(zs,[["render",qs]]),Zp="",Hs={name:"NestedTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},nested:Array,nestedField:String,columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>l.reactive({submitBtn:!1,resetBtn:!1})},max:Number,nestedMax:Number,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(t){this.trs.forEach(e=>{const n=e.children[1].children[0].props.colspan;e.children[1].children[0].props.colspan=t?n-1:n+1})}},data(){return{rule:[],trs:[],fapi:{},Form:l.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(t,e,n,r,i){i===!1&&this.updateValue()},updateValue(){const t=this.trs.map((n,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(n)})).filter(n=>{if(n==null)return!1;let r=!1;return Object.keys(n).forEach(i=>{r||(r=r||n[i]!==void 0&&n[i]!==""&&n[i]!==null&&(Array.isArray(n[i])?!!n[i].length:!0))}),r}),e=JSON.stringify(t);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,e){const n=this.trs[t];this.fapi.setChildrenFormData(n,e,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((e,n)=>{this.trs[n]||this.addRaw(),this.setRawData(n,e||{})}),this.rule[0].children[1].children=this.trs)},delRaw(t){this.disabled||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addRaw(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0],n={type:"template",subRule:!0,children:[]};n.children.push(e),n.children.push({type:"tr",native:!0,display:!1,children:[{type:"td",native:!0,props:{colspan:e.children.length-(this.preview?1:0)},class:"_fc-ntf-sub",children:[{type:"TableForm",field:this.nestedField,value:[],props:{disabled:this.disabled,max:this.nestedMax||0,columns:ot(this.nested),options:ot(this.options)}}]}]}),this.trs.push(n),this.updateRaw(n),t&&this.$emit("add",this.trs)},updateRaw(t){const e=this.trs.indexOf(t),n=t.children[0];n.children[0].children[0].props.onClick=r=>{const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[e].children[1].display=i==="-"},n.children[1].props.innerText=e+1,n.children[n.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-ntf-sub-idx"},{type:"th",native:!0,class:"_fc-ntf-head-idx",props:{innerText:"#"}}];let e=[{type:"td",class:"_fc-ntf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-ntf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(n=>{t.push({type:"th",native:!0,style:n.style,class:n.required?"_fc-ntf-head-required":"",props:{innerText:n.label||""}}),e.push({type:"td",native:!0,children:[...n.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-ntf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.push({type:"td",native:!0,class:"_fc-ntf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:e}]),this.rule=[{type:"table",native:!0,class:"_fc-ntf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function Ws(t,e,n,r,i,a){const o=l.resolveComponent("a-button");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fc-nested-table-form",{"_fc-disabled":n.disabled}])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.Form),{option:n.options,rule:i.rule,extendOption:!0,onChange:a.formChange,disabled:n.disabled,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:t.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!n.max||n.max>this.trs.length?(l.openBlock(),l.createBlock(o,{key:0,type:"link",class:"fc-clock",disabled:n.disabled,onClick:e[1]||(e[1]=s=>a.addRaw(!0))},{default:l.withCtx(()=>[e[2]||(e[2]=l.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),l.createTextVNode(" "+l.toDisplayString(n.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):l.createCommentVNode("",!0)],2)}const Xs=we(Hs,[["render",Ws]]),em="",Ys=l.defineComponent({name:"FcCell"}),Js={ref:"cell",class:"_fc-cell"};function Qs(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("div",Js,[l.renderSlot(t.$slots,"default")],512)}const Ks=we(Ys,[["render",Qs]]),Zs=l.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(t){this.$emit("change",t)}}}),eu={class:"_fc-value"};function tu(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("div",eu,l.toDisplayString(t.modelValue),1)}const nu=we(Zs,[["render",tu]]),ru=l.defineComponent({name:"FcSlot",inheritAttrs:!1,inject:["parentFC"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:t,preview:e,api:n}=this.formCreateInject,r=t.__fc__.prop;return{rule:t,prop:r,preview:e,api:n,model:r.model||{}}}},render(){const t=this.getSlot();return l.createVNode(l.Fragment,{},t?[t(this.slotArg)]:[])},methods:{getSlot(){const t=e=>{if(e){let n=e.slots[this.slotName];return n||t(e.setupState.parent)}};return t(this.parentFC)}}}),iu=l.defineComponent({name:"FcJson",inheritAttrs:!1,props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:l.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:l.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var t,e;if(this.rule)return this.type==="object"?l.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":n=>{this.$emit("update:modelValue",n)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?l.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":n=>{this.$emit("update:modelValue",n)},sortBtn:this.sortBtn,min:this.min,max:this.max,expand:this.expand,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):l.createVNode(l.Fragment,{key:this.uni},[(e=(t=this.$slots).default)==null?void 0:e.call(t)])},methods:{loadRule(){let t=ot(this.rule);typeof t=="string"&&(t=this.formCreateInject.form.parseJson(t)),Array.isArray(t)?this.formRule=t:typeof t=="object"&&(this.formRule=t.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...t.options||{}}),t!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),tm="",ou=l.defineComponent({name:"fcInlineForm"}),au={class:"_fc-line-form"};function su(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("div",au,[l.renderSlot(t.$slots,"default")])}const uu=we(ou,[["render",su]]);var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gi={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(mi,function(){var n=function(){},r={},i={},a={};function o(_,A){_=_.push?_:[_];var S=[],C=_.length,T=C,q,U,L,Y;for(q=function(ne,Z){Z.length&&S.push(ne),T--,T||A(S)};C--;){if(U=_[C],L=i[U],L){q(U,L);continue}Y=a[U]=a[U]||[],Y.push(q)}}function s(_,A){if(!!_){var S=a[_];if(i[_]=A,!!S)for(;S.length;)S[0](_,A),S.splice(0,1)}}function u(_,A){_.call&&(_={success:_}),A.length?(_.error||n)(A):(_.success||n)(_)}function d(_,A,S,C){var T=document,q=S.async,U=(S.numRetries||0)+1,L=S.before||n,Y=_.replace(/[\?|#].*$/,""),ne=_.replace(/^(css|img|module|nomodule)!/,""),Z,Q,X;if(C=C||0,/(^css!|\.css$)/.test(Y))X=T.createElement("link"),X.rel="stylesheet",X.href=ne,Z="hideFocus"in X,Z&&X.relList&&(Z=0,X.rel="preload",X.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(Y))X=T.createElement("img"),X.src=ne;else if(X=T.createElement("script"),X.src=ne,X.async=q===void 0?!0:q,Q="noModule"in X,/^module!/.test(Y)){if(!Q)return A(_,"l");X.type="module"}else if(/^nomodule!/.test(Y)&&Q)return A(_,"l");X.onload=X.onerror=X.onbeforeload=function(ce){var se=ce.type[0];if(Z)try{X.sheet.cssText.length||(se="e")}catch(re){re.code!=18&&(se="e")}if(se=="e"){if(C+=1,Ct.call(this,...r),e)}}const nm="",fu=l.defineComponent({name:"FcEcharts",data(){return{chart:null}},emits:["beforeLoad","loaded"],props:{title:String,value:Number,min:Number,max:Number,name:String,valueFormat:String,subtitle:String,funnelSort:String,config:Object,data:Array,indicator:Array,smooth:Boolean,stripe:Boolean,showLegend:{type:Boolean,default:!0},loadOptions:{type:Function,default:()=>{}},showSeriesLabel:Boolean,type:String,pieType:String,stack:Boolean,barBackgroundColor:String},watch:{$props:{handler:cu(function(){this.load()},600),deep:!0}},methods:{getSeries(){var n;const t={type:"line",stack:this.stack?"Total":"",smooth:this.smooth,showBackground:!1,label:{show:this.showSeriesLabel,position:this.stripe?"inside":"top"}};this.type==="area"?(t.areaStyle={},t.emphasis={focus:"series"}):this.type==="bar"&&(t.type="bar",this.barBackgroundColor&&(t.showBackground=!0,t.backgroundStyle={color:this.barBackgroundColor}));let e=((n=this.config)==null?void 0:n.series)||[];return e.length?(typeof e[0]!="object"&&(e=[{data:e}]),e=e.map(r=>({...t,...r})),e):[]},getTooltip(){const t={trigger:"axis",valueFormat:void 0};return this.valueFormat&&(t.valueFormatter=e=>this.valueFormat?this.valueFormat.replaceAll("{value}",e):e),this.type==="bar"&&(t.axisPointer={type:"shadow"}),t},getAxis(){var t,e;return this.stripe?{yAxis:{type:"category",boundaryGap:this.type==="bar",data:((e=this.config)==null?void 0:e.category)||[]},xAxis:{type:"value"}}:{xAxis:{type:"category",boundaryGap:this.type==="bar",data:(t=this.config)==null?void 0:t.category},yAxis:{type:"value"}}},getDefOptions(){return{title:{text:this.title,subtext:this.subtitle},tooltip:this.getTooltip(),legend:{left:"right",show:this.showLegend},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},...this.getAxis(),series:this.getSeries()}},getPieOptions(){const t={radius:"50%",center:"50%",startAngle:0,avoidLabelOverlap:!0,labelLine:{show:!0},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}};return this.pieType==="doughnut"?(t.radius=["40%","70%"],t.avoidLabelOverlap=!1):this.pieType==="half-doughnut"&&(t.radius=["40%","70%"],t.center=["50%","70%"],t.startAngle=180,t.endAngle=360),{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{type:"pie",data:this.data,...t}]}},getGaugeOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"center"},series:[{name:"Pressure",type:"gauge",min:this.min||0,max:this.max||60,progress:{show:!0},detail:{valueAnimation:!0,formatter:"{value}"},data:[{value:this.value,name:this.name}]}]}},getRadarOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:this.showLegend},radar:{indicator:this.indicator},series:[{type:"radar",tooltip:{trigger:"item"},data:this.data}]}},getScatterOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:!0},xAxis:{scale:!0},yAxis:{scale:!0},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},series:(this.data||[]).map(t=>Array.isArray(t)?{type:"scatter",data:t}:{type:"scatter",...t})}},getFunnelOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{name:"Funnel",type:"funnel",left:"10%",top:"40px",bottom:"20px",width:"80%",min:0,max:Math.max(...(this.data||[]).map(t=>t.value)),minSize:"0%",maxSize:"100%",sort:this.funnelSort||"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{}},data:this.data}]}},load(){this.$nextTick(()=>{Xe.ready("echarts",()=>{this.chart=l.markRaw(window.echarts.init(this.$refs.chart));let t;if(this.type==="pie")t=this.getPieOptions();else if(this.type==="funnel")t=this.getFunnelOptions();else if(this.type==="gauge")t=this.getGaugeOptions();else if(this.type==="radar")t=this.getRadarOptions();else if(this.type==="scatter")t=this.getScatterOptions();else if(this.type==="custom"){if(t=this.loadOptions(this.config,this.chart)||{},typeof t.then=="function"){t.then(e=>{this.$emit("beforeLoad",this.chart,e),this.chart.setOption(e),this.$emit("loaded",this.chart,e)});return}}else t=this.getDefOptions();this.$emit("beforeLoad",this.chart,t),this.chart.setOption(t),this.$emit("loaded",this.chart,t)})})}},created(){window.echarts?Xe.done("echarts"):Xe.isDefined("echarts")||Xe(["https://static.form-create.com/res/echarts.min.js"],"echarts")},mounted(){this.load()}}),du={class:"_fc-echarts",ref:"chart"};function hu(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("div",du,null,512)}const pu=we(fu,[["render",hu]]);/*! * Signature Pad v5.0.4 | https://github.com/szimek/signature_pad * (c) 2024 Szymon Nowak | Released under the MIT license */class qt{constructor(e,n,r,i){if(isNaN(e)||isNaN(n))throw new Error(`Point is invalid: (${e}, ${n})`);this.x=+e,this.y=+n,this.pressure=r||0,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class kn{static fromPoints(e,n){const r=this.calculateControlPoints(e[0],e[1],e[2]).c2,i=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new kn(e[1],r,i,e[2],n.start,n.end)}static calculateControlPoints(e,n,r){const i=e.x-n.x,a=e.y-n.y,o=n.x-r.x,s=n.y-r.y,u={x:(e.x+n.x)/2,y:(e.y+n.y)/2},d={x:(n.x+r.x)/2,y:(n.y+r.y)/2},h=Math.sqrt(i*i+a*a),y=Math.sqrt(o*o+s*s),_=u.x-d.x,A=u.y-d.y,S=h+y==0?0:y/(h+y),C={x:d.x+_*S,y:d.y+A*S},T=n.x-C.x,q=n.y-C.y;return{c1:new qt(u.x+T,u.y+q),c2:new qt(d.x+T,d.y+q)}}constructor(e,n,r,i,a,o){this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=i,this.startWidth=a,this.endWidth=o}length(){let n=0,r,i;for(let a=0;a<=10;a+=1){const o=a/10,s=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(a>0){const d=s-r,h=u-i;n+=Math.sqrt(d*d+h*h)}r=s,i=u}return n}point(e,n,r,i,a){return n*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*i*(1-e)*e*e+a*e*e*e}}class mu{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,n,r){this._et.addEventListener(e,n,r)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,n,r){this._et.removeEventListener(e,n,r)}}function gu(t,e=250){let n=0,r=null,i,a,o;const s=()=>{n=Date.now(),r=null,i=t.apply(a,o),r||(a=null,o=[])};return function(...d){const h=Date.now(),y=e-(h-n);return a=this,o=d,y<=0||y>e?(r&&(clearTimeout(r),r=null),n=h,i=t.apply(a,o),r||(a=null,o=[])):r||(r=window.setTimeout(s,y)),i}}class Gt extends mu{constructor(e,n={}){var r,i,a;super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=o=>{!this._isLeftButtonPressed(o,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(o))},this._handleMouseMove=o=>{if(!this._isLeftButtonPressed(o,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(o),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(o))},this._handleMouseUp=o=>{this._isLeftButtonPressed(o)||this._strokeEnd(this._pointerEventToSignatureEvent(o))},this._handleTouchStart=o=>{o.targetTouches.length!==1||this._drawingStroke||(o.cancelable&&o.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(o)))},this._handleTouchMove=o=>{if(o.targetTouches.length===1){if(o.cancelable&&o.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(o),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(o))}},this._handleTouchEnd=o=>{o.targetTouches.length===0&&(o.cancelable&&o.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(o)))},this._handlePointerDown=o=>{!o.isPrimary||!this._isLeftButtonPressed(o)||this._drawingStroke||(o.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(o)))},this._handlePointerMove=o=>{if(!!o.isPrimary){if(!this._isLeftButtonPressed(o,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(o),!1);return}o.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(o))}},this._handlePointerUp=o=>{!o.isPrimary||this._isLeftButtonPressed(o)||(o.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(o)))},this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle=(r=n.throttle)!==null&&r!==void 0?r:16,this.minDistance=(i=n.minDistance)!==null&&i!==void 0?i:5,this.dotSize=n.dotSize||0,this.penColor=n.penColor||"black",this.backgroundColor=n.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=n.compositeOperation||"source-over",this.canvasContextOptions=(a=n.canvasContextOptions)!==null&&a!==void 0?a:{},this._strokeMoveUpdate=this.throttle?gu(Gt.prototype._strokeUpdate,this.throttle):Gt.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:n}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,n.width,n.height),e.fillRect(0,0,n.width,n.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,n={}){return new Promise((r,i)=>{const a=new Image,o=n.ratio||window.devicePixelRatio||1,s=n.width||this.canvas.width/o,u=n.height||this.canvas.height/o,d=n.xOffset||0,h=n.yOffset||0;this._reset(this._getPointGroupOptions()),a.onload=()=>{this._ctx.drawImage(a,d,h,s,u),r()},a.onerror=y=>{i(y)},a.crossOrigin="anonymous",a.src=e,this._isEmpty=!1})}toDataURL(e="image/png",n){switch(e){case"image/svg+xml":return typeof n!="object"&&(n=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(n))}`;default:return typeof n!="number"&&(n=void 0),this.canvas.toDataURL(e,n)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var e;const n=window.document===this.canvas.ownerDocument?window:(e=this.canvas.ownerDocument.defaultView)!==null&&e!==void 0?e:this.canvas.ownerDocument;return{addEventListener:n.addEventListener.bind(n),removeEventListener:n.removeEventListener.bind(n)}}_removeMoveUpEventListeners(){const{removeEventListener:e}=this._getListenerFunctions();e("pointermove",this._handlePointerMove),e("pointerup",this._handlePointerUp),e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp),e("touchmove",this._handleTouchMove),e("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:n=!0}={}){n&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_isLeftButtonPressed(e,n){return n?e.buttons===1:(e.buttons&1)===1}_pointerEventToSignatureEvent(e){return{event:e,type:e.type,x:e.clientX,y:e.clientY,pressure:"pressure"in e?e.pressure:0}}_touchEventToSignatureEvent(e){const n=e.changedTouches[0];return{event:e,type:e.type,x:n.clientX,y:n.clientY,pressure:n.force}}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;const{addEventListener:r}=this._getListenerFunctions();switch(e.event.type){case"mousedown":r("mousemove",this._handleMouseMove),r("mouseup",this._handleMouseUp);break;case"touchstart":r("touchmove",this._handleTouchMove),r("touchend",this._handleTouchEnd);break;case"pointerdown":r("pointermove",this._handlePointerMove),r("pointerup",this._handlePointerUp);break}this._drawingStroke=!0;const i=this._getPointGroupOptions(),a=Object.assign(Object.assign({},i),{points:[]});this._data.push(a),this._reset(i),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(e);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const n=this._createPoint(e.x,e.y,e.pressure),r=this._data[this._data.length-1],i=r.points,a=i.length>0&&i[i.length-1],o=a?n.distanceTo(a)<=this.minDistance:!1,s=this._getPointGroupOptions(r);if(!a||!(a&&o)){const u=this._addPoint(n,s);a?u&&this._drawCurve(u,s):this._drawDot(n,s),i.push({time:n.time,x:n.x,y:n.y,pressure:n.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e,n=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(n&&this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,n,r){const i=this.canvas.getBoundingClientRect();return new qt(e-i.left,n-i.top,r,new Date().getTime())}_addPoint(e,n){const{_lastPoints:r}=this;if(r.push(e),r.length>2){r.length===3&&r.unshift(r[0]);const i=this._calculateCurveWidths(r[1],r[2],n),a=kn.fromPoints(r,i);return r.shift(),a}return null}_calculateCurveWidths(e,n,r){const i=r.velocityFilterWeight*n.velocityFrom(e)+(1-r.velocityFilterWeight)*this._lastVelocity,a=this._strokeWidth(i,r),o={end:a,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=a,o}_strokeWidth(e,n){return Math.max(n.maxWidth/(e+1),n.minWidth)}_drawCurveSegment(e,n,r){const i=this._ctx;i.moveTo(e,n),i.arc(e,n,r,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,n){const r=this._ctx,i=e.endWidth-e.startWidth,a=Math.ceil(e.length())*2;r.beginPath(),r.fillStyle=n.penColor;for(let o=0;o0?n.dotSize:(n.minWidth+n.maxWidth)/2;r.beginPath(),this._drawCurveSegment(e.x,e.y,i),r.closePath(),r.fillStyle=n.penColor,r.fill()}_fromData(e,n,r){for(const i of e){const{points:a}=i,o=this._getPointGroupOptions(i);if(a.length>1)for(let s=0;s{const y=document.createElement("path");if(!isNaN(d.control1.x)&&!isNaN(d.control1.y)&&!isNaN(d.control2.x)&&!isNaN(d.control2.y)){const _=`M ${d.startPoint.x.toFixed(3)},${d.startPoint.y.toFixed(3)} C ${d.control1.x.toFixed(3)},${d.control1.y.toFixed(3)} ${d.control2.x.toFixed(3)},${d.control2.y.toFixed(3)} ${d.endPoint.x.toFixed(3)},${d.endPoint.y.toFixed(3)}`;y.setAttribute("d",_),y.setAttribute("stroke-width",(d.endWidth*2.25).toFixed(3)),y.setAttribute("stroke",h),y.setAttribute("fill","none"),y.setAttribute("stroke-linecap","round"),u.appendChild(y)}},(d,{penColor:h,dotSize:y,minWidth:_,maxWidth:A})=>{const S=document.createElement("circle"),C=y>0?y:(_+A)/2;S.setAttribute("r",C.toString()),S.setAttribute("cx",d.x.toString()),S.setAttribute("cy",d.y.toString()),S.setAttribute("fill",h),u.appendChild(S)}),u.outerHTML}}const rm="",vu=l.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,formCreateInject:Object},watch:{visible(t){t?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=l.markRaw(new Gt(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const t=this.signaturePad.toDataURL();this.updateValue(t),this.visible=!1},updateValue(t){this.$emit("update:modelValue",t),this.$emit("change",t)},remove(){this.updateValue(""),this.$emit("remove")}}}),_u={class:"_fc-m-signature"},yu={key:0,class:"_fc-m-signature-preview"},bu=["src"],wu={class:"_fc-m-signature-pad",ref:"pad",width:"320px",height:"145px"};function $u(t,e,n,r,i,a){const o=l.resolveComponent("van-dialog");return l.openBlock(),l.createElementBlock("div",_u,[t.modelValue?(l.openBlock(),l.createElementBlock("div",yu,[l.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:e[0]||(e[0]=(...s)=>t.remove&&t.remove(...s))}),l.createElementVNode("img",{src:t.modelValue,alt:"signature"},null,8,bu)])):(l.openBlock(),l.createElementBlock("div",{key:1,class:"_fc-m-signature-btn",onClick:e[1]||(e[1]=s=>t.visible=!0)},[e[4]||(e[4]=l.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),l.createTextVNode(" "+l.toDisplayString(t.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),l.createVNode(o,{show:t.visible,"onUpdate:show":e[3]||(e[3]=s=>t.visible=s),class:"_fc-m-signature-dialog",onConfirm:t.submit,onCancel:t.clear,"confirm-button-text":t.formCreateInject.t("ok")||"\u786E\u5B9A","cancel-button-text":t.formCreateInject.t("reset")||"\u91CD\u7F6E","confirm-button-disabled":t.isEmpty},{title:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199")+" ",1),l.createElementVNode("i",{class:"fc-icon icon-add2",onClick:e[2]||(e[2]=s=>t.visible=!1)})]),default:l.withCtx(()=>[l.createElementVNode("canvas",wu,null,512)]),_:1},8,["show","onConfirm","onCancel","confirm-button-text","cancel-button-text","confirm-button-disabled"])])}const Ou=we(vu,[["render",$u]]);function Vn(t,e,n){for(var r=[],i=Math.max(t.length,e.length),a=0,o=0;o>1,t!==0;)i=Vn(i,i,n);return r}function Su(t,e){for(var n=t.split(""),r=[],i=n.length-1;i>=0;i--){var a=parseInt(n[i],e);if(isNaN(a))return null;r.push(a)}return r}function Eu(t,e,n){var r=Su(t,e);if(r===null)return null;for(var i=[],a=[1],o=0;o=0;o--)s+=i[o].toString(n);return s}function Cu(t){return t.substring(0,2)==="0x"&&(t=t.substring(2)),t=t.toLowerCase(),Eu(t,16,10)}class xu{constructor(e){e=e||{},this.seq=0,this.mid=(e.mid||1)%1023,this.offset=e.offset||0,this.lastTime=0}generate(){const e=Date.now(),n=(e-this.offset).toString(2);this.lastTime==e?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=e;let r=this.seq.toString(2),i=this.mid.toString(2);for(;r.length<12;)r="0"+r;for(;i.length<10;)i="0"+i;const a=n+i+r;let o="";for(let s=a.length;s>0;s-=4)o=parseInt(a.substring(s-4,s),2).toString(16)+o;return Cu(o)}}const Au=l.defineComponent({name:"FcId",props:["modelValue","prefix"],emits:["update:modelValue"],inject:{designer:{default:null}},data(){return{preview:"7379787000000000"}},watch:{modelValue:{handler:function(t){if(!t){const e=new xu({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+e.generate())}},immediate:!0}}});function Du(t,e,n,r,i,a){const o=l.resolveComponent("a-input");return l.openBlock(),l.createBlock(o,{value:t.designer?""+(t.prefix||"")+t.preview:t.modelValue,readonly:"",disabled:""},null,8,["value"])}const Ru=we(Au,[["render",Du]]),im="",Pu=l.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function ku(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fc-title",t.size||"h2"]),style:l.normalizeStyle(t.textStyle)},l.toDisplayString(t.title),7)}const Vu=we(Pu,[["render",ku]]),Mu=l.defineComponent({name:"AudioBox",emits:["pause","play","ended"],data(){return{}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,loop:Boolean,preload:{type:String,default:"auto"},muted:Boolean}}),Fu=["controls","autoplay","loop","preload","muted"],Tu=["src","type"];function ju(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("audio",{key:t.src,controls:t.controls,autoplay:t.autoplay,loop:t.loop,preload:t.preload,muted:t.muted,onPause:e[0]||(e[0]=o=>t.$emit("pause",o)),onPlay:e[1]||(e[1]=o=>t.$emit("play",o)),onEnded:e[2]||(e[2]=o=>t.$emit("ended",o))},[l.createElementVNode("source",{src:t.src,type:t.type},null,8,Tu),e[3]||(e[3]=l.createTextVNode(" Your browser does not support the audio element. "))],40,Fu)}const Bu=we(Mu,[["render",ju]]),om="",Iu=l.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),Nu=["src"];function Lu(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("iframe",{class:"_fc-iframe-box",src:t.src,frameborder:"0",onLoad:e[0]||(e[0]=o=>t.$emit("load",o))},null,40,Nu)}const Uu=we(Iu,[["render",Lu]]);var Mn={},Ht={},Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});function zu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var qu=function t(e,n){zu(this,t),this.data=e,this.text=n.text||e,this.options=n};Ce.default=qu,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.CODE39=void 0;var Gu=function(){function t(e,n){for(var r=0;r=200){s=r.shift()-105;var u=Re.SWAP[s];u!==void 0?o=e.next(r,i+1,u):((a===Re.SET_A||a===Re.SET_B)&&s===Re.SHIFT&&(r[0]=a===Re.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),o=e.next(r,i+1,a))}else s=e.correctIndex(r,a),o=e.next(r,i+1,a);var d=e.getBar(s),h=s*i;return{result:d+o.result,checksum:h+o.checksum}}}]),e}(ul.default);ht.default=hl;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});var Qe=ve,Oi=function(e){return e.match(new RegExp("^"+Qe.A_CHARS+"*"))[0].length},Si=function(e){return e.match(new RegExp("^"+Qe.B_CHARS+"*"))[0].length},Ei=function(e){return e.match(new RegExp("^"+Qe.C_CHARS+"*"))[0]};function In(t,e){var n=e?Qe.A_CHARS:Qe.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Ci(t.substring(r[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+In(t.substring(i.length),!e)}function Ci(t){var e=Ei(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=Oi(t)>=Si(t);return e+String.fromCharCode(r?206:205)+In(t,r)}Bn.default=function(t){var e=void 0,n=Ei(t).length;if(n>=2)e=Qe.C_START_CHAR+Ci(t);else{var r=Oi(t)>Si(t);e=(r?Qe.A_START_CHAR:Qe.B_START_CHAR)+In(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,a){return String.fromCharCode(203)+a})},Object.defineProperty(Tn,"__esModule",{value:!0});var pl=ht,ml=xi(pl),gl=Bn,vl=xi(gl);function xi(t){return t&&t.__esModule?t:{default:t}}function _l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bl=function(t){yl(e,t);function e(n,r){if(_l(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=Nn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,vl.default)(n),r));else var i=Nn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return Nn(i)}return e}(ml.default);Tn.default=bl;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});var wl=function(){function t(e,n){for(var r=0;rr.width*10?r.width*10:r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return tc(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,Pi.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,Pi.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:pt.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:pt.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:pt.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var r=[pt.SIDE_BIN,this.leftEncode(),pt.MIDDLE_BIN,this.rightEncode(),pt.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(ic.default);Xt.default=uc,Object.defineProperty(qn,"__esModule",{value:!0});var lc=function(){function t(e,n){for(var r=0;rr.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return Wc(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Xn(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,mt.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,mt.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,mt.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,mt.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,mt.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,mt.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(Jc.default);function Xn(t){var e=0,n;for(n=1;n<11;n+=2)e+=parseInt(t[n]);for(n=0;n<11;n+=2)e+=parseInt(t[n])*3;return(10-e%10)%10}xt.default=ef;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});var tf=function(){function t(e,n){for(var r=0;rr.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return tf(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],i=this.upcA[this.upcA.length-1],a=ff[parseInt(i)][parseInt(r)];return(0,rf.default)(this.middleDigits,a)}}]),e}(af.default);function Ii(t,e){for(var n=parseInt(t[t.length-1]),r=cf[n],i="",a=0,o=0;o=3&&this.number<=131070}}]),e}(qd.default);Kt.pharmacode=Yd;var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.codabar=void 0;var Jd=function(){function t(e,n){for(var r=0;r0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Xi(t,e,n){if(n.displayValue&&ee&&(e=t[n].height);return e}function Ph(t,e,n){var r;if(n)r=n;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var i=r.measureText(t);if(!i)return 0;var a=i.width;return a}Pe.getMaximumHeightOfEncodings=Rh,Pe.getEncodingHeight=Wi,Pe.getBarcodePadding=Xi,Pe.calculateEncodingAttributes=Ah,Pe.getTotalWidthOfEncodings=Dh,Object.defineProperty(sr,"__esModule",{value:!0});var kh=function(){function t(e,n){for(var r=0;r0?(o=0,i.textAlign="left"):n.textAlign=="right"?(o=r.width-1,i.textAlign="right"):(o=r.width/2,i.textAlign="center"),i.fillText(r.text,o,s)}}},{key:"moveCanvasDrawing",value:function(n){var r=this.canvas.getContext("2d");r.translate(n.width,0)}},{key:"restoreCanvas",value:function(){var n=this.canvas.getContext("2d");n.restore()}}]),t}();sr.default=jh;var lr={};Object.defineProperty(lr,"__esModule",{value:!0});var Bh=function(){function t(e,n){for(var r=0;r0&&(this.drawRect(u-r.width*s,o,r.width*s,r.height,n),s=0);s>0&&this.drawRect(u-r.width*(s-1),o,r.width*s,r.height,n)}},{key:"drawSVGText",value:function(n,r,i){var a=this.document.createElementNS(on,"text");if(r.displayValue){var o,s;a.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?s=r.fontSize-r.textMargin:s=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||i.barcodePadding>0?(o=0,a.setAttribute("text-anchor","start")):r.textAlign=="right"?(o=i.width-1,a.setAttribute("text-anchor","end")):(o=i.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",o),a.setAttribute("y",s),a.appendChild(this.document.createTextNode(i.text)),n.appendChild(a)}}},{key:"setSvgAttributes",value:function(n,r){var i=this.svg;i.setAttribute("width",n+"px"),i.setAttribute("height",r+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+n+" "+r),i.setAttribute("xmlns",on),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(n,r,i){var a=this.document.createElementNS(on,"g");return a.setAttribute("transform","translate("+n+", "+r+")"),i.appendChild(a),a}},{key:"setGroupOptions",value:function(n,r){n.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(n,r,i,a,o){var s=this.document.createElementNS(on,"rect");return s.setAttribute("x",n),s.setAttribute("y",r),s.setAttribute("width",i),s.setAttribute("height",a),o.appendChild(s),s}}]),t}();lr.default=zh;var fr={};Object.defineProperty(fr,"__esModule",{value:!0});var qh=function(){function t(e,n){for(var r=0;r"u"?"undefined":np(t))==="object"&&!t.nodeName)return{element:t,renderer:Pt.default.ObjectRenderer};throw new op.InvalidElementException}}function ap(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var n=[],r=0;r"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,gp.default)(e),i._encodings=[],i._options=Zi.default,i._errorHandler=new bp.default(i),typeof n<"u"&&(r=r||{},r.format||(r.format=no()),i.options(r)[r.format](n,r).render()),i};an.getModule=function(t){return lt.default[t]};for(var eo in lt.default)lt.default.hasOwnProperty(eo)&&$p(lt.default,eo);function $p(t,e){Ye.prototype[e]=Ye.prototype[e.toUpperCase()]=Ye.prototype[e.toLowerCase()]=function(n,r){var i=this;return i._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var a=(0,kt.default)(i._options,r);a=(0,_p.default)(a);var o=t[e],s=to(n,o,a);return i._encodings.push(s),i})}}function to(t,e,n){t=""+t;var r=new e(t,n);if(!r.valid())throw new Ki.InvalidInputException(r.constructor.name,t);var i=r.encode();i=(0,Ji.default)(i);for(var a=0;a{this.$props[n]!=null&&this.$props[n]!==""&&(e[n]=this.$props[n])}),delete e.value,delete e.formCreateInject,this.$nextTick(()=>{Op(this.$refs.bar,t||"",e)})},deep:!0,immediate:!0}}}),Ep={class:"_fc-barcode",ref:"bar"};function Cp(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("img",Ep,null,512)}const xp=we(Sp,[["render",Cp]]),am="",Ap=l.defineComponent({name:"VideoBox",emits:["pause","play","ended","error"],data(){return{player:null}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,isLive:Boolean,withCredentials:Boolean,loop:Boolean},watch:{src:{handler:function(){this.$nextTick(()=>{Xe.ready("mpegts",()=>{const t=this.$refs.video,e=window.mpegts.createPlayer({isLive:this.isLive,type:this.type,url:this.src});e.attachMediaElement(t),e.on("error",n=>{this.$emit("error",n)}),e.load(),this.autoplay&&e.play().catch(n=>{this.$emit("error",n)}),this.player=e})})},immediate:!0}},created(){window.mpegts?Xe.done("mpegts"):Xe.isDefined("mpegts")||Xe(["https://static.form-create.com/res/mpegts.min.js"],"mpegts")}}),Dp=["controls","loop"];function Rp(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("video",{ref:"video",class:"_fc-video-box",controls:t.controls,loop:t.loop,onPause:e[0]||(e[0]=o=>t.$emit("pause",o)),onPlay:e[1]||(e[1]=o=>t.$emit("play",o)),onEnded:e[2]||(e[2]=o=>t.$emit("ended",o))},null,40,Dp)}const Pp=we(Ap,[["render",Rp]]);var ro={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(mi,()=>(()=>{var n={873:(o,s)=>{var u,d,h=function(){var y=function(k,O){var b=k,f=q[O],c=null,m=0,v=null,p=[],E={},F=function(g,$){c=function(w){for(var R=new Array(w),V=0;V=7&&I(g),v==null&&(v=x(b,f,p)),D(v,$)},M=function(g,$){for(var w=-1;w<=7;w+=1)if(!(g+w<=-1||m<=g+w))for(var R=-1;R<=7;R+=1)$+R<=-1||m<=$+R||(c[g+w][$+R]=0<=w&&w<=6&&(R==0||R==6)||0<=R&&R<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=R&&R<=4)},z=function(){for(var g=8;g>w&1)==1;c[Math.floor(w/3)][w%3+m-8-3]=R}for(w=0;w<18;w+=1)R=!g&&($>>w&1)==1,c[w%3+m-8-3][Math.floor(w/3)]=R},N=function(g,$){for(var w=f<<3|$,R=U.getBCHTypeInfo(w),V=0;V<15;V+=1){var H=!g&&(R>>V&1)==1;V<6?c[V][8]=H:V<8?c[V+1][8]=H:c[m-15+V][8]=H}for(V=0;V<15;V+=1)H=!g&&(R>>V&1)==1,V<8?c[8][m-V-1]=H:V<9?c[8][15-V-1+1]=H:c[8][15-V-1]=H;c[m-8][8]=!g},D=function(g,$){for(var w=-1,R=m-1,V=7,H=0,W=U.getMaskFunction($),ee=m-1;ee>0;ee-=2)for(ee==6&&(ee-=1);;){for(var ae=0;ae<2;ae+=1)if(c[R][ee-ae]==null){var ie=!1;H>>V&1)==1),W(R,ee-ae)&&(ie=!ie),c[R][ee-ae]=ie,(V-=1)==-1&&(H+=1,V=7)}if((R+=w)<0||m<=R){R-=w,w=-w;break}}},x=function(g,$,w){for(var R=ne.getRSBlocks(g,$),V=Z(),H=0;H8*ee)throw"code length overflow. ("+V.getLengthInBits()+">"+8*ee+")";for(V.getLengthInBits()+4<=8*ee&&V.put(0,4);V.getLengthInBits()%8!=0;)V.putBit(!1);for(;!(V.getLengthInBits()>=8*ee||(V.put(236,8),V.getLengthInBits()>=8*ee));)V.put(17,8);return function(ae,ie){for(var ue=0,_e=0,he=0,fe=new Array(ie.length),le=new Array(ie.length),K=0;K=0?Ee.getAt(Oe):0}}var un=0;for(te=0;teie)&&(W=ie,ee=ae)}return ee}())},E.createTableTag=function(g,$){g=g||2;var w="";w+='";for(var V=0;V';w+=""}return(w+="")+"
"},E.createSvgTag=function(g,$,w,R){var V={};typeof arguments[0]=="object"&&(g=(V=arguments[0]).cellSize,$=V.margin,w=V.alt,R=V.title),g=g||2,$=$===void 0?4*g:$,(w=typeof w=="string"?{text:w}:w||{}).text=w.text||null,w.id=w.text?w.id||"qrcode-description":null,(R=typeof R=="string"?{text:R}:R||{}).text=R.text||null,R.id=R.text?R.id||"qrcode-title":null;var H,W,ee,ae,ie=E.getModuleCount()*g+2*$,ue="";for(ae="l"+g+",0 0,"+g+" -"+g+",0 0,-"+g+"z ",ue+=''+P(R.text)+"":"",ue+=w.text?''+P(w.text)+"":"",ue+='',ue+='"},E.createDataURL=function(g,$){g=g||2,$=$===void 0?4*g:$;var w=E.getModuleCount()*g+2*$,R=$,V=w-$;return Ne(w,w,function(H,W){if(R<=H&&H"};var P=function(g){for(var $="",w=0;w":$+=">";break;case"&":$+="&";break;case'"':$+=""";break;default:$+=R}}return $};return E.createASCII=function(g,$){if((g=g||1)<2)return function(fe){fe=fe===void 0?2:fe;var le,K,ye,be,te,Ae=1*E.getModuleCount()+2*fe,Ee=fe,Oe=Ae-fe,un={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Vt={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Le="";for(le=0;le=Oe?Vt[te]:un[te];Le+=` `}return Ae%2&&fe>0?Le.substring(0,Le.length-Ae-1)+Array(Ae+1).join("\u2580"):Le.substring(0,Le.length-1)}($);g-=1,$=$===void 0?2*g:$;var w,R,V,H,W=E.getModuleCount()*g+2*$,ee=$,ae=W-$,ie=Array(g+1).join("\u2588\u2588"),ue=Array(g+1).join(" "),_e="",he="";for(w=0;w>>8),m.push(255&E)):m.push(f)}}return m}};var _,A,S,C,T,q={L:1,M:0,Q:3,H:2},U=(_=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],A=1335,S=7973,T=function(k){for(var O=0;k!=0;)O+=1,k>>>=1;return O},(C={}).getBCHTypeInfo=function(k){for(var O=k<<10;T(O)-T(A)>=0;)O^=A<=0;)O^=S<5&&(b+=3+m-5)}for(f=0;f=256;)f-=255;return k[f]}}}();function Y(k,O){if(k.length===void 0)throw k.length+"/"+O;var b=function(){for(var c=0;c>>7-f%8&1)==1},put:function(f,c){for(var m=0;m>>c-m-1&1)==1)},getLengthInBits:function(){return O},putBit:function(f){var c=Math.floor(O/8);k.length<=c&&k.push(0),f&&(k[c]|=128>>>O%8),O+=1}};return b},Q=function(k){var O=k,b={getMode:function(){return 1},getLength:function(m){return O.length},write:function(m){for(var v=O,p=0;p+2>>8&255)+(255&p),c.put(p,13),v+=2}if(v>>8)},writeBytes:function(b,f,c){f=f||0,c=c||b.length;for(var m=0;m0&&(b+=","),b+=k[f];return b+"]"}};return O},$e=function(k){var O=k,b=0,f=0,c=0,m={read:function(){for(;c<8;){if(b>=O.length){if(c==0)return-1;throw"unexpected end of file./"+c}var p=O.charAt(b);if(b+=1,p=="=")return c=0,-1;p.match(/^\s$/)||(f=f<<6|v(p.charCodeAt(0)),c+=6)}var E=f>>>c-8&255;return c-=8,E}},v=function(p){if(65<=p&&p<=90)return p-65;if(97<=p&&p<=122)return p-97+26;if(48<=p&&p<=57)return p-48+52;if(p==43)return 62;if(p==47)return 63;throw"c:"+p};return m},Ne=function(k,O,b){for(var f=function(M,z){var B=M,I=z,N=new Array(M*z),D={setPixel:function(g,$,w){N[$*B+g]=w},write:function(g){g.writeString("GIF87a"),g.writeShort(B),g.writeShort(I),g.writeByte(128),g.writeByte(0),g.writeByte(0),g.writeByte(0),g.writeByte(0),g.writeByte(0),g.writeByte(255),g.writeByte(255),g.writeByte(255),g.writeString(","),g.writeShort(0),g.writeShort(0),g.writeShort(B),g.writeShort(I),g.writeByte(0);var $=x(2);g.writeByte(2);for(var w=0;$.length-w>255;)g.writeByte(255),g.writeBytes($,w,255),w+=255;g.writeByte($.length-w),g.writeBytes($,w,$.length-w),g.writeByte(0),g.writeString(";")}},x=function(g){for(var $=1<>>K!=0)throw"length over";for(;ee+K>=8;)W.writeByte(255&(le<>>=8-ee,ae=0,ee=0;ae|=le<0&&W.writeByte(ae)}});ue.write($,R);var _e=0,he=String.fromCharCode(N[_e]);for(_e+=1;_e=6;)D(M>>>z-6),z-=6},N.flush=function(){if(z>0&&(D(M<<6-z),M=0,z=0),B%3!=0)for(var P=3-B%3,g=0;g>6,128|63&C):C<55296||C>=57344?A.push(224|C>>12,128|C>>6&63,128|63&C):(S++,C=65536+((1023&C)<<10|1023&_.charCodeAt(S)),A.push(240|C>>18,128|C>>12&63,128|C>>6&63,128|63&C))}return A}(y)},(d=typeof(u=function(){return h})=="function"?u.apply(s,[]):u)===void 0||(o.exports=d)}},r={};function i(o){var s=r[o];if(s!==void 0)return s.exports;var u=r[o]={exports:{}};return n[o](u,u.exports,i),u.exports}i.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return i.d(s,{a:s}),s},i.d=(o,s)=>{for(var u in s)i.o(s,u)&&!i.o(o,u)&&Object.defineProperty(o,u,{enumerable:!0,get:s[u]})},i.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s);var a={};return(()=>{i.d(a,{default:()=>O});const o=b=>!!b&&typeof b=="object"&&!Array.isArray(b);function s(b,...f){if(!f.length)return b;const c=f.shift();return c!==void 0&&o(b)&&o(c)?(b=Object.assign({},b),Object.keys(c).forEach(m=>{const v=b[m],p=c[m];Array.isArray(v)&&Array.isArray(p)?b[m]=p:o(v)&&o(p)?b[m]=s(Object.assign({},v),p):b[m]=p}),s(b,...f)):b}function u(b,f){const c=document.createElement("a");c.download=f,c.href=b,document.body.appendChild(c),c.click(),document.body.removeChild(c)}const d={L:.07,M:.15,Q:.25,H:.3};class h{constructor({svg:f,type:c,window:m}){this._svg=f,this._type=c,this._window=m}draw(f,c,m,v){let p;switch(this._type){case"dots":p=this._drawDot;break;case"classy":p=this._drawClassy;break;case"classy-rounded":p=this._drawClassyRounded;break;case"rounded":p=this._drawRounded;break;case"extra-rounded":p=this._drawExtraRounded;break;default:p=this._drawSquare}p.call(this,{x:f,y:c,size:m,getNeighbor:v})}_rotateFigure({x:f,y:c,size:m,rotation:v=0,draw:p}){var E;const F=f+m/2,M=c+m/2;p(),(E=this._element)===null||E===void 0||E.setAttribute("transform",`rotate(${180*v/Math.PI},${F},${M})`)}_basicDot(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(m+c/2)),this._element.setAttribute("cy",String(v+c/2)),this._element.setAttribute("r",String(c/2))}}))}_basicSquare(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(m)),this._element.setAttribute("y",String(v)),this._element.setAttribute("width",String(c)),this._element.setAttribute("height",String(c))}}))}_basicSideRounded(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${v}v ${c}h `+c/2+`a ${c/2} ${c/2}, 0, 0, 0, 0 ${-c}`)}}))}_basicCornerRounded(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${v}v ${c}h ${c}v `+-c/2+`a ${c/2} ${c/2}, 0, 0, 0, ${-c/2} ${-c/2}`)}}))}_basicCornerExtraRounded(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${v}v ${c}h ${c}a ${c} ${c}, 0, 0, 0, ${-c} ${-c}`)}}))}_basicCornersRounded(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${v}v `+c/2+`a ${c/2} ${c/2}, 0, 0, 0, ${c/2} ${c/2}h `+c/2+"v "+-c/2+`a ${c/2} ${c/2}, 0, 0, 0, ${-c/2} ${-c/2}`)}}))}_drawDot({x:f,y:c,size:m}){this._basicDot({x:f,y:c,size:m,rotation:0})}_drawSquare({x:f,y:c,size:m}){this._basicSquare({x:f,y:c,size:m,rotation:0})}_drawRounded({x:f,y:c,size:m,getNeighbor:v}){const p=v?+v(-1,0):0,E=v?+v(1,0):0,F=v?+v(0,-1):0,M=v?+v(0,1):0,z=p+E+F+M;if(z!==0)if(z>2||p&&E||F&&M)this._basicSquare({x:f,y:c,size:m,rotation:0});else{if(z===2){let B=0;return p&&F?B=Math.PI/2:F&&E?B=Math.PI:E&&M&&(B=-Math.PI/2),void this._basicCornerRounded({x:f,y:c,size:m,rotation:B})}if(z===1){let B=0;return F?B=Math.PI/2:E?B=Math.PI:M&&(B=-Math.PI/2),void this._basicSideRounded({x:f,y:c,size:m,rotation:B})}}else this._basicDot({x:f,y:c,size:m,rotation:0})}_drawExtraRounded({x:f,y:c,size:m,getNeighbor:v}){const p=v?+v(-1,0):0,E=v?+v(1,0):0,F=v?+v(0,-1):0,M=v?+v(0,1):0,z=p+E+F+M;if(z!==0)if(z>2||p&&E||F&&M)this._basicSquare({x:f,y:c,size:m,rotation:0});else{if(z===2){let B=0;return p&&F?B=Math.PI/2:F&&E?B=Math.PI:E&&M&&(B=-Math.PI/2),void this._basicCornerExtraRounded({x:f,y:c,size:m,rotation:B})}if(z===1){let B=0;return F?B=Math.PI/2:E?B=Math.PI:M&&(B=-Math.PI/2),void this._basicSideRounded({x:f,y:c,size:m,rotation:B})}}else this._basicDot({x:f,y:c,size:m,rotation:0})}_drawClassy({x:f,y:c,size:m,getNeighbor:v}){const p=v?+v(-1,0):0,E=v?+v(1,0):0,F=v?+v(0,-1):0,M=v?+v(0,1):0;p+E+F+M!==0?p||F?E||M?this._basicSquare({x:f,y:c,size:m,rotation:0}):this._basicCornerRounded({x:f,y:c,size:m,rotation:Math.PI/2}):this._basicCornerRounded({x:f,y:c,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:f,y:c,size:m,rotation:Math.PI/2})}_drawClassyRounded({x:f,y:c,size:m,getNeighbor:v}){const p=v?+v(-1,0):0,E=v?+v(1,0):0,F=v?+v(0,-1):0,M=v?+v(0,1):0;p+E+F+M!==0?p||F?E||M?this._basicSquare({x:f,y:c,size:m,rotation:0}):this._basicCornerExtraRounded({x:f,y:c,size:m,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:f,y:c,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:f,y:c,size:m,rotation:Math.PI/2})}}const y={dot:"dot",square:"square",extraRounded:"extra-rounded"},_=Object.values(y);class A{constructor({svg:f,type:c,window:m}){this._svg=f,this._type=c,this._window=m}draw(f,c,m,v){let p;switch(this._type){case y.square:p=this._drawSquare;break;case y.extraRounded:p=this._drawExtraRounded;break;default:p=this._drawDot}p.call(this,{x:f,y:c,size:m,rotation:v})}_rotateFigure({x:f,y:c,size:m,rotation:v=0,draw:p}){var E;const F=f+m/2,M=c+m/2;p(),(E=this._element)===null||E===void 0||E.setAttribute("transform",`rotate(${180*v/Math.PI},${F},${M})`)}_basicDot(f){const{size:c,x:m,y:v}=f,p=c/7;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${m+c/2} ${v}a ${c/2} ${c/2} 0 1 0 0.1 0zm 0 ${p}a ${c/2-p} ${c/2-p} 0 1 1 -0.1 0Z`)}}))}_basicSquare(f){const{size:c,x:m,y:v}=f,p=c/7;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${m} ${v}v ${c}h ${c}v `+-c+`zM ${m+p} ${v+p}h `+(c-2*p)+"v "+(c-2*p)+"h "+(2*p-c)+"z")}}))}_basicExtraRounded(f){const{size:c,x:m,y:v}=f,p=c/7;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${m} ${v+2.5*p}v `+2*p+`a ${2.5*p} ${2.5*p}, 0, 0, 0, ${2.5*p} ${2.5*p}h `+2*p+`a ${2.5*p} ${2.5*p}, 0, 0, 0, ${2.5*p} ${2.5*-p}v `+-2*p+`a ${2.5*p} ${2.5*p}, 0, 0, 0, ${2.5*-p} ${2.5*-p}h `+-2*p+`a ${2.5*p} ${2.5*p}, 0, 0, 0, ${2.5*-p} ${2.5*p}M ${m+2.5*p} ${v+p}h `+2*p+`a ${1.5*p} ${1.5*p}, 0, 0, 1, ${1.5*p} ${1.5*p}v `+2*p+`a ${1.5*p} ${1.5*p}, 0, 0, 1, ${1.5*-p} ${1.5*p}h `+-2*p+`a ${1.5*p} ${1.5*p}, 0, 0, 1, ${1.5*-p} ${1.5*-p}v `+-2*p+`a ${1.5*p} ${1.5*p}, 0, 0, 1, ${1.5*p} ${1.5*-p}`)}}))}_drawDot({x:f,y:c,size:m,rotation:v}){this._basicDot({x:f,y:c,size:m,rotation:v})}_drawSquare({x:f,y:c,size:m,rotation:v}){this._basicSquare({x:f,y:c,size:m,rotation:v})}_drawExtraRounded({x:f,y:c,size:m,rotation:v}){this._basicExtraRounded({x:f,y:c,size:m,rotation:v})}}const S={dot:"dot",square:"square"},C=Object.values(S);class T{constructor({svg:f,type:c,window:m}){this._svg=f,this._type=c,this._window=m}draw(f,c,m,v){let p;p=this._type===S.square?this._drawSquare:this._drawDot,p.call(this,{x:f,y:c,size:m,rotation:v})}_rotateFigure({x:f,y:c,size:m,rotation:v=0,draw:p}){var E;const F=f+m/2,M=c+m/2;p(),(E=this._element)===null||E===void 0||E.setAttribute("transform",`rotate(${180*v/Math.PI},${F},${M})`)}_basicDot(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(m+c/2)),this._element.setAttribute("cy",String(v+c/2)),this._element.setAttribute("r",String(c/2))}}))}_basicSquare(f){const{size:c,x:m,y:v}=f;this._rotateFigure(Object.assign(Object.assign({},f),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(m)),this._element.setAttribute("y",String(v)),this._element.setAttribute("width",String(c)),this._element.setAttribute("height",String(c))}}))}_drawDot({x:f,y:c,size:m,rotation:v}){this._basicDot({x:f,y:c,size:m,rotation:v})}_drawSquare({x:f,y:c,size:m,rotation:v}){this._basicSquare({x:f,y:c,size:m,rotation:v})}}const q="circle",U=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],L=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class Y{constructor(f,c){this._roundSize=m=>this._options.dotsOptions.roundSize?Math.floor(m):m,this._window=c,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(f.width)),this._element.setAttribute("height",String(f.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),f.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${f.width} ${f.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=f.image,this._instanceId=Y.instanceCount++,this._options=f}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(f){const c=f.getModuleCount(),m=Math.min(this._options.width,this._options.height)-2*this._options.margin,v=this._options.shape===q?m/Math.sqrt(2):m,p=this._roundSize(v/c);let E={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=f,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:F,qrOptions:M}=this._options,z=F.imageSize*d[M.errorCorrectionLevel],B=Math.floor(z*c*c);E=function({originalHeight:I,originalWidth:N,maxHiddenDots:D,maxHiddenAxisDots:x,dotSize:P}){const g={x:0,y:0},$={x:0,y:0};if(I<=0||N<=0||D<=0||P<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const w=I/N;return g.x=Math.floor(Math.sqrt(D/w)),g.x<=0&&(g.x=1),x&&xD||x&&x{var z,B,I,N,D,x;return!(this._options.imageOptions.hideBackgroundDots&&F>=(c-E.hideYDots)/2&&F<(c+E.hideYDots)/2&&M>=(c-E.hideXDots)/2&&M<(c+E.hideXDots)/2||((z=U[F])===null||z===void 0?void 0:z[M])||((B=U[F-c+7])===null||B===void 0?void 0:B[M])||((I=U[F])===null||I===void 0?void 0:I[M-c+7])||((N=L[F])===null||N===void 0?void 0:N[M])||((D=L[F-c+7])===null||D===void 0?void 0:D[M])||((x=L[F])===null||x===void 0?void 0:x[M-c+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:E.width,height:E.height,count:c,dotSize:p})}drawBackground(){var f,c,m;const v=this._element,p=this._options;if(v){const E=(f=p.backgroundOptions)===null||f===void 0?void 0:f.gradient,F=(c=p.backgroundOptions)===null||c===void 0?void 0:c.color;let M=p.height,z=p.width;if(E||F){const B=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((m=p.backgroundOptions)===null||m===void 0)&&m.round&&(M=z=Math.min(p.width,p.height),B.setAttribute("rx",String(M/2*p.backgroundOptions.round))),B.setAttribute("x",String(this._roundSize((p.width-z)/2))),B.setAttribute("y",String(this._roundSize((p.height-M)/2))),B.setAttribute("width",String(z)),B.setAttribute("height",String(M)),this._backgroundClipPath.appendChild(B),this._createColor({options:E,color:F,additionalRotation:0,x:0,y:0,height:p.height,width:p.width,name:`background-color-${this._instanceId}`})}}}drawDots(f){var c,m;if(!this._qr)throw"QR code is not defined";const v=this._options,p=this._qr.getModuleCount();if(p>v.width||p>v.height)throw"The canvas is too small.";const E=Math.min(v.width,v.height)-2*v.margin,F=v.shape===q?E/Math.sqrt(2):E,M=this._roundSize(F/p),z=this._roundSize((v.width-p*M)/2),B=this._roundSize((v.height-p*M)/2),I=new h({svg:this._element,type:v.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(c=v.dotsOptions)===null||c===void 0?void 0:c.gradient,color:v.dotsOptions.color,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`dot-color-${this._instanceId}`});for(let N=0;N!(D+x<0||N+P<0||D+x>=p||N+P>=p)&&!(f&&!f(N+P,D+x))&&!!this._qr&&this._qr.isDark(N+P,D+x)),I._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(I._element));if(v.shape===q){const N=this._roundSize((E/M-p)/2),D=p+2*N,x=z-N*M,P=B-N*M,g=[],$=this._roundSize(D/2);for(let w=0;w=N-1&&w<=D-N&&R>=N-1&&R<=D-N||Math.sqrt((w-$)*(w-$)+(R-$)*(R-$))>$?g[w][R]=0:g[w][R]=this._qr.isDark(R-2*N<0?R:R>=p?R-2*N:R-N,w-2*N<0?w:w>=p?w-2*N:w-N)?1:0}for(let w=0;w{var W;return!!(!((W=g[w+H])===null||W===void 0)&&W[R+V])}),I._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(I._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const f=this._element,c=this._options;if(!f)throw"Element code is not defined";const m=this._qr.getModuleCount(),v=Math.min(c.width,c.height)-2*c.margin,p=c.shape===q?v/Math.sqrt(2):v,E=this._roundSize(p/m),F=7*E,M=3*E,z=this._roundSize((c.width-m*E)/2),B=this._roundSize((c.height-m*E)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([I,N,D])=>{var x,P,g,$,w,R,V,H,W,ee,ae,ie,ue,_e;const he=z+I*E*(m-7),fe=B+N*E*(m-7);let le=this._dotsClipPath,K=this._dotsClipPath;if((((x=c.cornersSquareOptions)===null||x===void 0?void 0:x.gradient)||((P=c.cornersSquareOptions)===null||P===void 0?void 0:P.color))&&(le=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),le.setAttribute("id",`clip-path-corners-square-color-${I}-${N}-${this._instanceId}`),this._defs.appendChild(le),this._cornersSquareClipPath=this._cornersDotClipPath=K=le,this._createColor({options:(g=c.cornersSquareOptions)===null||g===void 0?void 0:g.gradient,color:($=c.cornersSquareOptions)===null||$===void 0?void 0:$.color,additionalRotation:D,x:he,y:fe,height:F,width:F,name:`corners-square-color-${I}-${N}-${this._instanceId}`})),((w=c.cornersSquareOptions)===null||w===void 0?void 0:w.type)&&_.includes(c.cornersSquareOptions.type)){const ye=new A({svg:this._element,type:c.cornersSquareOptions.type,window:this._window});ye.draw(he,fe,F,D),ye._element&&le&&le.appendChild(ye._element)}else{const ye=new h({svg:this._element,type:((R=c.cornersSquareOptions)===null||R===void 0?void 0:R.type)||c.dotsOptions.type,window:this._window});for(let be=0;be{var Oe;return!!(!((Oe=U[be+Ee])===null||Oe===void 0)&&Oe[te+Ae])}),ye._element&&le&&le.appendChild(ye._element))}if((((H=c.cornersDotOptions)===null||H===void 0?void 0:H.gradient)||((W=c.cornersDotOptions)===null||W===void 0?void 0:W.color))&&(K=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),K.setAttribute("id",`clip-path-corners-dot-color-${I}-${N}-${this._instanceId}`),this._defs.appendChild(K),this._cornersDotClipPath=K,this._createColor({options:(ee=c.cornersDotOptions)===null||ee===void 0?void 0:ee.gradient,color:(ae=c.cornersDotOptions)===null||ae===void 0?void 0:ae.color,additionalRotation:D,x:he+2*E,y:fe+2*E,height:M,width:M,name:`corners-dot-color-${I}-${N}-${this._instanceId}`})),((ie=c.cornersDotOptions)===null||ie===void 0?void 0:ie.type)&&C.includes(c.cornersDotOptions.type)){const ye=new T({svg:this._element,type:c.cornersDotOptions.type,window:this._window});ye.draw(he+2*E,fe+2*E,M,D),ye._element&&K&&K.appendChild(ye._element)}else{const ye=new h({svg:this._element,type:((ue=c.cornersDotOptions)===null||ue===void 0?void 0:ue.type)||c.dotsOptions.type,window:this._window});for(let be=0;be{var Oe;return!!(!((Oe=L[be+Ee])===null||Oe===void 0)&&Oe[te+Ae])}),ye._element&&K&&K.appendChild(ye._element))}})}loadImage(){return new Promise((f,c)=>{var m;const v=this._options;if(!v.image)return c("Image is not defined");if(!((m=v.nodeCanvas)===null||m===void 0)&&m.loadImage)v.nodeCanvas.loadImage(v.image).then(p=>{var E,F;if(this._image=p,this._options.imageOptions.saveAsBlob){const M=(E=v.nodeCanvas)===null||E===void 0?void 0:E.createCanvas(this._image.width,this._image.height);(F=M==null?void 0:M.getContext("2d"))===null||F===void 0||F.drawImage(p,0,0),this._imageUri=M==null?void 0:M.toDataURL()}f()}).catch(c);else{const p=new this._window.Image;typeof v.imageOptions.crossOrigin=="string"&&(p.crossOrigin=v.imageOptions.crossOrigin),this._image=p,p.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(E,F){return new Promise(M=>{const z=new F.XMLHttpRequest;z.onload=function(){const B=new F.FileReader;B.onloadend=function(){M(B.result)},B.readAsDataURL(z.response)},z.open("GET",E),z.responseType="blob",z.send()})}(v.image||"",this._window)),f()},p.src=v.image}})}async drawImage({width:f,height:c,count:m,dotSize:v}){const p=this._options,E=this._roundSize((p.width-m*v)/2),F=this._roundSize((p.height-m*v)/2),M=E+this._roundSize(p.imageOptions.margin+(m*v-f)/2),z=F+this._roundSize(p.imageOptions.margin+(m*v-c)/2),B=f-2*p.imageOptions.margin,I=c-2*p.imageOptions.margin,N=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");N.setAttribute("href",this._imageUri||""),N.setAttribute("x",String(M)),N.setAttribute("y",String(z)),N.setAttribute("width",`${B}px`),N.setAttribute("height",`${I}px`),this._element.appendChild(N)}_createColor({options:f,color:c,additionalRotation:m,x:v,y:p,height:E,width:F,name:M}){const z=F>E?F:E,B=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(B.setAttribute("x",String(v)),B.setAttribute("y",String(p)),B.setAttribute("height",String(E)),B.setAttribute("width",String(F)),B.setAttribute("clip-path",`url('#clip-path-${M}')`),f){let I;if(f.type==="radial")I=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),I.setAttribute("id",M),I.setAttribute("gradientUnits","userSpaceOnUse"),I.setAttribute("fx",String(v+F/2)),I.setAttribute("fy",String(p+E/2)),I.setAttribute("cx",String(v+F/2)),I.setAttribute("cy",String(p+E/2)),I.setAttribute("r",String(z/2));else{const N=((f.rotation||0)+m)%(2*Math.PI),D=(N+2*Math.PI)%(2*Math.PI);let x=v+F/2,P=p+E/2,g=v+F/2,$=p+E/2;D>=0&&D<=.25*Math.PI||D>1.75*Math.PI&&D<=2*Math.PI?(x-=F/2,P-=E/2*Math.tan(N),g+=F/2,$+=E/2*Math.tan(N)):D>.25*Math.PI&&D<=.75*Math.PI?(P-=E/2,x-=F/2/Math.tan(N),$+=E/2,g+=F/2/Math.tan(N)):D>.75*Math.PI&&D<=1.25*Math.PI?(x+=F/2,P+=E/2*Math.tan(N),g-=F/2,$-=E/2*Math.tan(N)):D>1.25*Math.PI&&D<=1.75*Math.PI&&(P+=E/2,x+=F/2/Math.tan(N),$-=E/2,g-=F/2/Math.tan(N)),I=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),I.setAttribute("id",M),I.setAttribute("gradientUnits","userSpaceOnUse"),I.setAttribute("x1",String(Math.round(x))),I.setAttribute("y1",String(Math.round(P))),I.setAttribute("x2",String(Math.round(g))),I.setAttribute("y2",String(Math.round($)))}f.colorStops.forEach(({offset:N,color:D})=>{const x=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");x.setAttribute("offset",100*N+"%"),x.setAttribute("stop-color",D),I.appendChild(x)}),B.setAttribute("fill",`url('#${M}')`),this._defs.appendChild(I)}else c&&B.setAttribute("fill",c);this._element.appendChild(B)}}Y.instanceCount=0;const ne=Y,Z="canvas",Q={};for(let b=0;b<=40;b++)Q[b]=b;const X={type:Z,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Q[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function ce(b){const f=Object.assign({},b);if(!f.colorStops||!f.colorStops.length)throw"Field 'colorStops' is required in gradient";return f.rotation?f.rotation=Number(f.rotation):f.rotation=0,f.colorStops=f.colorStops.map(c=>Object.assign(Object.assign({},c),{offset:Number(c.offset)})),f}function se(b){const f=Object.assign({},b);return f.width=Number(f.width),f.height=Number(f.height),f.margin=Number(f.margin),f.imageOptions=Object.assign(Object.assign({},f.imageOptions),{hideBackgroundDots:Boolean(f.imageOptions.hideBackgroundDots),imageSize:Number(f.imageOptions.imageSize),margin:Number(f.imageOptions.margin)}),f.margin>Math.min(f.width,f.height)&&(f.margin=Math.min(f.width,f.height)),f.dotsOptions=Object.assign({},f.dotsOptions),f.dotsOptions.gradient&&(f.dotsOptions.gradient=ce(f.dotsOptions.gradient)),f.cornersSquareOptions&&(f.cornersSquareOptions=Object.assign({},f.cornersSquareOptions),f.cornersSquareOptions.gradient&&(f.cornersSquareOptions.gradient=ce(f.cornersSquareOptions.gradient))),f.cornersDotOptions&&(f.cornersDotOptions=Object.assign({},f.cornersDotOptions),f.cornersDotOptions.gradient&&(f.cornersDotOptions.gradient=ce(f.cornersDotOptions.gradient))),f.backgroundOptions&&(f.backgroundOptions=Object.assign({},f.backgroundOptions),f.backgroundOptions.gradient&&(f.backgroundOptions.gradient=ce(f.backgroundOptions.gradient))),f}var re=i(873),$e=i.n(re);function Ne(b){if(!b)throw new Error("Extension must be defined");b[0]==="."&&(b=b.substring(1));const f={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[b.toLowerCase()];if(!f)throw new Error(`Extension "${b}" is not supported`);return f}class k{constructor(f){f!=null&&f.jsdom?this._window=new f.jsdom("",{resources:"usable"}).window:this._window=window,this._options=f?se(s(X,f)):X,this.update()}static _clearContainer(f){f&&(f.innerHTML="")}_setupSvg(){if(!this._qr)return;const f=new ne(this._options,this._window);this._svg=f.getElement(),this._svgDrawingPromise=f.drawQR(this._qr).then(()=>{var c;this._svg&&((c=this._extension)===null||c===void 0||c.call(this,f.getElement(),this._options))})}_setupCanvas(){var f,c;this._qr&&(!((f=this._options.nodeCanvas)===null||f===void 0)&&f.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(c=this._svgDrawingPromise)===null||c===void 0?void 0:c.then(()=>{var m;if(!this._svg)return;const v=this._svg,p=new this._window.XMLSerializer().serializeToString(v),E=btoa(p),F=`data:${Ne("svg")};base64,${E}`;if(!((m=this._options.nodeCanvas)===null||m===void 0)&&m.loadImage)return this._options.nodeCanvas.loadImage(F).then(M=>{var z,B;M.width=this._options.width,M.height=this._options.height,(B=(z=this._nodeCanvas)===null||z===void 0?void 0:z.getContext("2d"))===null||B===void 0||B.drawImage(M,0,0)});{const M=new this._window.Image;return new Promise(z=>{M.onload=()=>{var B,I;(I=(B=this._domCanvas)===null||B===void 0?void 0:B.getContext("2d"))===null||I===void 0||I.drawImage(M,0,0),z()},M.src=F})}}))}async _getElement(f="png"){if(!this._qr)throw"QR code is empty";return f.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(f){k._clearContainer(this._container),this._options=f?se(s(this._options,f)):this._options,this._options.data&&(this._qr=$e()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(c){switch(!0){case/^[0-9]*$/.test(c):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(c):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Z?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(f){if(f){if(typeof f.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Z?this._domCanvas&&f.appendChild(this._domCanvas):this._svg&&f.appendChild(this._svg),this._container=f}}applyExtension(f){if(!f)throw"Extension function should be defined.";this._extension=f,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(f="png"){if(!this._qr)throw"QR code is empty";const c=await this._getElement(f),m=Ne(f);if(!c)return null;if(f.toLowerCase()==="svg"){const v=`\r ${new this._window.XMLSerializer().serializeToString(c)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(v):new Blob([v],{type:m})}return new Promise(v=>{const p=c;if("toBuffer"in p)if(m==="image/png")v(p.toBuffer(m));else if(m==="image/jpeg")v(p.toBuffer(m));else{if(m!=="application/pdf")throw Error("Unsupported extension");v(p.toBuffer(m))}else"toBlob"in p&&p.toBlob(v,m,1)})}async download(f){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let c="png",m="qr";typeof f=="string"?(c=f,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof f=="object"&&f!==null&&(f.name&&(m=f.name),f.extension&&(c=f.extension));const v=await this._getElement(c);if(v)if(c.toLowerCase()==="svg"){let p=new XMLSerializer().serializeToString(v);p=`\r `+p,u(`data:${Ne(c)};charset=utf-8,${encodeURIComponent(p)}`,`${m}.svg`)}else u(v.toDataURL(Ne(c)),`${m}.${c}`)}}const O=k})(),a.default})())})(ro);const kp=lu(ro.exports),Vp=l.defineComponent({name:"QrCodeBox",data(){return{qrcode:null}},props:{data:String,image:String,width:Number,height:Number,circleType:String,circleColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const t={dotsOptions:{}};Object.keys(this.$props).forEach(e=>{this.$props[e]!=null&&this.$props[e]!==""&&(t[e]=this.$props[e])}),delete t.formCreateInject,t.circleType&&(t.dotsOptions.type=t.circleType),t.circleColor&&(t.dotsOptions.color=t.circleColor),delete t.circleColor,delete t.circleType,this.$nextTick(()=>{this.qrcode?this.qrcode.update(t):(this.qrcode=l.markRaw(new kp(t)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),Mp={class:"_fc-qrcode",ref:"qr"};function Fp(t,e,n,r,i,a){return l.openBlock(),l.createElementBlock("div",Mp,null,512)}const Tp=we(Vp,[["render",Fp]]),sm="",um="",jp=Object.assign||function(t){for(let e,n=1;n$r.message[e||"info"]({content:t});function Np(t){const e=document.createElement("textarea");e.style.position="fixed",e.style.top=0,e.style.left="-9999px",e.value=t,document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}Ip("\u5DF2\u590D\u5236!","success"),document.body.removeChild(e)}const Lp=(t,e)=>{let n=[t];const r=e.split(".");let i=1;for(;r[i];){let a=[];n.forEach(o=>{Object.values(o.ctxs).forEach(s=>{if(s.rule._fc_id===r[i-1]){const u=o.subForm[s.id];a.push(...Array.isArray(u)?u:[u])}})}),n=a.map(o=>o.rule[0].__fc__.$handle),i++}return[n,r[i-1]]},sn=(t,e,n)=>{const r=t.vm.setupState.top.setupState.fc.$handle;let i=[t.$handle];t.$handle!==r&&i.push(r);let a=e;e.indexOf(".")>-1&&([i,a]=Lp(r,e)),i.forEach(o=>{Object.values(o.ctxs).forEach(s=>{s.rule._fc_id===a&&n(s.rule,o.api)})})},io={openModel(t,e){e.api.open(t.model)},closeModel(t,e){e.api.close(t.model)},hidden(t,e,n){const r=typeof t.id=="string"?[t.id]:t.id||[];let i=!!t.status;t.compute&&(i=!!n.$handle.compute(e.self.__fc__,t.formula)),r.forEach(a=>{sn(n,a,o=>{o.hidden=i})})},disabled(t,e,n){const r=typeof t.id=="string"?[t.id]:t.id||[];let i=!!t.status;t.compute&&(i=!!n.$handle.compute(e.self.__fc__,t.formula)),r.forEach(a=>{sn(n,a,o=>{o.props||(o.props={}),o.props.disabled=i})})},resetFields(t,e){e.api.top.resetFields()},clearFields(t,e){e.api.top.coverValue({})},validate(t,e){return e.api.top.validate()},validateFields(t,e,n){const r=typeof t.id=="string"?[t.id]:t.id||[],i=[];return r.forEach(a=>{sn(n,a,(o,s)=>{o.field&&i.push(s.validateField(o.field))})}),i.length?Promise.all(i):void 0},submit(t,e){return e.api.top.submit()},setValue(t,e,n){(t.formData||[]).forEach(r=>{let i=r.value;r.compute&&(i=n.$handle.compute(e.self.__fc__,r.formula)),sn(n,r.id,a=>{a.value=i})})},fetch(t,e){const{append:n,response:r,fetch:i}=t;return n&&(i.data={...e.api.formData(),...i.data||{}}),new Promise((a,o)=>{e.api.fetch(t.fetch).then(s=>{r&&e.api.setData(r,s),a(s)}).catch(s=>{o(s)})})},copy(t,e,n){let r=t.content||"";t.compute&&(r=n.$handle.compute(e.self.__fc__,t.formula)),Np(r)},callback(t,e){return t.callback&&t.callback(e)},message(t){$r.message[t.type||"info"]({content:t.message,duration:t.duration})}};function Up(t,e){return t.reduce((n,r)=>n.then(()=>r(e)),Promise.resolve())}const zp=function(t){return{name:"behavior",load(e,n){const r=e.getValue(),i={},a={};r&&Object.keys(r).forEach(o=>{if(Array.isArray(r[o])){const s=[];if(r[o].forEach(u=>{const{method:d,config:h,expression:y,stopPropagation:_,ignoreError:A}=u;s.push(S=>new Promise(C=>{if(y&&t.$handle.compute(n.__fc__,y)===!1){C();return}const T=(...U)=>{(!_||t.$handle.compute(n.__fc__,_)!==!0)&&C(...U)};let q;try{q=io[d](h||{},S,t)}catch(U){console.error(U),A!==!1&&T();return}q&&q.then?q.then(T).catch(()=>{A!==!1&&T()}):T(q)}))}),s.length){const u=t.$handle.inject(n,function(d){Up(s,d)},n.inject||t.$handle.options.injectEvent);o.indexOf("hook_")>-1?a[o.replace("hook_","")]=u:i[o]=u}}}),e.getProp().on=i,e.getProp().hook=a}}};function qp(t){t.__proto__.setBehavior=e=>{Bp(io,e)},t.extendApi(e=>({open(n,...r){(e.el(n)||e.top.el(n)).open(...r)},close(n){n?(e.el(n)||e.top.el(n)).close():(e.top.bus.$emit("fc.closeDialog"),e!==e.top&&e.bus.$emit("fc.closeDialog"))}}))}const br={name:"easySlots",load(t){const e=t.getValue(),n={};e&&Object.keys(e).forEach(r=>{n[r]=e[r].type==="icon"?{type:"i",class:"fc-icon iconfont "+e[r].value}:{type:"div",children:[""+(e[r].value||"")]}}),t.getProp().renderSlots=n}};br.watch=br.load;const oo={date:"YYYY-MM-DD",month:"YYYY-MM",week:"YYYY-wo",quarter:"YYYY-qQ",year:"YYYY"};function Gp(t){return t/20+"em"}const ao=function(t,e,n){return e.forEach(r=>{t.indexOf(r[n||"id"])>-1&&t.splice(t.indexOf(r[n||"id"]),1,r.label||r.text),Fe.trueArray(r.children)&&ao(t,r.children,n)}),t},Hp=function(t,e){return e.forEach(n=>{t.indexOf(n.value)>-1&&(t[t.indexOf(n.value)]=n.label||n.text)}),t};function wr(t){if(t){if(!Array.isArray(t))return[t]}else return[];return t}function so(t){Object.keys(St).forEach(e=>{t.setFormula(e,St[e])}),qp(t),t.register("behavior",zp),t.register("easySlots",br),t.setDriver("antd",{defaultPreview(e,n){let r=e.rule.value;const i=e.$render.vNode.h,a=e.type,o=e.$handle.subForm[e.id],s=e.prop.readMode;if(s===!1||s==="custom"||!e.input||e.rule.subForm||(Array.isArray(o)?o.length:o)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","upload"].indexOf(e.trueType)>-1)return e.parser.render(n,e);if(["radio","select","checkbox"].indexOf(a)>-1)r=Hp([...wr(r)],e.prop.props.options||e.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(a)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(a==="cascader")r=[...wr(r)],Array.isArray(r[0])||(r=[r]),r=r.map(u=>ao(u,e.prop.props.options||e.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else{if(a==="fcEditor"||s==="html")return i("div",{innerHTML:r});if(a==="uploader"||s==="image")return r=wr(r),i("div",{class:"_fc-upload"},r.map(function(u){return i("div",{class:"_fc-upload-preview"},[i("van-image",{src:u,fit:"cover"})])}));if(a==="signaturePad"&&r)return i("van-image",{src:r,fit:"cover",style:{height:"90px"}});(typeof r=="boolean"||a==="switch")&&(r=r?"\u662F":"\u5426")}return i("span",{class:"_fc-read-view"},[""+(r==null?"":r)])},updateWrap(e){var r,i;let n=(i=(r=e.prop)==null?void 0:r.wrap)==null?void 0:i.style;e.prop.col&&e.prop.col.span&&(e.prop.col.span=24),n&&(n=Array.isArray(n)?n:[n],n.forEach(a=>{delete a.marginBottom}))},updateOptions(e){var r,i,a,o,s;const n=(a=(i=(r=e==null?void 0:e.form)==null?void 0:r.labelCol)==null?void 0:i.style)==null?void 0:a.width;n&&n.indexOf("px")>-1&&(e.form.labelWidth=Gp(parseInt(n))),((o=e.form)==null?void 0:o.layout)==="vertical"&&(e.form.labelAlign="top"),(s=e.form)!=null&&s.hideRequiredAsterisk&&(e.form.colon=e.form.hideRequiredAsterisk,delete e.form.hideRequiredAsterisk),delete e.form.labelCol,delete e.form.layout},parsers:{inputNumber:{mergeProp(e){e.prop.component="vanStepper";const n=e.prop.props;n.decimalLength=n.precision,n.integer=n.precision===0,delete n.precision}},radio:{mergeProp(e){e.prop.options&&(e.prop.props.options=e.prop.options)}},checkbox:{mergeProp(e){e.prop.options&&(e.prop.props.options=e.prop.options)}},select:{mergeProp(e){if(["tags","multiple"].indexOf(e.prop.props.mode)>-1){e.prop.component="aSelect";const n=e.prop.props;n.bordered=!1,Rn(n,"options")||(n.options=e.prop.options||[])}else e.prop.options&&(e.prop.props.options=e.prop.options),e.prop.props.options=(e.prop.props.options||[]).map(n=>({text:n.label,value:n.value}))}},switch:{mergeProp(e){const n=e.prop.props;n.activeValue=n.checkedValue,n.inactiveValue=n.unCheckedValue,delete n.checkedValue,delete n.unCheckedValue}},timePicker:{mergeProp(e){const n=e.prop.props;e.prop.component=n.range?"aTimeRangePicker":"aTimePicker",n.bordered=!1,n.valueFormat||(n.valueFormat="HH:mm:ss")}},rate:{mergeProp(e){e.prop.props.clearable=e.prop.props.allowClear,delete e.prop.props.allowClear}},datePicker:{mergeProp(e){e.prop.component="aDatePicker";const n=e.prop.props;n.bordered=!1,n.valueFormat||(n.valueFormat=oo[n.type]||oo.date)}},cascader:{mergeProp(e){e.prop.component="aCascader",e.prop.props.bordered=!1}},aDivider:{mergeProp(e){e.prop.component="vanDivider"}},upload:{mergeProp(e){e.prop.component=$s}},tree:{modelField:"checkedKeys",mergeProp(e){e.prop.component="a-tree";const n=e.prop.props;n.fieldNames?n.fieldNames.key||(n.fieldNames.key="id"):n.fieldNames={key:"id"},n.checkedKeys=e.rule.value,n.checkable=!0}},aTreeSelect:{mergeProp(e){e.prop.props.bordered=!1}},row:{mergeProp(e){e.prop.component="vanRow"}},col:{mergeProp(e){e.prop.component="vanCol",e.prop.props.xxs&&(e.prop.props={...e.prop.props,...e.prop.props.xxs})}},fcDialog:{mergeProp(e){e.prop.component="FcPopup"}},fcDrawer:{mergeProp(e){e.prop.component="FcPopup"}}}})}so(ge),ge.component("FcSlot",ru),ge.component("FcJson",iu),ge.component("StepForm",Cs),ge.component("FcPopup",ks),ge.component("FcTable",Is),ge.component("FcCell",Ks),ge.component("FcInlineForm",uu),ge.component("TableForm",Us),ge.component("NestedTableForm",Xs),ge.component("InfiniteTableForm",Gs),ge.component("DataTable",Fs),ge.component("FcValue",nu),ge.component("AudioBox",Bu),ge.component("VideoBox",Pp),ge.component("BarCodeBox",xp),ge.component("IframeBox",Uu),ge.component("QrCodeBox",Tp),ge.component("SignaturePad",Ou),ge.component("FcEcharts",pu),ge.component("FcTitle",Vu),ge.component("FcId",Ru),ge.loadjs=Xe,Ue.default=ge,Ue.useAdvanced=so,Object.defineProperties(Ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});