@hxtos/hx-components 0.17.5 → 0.17.6

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/dist/index.es.js CHANGED
@@ -27945,9 +27945,7 @@ const Pte = ({
27945
27945
  onBlur: r,
27946
27946
  ...i
27947
27947
  }) => {
27948
- const [a, { error: u }, { setValue: l, setTouched: c }] = lte(e);
27949
- console.log("error", u), console.log("field", a), console.log("name", e), console.log("props", i);
27950
- const f = (p) => {
27948
+ const [a, { error: u }, { setValue: l, setTouched: c }] = lte(e), f = (p) => {
27951
27949
  const m = i.type === "color" ? p : p.target.value;
27952
27950
  l(m), n && n(m);
27953
27951
  }, h = () => {
@@ -27994,4 +27992,3 @@ export {
27994
27992
  _te as UploadFile,
27995
27993
  Rte as UserMenu
27996
27994
  };
27997
- //# sourceMappingURL=index.es.js.map
package/dist/index.umd.js CHANGED
@@ -214,5 +214,4 @@ __p += '`),it&&(ae+=`' +
214
214
  function print() { __p += __j.call(arguments, '') }
215
215
  `:`;
216
216
  `)+ae+`return __p
217
- }`;var Ke=X2(function(){return ct(_,Ee+"return "+ae).apply(n,D)});if(Ke.source=ae,Np(Ke))throw Ke;return Ke}function KQ(o){return ht(o).toLowerCase()}function qQ(o){return ht(o).toUpperCase()}function QQ(o,s,d){if(o=ht(o),o&&(d||s===n))return tw(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=nw(g,w),D=rw(g,w)+1;return Qr(g,_,D).join("")}function eee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,ow(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=rw(g,Wn(s))+1;return Qr(g,0,w).join("")}function tee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.replace(Mi,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=nw(g,Wn(s));return Qr(g,w).join("")}function nee(o,s){var d=Te,g=Ge;if(Pt(s)){var w="separator"in s?s.separator:w;d="length"in s?Ye(s.length):d,g="omission"in s?yn(s.omission):g}o=ht(o);var _=o.length;if(ko(o)){var D=Wn(o);_=D.length}if(d>=_)return o;var $=d-jo(g);if($<1)return g;var G=D?Qr(D,0,$).join(""):o.slice(0,$);if(w===n)return G+g;if(D&&($+=G.length-$),Vp(w)){if(o.slice($).search(w)){var ee,ne=G;for(w.global||(w=ep(w.source,ht(_e.exec(w))+"g")),w.lastIndex=0;ee=w.exec(ne);)var ae=ee.index;G=G.slice(0,ae===n?$:ae)}}else if(o.indexOf(yn(w),$)!=$){var ge=G.lastIndexOf(w);ge>-1&&(G=G.slice(0,ge))}return G+g}function ree(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,RU):o}var iee=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),jp=zw("toUpperCase");function Z2(o,s,d){return o=ht(o),s=d?n:s,s===n?_U(o)?DU(o):bU(o):o.match(s)||[]}var X2=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return Np(d)?d:new Ze(d)}}),oee=_r(function(o,s){return _n(s,function(d){d=ir(d),Er(o,d,Dp(o[d],o))}),o});function aee(o){var s=o==null?0:o.length,d=Fe();return o=s?At(o,function(g){if(typeof g[1]!="function")throw new Pn(u);return[d(g[0]),g[1]]}):[],Qe(function(g){for(var w=-1;++w<s;){var _=o[w];if(vn(_[0],this,g))return vn(_[1],this,g)}})}function see(o){return RY(On(o,p))}function Gp(o){return function(){return o}}function uee(o,s){return o==null||o!==o?s:o}var lee=Yw(),cee=Yw(!0);function fn(o){return o}function Hp(o){return Ew(typeof o=="function"?o:On(o,p))}function fee(o){return _w(On(o,p))}function dee(o,s){return Pw(o,On(s,p))}var hee=Qe(function(o,s){return function(d){return us(d,o,s)}}),pee=Qe(function(o,s){return function(d){return us(o,d,s)}});function Wp(o,s,d){var g=Gt(s),w=wl(s,g);d==null&&!(Pt(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=wl(s,Gt(s)));var _=!(Pt(d)&&"chain"in d)||!!d.chain,D=Tr(o);return _n(w,function($){var G=s[$];o[$]=G,D&&(o.prototype[$]=function(){var ee=this.__chain__;if(_||ee){var ne=o(this.__wrapped__),ae=ne.__actions__=un(this.__actions__);return ae.push({func:G,args:arguments,thisArg:o}),ne.__chain__=ee,ne}return G.apply(o,zr([this.value()],arguments))})}),o}function gee(){return Wt._===this&&(Wt._=jU),this}function Zp(){}function mee(o){return o=Ye(o),Qe(function(s){return Tw(s,o)})}var vee=wp(At),bee=wp(JC),yee=wp(zh);function z2(o){return Tp(o)?Uh(ir(o)):YY(o)}function xee(o){return function(s){return o==null?n:ki(o,s)}}var Cee=Kw(),wee=Kw(!0);function Xp(){return[]}function zp(){return!1}function See(){return{}}function Iee(){return""}function Eee(){return!0}function Aee(o,s){if(o=Ye(o),o<1||o>Je)return[];var d=M,g=Kt(o,M);s=Fe(s),o-=M;for(var w=Kh(g,s);++d<o;)s(d);return w}function _ee(o){return Ue(o)?At(o,ir):xn(o)?[o]:un(h2(ht(o)))}function Pee(o){var s=++BU;return ht(o)+s}var Tee=Pl(function(o,s){return o+s},0),Oee=Sp("ceil"),Fee=Pl(function(o,s){return o/s},1),Ree=Sp("floor");function Mee(o){return o&&o.length?Cl(o,fn,up):n}function Lee(o,s){return o&&o.length?Cl(o,Fe(s,2),up):n}function Dee(o){return QC(o,fn)}function $ee(o,s){return QC(o,Fe(s,2))}function Nee(o){return o&&o.length?Cl(o,fn,dp):n}function Vee(o,s){return o&&o.length?Cl(o,Fe(s,2),dp):n}var Bee=Pl(function(o,s){return o*s},1),kee=Sp("round"),jee=Pl(function(o,s){return o-s},0);function Gee(o){return o&&o.length?Jh(o,fn):0}function Hee(o,s){return o&&o.length?Jh(o,Fe(s,2)):0}return I.after=fq,I.ary=I2,I.assign=qq,I.assignIn=V2,I.assignInWith=jl,I.assignWith=Qq,I.at=eQ,I.before=E2,I.bind=Dp,I.bindAll=oee,I.bindKey=A2,I.castArray=Sq,I.chain=C2,I.chunk=RJ,I.compact=MJ,I.concat=LJ,I.cond=aee,I.conforms=see,I.constant=Gp,I.countBy=GK,I.create=tQ,I.curry=_2,I.curryRight=P2,I.debounce=T2,I.defaults=nQ,I.defaultsDeep=rQ,I.defer=dq,I.delay=hq,I.difference=DJ,I.differenceBy=$J,I.differenceWith=NJ,I.drop=VJ,I.dropRight=BJ,I.dropRightWhile=kJ,I.dropWhile=jJ,I.fill=GJ,I.filter=WK,I.flatMap=zK,I.flatMapDeep=UK,I.flatMapDepth=YK,I.flatten=v2,I.flattenDeep=HJ,I.flattenDepth=WJ,I.flip=pq,I.flow=lee,I.flowRight=cee,I.fromPairs=ZJ,I.functions=cQ,I.functionsIn=fQ,I.groupBy=JK,I.initial=zJ,I.intersection=UJ,I.intersectionBy=YJ,I.intersectionWith=JJ,I.invert=hQ,I.invertBy=pQ,I.invokeMap=qK,I.iteratee=Hp,I.keyBy=QK,I.keys=Gt,I.keysIn=cn,I.map=Dl,I.mapKeys=mQ,I.mapValues=vQ,I.matches=fee,I.matchesProperty=dee,I.memoize=Nl,I.merge=bQ,I.mergeWith=B2,I.method=hee,I.methodOf=pee,I.mixin=Wp,I.negate=Vl,I.nthArg=mee,I.omit=yQ,I.omitBy=xQ,I.once=gq,I.orderBy=eq,I.over=vee,I.overArgs=mq,I.overEvery=bee,I.overSome=yee,I.partial=$p,I.partialRight=O2,I.partition=tq,I.pick=CQ,I.pickBy=k2,I.property=z2,I.propertyOf=xee,I.pull=eK,I.pullAll=y2,I.pullAllBy=tK,I.pullAllWith=nK,I.pullAt=rK,I.range=Cee,I.rangeRight=wee,I.rearg=vq,I.reject=iq,I.remove=iK,I.rest=bq,I.reverse=Mp,I.sampleSize=aq,I.set=SQ,I.setWith=IQ,I.shuffle=sq,I.slice=oK,I.sortBy=cq,I.sortedUniq=dK,I.sortedUniqBy=hK,I.split=zQ,I.spread=yq,I.tail=pK,I.take=gK,I.takeRight=mK,I.takeRightWhile=vK,I.takeWhile=bK,I.tap=MK,I.throttle=xq,I.thru=Ll,I.toArray=D2,I.toPairs=j2,I.toPairsIn=G2,I.toPath=_ee,I.toPlainObject=N2,I.transform=EQ,I.unary=Cq,I.union=yK,I.unionBy=xK,I.unionWith=CK,I.uniq=wK,I.uniqBy=SK,I.uniqWith=IK,I.unset=AQ,I.unzip=Lp,I.unzipWith=x2,I.update=_Q,I.updateWith=PQ,I.values=Ko,I.valuesIn=TQ,I.without=EK,I.words=Z2,I.wrap=wq,I.xor=AK,I.xorBy=_K,I.xorWith=PK,I.zip=TK,I.zipObject=OK,I.zipObjectDeep=FK,I.zipWith=RK,I.entries=j2,I.entriesIn=G2,I.extend=V2,I.extendWith=jl,Wp(I,I),I.add=Tee,I.attempt=X2,I.camelCase=MQ,I.capitalize=H2,I.ceil=Oee,I.clamp=OQ,I.clone=Iq,I.cloneDeep=Aq,I.cloneDeepWith=_q,I.cloneWith=Eq,I.conformsTo=Pq,I.deburr=W2,I.defaultTo=uee,I.divide=Fee,I.endsWith=LQ,I.eq=Xn,I.escape=DQ,I.escapeRegExp=$Q,I.every=HK,I.find=ZK,I.findIndex=g2,I.findKey=iQ,I.findLast=XK,I.findLastIndex=m2,I.findLastKey=oQ,I.floor=Ree,I.forEach=w2,I.forEachRight=S2,I.forIn=aQ,I.forInRight=sQ,I.forOwn=uQ,I.forOwnRight=lQ,I.get=Bp,I.gt=Tq,I.gte=Oq,I.has=dQ,I.hasIn=kp,I.head=b2,I.identity=fn,I.includes=KK,I.indexOf=XJ,I.inRange=FQ,I.invoke=gQ,I.isArguments=Hi,I.isArray=Ue,I.isArrayBuffer=Fq,I.isArrayLike=ln,I.isArrayLikeObject=Lt,I.isBoolean=Rq,I.isBuffer=ei,I.isDate=Mq,I.isElement=Lq,I.isEmpty=Dq,I.isEqual=$q,I.isEqualWith=Nq,I.isError=Np,I.isFinite=Vq,I.isFunction=Tr,I.isInteger=F2,I.isLength=Bl,I.isMap=R2,I.isMatch=Bq,I.isMatchWith=kq,I.isNaN=jq,I.isNative=Gq,I.isNil=Wq,I.isNull=Hq,I.isNumber=M2,I.isObject=Pt,I.isObjectLike=Ft,I.isPlainObject=ps,I.isRegExp=Vp,I.isSafeInteger=Zq,I.isSet=L2,I.isString=kl,I.isSymbol=xn,I.isTypedArray=Jo,I.isUndefined=Xq,I.isWeakMap=zq,I.isWeakSet=Uq,I.join=KJ,I.kebabCase=NQ,I.last=Rn,I.lastIndexOf=qJ,I.lowerCase=VQ,I.lowerFirst=BQ,I.lt=Yq,I.lte=Jq,I.max=Mee,I.maxBy=Lee,I.mean=Dee,I.meanBy=$ee,I.min=Nee,I.minBy=Vee,I.stubArray=Xp,I.stubFalse=zp,I.stubObject=See,I.stubString=Iee,I.stubTrue=Eee,I.multiply=Bee,I.nth=QJ,I.noConflict=gee,I.noop=Zp,I.now=$l,I.pad=kQ,I.padEnd=jQ,I.padStart=GQ,I.parseInt=HQ,I.random=RQ,I.reduce=nq,I.reduceRight=rq,I.repeat=WQ,I.replace=ZQ,I.result=wQ,I.round=kee,I.runInContext=k,I.sample=oq,I.size=uq,I.snakeCase=XQ,I.some=lq,I.sortedIndex=aK,I.sortedIndexBy=sK,I.sortedIndexOf=uK,I.sortedLastIndex=lK,I.sortedLastIndexBy=cK,I.sortedLastIndexOf=fK,I.startCase=UQ,I.startsWith=YQ,I.subtract=jee,I.sum=Gee,I.sumBy=Hee,I.template=JQ,I.times=Aee,I.toFinite=Or,I.toInteger=Ye,I.toLength=$2,I.toLower=KQ,I.toNumber=Mn,I.toSafeInteger=Kq,I.toString=ht,I.toUpper=qQ,I.trim=QQ,I.trimEnd=eee,I.trimStart=tee,I.truncate=nee,I.unescape=ree,I.uniqueId=Pee,I.upperCase=iee,I.upperFirst=jp,I.each=w2,I.eachRight=S2,I.first=b2,Wp(I,function(){var o={};return nr(I,function(s,d){pt.call(I.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),I.VERSION=r,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),_n(["drop","take"],function(o,s){nt.prototype[o]=function(d){d=d===n?1:kt(Ye(d),0);var g=this.__filtered__&&!s?new nt(this):this.clone();return g.__filtered__?g.__takeCount__=Kt(d,g.__takeCount__):g.__views__.push({size:Kt(d,M),type:o+(g.__dir__<0?"Right":"")}),g},nt.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),_n(["filter","map","takeWhile"],function(o,s){var d=s+1,g=d==Ce||d==Ae;nt.prototype[o]=function(w){var _=this.clone();return _.__iteratees__.push({iteratee:Fe(w,3),type:d}),_.__filtered__=_.__filtered__||g,_}}),_n(["head","last"],function(o,s){var d="take"+(s?"Right":"");nt.prototype[o]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(o,s){var d="drop"+(s?"":"Right");nt.prototype[o]=function(){return this.__filtered__?new nt(this):this[d](1)}}),nt.prototype.compact=function(){return this.filter(fn)},nt.prototype.find=function(o){return this.filter(o).head()},nt.prototype.findLast=function(o){return this.reverse().find(o)},nt.prototype.invokeMap=Qe(function(o,s){return typeof o=="function"?new nt(this):this.map(function(d){return us(d,o,s)})}),nt.prototype.reject=function(o){return this.filter(Vl(Fe(o)))},nt.prototype.slice=function(o,s){o=Ye(o);var d=this;return d.__filtered__&&(o>0||s<0)?new nt(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),s!==n&&(s=Ye(s),d=s<0?d.dropRight(-s):d.take(s-o)),d)},nt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},nt.prototype.toArray=function(){return this.take(M)},nr(nt.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),g=/^(?:head|last)$/.test(s),w=I[g?"take"+(s=="last"?"Right":""):s],_=g||/^find/.test(s);w&&(I.prototype[s]=function(){var D=this.__wrapped__,$=g?[1]:arguments,G=D instanceof nt,ee=$[0],ne=G||Ue(D),ae=function(tt){var it=w.apply(I,zr([tt],$));return g&&ge?it[0]:it};ne&&d&&typeof ee=="function"&&ee.length!=1&&(G=ne=!1);var ge=this.__chain__,Ee=!!this.__actions__.length,De=_&&!ge,Ke=G&&!Ee;if(!_&&ne){D=Ke?D:new nt(this);var $e=o.apply(D,$);return $e.__actions__.push({func:Ll,args:[ae],thisArg:n}),new Tn($e,ge)}return De&&Ke?o.apply(this,$):($e=this.thru(ae),De?g?$e.value()[0]:$e.value():$e)})}),_n(["pop","push","shift","sort","splice","unshift"],function(o){var s=al[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var _=this.value();return s.apply(Ue(_)?_:[],w)}return this[d](function(D){return s.apply(Ue(D)?D:[],w)})}}),nr(nt.prototype,function(o,s){var d=I[s];if(d){var g=d.name+"";pt.call(Zo,g)||(Zo[g]=[]),Zo[g].push({name:s,func:d})}}),Zo[_l(n,A).name]=[{name:"wrapper",func:n}],nt.prototype.clone=rY,nt.prototype.reverse=iY,nt.prototype.value=oY,I.prototype.at=LK,I.prototype.chain=DK,I.prototype.commit=$K,I.prototype.next=NK,I.prototype.plant=BK,I.prototype.reverse=kK,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=jK,I.prototype.first=I.prototype.head,ts&&(I.prototype[ts]=VK),I},Go=$U();Di?((Di.exports=Go)._=Go,Hh._=Go):Wt._=Go}).call(or)}(el,el.exports);var Iz=el.exports;function Ez({onClick:e}){return T.jsx(Cd.Button,{onClick:e,children:T.jsx(n5,{className:"w-6 h-6"})})}function Az({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,terminalName:E}){return T.jsx(Bs,{children:S&&T.jsx(Ji.div,{transition:{type:"spring"},initial:{opacity:0,y:"-10%"},animate:{opacity:1,y:"0%"},exit:{opacity:0,y:"-10%"},className:et("w-[415px]","bg-gradient-to-r from-brand to-brand-secondary","rounded-lg rounded-tr-none pt-8","absolute top-16 right-4"),onClick:A=>A.stopPropagation(),children:T.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:T.jsx("div",{className:"w-full px-3",children:T.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[T.jsx(tg,{size:"md"}),T.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),T.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),T.jsx(Tz,{children:T.jsx(m5,{className:"w-4 h-4"})}),T.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[T.jsxs(wC,{onClick:()=>u("pt-br"),children:[T.jsx(v5,{})," Navegar em português"]}),T.jsxs(wC,{onClick:()=>u("en-us"),children:[T.jsx(b5,{})," Browse in English"]})]}),t===2&&T.jsx("div",{className:"mb-4",children:T.jsx(Ki,{variant:"primary",onClick:l,children:T.jsxs("div",{className:"p-5",children:[T.jsxs("p",{className:"text-[12px]",children:["Terminal:"," ",T.jsx("b",{children:E??""})]}),T.jsx("p",{className:"text-[11px]",children:m})]})})}),T.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[T.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[h," ",T.jsxs("span",{className:"text-brand-dark-gray",children:["(",p,")"]})]}),T.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:Iz.sortBy(e.portais,["descricao"]).map((A,R)=>{const L=f===A.nome;return T.jsxs(Bs,{mode:"wait",children:["isOpen && (",T.jsxs(Ji.a,{href:A.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:R*(50/1e3)},className:"text-center children:mx-auto",children:[T.jsx("div",{className:et("flex items-center justify-center transition rounded-md w-11 h-9 shadow-action-button hover:shadow-action-button-hover",{"bg-brand-secondary text-white shadow-action-button-hover":L,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!L}),children:n[A.descricao]||T.jsx("span",{children:"?"})}),T.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:A.nome})]},"portal-item-"+A.descricao),")"]},R)})})]}),T.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[T.jsxs("div",{className:"flex items-center gap-0.5",children:[T.jsx(_z,{isDarkMode:r,setIsDarkMode:i,setTheme:a}),T.jsx("span",{className:et({"text-brand-secondary":r,"text-brand-secondary-text":!r},"text-xs"),children:v})]}),T.jsxs("div",{onClick:c,className:"flex items-center gap-1 cursor-pointer",children:[T.jsx(i5,{}),T.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:C})]})]})]})})})},"user-menu-container")})}function _z({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),T.jsxs(Wx,{onChange:t,checked:e,className:et({"bg-brand-dark-gray-dark text-brand-secondary":e,"bg-brand-gray":!e,peer:e},"h-[22px] w-[44px]","shrink-0 cursor-pointer","relative","rounded-full text-white","border-2 border-transparent","transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75"),children:[T.jsx("span",{className:"sr-only",children:"Dark theme?"}),T.jsx(Bs,{children:T.jsx("div",{className:"flex items-center w-full",children:e?T.jsx(o5,{className:"w-4 translate-x-5"}):T.jsx(Pz,{})})})]})}function Pz(){return T.jsx(Ji.svg,{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/motion.svg",initial:{opacity:0,translateX:"100%"},animate:{opacity:1,translateX:"5%"},exit:{opacity:0,translateX:"100%"},children:T.jsx("path",{d:"m 0 9 a 9 9 0 1 1 18 0 A 9 9 0 1 1 0 9",fill:"currentColor"})},"dark-theme-off")}function Tz({children:e}){return T.jsx("button",{className:"flex items-center justify-center bg-brand-gray text-brand-text w-[25px] h-[25px] rounded-full my-px cursor-default",children:e})}function wC({children:e,onClick:t}){return T.jsx("button",{onClick:t,className:et("bg-brand-light-gray dark:bg-brand-dark-gray-dark hover:bg-brand dark:hover:bg-brand","text-brand-secondary-text dark:text-white hover:text-brand-light-gray","rounded-lg px-2 py-1.5 text-xs transition","flex gap-2"),children:e})}function Oz({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,setOpen:E,terminalName:A}){function R(){E(V=>!V)}function L(){E(!1)}return T.jsxs(T.Fragment,{children:[T.jsx(Ez,{onClick:R}),T.jsx(ks,{isOpen:S,close:L,children:T.jsx(Az,{userTypeId:t,user:e,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,terminalName:A})})]})}var Fz=process.env.NODE_ENV==="production";function $o(e,t){if(!Fz){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Nh(){return Nh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nh.apply(this,arguments)}function Rz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tl=b.createContext(void 0);tl.displayName="FormikContext",tl.Provider,tl.Consumer;function SC(){var e=b.useContext(tl);return e||(process.env.NODE_ENV!=="production"?$o(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):$o(!1)),e}var Mz=function(t){return t!==null&&typeof t=="object"};function Lz(e){var t=SC(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,u=t.unregisterField,l=Mz(e),c=l?e:{name:e},f=c.name,h=c.validate;b.useEffect(function(){return f&&a(f,{validate:h}),function(){f&&u(f)}},[a,u,f,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?$o(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):$o(!1))),f||(process.env.NODE_ENV!=="production"?$o(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):$o(!1));var p=b.useMemo(function(){return i(f)},[i,f]);return[n(c),r(f),p]}var Dz=b.forwardRef(function(e,t){var n=e.action,r=Rz(e,["action"]),i=n??"#",a=SC(),u=a.handleReset,l=a.handleSubmit;return b.createElement("form",Nh({onSubmit:l,ref:t,onReset:u,action:i},r))});Dz.displayName="Form";const $z=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:u},{setValue:l,setTouched:c}]=Lz(e);console.log("error",u),console.log("field",a),console.log("name",e),console.log("props",i);const f=p=>{const m=i.type==="color"?p:p.target.value;l(m),n&&n(m)},h=()=>{c(!0),r&&r()};return T.jsx(T.Fragment,{children:T.jsx(Hb,{error:u,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};je.Avatar=tg,je.Backdrop=ks,je.BaseField=$z,je.Button=Ki,je.Card=RA,je.Checkbox=MA,je.ColorPicker=Mb,je.Dialog=Pk,je.DualListBox=Vk,je.ErrorMessage=hd,je.Header=Bk,je.HelperMessage=pd,je.Input=Hb,je.Label=xd,je.Navbar=Cd,je.Radio=zk,je.Select=uZ,je.SideMenu=eX,je.Spinner=dd,je.Switch=VX,je.Table=bz,je.TableAction=yz,je.TablePagination=mz,je.Tooltip=CC,je.UploadFile=Sz,je.UserMenu=Oz,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})});
218
- //# sourceMappingURL=index.umd.js.map
217
+ }`;var Ke=X2(function(){return ct(_,Ee+"return "+ae).apply(n,D)});if(Ke.source=ae,Np(Ke))throw Ke;return Ke}function KQ(o){return ht(o).toLowerCase()}function qQ(o){return ht(o).toUpperCase()}function QQ(o,s,d){if(o=ht(o),o&&(d||s===n))return tw(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=nw(g,w),D=rw(g,w)+1;return Qr(g,_,D).join("")}function eee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,ow(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=rw(g,Wn(s))+1;return Qr(g,0,w).join("")}function tee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.replace(Mi,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=nw(g,Wn(s));return Qr(g,w).join("")}function nee(o,s){var d=Te,g=Ge;if(Pt(s)){var w="separator"in s?s.separator:w;d="length"in s?Ye(s.length):d,g="omission"in s?yn(s.omission):g}o=ht(o);var _=o.length;if(ko(o)){var D=Wn(o);_=D.length}if(d>=_)return o;var $=d-jo(g);if($<1)return g;var G=D?Qr(D,0,$).join(""):o.slice(0,$);if(w===n)return G+g;if(D&&($+=G.length-$),Vp(w)){if(o.slice($).search(w)){var ee,ne=G;for(w.global||(w=ep(w.source,ht(_e.exec(w))+"g")),w.lastIndex=0;ee=w.exec(ne);)var ae=ee.index;G=G.slice(0,ae===n?$:ae)}}else if(o.indexOf(yn(w),$)!=$){var ge=G.lastIndexOf(w);ge>-1&&(G=G.slice(0,ge))}return G+g}function ree(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,RU):o}var iee=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),jp=zw("toUpperCase");function Z2(o,s,d){return o=ht(o),s=d?n:s,s===n?_U(o)?DU(o):bU(o):o.match(s)||[]}var X2=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return Np(d)?d:new Ze(d)}}),oee=_r(function(o,s){return _n(s,function(d){d=ir(d),Er(o,d,Dp(o[d],o))}),o});function aee(o){var s=o==null?0:o.length,d=Fe();return o=s?At(o,function(g){if(typeof g[1]!="function")throw new Pn(u);return[d(g[0]),g[1]]}):[],Qe(function(g){for(var w=-1;++w<s;){var _=o[w];if(vn(_[0],this,g))return vn(_[1],this,g)}})}function see(o){return RY(On(o,p))}function Gp(o){return function(){return o}}function uee(o,s){return o==null||o!==o?s:o}var lee=Yw(),cee=Yw(!0);function fn(o){return o}function Hp(o){return Ew(typeof o=="function"?o:On(o,p))}function fee(o){return _w(On(o,p))}function dee(o,s){return Pw(o,On(s,p))}var hee=Qe(function(o,s){return function(d){return us(d,o,s)}}),pee=Qe(function(o,s){return function(d){return us(o,d,s)}});function Wp(o,s,d){var g=Gt(s),w=wl(s,g);d==null&&!(Pt(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=wl(s,Gt(s)));var _=!(Pt(d)&&"chain"in d)||!!d.chain,D=Tr(o);return _n(w,function($){var G=s[$];o[$]=G,D&&(o.prototype[$]=function(){var ee=this.__chain__;if(_||ee){var ne=o(this.__wrapped__),ae=ne.__actions__=un(this.__actions__);return ae.push({func:G,args:arguments,thisArg:o}),ne.__chain__=ee,ne}return G.apply(o,zr([this.value()],arguments))})}),o}function gee(){return Wt._===this&&(Wt._=jU),this}function Zp(){}function mee(o){return o=Ye(o),Qe(function(s){return Tw(s,o)})}var vee=wp(At),bee=wp(JC),yee=wp(zh);function z2(o){return Tp(o)?Uh(ir(o)):YY(o)}function xee(o){return function(s){return o==null?n:ki(o,s)}}var Cee=Kw(),wee=Kw(!0);function Xp(){return[]}function zp(){return!1}function See(){return{}}function Iee(){return""}function Eee(){return!0}function Aee(o,s){if(o=Ye(o),o<1||o>Je)return[];var d=M,g=Kt(o,M);s=Fe(s),o-=M;for(var w=Kh(g,s);++d<o;)s(d);return w}function _ee(o){return Ue(o)?At(o,ir):xn(o)?[o]:un(h2(ht(o)))}function Pee(o){var s=++BU;return ht(o)+s}var Tee=Pl(function(o,s){return o+s},0),Oee=Sp("ceil"),Fee=Pl(function(o,s){return o/s},1),Ree=Sp("floor");function Mee(o){return o&&o.length?Cl(o,fn,up):n}function Lee(o,s){return o&&o.length?Cl(o,Fe(s,2),up):n}function Dee(o){return QC(o,fn)}function $ee(o,s){return QC(o,Fe(s,2))}function Nee(o){return o&&o.length?Cl(o,fn,dp):n}function Vee(o,s){return o&&o.length?Cl(o,Fe(s,2),dp):n}var Bee=Pl(function(o,s){return o*s},1),kee=Sp("round"),jee=Pl(function(o,s){return o-s},0);function Gee(o){return o&&o.length?Jh(o,fn):0}function Hee(o,s){return o&&o.length?Jh(o,Fe(s,2)):0}return I.after=fq,I.ary=I2,I.assign=qq,I.assignIn=V2,I.assignInWith=jl,I.assignWith=Qq,I.at=eQ,I.before=E2,I.bind=Dp,I.bindAll=oee,I.bindKey=A2,I.castArray=Sq,I.chain=C2,I.chunk=RJ,I.compact=MJ,I.concat=LJ,I.cond=aee,I.conforms=see,I.constant=Gp,I.countBy=GK,I.create=tQ,I.curry=_2,I.curryRight=P2,I.debounce=T2,I.defaults=nQ,I.defaultsDeep=rQ,I.defer=dq,I.delay=hq,I.difference=DJ,I.differenceBy=$J,I.differenceWith=NJ,I.drop=VJ,I.dropRight=BJ,I.dropRightWhile=kJ,I.dropWhile=jJ,I.fill=GJ,I.filter=WK,I.flatMap=zK,I.flatMapDeep=UK,I.flatMapDepth=YK,I.flatten=v2,I.flattenDeep=HJ,I.flattenDepth=WJ,I.flip=pq,I.flow=lee,I.flowRight=cee,I.fromPairs=ZJ,I.functions=cQ,I.functionsIn=fQ,I.groupBy=JK,I.initial=zJ,I.intersection=UJ,I.intersectionBy=YJ,I.intersectionWith=JJ,I.invert=hQ,I.invertBy=pQ,I.invokeMap=qK,I.iteratee=Hp,I.keyBy=QK,I.keys=Gt,I.keysIn=cn,I.map=Dl,I.mapKeys=mQ,I.mapValues=vQ,I.matches=fee,I.matchesProperty=dee,I.memoize=Nl,I.merge=bQ,I.mergeWith=B2,I.method=hee,I.methodOf=pee,I.mixin=Wp,I.negate=Vl,I.nthArg=mee,I.omit=yQ,I.omitBy=xQ,I.once=gq,I.orderBy=eq,I.over=vee,I.overArgs=mq,I.overEvery=bee,I.overSome=yee,I.partial=$p,I.partialRight=O2,I.partition=tq,I.pick=CQ,I.pickBy=k2,I.property=z2,I.propertyOf=xee,I.pull=eK,I.pullAll=y2,I.pullAllBy=tK,I.pullAllWith=nK,I.pullAt=rK,I.range=Cee,I.rangeRight=wee,I.rearg=vq,I.reject=iq,I.remove=iK,I.rest=bq,I.reverse=Mp,I.sampleSize=aq,I.set=SQ,I.setWith=IQ,I.shuffle=sq,I.slice=oK,I.sortBy=cq,I.sortedUniq=dK,I.sortedUniqBy=hK,I.split=zQ,I.spread=yq,I.tail=pK,I.take=gK,I.takeRight=mK,I.takeRightWhile=vK,I.takeWhile=bK,I.tap=MK,I.throttle=xq,I.thru=Ll,I.toArray=D2,I.toPairs=j2,I.toPairsIn=G2,I.toPath=_ee,I.toPlainObject=N2,I.transform=EQ,I.unary=Cq,I.union=yK,I.unionBy=xK,I.unionWith=CK,I.uniq=wK,I.uniqBy=SK,I.uniqWith=IK,I.unset=AQ,I.unzip=Lp,I.unzipWith=x2,I.update=_Q,I.updateWith=PQ,I.values=Ko,I.valuesIn=TQ,I.without=EK,I.words=Z2,I.wrap=wq,I.xor=AK,I.xorBy=_K,I.xorWith=PK,I.zip=TK,I.zipObject=OK,I.zipObjectDeep=FK,I.zipWith=RK,I.entries=j2,I.entriesIn=G2,I.extend=V2,I.extendWith=jl,Wp(I,I),I.add=Tee,I.attempt=X2,I.camelCase=MQ,I.capitalize=H2,I.ceil=Oee,I.clamp=OQ,I.clone=Iq,I.cloneDeep=Aq,I.cloneDeepWith=_q,I.cloneWith=Eq,I.conformsTo=Pq,I.deburr=W2,I.defaultTo=uee,I.divide=Fee,I.endsWith=LQ,I.eq=Xn,I.escape=DQ,I.escapeRegExp=$Q,I.every=HK,I.find=ZK,I.findIndex=g2,I.findKey=iQ,I.findLast=XK,I.findLastIndex=m2,I.findLastKey=oQ,I.floor=Ree,I.forEach=w2,I.forEachRight=S2,I.forIn=aQ,I.forInRight=sQ,I.forOwn=uQ,I.forOwnRight=lQ,I.get=Bp,I.gt=Tq,I.gte=Oq,I.has=dQ,I.hasIn=kp,I.head=b2,I.identity=fn,I.includes=KK,I.indexOf=XJ,I.inRange=FQ,I.invoke=gQ,I.isArguments=Hi,I.isArray=Ue,I.isArrayBuffer=Fq,I.isArrayLike=ln,I.isArrayLikeObject=Lt,I.isBoolean=Rq,I.isBuffer=ei,I.isDate=Mq,I.isElement=Lq,I.isEmpty=Dq,I.isEqual=$q,I.isEqualWith=Nq,I.isError=Np,I.isFinite=Vq,I.isFunction=Tr,I.isInteger=F2,I.isLength=Bl,I.isMap=R2,I.isMatch=Bq,I.isMatchWith=kq,I.isNaN=jq,I.isNative=Gq,I.isNil=Wq,I.isNull=Hq,I.isNumber=M2,I.isObject=Pt,I.isObjectLike=Ft,I.isPlainObject=ps,I.isRegExp=Vp,I.isSafeInteger=Zq,I.isSet=L2,I.isString=kl,I.isSymbol=xn,I.isTypedArray=Jo,I.isUndefined=Xq,I.isWeakMap=zq,I.isWeakSet=Uq,I.join=KJ,I.kebabCase=NQ,I.last=Rn,I.lastIndexOf=qJ,I.lowerCase=VQ,I.lowerFirst=BQ,I.lt=Yq,I.lte=Jq,I.max=Mee,I.maxBy=Lee,I.mean=Dee,I.meanBy=$ee,I.min=Nee,I.minBy=Vee,I.stubArray=Xp,I.stubFalse=zp,I.stubObject=See,I.stubString=Iee,I.stubTrue=Eee,I.multiply=Bee,I.nth=QJ,I.noConflict=gee,I.noop=Zp,I.now=$l,I.pad=kQ,I.padEnd=jQ,I.padStart=GQ,I.parseInt=HQ,I.random=RQ,I.reduce=nq,I.reduceRight=rq,I.repeat=WQ,I.replace=ZQ,I.result=wQ,I.round=kee,I.runInContext=k,I.sample=oq,I.size=uq,I.snakeCase=XQ,I.some=lq,I.sortedIndex=aK,I.sortedIndexBy=sK,I.sortedIndexOf=uK,I.sortedLastIndex=lK,I.sortedLastIndexBy=cK,I.sortedLastIndexOf=fK,I.startCase=UQ,I.startsWith=YQ,I.subtract=jee,I.sum=Gee,I.sumBy=Hee,I.template=JQ,I.times=Aee,I.toFinite=Or,I.toInteger=Ye,I.toLength=$2,I.toLower=KQ,I.toNumber=Mn,I.toSafeInteger=Kq,I.toString=ht,I.toUpper=qQ,I.trim=QQ,I.trimEnd=eee,I.trimStart=tee,I.truncate=nee,I.unescape=ree,I.uniqueId=Pee,I.upperCase=iee,I.upperFirst=jp,I.each=w2,I.eachRight=S2,I.first=b2,Wp(I,function(){var o={};return nr(I,function(s,d){pt.call(I.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),I.VERSION=r,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),_n(["drop","take"],function(o,s){nt.prototype[o]=function(d){d=d===n?1:kt(Ye(d),0);var g=this.__filtered__&&!s?new nt(this):this.clone();return g.__filtered__?g.__takeCount__=Kt(d,g.__takeCount__):g.__views__.push({size:Kt(d,M),type:o+(g.__dir__<0?"Right":"")}),g},nt.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),_n(["filter","map","takeWhile"],function(o,s){var d=s+1,g=d==Ce||d==Ae;nt.prototype[o]=function(w){var _=this.clone();return _.__iteratees__.push({iteratee:Fe(w,3),type:d}),_.__filtered__=_.__filtered__||g,_}}),_n(["head","last"],function(o,s){var d="take"+(s?"Right":"");nt.prototype[o]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(o,s){var d="drop"+(s?"":"Right");nt.prototype[o]=function(){return this.__filtered__?new nt(this):this[d](1)}}),nt.prototype.compact=function(){return this.filter(fn)},nt.prototype.find=function(o){return this.filter(o).head()},nt.prototype.findLast=function(o){return this.reverse().find(o)},nt.prototype.invokeMap=Qe(function(o,s){return typeof o=="function"?new nt(this):this.map(function(d){return us(d,o,s)})}),nt.prototype.reject=function(o){return this.filter(Vl(Fe(o)))},nt.prototype.slice=function(o,s){o=Ye(o);var d=this;return d.__filtered__&&(o>0||s<0)?new nt(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),s!==n&&(s=Ye(s),d=s<0?d.dropRight(-s):d.take(s-o)),d)},nt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},nt.prototype.toArray=function(){return this.take(M)},nr(nt.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),g=/^(?:head|last)$/.test(s),w=I[g?"take"+(s=="last"?"Right":""):s],_=g||/^find/.test(s);w&&(I.prototype[s]=function(){var D=this.__wrapped__,$=g?[1]:arguments,G=D instanceof nt,ee=$[0],ne=G||Ue(D),ae=function(tt){var it=w.apply(I,zr([tt],$));return g&&ge?it[0]:it};ne&&d&&typeof ee=="function"&&ee.length!=1&&(G=ne=!1);var ge=this.__chain__,Ee=!!this.__actions__.length,De=_&&!ge,Ke=G&&!Ee;if(!_&&ne){D=Ke?D:new nt(this);var $e=o.apply(D,$);return $e.__actions__.push({func:Ll,args:[ae],thisArg:n}),new Tn($e,ge)}return De&&Ke?o.apply(this,$):($e=this.thru(ae),De?g?$e.value()[0]:$e.value():$e)})}),_n(["pop","push","shift","sort","splice","unshift"],function(o){var s=al[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var _=this.value();return s.apply(Ue(_)?_:[],w)}return this[d](function(D){return s.apply(Ue(D)?D:[],w)})}}),nr(nt.prototype,function(o,s){var d=I[s];if(d){var g=d.name+"";pt.call(Zo,g)||(Zo[g]=[]),Zo[g].push({name:s,func:d})}}),Zo[_l(n,A).name]=[{name:"wrapper",func:n}],nt.prototype.clone=rY,nt.prototype.reverse=iY,nt.prototype.value=oY,I.prototype.at=LK,I.prototype.chain=DK,I.prototype.commit=$K,I.prototype.next=NK,I.prototype.plant=BK,I.prototype.reverse=kK,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=jK,I.prototype.first=I.prototype.head,ts&&(I.prototype[ts]=VK),I},Go=$U();Di?((Di.exports=Go)._=Go,Hh._=Go):Wt._=Go}).call(or)}(el,el.exports);var Iz=el.exports;function Ez({onClick:e}){return T.jsx(Cd.Button,{onClick:e,children:T.jsx(n5,{className:"w-6 h-6"})})}function Az({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,terminalName:E}){return T.jsx(Bs,{children:S&&T.jsx(Ji.div,{transition:{type:"spring"},initial:{opacity:0,y:"-10%"},animate:{opacity:1,y:"0%"},exit:{opacity:0,y:"-10%"},className:et("w-[415px]","bg-gradient-to-r from-brand to-brand-secondary","rounded-lg rounded-tr-none pt-8","absolute top-16 right-4"),onClick:A=>A.stopPropagation(),children:T.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:T.jsx("div",{className:"w-full px-3",children:T.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[T.jsx(tg,{size:"md"}),T.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),T.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),T.jsx(Tz,{children:T.jsx(m5,{className:"w-4 h-4"})}),T.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[T.jsxs(wC,{onClick:()=>u("pt-br"),children:[T.jsx(v5,{})," Navegar em português"]}),T.jsxs(wC,{onClick:()=>u("en-us"),children:[T.jsx(b5,{})," Browse in English"]})]}),t===2&&T.jsx("div",{className:"mb-4",children:T.jsx(Ki,{variant:"primary",onClick:l,children:T.jsxs("div",{className:"p-5",children:[T.jsxs("p",{className:"text-[12px]",children:["Terminal:"," ",T.jsx("b",{children:E??""})]}),T.jsx("p",{className:"text-[11px]",children:m})]})})}),T.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[T.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[h," ",T.jsxs("span",{className:"text-brand-dark-gray",children:["(",p,")"]})]}),T.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:Iz.sortBy(e.portais,["descricao"]).map((A,R)=>{const L=f===A.nome;return T.jsxs(Bs,{mode:"wait",children:["isOpen && (",T.jsxs(Ji.a,{href:A.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:R*(50/1e3)},className:"text-center children:mx-auto",children:[T.jsx("div",{className:et("flex items-center justify-center transition rounded-md w-11 h-9 shadow-action-button hover:shadow-action-button-hover",{"bg-brand-secondary text-white shadow-action-button-hover":L,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!L}),children:n[A.descricao]||T.jsx("span",{children:"?"})}),T.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:A.nome})]},"portal-item-"+A.descricao),")"]},R)})})]}),T.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[T.jsxs("div",{className:"flex items-center gap-0.5",children:[T.jsx(_z,{isDarkMode:r,setIsDarkMode:i,setTheme:a}),T.jsx("span",{className:et({"text-brand-secondary":r,"text-brand-secondary-text":!r},"text-xs"),children:v})]}),T.jsxs("div",{onClick:c,className:"flex items-center gap-1 cursor-pointer",children:[T.jsx(i5,{}),T.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:C})]})]})]})})})},"user-menu-container")})}function _z({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),T.jsxs(Wx,{onChange:t,checked:e,className:et({"bg-brand-dark-gray-dark text-brand-secondary":e,"bg-brand-gray":!e,peer:e},"h-[22px] w-[44px]","shrink-0 cursor-pointer","relative","rounded-full text-white","border-2 border-transparent","transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75"),children:[T.jsx("span",{className:"sr-only",children:"Dark theme?"}),T.jsx(Bs,{children:T.jsx("div",{className:"flex items-center w-full",children:e?T.jsx(o5,{className:"w-4 translate-x-5"}):T.jsx(Pz,{})})})]})}function Pz(){return T.jsx(Ji.svg,{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/motion.svg",initial:{opacity:0,translateX:"100%"},animate:{opacity:1,translateX:"5%"},exit:{opacity:0,translateX:"100%"},children:T.jsx("path",{d:"m 0 9 a 9 9 0 1 1 18 0 A 9 9 0 1 1 0 9",fill:"currentColor"})},"dark-theme-off")}function Tz({children:e}){return T.jsx("button",{className:"flex items-center justify-center bg-brand-gray text-brand-text w-[25px] h-[25px] rounded-full my-px cursor-default",children:e})}function wC({children:e,onClick:t}){return T.jsx("button",{onClick:t,className:et("bg-brand-light-gray dark:bg-brand-dark-gray-dark hover:bg-brand dark:hover:bg-brand","text-brand-secondary-text dark:text-white hover:text-brand-light-gray","rounded-lg px-2 py-1.5 text-xs transition","flex gap-2"),children:e})}function Oz({user:e,userTypeId:t,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,setOpen:E,terminalName:A}){function R(){E(V=>!V)}function L(){E(!1)}return T.jsxs(T.Fragment,{children:[T.jsx(Ez,{onClick:R}),T.jsx(ks,{isOpen:S,close:L,children:T.jsx(Az,{userTypeId:t,user:e,icons:n,isDarkMode:r,setIsDarkMode:i,setTheme:a,setLanguage:u,onSelectTerminal:l,logout:c,appNameText:f,availablePortalsText:h,clickToAccessText:p,clickToChangeTerminal:m,nightThemeText:v,logoutText:C,isOpen:S,terminalName:A})})]})}var Fz=process.env.NODE_ENV==="production";function $o(e,t){if(!Fz){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Nh(){return Nh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nh.apply(this,arguments)}function Rz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tl=b.createContext(void 0);tl.displayName="FormikContext",tl.Provider,tl.Consumer;function SC(){var e=b.useContext(tl);return e||(process.env.NODE_ENV!=="production"?$o(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):$o(!1)),e}var Mz=function(t){return t!==null&&typeof t=="object"};function Lz(e){var t=SC(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,u=t.unregisterField,l=Mz(e),c=l?e:{name:e},f=c.name,h=c.validate;b.useEffect(function(){return f&&a(f,{validate:h}),function(){f&&u(f)}},[a,u,f,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?$o(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):$o(!1))),f||(process.env.NODE_ENV!=="production"?$o(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):$o(!1));var p=b.useMemo(function(){return i(f)},[i,f]);return[n(c),r(f),p]}var Dz=b.forwardRef(function(e,t){var n=e.action,r=Rz(e,["action"]),i=n??"#",a=SC(),u=a.handleReset,l=a.handleSubmit;return b.createElement("form",Nh({onSubmit:l,ref:t,onReset:u,action:i},r))});Dz.displayName="Form";const $z=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:u},{setValue:l,setTouched:c}]=Lz(e),f=p=>{const m=i.type==="color"?p:p.target.value;l(m),n&&n(m)},h=()=>{c(!0),r&&r()};return T.jsx(T.Fragment,{children:T.jsx(Hb,{error:u,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};je.Avatar=tg,je.Backdrop=ks,je.BaseField=$z,je.Button=Ki,je.Card=RA,je.Checkbox=MA,je.ColorPicker=Mb,je.Dialog=Pk,je.DualListBox=Vk,je.ErrorMessage=hd,je.Header=Bk,je.HelperMessage=pd,je.Input=Hb,je.Label=xd,je.Navbar=Cd,je.Radio=zk,je.Select=uZ,je.SideMenu=eX,je.Spinner=dd,je.Switch=VX,je.Table=bz,je.TableAction=yz,je.TablePagination=mz,je.Tooltip=CC,je.UploadFile=Sz,je.UserMenu=Oz,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Hxtos"
5
5
  },
6
6
  "private": false,
7
- "version": "0.17.5",
7
+ "version": "0.17.6",
8
8
  "license": "MIT",
9
9
  "description": "Biblioteca de componentes Hxtos",
10
10
  "type": "module",