@weni/unnnic-system 2.8.1 → 2.8.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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 2.8.2 (2024-08-21)
9
+
10
+ ### Added
11
+
12
+ - Add new iconFilled property to sideBarItem component
13
+
8
14
  ## 2.8.1 (2024-08-20)
9
15
 
10
16
  ### Added
package/dist/unnnic.mjs CHANGED
@@ -11546,6 +11546,10 @@ const OO = {
11546
11546
  type: String,
11547
11547
  default: null
11548
11548
  },
11549
+ iconFilled: {
11550
+ type: Boolean,
11551
+ default: !1
11552
+ },
11549
11553
  text: {
11550
11554
  type: String,
11551
11555
  default: null
@@ -11585,8 +11589,9 @@ function FO(e, i, n, s, r, o) {
11585
11589
  class: "unnnic-side-bar-item__icon",
11586
11590
  scheme: n.active ? "brand-weni-soft" : "neutral-cloudy",
11587
11591
  size: "sm",
11588
- icon: n.icon
11589
- }, null, 8, ["scheme", "icon"]),
11592
+ icon: n.icon,
11593
+ filled: n.iconFilled
11594
+ }, null, 8, ["scheme", "icon", "filled"]),
11590
11595
  f("span", VO, [
11591
11596
  e1(b(n.text) + " ", 1),
11592
11597
  J(e.$slots, "default")
@@ -34,7 +34,7 @@ function print() { __p += __j.call(arguments, '') }
34
34
  `:`;
35
35
  `)+S+`return __p
36
36
  }`;var $=s4(function(){return ce(g,F+"return "+S).apply(i,k)});if($.source=S,G0($))throw $;return $}function mR(a){return fe(a).toLowerCase()}function hR(a){return fe(a).toUpperCase()}function pR(a,o,d){if(a=fe(a),a&&(d||o===i))return pr(a);if(!a||!(o=i1(o)))return a;var f=A1(a),h=A1(o),g=yr(f,h),k=gr(f,h)+1;return Cn(f,g,k).join("")}function yR(a,o,d){if(a=fe(a),a&&(d||o===i))return a.slice(0,_r(a)+1);if(!a||!(o=i1(o)))return a;var f=A1(a),h=gr(f,A1(o))+1;return Cn(f,0,h).join("")}function gR(a,o,d){if(a=fe(a),a&&(d||o===i))return a.replace(Ga,"");if(!a||!(o=i1(o)))return a;var f=A1(a),h=yr(f,A1(o));return Cn(f,h).join("")}function wR(a,o){var d=Bn,f=Ha;if(ve(o)){var h="separator"in o?o.separator:h;d="length"in o?K(o.length):d,f="omission"in o?i1(o.omission):f}a=fe(a);var g=a.length;if(oi(a)){var k=A1(a);g=k.length}if(d>=g)return a;var C=d-si(f);if(C<1)return f;var x=k?Cn(k,0,C).join(""):a.slice(0,C);if(h===i)return x+f;if(k&&(C+=x.length-C),X0(h)){if(a.slice(C).search(h)){var N,L=x;for(h.global||(h=u0(h.source,fe(js.exec(h))+"g")),h.lastIndex=0;N=h.exec(L);)var S=N.index;x=x.slice(0,S===i?C:S)}}else if(a.indexOf(i1(h),C)!=C){var H=x.lastIndexOf(h);H>-1&&(x=x.slice(0,H))}return x+f}function _R(a){return a=fe(a),a&&LI.test(a)?a.replace(Ts,qO):a}var kR=mi(function(a,o,d){return a+(d?" ":"")+o.toUpperCase()}),$0=r5("toUpperCase");function o4(a,o,d){return a=fe(a),o=d?i:o,o===i?YO(a)?JO(a):TO(a):a.match(o)||[]}var s4=ee(function(a,o){try{return e1(a,i,o)}catch(d){return G0(d)?d:new G(d)}}),CR=tn(function(a,o){return f1(o,function(d){d=O1(d),en(a,d,Q0(a[d],a))}),a});function vR(a){var o=a==null?0:a.length,d=R();return a=o?Ce(a,function(f){if(typeof f[1]!="function")throw new u1(c);return[d(f[0]),f[1]]}):[],ee(function(f){for(var h=-1;++h<o;){var g=a[h];if(e1(g[0],this,f))return e1(g[1],this,f)}})}function xR(a){return qF(h1(a,M))}function e3(a){return function(){return a}}function bR(a,o){return a==null||a!==a?o:a}var MR=d5(),DR=d5(!0);function Ke(a){return a}function n3(a){return Or(typeof a=="function"?a:h1(a,M))}function AR(a){return Ur(h1(a,M))}function BR(a,o){return Pr(a,h1(o,M))}var NR=ee(function(a,o){return function(d){return Gi(d,a,o)}}),LR=ee(function(a,o){return function(d){return Gi(a,d,o)}});function i3(a,o,d){var f=Te(o),h=yt(o,f);d==null&&!(ve(o)&&(h.length||!f.length))&&(d=o,o=a,a=this,h=yt(o,Te(o)));var g=!(ve(d)&&"chain"in d)||!!d.chain,k=on(a);return f1(h,function(C){var x=o[C];a[C]=x,k&&(a.prototype[C]=function(){var N=this.__chain__;if(g||N){var L=a(this.__wrapped__),S=L.__actions__=Ge(this.__actions__);return S.push({func:x,args:arguments,thisArg:a}),L.__chain__=N,L}return x.apply(a,pn([this.value()],arguments))})}),a}function ER(){return He._===this&&(He._=tF),this}function t3(){}function SR(a){return a=K(a),ee(function(o){return Yr(o,a)})}var zR=T0(Ce),TR=T0(cr),VR=T0(o0);function r4(a){return U0(a)?s0(O1(a)):fU(a)}function HR(a){return function(o){return a==null?i:Vn(a,o)}}var jR=f5(),IR=f5(!0);function a3(){return[]}function o3(){return!1}function OR(){return{}}function FR(){return""}function UR(){return!0}function PR(a,o){if(a=K(a),a<1||a>mn)return[];var d=H1,f=Ue(a,H1);o=R(o),a-=H1;for(var h=d0(f,o);++d<a;)o(d);return h}function YR(a){return X(a)?Ce(a,O1):t1(a)?[a]:Ge(A5(fe(a)))}function ZR(a){var o=++nF;return fe(a)+o}var RR=vt(function(a,o){return a+o},0),WR=V0("ceil"),QR=vt(function(a,o){return a/o},1),qR=V0("floor");function GR(a){return a&&a.length?pt(a,Ke,k0):i}function XR(a,o){return a&&a.length?pt(a,R(o,2),k0):i}function JR(a){return mr(a,Ke)}function KR(a,o){return mr(a,R(o,2))}function $R(a){return a&&a.length?pt(a,Ke,b0):i}function eW(a,o){return a&&a.length?pt(a,R(o,2),b0):i}var nW=vt(function(a,o){return a*o},1),iW=V0("round"),tW=vt(function(a,o){return a-o},0);function aW(a){return a&&a.length?l0(a,Ke):0}function oW(a,o){return a&&a.length?l0(a,R(o,2)):0}return p.after=AY,p.ary=I5,p.assign=hZ,p.assignIn=K5,p.assignInWith=Vt,p.assignWith=pZ,p.at=yZ,p.before=O5,p.bind=Q0,p.bindAll=CR,p.bindKey=F5,p.castArray=OY,p.chain=V5,p.chunk=qU,p.compact=GU,p.concat=XU,p.cond=vR,p.conforms=xR,p.constant=e3,p.countBy=aY,p.create=gZ,p.curry=U5,p.curryRight=P5,p.debounce=Y5,p.defaults=wZ,p.defaultsDeep=_Z,p.defer=BY,p.delay=NY,p.difference=JU,p.differenceBy=KU,p.differenceWith=$U,p.drop=eP,p.dropRight=nP,p.dropRightWhile=iP,p.dropWhile=tP,p.fill=aP,p.filter=sY,p.flatMap=dY,p.flatMapDeep=cY,p.flatMapDepth=fY,p.flatten=E5,p.flattenDeep=oP,p.flattenDepth=sP,p.flip=LY,p.flow=MR,p.flowRight=DR,p.fromPairs=rP,p.functions=DZ,p.functionsIn=AZ,p.groupBy=uY,p.initial=dP,p.intersection=cP,p.intersectionBy=fP,p.intersectionWith=uP,p.invert=NZ,p.invertBy=LZ,p.invokeMap=hY,p.iteratee=n3,p.keyBy=pY,p.keys=Te,p.keysIn=Je,p.map=Nt,p.mapKeys=SZ,p.mapValues=zZ,p.matches=AR,p.matchesProperty=BR,p.memoize=Et,p.merge=TZ,p.mergeWith=$5,p.method=NR,p.methodOf=LR,p.mixin=i3,p.negate=St,p.nthArg=SR,p.omit=VZ,p.omitBy=HZ,p.once=EY,p.orderBy=yY,p.over=zR,p.overArgs=SY,p.overEvery=TR,p.overSome=VR,p.partial=q0,p.partialRight=Z5,p.partition=gY,p.pick=jZ,p.pickBy=e4,p.property=r4,p.propertyOf=HR,p.pull=yP,p.pullAll=z5,p.pullAllBy=gP,p.pullAllWith=wP,p.pullAt=_P,p.range=jR,p.rangeRight=IR,p.rearg=zY,p.reject=kY,p.remove=kP,p.rest=TY,p.reverse=R0,p.sampleSize=vY,p.set=OZ,p.setWith=FZ,p.shuffle=xY,p.slice=CP,p.sortBy=DY,p.sortedUniq=BP,p.sortedUniqBy=NP,p.split=dR,p.spread=VY,p.tail=LP,p.take=EP,p.takeRight=SP,p.takeRightWhile=zP,p.takeWhile=TP,p.tap=GP,p.throttle=HY,p.thru=Bt,p.toArray=G5,p.toPairs=n4,p.toPairsIn=i4,p.toPath=YR,p.toPlainObject=J5,p.transform=UZ,p.unary=jY,p.union=VP,p.unionBy=HP,p.unionWith=jP,p.uniq=IP,p.uniqBy=OP,p.uniqWith=FP,p.unset=PZ,p.unzip=W0,p.unzipWith=T5,p.update=YZ,p.updateWith=ZZ,p.values=yi,p.valuesIn=RZ,p.without=UP,p.words=o4,p.wrap=IY,p.xor=PP,p.xorBy=YP,p.xorWith=ZP,p.zip=RP,p.zipObject=WP,p.zipObjectDeep=QP,p.zipWith=qP,p.entries=n4,p.entriesIn=i4,p.extend=K5,p.extendWith=Vt,i3(p,p),p.add=RR,p.attempt=s4,p.camelCase=GZ,p.capitalize=t4,p.ceil=WR,p.clamp=WZ,p.clone=FY,p.cloneDeep=PY,p.cloneDeepWith=YY,p.cloneWith=UY,p.conformsTo=ZY,p.deburr=a4,p.defaultTo=bR,p.divide=QR,p.endsWith=XZ,p.eq=N1,p.escape=JZ,p.escapeRegExp=KZ,p.every=oY,p.find=rY,p.findIndex=N5,p.findKey=kZ,p.findLast=lY,p.findLastIndex=L5,p.findLastKey=CZ,p.floor=qR,p.forEach=H5,p.forEachRight=j5,p.forIn=vZ,p.forInRight=xZ,p.forOwn=bZ,p.forOwnRight=MZ,p.get=J0,p.gt=RY,p.gte=WY,p.has=BZ,p.hasIn=K0,p.head=S5,p.identity=Ke,p.includes=mY,p.indexOf=lP,p.inRange=QZ,p.invoke=EZ,p.isArguments=In,p.isArray=X,p.isArrayBuffer=QY,p.isArrayLike=Xe,p.isArrayLikeObject=Me,p.isBoolean=qY,p.isBuffer=vn,p.isDate=GY,p.isElement=XY,p.isEmpty=JY,p.isEqual=KY,p.isEqualWith=$Y,p.isError=G0,p.isFinite=eZ,p.isFunction=on,p.isInteger=R5,p.isLength=zt,p.isMap=W5,p.isMatch=nZ,p.isMatchWith=iZ,p.isNaN=tZ,p.isNative=aZ,p.isNil=sZ,p.isNull=oZ,p.isNumber=Q5,p.isObject=ve,p.isObjectLike=xe,p.isPlainObject=n2,p.isRegExp=X0,p.isSafeInteger=rZ,p.isSet=q5,p.isString=Tt,p.isSymbol=t1,p.isTypedArray=pi,p.isUndefined=lZ,p.isWeakMap=dZ,p.isWeakSet=cZ,p.join=mP,p.kebabCase=$Z,p.last=y1,p.lastIndexOf=hP,p.lowerCase=eR,p.lowerFirst=nR,p.lt=fZ,p.lte=uZ,p.max=GR,p.maxBy=XR,p.mean=JR,p.meanBy=KR,p.min=$R,p.minBy=eW,p.stubArray=a3,p.stubFalse=o3,p.stubObject=OR,p.stubString=FR,p.stubTrue=UR,p.multiply=nW,p.nth=pP,p.noConflict=ER,p.noop=t3,p.now=Lt,p.pad=iR,p.padEnd=tR,p.padStart=aR,p.parseInt=oR,p.random=qZ,p.reduce=wY,p.reduceRight=_Y,p.repeat=sR,p.replace=rR,p.result=IZ,p.round=iW,p.runInContext=v,p.sample=CY,p.size=bY,p.snakeCase=lR,p.some=MY,p.sortedIndex=vP,p.sortedIndexBy=xP,p.sortedIndexOf=bP,p.sortedLastIndex=MP,p.sortedLastIndexBy=DP,p.sortedLastIndexOf=AP,p.startCase=cR,p.startsWith=fR,p.subtract=tW,p.sum=aW,p.sumBy=oW,p.template=uR,p.times=PR,p.toFinite=sn,p.toInteger=K,p.toLength=X5,p.toLower=mR,p.toNumber=g1,p.toSafeInteger=mZ,p.toString=fe,p.toUpper=hR,p.trim=pR,p.trimEnd=yR,p.trimStart=gR,p.truncate=wR,p.unescape=_R,p.uniqueId=ZR,p.upperCase=kR,p.upperFirst=$0,p.each=H5,p.eachRight=j5,p.first=S5,i3(p,function(){var a={};return j1(p,function(o,d){me.call(p.prototype,d)||(a[d]=o)}),a}(),{chain:!1}),p.VERSION=s,f1(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){p[a].placeholder=p}),f1(["drop","take"],function(a,o){ae.prototype[a]=function(d){d=d===i?1:Ee(K(d),0);var f=this.__filtered__&&!o?new ae(this):this.clone();return f.__filtered__?f.__takeCount__=Ue(d,f.__takeCount__):f.__views__.push({size:Ue(d,H1),type:a+(f.__dir__<0?"Right":"")}),f},ae.prototype[a+"Right"]=function(d){return this.reverse()[a](d).reverse()}}),f1(["filter","map","takeWhile"],function(a,o){var d=o+1,f=d==P2||d==yI;ae.prototype[a]=function(h){var g=this.clone();return g.__iteratees__.push({iteratee:R(h,3),type:d}),g.__filtered__=g.__filtered__||f,g}}),f1(["head","last"],function(a,o){var d="take"+(o?"Right":"");ae.prototype[a]=function(){return this[d](1).value()[0]}}),f1(["initial","tail"],function(a,o){var d="drop"+(o?"":"Right");ae.prototype[a]=function(){return this.__filtered__?new ae(this):this[d](1)}}),ae.prototype.compact=function(){return this.filter(Ke)},ae.prototype.find=function(a){return this.filter(a).head()},ae.prototype.findLast=function(a){return this.reverse().find(a)},ae.prototype.invokeMap=ee(function(a,o){return typeof a=="function"?new ae(this):this.map(function(d){return Gi(d,a,o)})}),ae.prototype.reject=function(a){return this.filter(St(R(a)))},ae.prototype.slice=function(a,o){a=K(a);var d=this;return d.__filtered__&&(a>0||o<0)?new ae(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),o!==i&&(o=K(o),d=o<0?d.dropRight(-o):d.take(o-a)),d)},ae.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},ae.prototype.toArray=function(){return this.take(H1)},j1(ae.prototype,function(a,o){var d=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),h=p[f?"take"+(o=="last"?"Right":""):o],g=f||/^find/.test(o);h&&(p.prototype[o]=function(){var k=this.__wrapped__,C=f?[1]:arguments,x=k instanceof ae,N=C[0],L=x||X(k),S=function(ie){var oe=h.apply(p,pn([ie],C));return f&&H?oe[0]:oe};L&&d&&typeof N=="function"&&N.length!=1&&(x=L=!1);var H=this.__chain__,F=!!this.__actions__.length,W=g&&!H,$=x&&!F;if(!g&&L){k=$?k:new ae(this);var Q=a.apply(k,C);return Q.__actions__.push({func:Bt,args:[S],thisArg:i}),new m1(Q,H)}return W&&$?a.apply(this,C):(Q=this.thru(S),W?f?Q.value()[0]:Q.value():Q)})}),f1(["pop","push","shift","sort","splice","unshift"],function(a){var o=et[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",f=/^(?:pop|shift)$/.test(a);p.prototype[a]=function(){var h=arguments;if(f&&!this.__chain__){var g=this.value();return o.apply(X(g)?g:[],h)}return this[d](function(k){return o.apply(X(k)?k:[],h)})}}),j1(ae.prototype,function(a,o){var d=p[o];if(d){var f=d.name+"";me.call(ci,f)||(ci[f]=[]),ci[f].push({name:o,func:d})}}),ci[Ct(i,q).name]=[{name:"wrapper",func:i}],ae.prototype.clone=_F,ae.prototype.reverse=kF,ae.prototype.value=CF,p.prototype.at=XP,p.prototype.chain=JP,p.prototype.commit=KP,p.prototype.next=$P,p.prototype.plant=nY,p.prototype.reverse=iY,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=tY,p.prototype.first=p.prototype.head,Pi&&(p.prototype[Pi]=eY),p},ri=KO();Ln?((Ln.exports=ri)._=ri,n0._=ri):He._=ri}).call(On)}(M2,M2.exports);var Gn=M2.exports;const v1={props:{locale:{type:String},translations:{type:Object}},methods:{i18n(...n){const[t,i]=n,s=Object.keys(this.$i18n.messages);let{locale:l}=this;const r=Gn.get(this,"$i18n.locale")==="en-us"?"en":Gn.get(this,"$i18n.locale");l=s.includes(l)?l:r,l=l.toLowerCase();let c=Gn.get(this.translations,`${t}.${l}`,Gn.get(this.translations,t));if(c||(c=Gn.get(Gn.get(this.defaultTranslations,t),l,i)),c!=null&&c.includes("|")&&typeof n[1]=="number"){const m=n[1],y=c.split("|");y.length===3?c=y[m]||y[2]:y.length===2&&(c=m===1?y[0]:y[1])}let u={};return Object.values(n).slice(1).forEach(m=>{!(m instanceof Array)&&m instanceof Object&&(u=m)}),Object.keys(u).forEach(m=>{c=c==null?void 0:c.replaceAll(new RegExp(`{ *${m} *}`,"g"),u[m])}),c}}},jJ="",IJ="",OJ="",nb={components:{UnnnicIcon:O},props:{size:{type:String,default:"large"},text:{type:String,default:""},type:{type:String,default:"primary"},float:{type:Boolean,default:!1},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},iconCenter:{type:String,default:""},next:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},computed:{buttonDisabled(){return this.disabled||this.loading},iconSize(){return this.size==="small"?"sm":"md"},hasText(){return this.$slots.default?!0:this.text&&this.text.length>0},iconScheme(){return this.buttonDisabled?"neutral-clean":{primary:"neutral-white",secondary:"neutral-dark",tertiary:"neutral-dark",warning:"neutral-white",attention:"neutral-white"}[this.type]||""},isSizePropValid(){return this.size==="large"||!this.float&&this.size==="small"||this.float&&this.size==="extra-large"},isTypePropValid(){return["primary","secondary","tertiary","alternative","warning","attention"].includes(this.type)}},watch:{$props:{deep:!0,immediate:!0,handler(){this.validateProps()}}},methods:{validateProps(){if(!this.isSizePropValid||!this.isTypePropValid){let n="TypeError:";throw this.isSizePropValid||(n+=" Invalid size prop.",n+=" Please provide 'large', 'small' (only if float prop is false), or 'extra-large' (only if float prop is true)."),this.isTypePropValid||(n+=" Invalid type prop."),new Error(n)}}}},ib=["disabled"];function tb(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("button",e.mergeProps(n.$attrs,{disabled:r.buttonDisabled,class:["unnnic-button",`unnnic-button--size-${i.size}`,`unnnic-button--${i.type}`,i.iconCenter?"unnnic-button--icon-on-center":null,i.float?"unnnic-button--float":null]}),[i.loading?(e.openBlock(),e.createBlock(c,{key:0,icon:"loading-circle-1",scheme:r.iconScheme,size:r.iconSize,style:{position:"absolute"},class:"rotation",next:i.next},null,8,["scheme","size","next"])):e.createCommentVNode("",!0),i.iconLeft?(e.openBlock(),e.createBlock(c,{key:1,icon:i.iconLeft,scheme:r.iconScheme,size:r.iconSize,class:e.normalizeClass({"unnnic-button__icon-left":r.hasText}),style:e.normalizeStyle({visibility:i.loading?"hidden":null}),next:i.next},null,8,["icon","scheme","size","class","style","next"])):e.createCommentVNode("",!0),i.iconCenter?(e.openBlock(),e.createBlock(c,{key:2,icon:i.iconCenter,scheme:r.iconScheme,style:e.normalizeStyle({visibility:i.loading?"hidden":null}),size:r.iconSize,next:i.next},null,8,["icon","scheme","style","size","next"])):e.createCommentVNode("",!0),i.float?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:3,class:"unnnic-button__label",style:e.normalizeStyle({visibility:i.loading?"hidden":null})},[e.renderSlot(n.$slots,"default",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(i.text),1)],4)),i.iconRight?(e.openBlock(),e.createBlock(c,{key:4,icon:i.iconRight,scheme:r.iconScheme,size:r.iconSize,class:e.normalizeClass({"unnnic-button__icon-right":r.hasText}),style:e.normalizeStyle({visibility:i.loading?"hidden":null}),next:i.next},null,8,["icon","scheme","size","class","style","next"])):e.createCommentVNode("",!0)],16,ib)}const x1=_(nb,[["render",tb],["__scopeId","data-v-4cec5e43"]]),FJ="",ab={components:{UnnnicButton:x1},mixins:[v1],props:{initialStartDate:String,initialEndDate:String,type:{type:String,default:"day",validator(n){return["day","month","year"].includes(n)}},size:{type:String,default:"large",validator(n){return["small","large"].includes(n)}},clearLabel:{type:String},actionLabel:{type:String},months:{type:Array,default:()=>[],validator(n){return[0,12].includes(n.length)}},days:{type:Array,default:()=>[],validator(n){return[0,7].includes(n.length)}},options:{type:Array,default:()=>[]}},data(){const n=new Date;return{referenceDate:`${n.getMonth()+1} 1 ${n.getFullYear()}`,startDate:(this.initialStartDate||"").replace(/-/g," "),endDate:(this.initialEndDate||"").replace(/-/g," "),optionSelected:"",defaultTranslations:{clean:{"pt-br":"Limpar",en:"Clean",es:"Limpiar"},filter:{"pt-br":"Filtrar",en:"Filter",es:"Filtrar"}}}},computed:{openMonths(){return[this.referenceDate,this.addMonth(this.referenceDate,1)]},value(){return{startDate:this.startDate.replaceAll(" ","-"),endDate:this.endDate.replaceAll(" ","-")}},i18nLocale(){return this.$i18n.locale.toLowerCase()},monthsLocale(){const{months:n}=this;return n.length?n:Kx[this.i18nLocale]},daysLocale(){const{days:n}=this;return n.length?n:$x[this.i18nLocale]},periodsLocale(){const{options:n}=this;return n.length?n:eb[this.i18nLocale]},clearText(){return this.clearLabel||this.i18n("clean")},filterText(){return this.actionLabel||this.i18n("filter")}},watch:{value({startDate:n,endDate:t}){this.optionSelected=n||t?"custom":"",this.$emit("change",this.value)}},methods:{dateToString(n){return`${n.getMonth()+1} ${n.getDate()} ${n.getFullYear()}`},dateToStringMonth(n){return`${n.getMonth()+1} ${n.getFullYear()}`},dateToStringYear(n){return n.getFullYear()},stringToTime(n){return new Date(n).getTime()},getDate(n){return new Date(n.toString()).getDate()},getMonth(n){return new Date(n).getMonth()},getFullYear(n){return new Date(n).getFullYear()},addMonth(n,t){const i=new Date(n);return i.setMonth(i.getMonth()+t),this.dateToString(i)},isDateBetween(n){if(this.startDate&&this.endDate){if(n>=this.stringToTime(this.startDate)&&n<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&n>=this.stringToTime(this.startDate))return!0;if(this.endDate&&n<=this.stringToTime(this.endDate))return!0}return!1},isDateBetweenMonth(n){const t=new Date(this.startDate);t.setDate(1);const i=t.getTime();if(this.startDate&&this.endDate){if(n>=i&&n<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&n>=i)return!0;if(this.endDate&&n<=this.stringToTime(this.endDate))return!0}return!1},isDateBetweenYear(n){const t=new Date(this.startDate);t.setDate(1),t.setMonth(0);const i=t.getTime();if(this.startDate&&this.endDate){if(n>=i&&n<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&n>=i)return!0;if(this.endDate&&n<=this.stringToTime(this.endDate))return!0}return!1},getDatesOfTheMonth(n){const t=new Date(n),i=t.getMonth(),s=86400;t.setDate(1-t.getDay());const l=[];for(let r=0;r<6*7;r+=1){const c=this.dateToString(t),u=[];if(i===t.getMonth()){u.push("inside month");const m=this.stringToTime(this.dateToString(t)),y=m-s,w=m+s;this.isDateBetween(m)&&(u.push("selected"),this.isDateBetween(y)||u.push("left-highlighted"),this.isDateBetween(w)||u.push("right-highlighted"),(u.includes("left-highlighted")||u.includes("right-highlighted"))&&u.push("highlighted"))}this.dateToString(t)===this.dateToString(new Date)&&u.push("today"),l.push({properties:u,toString:()=>c}),t.setDate(t.getDate()+1)}return l},getMonthsOfTheYear(n){const t=new Date(n);t.setMonth(0);const i=[];for(let s=0;s<3*4;s+=1){const l=this.dateToString(t),r=[];r.push("inside month");const c=this.stringToTime(this.dateToString(t));let u=new Date(c),m=new Date(c);u.setMonth(u.getMonth()-1),m.setMonth(m.getMonth()+1),u=u.getTime(),m=m.getTime(),this.isDateBetweenMonth(c)&&(r.push("selected"),this.isDateBetweenMonth(u)||r.push("left-highlighted"),this.isDateBetweenMonth(m)||r.push("right-highlighted"),(r.includes("left-highlighted")||r.includes("right-highlighted"))&&r.push("highlighted")),this.dateToStringMonth(t)===this.dateToStringMonth(new Date)&&r.push("today"),i.push({properties:r,date:l,toString:()=>l}),t.setMonth(t.getMonth()+1)}return i},getYears(n){const t=new Date(n);t.setMonth(0);const i=[];for(let s=0;s<3*4;s+=1){const l=this.dateToString(t),r=[];r.push("inside month");const c=this.stringToTime(this.dateToString(t));let u=new Date(c),m=new Date(c);u.setMonth(u.getMonth()-12),m.setMonth(m.getMonth()+12),u=u.getTime(),m=m.getTime(),this.isDateBetweenYear(c)&&(r.push("selected"),this.isDateBetweenYear(u)||r.push("left-highlighted"),this.isDateBetweenYear(m)||r.push("right-highlighted"),(r.includes("left-highlighted")||r.includes("right-highlighted"))&&r.push("highlighted")),this.dateToStringYear(t)===this.dateToStringYear(new Date)&&r.push("today"),i.push({properties:r,date:t.getFullYear(),toString:()=>l}),t.setFullYear(t.getFullYear()+1)}return i},selectDate(n){if(!this.startDate||!this.endDate)this.startDate=n.toString(),this.endDate=this.startDate;else{const t=this.stringToTime(n.toString()),i=this.stringToTime(this.startDate),s=this.stringToTime(this.endDate);t>s?this.endDate=n.toString():t<i?this.startDate=n.toString():t===i||t===s?(this.startDate=n.toString(),this.endDate=this.startDate):t-i<s-t?this.startDate=n.toString():this.endDate=n.toString()}},clear(){this.startDate="",this.endDate="",this.optionSelected=""},autoSelect(n){const t=new Date,i=n.match(/^last-(\d+)-days$/),s=n.match(/^last-(\d+)-months$/);if(i){const l=Number(i[1]);this.endDate=this.dateToString(t),t.setDate(t.getDate()-l+1),this.startDate=this.dateToString(t)}else if(s){const l=Number(s[1]);this.endDate=this.dateToString(t),t.setDate(t.getDate()+1),t.setMonth(t.getMonth()-l),this.startDate=this.dateToString(t)}else n==="current-month"&&(t.setDate(1),this.startDate=this.dateToString(t),t.setMonth(t.getMonth()+1),t.setDate(0),this.endDate=this.dateToString(t));if(this.endDate){const l=this.addMonth(this.referenceDate,1),r=`${this.getMonth(this.endDate)+1} 1 ${this.getFullYear(this.endDate)}`;[this.referenceDate,l].includes(r)||(this.referenceDate=r)}this.$nextTick(()=>{this.optionSelected=n})}}},pa=n=>(e.pushScopeId("data-v-92434a17"),n=n(),e.popScopeId(),n),ob={class:"unnnic-date-picker"},sb={class:"month-container"},rb=["onClick"],lb=pa(()=>e.createElementVNode("div",{class:"divider"},null,-1)),db={class:"month-container"},cb=["onClick"],fb=pa(()=>e.createElementVNode("div",{class:"divider"},null,-1)),ub={class:"month-container"},mb=["onClick"],hb=pa(()=>e.createElementVNode("div",{class:"divider"},null,-1)),pb={key:3,class:"options-container"},yb={class:"options"},gb=["onClick"],wb={class:"actions"};function _b(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicButton");return e.openBlock(),e.createElementBlock("div",ob,[i.type==="day"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.openMonths,(u,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createElementVNode("div",sb,[e.createElementVNode("div",{class:e.normalizeClass(["header",`header--${i.size}`])},[e.createVNode(c,{size:"small",iconCenter:`arrow-${m===0?"left":"right"}-1-1`,type:i.size==="large"?"secondary":"tertiary",class:"button-space",style:e.normalizeStyle({gridArea:`${m===0?"left":"right"}-button`}),onClick:e.withModifiers(y=>l.referenceDate=r.addMonth(l.referenceDate,m===0?-1:1),["stop"])},null,8,["iconCenter","type","style","onClick"]),e.createElementVNode("div",{class:e.normalizeClass(["label",`label--${i.size}`])},e.toDisplayString(r.monthsLocale[r.getMonth(u)])+" "+e.toDisplayString(r.getFullYear(u)),3)],2),e.createElementVNode("div",{class:e.normalizeClass(["days",`days--${i.size}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.daysLocale,(y,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"name"},e.toDisplayString(y),1))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.getDatesOfTheMonth(u),(y,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${u}-${w}`,class:e.normalizeClass({disabled:!y.properties.includes("inside month"),selectable:y.properties.includes("inside month"),today:y.properties.includes("today"),selected:y.properties.includes("selected"),highlighted:y.properties.includes("highlighted"),left:y.properties.includes("left-highlighted"),right:y.properties.includes("right-highlighted")}),onClick:M=>y.properties.includes("inside month")&&r.selectDate(y)},e.toDisplayString(r.getDate(y)),11,rb))),128))],2)]),lb],64))),128)):i.type==="month"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList([l.referenceDate],u=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createElementVNode("div",db,[e.createElementVNode("div",{class:e.normalizeClass(["header",`header--${i.size}`])},[e.createVNode(c,{size:"small",iconCenter:"arrow-left-1-1",type:i.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},onClick:t[0]||(t[0]=m=>l.referenceDate=r.addMonth(l.referenceDate,-12))},null,8,["type"]),e.createElementVNode("div",{class:e.normalizeClass(["label",`label--${i.size}`])},e.toDisplayString(r.getFullYear(u)),3),e.createVNode(c,{size:"small",iconCenter:"arrow-right-1-1",type:i.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},onClick:t[1]||(t[1]=m=>l.referenceDate=r.addMonth(l.referenceDate,12))},null,8,["type"])],2),e.createElementVNode("div",{class:e.normalizeClass(["days",`months--${i.size}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.getMonthsOfTheYear(u),(m,y)=>(e.openBlock(),e.createElementBlock("div",{key:`${u}-${y}`,class:e.normalizeClass({disabled:!m.properties.includes("inside month"),selectable:m.properties.includes("inside month"),today:m.properties.includes("today"),selected:m.properties.includes("selected"),highlighted:m.properties.includes("highlighted"),left:m.properties.includes("left-highlighted"),right:m.properties.includes("right-highlighted")}),onClick:w=>m.properties.includes("inside month")&&r.selectDate(m)},e.toDisplayString(r.monthsLocale[r.getMonth(m)].substr(0,3)),11,cb))),128))],2)]),fb],64))),128)):i.type==="year"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList([l.referenceDate],u=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createElementVNode("div",ub,[e.createElementVNode("div",{class:e.normalizeClass(["header",`header--${i.size}`])},[e.createVNode(c,{size:"small",iconCenter:"arrow-left-1-1",type:i.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},onClick:t[2]||(t[2]=m=>l.referenceDate=r.addMonth(l.referenceDate,-12*12))},null,8,["type"]),e.createElementVNode("div",{class:e.normalizeClass(["label",`label--${i.size}`])},e.toDisplayString(r.getFullYear(u)),3),e.createVNode(c,{size:"small",iconCenter:"arrow-right-1-1",type:i.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},onClick:t[3]||(t[3]=m=>l.referenceDate=r.addMonth(l.referenceDate,12*12))},null,8,["type"])],2),e.createElementVNode("div",{class:e.normalizeClass(["days",`months--${i.size}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.getYears(u),(m,y)=>(e.openBlock(),e.createElementBlock("div",{key:`${u}-${y}`,class:e.normalizeClass({disabled:!m.properties.includes("inside month"),selectable:m.properties.includes("inside month"),today:m.properties.includes("today"),selected:m.properties.includes("selected"),highlighted:m.properties.includes("highlighted"),left:m.properties.includes("left-highlighted"),right:m.properties.includes("right-highlighted")}),onClick:w=>m.properties.includes("inside month")&&r.selectDate(m)},e.toDisplayString(m.date),11,mb))),128))],2)]),hb],64))),128)):e.createCommentVNode("",!0),i.size!=="small"?(e.openBlock(),e.createElementBlock("div",pb,[e.createElementVNode("div",yb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.periodsLocale,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass(["option",{selected:l.optionSelected===u.id}]),onClick:y=>r.autoSelect(u.id)},e.toDisplayString(u.name),11,gb))),128))]),e.createElementVNode("div",wb,[e.createVNode(c,{size:"small",text:r.clearText,type:"tertiary",onClick:r.clear},null,8,["text","onClick"]),e.createVNode(c,{size:"small",text:r.filterText,type:"secondary",onClick:t[4]||(t[4]=u=>n.$emit("submit",r.value))},null,8,["text"])])])):e.createCommentVNode("",!0)])}const uo=_(ab,[["render",_b],["__scopeId","data-v-92434a17"]]),UJ="",kb={components:{UnnnicInput:t2,UnnnicDatePicker:uo},model:{event:"changed"},props:{modelValue:{type:Object},type:{type:String,default:"day"},size:{type:String,default:"md"},clearText:{type:String,default:"Clear"},actionText:{type:String,default:"Filter"},months:{type:Array},days:{type:Array},options:{type:Array},format:{type:String,default:"YYYY-MM-DD"},inputFormat:{type:String,default:"MM-DD-YYYY"},position:{type:String,default:"left"}},data(){return{showCalendarFilter:!1}},computed:{filterText(){var t,i,s,l;const n=[];return(t=this.modelValue)!=null&&t.start&&n.push(V((i=this.modelValue)==null?void 0:i.start,this.format).format(this.inputFormat)),(s=this.modelValue)!=null&&s.end&&n.push(V((l=this.modelValue)==null?void 0:l.end,this.format).format(this.inputFormat)),n.length?n.join(" ~ "):"—"},initialStartDate(){return this.modelValue.start?V(this.modelValue.start,this.format).format("MM DD YYYY"):null},initialEndDate(){return this.modelValue.end?V(this.modelValue.end,this.format).format("MM DD YYYY"):null}},mounted(){window.document.body.addEventListener("click",this.mouseout)},beforeUnmount(){window.document.body.removeEventListener("click",this.mouseout)},methods:{mouseout(n){var t;(t=this.$refs.dropdown)!=null&&t.contains(n.target)||(this.showCalendarFilter=!1)},changeDate(n){const t=n.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),i=n.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");this.showCalendarFilter=!1,this.$emit("update:model-value",{start:t?V(t,"YYYY-MM-DD").format(this.format):null,end:i?V(i,"YYYY-MM-DD").format(this.format):null})}}};function Cb(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicInput"),u=e.resolveComponent("UnnnicDatePicker");return e.openBlock(),e.createElementBlock("div",{ref:"dropdown",class:e.normalizeClass(["dropdown",{active:l.showCalendarFilter}])},[e.createVNode(c,{class:"input",size:i.size,iconLeft:"notes-1",readonly:"",modelValue:r.filterText,onFocus:t[0]||(t[0]=m=>l.showCalendarFilter=!0)},null,8,["size","modelValue"]),e.createElementVNode("div",{class:"dropdown-data",style:e.normalizeStyle({[i.position]:"0"})},[l.showCalendarFilter?(e.openBlock(),e.createBlock(u,{key:0,type:i.type,clearLabel:i.clearText,actionLabel:i.actionText,months:i.months,days:i.days,options:i.options,initialStartDate:r.initialStartDate,initialEndDate:r.initialEndDate,onSubmit:r.changeDate},null,8,["type","clearLabel","actionLabel","months","days","options","initialStartDate","initialEndDate","onSubmit"])):e.createCommentVNode("",!0)],4)],2)}const vb=_(kb,[["render",Cb],["__scopeId","data-v-1fde2469"]]),PJ="",xb={components:{UnnnicIcon:O},props:{type:{type:String,default:"secondary"},size:{type:String,required:!0,validator(n){return["small","large"].includes(n)}},icon:{type:String,required:!0}},computed:{iconScheme(){return this.type==="primary"?"neutral-snow":"neutral-darkest"}}};function bb(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("button",e.mergeProps({class:["button-icon",i.size,i.type]},n.$attrs),[e.createVNode(c,{icon:i.icon,scheme:r.iconScheme,size:"ant"},null,8,["icon","scheme"])],16)}const Mb=_(xb,[["render",bb],["__scopeId","data-v-6fb1ba43"]]),YJ="",Db={name:"UnnnicSidebar",props:{expanded:{type:Boolean,default:!0}}},Ab={class:"unnnic-side-bar__header"},Bb={class:"unnnic-side-bar__footer"};function Nb(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-side-bar":!0,"unnnic-side-bar--contracted":!i.expanded})},[e.createElementVNode("div",Ab,[e.renderSlot(n.$slots,"header")]),e.renderSlot(n.$slots,"default"),e.createElementVNode("div",Bb,[e.renderSlot(n.$slots,"footer")])],2)}const Lb=_(Db,[["render",Nb]]),ZJ="",Eb={name:"UnnnicTooltip",props:{text:{type:String,default:null},enabled:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1},side:{type:String,default:"right",validator(n){return["top","right","bottom","left"].indexOf(n)!==-1}},maxWidth:{type:String},shortcutText:{type:String,default:null}},data(){return{topPos:null,leftPos:null}},watch:{side(){this.getRightPost(this.$refs.tooltip)}},mounted(){this.handleResize(),window.addEventListener("scroll",this.handleResize),window.addEventListener("resize",this.handleResize)},unmounted(){window.removeEventListener("scroll",this.handleResize),window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){this.getRightPost(this.$refs.tooltip)},getRightPost(n){const t=n.getBoundingClientRect();n&&this.$refs.label&&(this.side==="right"?(this.leftPos=`${t.x+t.width+8}px`,this.topPos=`${t.y+t.height/2-this.$refs.label.offsetHeight/2}px`):this.side==="left"?(this.leftPos=`${t.x-this.$refs.label.offsetWidth-8}px`,this.topPos=`${t.y+t.height/2-this.$refs.label.offsetHeight/2}px`):this.side==="top"?(this.leftPos=`${t.x+t.width/2-this.$refs.label.clientWidth/2}px`,this.topPos=`${t.y-this.$refs.label.offsetHeight-8}px`):this.side==="bottom"&&(this.leftPos=`${t.x+t.width/2-this.$refs.label.clientWidth/2}px`,this.topPos=`${t.y+t.height+8}px`))}}},Sb=(n=>(e.pushScopeId("data-v-5e81b292"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("br",null,null,-1)),zb={key:0,class:"unnnic-tooltip-label-shortcut"};function Tb(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",{ref:"tooltip",class:e.normalizeClass({"unnnic-tooltip":i.enabled,"force-open":i.forceOpen}),onMouseover:t[0]||(t[0]=(...c)=>r.handleResize&&r.handleResize(...c))},[e.renderSlot(n.$slots,"default",{},void 0,!0),e.withDirectives(e.createElementVNode("span",{ref:"label",class:e.normalizeClass(["unnnic-tooltip-label",`unnnic-tooltip-label-${i.side}`]),style:e.normalizeStyle({maxWidth:i.maxWidth,left:l.leftPos,top:l.topPos})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.text.split(`
37
- `),(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createTextVNode(e.toDisplayString(c)+" ",1),Sb],64))),128)),i.shortcutText?(e.openBlock(),e.createElementBlock("span",zb,e.toDisplayString(i.shortcutText),1)):e.createCommentVNode("",!0)],6),[[e.vShow,i.enabled]])],34)}const Oe=_(Eb,[["render",Tb],["__scopeId","data-v-5e81b292"]]),WJ="",Vb={name:"SidebarItem",components:{UIcon:O,ToolTip:Oe},props:{active:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},icon:{type:String,default:null},text:{type:String,default:null},enableTooltip:{default:!1}},data(){return{ToolTip:Oe}},methods:{onClick(){this.$emit("click")}}},Hb={class:"unnnic-side-bar-item__label"};function jb(n,t,i,s,l,r){const c=e.resolveComponent("UIcon"),u=e.resolveComponent("ToolTip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-side-bar-item":!0,"unnnic-side-bar-item--active":i.active,"unnnic--clickable":!0}),onClick:t[0]||(t[0]=(...m)=>r.onClick&&r.onClick(...m))},[e.createVNode(u,{enabled:i.enableTooltip,text:i.text,side:"right"},{default:e.withCtx(()=>[e.createVNode(c,{class:"unnnic-side-bar-item__icon",scheme:i.active?"brand-weni-soft":"neutral-cloudy",size:"sm",icon:i.icon},null,8,["scheme","icon"]),e.createElementVNode("span",Hb,[e.createTextVNode(e.toDisplayString(i.text)+" ",1),e.renderSlot(n.$slots,"default")])]),_:3},8,["enabled","text"])],2)}const Ib=_(Vb,[["render",jb]]),QJ="",Ob={name:"UnnnicSidebarMenu",props:{text:{type:String,default:null}}},Fb={class:"unnnic-side-bar-menu"},Ub={class:"unnnic-side-bar-menu__title"};function Pb(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",Fb,[e.createElementVNode("p",Ub,e.toDisplayString(i.text),1),e.renderSlot(n.$slots,"default")])}const Yb=_(Ob,[["render",Pb]]);function mo(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function Bi(n){return typeof n=="function"?n():e.unref(n)}const ho=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Zb=Object.prototype.toString,Rb=n=>Zb.call(n)==="[object Object]",Ni=()=>{},ya=Wb();function Wb(){var n,t;return ho&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const po={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Qb(...n){if(n.length!==1)return e.toRef(...n);const t=n[0];return typeof t=="function"?e.readonly(e.customRef(()=>({get:t,set:Ni}))):e.ref(t)}function Li(n){var t;const i=Bi(n);return(t=i==null?void 0:i.$el)!=null?t:i}const yo=ho?window:void 0;function D2(...n){let t,i,s,l;if(typeof n[0]=="string"||Array.isArray(n[0])?([i,s,l]=n,t=yo):[t,i,s,l]=n,!t)return Ni;Array.isArray(i)||(i=[i]),Array.isArray(s)||(s=[s]);const r=[],c=()=>{r.forEach(w=>w()),r.length=0},u=(w,M,b,A)=>(w.addEventListener(M,b,A),()=>w.removeEventListener(M,b,A)),m=e.watch(()=>[Li(t),Bi(l)],([w,M])=>{if(c(),!w)return;const b=Rb(M)?{...M}:M;r.push(...i.flatMap(A=>s.map(z=>u(w,A,z,b))))},{immediate:!0,flush:"post"}),y=()=>{m(),c()};return mo(y),y}let go=!1;function wo(n,t,i={}){const{window:s=yo,ignore:l=[],capture:r=!0,detectIframe:c=!1}=i;if(!s)return Ni;ya&&!go&&(go=!0,Array.from(s.document.body.children).forEach(b=>b.addEventListener("click",Ni)),s.document.documentElement.addEventListener("click",Ni));let u=!0;const m=b=>l.some(A=>{if(typeof A=="string")return Array.from(s.document.querySelectorAll(A)).some(z=>z===b.target||b.composedPath().includes(z));{const z=Li(A);return z&&(b.target===z||b.composedPath().includes(z))}}),w=[D2(s,"click",b=>{const A=Li(n);if(!(!A||A===b.target||b.composedPath().includes(A))){if(b.detail===0&&(u=!m(b)),!u){u=!0;return}t(b)}},{passive:!0,capture:r}),D2(s,"pointerdown",b=>{const A=Li(n);u=!m(b)&&!!(A&&!b.composedPath().includes(A))},{passive:!0}),c&&D2(s,"blur",b=>{setTimeout(()=>{var A;const z=Li(n);((A=s.document.activeElement)==null?void 0:A.tagName)==="IFRAME"&&!(z!=null&&z.contains(s.document.activeElement))&&t(b)},0)})].filter(Boolean);return()=>w.forEach(b=>b())}const A2={[po.mounted](n,t){const i=!t.modifiers.bubble;if(typeof t.value=="function")n.__onClickOutside_stop=wo(n,t.value,{capture:i});else{const[s,l]=t.value;n.__onClickOutside_stop=wo(n,s,Object.assign({capture:i},l))}},[po.unmounted](n){n.__onClickOutside_stop()}};function ga(n){return typeof Window<"u"&&n instanceof Window?n.document.documentElement:typeof Document<"u"&&n instanceof Document?n.documentElement:n}function _o(n){const t=window.getComputedStyle(n);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&n.clientWidth<n.scrollWidth||t.overflowY==="auto"&&n.clientHeight<n.scrollHeight)return!0;{const i=n.parentNode;return!i||i.tagName==="BODY"?!1:_o(i)}}function qb(n){const t=n||window.event,i=t.target;return _o(i)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const B2=new WeakMap;function Gb(n,t=!1){const i=e.ref(t);let s=null;e.watch(Qb(n),c=>{const u=ga(Bi(c));if(u){const m=u;B2.get(m)||B2.set(m,m.style.overflow),i.value&&(m.style.overflow="hidden")}},{immediate:!0});const l=()=>{const c=ga(Bi(n));!c||i.value||(ya&&(s=D2(c,"touchmove",u=>{qb(u)},{passive:!1})),c.style.overflow="hidden",i.value=!0)},r=()=>{var c;const u=ga(Bi(n));!u||!i.value||(ya&&(s==null||s()),u.style.overflow=(c=B2.get(u))!=null?c:"",B2.delete(u),i.value=!1)};return mo(r),e.computed({get(){return i.value},set(c){c?l():r()}})}function Xb(){let n=!1;const t=e.ref(!1);return(i,s)=>{if(t.value=s.value,n)return;n=!0;const l=Gb(i,s.value);e.watch(t,r=>l.value=r)}}Xb();const Jb={name:"Flag",components:{UnnnicIcon:O},props:{code:{type:String,default:null},size:{type:String,default:"md",validator(n){return["nano","xs","sm","md","lg"].indexOf(n)!==-1}}},computed:{name(){return{"pt-br":"Brazil",en:"USA",es:"Spain"}[this.code]}}};function Kb(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createBlock(c,{icon:r.name,size:i.size},null,8,["icon","size"])}const $b=_(Jb,[["render",Kb]]),qJ="",eM={name:"LanguageSelect",components:{UnnnicFlag:$b,UnnnicIcon:O},directives:{onClickOutside:A2},props:{modelValue:{type:String,default:""},position:{type:String,default:"top-right"},contracted:{type:Boolean,default:!1},supportedLanguages:{type:Array,default:()=>["pt-br","en"]}},data(){return{open:!1,val:this.modelValue,unnnicFontSize:16}},computed:{languages(){const n={"pt-br":"Português - Brasil",en:"English",es:"Español"};return this.supportedLanguages.reduce((t,i)=>({...t,[i]:n[i]}),{})},otherLanguages(){return this.languageList.filter(({id:n})=>n!==this.val)},languageList(){return Object.entries(this.languages).map(([n,t])=>({id:n,name:t}))},dropdownIcon(){let n="";return this.position==="bottom"?n=this.open?"up":"down":n=this.open?"down":"up",`arrow-button-${n}-1`}},watch:{val(){this.$emit("update:model-value",this.val)},modelValue(){this.val=this.modelValue}},methods:{onClickTrigger(){this.open=!this.open},onClickOutside(){this.open&&(this.open=!1)}}},nM={key:0,class:"unnnic-language-select contracted"},iM={class:"option"},tM=["onClick"],aM={key:1,class:"unnnic-language-select normal"},oM={class:"option"},sM={class:"label"},rM=e.createElementVNode("div",{class:"divider"},null,-1),lM=["onClick"],dM={class:"label"},cM=e.createElementVNode("div",{class:"divider"},null,-1),fM={class:"option"},uM={class:"label"};function mM(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicFlag"),u=e.resolveComponent("UnnnicIcon"),m=e.resolveDirective("on-click-outside");return i.contracted?e.withDirectives((e.openBlock(),e.createElementBlock("div",nM,[e.createElementVNode("div",{class:e.normalizeClass(["container contracted",{open:l.open}]),onClick:t[0]||(t[0]=(...y)=>r.onClickTrigger&&r.onClickTrigger(...y))},[e.createElementVNode("div",iM,[e.createVNode(c,{size:"sm",code:l.val},null,8,["code"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.otherLanguages,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"option",onClick:w=>l.val=y.id},[e.createVNode(c,{size:"sm",code:y.id},null,8,["code"])],8,tM))),128))],2)])),[[m,r.onClickOutside]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",aM,[e.createElementVNode("div",{class:e.normalizeClass(["container normal",{open:l.open}]),onClick:t[1]||(t[1]=(...y)=>r.onClickTrigger&&r.onClickTrigger(...y))},[e.createElementVNode("div",{style:e.normalizeStyle({position:"absolute",[i.position==="bottom"?"top":"bottom"]:-.125*l.unnnicFontSize+"px",width:"100%",padding:.0625*l.unnnicFontSize+"px",left:-.0625*l.unnnicFontSize+"px"}),class:"all"},[i.position==="bottom"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",oM,[e.createVNode(c,{size:"sm",code:l.val},null,8,["code"]),e.createElementVNode("div",sM,e.toDisplayString(r.languages[l.val]),1),e.createVNode(u,{size:"xs",icon:r.dropdownIcon,scheme:"neutral-clean"},null,8,["icon"])]),rM],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.otherLanguages,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"option",onClick:w=>l.val=y.id},[e.createVNode(c,{size:"sm",code:y.id},null,8,["code"]),e.createElementVNode("div",dM,e.toDisplayString(r.languages[y.id]),1)],8,lM))),128)),i.position!=="bottom"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[cM,e.createElementVNode("div",fM,[e.createVNode(c,{size:"sm",code:l.val},null,8,["code"]),e.createElementVNode("div",uM,e.toDisplayString(r.languages[l.val]),1),e.createVNode(u,{size:"xs",icon:r.dropdownIcon,scheme:"neutral-clean"},null,8,["icon"])])],64)):e.createCommentVNode("",!0)],4)],2)])),[[m,r.onClickOutside]])}const ko=_(eM,[["render",mM]]),GJ="",hM={components:{ToolTip:Oe,UnnnicIcon:O,LanguageSelect:ko},props:{hideExpandButton:{type:Boolean,default:!1},expanded:{type:Boolean,default:!0},items:{type:Array},languages:{type:Array,default:()=>["pt-br","en"]},language:{type:String},hideText:{type:String}},data(){return{hoverTop:0,call:null,blockActiveId:""}},methods:{clickOption(n){n.click&&n.click(n)},toggleExpanded(){this.$emit("toggle-expanded",!this.expanded)},hover(n,t){this.$slots[`block-${t}`]&&(this.hoverTop=n.srcElement.offsetTop,this.blockActiveId=t,clearTimeout(this.call),setTimeout(()=>{this.$refs["sidebar-modal"].classList.add("active","move-transition")},0))},mouseout(){this.$refs["sidebar-modal"].classList.remove("active"),this.call=setTimeout(()=>{this.$refs["sidebar-modal"].classList.remove("move-transition")},300)}}},pM=n=>(e.pushScopeId("data-v-11f92a8d"),n=n(),e.popScopeId(),n),yM={class:"header"},gM={class:"unnnic-sidebar-primary-content"},wM={class:"category-label"},_M={class:"options"},kM=["href","onClick"],CM={class:"label"},vM={key:0,class:"tag"},xM=pM(()=>e.createElementVNode("div",{class:"divider"},null,-1)),bM={class:"footer"},MM={class:"category"},DM={class:"options"},AM={class:"option-container"},BM={class:"option-container"},NM={class:"label"};function LM(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon"),u=e.resolveComponent("ToolTip"),m=e.resolveComponent("LanguageSelect");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["unnnic-sidebar-primary",{"unnnic-sidebar-primary-expanded":i.expanded}])},[e.createElementVNode("div",yM,[e.renderSlot(n.$slots,"header",{},void 0,!0)]),e.createElementVNode("div",null,[e.renderSlot(n.$slots,"search",{},void 0,!0)]),e.createElementVNode("div",gM,[e.createElementVNode("div",{ref:"sidebar-modal",class:"hover",style:e.normalizeStyle({top:`${l.hoverTop}px`})},[e.renderSlot(n.$slots,"block-"+l.blockActiveId,{},void 0,!0)],4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(y,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"category"},[e.createElementVNode("div",wM,e.toDisplayString(y.label),1),e.createElementVNode("div",_M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.items,(M,b)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"option-container"},[e.createVNode(u,{enabled:!i.expanded,text:`${M.label} ${M.tag||""}`.trim(),side:"right",onMouseenter:A=>r.hover(A,M.id),onMouseleave:r.mouseout},{default:e.withCtx(()=>[e.createElementVNode("a",{href:M.viewUrl,class:e.normalizeClass(["option",{selected:M.active,disabled:n.$slots[`block-${M.id}`]}]),onClick:e.withModifiers(()=>{n.$slots[`block-${M.id}`]||r.clickOption(M)},["prevent"])},[e.createVNode(c,{icon:M.icon,scheme:M.active?"brand-weni-soft":"neutral-cloudy",size:i.expanded?"ant":"md",filled:M.active},null,8,["icon","scheme","size","filled"]),e.createElementVNode("span",CM,e.toDisplayString(M.label),1),M.tag?(e.openBlock(),e.createElementBlock("span",vM,e.toDisplayString(M.tag),1)):e.createCommentVNode("",!0),M.notify?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(M.notify&&!i.expanded?"notify":"")},[e.createVNode(c,{icon:"indicator",scheme:"brand-weni-soft",size:"ant"})],2)):e.createCommentVNode("",!0)],10,kM)]),_:2},1032,["enabled","text","onMouseenter","onMouseleave"])]))),128))]),xM]))),128))]),e.createElementVNode("div",bM,[e.createElementVNode("div",MM,[e.createElementVNode("div",DM,[e.createElementVNode("div",AM,[e.createVNode(m,{class:"language-select",contracted:!i.expanded,value:i.language,supportedLanguages:i.languages,onInput:t[0]||(t[0]=y=>n.$emit("change-language",y))},null,8,["contracted","value","supportedLanguages"])]),e.withDirectives(e.createElementVNode("div",BM,[e.createVNode(u,{enabled:!i.expanded,text:i.hideText,side:"right"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"option",onClick:t[1]||(t[1]=(...y)=>r.toggleExpanded&&r.toggleExpanded(...y))},[e.createVNode(c,{icon:i.expanded?"close_fullscreen":"open_in_full",scheme:"neutral-cloudy",size:i.expanded?"ant":"md"},null,8,["icon","size"]),e.createElementVNode("span",NM,e.toDisplayString(i.hideText),1)])]),_:1},8,["enabled","text"])],512),[[e.vShow,!i.hideExpandButton]])])])])],2)}const EM=_(hM,[["render",LM],["__scopeId","data-v-11f92a8d"]]),XJ="",SM={name:"UnnnicTable",components:{},props:{items:{type:Array}},data(){return{value:!1}},computed:{}},zM=n=>(e.pushScopeId("data-v-f7abae0e"),n=n(),e.popScopeId(),n),TM={class:"unnnic-table"},VM={class:"header"},HM=zM(()=>e.createElementVNode("div",null,[e.createElementVNode("div",{class:"item-spacer"})],-1)),jM={class:"scroll"};function IM(n,t,i,s,l,r){return e.withDirectives((e.openBlock(),e.createElementBlock("div",TM,[e.createElementVNode("div",VM,[e.renderSlot(n.$slots,"header",{},void 0,!0)]),HM,e.createElementVNode("div",jM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(c,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"item"},[e.renderSlot(n.$slots,"item",{item:c},void 0,!0)]))),128))])],512)),[[e.vShow,!0]])}const OM=_(SM,[["render",IM],["__scopeId","data-v-f7abae0e"]]),JJ="",KJ="",FM={name:"UnnnicTableRow",props:{headers:{type:Array}},data(){return{}}},UM={class:"table-row"},PM={class:"break-text"};function YM(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",UM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.headers,(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c.id},[e.createElementVNode("div",{class:"col",style:e.normalizeStyle({width:c.width,flex:c.flex,minWidth:0})},[e.renderSlot(n.$slots,c.id,{},()=>[e.createElementVNode("div",PM,e.toDisplayString(c.text),1)],!0)],4),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["divider",{condensed:c.condensed}])},null,2),[[e.vShow,u+1!==i.headers.length]])],64))),128))])}const ZM=_(FM,[["render",YM],["__scopeId","data-v-fdf86ada"]]),$J="",RM={name:"UnnnicDropdown",directives:{onClickOutside:A2},props:{open:{type:Boolean,default:!1},position:{type:String,default:"bottom-left",validator(n){return["top-left","none","bottom-left","bottom-left","bottom-right"].indexOf(n)!==-1}}},data(){return{active:!1}},watch:{open(){this.active=this.open},active(){this.$emit("update:open",this.active)}},methods:{onClickTrigger(){this.active=!this.active},onClickOutside(){this.active&&(this.active=!1)}}},WM={class:"unnnic-dropdown__trigger"};function QM(n,t,i,s,l,r){const c=e.resolveDirective("on-click-outside");return e.openBlock(),e.createElementBlock("div",{class:"unnnic-dropdown",onClick:t[0]||(t[0]=e.withModifiers((...u)=>r.onClickTrigger&&r.onClickTrigger(...u),["stop"]))},[e.createElementVNode("div",WM,[e.renderSlot(n.$slots,"trigger",{},void 0,!0),l.active?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["unnnic-dropdown__content",l.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${i.position}`])},[e.renderSlot(n.$slots,"default",{},void 0,!0)],2)),[[c,r.onClickOutside]]):e.createCommentVNode("",!0)])])}const wa=_(RM,[["render",QM],["__scopeId","data-v-1fb8c82b"]]),eK="",qM={name:"UnnnicDropdownItem"},GM={class:"unnnic-dropdown-item unnnic--clickable"};function XM(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("a",GM,[e.renderSlot(n.$slots,"default")])}const JM=_(qM,[["render",XM]]),nK="",KM={components:{UnnnicIcon:O},props:{enabled:{type:Boolean,default:!0},icon:{type:String,default:"graph-stats-1"},size:{type:String,default:"sm",validator(n){return["nano","xs","sm","lg","xl"].indexOf(n)!==-1}},scheme:{type:String,default:"aux-blue"},filled:{type:Boolean,default:!1},opacity:{type:Boolean,default:!0}},computed:{iconSize(){return{nano:"xs",xs:"sm",sm:"md",lg:"lg",xl:"xl"}[this.size]}}};function $M(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["unnnic-avatar-icon",i.scheme,i.size,{disabled:!i.enabled},i.filled,{opacity:!i.opacity}])},[e.createVNode(c,{icon:i.icon,scheme:i.enabled?i.scheme:"neutral-cloudy",size:r.iconSize,filled:i.filled},null,8,["icon","scheme","size","filled"])],2)}const Xn=_(KM,[["render",$M],["__scopeId","data-v-ecaaa6f3"]]),iK="",eD={name:"IconLoading",components:{UnnnicIcon:O},props:{scheme:{type:String,default:"neutral-dark"},size:{type:String,default:"lg"}}};function nD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createBlock(c,{class:"unnnic-icon-loading",icon:"progress_activity",scheme:i.scheme,size:i.size},null,8,["scheme","size"])}const _a=_(eD,[["render",nD],["__scopeId","data-v-97257015"]]),tK="",iD={name:"UnnnicCard",components:{UnnnicIcon:O,UnnnicAvatarIcon:Xn},props:{title:{type:String,default:null},value:{type:Number,default:null},icon:{type:String,default:null},percent:{type:Number,default:0},invertedPercentage:{type:Boolean,default:!1},scheme:{type:String,default:null}},computed:{color(){return this.invertedPercentage?this.percent<0?"green":"red":this.percent<0?"red":"green"}}},tD={class:"unnnic-card-dash"},aD={class:"header"},oD={class:"label"},sD={class:"content"},rD={class:"value"},lD={class:"label"};function dD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicAvatarIcon"),u=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",tD,[e.createElementVNode("div",aD,[e.createVNode(c,{size:"sm",scheme:i.scheme,icon:i.icon},null,8,["scheme","icon"]),e.createElementVNode("div",oD,e.toDisplayString(i.title),1)]),e.createElementVNode("div",sD,[e.createElementVNode("div",rD,e.toDisplayString(i.value),1),i.percent?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["percent",`unnnic-card-scheme--feedback-${r.color}`])},[e.createVNode(u,{icon:`graph-stats-${i.percent>=0?"ascend":"descend"}-2`,scheme:`feedback-${r.color}`,size:"sm",class:"icon"},null,8,["icon","scheme"]),e.createElementVNode("div",lD,e.toDisplayString(i.percent>=0?`+${i.percent}%`:`${i.percent}%`),1)],2)):e.createCommentVNode("",!0)])])}const cD=_(iD,[["render",dD],["__scopeId","data-v-6ca994fa"]]),aK="",fD={name:"UnnnicCard",components:{ToolTip:Oe,UnnnicIcon:O},props:{title:{type:String,default:null},info:{type:String,default:null},icon:{type:String,default:null},infoPosition:{type:String,default:"right"},scheme:{type:String,default:null},hasInformationIcon:{type:Boolean,default:!0},enabled:{type:Boolean,default:!0}}},uD={class:"unnnic-card-title"},mD={class:"title"};function hD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon"),u=e.resolveComponent("ToolTip");return e.openBlock(),e.createElementBlock("div",uD,[e.createElementVNode("div",{class:e.normalizeClass(["avatar-icon",`unnnic-card-scheme--${i.scheme}`])},[e.createVNode(c,{icon:i.icon,scheme:i.scheme,size:"md"},null,8,["icon","scheme"])],2),e.createElementVNode("div",mD,e.toDisplayString(i.title),1),i.hasInformationIcon?(e.openBlock(),e.createBlock(u,{key:0,class:"information",side:i.infoPosition,text:i.info,enabled:i.enabled},{default:e.withCtx(()=>[e.createVNode(c,{icon:"information-circle-4",class:"unnnic-card-title__content_info",size:"sm",scheme:"neutral-soft"})]),_:1},8,["side","text","enabled"])):e.createCommentVNode("",!0)])}const Co=_(fD,[["render",hD],["__scopeId","data-v-acb3c7ee"]]),oK="",pD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},status:{type:String,default:null},scheme:{type:String,default:null}}},yD={class:"header"},gD={class:"label"},wD={class:"content"},_D={class:"title-container"},kD={class:"title"},CD={class:"description"};function vD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${i.scheme}--border`])},[e.createElementVNode("div",yD,[e.createVNode(c,{icon:i.icon,scheme:"neutral-dark",size:"md",class:"icon"},null,8,["icon"]),e.createElementVNode("div",gD,e.toDisplayString(i.title),1)]),e.createElementVNode("div",wD,[e.createElementVNode("div",_D,[e.createVNode(c,{icon:"indicator",scheme:i.scheme,size:"sm"},null,8,["scheme"]),e.createElementVNode("div",kD,e.toDisplayString(i.status),1)]),e.createElementVNode("div",CD,e.toDisplayString(i.description),1)])],2)}const xD=_(pD,[["render",vD],["__scopeId","data-v-d34a2242"]]),sK="",bD={name:"UnnnicCard",components:{UnnnicAvatarIcon:Xn},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},enabled:{type:Boolean,default:!0},scheme:{type:String,default:null}}},MD={class:"icon"},DD={class:"content"},AD={class:"title"},BD={class:"description"};function ND(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicAvatarIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-account":!0,enabled:i.enabled})},[e.createElementVNode("div",MD,[e.createVNode(c,{size:"xs",scheme:i.scheme,icon:i.icon,enabled:i.enabled},null,8,["scheme","icon","enabled"])]),e.createElementVNode("div",DD,[e.createElementVNode("div",AD,e.toDisplayString(i.title),1),e.createElementVNode("div",BD,e.toDisplayString(i.description),1)])],2)}const LD=_(bD,[["render",ND],["__scopeId","data-v-d14c13a7"]]),rK="",ED={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},SD={class:"unnnic-card-default__content"},zD={class:"unnnic-card-default__title"},TD=["title"];function VD(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-default":!0,"unnnic-card-default__clickable":i.clickable})},[e.createElementVNode("div",SD,[e.createElementVNode("div",zD,e.toDisplayString(i.title),1),e.createElementVNode("p",{class:"unnnic-card-default__description",title:i.description},e.toDisplayString(i.description),9,TD)])],2)}const HD=_(ED,[["render",VD]]),lK="",jD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},ID={class:"unnnic-card-blank__content"},OD={class:"unnnic-card-blank__content__text"};function FD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-blank":!0,"unnnic-card-blank__clickable":i.clickable})},[e.createElementVNode("div",ID,[e.createVNode(c,{icon:i.icon,scheme:"neutral-clean",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),e.createElementVNode("div",OD,e.toDisplayString(i.text),1)])],2)}const UD=_(jD,[["render",FD]]),dK="",PD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},enabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}}},YD={class:"unnnic-card-content__content"},ZD={class:"unnnic-card-content__content__title"},RD={class:"unnnic-card-content__content__description"};function WD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-content":!0,"unnnic-card-content--disabled":!i.enabled,"unnnic-card-content__clickable":i.clickable})},[e.createElementVNode("div",{class:e.normalizeClass(["unnnic-card-content__icon",i.enabled&&"unnnic-card-content__icon--disabled"])},[e.createVNode(c,{icon:i.icon,scheme:"neutral-cloudy",size:"sm"},null,8,["icon"])],2),e.createElementVNode("div",YD,[e.createElementVNode("div",ZD,e.toDisplayString(i.title),1),e.createElementVNode("div",RD,e.toDisplayString(i.description),1)])],2)}const QD=_(PD,[["render",WD]]),cK="",qD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{title:{type:String,default:null},description:{type:String,default:null},comments:{type:String,default:null},clickable:{type:Boolean,default:!1},iconSrc:{type:String,default:null},rating:{type:Number,default:0},typeAction:{type:String,default:null}},methods:{cardClick(){this.$emit("openModal")}}},GD={class:e.normalizeClass(["unnnic-card-marketplace__icons"])},XD=["src"],JD={class:"unnnic-card-marketplace__content"},KD={class:"unnnic-card-marketplace__content__title"},$D=["title"],eA={key:0,class:"unnnic-card-marketplace__content__rating"},nA={class:"unnnic-card-marketplace__content__rating__value"},iA={class:"unnnic-card-marketplace__content__rating__comments"};function tA(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-marketplace":!0,"unnnic-card-marketplace__clickable":i.clickable,"unnnic-card-marketplace__add":i.typeAction==="add","unnnic-card-marketplace__config":i.typeAction==="config","unnnic-card-marketplace__edit":i.typeAction==="edit"}),onClick:t[0]||(t[0]=(...u)=>r.cardClick&&r.cardClick(...u))},[e.createElementVNode("div",GD,[e.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:i.iconSrc},null,8,XD),e.renderSlot(n.$slots,"actions")]),e.createElementVNode("div",JD,[e.createElementVNode("div",KD,e.toDisplayString(i.title),1),e.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:i.description},e.toDisplayString(i.description),9,$D),i.typeAction==="add"?(e.openBlock(),e.createElementBlock("div",eA,[e.createVNode(c,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant"}),e.createElementVNode("div",nA,e.toDisplayString(i.rating),1),e.createElementVNode("div",iA," ("+e.toDisplayString(i.comments)+") ",1)])):e.createCommentVNode("",!0)])],2)}const aA=_(qD,[["render",tA]]),fK="",oA={name:"UnnnicCard",props:{type:{type:String,default:"title",validator(n){return["title","status","dash","account","default","blank","content","marketplace"].indexOf(n)!==-1}},title:{type:String,default:null},description:{type:String,default:null},status:{type:String,default:null},info:{type:String,default:null},text:{type:String,default:null},value:{type:Number,default:null},percent:{type:Number,default:0},invertedPercentage:{type:Boolean,default:!1},rating:{type:Number,default:0},comments:{type:String,default:null},enabled:{type:Boolean,default:!0},icon:{type:String,default:null},iconSrc:{type:String,default:null},infoPosition:{type:String,default:"right"},hasInformationIcon:{type:Boolean,default:!0},scheme:{type:String,default:"aux-blue",validator(n){return["feedback-red","feedback-green","feedback-yellow","feedback-blue","feedback-grey","aux-blue","aux-purple","aux-orange","aux-lemon","aux-pink","brand-weni-soft"].indexOf(n)!==-1}},clickable:{type:Boolean,default:!1},typeAction:{type:String,default:null,validator(n){return["add","config","edit"].indexOf(n)!==-1}},buttonAction:{type:Function,default:()=>{}}},computed:{currentTypeIcon(){return this.icon?this.icon:this.type==="title"?"graph-stats-1":this.type==="dash"?"messages-bubble-1":this.type==="status"?"science-fiction-robot-2":this.type==="account"?"single-neutral-2":null},currentComponent(){return this.type==="title"?Co:this.type==="dash"?cD:this.type==="status"?xD:this.type==="account"?LD:this.type==="default"?HD:this.type==="blank"?UD:this.type==="content"?QD:this.type==="marketplace"?aA:Co}},methods:{openModal(){this.$emit("openModal")}}};function sA(n,t,i,s,l,r){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.currentComponent),e.mergeProps({class:"unnnic-card-component"},n.$attrs,{title:i.title,text:i.text,info:i.info,icon:r.currentTypeIcon,iconSrc:i.iconSrc,rating:i.rating,comments:i.comments,typeAction:i.typeAction,buttonAction:i.buttonAction,value:i.value,percent:i.percent,invertedPercentage:i.invertedPercentage||null,status:i.status,description:i.description,infoPosition:i.infoPosition,enabled:i.enabled,scheme:i.scheme,clickable:i.clickable||null,hasInformationIcon:i.hasInformationIcon||null,onOpenModal:r.openModal}),e.createSlots({_:2},[e.renderList(n.$slots,(c,u)=>({name:u,fn:e.withCtx(()=>[e.renderSlot(n.$slots,u)])}))]),1040,["title","text","info","icon","iconSrc","rating","comments","typeAction","buttonAction","value","percent","invertedPercentage","status","description","infoPosition","enabled","scheme","clickable","hasInformationIcon","onOpenModal"])}const rA=_(oA,[["render",sA]]),uK="",lA={name:"UnnnicTag",components:{UnnnicIcon:O},props:{text:{type:String,default:null},clickable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hasCloseIcon:{type:Boolean,default:!1},scheme:{type:String,default:"aux-purple"}},methods:{closeClicked(){this.closeClicked&&this.$emit("close-click")},emitClose(){this.$emit("close")}}};function dA(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`unnnic-tag
37
+ `),(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createTextVNode(e.toDisplayString(c)+" ",1),Sb],64))),128)),i.shortcutText?(e.openBlock(),e.createElementBlock("span",zb,e.toDisplayString(i.shortcutText),1)):e.createCommentVNode("",!0)],6),[[e.vShow,i.enabled]])],34)}const Oe=_(Eb,[["render",Tb],["__scopeId","data-v-5e81b292"]]),WJ="",Vb={name:"SidebarItem",components:{UIcon:O,ToolTip:Oe},props:{active:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},icon:{type:String,default:null},iconFilled:{type:Boolean,default:!1},text:{type:String,default:null},enableTooltip:{default:!1}},data(){return{ToolTip:Oe}},methods:{onClick(){this.$emit("click")}}},Hb={class:"unnnic-side-bar-item__label"};function jb(n,t,i,s,l,r){const c=e.resolveComponent("UIcon"),u=e.resolveComponent("ToolTip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-side-bar-item":!0,"unnnic-side-bar-item--active":i.active,"unnnic--clickable":!0}),onClick:t[0]||(t[0]=(...m)=>r.onClick&&r.onClick(...m))},[e.createVNode(u,{enabled:i.enableTooltip,text:i.text,side:"right"},{default:e.withCtx(()=>[e.createVNode(c,{class:"unnnic-side-bar-item__icon",scheme:i.active?"brand-weni-soft":"neutral-cloudy",size:"sm",icon:i.icon,filled:i.iconFilled},null,8,["scheme","icon","filled"]),e.createElementVNode("span",Hb,[e.createTextVNode(e.toDisplayString(i.text)+" ",1),e.renderSlot(n.$slots,"default")])]),_:3},8,["enabled","text"])],2)}const Ib=_(Vb,[["render",jb]]),QJ="",Ob={name:"UnnnicSidebarMenu",props:{text:{type:String,default:null}}},Fb={class:"unnnic-side-bar-menu"},Ub={class:"unnnic-side-bar-menu__title"};function Pb(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",Fb,[e.createElementVNode("p",Ub,e.toDisplayString(i.text),1),e.renderSlot(n.$slots,"default")])}const Yb=_(Ob,[["render",Pb]]);function mo(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function Bi(n){return typeof n=="function"?n():e.unref(n)}const ho=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Zb=Object.prototype.toString,Rb=n=>Zb.call(n)==="[object Object]",Ni=()=>{},ya=Wb();function Wb(){var n,t;return ho&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const po={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Qb(...n){if(n.length!==1)return e.toRef(...n);const t=n[0];return typeof t=="function"?e.readonly(e.customRef(()=>({get:t,set:Ni}))):e.ref(t)}function Li(n){var t;const i=Bi(n);return(t=i==null?void 0:i.$el)!=null?t:i}const yo=ho?window:void 0;function D2(...n){let t,i,s,l;if(typeof n[0]=="string"||Array.isArray(n[0])?([i,s,l]=n,t=yo):[t,i,s,l]=n,!t)return Ni;Array.isArray(i)||(i=[i]),Array.isArray(s)||(s=[s]);const r=[],c=()=>{r.forEach(w=>w()),r.length=0},u=(w,M,b,A)=>(w.addEventListener(M,b,A),()=>w.removeEventListener(M,b,A)),m=e.watch(()=>[Li(t),Bi(l)],([w,M])=>{if(c(),!w)return;const b=Rb(M)?{...M}:M;r.push(...i.flatMap(A=>s.map(z=>u(w,A,z,b))))},{immediate:!0,flush:"post"}),y=()=>{m(),c()};return mo(y),y}let go=!1;function wo(n,t,i={}){const{window:s=yo,ignore:l=[],capture:r=!0,detectIframe:c=!1}=i;if(!s)return Ni;ya&&!go&&(go=!0,Array.from(s.document.body.children).forEach(b=>b.addEventListener("click",Ni)),s.document.documentElement.addEventListener("click",Ni));let u=!0;const m=b=>l.some(A=>{if(typeof A=="string")return Array.from(s.document.querySelectorAll(A)).some(z=>z===b.target||b.composedPath().includes(z));{const z=Li(A);return z&&(b.target===z||b.composedPath().includes(z))}}),w=[D2(s,"click",b=>{const A=Li(n);if(!(!A||A===b.target||b.composedPath().includes(A))){if(b.detail===0&&(u=!m(b)),!u){u=!0;return}t(b)}},{passive:!0,capture:r}),D2(s,"pointerdown",b=>{const A=Li(n);u=!m(b)&&!!(A&&!b.composedPath().includes(A))},{passive:!0}),c&&D2(s,"blur",b=>{setTimeout(()=>{var A;const z=Li(n);((A=s.document.activeElement)==null?void 0:A.tagName)==="IFRAME"&&!(z!=null&&z.contains(s.document.activeElement))&&t(b)},0)})].filter(Boolean);return()=>w.forEach(b=>b())}const A2={[po.mounted](n,t){const i=!t.modifiers.bubble;if(typeof t.value=="function")n.__onClickOutside_stop=wo(n,t.value,{capture:i});else{const[s,l]=t.value;n.__onClickOutside_stop=wo(n,s,Object.assign({capture:i},l))}},[po.unmounted](n){n.__onClickOutside_stop()}};function ga(n){return typeof Window<"u"&&n instanceof Window?n.document.documentElement:typeof Document<"u"&&n instanceof Document?n.documentElement:n}function _o(n){const t=window.getComputedStyle(n);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&n.clientWidth<n.scrollWidth||t.overflowY==="auto"&&n.clientHeight<n.scrollHeight)return!0;{const i=n.parentNode;return!i||i.tagName==="BODY"?!1:_o(i)}}function qb(n){const t=n||window.event,i=t.target;return _o(i)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const B2=new WeakMap;function Gb(n,t=!1){const i=e.ref(t);let s=null;e.watch(Qb(n),c=>{const u=ga(Bi(c));if(u){const m=u;B2.get(m)||B2.set(m,m.style.overflow),i.value&&(m.style.overflow="hidden")}},{immediate:!0});const l=()=>{const c=ga(Bi(n));!c||i.value||(ya&&(s=D2(c,"touchmove",u=>{qb(u)},{passive:!1})),c.style.overflow="hidden",i.value=!0)},r=()=>{var c;const u=ga(Bi(n));!u||!i.value||(ya&&(s==null||s()),u.style.overflow=(c=B2.get(u))!=null?c:"",B2.delete(u),i.value=!1)};return mo(r),e.computed({get(){return i.value},set(c){c?l():r()}})}function Xb(){let n=!1;const t=e.ref(!1);return(i,s)=>{if(t.value=s.value,n)return;n=!0;const l=Gb(i,s.value);e.watch(t,r=>l.value=r)}}Xb();const Jb={name:"Flag",components:{UnnnicIcon:O},props:{code:{type:String,default:null},size:{type:String,default:"md",validator(n){return["nano","xs","sm","md","lg"].indexOf(n)!==-1}}},computed:{name(){return{"pt-br":"Brazil",en:"USA",es:"Spain"}[this.code]}}};function Kb(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createBlock(c,{icon:r.name,size:i.size},null,8,["icon","size"])}const $b=_(Jb,[["render",Kb]]),qJ="",eM={name:"LanguageSelect",components:{UnnnicFlag:$b,UnnnicIcon:O},directives:{onClickOutside:A2},props:{modelValue:{type:String,default:""},position:{type:String,default:"top-right"},contracted:{type:Boolean,default:!1},supportedLanguages:{type:Array,default:()=>["pt-br","en"]}},data(){return{open:!1,val:this.modelValue,unnnicFontSize:16}},computed:{languages(){const n={"pt-br":"Português - Brasil",en:"English",es:"Español"};return this.supportedLanguages.reduce((t,i)=>({...t,[i]:n[i]}),{})},otherLanguages(){return this.languageList.filter(({id:n})=>n!==this.val)},languageList(){return Object.entries(this.languages).map(([n,t])=>({id:n,name:t}))},dropdownIcon(){let n="";return this.position==="bottom"?n=this.open?"up":"down":n=this.open?"down":"up",`arrow-button-${n}-1`}},watch:{val(){this.$emit("update:model-value",this.val)},modelValue(){this.val=this.modelValue}},methods:{onClickTrigger(){this.open=!this.open},onClickOutside(){this.open&&(this.open=!1)}}},nM={key:0,class:"unnnic-language-select contracted"},iM={class:"option"},tM=["onClick"],aM={key:1,class:"unnnic-language-select normal"},oM={class:"option"},sM={class:"label"},rM=e.createElementVNode("div",{class:"divider"},null,-1),lM=["onClick"],dM={class:"label"},cM=e.createElementVNode("div",{class:"divider"},null,-1),fM={class:"option"},uM={class:"label"};function mM(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicFlag"),u=e.resolveComponent("UnnnicIcon"),m=e.resolveDirective("on-click-outside");return i.contracted?e.withDirectives((e.openBlock(),e.createElementBlock("div",nM,[e.createElementVNode("div",{class:e.normalizeClass(["container contracted",{open:l.open}]),onClick:t[0]||(t[0]=(...y)=>r.onClickTrigger&&r.onClickTrigger(...y))},[e.createElementVNode("div",iM,[e.createVNode(c,{size:"sm",code:l.val},null,8,["code"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.otherLanguages,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"option",onClick:w=>l.val=y.id},[e.createVNode(c,{size:"sm",code:y.id},null,8,["code"])],8,tM))),128))],2)])),[[m,r.onClickOutside]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",aM,[e.createElementVNode("div",{class:e.normalizeClass(["container normal",{open:l.open}]),onClick:t[1]||(t[1]=(...y)=>r.onClickTrigger&&r.onClickTrigger(...y))},[e.createElementVNode("div",{style:e.normalizeStyle({position:"absolute",[i.position==="bottom"?"top":"bottom"]:-.125*l.unnnicFontSize+"px",width:"100%",padding:.0625*l.unnnicFontSize+"px",left:-.0625*l.unnnicFontSize+"px"}),class:"all"},[i.position==="bottom"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",oM,[e.createVNode(c,{size:"sm",code:l.val},null,8,["code"]),e.createElementVNode("div",sM,e.toDisplayString(r.languages[l.val]),1),e.createVNode(u,{size:"xs",icon:r.dropdownIcon,scheme:"neutral-clean"},null,8,["icon"])]),rM],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.otherLanguages,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"option",onClick:w=>l.val=y.id},[e.createVNode(c,{size:"sm",code:y.id},null,8,["code"]),e.createElementVNode("div",dM,e.toDisplayString(r.languages[y.id]),1)],8,lM))),128)),i.position!=="bottom"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[cM,e.createElementVNode("div",fM,[e.createVNode(c,{size:"sm",code:l.val},null,8,["code"]),e.createElementVNode("div",uM,e.toDisplayString(r.languages[l.val]),1),e.createVNode(u,{size:"xs",icon:r.dropdownIcon,scheme:"neutral-clean"},null,8,["icon"])])],64)):e.createCommentVNode("",!0)],4)],2)])),[[m,r.onClickOutside]])}const ko=_(eM,[["render",mM]]),GJ="",hM={components:{ToolTip:Oe,UnnnicIcon:O,LanguageSelect:ko},props:{hideExpandButton:{type:Boolean,default:!1},expanded:{type:Boolean,default:!0},items:{type:Array},languages:{type:Array,default:()=>["pt-br","en"]},language:{type:String},hideText:{type:String}},data(){return{hoverTop:0,call:null,blockActiveId:""}},methods:{clickOption(n){n.click&&n.click(n)},toggleExpanded(){this.$emit("toggle-expanded",!this.expanded)},hover(n,t){this.$slots[`block-${t}`]&&(this.hoverTop=n.srcElement.offsetTop,this.blockActiveId=t,clearTimeout(this.call),setTimeout(()=>{this.$refs["sidebar-modal"].classList.add("active","move-transition")},0))},mouseout(){this.$refs["sidebar-modal"].classList.remove("active"),this.call=setTimeout(()=>{this.$refs["sidebar-modal"].classList.remove("move-transition")},300)}}},pM=n=>(e.pushScopeId("data-v-11f92a8d"),n=n(),e.popScopeId(),n),yM={class:"header"},gM={class:"unnnic-sidebar-primary-content"},wM={class:"category-label"},_M={class:"options"},kM=["href","onClick"],CM={class:"label"},vM={key:0,class:"tag"},xM=pM(()=>e.createElementVNode("div",{class:"divider"},null,-1)),bM={class:"footer"},MM={class:"category"},DM={class:"options"},AM={class:"option-container"},BM={class:"option-container"},NM={class:"label"};function LM(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon"),u=e.resolveComponent("ToolTip"),m=e.resolveComponent("LanguageSelect");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["unnnic-sidebar-primary",{"unnnic-sidebar-primary-expanded":i.expanded}])},[e.createElementVNode("div",yM,[e.renderSlot(n.$slots,"header",{},void 0,!0)]),e.createElementVNode("div",null,[e.renderSlot(n.$slots,"search",{},void 0,!0)]),e.createElementVNode("div",gM,[e.createElementVNode("div",{ref:"sidebar-modal",class:"hover",style:e.normalizeStyle({top:`${l.hoverTop}px`})},[e.renderSlot(n.$slots,"block-"+l.blockActiveId,{},void 0,!0)],4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(y,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"category"},[e.createElementVNode("div",wM,e.toDisplayString(y.label),1),e.createElementVNode("div",_M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.items,(M,b)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"option-container"},[e.createVNode(u,{enabled:!i.expanded,text:`${M.label} ${M.tag||""}`.trim(),side:"right",onMouseenter:A=>r.hover(A,M.id),onMouseleave:r.mouseout},{default:e.withCtx(()=>[e.createElementVNode("a",{href:M.viewUrl,class:e.normalizeClass(["option",{selected:M.active,disabled:n.$slots[`block-${M.id}`]}]),onClick:e.withModifiers(()=>{n.$slots[`block-${M.id}`]||r.clickOption(M)},["prevent"])},[e.createVNode(c,{icon:M.icon,scheme:M.active?"brand-weni-soft":"neutral-cloudy",size:i.expanded?"ant":"md",filled:M.active},null,8,["icon","scheme","size","filled"]),e.createElementVNode("span",CM,e.toDisplayString(M.label),1),M.tag?(e.openBlock(),e.createElementBlock("span",vM,e.toDisplayString(M.tag),1)):e.createCommentVNode("",!0),M.notify?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(M.notify&&!i.expanded?"notify":"")},[e.createVNode(c,{icon:"indicator",scheme:"brand-weni-soft",size:"ant"})],2)):e.createCommentVNode("",!0)],10,kM)]),_:2},1032,["enabled","text","onMouseenter","onMouseleave"])]))),128))]),xM]))),128))]),e.createElementVNode("div",bM,[e.createElementVNode("div",MM,[e.createElementVNode("div",DM,[e.createElementVNode("div",AM,[e.createVNode(m,{class:"language-select",contracted:!i.expanded,value:i.language,supportedLanguages:i.languages,onInput:t[0]||(t[0]=y=>n.$emit("change-language",y))},null,8,["contracted","value","supportedLanguages"])]),e.withDirectives(e.createElementVNode("div",BM,[e.createVNode(u,{enabled:!i.expanded,text:i.hideText,side:"right"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"option",onClick:t[1]||(t[1]=(...y)=>r.toggleExpanded&&r.toggleExpanded(...y))},[e.createVNode(c,{icon:i.expanded?"close_fullscreen":"open_in_full",scheme:"neutral-cloudy",size:i.expanded?"ant":"md"},null,8,["icon","size"]),e.createElementVNode("span",NM,e.toDisplayString(i.hideText),1)])]),_:1},8,["enabled","text"])],512),[[e.vShow,!i.hideExpandButton]])])])])],2)}const EM=_(hM,[["render",LM],["__scopeId","data-v-11f92a8d"]]),XJ="",SM={name:"UnnnicTable",components:{},props:{items:{type:Array}},data(){return{value:!1}},computed:{}},zM=n=>(e.pushScopeId("data-v-f7abae0e"),n=n(),e.popScopeId(),n),TM={class:"unnnic-table"},VM={class:"header"},HM=zM(()=>e.createElementVNode("div",null,[e.createElementVNode("div",{class:"item-spacer"})],-1)),jM={class:"scroll"};function IM(n,t,i,s,l,r){return e.withDirectives((e.openBlock(),e.createElementBlock("div",TM,[e.createElementVNode("div",VM,[e.renderSlot(n.$slots,"header",{},void 0,!0)]),HM,e.createElementVNode("div",jM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(c,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"item"},[e.renderSlot(n.$slots,"item",{item:c},void 0,!0)]))),128))])],512)),[[e.vShow,!0]])}const OM=_(SM,[["render",IM],["__scopeId","data-v-f7abae0e"]]),JJ="",KJ="",FM={name:"UnnnicTableRow",props:{headers:{type:Array}},data(){return{}}},UM={class:"table-row"},PM={class:"break-text"};function YM(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",UM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.headers,(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c.id},[e.createElementVNode("div",{class:"col",style:e.normalizeStyle({width:c.width,flex:c.flex,minWidth:0})},[e.renderSlot(n.$slots,c.id,{},()=>[e.createElementVNode("div",PM,e.toDisplayString(c.text),1)],!0)],4),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["divider",{condensed:c.condensed}])},null,2),[[e.vShow,u+1!==i.headers.length]])],64))),128))])}const ZM=_(FM,[["render",YM],["__scopeId","data-v-fdf86ada"]]),$J="",RM={name:"UnnnicDropdown",directives:{onClickOutside:A2},props:{open:{type:Boolean,default:!1},position:{type:String,default:"bottom-left",validator(n){return["top-left","none","bottom-left","bottom-left","bottom-right"].indexOf(n)!==-1}}},data(){return{active:!1}},watch:{open(){this.active=this.open},active(){this.$emit("update:open",this.active)}},methods:{onClickTrigger(){this.active=!this.active},onClickOutside(){this.active&&(this.active=!1)}}},WM={class:"unnnic-dropdown__trigger"};function QM(n,t,i,s,l,r){const c=e.resolveDirective("on-click-outside");return e.openBlock(),e.createElementBlock("div",{class:"unnnic-dropdown",onClick:t[0]||(t[0]=e.withModifiers((...u)=>r.onClickTrigger&&r.onClickTrigger(...u),["stop"]))},[e.createElementVNode("div",WM,[e.renderSlot(n.$slots,"trigger",{},void 0,!0),l.active?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["unnnic-dropdown__content",l.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${i.position}`])},[e.renderSlot(n.$slots,"default",{},void 0,!0)],2)),[[c,r.onClickOutside]]):e.createCommentVNode("",!0)])])}const wa=_(RM,[["render",QM],["__scopeId","data-v-1fb8c82b"]]),eK="",qM={name:"UnnnicDropdownItem"},GM={class:"unnnic-dropdown-item unnnic--clickable"};function XM(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("a",GM,[e.renderSlot(n.$slots,"default")])}const JM=_(qM,[["render",XM]]),nK="",KM={components:{UnnnicIcon:O},props:{enabled:{type:Boolean,default:!0},icon:{type:String,default:"graph-stats-1"},size:{type:String,default:"sm",validator(n){return["nano","xs","sm","lg","xl"].indexOf(n)!==-1}},scheme:{type:String,default:"aux-blue"},filled:{type:Boolean,default:!1},opacity:{type:Boolean,default:!0}},computed:{iconSize(){return{nano:"xs",xs:"sm",sm:"md",lg:"lg",xl:"xl"}[this.size]}}};function $M(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["unnnic-avatar-icon",i.scheme,i.size,{disabled:!i.enabled},i.filled,{opacity:!i.opacity}])},[e.createVNode(c,{icon:i.icon,scheme:i.enabled?i.scheme:"neutral-cloudy",size:r.iconSize,filled:i.filled},null,8,["icon","scheme","size","filled"])],2)}const Xn=_(KM,[["render",$M],["__scopeId","data-v-ecaaa6f3"]]),iK="",eD={name:"IconLoading",components:{UnnnicIcon:O},props:{scheme:{type:String,default:"neutral-dark"},size:{type:String,default:"lg"}}};function nD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createBlock(c,{class:"unnnic-icon-loading",icon:"progress_activity",scheme:i.scheme,size:i.size},null,8,["scheme","size"])}const _a=_(eD,[["render",nD],["__scopeId","data-v-97257015"]]),tK="",iD={name:"UnnnicCard",components:{UnnnicIcon:O,UnnnicAvatarIcon:Xn},props:{title:{type:String,default:null},value:{type:Number,default:null},icon:{type:String,default:null},percent:{type:Number,default:0},invertedPercentage:{type:Boolean,default:!1},scheme:{type:String,default:null}},computed:{color(){return this.invertedPercentage?this.percent<0?"green":"red":this.percent<0?"red":"green"}}},tD={class:"unnnic-card-dash"},aD={class:"header"},oD={class:"label"},sD={class:"content"},rD={class:"value"},lD={class:"label"};function dD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicAvatarIcon"),u=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",tD,[e.createElementVNode("div",aD,[e.createVNode(c,{size:"sm",scheme:i.scheme,icon:i.icon},null,8,["scheme","icon"]),e.createElementVNode("div",oD,e.toDisplayString(i.title),1)]),e.createElementVNode("div",sD,[e.createElementVNode("div",rD,e.toDisplayString(i.value),1),i.percent?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["percent",`unnnic-card-scheme--feedback-${r.color}`])},[e.createVNode(u,{icon:`graph-stats-${i.percent>=0?"ascend":"descend"}-2`,scheme:`feedback-${r.color}`,size:"sm",class:"icon"},null,8,["icon","scheme"]),e.createElementVNode("div",lD,e.toDisplayString(i.percent>=0?`+${i.percent}%`:`${i.percent}%`),1)],2)):e.createCommentVNode("",!0)])])}const cD=_(iD,[["render",dD],["__scopeId","data-v-6ca994fa"]]),aK="",fD={name:"UnnnicCard",components:{ToolTip:Oe,UnnnicIcon:O},props:{title:{type:String,default:null},info:{type:String,default:null},icon:{type:String,default:null},infoPosition:{type:String,default:"right"},scheme:{type:String,default:null},hasInformationIcon:{type:Boolean,default:!0},enabled:{type:Boolean,default:!0}}},uD={class:"unnnic-card-title"},mD={class:"title"};function hD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon"),u=e.resolveComponent("ToolTip");return e.openBlock(),e.createElementBlock("div",uD,[e.createElementVNode("div",{class:e.normalizeClass(["avatar-icon",`unnnic-card-scheme--${i.scheme}`])},[e.createVNode(c,{icon:i.icon,scheme:i.scheme,size:"md"},null,8,["icon","scheme"])],2),e.createElementVNode("div",mD,e.toDisplayString(i.title),1),i.hasInformationIcon?(e.openBlock(),e.createBlock(u,{key:0,class:"information",side:i.infoPosition,text:i.info,enabled:i.enabled},{default:e.withCtx(()=>[e.createVNode(c,{icon:"information-circle-4",class:"unnnic-card-title__content_info",size:"sm",scheme:"neutral-soft"})]),_:1},8,["side","text","enabled"])):e.createCommentVNode("",!0)])}const Co=_(fD,[["render",hD],["__scopeId","data-v-acb3c7ee"]]),oK="",pD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},status:{type:String,default:null},scheme:{type:String,default:null}}},yD={class:"header"},gD={class:"label"},wD={class:"content"},_D={class:"title-container"},kD={class:"title"},CD={class:"description"};function vD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${i.scheme}--border`])},[e.createElementVNode("div",yD,[e.createVNode(c,{icon:i.icon,scheme:"neutral-dark",size:"md",class:"icon"},null,8,["icon"]),e.createElementVNode("div",gD,e.toDisplayString(i.title),1)]),e.createElementVNode("div",wD,[e.createElementVNode("div",_D,[e.createVNode(c,{icon:"indicator",scheme:i.scheme,size:"sm"},null,8,["scheme"]),e.createElementVNode("div",kD,e.toDisplayString(i.status),1)]),e.createElementVNode("div",CD,e.toDisplayString(i.description),1)])],2)}const xD=_(pD,[["render",vD],["__scopeId","data-v-d34a2242"]]),sK="",bD={name:"UnnnicCard",components:{UnnnicAvatarIcon:Xn},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},enabled:{type:Boolean,default:!0},scheme:{type:String,default:null}}},MD={class:"icon"},DD={class:"content"},AD={class:"title"},BD={class:"description"};function ND(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicAvatarIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-account":!0,enabled:i.enabled})},[e.createElementVNode("div",MD,[e.createVNode(c,{size:"xs",scheme:i.scheme,icon:i.icon,enabled:i.enabled},null,8,["scheme","icon","enabled"])]),e.createElementVNode("div",DD,[e.createElementVNode("div",AD,e.toDisplayString(i.title),1),e.createElementVNode("div",BD,e.toDisplayString(i.description),1)])],2)}const LD=_(bD,[["render",ND],["__scopeId","data-v-d14c13a7"]]),rK="",ED={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},SD={class:"unnnic-card-default__content"},zD={class:"unnnic-card-default__title"},TD=["title"];function VD(n,t,i,s,l,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-default":!0,"unnnic-card-default__clickable":i.clickable})},[e.createElementVNode("div",SD,[e.createElementVNode("div",zD,e.toDisplayString(i.title),1),e.createElementVNode("p",{class:"unnnic-card-default__description",title:i.description},e.toDisplayString(i.description),9,TD)])],2)}const HD=_(ED,[["render",VD]]),lK="",jD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},ID={class:"unnnic-card-blank__content"},OD={class:"unnnic-card-blank__content__text"};function FD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-blank":!0,"unnnic-card-blank__clickable":i.clickable})},[e.createElementVNode("div",ID,[e.createVNode(c,{icon:i.icon,scheme:"neutral-clean",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),e.createElementVNode("div",OD,e.toDisplayString(i.text),1)])],2)}const UD=_(jD,[["render",FD]]),dK="",PD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},enabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}}},YD={class:"unnnic-card-content__content"},ZD={class:"unnnic-card-content__content__title"},RD={class:"unnnic-card-content__content__description"};function WD(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-content":!0,"unnnic-card-content--disabled":!i.enabled,"unnnic-card-content__clickable":i.clickable})},[e.createElementVNode("div",{class:e.normalizeClass(["unnnic-card-content__icon",i.enabled&&"unnnic-card-content__icon--disabled"])},[e.createVNode(c,{icon:i.icon,scheme:"neutral-cloudy",size:"sm"},null,8,["icon"])],2),e.createElementVNode("div",YD,[e.createElementVNode("div",ZD,e.toDisplayString(i.title),1),e.createElementVNode("div",RD,e.toDisplayString(i.description),1)])],2)}const QD=_(PD,[["render",WD]]),cK="",qD={name:"UnnnicCard",components:{UnnnicIcon:O},props:{title:{type:String,default:null},description:{type:String,default:null},comments:{type:String,default:null},clickable:{type:Boolean,default:!1},iconSrc:{type:String,default:null},rating:{type:Number,default:0},typeAction:{type:String,default:null}},methods:{cardClick(){this.$emit("openModal")}}},GD={class:e.normalizeClass(["unnnic-card-marketplace__icons"])},XD=["src"],JD={class:"unnnic-card-marketplace__content"},KD={class:"unnnic-card-marketplace__content__title"},$D=["title"],eA={key:0,class:"unnnic-card-marketplace__content__rating"},nA={class:"unnnic-card-marketplace__content__rating__value"},iA={class:"unnnic-card-marketplace__content__rating__comments"};function tA(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"unnnic-card-marketplace":!0,"unnnic-card-marketplace__clickable":i.clickable,"unnnic-card-marketplace__add":i.typeAction==="add","unnnic-card-marketplace__config":i.typeAction==="config","unnnic-card-marketplace__edit":i.typeAction==="edit"}),onClick:t[0]||(t[0]=(...u)=>r.cardClick&&r.cardClick(...u))},[e.createElementVNode("div",GD,[e.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:i.iconSrc},null,8,XD),e.renderSlot(n.$slots,"actions")]),e.createElementVNode("div",JD,[e.createElementVNode("div",KD,e.toDisplayString(i.title),1),e.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:i.description},e.toDisplayString(i.description),9,$D),i.typeAction==="add"?(e.openBlock(),e.createElementBlock("div",eA,[e.createVNode(c,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant"}),e.createElementVNode("div",nA,e.toDisplayString(i.rating),1),e.createElementVNode("div",iA," ("+e.toDisplayString(i.comments)+") ",1)])):e.createCommentVNode("",!0)])],2)}const aA=_(qD,[["render",tA]]),fK="",oA={name:"UnnnicCard",props:{type:{type:String,default:"title",validator(n){return["title","status","dash","account","default","blank","content","marketplace"].indexOf(n)!==-1}},title:{type:String,default:null},description:{type:String,default:null},status:{type:String,default:null},info:{type:String,default:null},text:{type:String,default:null},value:{type:Number,default:null},percent:{type:Number,default:0},invertedPercentage:{type:Boolean,default:!1},rating:{type:Number,default:0},comments:{type:String,default:null},enabled:{type:Boolean,default:!0},icon:{type:String,default:null},iconSrc:{type:String,default:null},infoPosition:{type:String,default:"right"},hasInformationIcon:{type:Boolean,default:!0},scheme:{type:String,default:"aux-blue",validator(n){return["feedback-red","feedback-green","feedback-yellow","feedback-blue","feedback-grey","aux-blue","aux-purple","aux-orange","aux-lemon","aux-pink","brand-weni-soft"].indexOf(n)!==-1}},clickable:{type:Boolean,default:!1},typeAction:{type:String,default:null,validator(n){return["add","config","edit"].indexOf(n)!==-1}},buttonAction:{type:Function,default:()=>{}}},computed:{currentTypeIcon(){return this.icon?this.icon:this.type==="title"?"graph-stats-1":this.type==="dash"?"messages-bubble-1":this.type==="status"?"science-fiction-robot-2":this.type==="account"?"single-neutral-2":null},currentComponent(){return this.type==="title"?Co:this.type==="dash"?cD:this.type==="status"?xD:this.type==="account"?LD:this.type==="default"?HD:this.type==="blank"?UD:this.type==="content"?QD:this.type==="marketplace"?aA:Co}},methods:{openModal(){this.$emit("openModal")}}};function sA(n,t,i,s,l,r){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.currentComponent),e.mergeProps({class:"unnnic-card-component"},n.$attrs,{title:i.title,text:i.text,info:i.info,icon:r.currentTypeIcon,iconSrc:i.iconSrc,rating:i.rating,comments:i.comments,typeAction:i.typeAction,buttonAction:i.buttonAction,value:i.value,percent:i.percent,invertedPercentage:i.invertedPercentage||null,status:i.status,description:i.description,infoPosition:i.infoPosition,enabled:i.enabled,scheme:i.scheme,clickable:i.clickable||null,hasInformationIcon:i.hasInformationIcon||null,onOpenModal:r.openModal}),e.createSlots({_:2},[e.renderList(n.$slots,(c,u)=>({name:u,fn:e.withCtx(()=>[e.renderSlot(n.$slots,u)])}))]),1040,["title","text","info","icon","iconSrc","rating","comments","typeAction","buttonAction","value","percent","invertedPercentage","status","description","infoPosition","enabled","scheme","clickable","hasInformationIcon","onOpenModal"])}const rA=_(oA,[["render",sA]]),uK="",lA={name:"UnnnicTag",components:{UnnnicIcon:O},props:{text:{type:String,default:null},clickable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hasCloseIcon:{type:Boolean,default:!1},scheme:{type:String,default:"aux-purple"}},methods:{closeClicked(){this.closeClicked&&this.$emit("close-click")},emitClose(){this.$emit("close")}}};function dA(n,t,i,s,l,r){const c=e.resolveComponent("UnnnicIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`unnnic-tag
38
38
  ${i.disabled?"unnnic-tag--disabled":`unnnic-tag-scheme--${i.scheme}`}
39
39
  ${i.clickable?"unnnic-tag--clickable":""}`)},[e.createElementVNode("span",{class:e.normalizeClass(`unnnic-tag__label
40
40
  ${i.hasCloseIcon?"unnnic-tag__label--hasIcon":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weni/unnnic-system",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -17,6 +17,7 @@
17
17
  :scheme="active ? 'brand-weni-soft' : 'neutral-cloudy'"
18
18
  size="sm"
19
19
  :icon="icon"
20
+ :filled="iconFilled"
20
21
  />
21
22
  <span class="unnnic-side-bar-item__label">
22
23
  {{ text }}
@@ -46,6 +47,10 @@ export default {
46
47
  type: String,
47
48
  default: null,
48
49
  },
50
+ iconFilled: {
51
+ type: Boolean,
52
+ default: false,
53
+ },
49
54
  text: {
50
55
  type: String,
51
56
  default: null,