@sysvale/cuida 3.137.6 → 3.138.0
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.
|
@@ -2722,7 +2722,7 @@ const Cc = {
|
|
|
2722
2722
|
}
|
|
2723
2723
|
}, cv = () => {
|
|
2724
2724
|
et((e) => ({
|
|
2725
|
-
|
|
2725
|
+
"314bff93": e.widthResolver
|
|
2726
2726
|
}));
|
|
2727
2727
|
}, dv = hp.setup;
|
|
2728
2728
|
hp.setup = dv ? (e, t) => (cv(), dv(e, t)) : cv;
|
|
@@ -2758,7 +2758,7 @@ function YT(e, t, n, i, s, a) {
|
|
|
2758
2758
|
[o, a.tooltipDisabled]
|
|
2759
2759
|
]);
|
|
2760
2760
|
}
|
|
2761
|
-
const Xn = /* @__PURE__ */ pe(hp, [["render", YT], ["__scopeId", "data-v-
|
|
2761
|
+
const Xn = /* @__PURE__ */ pe(hp, [["render", YT], ["__scopeId", "data-v-03230ef0"]]), UT = {
|
|
2762
2762
|
components: {
|
|
2763
2763
|
CdsIcon: Fe,
|
|
2764
2764
|
CdsButton: Xn
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
19
19
|
|
|
20
20
|
`,`1) content: element.innerHTML
|
|
21
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=r.reduce(function(d,h){var f=h&&N_(h,a);return f&&d.push(f),d},[]);return ul(e)?l[0]:l}Is.defaultProps=ti,Is.setDefaultProps=$_,Is.currentInput=ta,Object.assign({},im,{effect:function(t){var n=t.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}}),Is.setDefaultProps({render:Pm});const fl={mounted(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content)return;const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance=Is(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},updated(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null);return}const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance?e._tippyInstance.setProps({content:n,...t.value.options||{}}):e._tippyInstance=Is(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},beforeUnmount(e){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null)}},Za=(e,t)=>Object.keys(e).some(n=>n===t),U1={directives:{cdstip:fl},components:{CdsSpinner:Bs},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},secondary:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","dark"],predefinedSizes:["sm","md","lg"]}},computed:{widthResolver(){return this.block?"100%":"max-content"},tooltipDisabled(){return this.disabled&&this.tooltipText!==""?this.tooltipText:null},predefinedColor(){return this.ghost?"button--ghost":this.secondary?"button--secondary":this.predefinedColors.indexOf(this.variant)>-1?`button--${this.variant}`:"button--green"},predefinedSize(){return this.predefinedSizes.indexOf(this.size)>-1?`button-size--${this.size}`:"button-size--md"},computedStyle(){const e=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${e} ${this.predefinedSize}`}},methods:{hasSlot:Za,clickHandler(){this.disabled||this.$emit("button-click",!0)}}},Fm=()=>{i.useCssVars(e=>({a62163ae:e.widthResolver}))},Rm=U1.setup;U1.setup=Rm?(e,t)=>(Fm(),Rm(e,t)):Fm;const z_={key:1,class:"button__prepend"},L_={key:2,class:"button__append"};function P_(e,t,n,a,r,s){const o=i.resolveComponent("cds-spinner"),l=i.resolveDirective("cdstip");return i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["button__container",s.computedStyle]),onClick:t[0]||(t[0]=i.withModifiers((...d)=>s.clickHandler&&s.clickHandler(...d),["stop"]))},[n.loading?(i.openBlock(),i.createBlock(o,{key:0,variant:"white",size:"sm",class:"button__prepend"})):i.createCommentVNode("",!0),s.hasSlot(e.$slots,"prepend")&&!n.loading?(i.openBlock(),i.createElementBlock("div",z_,[i.renderSlot(e.$slots,"prepend",{},void 0,!0)])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(n.text),1)],!0),s.hasSlot(e.$slots,"append")?(i.openBlock(),i.createElementBlock("div",L_,[i.renderSlot(e.$slots,"append",{},void 0,!0)])):i.createCommentVNode("",!0)],2)),[[l,s.tooltipDisabled]])}const yn=te(U1,[["render",P_],["__scopeId","data-v-d9416ce3"]]),F_={components:{CdsIcon:ke,CdsButton:yn},props:{show:{type:Boolean,default:!1,required:!1},float:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},light:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]}},data(){return{internalShow:!1}},computed:{hasActionSlot(){return Object.keys(this.$slots).some(e=>e==="actions")}},watch:{show(e){this.internalShow=e}},mounted(){this.internalShow=this.show},methods:{handleClose(){this.internalShow=!1,this.$emit("close",!0)}}},R_={key:0,class:"toolbar__container"},H_={key:0,class:"toolbar__buttons-container"},W_={key:1,class:"toolbar__buttons-container"};function Y_(e,t,n,a,r,s){const o=i.resolveComponent("cds-button"),l=i.resolveComponent("cds-icon");return r.internalShow?(i.openBlock(),i.createElementBlock("div",R_,[i.createElementVNode("div",{class:i.normalizeClass({"toolbar--fixed":n.float,"toolbar--light":n.light,"toolbar--dark":!n.light})},[i.renderSlot(e.$slots,"description",{},void 0,!0),s.hasActionSlot?(i.openBlock(),i.createElementBlock("div",H_,[i.renderSlot(e.$slots,"actions",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("div",W_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.actions,(d,h)=>(i.openBlock(),i.createElementBlock("div",{key:h,class:"toolbar__button"},[i.createVNode(o,{id:`btn-${h+1}`,secondary:n.light,variant:"dark",onClick:f=>e.$emit("click",d)},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(d),1)]),_:2},1032,["id","secondary","onClick"])]))),128))])),n.dismissible?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(n.light?"toolbar__icon--light":"toolbar__icon--dark"),onClick:t[0]||(t[0]=(...d)=>s.handleClose&&s.handleClose(...d))},[i.createVNode(l,{name:"x-outline",height:"20",width:"20"})],2)):i.createCommentVNode("",!0)],2)])):i.createCommentVNode("",!0)}const U_=te(F_,[["render",Y_],["__scopeId","data-v-a6869a08"]]);var bn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function j1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ad={exports:{}};ad.exports,function(e,t){var n=200,a="__lodash_hash_undefined__",r=9007199254740991,s="[object Arguments]",o="[object Array]",l="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",v="[object Object]",w="[object Promise]",k="[object RegExp]",x="[object Set]",M="[object String]",B="[object Symbol]",C="[object WeakMap]",$="[object ArrayBuffer]",O="[object DataView]",z="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",ee="[object Int32Array]",W="[object Uint8Array]",ie="[object Uint8ClampedArray]",de="[object Uint16Array]",X="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,ge=/\w*$/,J=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,Y={};Y[s]=Y[o]=Y[$]=Y[O]=Y[l]=Y[d]=Y[z]=Y[I]=Y[F]=Y[j]=Y[ee]=Y[g]=Y[y]=Y[v]=Y[k]=Y[x]=Y[M]=Y[B]=Y[W]=Y[ie]=Y[de]=Y[X]=!0,Y[h]=Y[f]=Y[C]=!1;var U=typeof bn=="object"&&bn&&bn.Object===Object&&bn,ae=typeof self=="object"&&self&&self.Object===Object&&self,be=U||ae||Function("return this")(),Se=t&&!t.nodeType&&t,Ce=Se&&!0&&e&&!e.nodeType&&e,Ie=Ce&&Ce.exports===Se;function at(_,D){return _.set(D[0],D[1]),_}function Le(_,D){return _.add(D),_}function rt(_,D){for(var L=-1,Z=_?_.length:0;++L<Z&&D(_[L],L,_)!==!1;);return _}function pt(_,D){for(var L=-1,Z=D.length,ze=_.length;++L<Z;)_[ze+L]=D[L];return _}function lt(_,D,L,Z){for(var ze=-1,Ee=_?_.length:0;++ze<Ee;)L=D(L,_[ze],ze,_);return L}function le(_,D){for(var L=-1,Z=Array(_);++L<_;)Z[L]=D(L);return Z}function _e(_,D){return _==null?void 0:_[D]}function Ve(_){var D=!1;if(_!=null&&typeof _.toString!="function")try{D=!!(_+"")}catch{}return D}function ct(_){var D=-1,L=Array(_.size);return _.forEach(function(Z,ze){L[++D]=[ze,Z]}),L}function Pe(_,D){return function(L){return _(D(L))}}function dt(_){var D=-1,L=Array(_.size);return _.forEach(function(Z){L[++D]=Z}),L}var Zt=Array.prototype,Xt=Function.prototype,mt=Object.prototype,Je=be["__core-js_shared__"],Tt=function(){var _=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),St=Xt.toString,Et=mt.hasOwnProperty,Mt=mt.toString,nn=RegExp("^"+St.call(Et).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=Ie?be.Buffer:void 0,ue=be.Symbol,Ne=be.Uint8Array,Ue=Pe(Object.getPrototypeOf,Object),an=Object.create,pn=mt.propertyIsEnumerable,_n=Zt.splice,N=Object.getOwnPropertySymbols,ne=Dt?Dt.isBuffer:void 0,oe=Pe(Object.keys,Object),q=Fn(be,"DataView"),T=Fn(be,"Map"),G=Fn(be,"Promise"),fe=Fn(be,"Set"),Be=Fn(be,"WeakMap"),Ke=Fn(Object,"create"),ht=wn(q),Vt=wn(T),ln=wn(G),Jt=wn(fe),Kn=wn(Be),vt=ue?ue.prototype:void 0,Pn=vt?vt.valueOf:void 0;function On(_){var D=-1,L=_?_.length:0;for(this.clear();++D<L;){var Z=_[D];this.set(Z[0],Z[1])}}function si(){this.__data__=Ke?Ke(null):{}}function ji(_){return this.has(_)&&delete this.__data__[_]}function Ta(_){var D=this.__data__;if(Ke){var L=D[_];return L===a?void 0:L}return Et.call(D,_)?D[_]:void 0}function Mo(_){var D=this.__data__;return Ke?D[_]!==void 0:Et.call(D,_)}function ds(_,D){var L=this.__data__;return L[_]=Ke&&D===void 0?a:D,this}On.prototype.clear=si,On.prototype.delete=ji,On.prototype.get=Ta,On.prototype.has=Mo,On.prototype.set=ds;function cn(_){var D=-1,L=_?_.length:0;for(this.clear();++D<L;){var Z=_[D];this.set(Z[0],Z[1])}}function gc(){this.__data__=[]}function yc(_){var D=this.__data__,L=Ia(D,_);if(L<0)return!1;var Z=D.length-1;return L==Z?D.pop():_n.call(D,L,1),!0}function bc(_){var D=this.__data__,L=Ia(D,_);return L<0?void 0:D[L][1]}function vc(_){return Ia(this.__data__,_)>-1}function _c(_,D){var L=this.__data__,Z=Ia(L,_);return Z<0?L.push([_,D]):L[Z][1]=D,this}cn.prototype.clear=gc,cn.prototype.delete=yc,cn.prototype.get=bc,cn.prototype.has=vc,cn.prototype.set=_c;function dn(_){var D=-1,L=_?_.length:0;for(this.clear();++D<L;){var Z=_[D];this.set(Z[0],Z[1])}}function wc(){this.__data__={hash:new On,map:new(T||cn),string:new On}}function kc(_){return qi(this,_).delete(_)}function Cc(_){return qi(this,_).get(_)}function xc(_){return qi(this,_).has(_)}function Sc(_,D){return qi(this,_).set(_,D),this}dn.prototype.clear=wc,dn.prototype.delete=kc,dn.prototype.get=Cc,dn.prototype.has=xc,dn.prototype.set=Sc;function $n(_){this.__data__=new cn(_)}function wr(){this.__data__=new cn}function Mc(_){return this.__data__.delete(_)}function kr(_){return this.__data__.get(_)}function Bc(_){return this.__data__.has(_)}function Ec(_,D){var L=this.__data__;if(L instanceof cn){var Z=L.__data__;if(!T||Z.length<n-1)return Z.push([_,D]),this;L=this.__data__=new dn(Z)}return L.set(_,D),this}$n.prototype.clear=wr,$n.prototype.delete=Mc,$n.prototype.get=kr,$n.prototype.has=Bc,$n.prototype.set=Ec;function Cr(_,D){var L=ms(_)||xr(_)?le(_.length,String):[],Z=L.length,ze=!!Z;for(var Ee in _)Et.call(_,Ee)&&!(ze&&(Ee=="length"||Ao(Ee,Z)))&&L.push(Ee);return L}function us(_,D,L){var Z=_[D];(!(Et.call(_,D)&&ps(Z,L))||L===void 0&&!(D in _))&&(_[D]=L)}function Ia(_,D){for(var L=_.length;L--;)if(ps(_[L][0],D))return L;return-1}function oi(_,D){return _&&Pa(D,ys(D),_)}function hs(_,D,L,Z,ze,Ee,tt){var nt;if(Z&&(nt=Ee?Z(_,ze,Ee,tt):Z(_)),nt!==void 0)return nt;if(!Si(_))return _;var qe=ms(_);if(qe){if(nt=To(_),!D)return Oo(_,nt)}else{var st=Ci(_),Ft=st==f||st==m;if(Mr(_))return Aa(_,D);if(st==v||st==s||Ft&&!Ee){if(Ve(_))return Ee?_:{};if(nt=xi(Ft?{}:_),!D)return Tc(_,oi(nt,_))}else{if(!Y[st])return Ee?_:{};nt=Io(_,st,hs,D)}}tt||(tt=new $n);var kn=tt.get(_);if(kn)return kn;if(tt.set(_,nt),!qe)var Wt=L?$o(_):ys(_);return rt(Wt||_,function(wt,rn){Wt&&(rn=wt,wt=_[rn]),us(nt,rn,hs(wt,D,L,Z,rn,_,tt))}),nt}function Dc(_){return Si(_)?an(_):{}}function Vc(_,D,L){var Z=D(_);return ms(_)?Z:pt(Z,L(_))}function Oc(_){return Mt.call(_)}function Bo(_){if(!Si(_)||zo(_))return!1;var D=gs(_)||Ve(_)?nn:J;return D.test(wn(_))}function Eo(_){if(!Lo(_))return oe(_);var D=[];for(var L in Object(_))Et.call(_,L)&&L!="constructor"&&D.push(L);return D}function Aa(_,D){if(D)return _.slice();var L=new _.constructor(_.length);return _.copy(L),L}function Na(_){var D=new _.constructor(_.byteLength);return new Ne(D).set(new Ne(_)),D}function za(_,D){var L=D?Na(_.buffer):_.buffer;return new _.constructor(L,_.byteOffset,_.byteLength)}function fs(_,D,L){var Z=D?L(ct(_),!0):ct(_);return lt(Z,at,new _.constructor)}function La(_){var D=new _.constructor(_.source,ge.exec(_));return D.lastIndex=_.lastIndex,D}function Do(_,D,L){var Z=D?L(dt(_),!0):dt(_);return lt(Z,Le,new _.constructor)}function $c(_){return Pn?Object(Pn.call(_)):{}}function Vo(_,D){var L=D?Na(_.buffer):_.buffer;return new _.constructor(L,_.byteOffset,_.length)}function Oo(_,D){var L=-1,Z=_.length;for(D||(D=Array(Z));++L<Z;)D[L]=_[L];return D}function Pa(_,D,L,Z){L||(L={});for(var ze=-1,Ee=D.length;++ze<Ee;){var tt=D[ze],nt=void 0;us(L,tt,nt===void 0?_[tt]:nt)}return L}function Tc(_,D){return Pa(_,Tn(_),D)}function $o(_){return Vc(_,ys,Tn)}function qi(_,D){var L=_.__data__;return No(D)?L[typeof D=="string"?"string":"hash"]:L.map}function Fn(_,D){var L=_e(_,D);return Bo(L)?L:void 0}var Tn=N?Pe(N,Object):_t,Ci=Oc;(q&&Ci(new q(new ArrayBuffer(1)))!=O||T&&Ci(new T)!=g||G&&Ci(G.resolve())!=w||fe&&Ci(new fe)!=x||Be&&Ci(new Be)!=C)&&(Ci=function(_){var D=Mt.call(_),L=D==v?_.constructor:void 0,Z=L?wn(L):void 0;if(Z)switch(Z){case ht:return O;case Vt:return g;case ln:return w;case Jt:return x;case Kn:return C}return D});function To(_){var D=_.length,L=_.constructor(D);return D&&typeof _[0]=="string"&&Et.call(_,"index")&&(L.index=_.index,L.input=_.input),L}function xi(_){return typeof _.constructor=="function"&&!Lo(_)?Dc(Ue(_)):{}}function Io(_,D,L,Z){var ze=_.constructor;switch(D){case $:return Na(_);case l:case d:return new ze(+_);case O:return za(_,Z);case z:case I:case F:case j:case ee:case W:case ie:case de:case X:return Vo(_,Z);case g:return fs(_,Z,L);case y:case M:return new ze(_);case k:return La(_);case x:return Do(_,Z,L);case B:return $c(_)}}function Ao(_,D){return D=D??r,!!D&&(typeof _=="number"||me.test(_))&&_>-1&&_%1==0&&_<D}function No(_){var D=typeof _;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?_!=="__proto__":_===null}function zo(_){return!!Tt&&Tt in _}function Lo(_){var D=_&&_.constructor,L=typeof D=="function"&&D.prototype||mt;return _===L}function wn(_){if(_!=null){try{return St.call(_)}catch{}try{return _+""}catch{}}return""}function Po(_){return hs(_,!0,!0)}function ps(_,D){return _===D||_!==_&&D!==D}function xr(_){return Ic(_)&&Et.call(_,"callee")&&(!pn.call(_,"callee")||Mt.call(_)==s)}var ms=Array.isArray;function Sr(_){return _!=null&&Fo(_.length)&&!gs(_)}function Ic(_){return Ro(_)&&Sr(_)}var Mr=ne||gt;function gs(_){var D=Si(_)?Mt.call(_):"";return D==f||D==m}function Fo(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function Si(_){var D=typeof _;return!!_&&(D=="object"||D=="function")}function Ro(_){return!!_&&typeof _=="object"}function ys(_){return Sr(_)?Cr(_):Eo(_)}function _t(){return[]}function gt(){return!1}e.exports=Po}(ad,ad.exports);var j_=ad.exports;const q1=j1(j_),q_={props:{actions:{type:Array,default:()=>[],required:!0},numberOfExpandedActions:{type:Number,default:2,required:!1}},data(){return{action:q1(this.actions),internalNumberOfExpandedActions:this.numberOfExpandedActions,itsBeingShown:!1}},methods:{toggleCollapseState(){this.internalNumberOfExpandedActions=this.itsBeingShown?this.numberOfExpandedActions:this.action.length,this.itsBeingShown=!this.itsBeingShown,this.$emit("expanded",this.itsBeingShown)},handleClick(e){e.disabled||this.$emit("action-clicked",e)}}},G_={class:"action-list"},K_={class:"action-list--right"},Z_=["onClick"];function X_(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("span",G_,[i.createElementVNode("div",K_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.actions,(o,l)=>(i.openBlock(),i.createElementBlock("div",{key:o.title},[i.createVNode(i.Transition,{name:"action-list__slide-fade"},{default:i.withCtx(()=>[l<=r.internalNumberOfExpandedActions-1?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass({"action-list__item":l===0,"action-list__item--left-bordered":l!==0,"action-list__item--disabled":o.disabled}),onClick:i.withModifiers(d=>s.handleClick(o),["stop"])},[i.renderSlot(e.$slots,"action",{list:o},void 0,!0)],10,Z_)):i.createCommentVNode("",!0)]),_:2},1024)]))),128)),n.actions.length>n.numberOfExpandedActions?(i.openBlock(),i.createElementBlock("div",{key:0,class:"action-list__item--left-bordered",onClick:t[0]||(t[0]=i.withModifiers((...o)=>s.toggleCollapseState&&s.toggleCollapseState(...o),["stop"]))},[i.renderSlot(e.$slots,"action-trigger",{},()=>[i.createTextVNode(i.toDisplayString(r.itsBeingShown?"Menos ações":"Mais ações"),1)],!0)])):i.createCommentVNode("",!0)])])}const J_=te(q_,[["render",X_],["__scopeId","data-v-f571698b"]]),Q_={components:{CdsIcon:ke},props:{variant:{type:String,default:"info",required:!1},text:{type:String,default:"Título do AlertCard",required:!1},dismissible:{type:Boolean,default:!1,required:!1}},data(){return{icon:"warning-outline"}},watch:{variant:{handler(e){switch(e){case"info":this.icon="info-outline";break;case"success":this.icon="check-circle-outline";break;case"warning":this.icon="warning-outline";break;case"danger":this.icon="alert-outline";break;default:this.icon="alert-outline";break}},immediate:!0}},methods:{close(){this.$emit("close")}}},ew={id:"alert"},tw={class:"alert__body"},nw={key:0,class:"alert__text"},iw={key:1,class:"alert__text"};function aw(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",ew,[i.createElementVNode("div",{class:i.normalizeClass(["alert",{"alert__container--info":n.variant==="info","alert__container--success":n.variant==="success","alert__container--warning":n.variant==="warning","alert__container--danger":n.variant==="danger"}])},[i.createElementVNode("div",tw,[i.createElementVNode("div",null,[i.createVNode(o,{name:r.icon,class:i.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["name","class"])]),n.text.length>0?(i.openBlock(),i.createElementBlock("span",nw,i.toDisplayString(n.text),1)):(i.openBlock(),i.createElementBlock("span",iw,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))]),n.dismissible?(i.openBlock(),i.createElementBlock("div",{key:0,class:"alert__close-button",onClick:t[0]||(t[0]=(...l)=>s.close&&s.close(...l))},[i.createVNode(o,{name:"x-outline",class:i.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["class"])])):i.createCommentVNode("",!0)],2)])}const rw=te(Q_,[["render",aw],["__scopeId","data-v-8428d00c"]]),sw={components:{CdsIcon:ke},props:{variant:{type:String,default:"info"},selectable:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},noTitle:{type:Boolean,default:!1},title:{type:String,default:"Título do AlertCard"},subTitle:{type:String,default:"Subtítulo do AlertCard"},withIcon:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},data(){return{isSelected:this.value}},computed:{dynamicIcon(){switch(this.variant){case"info":return"info-outline";case"warning":return"warning-outline";case"danger":return"alert-outline";default:return"info-outline"}},alertCardContainerSelected(){let e="";if(this.muted)e="alert-card__container--muted";else if(this.selectable&&(e="alert-card__container--selectable"),this.isSelected)return`${e} alert-card__container--selected-${this.variant}`;return e},iconClass(){return`icon__container--${this.variant} ${this.noTitle?"align-self-center":""}`}}},ow={id:"alert-card"},lw={class:"alert-card__content-container"};function cw(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",ow,[i.createElementVNode("div",{class:i.normalizeClass(["alert-card__container",s.alertCardContainerSelected])},[n.withIcon?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(s.iconClass)},[i.createVNode(o,{height:"24",width:"24",name:s.dynamicIcon,class:i.normalizeClass(`icon--${n.variant}`)},null,8,["name","class"])],2)):i.createCommentVNode("",!0),i.createElementVNode("div",lw,[n.noTitle?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(`alert-card__title--${n.variant}`)},i.toDisplayString(n.title),3)),i.createElementVNode("span",{class:i.normalizeClass(["alert-card__subtitle",`${n.noTitle?"mt-0":"mt-2"}`])},[i.renderSlot(e.$slots,"subTitle-slot",{},()=>[i.createTextVNode(i.toDisplayString(n.subTitle),1)],!0)],2),i.renderSlot(e.$slots,"content-slot",{class:"alert-card__content"},void 0,!0)])],2)])}const dw=te(sw,[["render",cw],["__scopeId","data-v-0f0b30a4"]]),G1={props:{text:{type:String,default:null},vertical:{type:Boolean,default:!1},width:{type:[String,Number],default:null},dimmed:{type:Boolean,default:!1},light:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{sanitizedWidth(){return this.width?`${this.width}px`:"100%"}}},Hm=()=>{i.useCssVars(e=>({"0c5c71fa":e.sanitizedWidth}))},Wm=G1.setup;G1.setup=Wm?(e,t)=>(Hm(),Wm(e,t)):Hm;const uw={key:0};function hw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["divider__container",{"divider__container--inline":n.inline}])},[n.vertical?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",uw,i.toDisplayString(n.text),1)),i.createElementVNode("hr",{class:i.normalizeClass(["divider",{"divider--vertical":n.vertical,"divider--light":n.light,"divider--dimmed":n.dimmed}])},null,2)],2)}const Pr=te(G1,[["render",hw]]),fw={props:{direction:{type:String,default:"bottom"},light:{type:Boolean,default:!1},size:{type:String,default:"md"},animate:{type:Boolean,default:!1}},data(){return{innerDirection:this.direction}},watch:{direction:{handler(){this.animationResolver()},immediate:!0}},methods:{animationResolver(){if(this.animate)switch(this.innerDirection){case"top":this.innerDirection="bottom";break;case"bottom":this.innerDirection="top";break;case"right":this.innerDirection="left";break;case"left":this.innerDirection="right";break;default:this.innerDirection="bottom"}}}};function pw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"chevron",class:i.normalizeClass({"chevron--top":r.innerDirection==="top","chevron--right":r.innerDirection==="right","chevron--bottom":r.innerDirection==="bottom","chevron--left":r.innerDirection==="left","chevron--sm":n.size==="sm","chevron--md":n.size==="md","chevron--lg":n.size==="lg","chevron--light":n.light===!0})},null,2)}const Ii=te(fw,[["render",pw]]),K1={props:{clickable:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1,required:!1}},computed:{widthResolver(){return this.fluid?"100%":"fit-content"}}},Ym=()=>{i.useCssVars(e=>({"5ffc88d7":e.widthResolver}))},Um=K1.setup;K1.setup=Um?(e,t)=>(Ym(),Um(e,t)):Ym;function mw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({"clickable__container--clickable":n.clickable,"clickable__container--not-clickable":!n.clickable}),onClick:t[0]||(t[0]=o=>e.$emit("cds-click",!0))},[i.renderSlot(e.$slots,"default")],2)}const Ai=te(K1,[["render",mw]]),gw={props:{maxHeight:{type:String,default:"300px",required:!0},autoHeight:{type:Boolean,default:!1},horizontalScroll:{type:Boolean,default:!1}}},yw={class:"scrollable"};function bw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",yw,[i.createElementVNode("div",{class:i.normalizeClass(["scrollable__container",{"scrollable__container--horizontal":n.horizontalScroll}]),style:i.normalizeStyle({"max-height":n.maxHeight,height:n.autoHeight?"auto":n.maxHeight})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],6)])}const rd=te(gw,[["render",bw],["__scopeId","data-v-2ddf043a"]]),vw={ESC:27};function Xa(e=8){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;for(let r=0;r<e;r+=1)t+=n.charAt(Math.floor(Math.random()*a));return t}const _w=["sm","md","lg"],Z1=["thin","default","wide"],X1={components:{CdsScrollable:rd},props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},height:{type:[String,Number],default:200},targetId:{type:String,default:""},rightAligned:{type:Boolean,default:!1},verticalFluid:{type:Boolean,default:!1}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:Xa()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`},popoverHeight(){return this.verticalFluid?"fit-content":`${this.height}px`}},watch:{modelValue(e){e?this.show():this.hide()},targetId(e){this.setPopper(e)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId)},methods:{setPopper(e){this.$nextTick(()=>{this.target=document.querySelector(`[id='${e}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=cl(this.target,this.popover,{placement:`bottom-${this.variationPlacement}`,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:[`top-${this.variationPlacement}`]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popperInstance.setOptions(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!0}]})),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.$nextTick(()=>{this.popover.removeAttribute("data-show"),this.popperInstance.setOptions(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})}}},jm=()=>{i.useCssVars(e=>({"76ce8a9f":e.popoverHeight,"7847254e":e.popoverWidth}))},qm=X1.setup;X1.setup=qm?(e,t)=>(jm(),qm(e,t)):jm;const ww=["id"];function kw(e,t,n,a,r,s){const o=i.resolveComponent("cds-scrollable"),l=i.resolveDirective("cds-click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:e.$attrs.id||r.id,class:"popover"},[n.verticalFluid?i.renderSlot(e.$slots,"default",{key:1},void 0,!0):(i.openBlock(),i.createBlock(o,{key:0,"max-height":`${s.popoverHeight}`},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["max-height"]))],8,ww)),[[l,s.hide]])}const pl=te(X1,[["render",kw],["__scopeId","data-v-989e76e2"]]),Cw={components:{CdsChevron:Ii,CdsClickable:Ai,CdsPopover:pl},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},src:{type:String,default:""},initials:{type:String,default:null},name:{type:String,default:null},clickable:{type:Boolean,default:!1}},data(){return{showPopover:!1}},computed:{computedInitials(){return this.initials?this.initials:this.name?this.name.replace(/(\S+)(\s*)/gi,e=>e[0].toUpperCase()).slice(0,2):"UND"}},methods:{toggleDropdown(){this.clickable&&(this.showPopover=!this.showPopover)}}},xw={class:"avatar__container"},Sw=["src","alt"];function Mw(e,t,n,a,r,s){const o=i.resolveComponent("cds-chevron"),l=i.resolveComponent("cds-popover"),d=i.resolveComponent("cds-clickable");return i.openBlock(),i.createBlock(d,{id:"avatar-dropdown",clickable:n.clickable,onClick:i.withModifiers(s.toggleDropdown,["stop"])},{default:i.withCtx(()=>[i.createElementVNode("div",xw,[i.createElementVNode("div",{class:i.normalizeClass(`avatar__container--${n.variant} avatar__container--${n.size}`)},[n.src?(i.openBlock(),i.createElementBlock("img",{key:1,src:n.src,alt:n.name,class:i.normalizeClass(`avatar__image--${n.size}`)},null,10,Sw)):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(`avatar__initials--${n.size}`)},i.toDisplayString(s.computedInitials),3))],2),n.clickable?(i.openBlock(),i.createBlock(o,{key:0,size:"sm",class:"avatar__chevron",direction:"bottom"})):i.createCommentVNode("",!0)]),i.createVNode(l,{modelValue:r.showPopover,"onUpdate:modelValue":t[0]||(t[0]=h=>r.showPopover=h),"target-id":"avatar-dropdown",width:"180","right-aligned":"","vertical-fluid":""},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"dropdown-content")]),_:3},8,["modelValue"])]),_:3},8,["clickable","onClick"])}const ml=te(Cw,[["render",Mw]]),J1={components:{CdsIcon:ke,CdsAvatar:ml,CdsDivider:Pr,CdsClickable:Ai},props:{hideSettings:{type:Boolean,default:!1},hideHelp:{type:Boolean,default:!1},hideNotification:{type:Boolean,default:!1},hideAppSwitcher:{type:Boolean,default:!1},hideLogout:{type:Boolean,default:!1},sysvaleBrand:{type:Boolean,default:!1},csBrand:{type:Boolean,default:!1},userName:{type:String,default:null},userDescription:{type:String,default:null},clickable:{type:Boolean,default:!1}},computed:{hasAppSlot(){return Object.keys(this.$slots).some(e=>e==="app-info")},hasUserInfoSlot(){return Object.keys(this.$slots).some(e=>e==="user-info")},gridTemplateColumnsResolver(){return this.hasAppSlot?"1fr 1fr 1fr":"1fr 1fr"},gridTemplateAreasResolver(){return this.hasAppSlot?"'app logo icons'":"'logo icons'"},logoAlignmentResolver(){return this.hasAppSlot?"center":"flex-start"}},methods:{handleClick(e){this.$emit(`${e}-click`,!0)}}},Gm=()=>{i.useCssVars(e=>({b2db6826:e.gridTemplateAreasResolver,"65ba4f04":e.gridTemplateColumnsResolver,"46f8c75f":e.logoAlignmentResolver}))},Km=J1.setup;J1.setup=Km?(e,t)=>(Gm(),Km(e,t)):Gm;const Bw={class:"app-bar__container"},Ew={key:0,class:"app-bar__logo--cs",src:"https://framerusercontent.com/images/LqVj4DBbWvH0zr04qwYMlSPvEBY.svg",alt:"logo do Cidade Saudável"},Dw={key:1,class:"app-bar__logo--sv",src:"https://framerusercontent.com/images/djNYjj5IdpsZL50hF8HEDt5Wbg.svg",alt:"logo da Sysvale"},Vw={class:"app-bar__icons-grid"},Ow={key:4,class:"user-info__avatar-container"},$w={class:"user-info__container"},Tw={class:"user-info__name"},Iw={class:"user-info__description"},Aw={key:5,class:"app-switcher__container"},Nw={key:2,class:"app-switcher"};function zw(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-clickable"),d=i.resolveComponent("cds-avatar"),h=i.resolveComponent("cds-divider");return i.openBlock(),i.createElementBlock("div",Bw,[n.csBrand?(i.openBlock(),i.createElementBlock("img",Ew)):n.sysvaleBrand?(i.openBlock(),i.createElementBlock("img",Dw)):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"brand",{class:"app-bar__logo"}),i.createElementVNode("div",Vw,[n.hideNotification?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:0,clickable:"",onClick:t[0]||(t[0]=f=>s.handleClick("notification"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"notification-bell-outline"})]),_:1})),n.hideHelp?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:1,clickable:"",onClick:t[1]||(t[1]=f=>s.handleClick("help"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"help-outline"})]),_:1})),n.hideSettings?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:2,clickable:"",onClick:t[2]||(t[2]=f=>s.handleClick("settings"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"settings-outline"})]),_:1})),s.hasUserInfoSlot?i.renderSlot(e.$slots,"user-info",{key:3,class:"user-info__container"}):(i.openBlock(),i.createElementBlock("div",Ow,[i.createElementVNode("div",$w,[i.createElementVNode("span",Tw,i.toDisplayString(n.userName),1),i.createElementVNode("span",Iw,i.toDisplayString(n.userDescription),1)]),i.createVNode(d,{name:n.userName,variant:"white",size:"md",clickable:n.clickable,onClick:t[3]||(t[3]=f=>s.handleClick("avatar"))},i.createSlots({_:2},[n.clickable?{name:"dropdown-content",fn:i.withCtx(()=>[i.renderSlot(e.$slots,"dropdown-content")]),key:"0"}:void 0]),1032,["name","clickable"])])),n.hideAppSwitcher?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Aw,[i.createVNode(h,{vertical:"",width:"30"}),i.createVNode(l,{clickable:"",onClick:t[4]||(t[4]=f=>s.handleClick("app-switcher"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"grid-outline"})]),_:1})])),n.hideLogout?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:6,clickable:"",onClick:t[5]||(t[5]=f=>s.handleClick("logout"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"logout-outline"})]),_:1}))]),s.hasAppSlot?(i.openBlock(),i.createElementBlock("div",Nw,[i.renderSlot(e.$slots,"app-info")])):i.createCommentVNode("",!0)])}const Lw=te(J1,[["render",zw]]),Q1={props:{width:{type:[String,Number],default:"20"}},computed:{widthResolver(){return`${this.width}px`}}},Zm=()=>{i.useCssVars(e=>({13528900:e.widthResolver}))},Xm=Q1.setup;Q1.setup=Xm?(e,t)=>(Zm(),Xm(e,t)):Zm;const Pw={class:"truncate__container"};function Fw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",Pw,[i.renderSlot(e.$slots,"default")])}const e0=te(Q1,[["render",Fw]]),Rw={props:{position:{type:String,default:"top"},text:{type:String,default:null},slim:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0}},computed:{tooltipConfig(){return{content:this.slim?`<span style="font-size: 11px; padding: 0px;">${this.text}</span>`:`<span style="font-size: 13px; padding: 0px 2px">${this.text}</span>`,options:{placement:this.position,theme:"light",arrow:!0,delay:100,animation:"shift-away-subtle",allowHTML:!0,onShow:e=>{const t=e.popper.querySelector(".tippy-box");t&&(t.style.borderRadius=this.resolveBorderRadius)}}}},resolveBorderRadius(){return this.rounded?"20px":"8px"}}},Hw=["data-tippy-placement","data-tippy-content"];function Ww(e,t,n,a,r,s){const o=i.resolveDirective("cdstip");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"tooltip","data-tippy-placement":n.position,"data-tippy-content":e.content,"data-tippy-allowHTML":!0},[i.renderSlot(e.$slots,"default")],8,Hw)),[[o,s.tooltipConfig]])}const sd=te(Rw,[["render",Ww]]),Yw={components:{CdsAvatar:ml,CdsClickable:Ai,CdsPopover:pl,CdsTruncate:e0,CdsTooltip:sd},props:{size:{type:String,default:"md"},avatars:{type:Array,default:()=>[]},maxCount:{type:Number,default:4}},data(){return{listAvatars:this.avatars.slice(0,this.maxCount),popoverAvatars:this.avatars.slice(this.maxCount,this.avatars.length),showPopover:!1}},computed:{showAvatarCounter(){return this.maxCount<this.avatars.length},avatarCounterText(){return`+ ${this.avatars.length-this.maxCount}`}}},Uw={class:"avatar-group__container"},jw={class:"avatar__name"};function qw(e,t,n,a,r,s){const o=i.resolveComponent("cds-avatar"),l=i.resolveComponent("cds-tooltip"),d=i.resolveComponent("cds-clickable"),h=i.resolveComponent("cds-truncate"),f=i.resolveComponent("cds-popover");return i.openBlock(),i.createElementBlock("div",Uw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listAvatars,(m,g)=>(i.openBlock(),i.createBlock(l,{key:g,position:"bottom",text:m.name,slim:""},{default:i.withCtx(()=>[i.createVNode(o,i.mergeProps({ref_for:!0},m,{size:n.size,clickable:!1}),null,16,["size"])]),_:2},1032,["text"]))),128)),s.showAvatarCounter?(i.openBlock(),i.createBlock(d,{key:0,id:"avatar-counter",clickable:"",onClick:t[0]||(t[0]=m=>r.showPopover=!0)},{default:i.withCtx(()=>[i.createVNode(o,{size:n.size,clickable:!1,name:s.avatarCounterText,variant:"gray",class:"avatar-group__counter"},null,8,["size","name"])]),_:1})):i.createCommentVNode("",!0),i.createVNode(f,{modelValue:r.showPopover,"onUpdate:modelValue":t[1]||(t[1]=m=>r.showPopover=m),"target-id":"avatar-counter",width:"180","right-aligned":"","vertical-fluid":""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.popoverAvatars,(m,g)=>(i.openBlock(),i.createElementBlock("div",{key:g,class:"avatar__data"},[i.createVNode(o,i.mergeProps({ref_for:!0},m,{size:"sm",clickable:!1}),null,16),i.createVNode(h,{width:"180"},{default:i.withCtx(()=>[i.createElementVNode("span",jw,i.toDisplayString(m.name),1)]),_:2},1024)]))),128))]),_:1},8,["modelValue"])])}const Gw=te(Yw,[["render",qw]]),Kw={components:{CdsClickable:Ai},props:{variant:{type:String,default:"gray"},size:{type:String,default:"md"},clickable:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","white"],predefinedSizes:["sm","md","lg"]}},computed:{predefinedStyle(){let e=this.clickable?"badge__container--clickable ":"badge__container ";return this.predefinedColors.indexOf(this.variant)>-1&&(e+=`badge--${this.variant}`),this.predefinedSizes.indexOf(this.size)>-1&&(e+=` badge--${this.size}`),e}}};function Zw(e,t,n,a,r,s){const o=i.resolveComponent("cds-clickable");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.predefinedStyle)},[i.createElementVNode("div",{class:i.normalizeClass({"badge__content--sm":n.size==="sm","badge__content--md":n.size==="md","badge__content--lg":n.size==="lg"})},[n.clickable?(i.openBlock(),i.createBlock(o,{key:0,onClick:t[0]||(t[0]=i.withModifiers(l=>e.$emit("click",!0),["stop"]))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)],2)],2)}const t0=te(Kw,[["render",Zw],["__scopeId","data-v-2645ae8b"]]);/*!
|
|
21
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=r.reduce(function(d,h){var f=h&&N_(h,a);return f&&d.push(f),d},[]);return ul(e)?l[0]:l}Is.defaultProps=ti,Is.setDefaultProps=$_,Is.currentInput=ta,Object.assign({},im,{effect:function(t){var n=t.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}}),Is.setDefaultProps({render:Pm});const fl={mounted(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content)return;const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance=Is(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},updated(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null);return}const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance?e._tippyInstance.setProps({content:n,...t.value.options||{}}):e._tippyInstance=Is(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},beforeUnmount(e){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null)}},Za=(e,t)=>Object.keys(e).some(n=>n===t),U1={directives:{cdstip:fl},components:{CdsSpinner:Bs},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},secondary:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","dark"],predefinedSizes:["sm","md","lg"]}},computed:{widthResolver(){return this.block?"100%":"max-content"},tooltipDisabled(){return this.disabled&&this.tooltipText!==""?this.tooltipText:null},predefinedColor(){return this.ghost?"button--ghost":this.secondary?"button--secondary":this.predefinedColors.indexOf(this.variant)>-1?`button--${this.variant}`:"button--green"},predefinedSize(){return this.predefinedSizes.indexOf(this.size)>-1?`button-size--${this.size}`:"button-size--md"},computedStyle(){const e=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${e} ${this.predefinedSize}`}},methods:{hasSlot:Za,clickHandler(){this.disabled||this.$emit("button-click",!0)}}},Fm=()=>{i.useCssVars(e=>({"314bff93":e.widthResolver}))},Rm=U1.setup;U1.setup=Rm?(e,t)=>(Fm(),Rm(e,t)):Fm;const z_={key:1,class:"button__prepend"},L_={key:2,class:"button__append"};function P_(e,t,n,a,r,s){const o=i.resolveComponent("cds-spinner"),l=i.resolveDirective("cdstip");return i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["button__container",s.computedStyle]),onClick:t[0]||(t[0]=i.withModifiers((...d)=>s.clickHandler&&s.clickHandler(...d),["stop"]))},[n.loading?(i.openBlock(),i.createBlock(o,{key:0,variant:"white",size:"sm",class:"button__prepend"})):i.createCommentVNode("",!0),s.hasSlot(e.$slots,"prepend")&&!n.loading?(i.openBlock(),i.createElementBlock("div",z_,[i.renderSlot(e.$slots,"prepend",{},void 0,!0)])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(n.text),1)],!0),s.hasSlot(e.$slots,"append")?(i.openBlock(),i.createElementBlock("div",L_,[i.renderSlot(e.$slots,"append",{},void 0,!0)])):i.createCommentVNode("",!0)],2)),[[l,s.tooltipDisabled]])}const yn=te(U1,[["render",P_],["__scopeId","data-v-03230ef0"]]),F_={components:{CdsIcon:ke,CdsButton:yn},props:{show:{type:Boolean,default:!1,required:!1},float:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},light:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]}},data(){return{internalShow:!1}},computed:{hasActionSlot(){return Object.keys(this.$slots).some(e=>e==="actions")}},watch:{show(e){this.internalShow=e}},mounted(){this.internalShow=this.show},methods:{handleClose(){this.internalShow=!1,this.$emit("close",!0)}}},R_={key:0,class:"toolbar__container"},H_={key:0,class:"toolbar__buttons-container"},W_={key:1,class:"toolbar__buttons-container"};function Y_(e,t,n,a,r,s){const o=i.resolveComponent("cds-button"),l=i.resolveComponent("cds-icon");return r.internalShow?(i.openBlock(),i.createElementBlock("div",R_,[i.createElementVNode("div",{class:i.normalizeClass({"toolbar--fixed":n.float,"toolbar--light":n.light,"toolbar--dark":!n.light})},[i.renderSlot(e.$slots,"description",{},void 0,!0),s.hasActionSlot?(i.openBlock(),i.createElementBlock("div",H_,[i.renderSlot(e.$slots,"actions",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("div",W_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.actions,(d,h)=>(i.openBlock(),i.createElementBlock("div",{key:h,class:"toolbar__button"},[i.createVNode(o,{id:`btn-${h+1}`,secondary:n.light,variant:"dark",onClick:f=>e.$emit("click",d)},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(d),1)]),_:2},1032,["id","secondary","onClick"])]))),128))])),n.dismissible?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(n.light?"toolbar__icon--light":"toolbar__icon--dark"),onClick:t[0]||(t[0]=(...d)=>s.handleClose&&s.handleClose(...d))},[i.createVNode(l,{name:"x-outline",height:"20",width:"20"})],2)):i.createCommentVNode("",!0)],2)])):i.createCommentVNode("",!0)}const U_=te(F_,[["render",Y_],["__scopeId","data-v-a6869a08"]]);var bn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function j1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ad={exports:{}};ad.exports,function(e,t){var n=200,a="__lodash_hash_undefined__",r=9007199254740991,s="[object Arguments]",o="[object Array]",l="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",v="[object Object]",w="[object Promise]",k="[object RegExp]",x="[object Set]",M="[object String]",B="[object Symbol]",C="[object WeakMap]",$="[object ArrayBuffer]",O="[object DataView]",z="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",ee="[object Int32Array]",W="[object Uint8Array]",ie="[object Uint8ClampedArray]",de="[object Uint16Array]",X="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,ge=/\w*$/,J=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,Y={};Y[s]=Y[o]=Y[$]=Y[O]=Y[l]=Y[d]=Y[z]=Y[I]=Y[F]=Y[j]=Y[ee]=Y[g]=Y[y]=Y[v]=Y[k]=Y[x]=Y[M]=Y[B]=Y[W]=Y[ie]=Y[de]=Y[X]=!0,Y[h]=Y[f]=Y[C]=!1;var U=typeof bn=="object"&&bn&&bn.Object===Object&&bn,ae=typeof self=="object"&&self&&self.Object===Object&&self,be=U||ae||Function("return this")(),Se=t&&!t.nodeType&&t,Ce=Se&&!0&&e&&!e.nodeType&&e,Ie=Ce&&Ce.exports===Se;function at(_,D){return _.set(D[0],D[1]),_}function Le(_,D){return _.add(D),_}function rt(_,D){for(var L=-1,Z=_?_.length:0;++L<Z&&D(_[L],L,_)!==!1;);return _}function pt(_,D){for(var L=-1,Z=D.length,ze=_.length;++L<Z;)_[ze+L]=D[L];return _}function lt(_,D,L,Z){for(var ze=-1,Ee=_?_.length:0;++ze<Ee;)L=D(L,_[ze],ze,_);return L}function le(_,D){for(var L=-1,Z=Array(_);++L<_;)Z[L]=D(L);return Z}function _e(_,D){return _==null?void 0:_[D]}function Ve(_){var D=!1;if(_!=null&&typeof _.toString!="function")try{D=!!(_+"")}catch{}return D}function ct(_){var D=-1,L=Array(_.size);return _.forEach(function(Z,ze){L[++D]=[ze,Z]}),L}function Pe(_,D){return function(L){return _(D(L))}}function dt(_){var D=-1,L=Array(_.size);return _.forEach(function(Z){L[++D]=Z}),L}var Zt=Array.prototype,Xt=Function.prototype,mt=Object.prototype,Je=be["__core-js_shared__"],Tt=function(){var _=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),St=Xt.toString,Et=mt.hasOwnProperty,Mt=mt.toString,nn=RegExp("^"+St.call(Et).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=Ie?be.Buffer:void 0,ue=be.Symbol,Ne=be.Uint8Array,Ue=Pe(Object.getPrototypeOf,Object),an=Object.create,pn=mt.propertyIsEnumerable,_n=Zt.splice,N=Object.getOwnPropertySymbols,ne=Dt?Dt.isBuffer:void 0,oe=Pe(Object.keys,Object),q=Fn(be,"DataView"),T=Fn(be,"Map"),G=Fn(be,"Promise"),fe=Fn(be,"Set"),Be=Fn(be,"WeakMap"),Ke=Fn(Object,"create"),ht=wn(q),Vt=wn(T),ln=wn(G),Jt=wn(fe),Kn=wn(Be),vt=ue?ue.prototype:void 0,Pn=vt?vt.valueOf:void 0;function On(_){var D=-1,L=_?_.length:0;for(this.clear();++D<L;){var Z=_[D];this.set(Z[0],Z[1])}}function si(){this.__data__=Ke?Ke(null):{}}function ji(_){return this.has(_)&&delete this.__data__[_]}function Ta(_){var D=this.__data__;if(Ke){var L=D[_];return L===a?void 0:L}return Et.call(D,_)?D[_]:void 0}function Mo(_){var D=this.__data__;return Ke?D[_]!==void 0:Et.call(D,_)}function ds(_,D){var L=this.__data__;return L[_]=Ke&&D===void 0?a:D,this}On.prototype.clear=si,On.prototype.delete=ji,On.prototype.get=Ta,On.prototype.has=Mo,On.prototype.set=ds;function cn(_){var D=-1,L=_?_.length:0;for(this.clear();++D<L;){var Z=_[D];this.set(Z[0],Z[1])}}function gc(){this.__data__=[]}function yc(_){var D=this.__data__,L=Ia(D,_);if(L<0)return!1;var Z=D.length-1;return L==Z?D.pop():_n.call(D,L,1),!0}function bc(_){var D=this.__data__,L=Ia(D,_);return L<0?void 0:D[L][1]}function vc(_){return Ia(this.__data__,_)>-1}function _c(_,D){var L=this.__data__,Z=Ia(L,_);return Z<0?L.push([_,D]):L[Z][1]=D,this}cn.prototype.clear=gc,cn.prototype.delete=yc,cn.prototype.get=bc,cn.prototype.has=vc,cn.prototype.set=_c;function dn(_){var D=-1,L=_?_.length:0;for(this.clear();++D<L;){var Z=_[D];this.set(Z[0],Z[1])}}function wc(){this.__data__={hash:new On,map:new(T||cn),string:new On}}function kc(_){return qi(this,_).delete(_)}function Cc(_){return qi(this,_).get(_)}function xc(_){return qi(this,_).has(_)}function Sc(_,D){return qi(this,_).set(_,D),this}dn.prototype.clear=wc,dn.prototype.delete=kc,dn.prototype.get=Cc,dn.prototype.has=xc,dn.prototype.set=Sc;function $n(_){this.__data__=new cn(_)}function wr(){this.__data__=new cn}function Mc(_){return this.__data__.delete(_)}function kr(_){return this.__data__.get(_)}function Bc(_){return this.__data__.has(_)}function Ec(_,D){var L=this.__data__;if(L instanceof cn){var Z=L.__data__;if(!T||Z.length<n-1)return Z.push([_,D]),this;L=this.__data__=new dn(Z)}return L.set(_,D),this}$n.prototype.clear=wr,$n.prototype.delete=Mc,$n.prototype.get=kr,$n.prototype.has=Bc,$n.prototype.set=Ec;function Cr(_,D){var L=ms(_)||xr(_)?le(_.length,String):[],Z=L.length,ze=!!Z;for(var Ee in _)Et.call(_,Ee)&&!(ze&&(Ee=="length"||Ao(Ee,Z)))&&L.push(Ee);return L}function us(_,D,L){var Z=_[D];(!(Et.call(_,D)&&ps(Z,L))||L===void 0&&!(D in _))&&(_[D]=L)}function Ia(_,D){for(var L=_.length;L--;)if(ps(_[L][0],D))return L;return-1}function oi(_,D){return _&&Pa(D,ys(D),_)}function hs(_,D,L,Z,ze,Ee,tt){var nt;if(Z&&(nt=Ee?Z(_,ze,Ee,tt):Z(_)),nt!==void 0)return nt;if(!Si(_))return _;var qe=ms(_);if(qe){if(nt=To(_),!D)return Oo(_,nt)}else{var st=Ci(_),Ft=st==f||st==m;if(Mr(_))return Aa(_,D);if(st==v||st==s||Ft&&!Ee){if(Ve(_))return Ee?_:{};if(nt=xi(Ft?{}:_),!D)return Tc(_,oi(nt,_))}else{if(!Y[st])return Ee?_:{};nt=Io(_,st,hs,D)}}tt||(tt=new $n);var kn=tt.get(_);if(kn)return kn;if(tt.set(_,nt),!qe)var Wt=L?$o(_):ys(_);return rt(Wt||_,function(wt,rn){Wt&&(rn=wt,wt=_[rn]),us(nt,rn,hs(wt,D,L,Z,rn,_,tt))}),nt}function Dc(_){return Si(_)?an(_):{}}function Vc(_,D,L){var Z=D(_);return ms(_)?Z:pt(Z,L(_))}function Oc(_){return Mt.call(_)}function Bo(_){if(!Si(_)||zo(_))return!1;var D=gs(_)||Ve(_)?nn:J;return D.test(wn(_))}function Eo(_){if(!Lo(_))return oe(_);var D=[];for(var L in Object(_))Et.call(_,L)&&L!="constructor"&&D.push(L);return D}function Aa(_,D){if(D)return _.slice();var L=new _.constructor(_.length);return _.copy(L),L}function Na(_){var D=new _.constructor(_.byteLength);return new Ne(D).set(new Ne(_)),D}function za(_,D){var L=D?Na(_.buffer):_.buffer;return new _.constructor(L,_.byteOffset,_.byteLength)}function fs(_,D,L){var Z=D?L(ct(_),!0):ct(_);return lt(Z,at,new _.constructor)}function La(_){var D=new _.constructor(_.source,ge.exec(_));return D.lastIndex=_.lastIndex,D}function Do(_,D,L){var Z=D?L(dt(_),!0):dt(_);return lt(Z,Le,new _.constructor)}function $c(_){return Pn?Object(Pn.call(_)):{}}function Vo(_,D){var L=D?Na(_.buffer):_.buffer;return new _.constructor(L,_.byteOffset,_.length)}function Oo(_,D){var L=-1,Z=_.length;for(D||(D=Array(Z));++L<Z;)D[L]=_[L];return D}function Pa(_,D,L,Z){L||(L={});for(var ze=-1,Ee=D.length;++ze<Ee;){var tt=D[ze],nt=void 0;us(L,tt,nt===void 0?_[tt]:nt)}return L}function Tc(_,D){return Pa(_,Tn(_),D)}function $o(_){return Vc(_,ys,Tn)}function qi(_,D){var L=_.__data__;return No(D)?L[typeof D=="string"?"string":"hash"]:L.map}function Fn(_,D){var L=_e(_,D);return Bo(L)?L:void 0}var Tn=N?Pe(N,Object):_t,Ci=Oc;(q&&Ci(new q(new ArrayBuffer(1)))!=O||T&&Ci(new T)!=g||G&&Ci(G.resolve())!=w||fe&&Ci(new fe)!=x||Be&&Ci(new Be)!=C)&&(Ci=function(_){var D=Mt.call(_),L=D==v?_.constructor:void 0,Z=L?wn(L):void 0;if(Z)switch(Z){case ht:return O;case Vt:return g;case ln:return w;case Jt:return x;case Kn:return C}return D});function To(_){var D=_.length,L=_.constructor(D);return D&&typeof _[0]=="string"&&Et.call(_,"index")&&(L.index=_.index,L.input=_.input),L}function xi(_){return typeof _.constructor=="function"&&!Lo(_)?Dc(Ue(_)):{}}function Io(_,D,L,Z){var ze=_.constructor;switch(D){case $:return Na(_);case l:case d:return new ze(+_);case O:return za(_,Z);case z:case I:case F:case j:case ee:case W:case ie:case de:case X:return Vo(_,Z);case g:return fs(_,Z,L);case y:case M:return new ze(_);case k:return La(_);case x:return Do(_,Z,L);case B:return $c(_)}}function Ao(_,D){return D=D??r,!!D&&(typeof _=="number"||me.test(_))&&_>-1&&_%1==0&&_<D}function No(_){var D=typeof _;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?_!=="__proto__":_===null}function zo(_){return!!Tt&&Tt in _}function Lo(_){var D=_&&_.constructor,L=typeof D=="function"&&D.prototype||mt;return _===L}function wn(_){if(_!=null){try{return St.call(_)}catch{}try{return _+""}catch{}}return""}function Po(_){return hs(_,!0,!0)}function ps(_,D){return _===D||_!==_&&D!==D}function xr(_){return Ic(_)&&Et.call(_,"callee")&&(!pn.call(_,"callee")||Mt.call(_)==s)}var ms=Array.isArray;function Sr(_){return _!=null&&Fo(_.length)&&!gs(_)}function Ic(_){return Ro(_)&&Sr(_)}var Mr=ne||gt;function gs(_){var D=Si(_)?Mt.call(_):"";return D==f||D==m}function Fo(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function Si(_){var D=typeof _;return!!_&&(D=="object"||D=="function")}function Ro(_){return!!_&&typeof _=="object"}function ys(_){return Sr(_)?Cr(_):Eo(_)}function _t(){return[]}function gt(){return!1}e.exports=Po}(ad,ad.exports);var j_=ad.exports;const q1=j1(j_),q_={props:{actions:{type:Array,default:()=>[],required:!0},numberOfExpandedActions:{type:Number,default:2,required:!1}},data(){return{action:q1(this.actions),internalNumberOfExpandedActions:this.numberOfExpandedActions,itsBeingShown:!1}},methods:{toggleCollapseState(){this.internalNumberOfExpandedActions=this.itsBeingShown?this.numberOfExpandedActions:this.action.length,this.itsBeingShown=!this.itsBeingShown,this.$emit("expanded",this.itsBeingShown)},handleClick(e){e.disabled||this.$emit("action-clicked",e)}}},G_={class:"action-list"},K_={class:"action-list--right"},Z_=["onClick"];function X_(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("span",G_,[i.createElementVNode("div",K_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.actions,(o,l)=>(i.openBlock(),i.createElementBlock("div",{key:o.title},[i.createVNode(i.Transition,{name:"action-list__slide-fade"},{default:i.withCtx(()=>[l<=r.internalNumberOfExpandedActions-1?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass({"action-list__item":l===0,"action-list__item--left-bordered":l!==0,"action-list__item--disabled":o.disabled}),onClick:i.withModifiers(d=>s.handleClick(o),["stop"])},[i.renderSlot(e.$slots,"action",{list:o},void 0,!0)],10,Z_)):i.createCommentVNode("",!0)]),_:2},1024)]))),128)),n.actions.length>n.numberOfExpandedActions?(i.openBlock(),i.createElementBlock("div",{key:0,class:"action-list__item--left-bordered",onClick:t[0]||(t[0]=i.withModifiers((...o)=>s.toggleCollapseState&&s.toggleCollapseState(...o),["stop"]))},[i.renderSlot(e.$slots,"action-trigger",{},()=>[i.createTextVNode(i.toDisplayString(r.itsBeingShown?"Menos ações":"Mais ações"),1)],!0)])):i.createCommentVNode("",!0)])])}const J_=te(q_,[["render",X_],["__scopeId","data-v-f571698b"]]),Q_={components:{CdsIcon:ke},props:{variant:{type:String,default:"info",required:!1},text:{type:String,default:"Título do AlertCard",required:!1},dismissible:{type:Boolean,default:!1,required:!1}},data(){return{icon:"warning-outline"}},watch:{variant:{handler(e){switch(e){case"info":this.icon="info-outline";break;case"success":this.icon="check-circle-outline";break;case"warning":this.icon="warning-outline";break;case"danger":this.icon="alert-outline";break;default:this.icon="alert-outline";break}},immediate:!0}},methods:{close(){this.$emit("close")}}},ew={id:"alert"},tw={class:"alert__body"},nw={key:0,class:"alert__text"},iw={key:1,class:"alert__text"};function aw(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",ew,[i.createElementVNode("div",{class:i.normalizeClass(["alert",{"alert__container--info":n.variant==="info","alert__container--success":n.variant==="success","alert__container--warning":n.variant==="warning","alert__container--danger":n.variant==="danger"}])},[i.createElementVNode("div",tw,[i.createElementVNode("div",null,[i.createVNode(o,{name:r.icon,class:i.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["name","class"])]),n.text.length>0?(i.openBlock(),i.createElementBlock("span",nw,i.toDisplayString(n.text),1)):(i.openBlock(),i.createElementBlock("span",iw,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))]),n.dismissible?(i.openBlock(),i.createElementBlock("div",{key:0,class:"alert__close-button",onClick:t[0]||(t[0]=(...l)=>s.close&&s.close(...l))},[i.createVNode(o,{name:"x-outline",class:i.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["class"])])):i.createCommentVNode("",!0)],2)])}const rw=te(Q_,[["render",aw],["__scopeId","data-v-8428d00c"]]),sw={components:{CdsIcon:ke},props:{variant:{type:String,default:"info"},selectable:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},noTitle:{type:Boolean,default:!1},title:{type:String,default:"Título do AlertCard"},subTitle:{type:String,default:"Subtítulo do AlertCard"},withIcon:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},data(){return{isSelected:this.value}},computed:{dynamicIcon(){switch(this.variant){case"info":return"info-outline";case"warning":return"warning-outline";case"danger":return"alert-outline";default:return"info-outline"}},alertCardContainerSelected(){let e="";if(this.muted)e="alert-card__container--muted";else if(this.selectable&&(e="alert-card__container--selectable"),this.isSelected)return`${e} alert-card__container--selected-${this.variant}`;return e},iconClass(){return`icon__container--${this.variant} ${this.noTitle?"align-self-center":""}`}}},ow={id:"alert-card"},lw={class:"alert-card__content-container"};function cw(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",ow,[i.createElementVNode("div",{class:i.normalizeClass(["alert-card__container",s.alertCardContainerSelected])},[n.withIcon?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(s.iconClass)},[i.createVNode(o,{height:"24",width:"24",name:s.dynamicIcon,class:i.normalizeClass(`icon--${n.variant}`)},null,8,["name","class"])],2)):i.createCommentVNode("",!0),i.createElementVNode("div",lw,[n.noTitle?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(`alert-card__title--${n.variant}`)},i.toDisplayString(n.title),3)),i.createElementVNode("span",{class:i.normalizeClass(["alert-card__subtitle",`${n.noTitle?"mt-0":"mt-2"}`])},[i.renderSlot(e.$slots,"subTitle-slot",{},()=>[i.createTextVNode(i.toDisplayString(n.subTitle),1)],!0)],2),i.renderSlot(e.$slots,"content-slot",{class:"alert-card__content"},void 0,!0)])],2)])}const dw=te(sw,[["render",cw],["__scopeId","data-v-0f0b30a4"]]),G1={props:{text:{type:String,default:null},vertical:{type:Boolean,default:!1},width:{type:[String,Number],default:null},dimmed:{type:Boolean,default:!1},light:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{sanitizedWidth(){return this.width?`${this.width}px`:"100%"}}},Hm=()=>{i.useCssVars(e=>({"0c5c71fa":e.sanitizedWidth}))},Wm=G1.setup;G1.setup=Wm?(e,t)=>(Hm(),Wm(e,t)):Hm;const uw={key:0};function hw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["divider__container",{"divider__container--inline":n.inline}])},[n.vertical?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",uw,i.toDisplayString(n.text),1)),i.createElementVNode("hr",{class:i.normalizeClass(["divider",{"divider--vertical":n.vertical,"divider--light":n.light,"divider--dimmed":n.dimmed}])},null,2)],2)}const Pr=te(G1,[["render",hw]]),fw={props:{direction:{type:String,default:"bottom"},light:{type:Boolean,default:!1},size:{type:String,default:"md"},animate:{type:Boolean,default:!1}},data(){return{innerDirection:this.direction}},watch:{direction:{handler(){this.animationResolver()},immediate:!0}},methods:{animationResolver(){if(this.animate)switch(this.innerDirection){case"top":this.innerDirection="bottom";break;case"bottom":this.innerDirection="top";break;case"right":this.innerDirection="left";break;case"left":this.innerDirection="right";break;default:this.innerDirection="bottom"}}}};function pw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"chevron",class:i.normalizeClass({"chevron--top":r.innerDirection==="top","chevron--right":r.innerDirection==="right","chevron--bottom":r.innerDirection==="bottom","chevron--left":r.innerDirection==="left","chevron--sm":n.size==="sm","chevron--md":n.size==="md","chevron--lg":n.size==="lg","chevron--light":n.light===!0})},null,2)}const Ii=te(fw,[["render",pw]]),K1={props:{clickable:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1,required:!1}},computed:{widthResolver(){return this.fluid?"100%":"fit-content"}}},Ym=()=>{i.useCssVars(e=>({"5ffc88d7":e.widthResolver}))},Um=K1.setup;K1.setup=Um?(e,t)=>(Ym(),Um(e,t)):Ym;function mw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({"clickable__container--clickable":n.clickable,"clickable__container--not-clickable":!n.clickable}),onClick:t[0]||(t[0]=o=>e.$emit("cds-click",!0))},[i.renderSlot(e.$slots,"default")],2)}const Ai=te(K1,[["render",mw]]),gw={props:{maxHeight:{type:String,default:"300px",required:!0},autoHeight:{type:Boolean,default:!1},horizontalScroll:{type:Boolean,default:!1}}},yw={class:"scrollable"};function bw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",yw,[i.createElementVNode("div",{class:i.normalizeClass(["scrollable__container",{"scrollable__container--horizontal":n.horizontalScroll}]),style:i.normalizeStyle({"max-height":n.maxHeight,height:n.autoHeight?"auto":n.maxHeight})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],6)])}const rd=te(gw,[["render",bw],["__scopeId","data-v-2ddf043a"]]),vw={ESC:27};function Xa(e=8){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;for(let r=0;r<e;r+=1)t+=n.charAt(Math.floor(Math.random()*a));return t}const _w=["sm","md","lg"],Z1=["thin","default","wide"],X1={components:{CdsScrollable:rd},props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},height:{type:[String,Number],default:200},targetId:{type:String,default:""},rightAligned:{type:Boolean,default:!1},verticalFluid:{type:Boolean,default:!1}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:Xa()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`},popoverHeight(){return this.verticalFluid?"fit-content":`${this.height}px`}},watch:{modelValue(e){e?this.show():this.hide()},targetId(e){this.setPopper(e)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId)},methods:{setPopper(e){this.$nextTick(()=>{this.target=document.querySelector(`[id='${e}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=cl(this.target,this.popover,{placement:`bottom-${this.variationPlacement}`,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:[`top-${this.variationPlacement}`]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popperInstance.setOptions(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!0}]})),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.$nextTick(()=>{this.popover.removeAttribute("data-show"),this.popperInstance.setOptions(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})}}},jm=()=>{i.useCssVars(e=>({"76ce8a9f":e.popoverHeight,"7847254e":e.popoverWidth}))},qm=X1.setup;X1.setup=qm?(e,t)=>(jm(),qm(e,t)):jm;const ww=["id"];function kw(e,t,n,a,r,s){const o=i.resolveComponent("cds-scrollable"),l=i.resolveDirective("cds-click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:e.$attrs.id||r.id,class:"popover"},[n.verticalFluid?i.renderSlot(e.$slots,"default",{key:1},void 0,!0):(i.openBlock(),i.createBlock(o,{key:0,"max-height":`${s.popoverHeight}`},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["max-height"]))],8,ww)),[[l,s.hide]])}const pl=te(X1,[["render",kw],["__scopeId","data-v-989e76e2"]]),Cw={components:{CdsChevron:Ii,CdsClickable:Ai,CdsPopover:pl},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},src:{type:String,default:""},initials:{type:String,default:null},name:{type:String,default:null},clickable:{type:Boolean,default:!1}},data(){return{showPopover:!1}},computed:{computedInitials(){return this.initials?this.initials:this.name?this.name.replace(/(\S+)(\s*)/gi,e=>e[0].toUpperCase()).slice(0,2):"UND"}},methods:{toggleDropdown(){this.clickable&&(this.showPopover=!this.showPopover)}}},xw={class:"avatar__container"},Sw=["src","alt"];function Mw(e,t,n,a,r,s){const o=i.resolveComponent("cds-chevron"),l=i.resolveComponent("cds-popover"),d=i.resolveComponent("cds-clickable");return i.openBlock(),i.createBlock(d,{id:"avatar-dropdown",clickable:n.clickable,onClick:i.withModifiers(s.toggleDropdown,["stop"])},{default:i.withCtx(()=>[i.createElementVNode("div",xw,[i.createElementVNode("div",{class:i.normalizeClass(`avatar__container--${n.variant} avatar__container--${n.size}`)},[n.src?(i.openBlock(),i.createElementBlock("img",{key:1,src:n.src,alt:n.name,class:i.normalizeClass(`avatar__image--${n.size}`)},null,10,Sw)):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(`avatar__initials--${n.size}`)},i.toDisplayString(s.computedInitials),3))],2),n.clickable?(i.openBlock(),i.createBlock(o,{key:0,size:"sm",class:"avatar__chevron",direction:"bottom"})):i.createCommentVNode("",!0)]),i.createVNode(l,{modelValue:r.showPopover,"onUpdate:modelValue":t[0]||(t[0]=h=>r.showPopover=h),"target-id":"avatar-dropdown",width:"180","right-aligned":"","vertical-fluid":""},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"dropdown-content")]),_:3},8,["modelValue"])]),_:3},8,["clickable","onClick"])}const ml=te(Cw,[["render",Mw]]),J1={components:{CdsIcon:ke,CdsAvatar:ml,CdsDivider:Pr,CdsClickable:Ai},props:{hideSettings:{type:Boolean,default:!1},hideHelp:{type:Boolean,default:!1},hideNotification:{type:Boolean,default:!1},hideAppSwitcher:{type:Boolean,default:!1},hideLogout:{type:Boolean,default:!1},sysvaleBrand:{type:Boolean,default:!1},csBrand:{type:Boolean,default:!1},userName:{type:String,default:null},userDescription:{type:String,default:null},clickable:{type:Boolean,default:!1}},computed:{hasAppSlot(){return Object.keys(this.$slots).some(e=>e==="app-info")},hasUserInfoSlot(){return Object.keys(this.$slots).some(e=>e==="user-info")},gridTemplateColumnsResolver(){return this.hasAppSlot?"1fr 1fr 1fr":"1fr 1fr"},gridTemplateAreasResolver(){return this.hasAppSlot?"'app logo icons'":"'logo icons'"},logoAlignmentResolver(){return this.hasAppSlot?"center":"flex-start"}},methods:{handleClick(e){this.$emit(`${e}-click`,!0)}}},Gm=()=>{i.useCssVars(e=>({b2db6826:e.gridTemplateAreasResolver,"65ba4f04":e.gridTemplateColumnsResolver,"46f8c75f":e.logoAlignmentResolver}))},Km=J1.setup;J1.setup=Km?(e,t)=>(Gm(),Km(e,t)):Gm;const Bw={class:"app-bar__container"},Ew={key:0,class:"app-bar__logo--cs",src:"https://framerusercontent.com/images/LqVj4DBbWvH0zr04qwYMlSPvEBY.svg",alt:"logo do Cidade Saudável"},Dw={key:1,class:"app-bar__logo--sv",src:"https://framerusercontent.com/images/djNYjj5IdpsZL50hF8HEDt5Wbg.svg",alt:"logo da Sysvale"},Vw={class:"app-bar__icons-grid"},Ow={key:4,class:"user-info__avatar-container"},$w={class:"user-info__container"},Tw={class:"user-info__name"},Iw={class:"user-info__description"},Aw={key:5,class:"app-switcher__container"},Nw={key:2,class:"app-switcher"};function zw(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-clickable"),d=i.resolveComponent("cds-avatar"),h=i.resolveComponent("cds-divider");return i.openBlock(),i.createElementBlock("div",Bw,[n.csBrand?(i.openBlock(),i.createElementBlock("img",Ew)):n.sysvaleBrand?(i.openBlock(),i.createElementBlock("img",Dw)):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"brand",{class:"app-bar__logo"}),i.createElementVNode("div",Vw,[n.hideNotification?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:0,clickable:"",onClick:t[0]||(t[0]=f=>s.handleClick("notification"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"notification-bell-outline"})]),_:1})),n.hideHelp?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:1,clickable:"",onClick:t[1]||(t[1]=f=>s.handleClick("help"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"help-outline"})]),_:1})),n.hideSettings?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:2,clickable:"",onClick:t[2]||(t[2]=f=>s.handleClick("settings"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"settings-outline"})]),_:1})),s.hasUserInfoSlot?i.renderSlot(e.$slots,"user-info",{key:3,class:"user-info__container"}):(i.openBlock(),i.createElementBlock("div",Ow,[i.createElementVNode("div",$w,[i.createElementVNode("span",Tw,i.toDisplayString(n.userName),1),i.createElementVNode("span",Iw,i.toDisplayString(n.userDescription),1)]),i.createVNode(d,{name:n.userName,variant:"white",size:"md",clickable:n.clickable,onClick:t[3]||(t[3]=f=>s.handleClick("avatar"))},i.createSlots({_:2},[n.clickable?{name:"dropdown-content",fn:i.withCtx(()=>[i.renderSlot(e.$slots,"dropdown-content")]),key:"0"}:void 0]),1032,["name","clickable"])])),n.hideAppSwitcher?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Aw,[i.createVNode(h,{vertical:"",width:"30"}),i.createVNode(l,{clickable:"",onClick:t[4]||(t[4]=f=>s.handleClick("app-switcher"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"grid-outline"})]),_:1})])),n.hideLogout?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:6,clickable:"",onClick:t[5]||(t[5]=f=>s.handleClick("logout"))},{default:i.withCtx(()=>[i.createVNode(o,{height:"24",width:"24",light:"",name:"logout-outline"})]),_:1}))]),s.hasAppSlot?(i.openBlock(),i.createElementBlock("div",Nw,[i.renderSlot(e.$slots,"app-info")])):i.createCommentVNode("",!0)])}const Lw=te(J1,[["render",zw]]),Q1={props:{width:{type:[String,Number],default:"20"}},computed:{widthResolver(){return`${this.width}px`}}},Zm=()=>{i.useCssVars(e=>({13528900:e.widthResolver}))},Xm=Q1.setup;Q1.setup=Xm?(e,t)=>(Zm(),Xm(e,t)):Zm;const Pw={class:"truncate__container"};function Fw(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",Pw,[i.renderSlot(e.$slots,"default")])}const e0=te(Q1,[["render",Fw]]),Rw={props:{position:{type:String,default:"top"},text:{type:String,default:null},slim:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0}},computed:{tooltipConfig(){return{content:this.slim?`<span style="font-size: 11px; padding: 0px;">${this.text}</span>`:`<span style="font-size: 13px; padding: 0px 2px">${this.text}</span>`,options:{placement:this.position,theme:"light",arrow:!0,delay:100,animation:"shift-away-subtle",allowHTML:!0,onShow:e=>{const t=e.popper.querySelector(".tippy-box");t&&(t.style.borderRadius=this.resolveBorderRadius)}}}},resolveBorderRadius(){return this.rounded?"20px":"8px"}}},Hw=["data-tippy-placement","data-tippy-content"];function Ww(e,t,n,a,r,s){const o=i.resolveDirective("cdstip");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"tooltip","data-tippy-placement":n.position,"data-tippy-content":e.content,"data-tippy-allowHTML":!0},[i.renderSlot(e.$slots,"default")],8,Hw)),[[o,s.tooltipConfig]])}const sd=te(Rw,[["render",Ww]]),Yw={components:{CdsAvatar:ml,CdsClickable:Ai,CdsPopover:pl,CdsTruncate:e0,CdsTooltip:sd},props:{size:{type:String,default:"md"},avatars:{type:Array,default:()=>[]},maxCount:{type:Number,default:4}},data(){return{listAvatars:this.avatars.slice(0,this.maxCount),popoverAvatars:this.avatars.slice(this.maxCount,this.avatars.length),showPopover:!1}},computed:{showAvatarCounter(){return this.maxCount<this.avatars.length},avatarCounterText(){return`+ ${this.avatars.length-this.maxCount}`}}},Uw={class:"avatar-group__container"},jw={class:"avatar__name"};function qw(e,t,n,a,r,s){const o=i.resolveComponent("cds-avatar"),l=i.resolveComponent("cds-tooltip"),d=i.resolveComponent("cds-clickable"),h=i.resolveComponent("cds-truncate"),f=i.resolveComponent("cds-popover");return i.openBlock(),i.createElementBlock("div",Uw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listAvatars,(m,g)=>(i.openBlock(),i.createBlock(l,{key:g,position:"bottom",text:m.name,slim:""},{default:i.withCtx(()=>[i.createVNode(o,i.mergeProps({ref_for:!0},m,{size:n.size,clickable:!1}),null,16,["size"])]),_:2},1032,["text"]))),128)),s.showAvatarCounter?(i.openBlock(),i.createBlock(d,{key:0,id:"avatar-counter",clickable:"",onClick:t[0]||(t[0]=m=>r.showPopover=!0)},{default:i.withCtx(()=>[i.createVNode(o,{size:n.size,clickable:!1,name:s.avatarCounterText,variant:"gray",class:"avatar-group__counter"},null,8,["size","name"])]),_:1})):i.createCommentVNode("",!0),i.createVNode(f,{modelValue:r.showPopover,"onUpdate:modelValue":t[1]||(t[1]=m=>r.showPopover=m),"target-id":"avatar-counter",width:"180","right-aligned":"","vertical-fluid":""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.popoverAvatars,(m,g)=>(i.openBlock(),i.createElementBlock("div",{key:g,class:"avatar__data"},[i.createVNode(o,i.mergeProps({ref_for:!0},m,{size:"sm",clickable:!1}),null,16),i.createVNode(h,{width:"180"},{default:i.withCtx(()=>[i.createElementVNode("span",jw,i.toDisplayString(m.name),1)]),_:2},1024)]))),128))]),_:1},8,["modelValue"])])}const Gw=te(Yw,[["render",qw]]),Kw={components:{CdsClickable:Ai},props:{variant:{type:String,default:"gray"},size:{type:String,default:"md"},clickable:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","white"],predefinedSizes:["sm","md","lg"]}},computed:{predefinedStyle(){let e=this.clickable?"badge__container--clickable ":"badge__container ";return this.predefinedColors.indexOf(this.variant)>-1&&(e+=`badge--${this.variant}`),this.predefinedSizes.indexOf(this.size)>-1&&(e+=` badge--${this.size}`),e}}};function Zw(e,t,n,a,r,s){const o=i.resolveComponent("cds-clickable");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.predefinedStyle)},[i.createElementVNode("div",{class:i.normalizeClass({"badge__content--sm":n.size==="sm","badge__content--md":n.size==="md","badge__content--lg":n.size==="lg"})},[n.clickable?(i.openBlock(),i.createBlock(o,{key:0,onClick:t[0]||(t[0]=i.withModifiers(l=>e.$emit("click",!0),["stop"]))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)],2)],2)}const t0=te(Kw,[["render",Zw],["__scopeId","data-v-2645ae8b"]]);/*!
|
|
22
22
|
* @kurkle/color v0.3.4
|
|
23
23
|
* https://github.com/kurkle/color#readme
|
|
24
24
|
* (c) 2024 Jukka Kurkela
|