@hxtos/hx-components 0.25.0 → 0.25.1

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
@@ -28524,7 +28524,7 @@ const Qte = ({
28524
28524
  ) });
28525
28525
  };
28526
28526
  function ene({ dismiss: e, message: t }) {
28527
- return /* @__PURE__ */ S.jsxs("div", { className: "relative z-20 flex items-center p-4 text-sm border-l-4 border-red-400 shadow-lg w-80 bg-blue-50", children: [
28527
+ return /* @__PURE__ */ S.jsxs("div", { className: "relative z-20 flex items-center p-4 text-sm border-l-4 border-red-400 shadow-lg w-80 bg-red-50", children: [
28528
28528
  /* @__PURE__ */ S.jsx(
28529
28529
  "button",
28530
28530
  {
@@ -28569,7 +28569,7 @@ function nne({ dismiss: e, message: t }) {
28569
28569
  ] });
28570
28570
  }
28571
28571
  function rne({ dismiss: e, message: t }) {
28572
- return /* @__PURE__ */ S.jsxs("div", { className: "relative z-20 flex items-center p-4 text-sm border-l-4 border-yellow-400 shadow-lg w-80 bg-blue-50", children: [
28572
+ return /* @__PURE__ */ S.jsxs("div", { className: "relative z-20 flex items-center p-4 text-sm border-l-4 border-yellow-400 shadow-lg w-80 bg-yellow-50", children: [
28573
28573
  /* @__PURE__ */ S.jsx(
28574
28574
  "button",
28575
28575
  {
package/dist/index.umd.js CHANGED
@@ -214,4 +214,4 @@ __p += '`),it&&(se+=`' +
214
214
  function print() { __p += __j.call(arguments, '') }
215
215
  `:`;
216
216
  `)+se+`return __p
217
- }`;var Ke=K4(function(){return ct(_,Ae+"return "+se).apply(n,V)});if(Ke.source=se,B0(Ke))throw Ke;return Ke}function Eee(o){return ht(o).toLowerCase()}function Aee(o){return ht(o).toUpperCase()}function _ee(o,s,d){if(o=ht(o),o&&(d||s===n))return a9(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=s9(g,w),V=l9(g,w)+1;return Qr(g,_,V).join("")}function Pee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,c9(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=l9(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(Ri,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=s9(g,Wn(s));return Qr(g,w).join("")}function Oee(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(jo(o)){var V=Wn(o);_=V.length}if(d>=_)return o;var $=d-ko(g);if($<1)return g;var G=V?Qr(V,0,$).join(""):o.slice(0,$);if(w===n)return G+g;if(V&&($+=G.length-$),j0(w)){if(o.slice($).search(w)){var te,re=G;for(w.global||(w=n0(w.source,ht(_e.exec(w))+"g")),w.lastIndex=0;te=w.exec(re);)var se=te.index;G=G.slice(0,se===n?$:se)}}else if(o.indexOf(yn(w),$)!=$){var ge=G.lastIndexOf(w);ge>-1&&(G=G.slice(0,ge))}return G+g}function Fee(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,aY):o}var Mee=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),H0=q9("toUpperCase");function J4(o,s,d){return o=ht(o),s=d?n:s,s===n?tY(o)?uY(o):XU(o):o.match(s)||[]}var K4=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return B0(d)?d:new Ze(d)}}),Ree=_r(function(o,s){return _n(s,function(d){d=ir(d),Er(o,d,D0(o[d],o))}),o});function Lee(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(l);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 Vee(o){return aJ(On(o,p))}function W0(o){return function(){return o}}function Nee(o,s){return o==null||o!==o?s:o}var Dee=e4(),$ee=e4(!0);function fn(o){return o}function Z0(o){return O9(typeof o=="function"?o:On(o,p))}function Bee(o){return M9(On(o,p))}function jee(o,s){return R9(o,On(s,p))}var kee=Qe(function(o,s){return function(d){return ls(d,o,s)}}),Gee=Qe(function(o,s){return function(d){return ls(o,d,s)}});function X0(o,s,d){var g=Gt(s),w=Su(s,g);d==null&&!(Pt(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=Su(s,Gt(s)));var _=!(Pt(d)&&"chain"in d)||!!d.chain,V=Tr(o);return _n(w,function($){var G=s[$];o[$]=G,V&&(o.prototype[$]=function(){var te=this.__chain__;if(_||te){var re=o(this.__wrapped__),se=re.__actions__=ln(this.__actions__);return se.push({func:G,args:arguments,thisArg:o}),re.__chain__=te,re}return G.apply(o,zr([this.value()],arguments))})}),o}function Hee(){return Wt._===this&&(Wt._=gY),this}function z0(){}function Wee(o){return o=Ye(o),Qe(function(s){return L9(s,o)})}var Zee=I0(At),Xee=I0(t9),zee=I0(Y1);function q4(o){return F0(o)?J1(ir(o)):SJ(o)}function Uee(o){return function(s){return o==null?n:ji(o,s)}}var Yee=n4(),Jee=n4(!0);function U0(){return[]}function Y0(){return!1}function Kee(){return{}}function qee(){return""}function Qee(){return!0}function ete(o,s){if(o=Ye(o),o<1||o>Je)return[];var d=R,g=Kt(o,R);s=Fe(s),o-=R;for(var w=Q1(g,s);++d<o;)s(d);return w}function tte(o){return Ue(o)?At(o,ir):Cn(o)?[o]:ln(b4(ht(o)))}function nte(o){var s=++hY;return ht(o)+s}var rte=Tu(function(o,s){return o+s},0),ite=E0("ceil"),ote=Tu(function(o,s){return o/s},1),ate=E0("floor");function ste(o){return o&&o.length?wu(o,fn,c0):n}function lte(o,s){return o&&o.length?wu(o,Fe(s,2),c0):n}function ute(o){return i9(o,fn)}function cte(o,s){return i9(o,Fe(s,2))}function fte(o){return o&&o.length?wu(o,fn,p0):n}function dte(o,s){return o&&o.length?wu(o,Fe(s,2),p0):n}var hte=Tu(function(o,s){return o*s},1),pte=E0("round"),gte=Tu(function(o,s){return o-s},0);function mte(o){return o&&o.length?q1(o,fn):0}function vte(o,s){return o&&o.length?q1(o,Fe(s,2)):0}return E.after=Bq,E.ary=T4,E.assign=AQ,E.assignIn=H4,E.assignInWith=Gu,E.assignWith=_Q,E.at=PQ,E.before=O4,E.bind=D0,E.bindAll=Ree,E.bindKey=F4,E.castArray=Kq,E.chain=A4,E.chunk=aK,E.compact=sK,E.concat=lK,E.cond=Lee,E.conforms=Vee,E.constant=W0,E.countBy=mq,E.create=TQ,E.curry=M4,E.curryRight=R4,E.debounce=L4,E.defaults=OQ,E.defaultsDeep=FQ,E.defer=jq,E.delay=kq,E.difference=uK,E.differenceBy=cK,E.differenceWith=fK,E.drop=dK,E.dropRight=hK,E.dropRightWhile=pK,E.dropWhile=gK,E.fill=mK,E.filter=bq,E.flatMap=xq,E.flatMapDeep=wq,E.flatMapDepth=Sq,E.flatten=w4,E.flattenDeep=vK,E.flattenDepth=bK,E.flip=Gq,E.flow=Dee,E.flowRight=$ee,E.fromPairs=yK,E.functions=$Q,E.functionsIn=BQ,E.groupBy=Iq,E.initial=xK,E.intersection=wK,E.intersectionBy=SK,E.intersectionWith=IK,E.invert=kQ,E.invertBy=GQ,E.invokeMap=Aq,E.iteratee=Z0,E.keyBy=_q,E.keys=Gt,E.keysIn=cn,E.map=Nu,E.mapKeys=WQ,E.mapValues=ZQ,E.matches=Bee,E.matchesProperty=jee,E.memoize=$u,E.merge=XQ,E.mergeWith=W4,E.method=kee,E.methodOf=Gee,E.mixin=X0,E.negate=Bu,E.nthArg=Wee,E.omit=zQ,E.omitBy=UQ,E.once=Hq,E.orderBy=Pq,E.over=Zee,E.overArgs=Wq,E.overEvery=Xee,E.overSome=zee,E.partial=$0,E.partialRight=V4,E.partition=Tq,E.pick=YQ,E.pickBy=Z4,E.property=q4,E.propertyOf=Uee,E.pull=PK,E.pullAll=I4,E.pullAllBy=TK,E.pullAllWith=OK,E.pullAt=FK,E.range=Yee,E.rangeRight=Jee,E.rearg=Zq,E.reject=Mq,E.remove=MK,E.rest=Xq,E.reverse=V0,E.sampleSize=Lq,E.set=KQ,E.setWith=qQ,E.shuffle=Vq,E.slice=RK,E.sortBy=$q,E.sortedUniq=jK,E.sortedUniqBy=kK,E.split=xee,E.spread=zq,E.tail=GK,E.take=HK,E.takeRight=WK,E.takeRightWhile=ZK,E.takeWhile=XK,E.tap=sq,E.throttle=Uq,E.thru=Vu,E.toArray=j4,E.toPairs=X4,E.toPairsIn=z4,E.toPath=tte,E.toPlainObject=G4,E.transform=QQ,E.unary=Yq,E.union=zK,E.unionBy=UK,E.unionWith=YK,E.uniq=JK,E.uniqBy=KK,E.uniqWith=qK,E.unset=eee,E.unzip=N0,E.unzipWith=E4,E.update=tee,E.updateWith=nee,E.values=Ko,E.valuesIn=ree,E.without=QK,E.words=J4,E.wrap=Jq,E.xor=eq,E.xorBy=tq,E.xorWith=nq,E.zip=rq,E.zipObject=iq,E.zipObjectDeep=oq,E.zipWith=aq,E.entries=X4,E.entriesIn=z4,E.extend=H4,E.extendWith=Gu,X0(E,E),E.add=rte,E.attempt=K4,E.camelCase=see,E.capitalize=U4,E.ceil=ite,E.clamp=iee,E.clone=qq,E.cloneDeep=eQ,E.cloneDeepWith=tQ,E.cloneWith=Qq,E.conformsTo=nQ,E.deburr=Y4,E.defaultTo=Nee,E.divide=ote,E.endsWith=lee,E.eq=Xn,E.escape=uee,E.escapeRegExp=cee,E.every=vq,E.find=yq,E.findIndex=C4,E.findKey=MQ,E.findLast=Cq,E.findLastIndex=x4,E.findLastKey=RQ,E.floor=ate,E.forEach=_4,E.forEachRight=P4,E.forIn=LQ,E.forInRight=VQ,E.forOwn=NQ,E.forOwnRight=DQ,E.get=k0,E.gt=rQ,E.gte=iQ,E.has=jQ,E.hasIn=G0,E.head=S4,E.identity=fn,E.includes=Eq,E.indexOf=CK,E.inRange=oee,E.invoke=HQ,E.isArguments=Hi,E.isArray=Ue,E.isArrayBuffer=oQ,E.isArrayLike=un,E.isArrayLikeObject=Lt,E.isBoolean=aQ,E.isBuffer=ei,E.isDate=sQ,E.isElement=lQ,E.isEmpty=uQ,E.isEqual=cQ,E.isEqualWith=fQ,E.isError=B0,E.isFinite=dQ,E.isFunction=Tr,E.isInteger=N4,E.isLength=ju,E.isMap=D4,E.isMatch=hQ,E.isMatchWith=pQ,E.isNaN=gQ,E.isNative=mQ,E.isNil=bQ,E.isNull=vQ,E.isNumber=$4,E.isObject=Pt,E.isObjectLike=Ft,E.isPlainObject=ps,E.isRegExp=j0,E.isSafeInteger=yQ,E.isSet=B4,E.isString=ku,E.isSymbol=Cn,E.isTypedArray=Jo,E.isUndefined=CQ,E.isWeakMap=xQ,E.isWeakSet=wQ,E.join=EK,E.kebabCase=fee,E.last=Mn,E.lastIndexOf=AK,E.lowerCase=dee,E.lowerFirst=hee,E.lt=SQ,E.lte=IQ,E.max=ste,E.maxBy=lte,E.mean=ute,E.meanBy=cte,E.min=fte,E.minBy=dte,E.stubArray=U0,E.stubFalse=Y0,E.stubObject=Kee,E.stubString=qee,E.stubTrue=Qee,E.multiply=hte,E.nth=_K,E.noConflict=Hee,E.noop=z0,E.now=Du,E.pad=pee,E.padEnd=gee,E.padStart=mee,E.parseInt=vee,E.random=aee,E.reduce=Oq,E.reduceRight=Fq,E.repeat=bee,E.replace=yee,E.result=JQ,E.round=pte,E.runInContext=j,E.sample=Rq,E.size=Nq,E.snakeCase=Cee,E.some=Dq,E.sortedIndex=LK,E.sortedIndexBy=VK,E.sortedIndexOf=NK,E.sortedLastIndex=DK,E.sortedLastIndexBy=$K,E.sortedLastIndexOf=BK,E.startCase=wee,E.startsWith=See,E.subtract=gte,E.sum=mte,E.sumBy=vte,E.template=Iee,E.times=ete,E.toFinite=Or,E.toInteger=Ye,E.toLength=k4,E.toLower=Eee,E.toNumber=Rn,E.toSafeInteger=EQ,E.toString=ht,E.toUpper=Aee,E.trim=_ee,E.trimEnd=Pee,E.trimStart=Tee,E.truncate=Oee,E.unescape=Fee,E.uniqueId=nte,E.upperCase=Mee,E.upperFirst=H0,E.each=_4,E.eachRight=P4,E.first=S4,X0(E,function(){var o={};return nr(E,function(s,d){pt.call(E.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),E.VERSION=r,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){E[o].placeholder=E}),_n(["drop","take"],function(o,s){nt.prototype[o]=function(d){d=d===n?1:jt(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,R),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==xe||d==Ee;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 ls(d,o,s)})}),nt.prototype.reject=function(o){return this.filter(Bu(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(R)},nr(nt.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),g=/^(?:head|last)$/.test(s),w=E[g?"take"+(s=="last"?"Right":""):s],_=g||/^find/.test(s);w&&(E.prototype[s]=function(){var V=this.__wrapped__,$=g?[1]:arguments,G=V instanceof nt,te=$[0],re=G||Ue(V),se=function(tt){var it=w.apply(E,zr([tt],$));return g&&ge?it[0]:it};re&&d&&typeof te=="function"&&te.length!=1&&(G=re=!1);var ge=this.__chain__,Ae=!!this.__actions__.length,Ne=_&&!ge,Ke=G&&!Ae;if(!_&&re){V=Ke?V:new nt(this);var De=o.apply(V,$);return De.__actions__.push({func:Vu,args:[se],thisArg:n}),new Tn(De,ge)}return Ne&&Ke?o.apply(this,$):(De=this.thru(se),Ne?g?De.value()[0]:De.value():De)})}),_n(["pop","push","shift","sort","splice","unshift"],function(o){var s=su[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);E.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var _=this.value();return s.apply(Ue(_)?_:[],w)}return this[d](function(V){return s.apply(Ue(V)?V:[],w)})}}),nr(nt.prototype,function(o,s){var d=E[s];if(d){var g=d.name+"";pt.call(Zo,g)||(Zo[g]=[]),Zo[g].push({name:s,func:d})}}),Zo[Pu(n,P).name]=[{name:"wrapper",func:n}],nt.prototype.clone=FY,nt.prototype.reverse=MY,nt.prototype.value=RY,E.prototype.at=lq,E.prototype.chain=uq,E.prototype.commit=cq,E.prototype.next=fq,E.prototype.plant=hq,E.prototype.reverse=pq,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=gq,E.prototype.first=E.prototype.head,ts&&(E.prototype[ts]=dq),E},Go=cY();Vi?((Vi.exports=Go)._=Go,Z1._=Go):Wt._=Go}).call(or)}(tu,tu.exports);var Uz=tu.exports;function A3({system:e,classname:t}){switch(e){case"Autenticação":return I.jsx(cy,{className:t});case"Agendamento":return I.jsx(My,{className:t});case"Portal ADE":return I.jsx(Gy,{className:t});case"Granéis - Dashboard":return I.jsx($y,{className:t});case"Granéis - Fiscal":return I.jsx(Dy,{className:t});case"Granéis - Embarque":return I.jsx(Ty,{className:t});case"Armazém":return I.jsx(Ay,{className:t});case"Planejador":return I.jsx(Vy,{className:t});case"Granéis - Desembarque":return I.jsx(By,{className:t});case"Granéis - Recepção Exportação":return I.jsx(nh,{className:t});case"Granéis - Recepção Importação":return I.jsx(nh,{className:t});case"Hubspot":return I.jsx(Hy,{className:t});case"Cargo Control":return I.jsx(ky,{className:t});case"Coletor":return I.jsx(Ny,{className:t});case"Integrações":return I.jsx(jy,{className:t});case"Eagle":return I.jsx(Fy,{className:t});case"Equipamentos":return I.jsx(Oy,{className:t});case"Hatchlist":return I.jsx(oy,{className:t});case"Integrações Job":return I.jsx(Uu,{className:t});case"Integrações Job HatchList":return I.jsx(Uu,{className:t});case"Integrações Job DPW":return I.jsx(Uu,{className:t});default:return I.jsx("span",{children:"?"})}}function Yz({onClick:e}){return I.jsx(Sd.Button,{onClick:e,children:I.jsx(ly,{className:"w-6 h-6"})})}function Jz({user:e,isDarkMode:t,setIsDarkMode:n,isDebuggMode:r,tenantValue:i,onTenantChange:a,setTheme:l,setLanguage:u,onSelectTerminal:c,logout:f,appNameText:h,availablePortalsText:p,clickToAccessText:m,clickToChangeTerminal:v,nightThemeText:x,logoutText:S,isOpen:A,terminalName:P,isMultiTerminal:M=!1}){const L=["DPW","T32","BRC","ITACEL"];return I.jsx(js,{children:A&&I.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:N=>N.stopPropagation(),children:I.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:I.jsx("div",{className:"w-full px-3",children:I.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[I.jsx(ih,{size:"md"}),I.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),I.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),I.jsx(Qz,{children:I.jsx(Sy,{className:"w-4 h-4"})}),I.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[I.jsxs(_3,{onClick:()=>u("pt-br"),children:[I.jsx(Iy,{})," Navegar em português"]}),I.jsxs(_3,{onClick:()=>u("en-us"),children:[I.jsx(Ey,{})," Browse in English"]})]}),I.jsxs("div",{className:"flex justify-center items-center mb-4 gap-2",children:[M&&I.jsx("div",{className:"w-48",children:I.jsx(Ki,{variant:"primary",onClick:c,children:I.jsxs("div",{className:"p-4",children:[I.jsxs("p",{className:"text-xs",children:["Terminal:"," ",I.jsx("b",{children:P??""})]}),I.jsx("p",{className:"text-xs",children:v})]})})}),r&&I.jsx("div",{className:"w-48",children:I.jsx(yb,{name:"tenant",label:"Cliente",options:L.map(N=>({value:N,label:N})),onChange:a,value:i?{value:i,label:i}:[]})})]}),I.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[I.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[p," ",I.jsxs("span",{className:"text-brand-dark-gray",children:["(",m,")"]})]}),I.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:Uz.sortBy(e.portais,["descricao"]).map((N,D)=>{const z=h===N.nome;return I.jsxs(js,{mode:"wait",children:["isOpen && (",I.jsxs(Ji.a,{href:N.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:D*(50/1e3)},className:"text-center children:mx-auto",children:[I.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":z,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!z}),children:I.jsx(A3,{system:N.descricao,classname:"w-6 h-6"})}),I.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:N.nome})]},"portal-item-"+N.descricao),")"]},D)})})]}),I.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[I.jsxs("div",{className:"flex items-center gap-0.5",children:[I.jsx(Kz,{isDarkMode:t,setIsDarkMode:n,setTheme:l}),I.jsx("span",{className:et({"text-brand-secondary":t,"text-brand-secondary-text":!t},"text-xs"),children:x})]}),I.jsxs("div",{onClick:f,className:"flex items-center gap-1 cursor-pointer",children:[I.jsx(fy,{}),I.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:S})]})]})]})})})},"user-menu-container")})}function Kz({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),I.jsxs(Ub,{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:[I.jsx("span",{className:"sr-only",children:"Dark theme?"}),I.jsx(js,{children:I.jsx("div",{className:"flex items-center w-full",children:e?I.jsx(dy,{className:"w-4 translate-x-5"}):I.jsx(qz,{})})})]})}function qz(){return I.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:I.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 Qz({children:e}){return I.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 _3({children:e,onClick:t}){return I.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 eU({user:e,isDarkMode:t,setIsDarkMode:n,isDebuggMode:r,tenantValue:i,onTenantChange:a,setTheme:l,setLanguage:u,onSelectTerminal:c,logout:f,appNameText:h,availablePortalsText:p,clickToAccessText:m,clickToChangeTerminal:v,nightThemeText:x,logoutText:S,isOpen:A,setOpen:P,terminalName:M,isMultiTerminal:L=!1}){function N(){P(z=>!z)}function D(){P(!1)}return I.jsxs(I.Fragment,{children:[I.jsx(Yz,{onClick:N}),I.jsx(ks,{isOpen:A,close:D,children:I.jsx(Jz,{user:e,isDarkMode:t,setIsDarkMode:n,isDebuggMode:r,tenantValue:i,onTenantChange:a,setTheme:l,setLanguage:u,onSelectTerminal:c,logout:f,appNameText:h,availablePortalsText:p,clickToAccessText:m,clickToChangeTerminal:v,nightThemeText:x,logoutText:S,isOpen:A,terminalName:M,isMultiTerminal:L})})]})}var tU=process.env.NODE_ENV==="production";function No(e,t){if(!tU){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function B1(){return B1=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},B1.apply(this,arguments)}function nU(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 nu=b.createContext(void 0);nu.displayName="FormikContext",nu.Provider,nu.Consumer;function P3(){var e=b.useContext(nu);return e||(process.env.NODE_ENV!=="production"?No(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):No(!1)),e}var rU=function(t){return t!==null&&typeof t=="object"};function iU(e){var t=P3(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,l=t.unregisterField,u=rU(e),c=u?e:{name:e},f=c.name,h=c.validate;b.useEffect(function(){return f&&a(f,{validate:h}),function(){f&&l(f)}},[a,l,f,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?No(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):No(!1))),f||(process.env.NODE_ENV!=="production"?No(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):No(!1));var p=b.useMemo(function(){return i(f)},[i,f]);return[n(c),r(f),p]}var oU=b.forwardRef(function(e,t){var n=e.action,r=nU(e,["action"]),i=n??"#",a=P3(),l=a.handleReset,u=a.handleSubmit;return b.createElement("form",B1({onSubmit:u,ref:t,onReset:l,action:i},r))});oU.displayName="Form";const aU=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:l},{setValue:u,setTouched:c}]=iU(e),f=p=>{const m=i.type==="color"?p:p.target.value;u(m),n&&n(m)},h=()=>{c(!0),r&&r()};return I.jsx(I.Fragment,{children:I.jsx(Xv,{error:l,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};function sU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-red-400 shadow-lg w-80 bg-blue-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-red-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-red-500",children:I.jsx(Zy,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}function lU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-blue-400 shadow-lg w-80 bg-blue-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-blue-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-blue-500",children:I.jsx(Wy,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}function uU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-green-400 shadow-lg w-80 bg-green-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-green-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-green-500",children:I.jsx(Ly,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}function cU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-yellow-400 shadow-lg w-80 bg-blue-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-yellow-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-yellow-500",children:I.jsx(Ry,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}Me.Avatar=ih,Me.Backdrop=ks,Me.BaseField=aU,Me.Button=Ki,Me.Card=r8,Me.Checkbox=i8,Me.ColorPicker=Nv,Me.DangerNotification=sU,Me.Dialog=Qj,Me.DualListBox=uk,Me.ErrorMessage=gd,Me.Header=ck,Me.HelperMessage=md,Me.IconListMenu=A3,Me.InfoNotification=lU,Me.Input=Xv,Me.Label=wd,Me.Navbar=Sd,Me.Radio=bk,Me.Select=yb,Me.SideMenu=IX,Me.Spinner=pd,Me.SuccessNotification=uU,Me.Switch=lz,Me.Table=Gz,Me.TableAction=Hz,Me.TablePagination=jz,Me.Tooltip=E3,Me.UploadFile=zz,Me.UserMenu=eU,Me.WarningNotification=cU,Object.defineProperty(Me,Symbol.toStringTag,{value:"Module"})});
217
+ }`;var Ke=K4(function(){return ct(_,Ae+"return "+se).apply(n,V)});if(Ke.source=se,B0(Ke))throw Ke;return Ke}function Eee(o){return ht(o).toLowerCase()}function Aee(o){return ht(o).toUpperCase()}function _ee(o,s,d){if(o=ht(o),o&&(d||s===n))return a9(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=s9(g,w),V=l9(g,w)+1;return Qr(g,_,V).join("")}function Pee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,c9(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=l9(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(Ri,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=s9(g,Wn(s));return Qr(g,w).join("")}function Oee(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(jo(o)){var V=Wn(o);_=V.length}if(d>=_)return o;var $=d-ko(g);if($<1)return g;var G=V?Qr(V,0,$).join(""):o.slice(0,$);if(w===n)return G+g;if(V&&($+=G.length-$),j0(w)){if(o.slice($).search(w)){var te,re=G;for(w.global||(w=n0(w.source,ht(_e.exec(w))+"g")),w.lastIndex=0;te=w.exec(re);)var se=te.index;G=G.slice(0,se===n?$:se)}}else if(o.indexOf(yn(w),$)!=$){var ge=G.lastIndexOf(w);ge>-1&&(G=G.slice(0,ge))}return G+g}function Fee(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,aY):o}var Mee=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),H0=q9("toUpperCase");function J4(o,s,d){return o=ht(o),s=d?n:s,s===n?tY(o)?uY(o):XU(o):o.match(s)||[]}var K4=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return B0(d)?d:new Ze(d)}}),Ree=_r(function(o,s){return _n(s,function(d){d=ir(d),Er(o,d,D0(o[d],o))}),o});function Lee(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(l);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 Vee(o){return aJ(On(o,p))}function W0(o){return function(){return o}}function Nee(o,s){return o==null||o!==o?s:o}var Dee=e4(),$ee=e4(!0);function fn(o){return o}function Z0(o){return O9(typeof o=="function"?o:On(o,p))}function Bee(o){return M9(On(o,p))}function jee(o,s){return R9(o,On(s,p))}var kee=Qe(function(o,s){return function(d){return ls(d,o,s)}}),Gee=Qe(function(o,s){return function(d){return ls(o,d,s)}});function X0(o,s,d){var g=Gt(s),w=Su(s,g);d==null&&!(Pt(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=Su(s,Gt(s)));var _=!(Pt(d)&&"chain"in d)||!!d.chain,V=Tr(o);return _n(w,function($){var G=s[$];o[$]=G,V&&(o.prototype[$]=function(){var te=this.__chain__;if(_||te){var re=o(this.__wrapped__),se=re.__actions__=ln(this.__actions__);return se.push({func:G,args:arguments,thisArg:o}),re.__chain__=te,re}return G.apply(o,zr([this.value()],arguments))})}),o}function Hee(){return Wt._===this&&(Wt._=gY),this}function z0(){}function Wee(o){return o=Ye(o),Qe(function(s){return L9(s,o)})}var Zee=I0(At),Xee=I0(t9),zee=I0(Y1);function q4(o){return F0(o)?J1(ir(o)):SJ(o)}function Uee(o){return function(s){return o==null?n:ji(o,s)}}var Yee=n4(),Jee=n4(!0);function U0(){return[]}function Y0(){return!1}function Kee(){return{}}function qee(){return""}function Qee(){return!0}function ete(o,s){if(o=Ye(o),o<1||o>Je)return[];var d=R,g=Kt(o,R);s=Fe(s),o-=R;for(var w=Q1(g,s);++d<o;)s(d);return w}function tte(o){return Ue(o)?At(o,ir):Cn(o)?[o]:ln(b4(ht(o)))}function nte(o){var s=++hY;return ht(o)+s}var rte=Tu(function(o,s){return o+s},0),ite=E0("ceil"),ote=Tu(function(o,s){return o/s},1),ate=E0("floor");function ste(o){return o&&o.length?wu(o,fn,c0):n}function lte(o,s){return o&&o.length?wu(o,Fe(s,2),c0):n}function ute(o){return i9(o,fn)}function cte(o,s){return i9(o,Fe(s,2))}function fte(o){return o&&o.length?wu(o,fn,p0):n}function dte(o,s){return o&&o.length?wu(o,Fe(s,2),p0):n}var hte=Tu(function(o,s){return o*s},1),pte=E0("round"),gte=Tu(function(o,s){return o-s},0);function mte(o){return o&&o.length?q1(o,fn):0}function vte(o,s){return o&&o.length?q1(o,Fe(s,2)):0}return E.after=Bq,E.ary=T4,E.assign=AQ,E.assignIn=H4,E.assignInWith=Gu,E.assignWith=_Q,E.at=PQ,E.before=O4,E.bind=D0,E.bindAll=Ree,E.bindKey=F4,E.castArray=Kq,E.chain=A4,E.chunk=aK,E.compact=sK,E.concat=lK,E.cond=Lee,E.conforms=Vee,E.constant=W0,E.countBy=mq,E.create=TQ,E.curry=M4,E.curryRight=R4,E.debounce=L4,E.defaults=OQ,E.defaultsDeep=FQ,E.defer=jq,E.delay=kq,E.difference=uK,E.differenceBy=cK,E.differenceWith=fK,E.drop=dK,E.dropRight=hK,E.dropRightWhile=pK,E.dropWhile=gK,E.fill=mK,E.filter=bq,E.flatMap=xq,E.flatMapDeep=wq,E.flatMapDepth=Sq,E.flatten=w4,E.flattenDeep=vK,E.flattenDepth=bK,E.flip=Gq,E.flow=Dee,E.flowRight=$ee,E.fromPairs=yK,E.functions=$Q,E.functionsIn=BQ,E.groupBy=Iq,E.initial=xK,E.intersection=wK,E.intersectionBy=SK,E.intersectionWith=IK,E.invert=kQ,E.invertBy=GQ,E.invokeMap=Aq,E.iteratee=Z0,E.keyBy=_q,E.keys=Gt,E.keysIn=cn,E.map=Nu,E.mapKeys=WQ,E.mapValues=ZQ,E.matches=Bee,E.matchesProperty=jee,E.memoize=$u,E.merge=XQ,E.mergeWith=W4,E.method=kee,E.methodOf=Gee,E.mixin=X0,E.negate=Bu,E.nthArg=Wee,E.omit=zQ,E.omitBy=UQ,E.once=Hq,E.orderBy=Pq,E.over=Zee,E.overArgs=Wq,E.overEvery=Xee,E.overSome=zee,E.partial=$0,E.partialRight=V4,E.partition=Tq,E.pick=YQ,E.pickBy=Z4,E.property=q4,E.propertyOf=Uee,E.pull=PK,E.pullAll=I4,E.pullAllBy=TK,E.pullAllWith=OK,E.pullAt=FK,E.range=Yee,E.rangeRight=Jee,E.rearg=Zq,E.reject=Mq,E.remove=MK,E.rest=Xq,E.reverse=V0,E.sampleSize=Lq,E.set=KQ,E.setWith=qQ,E.shuffle=Vq,E.slice=RK,E.sortBy=$q,E.sortedUniq=jK,E.sortedUniqBy=kK,E.split=xee,E.spread=zq,E.tail=GK,E.take=HK,E.takeRight=WK,E.takeRightWhile=ZK,E.takeWhile=XK,E.tap=sq,E.throttle=Uq,E.thru=Vu,E.toArray=j4,E.toPairs=X4,E.toPairsIn=z4,E.toPath=tte,E.toPlainObject=G4,E.transform=QQ,E.unary=Yq,E.union=zK,E.unionBy=UK,E.unionWith=YK,E.uniq=JK,E.uniqBy=KK,E.uniqWith=qK,E.unset=eee,E.unzip=N0,E.unzipWith=E4,E.update=tee,E.updateWith=nee,E.values=Ko,E.valuesIn=ree,E.without=QK,E.words=J4,E.wrap=Jq,E.xor=eq,E.xorBy=tq,E.xorWith=nq,E.zip=rq,E.zipObject=iq,E.zipObjectDeep=oq,E.zipWith=aq,E.entries=X4,E.entriesIn=z4,E.extend=H4,E.extendWith=Gu,X0(E,E),E.add=rte,E.attempt=K4,E.camelCase=see,E.capitalize=U4,E.ceil=ite,E.clamp=iee,E.clone=qq,E.cloneDeep=eQ,E.cloneDeepWith=tQ,E.cloneWith=Qq,E.conformsTo=nQ,E.deburr=Y4,E.defaultTo=Nee,E.divide=ote,E.endsWith=lee,E.eq=Xn,E.escape=uee,E.escapeRegExp=cee,E.every=vq,E.find=yq,E.findIndex=C4,E.findKey=MQ,E.findLast=Cq,E.findLastIndex=x4,E.findLastKey=RQ,E.floor=ate,E.forEach=_4,E.forEachRight=P4,E.forIn=LQ,E.forInRight=VQ,E.forOwn=NQ,E.forOwnRight=DQ,E.get=k0,E.gt=rQ,E.gte=iQ,E.has=jQ,E.hasIn=G0,E.head=S4,E.identity=fn,E.includes=Eq,E.indexOf=CK,E.inRange=oee,E.invoke=HQ,E.isArguments=Hi,E.isArray=Ue,E.isArrayBuffer=oQ,E.isArrayLike=un,E.isArrayLikeObject=Lt,E.isBoolean=aQ,E.isBuffer=ei,E.isDate=sQ,E.isElement=lQ,E.isEmpty=uQ,E.isEqual=cQ,E.isEqualWith=fQ,E.isError=B0,E.isFinite=dQ,E.isFunction=Tr,E.isInteger=N4,E.isLength=ju,E.isMap=D4,E.isMatch=hQ,E.isMatchWith=pQ,E.isNaN=gQ,E.isNative=mQ,E.isNil=bQ,E.isNull=vQ,E.isNumber=$4,E.isObject=Pt,E.isObjectLike=Ft,E.isPlainObject=ps,E.isRegExp=j0,E.isSafeInteger=yQ,E.isSet=B4,E.isString=ku,E.isSymbol=Cn,E.isTypedArray=Jo,E.isUndefined=CQ,E.isWeakMap=xQ,E.isWeakSet=wQ,E.join=EK,E.kebabCase=fee,E.last=Mn,E.lastIndexOf=AK,E.lowerCase=dee,E.lowerFirst=hee,E.lt=SQ,E.lte=IQ,E.max=ste,E.maxBy=lte,E.mean=ute,E.meanBy=cte,E.min=fte,E.minBy=dte,E.stubArray=U0,E.stubFalse=Y0,E.stubObject=Kee,E.stubString=qee,E.stubTrue=Qee,E.multiply=hte,E.nth=_K,E.noConflict=Hee,E.noop=z0,E.now=Du,E.pad=pee,E.padEnd=gee,E.padStart=mee,E.parseInt=vee,E.random=aee,E.reduce=Oq,E.reduceRight=Fq,E.repeat=bee,E.replace=yee,E.result=JQ,E.round=pte,E.runInContext=j,E.sample=Rq,E.size=Nq,E.snakeCase=Cee,E.some=Dq,E.sortedIndex=LK,E.sortedIndexBy=VK,E.sortedIndexOf=NK,E.sortedLastIndex=DK,E.sortedLastIndexBy=$K,E.sortedLastIndexOf=BK,E.startCase=wee,E.startsWith=See,E.subtract=gte,E.sum=mte,E.sumBy=vte,E.template=Iee,E.times=ete,E.toFinite=Or,E.toInteger=Ye,E.toLength=k4,E.toLower=Eee,E.toNumber=Rn,E.toSafeInteger=EQ,E.toString=ht,E.toUpper=Aee,E.trim=_ee,E.trimEnd=Pee,E.trimStart=Tee,E.truncate=Oee,E.unescape=Fee,E.uniqueId=nte,E.upperCase=Mee,E.upperFirst=H0,E.each=_4,E.eachRight=P4,E.first=S4,X0(E,function(){var o={};return nr(E,function(s,d){pt.call(E.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),E.VERSION=r,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){E[o].placeholder=E}),_n(["drop","take"],function(o,s){nt.prototype[o]=function(d){d=d===n?1:jt(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,R),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==xe||d==Ee;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 ls(d,o,s)})}),nt.prototype.reject=function(o){return this.filter(Bu(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(R)},nr(nt.prototype,function(o,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),g=/^(?:head|last)$/.test(s),w=E[g?"take"+(s=="last"?"Right":""):s],_=g||/^find/.test(s);w&&(E.prototype[s]=function(){var V=this.__wrapped__,$=g?[1]:arguments,G=V instanceof nt,te=$[0],re=G||Ue(V),se=function(tt){var it=w.apply(E,zr([tt],$));return g&&ge?it[0]:it};re&&d&&typeof te=="function"&&te.length!=1&&(G=re=!1);var ge=this.__chain__,Ae=!!this.__actions__.length,Ne=_&&!ge,Ke=G&&!Ae;if(!_&&re){V=Ke?V:new nt(this);var De=o.apply(V,$);return De.__actions__.push({func:Vu,args:[se],thisArg:n}),new Tn(De,ge)}return Ne&&Ke?o.apply(this,$):(De=this.thru(se),Ne?g?De.value()[0]:De.value():De)})}),_n(["pop","push","shift","sort","splice","unshift"],function(o){var s=su[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);E.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var _=this.value();return s.apply(Ue(_)?_:[],w)}return this[d](function(V){return s.apply(Ue(V)?V:[],w)})}}),nr(nt.prototype,function(o,s){var d=E[s];if(d){var g=d.name+"";pt.call(Zo,g)||(Zo[g]=[]),Zo[g].push({name:s,func:d})}}),Zo[Pu(n,P).name]=[{name:"wrapper",func:n}],nt.prototype.clone=FY,nt.prototype.reverse=MY,nt.prototype.value=RY,E.prototype.at=lq,E.prototype.chain=uq,E.prototype.commit=cq,E.prototype.next=fq,E.prototype.plant=hq,E.prototype.reverse=pq,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=gq,E.prototype.first=E.prototype.head,ts&&(E.prototype[ts]=dq),E},Go=cY();Vi?((Vi.exports=Go)._=Go,Z1._=Go):Wt._=Go}).call(or)}(tu,tu.exports);var Uz=tu.exports;function A3({system:e,classname:t}){switch(e){case"Autenticação":return I.jsx(cy,{className:t});case"Agendamento":return I.jsx(My,{className:t});case"Portal ADE":return I.jsx(Gy,{className:t});case"Granéis - Dashboard":return I.jsx($y,{className:t});case"Granéis - Fiscal":return I.jsx(Dy,{className:t});case"Granéis - Embarque":return I.jsx(Ty,{className:t});case"Armazém":return I.jsx(Ay,{className:t});case"Planejador":return I.jsx(Vy,{className:t});case"Granéis - Desembarque":return I.jsx(By,{className:t});case"Granéis - Recepção Exportação":return I.jsx(nh,{className:t});case"Granéis - Recepção Importação":return I.jsx(nh,{className:t});case"Hubspot":return I.jsx(Hy,{className:t});case"Cargo Control":return I.jsx(ky,{className:t});case"Coletor":return I.jsx(Ny,{className:t});case"Integrações":return I.jsx(jy,{className:t});case"Eagle":return I.jsx(Fy,{className:t});case"Equipamentos":return I.jsx(Oy,{className:t});case"Hatchlist":return I.jsx(oy,{className:t});case"Integrações Job":return I.jsx(Uu,{className:t});case"Integrações Job HatchList":return I.jsx(Uu,{className:t});case"Integrações Job DPW":return I.jsx(Uu,{className:t});default:return I.jsx("span",{children:"?"})}}function Yz({onClick:e}){return I.jsx(Sd.Button,{onClick:e,children:I.jsx(ly,{className:"w-6 h-6"})})}function Jz({user:e,isDarkMode:t,setIsDarkMode:n,isDebuggMode:r,tenantValue:i,onTenantChange:a,setTheme:l,setLanguage:u,onSelectTerminal:c,logout:f,appNameText:h,availablePortalsText:p,clickToAccessText:m,clickToChangeTerminal:v,nightThemeText:x,logoutText:S,isOpen:A,terminalName:P,isMultiTerminal:M=!1}){const L=["DPW","T32","BRC","ITACEL"];return I.jsx(js,{children:A&&I.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:N=>N.stopPropagation(),children:I.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:I.jsx("div",{className:"w-full px-3",children:I.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[I.jsx(ih,{size:"md"}),I.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),I.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),I.jsx(Qz,{children:I.jsx(Sy,{className:"w-4 h-4"})}),I.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[I.jsxs(_3,{onClick:()=>u("pt-br"),children:[I.jsx(Iy,{})," Navegar em português"]}),I.jsxs(_3,{onClick:()=>u("en-us"),children:[I.jsx(Ey,{})," Browse in English"]})]}),I.jsxs("div",{className:"flex justify-center items-center mb-4 gap-2",children:[M&&I.jsx("div",{className:"w-48",children:I.jsx(Ki,{variant:"primary",onClick:c,children:I.jsxs("div",{className:"p-4",children:[I.jsxs("p",{className:"text-xs",children:["Terminal:"," ",I.jsx("b",{children:P??""})]}),I.jsx("p",{className:"text-xs",children:v})]})})}),r&&I.jsx("div",{className:"w-48",children:I.jsx(yb,{name:"tenant",label:"Cliente",options:L.map(N=>({value:N,label:N})),onChange:a,value:i?{value:i,label:i}:[]})})]}),I.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[I.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[p," ",I.jsxs("span",{className:"text-brand-dark-gray",children:["(",m,")"]})]}),I.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:Uz.sortBy(e.portais,["descricao"]).map((N,D)=>{const z=h===N.nome;return I.jsxs(js,{mode:"wait",children:["isOpen && (",I.jsxs(Ji.a,{href:N.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:D*(50/1e3)},className:"text-center children:mx-auto",children:[I.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":z,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!z}),children:I.jsx(A3,{system:N.descricao,classname:"w-6 h-6"})}),I.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:N.nome})]},"portal-item-"+N.descricao),")"]},D)})})]}),I.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[I.jsxs("div",{className:"flex items-center gap-0.5",children:[I.jsx(Kz,{isDarkMode:t,setIsDarkMode:n,setTheme:l}),I.jsx("span",{className:et({"text-brand-secondary":t,"text-brand-secondary-text":!t},"text-xs"),children:x})]}),I.jsxs("div",{onClick:f,className:"flex items-center gap-1 cursor-pointer",children:[I.jsx(fy,{}),I.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:S})]})]})]})})})},"user-menu-container")})}function Kz({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),I.jsxs(Ub,{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:[I.jsx("span",{className:"sr-only",children:"Dark theme?"}),I.jsx(js,{children:I.jsx("div",{className:"flex items-center w-full",children:e?I.jsx(dy,{className:"w-4 translate-x-5"}):I.jsx(qz,{})})})]})}function qz(){return I.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:I.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 Qz({children:e}){return I.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 _3({children:e,onClick:t}){return I.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 eU({user:e,isDarkMode:t,setIsDarkMode:n,isDebuggMode:r,tenantValue:i,onTenantChange:a,setTheme:l,setLanguage:u,onSelectTerminal:c,logout:f,appNameText:h,availablePortalsText:p,clickToAccessText:m,clickToChangeTerminal:v,nightThemeText:x,logoutText:S,isOpen:A,setOpen:P,terminalName:M,isMultiTerminal:L=!1}){function N(){P(z=>!z)}function D(){P(!1)}return I.jsxs(I.Fragment,{children:[I.jsx(Yz,{onClick:N}),I.jsx(ks,{isOpen:A,close:D,children:I.jsx(Jz,{user:e,isDarkMode:t,setIsDarkMode:n,isDebuggMode:r,tenantValue:i,onTenantChange:a,setTheme:l,setLanguage:u,onSelectTerminal:c,logout:f,appNameText:h,availablePortalsText:p,clickToAccessText:m,clickToChangeTerminal:v,nightThemeText:x,logoutText:S,isOpen:A,terminalName:M,isMultiTerminal:L})})]})}var tU=process.env.NODE_ENV==="production";function No(e,t){if(!tU){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function B1(){return B1=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},B1.apply(this,arguments)}function nU(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 nu=b.createContext(void 0);nu.displayName="FormikContext",nu.Provider,nu.Consumer;function P3(){var e=b.useContext(nu);return e||(process.env.NODE_ENV!=="production"?No(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):No(!1)),e}var rU=function(t){return t!==null&&typeof t=="object"};function iU(e){var t=P3(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,l=t.unregisterField,u=rU(e),c=u?e:{name:e},f=c.name,h=c.validate;b.useEffect(function(){return f&&a(f,{validate:h}),function(){f&&l(f)}},[a,l,f,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?No(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):No(!1))),f||(process.env.NODE_ENV!=="production"?No(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):No(!1));var p=b.useMemo(function(){return i(f)},[i,f]);return[n(c),r(f),p]}var oU=b.forwardRef(function(e,t){var n=e.action,r=nU(e,["action"]),i=n??"#",a=P3(),l=a.handleReset,u=a.handleSubmit;return b.createElement("form",B1({onSubmit:u,ref:t,onReset:l,action:i},r))});oU.displayName="Form";const aU=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:l},{setValue:u,setTouched:c}]=iU(e),f=p=>{const m=i.type==="color"?p:p.target.value;u(m),n&&n(m)},h=()=>{c(!0),r&&r()};return I.jsx(I.Fragment,{children:I.jsx(Xv,{error:l,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};function sU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-red-400 shadow-lg w-80 bg-red-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-red-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-red-500",children:I.jsx(Zy,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}function lU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-blue-400 shadow-lg w-80 bg-blue-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-blue-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-blue-500",children:I.jsx(Wy,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}function uU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-green-400 shadow-lg w-80 bg-green-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-green-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-green-500",children:I.jsx(Ly,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}function cU({dismiss:e,message:t}){return I.jsxs("div",{className:"relative z-20 flex items-center p-4 text-sm border-l-4 border-yellow-400 shadow-lg w-80 bg-yellow-50",children:[I.jsx("button",{type:"button",className:"absolute top-0 right-0 w-4 m-3 text-yellow-400",onClick:e,children:I.jsx(ms,{className:"w-4 h-4"})}),I.jsx("div",{className:"flex-shrink-0 w-5 h-5 mr-2 text-yellow-500",children:I.jsx(Ry,{})}),I.jsx("p",{className:"text-sm capitalize",children:t})]})}Me.Avatar=ih,Me.Backdrop=ks,Me.BaseField=aU,Me.Button=Ki,Me.Card=r8,Me.Checkbox=i8,Me.ColorPicker=Nv,Me.DangerNotification=sU,Me.Dialog=Qj,Me.DualListBox=uk,Me.ErrorMessage=gd,Me.Header=ck,Me.HelperMessage=md,Me.IconListMenu=A3,Me.InfoNotification=lU,Me.Input=Xv,Me.Label=wd,Me.Navbar=Sd,Me.Radio=bk,Me.Select=yb,Me.SideMenu=IX,Me.Spinner=pd,Me.SuccessNotification=uU,Me.Switch=lz,Me.Table=Gz,Me.TableAction=Hz,Me.TablePagination=jz,Me.Tooltip=E3,Me.UploadFile=zz,Me.UserMenu=eU,Me.WarningNotification=cU,Object.defineProperty(Me,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.25.0",
7
+ "version": "0.25.1",
8
8
  "license": "MIT",
9
9
  "description": "Biblioteca de componentes Hxtos",
10
10
  "type": "module",