import{_ as ne}from"./notData-cf10628e.js";import{d as le,r as ae,b as re,a4 as se,c as f,e as g,f as S,h as i,i as d,g as m,l as E,t as U,x as ie,F as ue,j as de,k as T,p as ce,q as fe,s as pe,_ as me}from"./index-ccab2584.js";const R="3.7.5",_e=R,be=typeof atob=="function",xe=typeof btoa=="function",b=typeof Buffer=="function",w=typeof TextDecoder=="function"?new TextDecoder:void 0,I=typeof TextEncoder=="function"?new TextEncoder:void 0,he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",x=Array.prototype.slice.call(he),A=(e=>{let t={};return e.forEach((o,a)=>t[o]=a),t})(x),ye=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,l=String.fromCharCode.bind(String),N=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),z=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),O=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),P=e=>{let t,o,a,c,r="";const n=e.length%3;for(let s=0;s255||(a=e.charCodeAt(s++))>255||(c=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=o<<16|a<<8|c,r+=x[t>>18&63]+x[t>>12&63]+x[t>>6&63]+x[t&63]}return n?r.slice(0,n-3)+"===".substring(n):r},F=xe?e=>btoa(e):b?e=>Buffer.from(e,"binary").toString("base64"):P,v=b?e=>Buffer.from(e).toString("base64"):e=>{let o=[];for(let a=0,c=e.length;at?z(v(e)):v(e),ge=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?l(192|t>>>6)+l(128|t&63):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|t&63)}},Ae=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,j=e=>e.replace(Ae,ge),k=b?e=>Buffer.from(e,"utf8").toString("base64"):I?e=>v(I.encode(e)):e=>F(j(e)),_=(e,t=!1)=>t?z(k(e)):k(e),L=e=>_(e,!0),Be=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ue=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),o=t-65536;return l((o>>>10)+55296)+l((o&1023)+56320);case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Z=e=>e.replace(Be,Ue),$=e=>{if(e=e.replace(/\s+/g,""),!ye.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,o="",a,c;for(let r=0;r>16&255):c===64?l(t>>16&255,t>>8&255):l(t>>16&255,t>>8&255,t&255);return o},V=be?e=>atob(O(e)):b?e=>Buffer.from(e,"base64").toString("binary"):$,M=b?e=>N(Buffer.from(e,"base64")):e=>N(V(e).split("").map(t=>t.charCodeAt(0))),q=e=>M(G(e)),ve=b?e=>Buffer.from(e,"base64").toString("utf8"):w?e=>w.decode(M(e)):e=>Z(V(e)),G=e=>O(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),C=e=>ve(G(e)),Ce=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},H=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),J=function(){const e=(t,o)=>Object.defineProperty(String.prototype,t,H(o));e("fromBase64",function(){return C(this)}),e("toBase64",function(t){return _(this,t)}),e("toBase64URI",function(){return _(this,!0)}),e("toBase64URL",function(){return _(this,!0)}),e("toUint8Array",function(){return q(this)})},K=function(){const e=(t,o)=>Object.defineProperty(Uint8Array.prototype,t,H(o));e("toBase64",function(t){return B(this,t)}),e("toBase64URI",function(){return B(this,!0)}),e("toBase64URL",function(){return B(this,!0)})},Fe=()=>{J(),K()},Ve={version:R,VERSION:_e,atob:V,atobPolyfill:$,btoa:F,btoaPolyfill:P,fromBase64:C,toBase64:_,encode:_,encodeURI:L,encodeURL:L,utob:j,btou:Z,decode:C,isValid:Ce,fromUint8Array:B,toUint8Array:q,extendString:J,extendUint8Array:K,extendBuiltins:Fe},Q=e=>(fe("data-v-dd02b3df"),e=e(),pe(),e),De={class:"unit-table"},Se={class:"position"},Ee={class:"divide"},Te={class:"ellipsisText"},we={class:"table-empty"},Ie=Q(()=>m("img",{src:ne,alt:"notData"},null,-1)),Ne=Q(()=>m("div",null,"\u6682\u65E0\u6570\u636E",-1)),ke=le({__name:"unit-table",props:{divide:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const o="http://47.104.132.250:9000",a="http://182.90.224.147:8012/onlinePreview?url=",c=n=>{let s=n.licenseImageOriginalName.split(".");s[1];const h=Ve.encode(o+"/xmgl/file/preview?fileUrl="+n.licenseImage+"&fullfilename=123."+s[1]);window.open(a+h)},r=ae([]);return re(async()=>{const n=await se({dictType:"enterprise_license"});r.value=n.result}),(n,s)=>{const h=f("el-input"),D=f("el-form-item"),W=f("el-form"),X=f("el-tag"),y=f("el-table-column"),Y=f("el-option"),ee=f("el-select"),te=f("el-button"),oe=f("el-table");return g(),S("div",De,[i(W,{inline:!0,disabled:"",model:n.modelValue,class:"form"},{default:d(()=>[i(D,{class:"form-item",label:"\u4F01\u4E1A\u8D1F\u8D23\u4EBA",prop:"leadName"},{default:d(()=>[i(h,{style:{width:"83%"},placeholder:"\u8BF7\u8F93\u5165",modelValue:n.modelValue.leadName,"onUpdate:modelValue":s[0]||(s[0]=u=>n.modelValue.leadName=u)},null,8,["modelValue"])]),_:1}),i(D,{class:"form-item",label:"\u624B\u673A\u53F7\u7801",prop:"leadTel"},{default:d(()=>[i(h,{style:{width:"83%"},placeholder:"\u8BF7\u8F93\u5165",modelValue:n.modelValue.leadTel,"onUpdate:modelValue":s[1]||(s[1]=u=>n.modelValue.leadTel=u)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),m("div",Se,[m("div",Ee,[i(X,{class:"index",type:"info"},{default:d(()=>[E(U(n.divide.index),1)]),_:1}),E(" "+U(n.modelValue.mainTypeName)+" ",1)]),i(oe,{class:"table",data:n.modelValue.licenses,border:"",disabeld:"",style:{width:"100%"},height:"150","max-height":"360","header-cell-style":{backgroundColor:"#e1eeff",textAlign:"center"},"cell-style":{textAlign:"center"}},{empty:d(()=>[m("div",we,[ie(n.$slots,"empty",{},()=>[Ie,Ne],!0)])]),default:d(()=>[i(y,{label:"\u8D44\u8D28\u7F16\u53F7",prop:"licenseCode"}),i(y,{"class-name":"single-substr",label:"\u8D44\u8D28\u540D\u79F0",prop:"licenseName"}),i(y,{label:"\u8D44\u8D28\u7B49\u7EA7",prop:"licenseLevel"},{default:d(({row:u})=>[i(ee,{disabled:"",modelValue:u.licenseLevel,"onUpdate:modelValue":p=>u.licenseLevel=p,size:"small",placeholder:"\u8BF7\u9009\u62E9"},{default:d(()=>[(g(!0),S(ue,null,de(r.value,p=>(g(),T(Y,{key:p.dictLabel,label:p.dictValue,value:p.dictLabel},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),i(y,{"class-name":"single-substr",label:"\u8D44\u8D28\u9644\u4EF6",prop:"licenseImage"},{default:d(({row:u})=>[u.licenseImageOriginalName?(g(),T(te,{key:0,type:"primary",link:"",plain:"",onClick:p=>c(u),size:"small"},{default:d(()=>[m("span",Te,U(u.licenseImageOriginalName),1)]),_:2},1032,["onClick"])):ce("",!0)]),_:1})]),_:3},8,["data"])])])}}});const Le=me(ke,[["__scopeId","data-v-dd02b3df"]]),Oe=Object.freeze(Object.defineProperty({__proto__:null,default:Le},Symbol.toStringTag,{value:"Module"}));export{Le as U,Ve as g,Oe as u};