sun-form-v3 1.0.173 → 1.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-BV1OmTk8.js → index-BMb3KRB8.js} +1 -1
- package/dist/{index-DPyfMbBc.js → index-BuowarKI.js} +6 -3
- package/dist/index-C2TpEDQ6.js +1 -0
- package/dist/{index-DzNwhzKH.js → index-CO1r29AW.js} +1 -1
- package/dist/{index-BpcerFjm.js → index-ChFuZHQ3.js} +1 -1
- package/dist/{index-DMOBCTYq.js → index-D3D3vnoP.js} +1 -1
- package/dist/{index-DP2aWUto.js → index-DVLLlCbx.js} +1 -1
- package/dist/{index-J3dXeLSh.js → index-IO52-czG.js} +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +1 -1
- package/package.json +1 -1
- package/dist/index-odDAoGnF.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
|
|
2
|
-
import { _ as E, c as H } from "./index-
|
|
2
|
+
import { _ as E, c as H } from "./index-BuowarKI.js";
|
|
3
3
|
const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
|
4
4
|
__name: "dataConfig",
|
|
5
5
|
props: {
|
|
@@ -175737,7 +175737,10 @@ const Tdn = {
|
|
|
175737
175737
|
eventType: "onCreated",
|
|
175738
175738
|
widget: n.widget
|
|
175739
175739
|
}), window.iframeFunc = () => {
|
|
175740
|
-
|
|
175740
|
+
n.designer.eventHandle({
|
|
175741
|
+
eventType: "iframeFunc",
|
|
175742
|
+
widget: n.widget
|
|
175743
|
+
});
|
|
175741
175744
|
}, Dr(() => {
|
|
175742
175745
|
n.designer.eventHandle({
|
|
175743
175746
|
eventType: "onMounted",
|
|
@@ -255970,7 +255973,7 @@ const i8n = { key: 1 }, a8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
255970
255973
|
"element-plus": D8t,
|
|
255971
255974
|
"@element-plus/icons-vue": h1t,
|
|
255972
255975
|
echarts: Bcn,
|
|
255973
|
-
"echarts-gl": () => import("./index-
|
|
255976
|
+
"echarts-gl": () => import("./index-C2TpEDQ6.js")
|
|
255974
255977
|
},
|
|
255975
255978
|
async getFile(d) {
|
|
255976
255979
|
return d === "element-plus" ? "export * from 'element-plus'; export { default } from 'element-plus';" : d === "@element-plus/icons-vue" ? "export * from '@element-plus/icons-vue'; export { default } from '@element-plus/icons-vue';" : d === "echarts" ? "export * from 'echarts'; export { default } from 'echarts';" : d === "echarts-gl" ? "import 'echarts-gl'; export {};" : d === "vue" ? "export * from 'vue'; export { default } from 'vue';" : s();
|
|
@@ -259886,7 +259889,7 @@ const i8n = { key: 1 }, a8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
259886
259889
|
},
|
|
259887
259890
|
setup(t) {
|
|
259888
259891
|
const n = Object.fromEntries(
|
|
259889
|
-
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-
|
|
259892
|
+
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-IO52-czG.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-dropdown/index.vue": () => import("./index-BZ_40krq.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-D3D3vnoP.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-B-asaa8Z.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-iframe/index.vue": () => import("./index-BkftF1Ew.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-kzElMYkk.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-CiNAZsvy.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-qrcode/index.vue": () => import("./index-DHjsGntq.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DYFp4hH-.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CZZfzYn7.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-BMb3KRB8.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-DVLLlCbx.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-ChFuZHQ3.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-CO1r29AW.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([D, M]) => {
|
|
259890
259893
|
const B = D.match(/\/([^/]+)\/index\.vue$/);
|
|
259891
259894
|
return [B ? B[1] : null, VKe(M)];
|
|
259892
259895
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index-BuowarKI.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
|
|
2
|
-
import { _ as T } from "./index-
|
|
2
|
+
import { _ as T } from "./index-BuowarKI.js";
|
|
3
3
|
const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
|
4
4
|
__name: "dataConfig",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
|
2
|
-
import { c } from "./index-
|
|
2
|
+
import { c } from "./index-BuowarKI.js";
|
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
|
2
|
-
import { e as E, i as M } from "./index-
|
|
2
|
+
import { e as E, i as M } from "./index-BuowarKI.js";
|
|
3
3
|
const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
|
4
4
|
__name: "chartChoose",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
|
|
2
|
-
import { _ as E } from "./index-
|
|
2
|
+
import { _ as E } from "./index-BuowarKI.js";
|
|
3
3
|
const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
|
4
4
|
__name: "dataConfig",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as C, resolveComponent as m, openBlock as k, createElementBlock as S, Fragment as M, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as j, createElementVNode as g, toDisplayString as T, createCommentVNode as O, pushScopeId as q, popScopeId as J, createBlock as K } from "vue";
|
|
2
|
-
import { _ as Q } from "./index-
|
|
2
|
+
import { _ as Q } from "./index-BuowarKI.js";
|
|
3
3
|
const A = (_) => (q("data-v-75dc2686"), _ = _(), J(), _), W = /* @__PURE__ */ A(() => /* @__PURE__ */ g("span", null, "复杂表头配置", -1)), h = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex h-full flex-col"
|
package/dist/sun-form-v3.es.js
CHANGED
package/dist/sun-form-v3.umd.js
CHANGED
|
@@ -478,7 +478,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
478
478
|
.lf-canvas-overlay {
|
|
479
479
|
background: #FFFFFF;
|
|
480
480
|
}
|
|
481
|
-
`,o.value.on("node:click",({data:h})=>{s.value=h}),o.value.on("edge:click",({data:h})=>{s.value=h}),o.value.on("blank:click",()=>{s.value=null}),o.value.extension.dndPanel.setPatternItems([{type:"circle",text:"",label:"圆形节点",className:"lf_sy_1"},{type:"rect",label:"矩形",className:"lf_sy_2"},{type:"ellipse",label:"椭圆",className:"lf_sy_3"},{type:"polygon",label:"多边形",className:"lf_sy_4"},{type:"diamond",label:"菱形",className:"lf_sy_5"},{type:"text",text:"文本",label:"文本",className:"lf_sy_6"}]),o.value.setTheme({baseNode:{fill:"#FFFFFF",stroke:"#446eff",strokeWidth:2},polyline:{stroke:"#446eff",strokeWidth:2}}),r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({getData:d,setData:m,clearData:p,exportImg:f}),(h,g)=>{const v=a.resolveComponent("el-input"),y=a.resolveComponent("common-label-container"),b=a.resolveComponent("el-button"),_=a.resolveComponent("Download"),S=a.resolveComponent("el-icon"),E=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(E,{props:a.unref(l),class:"relative"},{default:a.withCtx(()=>[a.createElementVNode("div",{id:"container",ref_key:"container",ref:i,class:"h-full w-full"},null,512),s.value?(a.openBlock(),a.createElementBlock("div",fan,[a.createVNode(y,{labelWidth:"70px",label:"节点字段"},{default:a.withCtx(()=>[a.createVNode(v,{modelValue:s.value.properties.zdname,"onUpdate:modelValue":g[0]||(g[0]=x=>s.value.properties.zdname=x),onInput:u,placeholder:"填写节点字段"},null,8,["modelValue"])]),_:1}),a.createVNode(y,{labelWidth:"70px",label:"节点备注"},{default:a.withCtx(()=>[a.createVNode(v,{modelValue:s.value.properties.label,"onUpdate:modelValue":g[1]||(g[1]=x=>s.value.properties.label=x),onInput:u,placeholder:"填写节点字段"},null,8,["modelValue"])]),_:1}),a.createVNode(y,{labelWidth:"70px",label:"节点点击"},{default:a.withCtx(()=>[a.createVNode(b,{type:"primary",onClick:c},{default:a.withCtx(()=>[a.createTextVNode("点击节点")]),_:1})]),_:1})])):a.createCommentVNode("",!0),a.createElementVNode("div",{onClick:f,class:"absolute left-2 bottom-2 bg-white border overflow-auto shadow-lg px-2 py-1 cursor-pointer"},[a.createVNode(S,null,{default:a.withCtx(()=>[a.createVNode(_)]),_:1})])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),man={class:"p-2 flex-1 overflow-auto"},gan=Object.freeze(Object.defineProperty({__proto__:null,default:ac(Object.assign({name:"widget-form"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t,{expose:e}){let n=t;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());let r=a.computed(()=>n.widget.props),i=n.widget.widgetList,o=a.ref(!1);const s=h=>{h.forEach(g=>{g.isForm&&(g.props.defaultValue=g.props.value),g.widgetList&&g.widgetList.length&&s(g.widgetList)})},l=(h,g)=>{h.forEach(v=>{v.isForm&&(v.props.isDetail=g,g&&v.props.placeholder&&(v.props.placeholder="")),v.type=="datatable"&&l(v.widgetList,g),v.isContainer&&l(v.widgetList,g),v.widgetList&&v.widgetList.length&&s(v.widgetList)})},c=()=>n.designer.getWidgetListResultById(n.widget.id),u=(h=!1)=>{n.designer.resetWidgetListById(n.widget.id,h)},d=async h=>{n.designer.inputWidgetListValueById(n.widget.id,h)},p=h=>{n.designer.showMode&&n.designer.eventHandle({eventType:"onButtonClick",value:h.value,widget:n.widget})},f=async()=>{if(!n.designer.showMode||!n.designer.checkWidgetListRequiredById(n.widget.id))return;let g=c(),v=r.value.formType;try{if(!r.value["apiSet"+v].apiurl)return n.designer.$notify.error("请先配置请求");o.value=!0,await n.designer.requestByApisetConfig({type:"apiSet"+v,widget:n.widget,resultCb:({funRes:y,httpRes:b,errRes:_})=>{o.value=!1},paramCb:y=>({...y,...g}),otherCb:()=>{o.value=!1}})}catch{o.value=!1}},m=async()=>{let h=r.value.formType;if(h==="Detail"||h==="Update")try{if(!r.value.apiSetDetail.apiurl)return;o.value=!0,await n.designer.requestByApisetConfig({type:"apiSetDetail",widget:n.widget,resultCb:({funRes:g,httpRes:v})=>{o.value=!1,g&&d(g)},paramCb:g=>g})}catch{o.value=!1}};return a.watch(()=>r.value.formType,h=>{l(i,h==="Detail")},{immediate:!0}),n.designer.eventHandle({eventType:"onCreated",widget:n.widget}),a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),n.designer.showMode&&(s(i),a.nextTick(()=>{m()})),e({submit:f}),(h,g)=>{const v=a.resolveComponent("commonContainer"),y=a.resolveComponent("el-button"),b=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"config_wrap w-full rounded-md overflow-hidden border flex flex-col dark:border-slate-500",style:a.normalizeStyle({height:"100%",border:!a.unref(r).hasBorder})},[a.createElementVNode("div",man,[a.createVNode(a.unref(Y_),{ghostClass:"ghost",handle:".handle",list:a.unref(n).widget.widgetList,class:"min-h-20 flex flex-wrap content-start",group:{name:"dragGroup",put:!0},"item-key":"id"},{item:a.withCtx(({element:_})=>[a.createVNode(v,{designer:a.unref(n).designer,widget:_,parentWidget:a.unref(n).widget},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+_.type),{ref:_.id,widget:_,designer:a.unref(n).designer},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.$slots,(S,E)=>a.renderSlot(h.$slots,E,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget"])]),_:3},8,["list"])]),a.unref(r).hasFooter&&(a.unref(r).hasSubmitButton||a.unref(r).hasResetButton||a.unref(r).list.length)&&a.unref(r).formType!=="Detail"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"py-1 px-3 bg-gray-50 flex justify-end border-t dark:bg-slate-800 dark:border-slate-500",style:a.normalizeStyle({justifyContent:a.unref(r).buttonAlign=="left"?"start":"",backgroundColor:a.unref(r).hasFooterBg?"":"white"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).list,(_,S)=>(a.openBlock(),a.createBlock(y,{key:S,onClick:E=>p(_)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(_.label),1)]),_:2},1032,["onClick"]))),128)),a.unref(r).hasResetButton?(a.openBlock(),a.createBlock(y,{key:0,icon:"RefreshLeft",onClick:u},{default:a.withCtx(()=>[a.createTextVNode("重置")]),_:1})):a.createCommentVNode("",!0),a.unref(r).hasSubmitButton?(a.openBlock(),a.createBlock(y,{key:1,type:"primary",onClick:f},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r).submitButtonText),1)]),_:1})):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],4)),[[b,a.unref(o)]])}}}),[["__scopeId","data-v-2798a717"]])},Symbol.toStringTag,{value:"Module"})),van=Object.freeze(Object.defineProperty({__proto__:null,default:ac(Object.assign({name:"widget-homepage"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t,n=e.designer,r=a.computed(()=>e.widget),i=a.computed(()=>n.widgetConfig.widgetList);return e.designer.eventHandle({eventType:"onCreated",widget:e.widget}),a.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,s)=>{const l=a.resolveComponent("commonContainer");return a.openBlock(),a.createBlock(a.unref(Y_),{ghostClass:"ghost",handle:".handle",list:a.unref(i),class:"min-h-full flex flex-wrap content-start",group:{name:"dragGroup",put:!0},style:a.normalizeStyle({...a.unref(e).designer.formatStyle(a.unref(e).widget)}),"item-key":"id"},{item:a.withCtx(({element:c})=>[a.createVNode(l,{designer:a.unref(n),widget:c,style:a.normalizeStyle({...a.unref(e).designer.formatStyle(c)}),parentWidget:a.unref(r)},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+c.type),{ref:c.id,widget:c,designer:a.unref(n)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.$slots,(u,d)=>a.renderSlot(o.$slots,d,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","style","parentWidget"])]),_:3},8,["list","style"])}}}),[["__scopeId","data-v-f46c3f24"]])},Symbol.toStringTag,{value:"Module"})),yan=["src"],_an=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-iframe"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{emit:e}){let n=t;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());let r=a.computed(()=>n.widget.props);return n.designer.eventHandle({eventType:"onCreated",widget:n.widget}),window.iframeFunc=()=>{console.log("成功啦")},a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),(i,o)=>{const s=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(s,{props:a.unref(r)},{default:a.withCtx(()=>[a.unref(r).src?(a.openBlock(),a.createElementBlock("iframe",{key:0,src:a.unref(r).src,frameborder:"0",class:"w-full h-full"},null,8,yan)):a.createCommentVNode("",!0)]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),ban=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-image"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},tableItemData:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e;let r=t,i=a.computed(()=>r.widget.props);a.computed(()=>{if(i.value.isTableItem&&i.value.onTypeFormat){let l=new Function("value","widget","tableItemData","self","app",i.value.onTypeFormat)(r.modelValue,r.widget,r.tableItemData,a.getCurrentInstance(),r.designer);return l||i.value.type}else return i.value.type});const o=a.computed({set:s=>{i.value.isTableItem?n("update:modelValue",s):i.value.value=s},get:()=>{if(i.value.isTableItem){if(i.value.onFormat){let l=new Function("value","widget","tableItemData","self","app",i.value.onFormat)(r.modelValue,r.widget,r.tableItemData,a.getCurrentInstance(),r.designer);if(l)return l}return r.modelValue===void 0?i.value.value:r.modelValue}else return i.value.value}});return r.designer.showMode&&(r.designer.setVueIncetance(r.widget.id,a.getCurrentInstance()),r.designer.eventHandle({eventType:"onFormat",widget:r.widget,value:r.modelValue,tableItemData:r.tableItemData,cb:s=>{n("update:modelValue",s)}})),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),a.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),(s,l)=>{const c=a.resolveComponent("el-image");return a.openBlock(),a.createBlock(c,{style:a.normalizeStyle({width:a.unref(i).imgWidth,height:a.unref(i).imgHeight}),src:o.value,"preview-src-list":a.unref(i).canPreview?[o.value]:[],fit:a.unref(i).fit,alt:a.unref(i).alt},null,8,["style","src","preview-src-list","fit","alt"])}}})},Symbol.toStringTag,{value:"Module"})),Ean=Object.freeze(Object.defineProperty({__proto__:null,default:ac(Object.assign({name:"widget-input"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const i=n;r.designer.setVueIncetance(r.widget.id,a.getCurrentInstance());let o=a.computed(()=>r.widget.props);const s=a.computed({set:m=>{o.value.isTableItem?i("update:modelValue",m):o.value.value=m},get:()=>o.value.isTableItem?r.modelValue===void 0?o.value.value:r.modelValue:o.value.value}),l=a.computed(()=>o.value.isTableItem&&o.value.onTableFormat&&r.designer.showMode?new Function("value","widget","tableItemData","self","app",o.value.onTableFormat)(r.modelValue,r.widget,r.tableItemData,a.getCurrentInstance(),r.designer):null),c=m=>{o.value.isTrim&&(o.value.value=r.designer.$utils.trim(m)),o.value.validate&&(r.designer.validateInput(o.value.validate,m)||(o.value.isTableItem?i("update:modelValue",null):o.value.value=null,r.designer.$message.warning(o.value.validate+"校验失败,请重新输入"))),r.designer.eventHandle({eventType:"onChange",value:o.value.value,widget:r.widget,tableItemData:r.tableItemData})},u=m=>{r.designer.eventHandle({eventType:"onInput",value:m,widget:r.widget,tableItemData:r.tableItemData})},d=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget,tableItemData:r.tableItemData})},p=m=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget,tableItemData:r.tableItemData})},f=()=>{r.designer.eventHandle({eventType:"onHandle",value:r.widget.props.value,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),a.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:c}),(m,h)=>{const g=a.resolveComponent("el-button"),v=a.resolveComponent("el-input"),y=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(y,{props:a.unref(o)},{default:a.withCtx(()=>{var b;return[a.createVNode(v,{onChange:c,onInput:u,onFocus:d,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=_=>s.value=_),type:a.unref(o).type,size:a.unref(o).size,onBlur:p,placeholder:a.unref(o).placeholder,disabled:a.unref(o).isDetail||a.unref(o).disabled||((b=l.value)==null?void 0:b.disabled),readonly:a.unref(o).readonly,rows:a.unref(o).rows,maxlength:a.unref(o).maxlength,"show-word-limit":a.unref(o).showLimit,class:"vertify"},a.createSlots({_:2},[a.unref(o).prependText?{name:"prepend",fn:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(o).prependText),1)]),key:"0"}:void 0,a.unref(o).appendText?{name:"append",fn:a.withCtx(()=>[a.createVNode(g,{onClick:f},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(o).appendText),1)]),_:1})]),key:"1"}:void 0]),1032,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]}),_:1},8,["props"])}}}),[["__scopeId","data-v-30fd297b"]])},Symbol.toStringTag,{value:"Module"})),San={class:"config_wrap w-full border rounded-md dark:border-slate-500"},xan={class:"py-2 px-3 bg-gray-100 w-full border-b dark:bg-slate-800 dark:border-slate-500"},wan={class:"p-2 border border-dashed bg-white dark:bg-black dark:border-slate-500"},Tan={key:0,class:"py-1 px-3 bg-gray-100 flex justify-end dark:bg-slate-800"},Can=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-modal"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t,{expose:e}){let n=t;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());const r=a.ref(!1);let i=a.computed(()=>n.widget.props),o=null;const s=p=>{o=n.designer.$utils.clone(n.widget,!0),r.value=!0,a.nextTick(()=>{p&&p()})},l=()=>{r.value=!1,n.designer.eventHandle({eventType:"onHideModel",widget:n.widget}),n.designer.updateWidget(n.widget.id,n.designer.$utils.clone(o,!0),!0)},c=p=>{r.value=!1,p&&p()},u=p=>{n.designer.eventHandle({eventType:"onButtonClick",value:p,widget:n.widget})},d=()=>{n.designer.eventHandle({eventType:"onConfirm",widget:n.widget})};return n.designer.eventHandle({eventType:"onCreated",widget:n.widget}),a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),e({open:s,close:c}),(p,f)=>{const m=a.resolveComponent("commonContainer"),h=a.resolveComponent("el-button"),g=a.resolveComponent("common-widget-label-container"),v=a.resolveComponent("vxe-modal");return a.openBlock(),a.createElementBlock(a.Fragment,null,[t.designer.showMode?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(g,{key:0,props:a.unref(i),class:"pl-3"},{default:a.withCtx(()=>[a.createElementVNode("div",San,[a.createElementVNode("div",xan,a.toDisplayString(a.unref(i).title),1),a.createElementVNode("div",wan,[a.createVNode(a.unref(Y_),{ghostClass:"ghost",handle:".handle",list:a.unref(n).widget.widgetList,class:"min-h-20 flex flex-wrap content-start",group:{name:"dragGroup",put:!0},"item-key":"id"},{item:a.withCtx(({element:y})=>[a.createVNode(m,{designer:a.unref(n).designer,widget:y,parentWidget:a.unref(n).widget},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+y.type),{ref:y.id,widget:y,designer:a.unref(n).designer},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.$slots,(b,_)=>a.renderSlot(p.$slots,_)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget"])]),_:3},8,["list"])]),a.unref(i).hasFooter?(a.openBlock(),a.createElementBlock("div",Tan,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i).list,(y,b)=>(a.openBlock(),a.createBlock(h,{key:b},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.label),1)]),_:2},1024))),128)),a.unref(i).hideConfirm?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:0,icon:"Check"},{default:a.withCtx(()=>[a.createTextVNode("确定")]),_:1}))])):a.createCommentVNode("",!0)])]),_:3},8,["props"])),a.createVNode(v,{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=y=>r.value=y),transfer:"",onHide:l,width:a.unref(i).modalWidth,height:a.unref(i).modalHeight,"show-zoom":a.unref(i).isZoom,resize:a.unref(i).isResize,"esc-closable":a.unref(i).isEscClosable,"show-footer":a.unref(i).hasFooter},{title:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(i).title),1)]),default:a.withCtx(()=>[r.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(n).widget.widgetList,(y,b)=>(a.openBlock(),a.createBlock(m,{key:b,designer:a.unref(n).designer,widget:y,parentWidget:a.unref(n).widget,style:a.normalizeStyle({...a.unref(n).designer.formatStyle(y)})},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+y.type),{ref_for:!0,ref:y.id,widget:y,designer:a.unref(n).designer},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.$slots,(_,S)=>a.renderSlot(p.$slots,S)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"]))),128)):a.createCommentVNode("",!0)]),footer:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i).list,(y,b)=>(a.openBlock(),a.createBlock(h,{onClick:_=>u(y.value),key:b},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.label),1)]),_:2},1032,["onClick"]))),128)),a.unref(i).hideConfirm?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:0,icon:"Check",onClick:d},{default:a.withCtx(()=>[a.createTextVNode("确定")]),_:1}))]),_:3},8,["modelValue","width","height","show-zoom","resize","esc-closable","show-footer"])],64)}}})},Symbol.toStringTag,{value:"Module"})),Aan=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-progress"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{emit:e}){let n=t;const r=e;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());let i=a.computed(()=>n.widget.props);const o=a.computed({set:l=>{i.value.isTableItem?r("update:modelValue",l):i.value.value=l},get:()=>i.value.isTableItem?n.modelValue===void 0?i.value.value:n.modelValue:i.value.value}),s=l=>{let c=i.value.format;return c?new Function("value","widget","app",c)(i.value.value,n.widget,n.designer):l==null||l===""?"0%":`${l}%`};return n.designer.eventHandle({eventType:"onCreated",widget:n.widget,cb:()=>{}}),a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),(l,c)=>{const u=a.resolveComponent("el-progress"),d=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(d,{props:a.unref(i)},{default:a.withCtx(()=>[a.createVNode(u,{color:a.unref(i).color,"stroke-width":a.unref(i).strokeWidth,"text-inside":a.unref(i).textInside,striped:a.unref(i).hasStriped,type:a.unref(i).type,"striped-flow":a.unref(i).hasStripedFlow,percentage:Number(o.value)>100?100:Number(o.value),format:s,width:a.unref(i).circleWidth},null,8,["color","stroke-width","text-inside","striped","type","striped-flow","percentage","width"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"}));var Lk={},Oan=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then};const Nan=Wt(Oan);var $6e={},nm={};let Sne;const Ian=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];nm.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},nm.getSymbolTotalCodewords=function(e){return Ian[e]},nm.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},nm.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Sne=e},nm.isKanjiModeEnabled=function(){return typeof Sne<"u"},nm.toSJIS=function(e){return Sne(e)};var U6e={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(U6e);const xne=Wt(U6e);function z6e(){this.buffer=[],this.length=0}z6e.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let n=0;n<e;n++)this.putBit((t>>>e-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Dan=z6e;const Ran=Wt(Dan);function Bk(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Bk.prototype.set=function(t,e,n,r){const i=t*this.size+e;this.data[i]=n,r&&(this.reservedBit[i]=!0)},Bk.prototype.get=function(t,e){return this.data[t*this.size+e]},Bk.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},Bk.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Pan=Bk;const kan=Wt(Pan);var j6e={};(function(t){const e=nm.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,l=[o-7];for(let c=1;c<i-1;c++)l[c]=l[c-1]-s;return l.push(6),l.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),s=o.length;for(let l=0;l<s;l++)for(let c=0;c<s;c++)l===0&&c===0||l===0&&c===s-1||l===s-1&&c===0||i.push([o[l],o[c]]);return i}})(j6e);const Man=Wt(j6e);var H6e={};const Lan=nm.getSymbolSize,G6e=7;H6e.getPositions=function(e){const n=Lan(e);return[[0,0],[n-G6e,0],[0,n-G6e]]};var W6e={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let s=0,l=0,c=0,u=null,d=null;for(let p=0;p<o;p++){l=c=0,u=d=null;for(let f=0;f<o;f++){let m=i.get(p,f);m===u?l++:(l>=5&&(s+=e.N1+(l-5)),u=m,l=1),m=i.get(f,p),m===d?c++:(c>=5&&(s+=e.N1+(c-5)),d=m,c=1)}l>=5&&(s+=e.N1+(l-5)),c>=5&&(s+=e.N1+(c-5))}return s},t.getPenaltyN2=function(i){const o=i.size;let s=0;for(let l=0;l<o-1;l++)for(let c=0;c<o-1;c++){const u=i.get(l,c)+i.get(l,c+1)+i.get(l+1,c)+i.get(l+1,c+1);(u===4||u===0)&&s++}return s*e.N2},t.getPenaltyN3=function(i){const o=i.size;let s=0,l=0,c=0;for(let u=0;u<o;u++){l=c=0;for(let d=0;d<o;d++)l=l<<1&2047|i.get(u,d),d>=10&&(l===1488||l===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*e.N3},t.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let c=0;c<s;c++)o+=i.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const s=o.size;for(let l=0;l<s;l++)for(let c=0;c<s;c++)o.isReserved(c,l)||o.xor(c,l,n(i,c,l))},t.getBestMask=function(i,o){const s=Object.keys(t.Patterns).length;let l=0,c=1/0;for(let u=0;u<s;u++){o(u),t.applyMask(u,i);const d=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(u,i),d<c&&(c=d,l=u)}return l}})(W6e);const Ban=Wt(W6e);var L5={};const yE=xne,B5=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F5=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];L5.getBlocksCount=function(e,n){switch(n){case yE.L:return B5[(e-1)*4+0];case yE.M:return B5[(e-1)*4+1];case yE.Q:return B5[(e-1)*4+2];case yE.H:return B5[(e-1)*4+3];default:return}},L5.getTotalCodewordsCount=function(e,n){switch(n){case yE.L:return F5[(e-1)*4+0];case yE.M:return F5[(e-1)*4+1];case yE.Q:return F5[(e-1)*4+2];case yE.H:return F5[(e-1)*4+3];default:return}};var Y6e={},$5={};const Fk=new Uint8Array(512),U5=new Uint8Array(256);(function(){let e=1;for(let n=0;n<255;n++)Fk[n]=e,U5[e]=n,e<<=1,e&256&&(e^=285);for(let n=255;n<512;n++)Fk[n]=Fk[n-255]})(),$5.log=function(e){if(e<1)throw new Error("log("+e+")");return U5[e]},$5.exp=function(e){return Fk[e]},$5.mul=function(e,n){return e===0||n===0?0:Fk[U5[e]+U5[n]]},function(t){const e=$5;t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let l=0;l<i.length;l++)o[s+l]^=e.mul(r[s],i[l]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let c=0;c<i.length;c++)o[c]^=e.mul(i[c],s);let l=0;for(;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}}(Y6e);const q6e=Wt(Y6e);function wne(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}wne.prototype.initialize=function(e){this.degree=e,this.genPoly=q6e.generateECPolynomial(this.degree)},wne.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const r=q6e.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const o=new Uint8Array(this.degree);return o.set(r,i),o}return r};var Fan=wne;const $an=Wt(Fan);var K6e={},X6e={},Tne={};Tne.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Hy={};const Q6e="[0-9]+",Uan="[A-Z $%*+\\-./:]+";let $k="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";$k=$k.replace(/u/g,"\\u");const zan="(?:(?![A-Z0-9 $%*+\\-./:]|"+$k+`)(?:.|[\r
|
|
481
|
+
`,o.value.on("node:click",({data:h})=>{s.value=h}),o.value.on("edge:click",({data:h})=>{s.value=h}),o.value.on("blank:click",()=>{s.value=null}),o.value.extension.dndPanel.setPatternItems([{type:"circle",text:"",label:"圆形节点",className:"lf_sy_1"},{type:"rect",label:"矩形",className:"lf_sy_2"},{type:"ellipse",label:"椭圆",className:"lf_sy_3"},{type:"polygon",label:"多边形",className:"lf_sy_4"},{type:"diamond",label:"菱形",className:"lf_sy_5"},{type:"text",text:"文本",label:"文本",className:"lf_sy_6"}]),o.value.setTheme({baseNode:{fill:"#FFFFFF",stroke:"#446eff",strokeWidth:2},polyline:{stroke:"#446eff",strokeWidth:2}}),r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({getData:d,setData:m,clearData:p,exportImg:f}),(h,g)=>{const v=a.resolveComponent("el-input"),y=a.resolveComponent("common-label-container"),b=a.resolveComponent("el-button"),_=a.resolveComponent("Download"),S=a.resolveComponent("el-icon"),E=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(E,{props:a.unref(l),class:"relative"},{default:a.withCtx(()=>[a.createElementVNode("div",{id:"container",ref_key:"container",ref:i,class:"h-full w-full"},null,512),s.value?(a.openBlock(),a.createElementBlock("div",fan,[a.createVNode(y,{labelWidth:"70px",label:"节点字段"},{default:a.withCtx(()=>[a.createVNode(v,{modelValue:s.value.properties.zdname,"onUpdate:modelValue":g[0]||(g[0]=x=>s.value.properties.zdname=x),onInput:u,placeholder:"填写节点字段"},null,8,["modelValue"])]),_:1}),a.createVNode(y,{labelWidth:"70px",label:"节点备注"},{default:a.withCtx(()=>[a.createVNode(v,{modelValue:s.value.properties.label,"onUpdate:modelValue":g[1]||(g[1]=x=>s.value.properties.label=x),onInput:u,placeholder:"填写节点字段"},null,8,["modelValue"])]),_:1}),a.createVNode(y,{labelWidth:"70px",label:"节点点击"},{default:a.withCtx(()=>[a.createVNode(b,{type:"primary",onClick:c},{default:a.withCtx(()=>[a.createTextVNode("点击节点")]),_:1})]),_:1})])):a.createCommentVNode("",!0),a.createElementVNode("div",{onClick:f,class:"absolute left-2 bottom-2 bg-white border overflow-auto shadow-lg px-2 py-1 cursor-pointer"},[a.createVNode(S,null,{default:a.withCtx(()=>[a.createVNode(_)]),_:1})])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),man={class:"p-2 flex-1 overflow-auto"},gan=Object.freeze(Object.defineProperty({__proto__:null,default:ac(Object.assign({name:"widget-form"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t,{expose:e}){let n=t;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());let r=a.computed(()=>n.widget.props),i=n.widget.widgetList,o=a.ref(!1);const s=h=>{h.forEach(g=>{g.isForm&&(g.props.defaultValue=g.props.value),g.widgetList&&g.widgetList.length&&s(g.widgetList)})},l=(h,g)=>{h.forEach(v=>{v.isForm&&(v.props.isDetail=g,g&&v.props.placeholder&&(v.props.placeholder="")),v.type=="datatable"&&l(v.widgetList,g),v.isContainer&&l(v.widgetList,g),v.widgetList&&v.widgetList.length&&s(v.widgetList)})},c=()=>n.designer.getWidgetListResultById(n.widget.id),u=(h=!1)=>{n.designer.resetWidgetListById(n.widget.id,h)},d=async h=>{n.designer.inputWidgetListValueById(n.widget.id,h)},p=h=>{n.designer.showMode&&n.designer.eventHandle({eventType:"onButtonClick",value:h.value,widget:n.widget})},f=async()=>{if(!n.designer.showMode||!n.designer.checkWidgetListRequiredById(n.widget.id))return;let g=c(),v=r.value.formType;try{if(!r.value["apiSet"+v].apiurl)return n.designer.$notify.error("请先配置请求");o.value=!0,await n.designer.requestByApisetConfig({type:"apiSet"+v,widget:n.widget,resultCb:({funRes:y,httpRes:b,errRes:_})=>{o.value=!1},paramCb:y=>({...y,...g}),otherCb:()=>{o.value=!1}})}catch{o.value=!1}},m=async()=>{let h=r.value.formType;if(h==="Detail"||h==="Update")try{if(!r.value.apiSetDetail.apiurl)return;o.value=!0,await n.designer.requestByApisetConfig({type:"apiSetDetail",widget:n.widget,resultCb:({funRes:g,httpRes:v})=>{o.value=!1,g&&d(g)},paramCb:g=>g})}catch{o.value=!1}};return a.watch(()=>r.value.formType,h=>{l(i,h==="Detail")},{immediate:!0}),n.designer.eventHandle({eventType:"onCreated",widget:n.widget}),a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),n.designer.showMode&&(s(i),a.nextTick(()=>{m()})),e({submit:f}),(h,g)=>{const v=a.resolveComponent("commonContainer"),y=a.resolveComponent("el-button"),b=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"config_wrap w-full rounded-md overflow-hidden border flex flex-col dark:border-slate-500",style:a.normalizeStyle({height:"100%",border:!a.unref(r).hasBorder})},[a.createElementVNode("div",man,[a.createVNode(a.unref(Y_),{ghostClass:"ghost",handle:".handle",list:a.unref(n).widget.widgetList,class:"min-h-20 flex flex-wrap content-start",group:{name:"dragGroup",put:!0},"item-key":"id"},{item:a.withCtx(({element:_})=>[a.createVNode(v,{designer:a.unref(n).designer,widget:_,parentWidget:a.unref(n).widget},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+_.type),{ref:_.id,widget:_,designer:a.unref(n).designer},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.$slots,(S,E)=>a.renderSlot(h.$slots,E,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget"])]),_:3},8,["list"])]),a.unref(r).hasFooter&&(a.unref(r).hasSubmitButton||a.unref(r).hasResetButton||a.unref(r).list.length)&&a.unref(r).formType!=="Detail"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"py-1 px-3 bg-gray-50 flex justify-end border-t dark:bg-slate-800 dark:border-slate-500",style:a.normalizeStyle({justifyContent:a.unref(r).buttonAlign=="left"?"start":"",backgroundColor:a.unref(r).hasFooterBg?"":"white"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).list,(_,S)=>(a.openBlock(),a.createBlock(y,{key:S,onClick:E=>p(_)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(_.label),1)]),_:2},1032,["onClick"]))),128)),a.unref(r).hasResetButton?(a.openBlock(),a.createBlock(y,{key:0,icon:"RefreshLeft",onClick:u},{default:a.withCtx(()=>[a.createTextVNode("重置")]),_:1})):a.createCommentVNode("",!0),a.unref(r).hasSubmitButton?(a.openBlock(),a.createBlock(y,{key:1,type:"primary",onClick:f},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r).submitButtonText),1)]),_:1})):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],4)),[[b,a.unref(o)]])}}}),[["__scopeId","data-v-2798a717"]])},Symbol.toStringTag,{value:"Module"})),van=Object.freeze(Object.defineProperty({__proto__:null,default:ac(Object.assign({name:"widget-homepage"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t,n=e.designer,r=a.computed(()=>e.widget),i=a.computed(()=>n.widgetConfig.widgetList);return e.designer.eventHandle({eventType:"onCreated",widget:e.widget}),a.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,s)=>{const l=a.resolveComponent("commonContainer");return a.openBlock(),a.createBlock(a.unref(Y_),{ghostClass:"ghost",handle:".handle",list:a.unref(i),class:"min-h-full flex flex-wrap content-start",group:{name:"dragGroup",put:!0},style:a.normalizeStyle({...a.unref(e).designer.formatStyle(a.unref(e).widget)}),"item-key":"id"},{item:a.withCtx(({element:c})=>[a.createVNode(l,{designer:a.unref(n),widget:c,style:a.normalizeStyle({...a.unref(e).designer.formatStyle(c)}),parentWidget:a.unref(r)},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+c.type),{ref:c.id,widget:c,designer:a.unref(n)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.$slots,(u,d)=>a.renderSlot(o.$slots,d,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","style","parentWidget"])]),_:3},8,["list","style"])}}}),[["__scopeId","data-v-f46c3f24"]])},Symbol.toStringTag,{value:"Module"})),yan=["src"],_an=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-iframe"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{emit:e}){let n=t;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());let r=a.computed(()=>n.widget.props);return n.designer.eventHandle({eventType:"onCreated",widget:n.widget}),window.iframeFunc=()=>{n.designer.eventHandle({eventType:"iframeFunc",widget:n.widget})},a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),(i,o)=>{const s=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(s,{props:a.unref(r)},{default:a.withCtx(()=>[a.unref(r).src?(a.openBlock(),a.createElementBlock("iframe",{key:0,src:a.unref(r).src,frameborder:"0",class:"w-full h-full"},null,8,yan)):a.createCommentVNode("",!0)]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),ban=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-image"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},tableItemData:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e;let r=t,i=a.computed(()=>r.widget.props);a.computed(()=>{if(i.value.isTableItem&&i.value.onTypeFormat){let l=new Function("value","widget","tableItemData","self","app",i.value.onTypeFormat)(r.modelValue,r.widget,r.tableItemData,a.getCurrentInstance(),r.designer);return l||i.value.type}else return i.value.type});const o=a.computed({set:s=>{i.value.isTableItem?n("update:modelValue",s):i.value.value=s},get:()=>{if(i.value.isTableItem){if(i.value.onFormat){let l=new Function("value","widget","tableItemData","self","app",i.value.onFormat)(r.modelValue,r.widget,r.tableItemData,a.getCurrentInstance(),r.designer);if(l)return l}return r.modelValue===void 0?i.value.value:r.modelValue}else return i.value.value}});return r.designer.showMode&&(r.designer.setVueIncetance(r.widget.id,a.getCurrentInstance()),r.designer.eventHandle({eventType:"onFormat",widget:r.widget,value:r.modelValue,tableItemData:r.tableItemData,cb:s=>{n("update:modelValue",s)}})),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),a.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),(s,l)=>{const c=a.resolveComponent("el-image");return a.openBlock(),a.createBlock(c,{style:a.normalizeStyle({width:a.unref(i).imgWidth,height:a.unref(i).imgHeight}),src:o.value,"preview-src-list":a.unref(i).canPreview?[o.value]:[],fit:a.unref(i).fit,alt:a.unref(i).alt},null,8,["style","src","preview-src-list","fit","alt"])}}})},Symbol.toStringTag,{value:"Module"})),Ean=Object.freeze(Object.defineProperty({__proto__:null,default:ac(Object.assign({name:"widget-input"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const i=n;r.designer.setVueIncetance(r.widget.id,a.getCurrentInstance());let o=a.computed(()=>r.widget.props);const s=a.computed({set:m=>{o.value.isTableItem?i("update:modelValue",m):o.value.value=m},get:()=>o.value.isTableItem?r.modelValue===void 0?o.value.value:r.modelValue:o.value.value}),l=a.computed(()=>o.value.isTableItem&&o.value.onTableFormat&&r.designer.showMode?new Function("value","widget","tableItemData","self","app",o.value.onTableFormat)(r.modelValue,r.widget,r.tableItemData,a.getCurrentInstance(),r.designer):null),c=m=>{o.value.isTrim&&(o.value.value=r.designer.$utils.trim(m)),o.value.validate&&(r.designer.validateInput(o.value.validate,m)||(o.value.isTableItem?i("update:modelValue",null):o.value.value=null,r.designer.$message.warning(o.value.validate+"校验失败,请重新输入"))),r.designer.eventHandle({eventType:"onChange",value:o.value.value,widget:r.widget,tableItemData:r.tableItemData})},u=m=>{r.designer.eventHandle({eventType:"onInput",value:m,widget:r.widget,tableItemData:r.tableItemData})},d=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget,tableItemData:r.tableItemData})},p=m=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget,tableItemData:r.tableItemData})},f=()=>{r.designer.eventHandle({eventType:"onHandle",value:r.widget.props.value,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),a.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:c}),(m,h)=>{const g=a.resolveComponent("el-button"),v=a.resolveComponent("el-input"),y=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(y,{props:a.unref(o)},{default:a.withCtx(()=>{var b;return[a.createVNode(v,{onChange:c,onInput:u,onFocus:d,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=_=>s.value=_),type:a.unref(o).type,size:a.unref(o).size,onBlur:p,placeholder:a.unref(o).placeholder,disabled:a.unref(o).isDetail||a.unref(o).disabled||((b=l.value)==null?void 0:b.disabled),readonly:a.unref(o).readonly,rows:a.unref(o).rows,maxlength:a.unref(o).maxlength,"show-word-limit":a.unref(o).showLimit,class:"vertify"},a.createSlots({_:2},[a.unref(o).prependText?{name:"prepend",fn:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(o).prependText),1)]),key:"0"}:void 0,a.unref(o).appendText?{name:"append",fn:a.withCtx(()=>[a.createVNode(g,{onClick:f},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(o).appendText),1)]),_:1})]),key:"1"}:void 0]),1032,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]}),_:1},8,["props"])}}}),[["__scopeId","data-v-30fd297b"]])},Symbol.toStringTag,{value:"Module"})),San={class:"config_wrap w-full border rounded-md dark:border-slate-500"},xan={class:"py-2 px-3 bg-gray-100 w-full border-b dark:bg-slate-800 dark:border-slate-500"},wan={class:"p-2 border border-dashed bg-white dark:bg-black dark:border-slate-500"},Tan={key:0,class:"py-1 px-3 bg-gray-100 flex justify-end dark:bg-slate-800"},Can=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-modal"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t,{expose:e}){let n=t;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());const r=a.ref(!1);let i=a.computed(()=>n.widget.props),o=null;const s=p=>{o=n.designer.$utils.clone(n.widget,!0),r.value=!0,a.nextTick(()=>{p&&p()})},l=()=>{r.value=!1,n.designer.eventHandle({eventType:"onHideModel",widget:n.widget}),n.designer.updateWidget(n.widget.id,n.designer.$utils.clone(o,!0),!0)},c=p=>{r.value=!1,p&&p()},u=p=>{n.designer.eventHandle({eventType:"onButtonClick",value:p,widget:n.widget})},d=()=>{n.designer.eventHandle({eventType:"onConfirm",widget:n.widget})};return n.designer.eventHandle({eventType:"onCreated",widget:n.widget}),a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),e({open:s,close:c}),(p,f)=>{const m=a.resolveComponent("commonContainer"),h=a.resolveComponent("el-button"),g=a.resolveComponent("common-widget-label-container"),v=a.resolveComponent("vxe-modal");return a.openBlock(),a.createElementBlock(a.Fragment,null,[t.designer.showMode?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(g,{key:0,props:a.unref(i),class:"pl-3"},{default:a.withCtx(()=>[a.createElementVNode("div",San,[a.createElementVNode("div",xan,a.toDisplayString(a.unref(i).title),1),a.createElementVNode("div",wan,[a.createVNode(a.unref(Y_),{ghostClass:"ghost",handle:".handle",list:a.unref(n).widget.widgetList,class:"min-h-20 flex flex-wrap content-start",group:{name:"dragGroup",put:!0},"item-key":"id"},{item:a.withCtx(({element:y})=>[a.createVNode(m,{designer:a.unref(n).designer,widget:y,parentWidget:a.unref(n).widget},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+y.type),{ref:y.id,widget:y,designer:a.unref(n).designer},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.$slots,(b,_)=>a.renderSlot(p.$slots,_)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget"])]),_:3},8,["list"])]),a.unref(i).hasFooter?(a.openBlock(),a.createElementBlock("div",Tan,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i).list,(y,b)=>(a.openBlock(),a.createBlock(h,{key:b},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.label),1)]),_:2},1024))),128)),a.unref(i).hideConfirm?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:0,icon:"Check"},{default:a.withCtx(()=>[a.createTextVNode("确定")]),_:1}))])):a.createCommentVNode("",!0)])]),_:3},8,["props"])),a.createVNode(v,{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=y=>r.value=y),transfer:"",onHide:l,width:a.unref(i).modalWidth,height:a.unref(i).modalHeight,"show-zoom":a.unref(i).isZoom,resize:a.unref(i).isResize,"esc-closable":a.unref(i).isEscClosable,"show-footer":a.unref(i).hasFooter},{title:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(i).title),1)]),default:a.withCtx(()=>[r.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(n).widget.widgetList,(y,b)=>(a.openBlock(),a.createBlock(m,{key:b,designer:a.unref(n).designer,widget:y,parentWidget:a.unref(n).widget,style:a.normalizeStyle({...a.unref(n).designer.formatStyle(y)})},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent("widget-"+y.type),{ref_for:!0,ref:y.id,widget:y,designer:a.unref(n).designer},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.$slots,(_,S)=>a.renderSlot(p.$slots,S)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"]))),128)):a.createCommentVNode("",!0)]),footer:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i).list,(y,b)=>(a.openBlock(),a.createBlock(h,{onClick:_=>u(y.value),key:b},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.label),1)]),_:2},1032,["onClick"]))),128)),a.unref(i).hideConfirm?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:0,icon:"Check",onClick:d},{default:a.withCtx(()=>[a.createTextVNode("确定")]),_:1}))]),_:3},8,["modelValue","width","height","show-zoom","resize","esc-closable","show-footer"])],64)}}})},Symbol.toStringTag,{value:"Module"})),Aan=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-progress"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{emit:e}){let n=t;const r=e;n.designer.setVueIncetance(n.widget.id,a.getCurrentInstance());let i=a.computed(()=>n.widget.props);const o=a.computed({set:l=>{i.value.isTableItem?r("update:modelValue",l):i.value.value=l},get:()=>i.value.isTableItem?n.modelValue===void 0?i.value.value:n.modelValue:i.value.value}),s=l=>{let c=i.value.format;return c?new Function("value","widget","app",c)(i.value.value,n.widget,n.designer):l==null||l===""?"0%":`${l}%`};return n.designer.eventHandle({eventType:"onCreated",widget:n.widget,cb:()=>{}}),a.onMounted(()=>{n.designer.eventHandle({eventType:"onMounted",widget:n.widget})}),(l,c)=>{const u=a.resolveComponent("el-progress"),d=a.resolveComponent("common-widget-label-container");return a.openBlock(),a.createBlock(d,{props:a.unref(i)},{default:a.withCtx(()=>[a.createVNode(u,{color:a.unref(i).color,"stroke-width":a.unref(i).strokeWidth,"text-inside":a.unref(i).textInside,striped:a.unref(i).hasStriped,type:a.unref(i).type,"striped-flow":a.unref(i).hasStripedFlow,percentage:Number(o.value)>100?100:Number(o.value),format:s,width:a.unref(i).circleWidth},null,8,["color","stroke-width","text-inside","striped","type","striped-flow","percentage","width"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"}));var Lk={},Oan=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then};const Nan=Wt(Oan);var $6e={},nm={};let Sne;const Ian=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];nm.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},nm.getSymbolTotalCodewords=function(e){return Ian[e]},nm.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},nm.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Sne=e},nm.isKanjiModeEnabled=function(){return typeof Sne<"u"},nm.toSJIS=function(e){return Sne(e)};var U6e={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(U6e);const xne=Wt(U6e);function z6e(){this.buffer=[],this.length=0}z6e.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let n=0;n<e;n++)this.putBit((t>>>e-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Dan=z6e;const Ran=Wt(Dan);function Bk(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Bk.prototype.set=function(t,e,n,r){const i=t*this.size+e;this.data[i]=n,r&&(this.reservedBit[i]=!0)},Bk.prototype.get=function(t,e){return this.data[t*this.size+e]},Bk.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},Bk.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Pan=Bk;const kan=Wt(Pan);var j6e={};(function(t){const e=nm.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,l=[o-7];for(let c=1;c<i-1;c++)l[c]=l[c-1]-s;return l.push(6),l.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),s=o.length;for(let l=0;l<s;l++)for(let c=0;c<s;c++)l===0&&c===0||l===0&&c===s-1||l===s-1&&c===0||i.push([o[l],o[c]]);return i}})(j6e);const Man=Wt(j6e);var H6e={};const Lan=nm.getSymbolSize,G6e=7;H6e.getPositions=function(e){const n=Lan(e);return[[0,0],[n-G6e,0],[0,n-G6e]]};var W6e={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let s=0,l=0,c=0,u=null,d=null;for(let p=0;p<o;p++){l=c=0,u=d=null;for(let f=0;f<o;f++){let m=i.get(p,f);m===u?l++:(l>=5&&(s+=e.N1+(l-5)),u=m,l=1),m=i.get(f,p),m===d?c++:(c>=5&&(s+=e.N1+(c-5)),d=m,c=1)}l>=5&&(s+=e.N1+(l-5)),c>=5&&(s+=e.N1+(c-5))}return s},t.getPenaltyN2=function(i){const o=i.size;let s=0;for(let l=0;l<o-1;l++)for(let c=0;c<o-1;c++){const u=i.get(l,c)+i.get(l,c+1)+i.get(l+1,c)+i.get(l+1,c+1);(u===4||u===0)&&s++}return s*e.N2},t.getPenaltyN3=function(i){const o=i.size;let s=0,l=0,c=0;for(let u=0;u<o;u++){l=c=0;for(let d=0;d<o;d++)l=l<<1&2047|i.get(u,d),d>=10&&(l===1488||l===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*e.N3},t.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let c=0;c<s;c++)o+=i.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const s=o.size;for(let l=0;l<s;l++)for(let c=0;c<s;c++)o.isReserved(c,l)||o.xor(c,l,n(i,c,l))},t.getBestMask=function(i,o){const s=Object.keys(t.Patterns).length;let l=0,c=1/0;for(let u=0;u<s;u++){o(u),t.applyMask(u,i);const d=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(u,i),d<c&&(c=d,l=u)}return l}})(W6e);const Ban=Wt(W6e);var L5={};const yE=xne,B5=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F5=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];L5.getBlocksCount=function(e,n){switch(n){case yE.L:return B5[(e-1)*4+0];case yE.M:return B5[(e-1)*4+1];case yE.Q:return B5[(e-1)*4+2];case yE.H:return B5[(e-1)*4+3];default:return}},L5.getTotalCodewordsCount=function(e,n){switch(n){case yE.L:return F5[(e-1)*4+0];case yE.M:return F5[(e-1)*4+1];case yE.Q:return F5[(e-1)*4+2];case yE.H:return F5[(e-1)*4+3];default:return}};var Y6e={},$5={};const Fk=new Uint8Array(512),U5=new Uint8Array(256);(function(){let e=1;for(let n=0;n<255;n++)Fk[n]=e,U5[e]=n,e<<=1,e&256&&(e^=285);for(let n=255;n<512;n++)Fk[n]=Fk[n-255]})(),$5.log=function(e){if(e<1)throw new Error("log("+e+")");return U5[e]},$5.exp=function(e){return Fk[e]},$5.mul=function(e,n){return e===0||n===0?0:Fk[U5[e]+U5[n]]},function(t){const e=$5;t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let l=0;l<i.length;l++)o[s+l]^=e.mul(r[s],i[l]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let c=0;c<i.length;c++)o[c]^=e.mul(i[c],s);let l=0;for(;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}}(Y6e);const q6e=Wt(Y6e);function wne(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}wne.prototype.initialize=function(e){this.degree=e,this.genPoly=q6e.generateECPolynomial(this.degree)},wne.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const r=q6e.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const o=new Uint8Array(this.degree);return o.set(r,i),o}return r};var Fan=wne;const $an=Wt(Fan);var K6e={},X6e={},Tne={};Tne.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Hy={};const Q6e="[0-9]+",Uan="[A-Z $%*+\\-./:]+";let $k="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";$k=$k.replace(/u/g,"\\u");const zan="(?:(?![A-Z0-9 $%*+\\-./:]|"+$k+`)(?:.|[\r
|
|
482
482
|
]))+`;Hy.KANJI=new RegExp($k,"g"),Hy.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Hy.BYTE=new RegExp(zan,"g"),Hy.NUMERIC=new RegExp(Q6e,"g"),Hy.ALPHANUMERIC=new RegExp(Uan,"g");const jan=new RegExp("^"+$k+"$"),Han=new RegExp("^"+Q6e+"$"),Gan=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Hy.testKanji=function(e){return jan.test(e)},Hy.testNumeric=function(e){return Han.test(e)},Hy.testAlphanumeric=function(e){return Gan.test(e)},function(t){const e=Tne,n=Hy;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+i)}}t.from=function(o,s){if(t.isValid(o))return o;try{return r(o)}catch{return s}}}(X6e);const nT=Wt(X6e);(function(t){const e=nm,n=L5,r=xne,i=nT,o=Tne,s=7973,l=e.getBCHDigit(s);function c(f,m,h){for(let g=1;g<=40;g++)if(m<=t.getCapacity(g,h,f))return g}function u(f,m){return i.getCharCountIndicator(f,m)+4}function d(f,m){let h=0;return f.forEach(function(g){const v=u(g.mode,m);h+=v+g.getBitsLength()}),h}function p(f,m){for(let h=1;h<=40;h++)if(d(f,h)<=t.getCapacity(h,m,i.MIXED))return h}t.from=function(m,h){return o.isValid(m)?parseInt(m,10):h},t.getCapacity=function(m,h,g){if(!o.isValid(m))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=i.BYTE);const v=e.getSymbolTotalCodewords(m),y=n.getTotalCodewordsCount(m,h),b=(v-y)*8;if(g===i.MIXED)return b;const _=b-u(g,m);switch(g){case i.NUMERIC:return Math.floor(_/10*3);case i.ALPHANUMERIC:return Math.floor(_/11*2);case i.KANJI:return Math.floor(_/13);case i.BYTE:default:return Math.floor(_/8)}},t.getBestVersionForData=function(m,h){let g;const v=r.from(h,r.M);if(Array.isArray(m)){if(m.length>1)return p(m,v);if(m.length===0)return 1;g=m[0]}else g=m;return c(g.mode,g.getLength(),v)},t.getEncodedBits=function(m){if(!o.isValid(m)||m<7)throw new Error("Invalid QR Code version");let h=m<<12;for(;e.getBCHDigit(h)-l>=0;)h^=s<<e.getBCHDigit(h)-l;return m<<12|h}})(K6e);const Wan=Wt(K6e);var Z6e={};const Cne=nm,J6e=1335,Yan=21522,V6e=Cne.getBCHDigit(J6e);Z6e.getEncodedBits=function(e,n){const r=e.bit<<3|n;let i=r<<10;for(;Cne.getBCHDigit(i)-V6e>=0;)i^=J6e<<Cne.getBCHDigit(i)-V6e;return(r<<10|i)^Yan};var e8e={};const qan=nT;function _O(t){this.mode=qan.NUMERIC,this.data=t.toString()}_O.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},_O.prototype.getLength=function(){return this.data.length},_O.prototype.getBitsLength=function(){return _O.getBitsLength(this.data.length)},_O.prototype.write=function(e){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),e.put(i,10);const o=this.data.length-n;o>0&&(r=this.data.substr(n),i=parseInt(r,10),e.put(i,o*3+1))};var Kan=_O;const Xan=Wt(Kan),Qan=nT,Ane=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function bO(t){this.mode=Qan.ALPHANUMERIC,this.data=t}bO.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},bO.prototype.getLength=function(){return this.data.length},bO.prototype.getBitsLength=function(){return bO.getBitsLength(this.data.length)},bO.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let r=Ane.indexOf(this.data[n])*45;r+=Ane.indexOf(this.data[n+1]),e.put(r,11)}this.data.length%2&&e.put(Ane.indexOf(this.data[n]),6)};var Zan=bO;const Jan=Wt(Zan),Van=nT;function EO(t){this.mode=Van.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}EO.getBitsLength=function(e){return e*8},EO.prototype.getLength=function(){return this.data.length},EO.prototype.getBitsLength=function(){return EO.getBitsLength(this.data.length)},EO.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)};var esn=EO;const tsn=Wt(esn),nsn=nT,rsn=nm;function SO(t){this.mode=nsn.KANJI,this.data=t}SO.getBitsLength=function(e){return e*13},SO.prototype.getLength=function(){return this.data.length},SO.prototype.getBitsLength=function(){return SO.getBitsLength(this.data.length)},SO.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=rsn.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
483
483
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}};var isn=SO;const osn=Wt(isn);var t8e={exports:{}};(function(t){var e={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var l=e.PriorityQueue.make();l.push(r,0);for(var c,u,d,p,f,m,h,g,v;!l.empty();){c=l.pop(),u=c.value,p=c.cost,f=n[u]||{};for(d in f)f.hasOwnProperty(d)&&(m=f[d],h=p+m,g=s[d],v=typeof s[d]>"u",(v||g>h)&&(s[d]=h,l.push(d,h),o[d]=u))}if(typeof i<"u"&&typeof s[i]>"u"){var y=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(y)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=e.single_source_shortest_paths(n,r,i);return e.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(t8e);var asn=t8e.exports;const ssn=Wt(asn);(function(t){const e=nT,n=Xan,r=Jan,i=tsn,o=osn,s=Hy,l=nm,c=ssn;function u(y){return unescape(encodeURIComponent(y)).length}function d(y,b,_){const S=[];let E;for(;(E=y.exec(_))!==null;)S.push({data:E[0],index:E.index,mode:b,length:E[0].length});return S}function p(y){const b=d(s.NUMERIC,e.NUMERIC,y),_=d(s.ALPHANUMERIC,e.ALPHANUMERIC,y);let S,E;return l.isKanjiModeEnabled()?(S=d(s.BYTE,e.BYTE,y),E=d(s.KANJI,e.KANJI,y)):(S=d(s.BYTE_KANJI,e.BYTE,y),E=[]),b.concat(_,S,E).sort(function(T,O){return T.index-O.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function f(y,b){switch(b){case e.NUMERIC:return n.getBitsLength(y);case e.ALPHANUMERIC:return r.getBitsLength(y);case e.KANJI:return o.getBitsLength(y);case e.BYTE:return i.getBitsLength(y)}}function m(y){return y.reduce(function(b,_){const S=b.length-1>=0?b[b.length-1]:null;return S&&S.mode===_.mode?(b[b.length-1].data+=_.data,b):(b.push(_),b)},[])}function h(y){const b=[];for(let _=0;_<y.length;_++){const S=y[_];switch(S.mode){case e.NUMERIC:b.push([S,{data:S.data,mode:e.ALPHANUMERIC,length:S.length},{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.ALPHANUMERIC:b.push([S,{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.KANJI:b.push([S,{data:S.data,mode:e.BYTE,length:u(S.data)}]);break;case e.BYTE:b.push([{data:S.data,mode:e.BYTE,length:u(S.data)}])}}return b}function g(y,b){const _={},S={start:{}};let E=["start"];for(let x=0;x<y.length;x++){const T=y[x],O=[];for(let N=0;N<T.length;N++){const R=T[N],P=""+x+N;O.push(P),_[P]={node:R,lastCount:0},S[P]={};for(let k=0;k<E.length;k++){const B=E[k];_[B]&&_[B].node.mode===R.mode?(S[B][P]=f(_[B].lastCount+R.length,R.mode)-f(_[B].lastCount,R.mode),_[B].lastCount+=R.length):(_[B]&&(_[B].lastCount=R.length),S[B][P]=f(R.length,R.mode)+4+e.getCharCountIndicator(R.mode,b))}}E=O}for(let x=0;x<E.length;x++)S[E[x]].end=0;return{map:S,table:_}}function v(y,b){let _;const S=e.getBestModeForData(y);if(_=e.from(b,S),_!==e.BYTE&&_.bit<S.bit)throw new Error('"'+y+'" cannot be encoded with mode '+e.toString(_)+`.
|
|
484
484
|
Suggested mode is: `+e.toString(S));switch(_===e.KANJI&&!l.isKanjiModeEnabled()&&(_=e.BYTE),_){case e.NUMERIC:return new n(y);case e.ALPHANUMERIC:return new r(y);case e.KANJI:return new o(y);case e.BYTE:return new i(y)}}t.fromArray=function(b){return b.reduce(function(_,S){return typeof S=="string"?_.push(v(S,null)):S.data&&_.push(v(S.data,S.mode)),_},[])},t.fromString=function(b,_){const S=p(b,l.isKanjiModeEnabled()),E=h(S),x=g(E,_),T=c.find_path(x.map,"start","end"),O=[];for(let N=1;N<T.length-1;N++)O.push(x.table[T[N]].node);return t.fromArray(m(O))},t.rawSplit=function(b){return t.fromArray(p(b,l.isKanjiModeEnabled()))}})(e8e);const lsn=Wt(e8e),z5=nm,One=xne,csn=Ran,usn=kan,dsn=Man,psn=H6e,Nne=Ban,Ine=L5,fsn=$an,j5=Wan,hsn=Z6e,msn=nT,Dne=lsn;function gsn(t,e){const n=t.size,r=psn.getPositions(e);for(let i=0;i<r.length;i++){const o=r[i][0],s=r[i][1];for(let l=-1;l<=7;l++)if(!(o+l<=-1||n<=o+l))for(let c=-1;c<=7;c++)s+c<=-1||n<=s+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?t.set(o+l,s+c,!0,!0):t.set(o+l,s+c,!1,!0))}}function vsn(t){const e=t.size;for(let n=8;n<e-8;n++){const r=n%2===0;t.set(n,6,r,!0),t.set(6,n,r,!0)}}function ysn(t,e){const n=dsn.getPositions(e);for(let r=0;r<n.length;r++){const i=n[r][0],o=n[r][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?t.set(i+s,o+l,!0,!0):t.set(i+s,o+l,!1,!0)}}function _sn(t,e){const n=t.size,r=j5.getEncodedBits(e);let i,o,s;for(let l=0;l<18;l++)i=Math.floor(l/3),o=l%3+n-8-3,s=(r>>l&1)===1,t.set(i,o,s,!0),t.set(o,i,s,!0)}function Rne(t,e,n){const r=t.size,i=hsn.getEncodedBits(e,n);let o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?t.set(o,8,s,!0):o<8?t.set(o+1,8,s,!0):t.set(r-15+o,8,s,!0),o<8?t.set(8,r-o-1,s,!0):o<9?t.set(8,15-o-1+1,s,!0):t.set(8,15-o-1,s,!0);t.set(r-8,8,1,!0)}function bsn(t,e){const n=t.size;let r=-1,i=n-1,o=7,s=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!t.isReserved(i,l-c)){let u=!1;s<e.length&&(u=(e[s]>>>o&1)===1),t.set(i,l-c,u),o--,o===-1&&(s++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function Esn(t,e,n){const r=new csn;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),msn.getCharCountIndicator(c.mode,t)),c.write(r)});const i=z5.getSymbolTotalCodewords(t),o=Ine.getTotalCodewordsCount(t,e),s=(i-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const l=(s-r.getLengthInBits())/8;for(let c=0;c<l;c++)r.put(c%2?17:236,8);return Ssn(r,t,e)}function Ssn(t,e,n){const r=z5.getSymbolTotalCodewords(e),i=Ine.getTotalCodewordsCount(e,n),o=r-i,s=Ine.getBlocksCount(e,n),l=r%s,c=s-l,u=Math.floor(r/s),d=Math.floor(o/s),p=d+1,f=u-d,m=new fsn(f);let h=0;const g=new Array(s),v=new Array(s);let y=0;const b=new Uint8Array(t.buffer);for(let T=0;T<s;T++){const O=T<c?d:p;g[T]=b.slice(h,h+O),v[T]=m.encode(g[T]),h+=O,y=Math.max(y,O)}const _=new Uint8Array(r);let S=0,E,x;for(E=0;E<y;E++)for(x=0;x<s;x++)E<g[x].length&&(_[S++]=g[x][E]);for(E=0;E<f;E++)for(x=0;x<s;x++)_[S++]=v[x][E];return _}function xsn(t,e,n,r){let i;if(Array.isArray(t))i=Dne.fromArray(t);else if(typeof t=="string"){let u=e;if(!u){const d=Dne.rawSplit(t);u=j5.getBestVersionForData(d,n)}i=Dne.fromString(t,u||40)}else throw new Error("Invalid data");const o=j5.getBestVersionForData(i,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(`
|
package/package.json
CHANGED
package/dist/index-odDAoGnF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index-DPyfMbBc.js";
|