iking-web-ui-pro 0.0.2 → 0.0.3

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.
Files changed (53) hide show
  1. package/dist/IKApprovalProcess/index.es.js +1 -1
  2. package/dist/IKApprovalProcess/index.umd.js +1 -1
  3. package/dist/IKApprovalProcess/style.css +1 -1
  4. package/dist/IKApprovalProcessDetail/style.css +1 -1
  5. package/dist/IKCalendar/index.es.js +1 -1
  6. package/dist/IKCalendar/index.umd.js +1 -1
  7. package/dist/IKCalendar/style.css +1 -1
  8. package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
  9. package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
  10. package/dist/IKDetailPreviewFiles/style.css +1 -1
  11. package/dist/IKExpandCollapse/index.es.js +143 -1323
  12. package/dist/IKExpandCollapse/index.umd.js +1 -1
  13. package/dist/IKExpandCollapse/style.css +1 -1
  14. package/dist/IKSearch/index.es.js +1 -1
  15. package/dist/IKSearch/index.umd.js +1 -1
  16. package/dist/IKSearch/style.css +1 -1
  17. package/dist/IKVerticalStepBar/index.es.js +190 -1370
  18. package/dist/IKVerticalStepBar/index.umd.js +3 -3
  19. package/dist/IKVerticalStepBar/style.css +1 -1
  20. package/dist/IkBaseDialog/index.es.js +234 -0
  21. package/dist/IkBaseDialog/index.umd.js +1 -0
  22. package/dist/IkBaseDialog/style.css +1 -0
  23. package/dist/IkBtnSetting/index.es.js +336 -1517
  24. package/dist/IkBtnSetting/index.umd.js +1 -1
  25. package/dist/IkBtnSetting/style.css +1 -1
  26. package/dist/IkIconPicker/index.es.js +2885 -1449
  27. package/dist/IkIconPicker/index.umd.js +5 -1
  28. package/dist/IkIconPicker/style.css +1 -1
  29. package/dist/IkPageFull/index.es.js +1678 -2859
  30. package/dist/IkPageFull/index.umd.js +3 -3
  31. package/dist/IkPageFull/style.css +1 -1
  32. package/dist/IkPicker/index.es.js +1 -1
  33. package/dist/IkPicker/index.umd.js +1 -1
  34. package/dist/IkPicker/style.css +1 -1
  35. package/dist/IkPickerUser/index.es.js +255 -237
  36. package/dist/IkPickerUser/index.umd.js +1 -1
  37. package/dist/IkPickerUser/style.css +1 -1
  38. package/dist/IkSchedule/index.es.js +2181 -3362
  39. package/dist/IkSchedule/index.umd.js +1 -1
  40. package/dist/IkSchedule/style.css +1 -1
  41. package/dist/IkSvgIcon/index.es.js +125 -1310
  42. package/dist/IkSvgIcon/index.umd.js +1 -1
  43. package/dist/IkUploadFile/index.es.js +955 -596
  44. package/dist/IkUploadFile/index.umd.js +1 -1
  45. package/dist/IkUploadFile/style.css +1 -1
  46. package/dist/IkUploadImage/index.es.js +113 -110
  47. package/dist/IkUploadImage/index.umd.js +1 -1
  48. package/dist/IkUploadImage/style.css +1 -1
  49. package/dist/index.es.js +12914 -11169
  50. package/dist/index.umd.js +10 -6
  51. package/dist/style.css +1 -1
  52. package/package.json +3 -3
  53. package/dist/IkSvgIcon/style.css +0 -1
@@ -1 +1 @@
1
- (function(S,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(S=typeof globalThis<"u"?globalThis:S||self,u(S.index={},S.Vue))})(this,function(S,u){"use strict";const Be=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},j=/^[a-z0-9]+(-[a-z0-9]+)*$/,_=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!O(a)?null:a}const i=o[0],s=i.split("-");if(s.length>1){const c={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!O(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return t&&!O(c,n)?null:c}return null},O=(e,t)=>e?!!((e.provider===""||e.provider.match(j))&&(t&&e.prefix===""||e.prefix.match(j))&&e.name.match(j)):!1,ne=Object.freeze({left:0,top:0,width:16,height:16}),B=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...ne,...B}),H=Object.freeze({...F,body:"",hidden:!1});function Fe(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function oe(e,t){const n=Fe(e,t);for(const r in H)r in B?r in e&&!(r in n)&&(n[r]=B[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Le(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const c=r[s]&&r[s].parent,l=c&&i(c);l&&(o[s]=[c].concat(l))}return o[s]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function Ae(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(c){i=oe(r[c]||o[c],i)}return s(t),n.forEach(s),oe(e,i)}function re(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Le(e);for(const o in r){const i=r[o];i&&(t(o,Ae(e,o,i)),n.push(o))}return n}const ze={provider:"",aliases:{},not_found:{},...ne};function R(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ie(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!R(e,ze))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(j)||typeof i.body!="string"||!R(i,H))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(j)||typeof s!="string"||!n[s]&&!r[s]||!R(i,H))return null}return t}const se=Object.create(null);function Ne(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function x(e,t){const n=se[e]||(se[e]=Object.create(null));return n[t]||(n[t]=Ne(e,t))}function V(e,t){return ie(t)?re(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function De(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let T=!1;function ce(e){return typeof e=="boolean"&&(T=e),T}function He(e){const t=typeof e=="string"?_(e,!0,T):e;if(t){const n=x(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Re(e,t){const n=_(e,!0,T);if(!n)return!1;const r=x(n.provider,n.prefix);return De(r,n.name,t)}function Ve(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),T&&!t&&!e.prefix){let o=!1;return ie(e)&&(e.prefix="",re(e,(i,s)=>{s&&Re(i,s)&&(o=!0)})),o}const n=e.prefix;if(!O({provider:t,prefix:n,name:"a"}))return!1;const r=x(t,n);return!!V(r,e)}const le=Object.freeze({width:null,height:null}),ae=Object.freeze({...le,...B}),$e=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split($e);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=qe.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?o.push(i):o.push(Math.ceil(c*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const Qe=e=>e==="unset"||e==="undefined"||e==="none";function Ue(e,t){const n={...F,...e},r={...ae,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(I=>{const h=[],d=I.hFlip,v=I.vFlip;let b=I.rotate;d?v?b+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):v&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let w;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:w=o.height/2+o.top,h.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,h.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}b%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const s=r.width,c=r.height,l=o.width,a=o.height;let f,p;s===null?(p=c===null?"1em":c==="auto"?a:c,f=fe(p,l/a)):(f=s==="auto"?l:s,p=c===null?fe(f,a/l):c==="auto"?a:c);const m={},y=(I,h)=>{Qe(h)||(m[I]=h.toString())};return y("width",f),y("height",p),m.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:m,body:i}}const We=/\sid="(\S+)"/g,Ke="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ge=0;function Je(e,t=Ke){const n=[];let r;for(;r=We.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Ge++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const $=Object.create(null);function Xe(e,t){$[e]=t}function q(e){return $[e]||$[""]}function Q(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const U=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],L=[];for(;E.length>0;)E.length===1||Math.random()>.5?L.push(E.shift()):L.push(E.pop());U[""]=Q({resources:["https://api.iconify.design"].concat(L)});function Ye(e,t){const n=Q(t);return n===null?!1:(U[e]=n,!0)}function W(e){return U[e]}let ue=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Ze(e,t){const n=W(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function et(e){return e===404}const tt=(e,t,n)=>{const r=[],o=Ze(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},c=l.length),s.icons.push(l)}),r.push(s),r};function nt(e){if(typeof e=="string"){const t=W(e);if(t)return t.path}return"/"}const ot={prepare:tt,send:(e,t,n)=>{if(!ue){n("abort",424);return}let r=nt(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;ue(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(et(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})}};function rt(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,c=o.name,l=n[i]||(n[i]=Object.create(null)),a=l[s]||(l[s]=x(i,s));let f;c in a.icons?f=t.loaded:s===""||a.missing.has(c)?f=t.missing:f=t.pending;const p={provider:i,prefix:s,name:c};f.push(p)}),t}function de(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function it(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])s.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))s.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),s.pending.length!==c&&(n||de([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let st=0;function ct(e,t,n){const r=st++,o=de.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function lt(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?_(o,t,n):o;i&&r.push(i)}),r}var at={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ft(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let g=e.resources.slice(0);for(s=[];g.length>1;){const k=Math.floor(Math.random()*g.length);s.push(g[k]),g=g.slice(0,k).concat(g.slice(k+1))}s=s.concat(g)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let l="pending",a=0,f,p=null,m=[],y=[];typeof r=="function"&&y.push(r);function I(){p&&(clearTimeout(p),p=null)}function h(){l==="pending"&&(l="aborted"),I(),m.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),m=[]}function d(g,k){k&&(y=[]),typeof g=="function"&&y.push(g)}function v(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:m.length,subscribe:d,abort:h}}function b(){l="failed",y.forEach(g=>{g(void 0,f)})}function w(){m.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),m=[]}function Nt(g,k,M){const D=k!=="success";switch(m=m.filter(C=>C!==g),l){case"pending":break;case"failed":if(D||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){f=M,b();return}if(D){f=M,m.length||(s.length?te():b());return}if(I(),w(),!e.random){const C=e.resources.indexOf(g.resource);C!==-1&&C!==e.index&&(e.index=C)}l="completed",y.forEach(C=>{C(M)})}function te(){if(l!=="pending")return;I();const g=s.shift();if(g===void 0){if(m.length){p=setTimeout(()=>{I(),l==="pending"&&(w(),b())},e.timeout);return}b();return}const k={status:"pending",resource:g,callback:(M,D)=>{Nt(k,M,D)}};m.push(k),a++,p=setTimeout(te,e.rotate),n(g,t,k.callback)}return setTimeout(te),v}function pe(e){const t={...at,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const f=ft(t,c,l,(p,m)=>{r(),a&&a(p,m)});return n.push(f),f}function i(c){return n.find(l=>c(l))||null}return{query:o,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function he(){}const K=Object.create(null);function ut(e){if(!K[e]){const t=W(e);if(!t)return;const n=pe(t),r={config:t,redundancy:n};K[e]=r}return K[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const i=q(e);if(!i)return n(void 0,424),he;o=i.send;const s=ut(e);s&&(r=s.redundancy)}else{const i=Q(e);if(i){r=pe(i);const s=e.resources?e.resources[0]:"",c=q(s);c&&(o=c.send)}}return!r||!o?(n(void 0,424),he):r.query(t,o,n)().abort}const ge="iconify2",P="iconify",me=P+"-count",ye=P+"-version",be=36e5,pt=168;function G(e,t){try{return e.getItem(t)}catch{}}function J(e,t,n){try{return e.setItem(t,n),!0}catch{}}function we(e,t){try{e.removeItem(t)}catch{}}function X(e,t){return J(e,me,t.toString())}function Y(e){return parseInt(G(e,me))||0}const A={local:!0,session:!0},Ie={local:new Set,session:new Set};let Z=!1;function ht(e){Z=e}let z=typeof window>"u"?{}:window;function ke(e){const t=e+"Storage";try{if(z&&z[t]&&typeof z[t].length=="number")return z[t]}catch{}A[e]=!1}function Se(e,t){const n=ke(e);if(!n)return;const r=G(n,ye);if(r!==ge){if(r){const c=Y(n);for(let l=0;l<c;l++)we(n,P+l.toString())}J(n,ye,ge),X(n,0);return}const o=Math.floor(Date.now()/be)-pt,i=c=>{const l=P+c.toString(),a=G(n,l);if(typeof a=="string"){try{const f=JSON.parse(a);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,c))return!0}catch{}we(n,l)}};let s=Y(n);for(let c=s-1;c>=0;c--)i(c)||(c===s-1?(s--,X(n,s)):Ie[e].add(c))}function xe(){if(!Z){ht(!0);for(const e in A)Se(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=x(r,o);if(!V(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function gt(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in A)Se(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function mt(e,t){Z||xe();function n(r){let o;if(!A[r]||!(o=ke(r)))return;const i=Ie[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Y(o),!X(o,s+1))return;const c={cached:Math.floor(Date.now()/be),provider:e.provider,data:t};return J(o,P+s.toString(),JSON.stringify(c))}t.lastModified&&!gt(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function ve(){}function yt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,it(e)}))}function bt(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=q(n)))return;i.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=V(e,l);if(!a.length)return;const f=e.pendingIcons;f&&a.forEach(p=>{f.delete(p)}),mt(e,l)}catch(a){console.error(a)}yt(e)})})}))}const wt=(e,t)=>{const n=lt(e,!0,ce()),r=rt(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,ve)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,c;return r.pending.forEach(l=>{const{provider:a,prefix:f}=l;if(f===c&&a===s)return;s=a,c=f,i.push(x(a,f));const p=o[a]||(o[a]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:f,name:p}=l,m=x(a,f),y=m.pendingIcons||(m.pendingIcons=new Set);y.has(p)||(y.add(p),o[a][f].push(p))}),i.forEach(l=>{const{provider:a,prefix:f}=l;o[a][f].length&&bt(l,o[a][f])}),t?ct(t,r,i):ve};function It(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in le?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const kt=/[\s,]+/;function St(e,t){t.split(kt).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function xt(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}function vt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Ct(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function jt(e){return"data:image/svg+xml,"+Ct(e)}function Tt(e){return'url("'+jt(e)+'")'}const Ce={...ae,inline:!1},Et={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pt={display:"inline-block"},ee={backgroundColor:"currentColor"},je={backgroundColor:"transparent"},Te={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ee={webkitMask:ee,mask:ee,background:je};for(const e in Ee){const t=Ee[e];for(const n in Te)t[e+n]=Te[n]}const N={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";N[e+"-flip"]=t,N[e.slice(0,1)+"-flip"]=t,N[e+"Flip"]=t});function Pe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Me=(e,t)=>{const n=It(Ce,t),r={...Et},o=t.mode||"svg",i={},s=t.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let h in t){const d=t[h];if(d!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[h]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&St(n,d);break;case"color":i.color=d;break;case"rotate":typeof d=="string"?n[h]=xt(d):typeof d=="number"&&(n[h]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete r["aria-hidden"];break;default:{const v=N[h];v?(d===!0||d==="true"||d===1)&&(n[v]=!0):Ce[h]===void 0&&(r[h]=d)}}}const l=Ue(e,n),a=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...c},Object.assign(r,a);let h=0,d=t.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),r.innerHTML=Je(l.body,d?()=>d+"ID"+h++:"iconifyVue"),u.h("svg",r)}const{body:f,width:p,height:m}=e,y=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),I=vt(f,{...a,width:p+"",height:m+""});return r.style={...i,"--svg":Tt(I),width:Pe(a.width),height:Pe(a.height),...Pt,...y?ee:je,...c},u.h("span",r)};if(ce(!0),Xe("",ot),typeof document<"u"&&typeof window<"u"){xe();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Ve(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Ye(n,o)||console.error(r)}catch{console.error(r)}}}}const Mt={...F,body:""},_e=u.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=_(e,!1,!0))===null)return this.abortLoading(),null;const r=He(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:wt([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return Me(Mt,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Me({...F,...t.data},n)}}),_t={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},Ot=["xlink:href"],Bt=["src"],Ft={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},Lt=["xlink:href"],At=["src"],zt=u.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(e){const t=e,n=u.computed(()=>{var i;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(i=t.name)!=null&&i.includes(":")?"iconify":"svg"}),r=u.computed(()=>{const i=[];if(t.flip)switch(t.flip){case"horizontal":i.push("rotateY(180deg)");break;case"vertical":i.push("rotateX(180deg)");break;case"both":i.push("rotateX(180deg)"),i.push("rotateY(180deg)");break}return t.rotate&&i.push(`rotate(${t.rotate%360}deg)`),{...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...i.length&&{transform:i.join(" ")},padding:t.padding}}),o=u.computed(()=>document.body.getAttribute("data-theme")==="dark");return(i,s)=>{const c=u.resolveComponent("el-tooltip");return i.notip||!i.title?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[i.name]:n.value==="unocss","show-bg":i.showBg||i.bg,default:i.size==="default",small:i.size==="small",big:i.size==="big",warning:i.warning}]),style:u.normalizeStyle(r.value)},[n.value==="iconify"?(u.openBlock(),u.createBlock(u.unref(_e),{key:0,icon:i.name},null,8,["icon"])):n.value==="svg"?(u.openBlock(),u.createElementBlock("svg",_t,[u.createElementVNode("use",{"xlink:href":`#${i.name}`},null,8,Ot)])):n.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:i.name,class:"basicHeight basicWidth"},null,8,Bt)):u.createCommentVNode("v-if",!0)],6)):(u.openBlock(),u.createBlock(c,{key:1,effect:o.value?"dark":"light",content:i.title},{default:u.withCtx(()=>[u.createElementVNode("i",u.mergeProps({class:["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[i.name]:n.value==="unocss","show-bg":i.showBg||i.bg,default:i.size==="default",small:i.size==="small",big:i.size==="big",warning:i.warning}],style:r.value},i.$attrs),[n.value==="iconify"?(u.openBlock(),u.createBlock(u.unref(_e),{key:0,icon:i.name},null,8,["icon"])):n.value==="svg"?(u.openBlock(),u.createElementBlock("svg",Ft,[u.createElementVNode("use",{"xlink:href":`#${i.name}`},null,8,Lt)])):n.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:i.name,class:"basicHeight basicWidth"},null,8,At)):u.createCommentVNode("v-if",!0)],16)]),_:1},8,["effect","content"]))}}}),Rt="",Oe=Be(((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(zt,[["__scopeId","data-v-1957ff53"]]));S.IkSvgIcon=Oe,S.default=Oe,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.Vue,i["iking-utils"]))})(this,function(i,e,r){"use strict";const c=(s,t)=>{if(s.install=l=>{for(const o of[s,...Object.values(t??{})])l.component(o.name,o)},t)for(const[l,o]of Object.entries(t))s[l]=o;return s},m={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},f={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},d=["xlink:href"],k=["src"],p={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},g=["xlink:href"],u=["src"],a=c(e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(s){const t=s,l=e.computed(()=>{var n;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":t.name.startsWith("iksig")?"iksig":(n=t.name)!=null&&n.includes(":")?"iconify":"svg"}),o=e.computed(()=>{const n=[];if(t.flip)switch(t.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}return t.rotate&&n.push(`rotate(${t.rotate%360}deg)`),{...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...n.length&&{transform:n.join(" ")},padding:t.padding,...t.color&&l.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":r.ikColor.setOpacity(t.color,t.opacity||.4)}:{}}});return(n,B)=>{const h=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("span",m,[n.notip||!n.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[n.name]:l.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning}]),style:e.normalizeStyle(o.value)},[l.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(o.value)},null,6)):l.value==="svg"?(e.openBlock(),e.createElementBlock("svg",f,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,d)])):l.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,k)):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(h,{key:1,content:n.title},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[n.name]:l.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning}]),style:e.normalizeStyle(o.value)},[l.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(o.value)},null,6)):l.value==="svg"?(e.openBlock(),e.createElementBlock("svg",p,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,g)])):l.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,u)):e.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}}));i.IkSvgIcon=a,i.default=a,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});