general-basic-form 2.1.0 → 2.1.2
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/README.md +668 -647
- package/dist/index.d.ts +11 -16
- package/dist/index.js +4470 -1433
- package/dist/index.umd.cjs +97 -1
- package/package.json +40 -20
- package/dist/style.css +0 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1,97 @@
|
|
|
1
|
-
(function(C,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(C=typeof globalThis<"u"?globalThis:C||self,e(C.Index={},C.Vue))})(this,function(C,e){"use strict";const U={placeholder:"请输入",style:"width: 200px",clearable:!0},ce={style:"width: 227px","start-placeholder":"开始日期","end-placeholder":"结束日期",type:"daterange"},v={placeholder:"请选择",filterable:!0,clearable:!0,style:"width: 200px"},pe=e.defineComponent({components:{InputArchive:t=>{const{templateEle:o}=t;return o()}},props:{item:null},setup(){const t=e.inject("queryParams",{}),o=e.inject("getList"),n=e.inject("size","default");return{queryParams:t,getList:o,size:n}},data(){return{inputSetting:{...U,...this.item.inputSetting,...this.item.setting}}},methods:{currentInputComponent(){return"input-archive"}}}),I=(t,o)=>{const n=t.__vccOpts||t;for(const[r,a]of o)n[r]=a;return n};function me(t,o,n,r,a,c){const l=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(l,e.mergeProps({onKeydown:e.withKeys(t.getList,["enter"]),modelValue:t.queryParams[t.item.prop],"onUpdate:modelValue":o[0]||(o[0]=i=>t.queryParams[t.item.prop]=i),size:t.size},t.inputSetting),e.createSlots({_:2},[e.renderList(t.item.template,(i,s)=>({name:s,fn:e.withCtx(()=>[i?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.currentInputComponent()),{key:s,templateEle:i},null,8,["templateEle"])):e.createCommentVNode("",!0)])}))]),1040,["onKeydown","modelValue","size"])}const K=I(pe,[["render",me]]),de=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...U,...t.item.inputSetting,...t.item.setting});return(a,c)=>{const l=e.resolveComponent("el-input-number");return e.openBlock(),e.createBlock(l,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=i=>e.unref(o)[a.item.prop]=i),size:e.unref(n)},r.value),null,16,["modelValue","size"])}}}),fe=e.defineComponent({components:{InputArchive:t=>{const{templateEle:o}=t;return o()}},props:{item:null},setup(){const t=e.inject("queryParams",{}),o=e.inject("getList",()=>{}),n=e.inject("size","default"),a=e.inject("Form").useInjectFormItemContext();return{queryParams:t,getList:o,size:n,formItemContext:a}},data(){return{inputSetting:{...U,...this.item.inputSetting,...this.item.setting}}},methods:{currentInputComponent(){return"input-archive"},onInputChange(t){this.queryParams[this.item.prop]=t.target.value,this.formItemContext.onFieldChange()}}});function ue(t,o,n,r,a,c){const l=e.resolveComponent("a-input");return e.openBlock(),e.createBlock(l,e.mergeProps({onKeydown:e.withKeys(t.getList,["enter"]),onChange:t.onInputChange,value:t.queryParams[t.item.prop],size:t.size},t.inputSetting),e.createSlots({_:2},[e.renderList(t.item.template,(i,s)=>({name:s,fn:e.withCtx(()=>[i?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.currentInputComponent()),{key:s,templateEle:i},null,8,["templateEle"])):e.createCommentVNode("",!0)])}))]),1040,["onKeydown","onChange","value","size"])}const ee=I(fe,[["render",ue]]),te=Symbol(),ye=e.defineComponent({__name:"index",props:{imgSrc:{}},setup(t){const o=e.ref();return e.onMounted(()=>{const n=new Image,r=[],a=8,c=8;let l=0,i=0;const s=300,p=o.value,m=p.getContext("2d");n.onload=function(){p.width=n.width,p.height=n.height,i=Math.floor(n.width/a),l=Math.floor(n.height/c),f(),u()},n.src=t.imgSrc;const f=()=>{for(let y=0;y<c;y++)for(let h=0;h<a;h++)r.push({x:i*h,y:l*y,offsetX:(Math.random()-.5)*s,offsetY:(Math.random()-.5)*s})},u=()=>{m.clearRect(0,0,p.width,p.height);let y=!0;r.forEach((h,g)=>{m.drawImage(n,h.x,h.y,i,l,h.x+h.offsetX,h.y+h.offsetY,i,l),Math.abs(h.offsetX)>.5&&(y=!1,h.offsetX*=.95),Math.abs(h.offsetY)>.5&&(h.offsetY*=.95,y=!1)}),y?setTimeout(()=>{f(),u()},300):requestAnimationFrame(u)}}),(n,r)=>(e.openBlock(),e.createElementBlock("canvas",{ref_key:"loadingCanvas",ref:o},null,512))}}),he={class:"input-graphic-verification"},ge=["src","alt"],ke=e.defineComponent({__name:"index",props:{item:{},componentType:{default:"Element Plus"},loading:{type:Boolean,default:!1}},setup(t){const{graphicSrc:o="",graphicAlt:n="",getGraphic:r=()=>{},key:a}=t.item,{formLoading:c}=e.inject(te,!1),l=e.computed(()=>(c==null?void 0:c.value)||t.loading),i=async()=>{r&&!(l!=null&&l.value)&&await r()},s=e.shallowRef(K);switch(t.componentType){case"Element Plus":s.value=K;break;case"Ant Design Vue":s.value=ee;break}return(p,m)=>(e.openBlock(),e.createElementBlock("div",he,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{item:p.item,class:"input"},null,8,["item"])),l.value?(e.openBlock(),e.createBlock(ye,{key:0,class:"graphic",imgSrc:e.unref(o)},null,8,["imgSrc"])):(e.openBlock(),e.createElementBlock("img",{key:1,class:"graphic",onClick:i,src:e.unref(o),alt:e.unref(n)||`${e.unref(a)}`},null,8,ge))]))}}),gt="",ne=I(ke,[["__scopeId","data-v-fb7aa300"]]),L="获取验证码",_e=60,Be=e.defineComponent({__name:"verification-button",props:{getSmscode:{type:Function},componentType:{default:"Element Plus"},item:{}},setup(t,{expose:o}){const n=e.ref(L),r=e.ref(null),a=e.computed(()=>n.value===L),c=e.shallowRef("el-button");switch(t.componentType){case"Element Plus":c.value="el-button";break;case"Ant Design Vue":c.value="a-button";break}const l=()=>{r&&(clearInterval(r.value),r.value=null,n.value=L)},i=async()=>{if(n.value===L)if(n.value=_e,r.value=setInterval(()=>{if(Number(n.value)<=0||!n.value){l();return}else n.value=Number(n.value)-1},1e3),t.getSmscode)await t.getSmscode()===!1&&l();else return};e.onBeforeUnmount(()=>{l()});const s={...t.item.buttonSetting};return o({buttonClick:i,reset:l}),(p,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.mergeProps({class:"verifiaction-button",style:{color:a.value?"var(--color-primary, #409EFF)":"var(--text-color-placeholder, #A8ABB2)",cursor:a.value?"pointer":"default"},onClick:i},s),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value?L:n.value+"s"),1)]),_:1},16,["style"]))}}),kt="",oe=I(Be,[["__scopeId","data-v-aa89c1b7"]]),re=e.defineComponent({__name:"index",props:{item:{},componentType:{default:"Element Plus"}},setup(t,{expose:o}){const n=t.item,r=e.shallowRef(K),a=e.ref();switch(t.componentType){case"Element Plus":r.value=K,n.template={append:()=>e.h(oe,{getSmscode:n.getSmscode,item:t.item,ref:a})};break;case"Ant Design Vue":r.value=ee,n.template={suffix:()=>e.h(oe,{getSmscode:n.getSmscode,item:t.item,ref:a})};break}return o({VerificationButtonRef:a}),(c,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{item:e.unref(n),class:"input"},null,8,["item"]))}}),be=e.defineComponent({components:{slotArchive:t=>{const{templateEle:o}=t;return o()}},props:{item:null},setup(){},data(){return{dividerSetting:{...this.item.dividerSetting,...this.item.setting}}},methods:{currentInputComponent(){return"slot-archive"}}});function Ce(t,o,n,r,a,c){const l=e.resolveComponent("el-divider");return e.openBlock(),e.createBlock(l,e.normalizeProps(e.guardReactiveProps(t.dividerSetting)),e.createSlots({_:2},[e.renderList(t.item.template,(i,s)=>({name:s,fn:e.withCtx(()=>[i?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.currentInputComponent()),{key:s,templateEle:i},null,8,["templateEle"])):e.createCommentVNode("",!0)])}))]),1040)}const we=I(be,[["render",Ce]]),Se=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...t.item.radioGroupSetting,...t.item.setting});return(a,c)=>{const l=e.resolveComponent("el-radio"),i=e.resolveComponent("el-radio-group");return e.openBlock(),e.createBlock(i,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(o)[a.item.prop]=s),size:e.unref(n)},r.value),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.item.option||[],s=>(e.openBlock(),e.createBlock(l,e.mergeProps({size:e.unref(n),key:s.value,ref_for:!0},s),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1040,["size"]))),128))]),_:1},16,["modelValue","size"])}}}),De=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...t.item.checkboxGroupSetting,...t.item.setting});return(a,c)=>{const l=e.resolveComponent("el-checkbox"),i=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createBlock(i,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(o)[a.item.prop]=s),size:e.unref(n)},r.value),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.item.option||[],s=>(e.openBlock(),e.createBlock(l,e.mergeProps({size:e.unref(n),key:s.value,ref_for:!0},s),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1040,["size"]))),128))]),_:1},16,["modelValue","size"])}}}),Pe=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...ce,...t.item.datePackerSetting,...t.item.setting});return(a,c)=>{const l=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(l,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=i=>e.unref(o)[a.item.prop]=i),size:e.unref(n)},r.value),null,16,["modelValue","size"])}}}),Ve=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...v,...t.item.selectSetting,...t.item.setting});return(a,c)=>{const l=e.resolveComponent("el-option"),i=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(i,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(o)[a.item.prop]=s),size:e.unref(n)},r.value),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.item.option||[],s=>(e.openBlock(),e.createBlock(l,e.mergeProps({key:s.value,ref_for:!0},s),null,16))),128))]),_:1},16,["modelValue","size"])}}}),Ie=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...v,...t.item.selectSetting,...t.item.setting});return(a,c)=>{const l=e.resolveComponent("el-cascader");return e.openBlock(),e.createBlock(l,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=i=>e.unref(o)[a.item.prop]=i),size:e.unref(n),options:a.item.options||[]},r.value),null,16,["modelValue","size","options"])}}}),xe=(t={})=>{for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const n=t[o];Object.prototype.toString.call(n)==="[object Object]"&&(t[o]=JSON.stringify(n))}return t},Ne=(t={})=>{for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const n=t[o];try{/[{]+/g.test(n)&&/[}]+/g.test(n)&&(t[o]=JSON.parse(n))}catch{}}return t},J={paramsToQuery:xe,queryToData:Ne},x=q;(function(t,o){const n=q,r=t();for(;;)try{if(parseInt(n(561))/1+-parseInt(n(558))/2+parseInt(n(521))/3*(parseInt(n(527))/4)+-parseInt(n(506))/5*(parseInt(n(510))/6)+-parseInt(n(550))/7*(parseInt(n(503))/8)+parseInt(n(540))/9+-parseInt(n(546))/10*(-parseInt(n(562))/11)===o)break;r.push(r.shift())}catch{r.push(r.shift())}})(j,819524);const b={};let $=null;const ae=async(t,o)=>{const n=q;!window[n(543)]&&window[n(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");const{DBName:r="",DBVersion:a=1}=t;let c,l=!1;try{const i=window[n(543)][n(519)](r,a);await new Promise((s,p)=>{const m=n;i[m(551)]=async function(f){const u=m,y=f.target.result,{stores:h=[]}=t;await Promise.all(h[u(509)](async g=>{const k=u,{DBStoreName:_="",properties:S={}}=g;try{const D={};D[k(536)]=t[k(557)];const d=f[k(541)][k(520)][k(554)](_,D);if(Object[k(548)](S)[k(500)]===0){console[k(559)](_+"没有设置默认值");return}for(const B in S)if(S[k(556)][k(515)](S,B)){const P=S[B],T={...P.createIndex};d[k(504)](B,B,T)}}catch(D){console[k(559)](D)}})),c=y,l=!0},i[m(535)]=async function(f){const u=m;if(c=this[u(520)],l){const{stores:y=[]}=t;await Promise[u(528)](y[u(509)](async h=>{const g=u,{DBStoreName:k=""}=h,_=c[g(552)]([k],g(547)),S=_[g(496)](k),D={};D[t[g(557)]]=o,S[g(502)](D);try{await new Promise((d,B)=>{const P=g;_[P(525)]=function(T){const z=P;console[z(513)](z(512),T),B()},_[P(544)]=function(T){d()},_[P(529)]=function(T){const z=P;console[z(513)](z(534),T),B()}})}catch(d){console.warn(g(511),d)}}))}s()},i.onerror=function(f){p(f)}})}catch(i){console[n(513)](i,n(526))}return c};function j(){const t=["transaction","DBName","createObjectStore","close","hasOwnProperty","primaryKey","208156ZfrAJr","warn","delete","1575928bFmnZg","154LBDnQZ","objectStore","数据更新失败","alert","store不存在,请更新schema和DBVersion并重启前端服务","length","openCursor","add","15752fkogxb","createIndex","deleteDB","299045NkkBTh","请传入主键","mapDB","map","102uEoUGM","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","主键插入中止","error","数据库删除失败","call","continue","update","deleteStore","open","result","66891DVCnfv","get","getDataByKey","数据删除失败","onabort","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","52JGzdMb","all","onerror","put","数据更新失败没有request","Database connection closed, reconnecting...","target","主键插入失败","onsuccess","keyPath","数据更新成功","主键查询结果:","传入结构化克隆算法不支持的数据类型可能导致报错","4779333CtWPbr","currentTarget","获取Database缺乏用户信息,请先传入对primaryKey的赋值","indexedDB","oncomplete","事务失败","634540WpNScH","readwrite","keys","getDB","4781SEkDBZ","onupgradeneeded"];return j=function(){return t},j()}function q(t,o){const n=j();return q=function(r,a){return r=r-496,n[r]},q(t,o)}let A=!1;b[x(549)]=async(t,o)=>{const n=x,{mapDB:r,primaryKey:a}=t;return r?a?(A&&await new Promise(async(c,l)=>{const i=()=>{A?setTimeout(()=>{i()},200):c()};i()}),!$&&(A=!0,$=await ae(r,a),$==null||$.addEventListener(n(555),async()=>{console.info(n(532)),$=await ae(r,a)}),A=!1),o&&o($),$):(console[n(559)](n(542)),!1):(console[n(559)]("必须传入数据库配置信息"),!1)},b[x(523)]=async(t,o)=>{const n=x,{mapDB:r,tableName:a,primaryKey:c}=t,l={};l[n(508)]=r,l[n(557)]=c;const i=await b.getDB(l);if(!i)return;const s=i.transaction([a]),p=s[n(496)](a),m=p[n(522)](c);return new Promise((f,u)=>{const y=n;m.onsuccess=function(h){const g=q;o&&o(a+g(538)+m[g(520)]),f(m[g(520)])},m[y(529)]=function(h){console.error(a+y(545)+h),u()}})},b.updateStore=async(t,o)=>{var n;const r=x,{mapDB:a,tableName:c,updateData:l}=t;!l[a==null?void 0:a[r(557)]]&&console[r(559)](r(507)+a[r(557)]);const i={};i.mapDB=a,i[r(557)]=l[a==null?void 0:a[r(557)]];const s=await b[r(549)](i);if(!s)return;let p=null;try{p=s[r(552)]([c],r(547)).objectStore(c)}catch(y){console[r(513)](r(499),y)}let m=null,f=null;const u=await new Promise((y,h)=>{const g=r,k=p[g(501)](l[a==null?void 0:a[g(557)]]);k[g(535)]=_=>{y(_)},k.onerror=_=>{h(_)}});f=(n=u==null?void 0:u[r(533)])==null?void 0:n[r(520)];try{f&&(f==null?void 0:f.primaryKey)===l[a==null?void 0:a.primaryKey]?m=f[r(517)](l):m=p[r(530)](l)}catch(y){console[r(513)](r(539),y,l)}new Promise((y,h)=>{const g=r;!m&&(console[g(513)](c+g(531)),h()),m[g(535)]=function(k){o&&o(c+g(537)),y()},m[g(529)]=function(k){const _=g;console[_(513)](c+_(497),k),h()}}),f&&f[r(516)]()},b[x(518)]=async(t,o)=>{const n=x,{mapDB:r,tableName:a,primaryKey:c}=t,l={};l[n(508)]=r,l[n(557)]=c;const i=await b.getDB(l);if(!i)return;const s=i[n(552)]([a],n(547))[n(496)](a)[n(560)](c);return new Promise((p,m)=>{const f=n;s[f(535)]=function(u){o&&o(a+"数据删除成功"),p()},s.onerror=function(u){const y=f;console[y(513)](a+y(524)+u),m()}})},b[x(505)]=async(t,o)=>{const{mapDB:n}=t,r=window.indexedDB.deleteDatabase(n.DBName);return new Promise((a,c)=>{const l=q;r[l(535)]=i=>{o&&o(n[l(553)]+"数据库已删除"),a()},r[l(529)]=i=>{const s=l;console[s(513)](n[s(553)]+s(514)+i),c()}})};function N(t,o){const n=R();return N=function(r,a){return r=r-125,n[r]},N(t,o)}function R(){const t=["updateData","error","getDataByKey","531aQoQZo","primaryKey","handleData","2kSsgxs","777jFjQPc","1271805RJVSFy","546pnZEJw","3522904vvFeGW","4wGSwDA","tableName","780ChApSf","deleteStore","655364nEjUrb","3705144rIEFqv","updateStore","getData","clearData","mapDB","3003845nIJAzp"];return R=function(){return t},R()}const O=N;(function(t,o){const n=N,r=t();for(;;)try{if(-parseInt(n(140))/1*(-parseInt(n(127))/2)+parseInt(n(142))/3*(parseInt(n(145))/4)+-parseInt(n(133))/5+-parseInt(n(143))/6*(parseInt(n(141))/7)+-parseInt(n(128))/8+parseInt(n(137))/9*(parseInt(n(125))/10)+parseInt(n(144))/11===o)break;r.push(r.shift())}catch{r.push(r.shift())}})(R,330152);async function Te(t,o){const n=N,{tableName:r,propertiesKey:a,parameter:c,primaryKey:l,mapDB:i}=t;let s=null,p={[i[n(138)]]:l};const m={};m[n(132)]=i,m.tableName=r,m[n(138)]=l;const f=await b[n(136)](m);f&&(p={...f,[i.primaryKey]:l}),p[a]=c;const u={};return u[n(132)]=i,u.tableName=r,u[n(134)]=p,await b[n(129)](u),c&&(s=c),o&&o(s),s}async function ze(t,o){const n=N,{tableName:r,propertiesKey:a,primaryKey:c,mapDB:l}=t;let i=null;const s={};s[n(132)]=l,s[n(146)]=r,s.primaryKey=c;const p=await b[n(136)](s);return p&&(i=p[a]),o&&o(i),i}async function $e(t,o){const n=N,{tableName:r,propertiesKey:a,parameter:c,primaryKey:l,mapDB:i}=t;let s={};const p={};p.mapDB=i,p[n(146)]=r,p[n(138)]=l;const m=await b[n(136)](p);try{if(m){s={...m[a],...c};const f={[i[n(138)]]:l},u=f;u[a]=s;const y={};y[n(132)]=i,y[n(146)]=r,y[n(134)]=u,await b.updateStore(y)}else console.warn(r+"为空,请先调用handleData")}catch(f){console[n(135)](f)}return o&&o(s),s}async function qe(t,o){const n=N,{tableName:r,primaryKey:a,mapDB:c}=t;let l=null;try{const i={};i.mapDB=c,i[n(146)]=r,i[n(138)]=a,await b[n(126)](i)}catch(i){console.error(i)}return o&&o(l),l}const F={};F[O(139)]=Te,F[O(130)]=ze,F[O(134)]=$e,F[O(131)]=qe;var w=G;(function(t,o){for(var n=G,r=t();;)try{var a=-parseInt(n(385))/1+parseInt(n(387))/2+-parseInt(n(389))/3+-parseInt(n(398))/4*(parseInt(n(394))/5)+-parseInt(n(402))/6+-parseInt(n(399))/7+-parseInt(n(386))/8*(-parseInt(n(400))/9);if(a===o)break;r.push(r.shift())}catch{r.push(r.shift())}})(Q,363872);var se={};se[w(397)]=!1;var W={};W[w(384)]=se,W[w(392)]={};var le={};function Q(){var t=["default","mapDB-indexeddb-form-schema","663915ecCGKl","primaryKey","stores","unique","12QKZOdu","2103521TxMjSC","1212714qgZAmF","formParams","3534618LLAImJ","DBName","properties","createIndex","464644FTRsMp","128qSoFyx","33606razpoB","DBVersion","168804drPGaG","queryParams","DBStoreName"];return Q=function(){return t},Q()}le[w(390)]=W;function G(t,o){var n=Q();return G=function(r,a){r=r-382;var c=n[r];return c},G(t,o)}var Z={};Z[w(391)]=w(401),Z[w(383)]=le;var E={};E[w(395)]="userId",E[w(382)]=w(393),E[w(388)]=1,E[w(396)]=[Z];const Ke={formSchema:E},Le=F,{handleData:Fe,getData:ie}=Le,{formSchema:Y}=Ke,H=async(t,o)=>{var n;return o.parametersType==="url"&&(t={...J.queryToData((n=o.$route)==null?void 0:n.query),...t}),o.parametersType==="indexDB"&&(t={...await ie({tableName:"formParams",propertiesKey:o.$route.path||"defQueryParams",primaryKey:o.DBPrimaryKey||"default",mapDB:Y}),...t}),t},X=async(t,o)=>{o.parametersType==="url"&&await o.$router.push({query:J.paramsToQuery({...t})}),o.parametersType==="indexDB"&&await Fe({tableName:"formParams",propertiesKey:o.$route.path||"defQueryParams",parameter:{...t},primaryKey:o.DBPrimaryKey||"default",mapDB:Y})},Ee=async({queryParameter:t={},vm:o={}})=>{t.defaultPageFirst??(t.defaultPageFirst=!0);const n={[o.currentPageKey]:o.defCurrentPage};let r={...n,...o.queryParams};r=await H(r,o),t.defaultPageFirst&&(r={...r,...n}),await X(r,o),o.getList({...r})},je=async({vm:t={}})=>{t.$refs.queryFormRef.resetFields();const o=await H({},t),n={[t.currentPageKey]:t.defCurrentPage,[t.pageSizeKey]:(o==null?void 0:o[t.pageSizeKey])||t.defPageSize};await X(n,t),t.queryParams={...n},t.afterReset(),t.handleQuery()},Ae=({vm:t={}})=>{var o;let n={[t.pageSizeKey]:t.defPageSize};return t.parametersType==="url"&&(n={...n,...J.queryToData((o=t.$route)==null?void 0:o.query)}),t.parametersType==="indexDB"&&ie({tableName:"formParams",propertiesKey:t.$route.path||"defQueryParams",primaryKey:t.DBPrimaryKey||"default",mapDB:Y},r=>{r&&(t.queryParams={...n,...r}),t.queryWhenReady&&t.$nextTick(()=>{t.handleQuery({defaultPageFirst:!1})})}),t.queryWhenReady&&t.parametersType!=="indexDB"&&t.$nextTick(()=>{t.handleQuery({defaultPageFirst:!1})}),n},Re=({item:t={},vm:o={}})=>{const{type:n,rules:r=[]}=t,a=[...r];return o.noInputBlank&&n==="input"&&a.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),a},Oe={makeParamsByType:H,saveParamsByType:X,handleQuery:Ee,resetQuery:je,initQueryParams:Ae,getItemRules:Re},M=Oe,Qe=e.defineComponent({name:"GeneralBasicForm",components:{Input:K,InputNumber:de,InputGraphicVerification:ne,InputMobileVerification:re,Divider:we,Radio:Se,Checkbox:De,DatePicker:Pe,Select:Ve,Cascader:Ie},props:{showSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},formOnly:{type:Boolean,default:!1},getList:{type:Function,default:()=>{}},afterReset:{type:Function,default:()=>{}},formItem:{type:Array,default:()=>[]},size:{type:String,default:"default"},labelWidth:{type:String,default:"90px"},parametersType:{type:String,default:"url"},DBPrimaryKey:{type:[String,Number],required:!1},formData:{type:Object,default:()=>{}},noInputBlank:{type:Boolean,default:()=>!1},currentPageKey:{type:String,default:"page"},pageSizeKey:{type:String,default:"limit"},defCurrentPage:{type:Number,default:1},defPageSize:{type:Number,default:10},queryWhenReady:{type:Boolean,default:()=>!1}},data(){return{formLoading:this.loading||!1,queryParams:M.initQueryParams({vm:this})}},provide(){return{[te]:{formLoading:e.computed(()=>this.formLoading),updateFormLoading:t=>{this.formLoading=t}},queryParams:e.computed(()=>this.queryParams)}},setup(t){const{size:o,getList:n}=t;e.provide("size",o),e.provide("getList",n)},watch:{formData:{handler(t,o){JSON.stringify(t)!==JSON.stringify(this.queryParams)&&(this.queryParams={...this.queryParams,...t})},immediate:!0,deep:!0},queryParams:{handler(t){this.$emit("update:formData",{...t})},deep:!0},loading(t){this.formLoading!==t&&(this.formLoading=t)},formLoading(t){this.loading!==t&&this.$emit("update:loading",t)}},methods:{handleQuery(t={}){M.handleQuery({queryParameter:t,vm:this})},resetQuery(){M.resetQuery({vm:this})},getItemRules(t){return M.getItemRules({item:t,vm:this})}}});function Ge(t,o,n,r,a,c){const l=e.resolveComponent("Input"),i=e.resolveComponent("Radio"),s=e.resolveComponent("Select"),p=e.resolveComponent("Divider"),m=e.resolveComponent("Cascader"),f=e.resolveComponent("Checkbox"),u=e.resolveComponent("DatePicker"),y=e.resolveComponent("InputNumber"),h=e.resolveComponent("InputMobileVerification"),g=e.resolveComponent("InputGraphicVerification"),k=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-button"),S=e.resolveComponent("el-form"),D=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createBlock(S,e.mergeProps({model:t.queryParams,ref:"queryFormRef",inline:"","label-position":"left","label-width":t.labelWidth},t.$attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formItem,d=>(e.openBlock(),e.createBlock(k,{label:d.label,prop:d.prop,key:d.prop,rules:t.getItemRules(d)},{default:e.withCtx(()=>[/^input$/i.test(d.type)?(e.openBlock(),e.createBlock(l,{key:0,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^radio$/i.test(d.type)?(e.openBlock(),e.createBlock(i,{key:1,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^select$/i.test(d.type)?(e.openBlock(),e.createBlock(s,{key:2,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^divider$/i.test(d.type)?(e.openBlock(),e.createBlock(p,{key:3,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^cascader$/i.test(d.type)?(e.openBlock(),e.createBlock(m,{key:4,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^checkbox$/i.test(d.type)?(e.openBlock(),e.createBlock(f,{key:5,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^date-picker$/i.test(d.type)?(e.openBlock(),e.createBlock(u,{key:6,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^input-number$/i.test(d.type)?(e.openBlock(),e.createBlock(y,{key:7,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^form-item-slot$/i.test(d.type)?e.renderSlot(t.$slots,d.name,{key:8}):e.createCommentVNode("",!0),/^input-mobile-verification$/i.test(d.type)?(e.openBlock(),e.createBlock(h,{key:9,item:d},null,8,["item"])):e.createCommentVNode("",!0),/^input-graphic-verification$/i.test(d.type)?(e.openBlock(),e.createBlock(g,{item:d,key:d.key},null,8,["item"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop","rules"]))),128)),e.renderSlot(t.$slots,"default"),t.formOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(k,{key:0},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(_,{type:"primary",size:t.size,onClick:t.handleQuery},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("查询")])),_:1},8,["size","onClick"])),[[D,t.formLoading]]),e.createVNode(_,{size:t.size,onClick:t.resetQuery},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("重置")])),_:1},8,["size","onClick"])]),_:1})),e.renderSlot(t.$slots,"behind-the-button")]),_:3},16,["model","label-width"])),[[e.vShow,t.showSearch]])}const Me=I(Qe,[["render",Ge]]),Ue=["infinite-scroll-disabled"],Je=["infinite-scroll-disabled"],We={class:"checkbox"},Ze=e.defineComponent({__name:"InfiniteScrollList",props:{search:{type:Function,required:!0},checkbox:{type:Boolean,required:!1},id:{type:String,required:!0},name:{type:String,required:!1},extra:{type:null,required:!1},defaultSelection:{type:Array,required:!1},height:{type:String,required:!1,default:"272px"}},setup(t,{expose:o}){const n=t,{search:r,id:a,name:c,extra:l,height:i}=n,s=e.ref([]),p=e.ref(1),m=e.ref(!1),f=e.ref([]),u=e.ref(!1),y=(d,B)=>{const{i:P}=d;return l&&l!=="false"?l(P):""},h=d=>{f.value=d.map(B=>typeof B=="object"?B[a]:B)};e.watch(()=>n.defaultSelection,(d=[],B=[])=>{h(d)},{immediate:!0});const g=()=>{k(),f.value=[]},k=()=>{p.value=1,s.value=[],m.value=!1},_=async()=>{if(u.value||m.value)return;u.value=!0;const d=await r(p.value);d&&d.length>0?(s.value=[...s.value,...d],p.value+=1):m.value=!0,u.value=!1},S=async()=>{k(),await _()},D=e.computed(()=>s.value.filter(d=>f.value.includes(d[a])))||{};return o({reset:g,lowReset:k,loadList:_,selectInfo:D,list:s,ifbottom:m,refreshList:S,loading:u}),(d,B)=>{const P=e.resolveComponent("el-checkbox"),T=e.resolveComponent("el-checkbox-group"),z=e.resolveDirective("infinite-scroll"),ht=e.resolveDirective("loading");return n.checkbox?e.withDirectives((e.openBlock(),e.createBlock(T,e.mergeProps({key:0,modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=V=>f.value=V)},n),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("ul",{class:"list","infinite-scroll-disabled":m.value,style:e.normalizeStyle({height:e.unref(i)})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,V=>(e.openBlock(),e.createElementBlock("li",{key:V[e.unref(a)],class:"list-item"},[e.createVNode(P,{value:V[e.unref(a)],class:"checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V[e.unref(c)])+" ",1),n.extra?(e.openBlock(),e.createBlock(y,{key:0,i:V},null,8,["i"])):e.createCommentVNode("",!0)]),_:2},1032,["value"])]))),128))],12,Ue)),[[z,_]])]),_:1},16,["modelValue"])),[[ht,u.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:1,class:"list","infinite-scroll-disabled":m.value,style:{height:e.unref(i)}},n),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,V=>(e.openBlock(),e.createElementBlock("li",{key:V[e.unref(a)],class:"list-item"},[e.createElementVNode("div",We,[e.createTextVNode(e.toDisplayString(V[e.unref(c)])+" ",1),n.extra?(e.openBlock(),e.createBlock(y,{key:0,i:V},null,8,["i"])):e.createCommentVNode("",!0)])]))),128))],16,Je)),[[z,_]])}}}),_t="",Ye=I(Ze,[["__scopeId","data-v-3ff9d47e"]]),He={key:1},Xe=e.defineComponent({__name:"Descriptions",props:{formData:{type:Object,required:!0},formItem:{type:Array,required:!0},componentType:{type:String,default:"Element Plus"},strict:{type:Boolean,default:!1}},setup(t){const o=t,n=e.ref([]);e.watch(()=>[o.formData,o.formItem],([l={},i=[]])=>{let s=i;if(o.strict)for(const p in l)Object.prototype.hasOwnProperty.call(l,p)&&(l[p]||(s=s.filter(f=>f.prop!==p||f.render)));n.value=s},{immediate:!0});const r=e.shallowRef("el-descriptions"),a=e.shallowRef("el-descriptions-item");switch(o.componentType){case"Element Plus":r.value="el-descriptions",a.value="el-descriptions-item";break;case"Ant Design Vue":r.value="a-descriptions",a.value="a-descriptions-item";break}const c=(l,i)=>{const{i:s,render:p,formData:m}=l;return p({row:m,$index:s})};return(l,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),e.mergeProps({column:1,border:"",class:"form-width"},l.$attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),e.mergeProps({key:s.prop,label:s.label,ref_for:!0},s.descriptionsItemProps),{default:e.withCtx(()=>[s.render?(e.openBlock(),e.createBlock(c,{key:0,i:p,render:s.render,formData:t.formData},null,8,["i","render","formData"])):(e.openBlock(),e.createElementBlock("span",He,e.toDisplayString(t.formData[s.prop]),1))]),_:2},1040,["label"]))),128))]),_:1},16))}});/*! Element Plus Icons Vue v2.3.1 */var ve=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),et=ve,tt=e.defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),nt=tt;const Bt="",ot={props:{treeAttributes:{type:Object,default:()=>{}},filterable:{type:Boolean,default:!1},dataSource:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},transferTitleLeft:{type:String,default:""},transferTitleRight:{type:String,default:""}},watch:{sourceFilterText(t){this.$refs.sourceTree.filter(t)},selectedFilterText(t){this.$refs.selectTree.filter(t)},checkedKeys(){this.defCheckedKeys()},dataSource(){this.defCheckedKeys()}},data(){return{defaultTreeAttributes:{"default-expand-all":!0,"show-checkbox":!0,"node-key":"id",...this.treeAttributes},selectedList:[],sourceFilterText:"",selectedFilterText:"",ArrowRightBold:e.markRaw(nt),ArrowLeftBold:e.markRaw(et)}},methods:{sourceFilterNode(t,o){var r,a;if(!t)return!0;const n=((a=(r=this.defaultTreeAttributes)==null?void 0:r.props)==null?void 0:a.label)||"label";return o[n].includes(t)},getSelectedData(){let t=!0,o;const n=this.$refs.sourceTree.getCheckedNodes(t,o);this.selectedList=n},removeSelectedData(){let t,o;const n=this.$refs.selectTree.getCheckedNodes(t,o),r={},a=this.defaultTreeAttributes.nodeKey||this.defaultTreeAttributes["node-key"];n.forEach(c=>{r[c[a]]=c}),this.selectedList=this.selectedList.filter(c=>!r[c[a]])},defCheckedKeys(){this.$refs.sourceTree.setCheckedKeys(this.checkedKeys),this.$nextTick(()=>{this.getSelectedData(),this.$refs.selectTree.setCheckedKeys(this.checkedKeys)})}}},rt={class:"tree-box"},at={class:"left-box"},st={class:"mid-box"},lt={class:"right-box"};function it(t,o,n,r,a,c){const l=e.resolveComponent("el-text"),i=e.resolveComponent("el-input"),s=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("div",at,[e.createVNode(l,{class:"v-tree-transfer-title",size:"large"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.transferTitleLeft),1)]),_:1}),n.filterable?(e.openBlock(),e.createBlock(i,{key:0,placeholder:"输入关键字进行过滤",modelValue:a.sourceFilterText,"onUpdate:modelValue":o[0]||(o[0]=m=>a.sourceFilterText=m)},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(s,e.mergeProps({data:n.dataSource,ref:"sourceTree","filter-node-method":c.sourceFilterNode},{...a.defaultTreeAttributes}),null,16,["data","filter-node-method"])]),e.createElementVNode("div",st,[e.createVNode(p,{icon:a.ArrowRightBold,circle:"",onClick:c.getSelectedData},null,8,["icon","onClick"]),e.createVNode(p,{icon:a.ArrowLeftBold,circle:"",onClick:c.removeSelectedData},null,8,["icon","onClick"])]),e.createElementVNode("div",lt,[e.createVNode(l,{class:"v-tree-transfer-title",size:"large"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.transferTitleRight),1)]),_:1}),n.filterable?(e.openBlock(),e.createBlock(i,{key:0,placeholder:"输入关键字进行过滤",modelValue:a.selectedFilterText,"onUpdate:modelValue":o[1]||(o[1]=m=>a.selectedFilterText=m)},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(s,e.mergeProps({data:a.selectedList,ref:"selectTree","filter-node-method":c.sourceFilterNode},{...a.defaultTreeAttributes}),null,16,["data","filter-node-method"])])])}const ct=I(ot,[["render",it],["__scopeId","data-v-d9a75723"]]),pt=Me,mt=Ye,dt=Xe,ft=ne,ut=re,yt=ct;C.VDescriptions=dt,C.VGeneralBasicForm=pt,C.VInfiniteScrollList=mt,C.VInputGraphicVerification=ft,C.VInputMobilecVerification=ut,C.VTreeTransfer=yt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(re,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],C):(re=typeof globalThis<"u"?globalThis:re||self,C(re.Index={},re.react))})(this,(function(re,C){"use strict";function $r(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const B=$r(C);var Se={exports:{}},pe={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Je;function Fr(){if(Je)return pe;Je=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var u in o)u!=="key"&&(a[u]=o[u])}else a=o;return o=a.ref,{$$typeof:r,type:n,key:c,ref:o!==void 0?o:null,props:a}}return pe.Fragment=e,pe.jsx=t,pe.jsxs=t,pe}var ge={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ze;function Vr(){return Ze||(Ze=1,process.env.NODE_ENV!=="production"&&(function(){function r(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===ae?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case x:return"Fragment";case z:return"Profiler";case D:return"StrictMode";case R:return"Suspense";case v:return"SuspenseList";case A:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case h:return"Portal";case I:return f.displayName||"Context";case L:return(f._context.displayName||"Context")+".Consumer";case j:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case g:return S=f.displayName||null,S!==null?S:r(f.type)||"Memo";case _:S=f._payload,f=f._init;try{return r(f(S))}catch{}}return null}function e(f){return""+f}function t(f){try{e(f);var S=!1}catch{S=!0}if(S){S=console;var O=S.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return O.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),e(f)}}function n(f){if(f===x)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===_)return"<...>";try{var S=r(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=G.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(J.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function u(f,S){function O(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}O.isReactWarning=!0,Object.defineProperty(f,"key",{get:O,configurable:!0})}function l(){var f=r(this.type);return W[f]||(W[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function i(f,S,O,N,Z,fe){var T=O.ref;return f={$$typeof:k,type:f,key:S,props:O,_owner:N},(T!==void 0?T:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:l}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function m(f,S,O,N,Z,fe){var T=S.children;if(T!==void 0)if(N)if(q(T)){for(N=0;N<T.length;N++)d(T[N]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(T);if(J.call(S,"key")){T=r(f);var ee=Object.keys(S).filter(function(me){return me!=="key"});N=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",_e[T+N]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,N,T,ee,T),_e[T+N]=!0)}if(T=null,O!==void 0&&(t(O),T=""+O),c(S)&&(t(S.key),T=""+S.key),"key"in S){O={};for(var se in S)se!=="key"&&(O[se]=S[se])}else O=S;return T&&u(O,typeof f=="function"?f.displayName||f.name||"Unknown":f),i(f,T,O,o(),Z,fe)}function d(f){s(f)?f._store&&(f._store.validated=1):typeof f=="object"&&f!==null&&f.$$typeof===_&&(f._payload.status==="fulfilled"?s(f._payload.value)&&f._payload.value._store&&(f._payload.value._store.validated=1):f._store&&(f._store.validated=1))}function s(f){return typeof f=="object"&&f!==null&&f.$$typeof===k}var p=C,k=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),I=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),G=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,q=Array.isArray,U=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(f){return f()}};var K,W={},w=p.react_stack_bottom_frame.bind(p,a)(),ke=U(n(a)),_e={};ge.Fragment=x,ge.jsx=function(f,S,O){var N=1e4>G.recentlyCreatedOwnerStacks++;return m(f,S,O,!1,N?Error("react-stack-top-frame"):w,N?U(n(f)):ke)},ge.jsxs=function(f,S,O){var N=1e4>G.recentlyCreatedOwnerStacks++;return m(f,S,O,!0,N?Error("react-stack-top-frame"):w,N?U(n(f)):ke)}})()),ge}var er;function Gr(){return er||(er=1,process.env.NODE_ENV==="production"?Se.exports=Fr():Se.exports=Vr()),Se.exports}var P=Gr(),Ee={exports:{}},je={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react-compiler-runtime.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var rr;function qr(){if(rr)return je;rr=1;var r=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return je.c=function(e){return r.H.useMemoCache(e)},je}var Me={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* react-compiler-runtime.development.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var tr;function Ur(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&(function(){var r=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Me.c=function(e){var t=r.H;return t===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
39
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
40
|
+
2. You might be breaking the Rules of Hooks
|
|
41
|
+
3. You might have more than one copy of React in the same app
|
|
42
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t.useMemoCache(e)}})()),Me}var nr;function Kr(){return nr||(nr=1,process.env.NODE_ENV==="production"?Ee.exports=qr():Ee.exports=Ur()),Ee.exports}var H=Kr();const or=r=>{const{item:e,id:t=C.useId(),coms:{Input:n}}=r,{dispatchQueryParams:o,queryParams:a,message:c,formLoading:u}=C.useContext(Qe);return P.jsx(n,{id:t,name:e.prop,value:a[e.prop]||"",disabled:u,onChange:l=>o({data:{...a,[e.prop]:l.target.value}}),"aria-invalid":c?.[e.prop]&&c?.[e.prop].length>0,...e.setting})};/**
|
|
43
|
+
* @license lucide-react v0.547.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const Wr=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yr=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ar=r=>{const e=Yr(r);return e.charAt(0).toUpperCase()+e.slice(1)},sr=(...r)=>r.filter((e,t,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===t).join(" ").trim(),Hr=r=>{for(const e in r)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
|
|
48
|
+
* @license lucide-react v0.547.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/var Qr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
53
|
+
* @license lucide-react v0.547.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/const Xr=C.forwardRef(({color:r="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:c,...u},l)=>C.createElement("svg",{ref:l,...Qr,width:e,height:e,stroke:r,strokeWidth:n?Number(t)*24/Number(e):t,className:sr("lucide",o),...!a&&!Hr(u)&&{"aria-hidden":"true"},...u},[...c.map(([i,m])=>C.createElement(i,m)),...Array.isArray(a)?a:[a]]));/**
|
|
58
|
+
* @license lucide-react v0.547.0 - ISC
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the ISC license.
|
|
61
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/const Le=(r,e)=>{const t=C.forwardRef(({className:n,...o},a)=>C.createElement(Xr,{ref:a,iconNode:e,className:sr(`lucide-${Wr(ar(r))}`,`lucide-${r}`,n),...o}));return t.displayName=ar(r),t};/**
|
|
63
|
+
* @license lucide-react v0.547.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const Jr=Le("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
68
|
+
* @license lucide-react v0.547.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const Zr=Le("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
73
|
+
* @license lucide-react v0.547.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const et=Le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rt=r=>{const{coms:e,item:t={},id:n=C.useId()}=r,{setting:o={},prop:a}=t,{ndim:c=1,columns:u=[]}=o,{Button:l}=e,i=[],m=3;for(let R=0;R<c;R++)i.push({});const{dispatchQueryParams:d,queryParams:s,formLoading:p}=C.useContext(Qe),k=(R,v="")=>{const g=[];for(let _=0;_<i.length;_++){const A={key:"",value:""};A.key=`${a}[${R}][${_}]`,A.value=typeof v=="object"?v?.[u?.[_]]:v,g.push(A)}return g},[h,x]=C.useState([[...k(0)]]),D=()=>{x([...h,[...k(h.length)]])},z=R=>{const v=[...h];v.splice(R,1),x(v),d({data:{...s,[t.prop]:v}})},L=(R,v,g)=>{const _=[...h];_[R][v].value=g.target.value,x(_),I()},I=()=>{let R=[];c===1?R=h.flat().map(v=>v.value):R=h.map(v=>{const g={};return v.forEach((_,A)=>{g[u[A]]=_.value}),g}),d({data:{...s,[t.prop]:R}})};C.useEffect(()=>{j()},[s?.[t.prop]]);const j=async()=>{const R=s?.[t.prop],v=[];if(R&&Array.isArray(R)&&R.length>0)for(let g=0;g<R.length;g++){const _=R[g];v.push([...k(g,_)])}x(v)};return P.jsxs("div",{id:n,children:[P.jsx("div",{className:`flex gap-${m} mb-${m} justify-end`,children:P.jsxs(l,{onClick:D,disabled:p,children:[P.jsx(Zr,{}),"添加",t.label]})}),h.map((R,v)=>P.jsxs("div",{className:`flex gap-${m} mb-${m}`,children:[R.map((g,_)=>{const A={...t};return A.setting={...A.setting,name:g.key,value:s?.[t.prop]?.[v]?.[u?.[_]]||g.value,onChange:L.bind(void 0,v,_),placeholder:A.setting?.placeholder?.[_]},P.jsx(or,{id:g.key,coms:e,item:A},g.key)}),P.jsx(l,{variant:"outline",size:"icon",className:"rounded-full",disabled:p,onClick:z.bind(void 0,v),children:P.jsx(et,{color:"red"})})]},v))]})};function ir(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(e=0;e<o;e++)r[e]&&(t=ir(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function lr(){for(var r,e,t=0,n="",o=arguments.length;t<o;t++)(r=arguments[t])&&(e=ir(r))&&(n&&(n+=" "),n+=e);return n}const ze="-",tt=r=>{const e=ot(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:c=>{const u=c.split(ze);return u[0]===""&&u.length!==1&&u.shift(),cr(u,e)||nt(c)},getConflictingClassGroupIds:(c,u)=>{const l=t[c]||[];return u&&n[c]?[...l,...n[c]]:l}}},cr=(r,e)=>{if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),o=n?cr(r.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=r.join(ze);return e.validators.find(({validator:c})=>c(a))?.classGroupId},dr=/^\[(.+)\]$/,nt=r=>{if(dr.test(r)){const e=dr.exec(r)[1],t=e?.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},ot=r=>{const{theme:e,classGroups:t}=r,n={nextPart:new Map,validators:[]};for(const o in t)Be(t[o],n,o,e);return n},Be=(r,e,t,n)=>{r.forEach(o=>{if(typeof o=="string"){const a=o===""?e:ur(e,o);a.classGroupId=t;return}if(typeof o=="function"){if(at(o)){Be(o(n),e,t,n);return}e.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([a,c])=>{Be(c,ur(e,a),t,n)})})},ur=(r,e)=>{let t=r;return e.split(ze).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},at=r=>r.isThemeGetter,st=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const o=(a,c)=>{t.set(a,c),e++,e>r&&(e=0,n=t,t=new Map)};return{get(a){let c=t.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return o(a,c),c},set(a,c){t.has(a)?t.set(a,c):o(a,c)}}},$e="!",Fe=":",it=Fe.length,lt=r=>{const{prefix:e,experimentalParseClassName:t}=r;let n=o=>{const a=[];let c=0,u=0,l=0,i;for(let k=0;k<o.length;k++){let h=o[k];if(c===0&&u===0){if(h===Fe){a.push(o.slice(l,k)),l=k+it;continue}if(h==="/"){i=k;continue}}h==="["?c++:h==="]"?c--:h==="("?u++:h===")"&&u--}const m=a.length===0?o:o.substring(l),d=ct(m),s=d!==m,p=i&&i>l?i-l:void 0;return{modifiers:a,hasImportantModifier:s,baseClassName:d,maybePostfixModifierPosition:p}};if(e){const o=e+Fe,a=n;n=c=>c.startsWith(o)?a(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(t){const o=n;n=a=>t({className:a,parseClassName:o})}return n},ct=r=>r.endsWith($e)?r.substring(0,r.length-1):r.startsWith($e)?r.substring(1):r,dt=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(c=>{c[0]==="["||e[c]?(o.push(...a.sort(),c),a=[]):a.push(c)}),o.push(...a.sort()),o}},ut=r=>({cache:st(r.cacheSize),parseClassName:lt(r),sortModifiers:dt(r),...tt(r)}),ft=/\s+/,mt=(r,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=e,c=[],u=r.trim().split(ft);let l="";for(let i=u.length-1;i>=0;i-=1){const m=u[i],{isExternal:d,modifiers:s,hasImportantModifier:p,baseClassName:k,maybePostfixModifierPosition:h}=t(m);if(d){l=m+(l.length>0?" "+l:l);continue}let x=!!h,D=n(x?k.substring(0,h):k);if(!D){if(!x){l=m+(l.length>0?" "+l:l);continue}if(D=n(k),!D){l=m+(l.length>0?" "+l:l);continue}x=!1}const z=a(s).join(":"),L=p?z+$e:z,I=L+D;if(c.includes(I))continue;c.push(I);const j=o(D,x);for(let R=0;R<j.length;++R){const v=j[R];c.push(L+v)}l=m+(l.length>0?" "+l:l)}return l};function pt(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=fr(e))&&(n&&(n+=" "),n+=t);return n}const fr=r=>{if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=fr(r[n]))&&(t&&(t+=" "),t+=e);return t};function gt(r,...e){let t,n,o,a=c;function c(l){const i=e.reduce((m,d)=>d(m),r());return t=ut(i),n=t.cache.get,o=t.cache.set,a=u,u(l)}function u(l){const i=n(l);if(i)return i;const m=mt(l,t);return o(l,m),m}return function(){return a(pt.apply(null,arguments))}}const M=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},mr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yt=/^\d+\/\d+$/,bt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ht=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=r=>yt.test(r),E=r=>!!r&&!Number.isNaN(Number(r)),te=r=>!!r&&Number.isInteger(Number(r)),Ve=r=>r.endsWith("%")&&E(r.slice(0,-1)),Q=r=>bt.test(r),kt=()=>!0,_t=r=>ht.test(r)&&!vt.test(r),gr=()=>!1,St=r=>wt.test(r),Et=r=>xt.test(r),Rt=r=>!y(r)&&!b(r),Ot=r=>de(r,wr,gr),y=r=>mr.test(r),ie=r=>de(r,xr,_t),Ge=r=>de(r,Dt,E),yr=r=>de(r,hr,gr),Tt=r=>de(r,vr,Et),Re=r=>de(r,kr,St),b=r=>pr.test(r),ye=r=>ue(r,xr),Pt=r=>ue(r,At),br=r=>ue(r,hr),Nt=r=>ue(r,wr),Ct=r=>ue(r,vr),Oe=r=>ue(r,kr,!0),de=(r,e,t)=>{const n=mr.exec(r);return n?n[1]?e(n[1]):t(n[2]):!1},ue=(r,e,t=!1)=>{const n=pr.exec(r);return n?n[1]?e(n[1]):t:!1},hr=r=>r==="position"||r==="percentage",vr=r=>r==="image"||r==="url",wr=r=>r==="length"||r==="size"||r==="bg-size",xr=r=>r==="length",Dt=r=>r==="number",At=r=>r==="family-name",kr=r=>r==="shadow",It=gt(()=>{const r=M("color"),e=M("font"),t=M("text"),n=M("font-weight"),o=M("tracking"),a=M("leading"),c=M("breakpoint"),u=M("container"),l=M("spacing"),i=M("radius"),m=M("shadow"),d=M("inset-shadow"),s=M("text-shadow"),p=M("drop-shadow"),k=M("blur"),h=M("perspective"),x=M("aspect"),D=M("ease"),z=M("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...I(),b,y],R=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],g=()=>[b,y,l],_=()=>[ce,"full","auto",...g()],A=()=>[te,"none","subgrid",b,y],ae=()=>["auto",{span:["full",te,b,y]},te,b,y],G=()=>[te,"auto",b,y],J=()=>["auto","min","max","fr",b,y],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...g()],W=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],w=()=>[r,b,y],ke=()=>[...I(),br,yr,{position:[b,y]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],f=()=>["auto","cover","contain",Nt,Ot,{size:[b,y]}],S=()=>[Ve,ye,ie],O=()=>["","none","full",i,b,y],N=()=>["",E,ye,ie],Z=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[E,Ve,br,yr],ee=()=>["","none",k,b,y],se=()=>["none",E,b,y],me=()=>["none",E,b,y],Xe=()=>[E,b,y],Ie=()=>[ce,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Q],breakpoint:[Q],color:[kt],container:[Q],"drop-shadow":[Q],ease:["in","out","in-out"],font:[Rt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Q],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Q],shadow:[Q],spacing:["px",E],text:[Q],"text-shadow":[Q],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,y,b,x]}],container:["container"],columns:[{columns:[E,y,b,u]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",b,y]}],basis:[{basis:[ce,"full","auto",u,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,ce,"auto","initial","none",y]}],grow:[{grow:["",E,b,y]}],shrink:[{shrink:["",E,b,y]}],order:[{order:[te,"first","last","none",b,y]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[u,"screen",...W()]}],"min-w":[{"min-w":[u,"screen","none",...W()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",t,ye,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,b,Ge]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ve,y]}],"font-family":[{font:[Pt,y,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,b,y]}],"line-clamp":[{"line-clamp":[E,"none",b,Ge]}],leading:[{leading:[a,...g()]}],"list-image":[{"list-image":["none",b,y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",b,ie]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[E,"auto",b,y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:f()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,b,y],radial:["",b,y],conic:[te,b,y]},Ct,Tt]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,b,y]}],"outline-w":[{outline:["",E,ye,ie]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",m,Oe,Re]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,Oe,Re]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[E,ie]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",s,Oe,Re]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[E,b,y]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[b,y]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:f()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,y]}],filter:[{filter:["","none",b,y]}],blur:[{blur:ee()}],brightness:[{brightness:[E,b,y]}],contrast:[{contrast:[E,b,y]}],"drop-shadow":[{"drop-shadow":["","none",p,Oe,Re]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",E,b,y]}],"hue-rotate":[{"hue-rotate":[E,b,y]}],invert:[{invert:["",E,b,y]}],saturate:[{saturate:[E,b,y]}],sepia:[{sepia:["",E,b,y]}],"backdrop-filter":[{"backdrop-filter":["","none",b,y]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[E,b,y]}],"backdrop-contrast":[{"backdrop-contrast":[E,b,y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,b,y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,b,y]}],"backdrop-invert":[{"backdrop-invert":["",E,b,y]}],"backdrop-opacity":[{"backdrop-opacity":[E,b,y]}],"backdrop-saturate":[{"backdrop-saturate":[E,b,y]}],"backdrop-sepia":[{"backdrop-sepia":["",E,b,y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",b,y]}],ease:[{ease:["linear","initial",D,b,y]}],delay:[{delay:[E,b,y]}],animate:[{animate:["none",z,b,y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,b,y]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:Xe()}],"skew-x":[{"skew-x":Xe()}],"skew-y":[{"skew-y":Xe()}],transform:[{transform:[b,y,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,y]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[E,ye,ie,Ge]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ne(...r){return It(lr(r))}function jt(r){const e=H.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("size-4 animate-spin",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Jr,{role:"status","aria-label":"Loading",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}const _r=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Sr=lr,Er=(r,e)=>t=>{var n;if(e?.variants==null)return Sr(r,t?.class,t?.className);const{variants:o,defaultVariants:a}=e,c=Object.keys(o).map(i=>{const m=t?.[i],d=a?.[i];if(m===null)return null;const s=_r(m)||_r(d);return o[i][s]}),u=t&&Object.entries(t).reduce((i,m)=>{let[d,s]=m;return s===void 0||(i[d]=s),i},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((i,m)=>{let{class:d,className:s,...p}=m;return Object.entries(p).every(k=>{let[h,x]=k;return Array.isArray(x)?x.includes({...a,...u}[h]):{...a,...u}[h]===x})?[...i,d,s]:i},[]);return Sr(r,c,l,t?.class,t?.className)};var Te={exports:{}},$={};/**
|
|
78
|
+
* @license React
|
|
79
|
+
* react-dom.production.js
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license found in the
|
|
84
|
+
* LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/var Rr;function Mt(){if(Rr)return $;Rr=1;var r=C;function e(l){var i="https://react.dev/errors/"+l;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)i+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,i,m){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:l,containerInfo:i,implementation:m}}var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(l,i){if(l==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return $.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,$.createPortal=function(l,i){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(e(299));return a(l,i,null,m)},$.flushSync=function(l){var i=c.T,m=n.p;try{if(c.T=null,n.p=2,l)return l()}finally{c.T=i,n.p=m,n.d.f()}},$.preconnect=function(l,i){typeof l=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(l,i))},$.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},$.preinit=function(l,i){if(typeof l=="string"&&i&&typeof i.as=="string"){var m=i.as,d=u(m,i.crossOrigin),s=typeof i.integrity=="string"?i.integrity:void 0,p=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;m==="style"?n.d.S(l,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:d,integrity:s,fetchPriority:p}):m==="script"&&n.d.X(l,{crossOrigin:d,integrity:s,fetchPriority:p,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},$.preinitModule=function(l,i){if(typeof l=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var m=u(i.as,i.crossOrigin);n.d.M(l,{crossOrigin:m,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(l)},$.preload=function(l,i){if(typeof l=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var m=i.as,d=u(m,i.crossOrigin);n.d.L(l,m,{crossOrigin:d,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},$.preloadModule=function(l,i){if(typeof l=="string")if(i){var m=u(i.as,i.crossOrigin);n.d.m(l,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:m,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(l)},$.requestFormReset=function(l){n.d.r(l)},$.unstable_batchedUpdates=function(l,i){return l(i)},$.useFormState=function(l,i,m){return c.H.useFormState(l,i,m)},$.useFormStatus=function(){return c.H.useHostTransitionStatus()},$.version="19.2.0",$}var F={};/**
|
|
86
|
+
* @license React
|
|
87
|
+
* react-dom.development.js
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/var Or;function Lt(){return Or||(Or=1,process.env.NODE_ENV!=="production"&&(function(){function r(){}function e(d){return""+d}function t(d,s,p){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(k);var h=!1}catch{h=!0}return h&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object"),e(k)),{$$typeof:i,key:k==null?null:""+k,children:d,containerInfo:s,implementation:p}}function n(d,s){if(d==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}function o(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function a(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function c(){var d=m.H;return d===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
94
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
95
|
+
2. You might be breaking the Rules of Hooks
|
|
96
|
+
3. You might have more than one copy of React in the same app
|
|
97
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=C,l={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),m=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),F.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,F.createPortal=function(d,s){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error("Target container is not a DOM element.");return t(d,s,null,p)},F.flushSync=function(d){var s=m.T,p=l.p;try{if(m.T=null,l.p=2,d)return d()}finally{m.T=s,l.p=p,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},F.preconnect=function(d,s){typeof d=="string"&&d?s!=null&&typeof s!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(s)):s!=null&&typeof s.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(s.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,l.d.C(d,s))},F.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var s=arguments[1];typeof s=="object"&&s.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(s)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(s))}typeof d=="string"&&l.d.D(d)},F.preinit=function(d,s){if(typeof d=="string"&&d?s==null||typeof s!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(s)):s.as!=="style"&&s.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(s.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&s&&typeof s.as=="string"){var p=s.as,k=n(p,s.crossOrigin),h=typeof s.integrity=="string"?s.integrity:void 0,x=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;p==="style"?l.d.S(d,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:k,integrity:h,fetchPriority:x}):p==="script"&&l.d.X(d,{crossOrigin:k,integrity:h,fetchPriority:x,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},F.preinitModule=function(d,s){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s!==void 0&&typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":s&&"as"in s&&s.as!=="script"&&(p+=" The `as` option encountered was "+a(s.as)+"."),p)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",p);else switch(p=s&&typeof s.as=="string"?s.as:"script",p){case"script":break;default:p=a(p),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',p,d)}typeof d=="string"&&(typeof s=="object"&&s!==null?(s.as==null||s.as==="script")&&(p=n(s.as,s.crossOrigin),l.d.M(d,{crossOrigin:p,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})):s==null&&l.d.M(d))},F.preload=function(d,s){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s==null||typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":typeof s.as=="string"&&s.as||(p+=" The `as` option encountered was "+o(s.as)+"."),p&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',p),typeof d=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){p=s.as;var k=n(p,s.crossOrigin);l.d.L(d,p,{crossOrigin:k,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},F.preloadModule=function(d,s){var p="";typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s!==void 0&&typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":s&&"as"in s&&typeof s.as!="string"&&(p+=" The `as` option encountered was "+o(s.as)+"."),p&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',p),typeof d=="string"&&(s?(p=n(s.as,s.crossOrigin),l.d.m(d,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:p,integrity:typeof s.integrity=="string"?s.integrity:void 0})):l.d.m(d))},F.requestFormReset=function(d){l.d.r(d)},F.unstable_batchedUpdates=function(d,s){return d(s)},F.useFormState=function(d,s,p){return c().useFormState(d,s,p)},F.useFormStatus=function(){return c().useHostTransitionStatus()},F.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),F}var Tr;function zt(){if(Tr)return Te.exports;Tr=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}return process.env.NODE_ENV==="production"?(r(),Te.exports=Mt()):Te.exports=Lt(),Te.exports}zt();function Pr(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function Bt(...r){return e=>{let t=!1;const n=r.map(o=>{const a=Pr(o,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Pr(r[o],null)}}}}function Nr(r){const e=Ft(r),t=B.forwardRef((n,o)=>{const{children:a,...c}=n,u=B.Children.toArray(a),l=u.find(Gt);if(l){const i=l.props.children,m=u.map(d=>d===l?B.Children.count(i)>1?B.Children.only(null):B.isValidElement(i)?i.props.children:null:d);return P.jsx(e,{...c,ref:o,children:B.isValidElement(i)?B.cloneElement(i,void 0,m):null})}return P.jsx(e,{...c,ref:o,children:a})});return t.displayName=`${r}.Slot`,t}var $t=Nr("Slot");function Ft(r){const e=B.forwardRef((t,n)=>{const{children:o,...a}=t;if(B.isValidElement(o)){const c=Ut(o),u=qt(a,o.props);return o.type!==B.Fragment&&(u.ref=n?Bt(n,c):c),B.cloneElement(o,u)}return B.Children.count(o)>1?B.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var Vt=Symbol("radix.slottable");function Gt(r){return B.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Vt}function qt(r,e){const t={...e};for(const n in e){const o=r[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?t[n]=(...u)=>{const l=a(...u);return o(...u),l}:o&&(t[n]=o):n==="style"?t[n]={...o,...a}:n==="className"&&(t[n]=[o,a].filter(Boolean).join(" "))}return{...r,...t}}function Ut(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var Kt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wt=Kt.reduce((r,e)=>{const t=Nr(`Primitive.${e}`),n=B.forwardRef((o,a)=>{const{asChild:c,...u}=o,l=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(l,{...u,ref:a})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Yt="Label",Cr=B.forwardRef((r,e)=>P.jsx(Wt.label,{...r,ref:e,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(r.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Cr.displayName=Yt;var Ht=Cr;function Qt(r){const e=H.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Ht,{"data-slot":"label",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}function Xt(r){const e=H.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx("div",{"data-slot":"field-group",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}const Jt=Er("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Dr(r){const e=H.c(11);let t,n,o;e[0]!==r?({className:t,orientation:o,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o):(t=e[1],n=e[2],o=e[3]);const a=o===void 0?"vertical":o;let c;e[4]!==t||e[5]!==a?(c=ne(Jt({orientation:a}),t),e[4]=t,e[5]=a,e[6]=c):c=e[6];let u;return e[7]!==a||e[8]!==n||e[9]!==c?(u=P.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:c,...n}),e[7]=a,e[8]=n,e[9]=c,e[10]=u):u=e[10],u}function Zt(r){const e=H.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Qt,{"data-slot":"field-label",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}function en(r){const e=H.c(15);let t,n,o,a;e[0]!==r?({className:n,children:t,errors:o,...a}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o,e[4]=a):(t=e[1],n=e[2],o=e[3],a=e[4]);let c;e:{if(t){c=t;break e}if(!o?.length){c=null;break e}let m;e[5]!==o?(m=[...new Map(o.map(tn)).values()],e[5]=o,e[6]=m):m=e[6];const d=m;if(d?.length==1){c=d[0]?.message;break e}let s;e[7]!==d?(s=P.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:d.map(rn)}),e[7]=d,e[8]=s):s=e[8],c=s}const u=c;if(!u)return null;let l;e[9]!==n?(l=ne("text-destructive text-sm font-normal",n),e[9]=n,e[10]=l):l=e[10];let i;return e[11]!==u||e[12]!==a||e[13]!==l?(i=P.jsx("div",{role:"alert","data-slot":"field-error",className:l,...a,children:u}),e[11]=u,e[12]=a,e[13]=l,e[14]=i):i=e[14],i}function rn(r,e){return r?.message&&P.jsx("li",{children:r.message},e)}function tn(r){return[r?.message,r]}const nn=(r={})=>{if(Array.isArray(r)&&r.length>0)return JSON.stringify(r);for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];Object.prototype.toString.call(t)==="[object Object]"&&(r[e]=JSON.stringify(t))}return r},on=(r={})=>{for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];try{/[{]+/g.test(t)&&/[}]+/g.test(t)&&(r[e]=JSON.parse(t))}catch{}}return r},an=(r={decode:!1})=>{const{decode:e}=r,t=/\+/g,n=/([^&=]+)=?([^&]*)/g,o=l=>decodeURIComponent(l.replace(t," ")),a=window.location.search.substring(1),c={},u=()=>{const l=n.exec(a);return l&&(e?c[o(l[1])]=o(l[2]):c[l[1]]=l[2],u()),c};return u(),c},be={paramsToQuery:nn,queryToData:on,getURLParameter:an},X=he;function he(r,e){const t=Pe();return he=function(n,o){return n=n-157,t[n]},he(r,e)}(function(r,e){const t=he,n=r();for(;;)try{if(-parseInt(t(216))/1+parseInt(t(215))/2+-parseInt(t(183))/3+-parseInt(t(175))/4*(-parseInt(t(193))/5)+-parseInt(t(162))/6+-parseInt(t(165))/7+-parseInt(t(198))/8*(-parseInt(t(205))/9)===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(Pe,144666);const V={};function Pe(){const r=["currentTarget","onupgradeneeded","map","transaction","continue","数据更新失败没有request","primaryKey","580315XgKHom","call","Database connection closed, reconnecting...","error","length","64bvXXYM","DBName","数据删除成功","数据库删除失败","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","result","update","863559tPzmuS","put","addEventListener","store不存在,请更新schema和DBVersion并重启前端服务","hasOwnProperty","deleteDB","readwrite","alert","keyPath","onerror","110026kBsQFS","287147ERepGn","info","主键插入失败","target","getDB","warn","get","onsuccess","indexedDB","617742laLJPd","数据更新成功","onabort","1405131SpeByp","objectStore","delete","数据库已删除","获取Database缺乏用户信息,请先传入对primaryKey的赋值","您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.","数据更新失败","没有设置默认值","主键插入中止","keys","4TsnuAV","createObjectStore","主键查询结果:","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","deleteStore","getDataByKey","传入结构化克隆算法不支持的数据类型可能导致报错","mapDB","609543ULkBkv","openCursor","createIndex"];return Pe=function(){return r},Pe()}let le=null;const Ar=async(r,e)=>{const t=he;!window[t(161)]&&window[t(212)](t(170));const{DBName:n="",DBVersion:o=1}=r;let a,c=!1;try{const u=window[t(161)].open(n,o);await new Promise((l,i)=>{const m=t;u[m(187)]=async function(d){const s=m,p=d.target[s(203)],{stores:k=[]}=r;await Promise.all(k[s(188)](async h=>{const x=s,{DBStoreName:D="",properties:z={}}=h;try{const L={};L[x(213)]=r[x(192)];const I=d[x(186)][x(203)][x(176)](D,L);if(Object[x(174)](z)[x(197)]===0){console[x(158)](D+x(172));return}for(const j in z)if(z[x(209)][x(194)](z,j)){const R=z[j],v={...R[x(185)]};I[x(185)](j,j,v)}}catch(L){console[x(158)](L)}})),a=p,c=!0},u.onsuccess=async function(d){const s=m;if(a=this[s(203)],c){const{stores:p=[]}=r;await Promise.all(p.map(async k=>{const h=s,{DBStoreName:x=""}=k,D=a[h(189)]([x],h(211)),z=D[h(166)](x),L={};L[r[h(192)]]=e,z.add(L);try{await new Promise((I,j)=>{const R=h;D[R(164)]=function(v){const g=R;console[g(196)](g(173),v),j()},D.oncomplete=function(v){I()},D.onerror=function(v){console.error(R(218),v),j()}})}catch(I){console[h(158)](h(178),I)}}))}l()},u[m(214)]=function(d){i(d)}})}catch(u){console.error(u,t(202))}return a};let Ne=!1;V[X(157)]=async(r,e)=>{const t=X,{mapDB:n,primaryKey:o}=r;return n?o?(Ne&&await new Promise(async(a,c)=>{const u=()=>{Ne?setTimeout(()=>{u()},200):a()};u()}),!le&&(Ne=!0,le=await Ar(n,o),le?.[t(207)]("close",async()=>{const a=t;console[a(217)](a(195)),le=await Ar(n,o)}),Ne=!1),e&&e(le),le):(console[t(158)](t(169)),!1):(console[t(158)]("必须传入数据库配置信息"),!1)},V[X(180)]=async(r,e)=>{const t=X,{mapDB:n,tableName:o,primaryKey:a}=r,c={};c[t(182)]=n,c.primaryKey=a;const u=await V[t(157)](c);if(!u)return;const l=u[t(189)]([o]),i=l[t(166)](o),m=i[t(159)](a);return new Promise((d,s)=>{const p=t;m[p(160)]=function(k){const h=p;e&&e(o+h(177)+m[h(203)]),d(m[h(203)])},m[p(214)]=function(k){console[p(196)](o+"事务失败"+k),s()}})},V.updateStore=async(r,e)=>{var t;const n=X,{mapDB:o,tableName:a,updateData:c}=r;!c[o?.[n(192)]]&&console.warn("请传入主键"+o[n(192)]);const u={};u[n(182)]=o,u[n(192)]=c[o?.[n(192)]];const l=await V[n(157)](u);if(!l)return;let i=null;try{i=l[n(189)]([a],n(211)).objectStore(a)}catch(p){console[n(196)](n(208),p)}let m=null,d=null;const s=await new Promise((p,k)=>{const h=n,x=i[h(184)](c[o?.primaryKey]);x[h(160)]=D=>{p(D)},x.onerror=D=>{k(D)}});d=(t=s?.[n(219)])==null?void 0:t.result;try{d&&d?.[n(192)]===c[o?.primaryKey]?m=d[n(204)](c):m=i[n(206)](c)}catch(p){console[n(196)](n(181),p,c)}new Promise((p,k)=>{const h=n;!m&&(console[h(196)](a+h(191)),k()),m[h(160)]=function(x){e&&e(a+h(163)),p()},m.onerror=function(x){console.error(a+h(171),x),k()}}),d&&d[n(190)]()},V[X(179)]=async(r,e)=>{const t=X,{mapDB:n,tableName:o,primaryKey:a}=r,c={};c[t(182)]=n,c[t(192)]=a;const u=await V.getDB(c);if(!u)return;const l=u[t(189)]([o],t(211))[t(166)](o)[t(167)](a);return new Promise((i,m)=>{const d=t;l[d(160)]=function(s){e&&e(o+d(200)),i()},l[d(214)]=function(s){console[d(196)](o+"数据删除失败"+s),m()}})},V[X(210)]=async(r,e)=>{const t=X,{mapDB:n}=r,o=window[t(161)].deleteDatabase(n[t(199)]);return new Promise((a,c)=>{const u=t;o[u(160)]=l=>{const i=u;e&&e(n[i(199)]+i(168)),a()},o.onerror=l=>{const i=u;console[i(196)](n[i(199)]+i(201)+l),c()}})};function oe(r,e){const t=Ce();return oe=function(n,o){return n=n-479,t[n]},oe(r,e)}function Ce(){const r=["10091907RRJBnT","error","926979tsCzBf","65jghYYS","2344zwfena","deleteStore","14121dQBbMP","primaryKey","231970jMEsEj","197214HCIGpK","handleData","517284tbkZGr","mapDB","tableName","updateStore","getDataByKey","638UAFuAy","warn","为空,请先调用handleData","getData","3xeZFTa","696974ymNsIY","updateData"];return Ce=function(){return r},Ce()}const qe=oe;(function(r,e){const t=oe,n=r();for(;;)try{if(-parseInt(t(485))/1*(-parseInt(t(486))/2)+-parseInt(t(490))/3+parseInt(t(499))/4+parseInt(t(491))/5*(-parseInt(t(497))/6)+-parseInt(t(488))/7+parseInt(t(492))/8*(parseInt(t(494))/9)+parseInt(t(496))/10*(parseInt(t(481))/11)===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(Ce,801934);async function sn(r,e){const t=oe,{tableName:n,propertiesKey:o,parameter:a,primaryKey:c,mapDB:u}=r;let l=null,i={[u.primaryKey]:c};const m={};m.mapDB=u,m[t(501)]=n,m[t(495)]=c;const d=await V.getDataByKey(m);d&&(i={...d,[u[t(495)]]:c}),i[o]=a;const s={};return s[t(500)]=u,s[t(501)]=n,s.updateData=i,await V.updateStore(s),a&&(l=a),e&&e(l),l}async function ln(r,e){const t=oe,{tableName:n,propertiesKey:o,primaryKey:a,mapDB:c}=r;let u=null;const l={};l[t(500)]=c,l.tableName=n,l[t(495)]=a;const i=await V[t(480)](l);return i&&(u=i[o]),e&&e(u),u}async function cn(r,e){const t=oe,{tableName:n,propertiesKey:o,parameter:a,primaryKey:c,mapDB:u}=r;let l={};const i={};i[t(500)]=u,i[t(501)]=n,i[t(495)]=c;const m=await V.getDataByKey(i);try{if(m){l={...m[o],...a};const d={[u[t(495)]]:c},s=d;s[o]=l;const p={};p.mapDB=u,p[t(501)]=n,p[t(487)]=s,await V[t(479)](p)}else console[t(482)](n+t(483))}catch(d){console.error(d)}return e&&e(l),l}async function dn(r,e){const t=oe,{tableName:n,primaryKey:o,mapDB:a}=r;let c=null;try{const u={};u[t(500)]=a,u[t(501)]=n,u[t(495)]=o,await V[t(493)](u)}catch(u){console[t(489)](u)}return e&&e(c),c}const ve={};ve[qe(498)]=sn,ve[qe(484)]=ln,ve[qe(487)]=cn,ve.clearData=dn;var Y=Ae;(function(r,e){for(var t=Ae,n=r();;)try{var o=parseInt(t(471))/1*(-parseInt(t(463))/2)+parseInt(t(478))/3+parseInt(t(459))/4*(-parseInt(t(477))/5)+parseInt(t(473))/6*(-parseInt(t(466))/7)+parseInt(t(458))/8*(parseInt(t(474))/9)+-parseInt(t(460))/10+-parseInt(t(461))/11*(-parseInt(t(472))/12);if(o===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(De,810026);var Ir={};Ir[Y(465)]=!1;var Ue={};Ue.createIndex=Ir,Ue.default={};var jr={};function De(){var r=["userId","queryParams","primaryKey","properties","1DxzTwl","6060FhtxUE","30pBpagl","9VVCqox","DBName","DBStoreName","5hVwTMu","1140096llouGa","DBVersion","stores","7072168MalhsQ","5157724OfTvCR","8714150lVOGng","54263OPTbpD","formParams","1566082zgwBVV","mapDB-indexeddb-form-schema","unique","1827unsERq"];return De=function(){return r},De()}jr[Y(468)]=Ue;var Ke={};Ke[Y(476)]=Y(462),Ke[Y(470)]=jr;var we={};function Ae(r,e){var t=De();return Ae=function(n,o){n=n-458;var a=t[n];return a},Ae(r,e)}we[Y(469)]=Y(467),we[Y(475)]=Y(464),we[Y(479)]=1,we[Y(480)]=[Ke];const un={formSchema:we},fn=ve,{handleData:mn,getData:Mr}=fn,{formSchema:We}=un,Ye=async(r,e)=>(e.parametersType==="url"&&(r={...be.queryToData(be.getURLParameter({decode:!0})),...r}),e.parametersType==="indexDB"&&(r={...await Mr({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:We}),...r}),r),He=async(r,e)=>{if(e.parametersType==="url"){const t=be.paramsToQuery({...r});window.location.href=`${window.location.origin}${window.location.pathname}?${new URLSearchParams(t)}`}e.parametersType==="indexDB"&&await mn({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",parameter:{...r},primaryKey:e.DBPrimaryKey||"default",mapDB:We})},Lr=async({queryParameter:r={},vm:e={},queryParams:t={}})=>{r.defaultPageFirst??(r.defaultPageFirst=!0);const n={[e.currentPageKey]:e.defCurrentPage};let o={...n,...t,...e.queryParams};o=await Ye(o,e),r.defaultPageFirst&&(o={...o,...n}),await He(o,e),e.getList({...o})},pn=async({vm:r={},dispatchQueryParams:e})=>{var t,n;(n=(t=r?.$refs)==null?void 0:t.queryFormRef)==null||n.resetFields();const o=await Ye({},r),a={[r.currentPageKey]:r.defCurrentPage,[r.pageSizeKey]:o?.[r.pageSizeKey]||r.defPageSize};if(await He(a,r),e&&e({data:{...a}}),r.queryParams&&(r.queryParams={...a}),r.afterReset(),r.handleQuery)r.handleQuery();else{if(r.parametersType==="url")return;Lr({vm:r})}},gn=({vm:r={},dispatchQueryParams:e})=>{let t={[r.pageSizeKey]:r.defPageSize};return r.parametersType==="url"&&(t={...t,...be.queryToData(be.getURLParameter({decode:!0}))}),r.parametersType==="indexDB"&&Mr({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:r.DBPrimaryKey||"default",mapDB:We},n=>{n&&(t={...t,...n},e&&e({data:{...t}}),r.queryParams&&(r.queryParams={...t})),r.queryWhenReady&&r.$nextTick(()=>{r.handleQuery({defaultPageFirst:!1})})}),r.queryWhenReady&&r.parametersType!=="indexDB"&&r.$nextTick(()=>{r.handleQuery({defaultPageFirst:!1})}),t},yn=({item:r={},vm:e={}})=>{const{type:t,rules:n=[]}=r,o=[...n];return e.noInputBlank&&t==="input"&&o.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),o},bn={makeParamsByType:Ye,saveParamsByType:He,handleQuery:Lr,resetQuery:pn,initQueryParams:gn,getItemRules:yn},xe=bn,hn={queryParams:{},message:{},formLoading:!1,dispatchQueryParams:()=>{},getList:()=>{}},Qe=C.createContext(hn);C.createContext(null);const vn=(r,e)=>{const{data:t}=e;return{...t}},zr={formItem:[],coms:{Button:[]},getList:()=>{},formData:{},loading:!1,afterReset:()=>{},noInputBlank:!1,currentPageKey:"page",pageSizeKey:"pageSize",parametersType:"url",defCurrentPage:1,DBPrimaryKey:null,defPageSize:10,queryWhenReady:!1},Br=r=>{const t={...zr,...r,handleQuery:v=>{xe.handleQuery({queryParameter:v,vm:{...zr,...r}})}},{formItem:n=[],children:o,coms:a,formData:c={},fieldGroupSetting:u={},loading:l=!1,queryWhenReady:i=!1}=t,{Button:m}=a,[d,s]=C.useState(!1),[p,k]=C.useState(!1),h=v=>{const g={...v};let _={};return n.forEach(A=>{A.prop&&(_[A.prop]=g[A.prop]||"")}),k(!0),_},[x,D]=C.useReducer(vn,c,h);C.useMemo(()=>{const v=xe.initQueryParams({vm:t,dispatchQueryParams:D});D({data:v})},[p]);const z=async(v,g)=>{let _={};for(const[A,ae]of Object.entries(x)){const G=n.find(J=>J.prop===A);if(G&&G.rules){const J=xe.getItemRules({item:G,vm:t});for(const q of J)try{if(q.required&&!ae)throw new Error(q.message||`${G.label}不能为空`);if(q.pattern&&!q.pattern.test(ae))throw new Error(q.message||`${G.label}格式不正确`);q.validator&&await new Promise((U,K)=>{const W=w=>{if(w){K(w);return}U()};q.validator(q,ae,W)})}catch(U){_[A]||(_[A]=[]),_[A].push({message:U.message||"校验失败"})}}}return Object.keys(_).length==0&&xe.handleQuery({queryParameter:{defaultPageFirst:!i},vm:{...t},queryParams:x}),{..._}},L=()=>{xe.resetQuery({vm:{...t,handleQuery:null},dispatchQueryParams:D})},[I,j,R]=C.useActionState(z,null);return C.useEffect(()=>{s(R)},[R]),C.useEffect(()=>{s(l)},[l]),C.useEffect(()=>{D({data:{...x,...c}})},[c]),P.jsx(Qe,{value:{...t,dispatchQueryParams:D,queryParams:x,message:I,formLoading:d},children:P.jsx("form",{action:j,children:P.jsxs(Xt,{...u,children:[n.map((v,g)=>{const _=C.useId();return P.jsxs(Dr,{"data-invalid":I?.[v.prop]&&I?.[v.prop].length>0,...v.fieldSetting,children:[P.jsx(Zt,{htmlFor:_,children:v.label}),/^input$/i.test(v.type)&&P.jsx(or,{id:_,coms:a,item:v}),/^form-list$/i.test(v.type)&&P.jsx(rt,{id:_,coms:a,item:v}),P.jsx(en,{errors:I?.[v.prop]||[]})]},v.prop)}),o,P.jsxs(Dr,{orientation:"horizontal",children:[P.jsxs(m,{disabled:d,type:"submit",children:[d?P.jsx(jt,{}):[],"提交"]}),P.jsx(m,{disabled:d,variant:"outline",type:"button",onClick:L,children:"重置"})]})]})})})};function wn(r){const e=H.c(10);let t,n,o;e[0]!==r?({className:t,type:o,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o):(t=e[1],n=e[2],o=e[3]);let a;e[4]!==t?(a=ne("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),e[4]=t,e[5]=a):a=e[5];let c;return e[6]!==n||e[7]!==a||e[8]!==o?(c=P.jsx("input",{type:o,"data-slot":"input",className:a,...n}),e[6]=n,e[7]=a,e[8]=o,e[9]=c):c=e[9],c}const xn=Er("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function kn(r){const e=H.c(14);let t,n,o,a,c;e[0]!==r?({className:t,variant:c,size:o,asChild:a,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o,e[4]=a,e[5]=c):(t=e[1],n=e[2],o=e[3],a=e[4],c=e[5]);const l=(a===void 0?!1:a)?$t:"button";let i;e[6]!==t||e[7]!==o||e[8]!==c?(i=ne(xn({variant:c,size:o,className:t})),e[6]=t,e[7]=o,e[8]=c,e[9]=i):i=e[9];let m;return e[10]!==l||e[11]!==n||e[12]!==i?(m=P.jsx(l,{"data-slot":"button",className:i,...n}),e[10]=l,e[11]=n,e[12]=i,e[13]=m):m=e[13],m}const _n=r=>{const e=H.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={Input:wn,Button:kn},e[0]=t):t=e[0];let n;return e[1]!==r?(n=P.jsx(Br,{...r,coms:t}),e[1]=r,e[2]=n):n=e[2],n},Sn=Br;re.RBasicForm=Sn,re.RGeneralBasicForm=_n,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "general-basic-form",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "cross-env CURRENT_ENV=prod run-p type-check build-only",
|
|
8
|
+
"build": "cross-env CURRENT_ENV=prod run-p type-check && run-p build-only",
|
|
9
9
|
"test:e2e": "playwright test",
|
|
10
10
|
"build-only": "vite build",
|
|
11
11
|
"type-check": "tsc --noEmit -p tsconfig.json --composite false",
|
|
12
|
-
"link": "tsx script/link.ts && yarn link",
|
|
13
|
-
"unlink": "tsx script/
|
|
12
|
+
"link": "tsx script/link.ts && yarn link && pnpm link",
|
|
13
|
+
"unlink": "tsx script/unlinkModule.ts && yarn unlink && pnpm unlink && run-p build",
|
|
14
|
+
"linkNode": "tsx script/linkNode.ts && yarn link && pnpm link && run-p dev",
|
|
15
|
+
"unlinkNode": "tsx script/unlinkNode.ts && yarn unlink && pnpm unlink && run-p buildts",
|
|
16
|
+
"dev": "tsc -w -p .",
|
|
17
|
+
"buildts": "rimraf dist && tsc -p .",
|
|
14
18
|
"unlinkSetting": "tsx script/unlink.ts"
|
|
15
19
|
},
|
|
16
20
|
"keywords": [
|
|
@@ -21,6 +25,7 @@
|
|
|
21
25
|
"vue3",
|
|
22
26
|
"element-plus",
|
|
23
27
|
"element-ui",
|
|
28
|
+
"react",
|
|
24
29
|
"Ant Design Vue"
|
|
25
30
|
],
|
|
26
31
|
"author": "chendeli419287484@qq.com",
|
|
@@ -30,36 +35,51 @@
|
|
|
30
35
|
"url": "git+https://github.com/Alan1034/GeneralBasicForm.git"
|
|
31
36
|
},
|
|
32
37
|
"devDependencies": {
|
|
33
|
-
"@playwright/test": "^1.
|
|
34
|
-
"@types/node": "^
|
|
35
|
-
"@
|
|
36
|
-
"@vitejs/plugin-
|
|
37
|
-
"@vitejs/plugin-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
38
|
+
"@playwright/test": "^1.56.0",
|
|
39
|
+
"@types/node": "^24.7.2",
|
|
40
|
+
"@types/react": "^19.2.2",
|
|
41
|
+
"@vitejs/plugin-legacy": "^7.2.1",
|
|
42
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
43
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
44
|
+
"chalk": "^5.6.2",
|
|
45
|
+
"cross-env": "^10.1.0",
|
|
46
|
+
"less": "^4.4.2",
|
|
41
47
|
"npm-run-all": "^4.1.5",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
48
|
+
"rimraf": "^6.0.1",
|
|
49
|
+
"sass-embedded": "^1.93.2",
|
|
50
|
+
"svgo": "^4.0.0",
|
|
51
|
+
"tsx": "^4.20.6",
|
|
52
|
+
"tw-animate-css": "^1.4.0",
|
|
53
|
+
"typescript": "^5.9.3",
|
|
54
|
+
"vite": "^7.1.9",
|
|
55
|
+
"vite-plugin-image-optimizer": "^2.0.2",
|
|
56
|
+
"vite-plugin-javascript-obfuscator": "^3.1.0"
|
|
45
57
|
},
|
|
46
58
|
"peerDependencies": {
|
|
47
|
-
"
|
|
48
|
-
"vue": ">=3.3.4",
|
|
49
|
-
"vue-router": ">=4.2.4"
|
|
59
|
+
"react": ">=19.0.0"
|
|
50
60
|
},
|
|
51
61
|
"typings": "./dist/index.d.ts",
|
|
52
62
|
"dependencies": {
|
|
53
63
|
"@element-plus/icons-vue": "^2.3.1",
|
|
54
|
-
"
|
|
64
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
65
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
66
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
67
|
+
"@tailwindcss/vite": "^4.1.16",
|
|
68
|
+
"class-variance-authority": "^0.7.1",
|
|
69
|
+
"clsx": "^2.1.1",
|
|
70
|
+
"lucide-react": "^0.547.0",
|
|
71
|
+
"network-spanner": "1.2.22",
|
|
72
|
+
"tailwind-merge": "^3.3.1",
|
|
73
|
+
"tailwindcss": "^4.1.16"
|
|
55
74
|
},
|
|
56
75
|
"module": "./dist/index.js",
|
|
57
76
|
"exports": {
|
|
58
77
|
".": {
|
|
78
|
+
"types": "./dist/index.d.ts",
|
|
59
79
|
"import": "./dist/index.js",
|
|
60
80
|
"require": "./dist/index.umd.cjs"
|
|
61
81
|
},
|
|
62
|
-
"./style": "./dist/
|
|
82
|
+
"./style": "./dist/index.css"
|
|
63
83
|
},
|
|
64
84
|
"files": [
|
|
65
85
|
"/dist"
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.input-graphic-verification[data-v-fb7aa300]{display:flex;gap:12px;width:100%}.input-graphic-verification .input[data-v-fb7aa300]{flex:auto}.input-graphic-verification .graphic[data-v-fb7aa300]{width:108px;height:43px;object-fit:fill;flex:none}.verifiaction-button[data-v-aa89c1b7]{width:109px}.list[data-v-3ff9d47e]{overflow:auto;padding:0;margin:0}.list .checkbox[data-v-3ff9d47e]{width:calc(100% - 32px);padding:0 16px}.tree-box[data-v-d9a75723]{display:flex}.tree-box .left-box[data-v-d9a75723]{width:45%}.tree-box .mid-box[data-v-d9a75723]{flex:auto;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly}.tree-box .mid-box .el-button[data-v-d9a75723]{margin:0}.tree-box .right-box[data-v-d9a75723]{width:45%}
|