@hxtos/hx-components 0.21.2 → 0.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -28084,23 +28084,23 @@ function Ste({
28084
28084
  " Browse in English"
28085
28085
  ] })
28086
28086
  ] }),
28087
- /* @__PURE__ */ S.jsxs("div", { className: "flex justify-center w-full gap-4", children: [
28088
- t === 2 && /* @__PURE__ */ S.jsx("div", { className: "w-2/4 mb-4", children: /* @__PURE__ */ S.jsx(
28087
+ /* @__PURE__ */ S.jsxs("div", { className: "flex justify-center items-center mb-4 gap-2", children: [
28088
+ t === 2 && /* @__PURE__ */ S.jsx("div", { className: "w-48", children: /* @__PURE__ */ S.jsx(
28089
28089
  qa,
28090
28090
  {
28091
28091
  variant: "primary",
28092
28092
  onClick: f,
28093
- children: /* @__PURE__ */ S.jsxs("div", { className: "p-5", children: [
28094
- /* @__PURE__ */ S.jsxs("p", { className: "text-[12px]", children: [
28093
+ children: /* @__PURE__ */ S.jsxs("div", { className: "p-4", children: [
28094
+ /* @__PURE__ */ S.jsxs("p", { className: "text-xs", children: [
28095
28095
  "Terminal:",
28096
28096
  " ",
28097
28097
  /* @__PURE__ */ S.jsx("b", { children: F ?? "" })
28098
28098
  ] }),
28099
- /* @__PURE__ */ S.jsx("p", { className: "text-[11px]", children: x })
28099
+ /* @__PURE__ */ S.jsx("p", { className: "text-xs", children: x })
28100
28100
  ] })
28101
28101
  }
28102
28102
  ) }),
28103
- i && /* @__PURE__ */ S.jsx("div", { className: "w-2/4 mb-4", children: /* @__PURE__ */ S.jsx(
28103
+ i && /* @__PURE__ */ S.jsx("div", { className: "w-48", children: /* @__PURE__ */ S.jsx(
28104
28104
  Vq,
28105
28105
  {
28106
28106
  name: "tenant",
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 qe=Y5(function(){return ct(_,Ee+"return "+se).apply(n,V)});if(qe.source=se,$p(qe))throw qe;return qe}function vee(o){return ht(o).toLowerCase()}function bee(o){return ht(o).toUpperCase()}function yee(o,s,d){if(o=ht(o),o&&(d||s===n))return iC(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=oC(g,w),V=aC(g,w)+1;return Qr(g,_,V).join("")}function xee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,uC(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=aC(g,Wn(s))+1;return Qr(g,0,w).join("")}function Cee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.replace(Li,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=oC(g,Wn(s));return Qr(g,w).join("")}function wee(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-$),Bp(w)){if(o.slice($).search(w)){var ee,ne=G;for(w.global||(w=tp(w.source,ht(_e.exec(w))+"g")),w.lastIndex=0;ee=w.exec(ne);)var se=ee.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 See(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,KU):o}var Iee=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),Gp=JC("toUpperCase");function U5(o,s,d){return o=ht(o),s=d?n:s,s===n?zU(o)?tY(o):$U(o):o.match(s)||[]}var Y5=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return $p(d)?d:new Ze(d)}}),Eee=_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 _ee(o){return KY(On(o,p))}function Hp(o){return function(){return o}}function Pee(o,s){return o==null||o!==o?s:o}var Tee=KC(),Oee=KC(!0);function fn(o){return o}function Wp(o){return PC(typeof o=="function"?o:On(o,p))}function Fee(o){return OC(On(o,p))}function Mee(o,s){return FC(o,On(s,p))}var Lee=Qe(function(o,s){return function(d){return us(d,o,s)}}),Ree=Qe(function(o,s){return function(d){return us(o,d,s)}});function Zp(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,V=Tr(o);return _n(w,function($){var G=s[$];o[$]=G,V&&(o.prototype[$]=function(){var ee=this.__chain__;if(_||ee){var ne=o(this.__wrapped__),se=ne.__actions__=un(this.__actions__);return se.push({func:G,args:arguments,thisArg:o}),ne.__chain__=ee,ne}return G.apply(o,zr([this.value()],arguments))})}),o}function Vee(){return Wt._===this&&(Wt._=sY),this}function Xp(){}function Dee(o){return o=Ye(o),Qe(function(s){return MC(s,o)})}var Nee=Sp(At),$ee=Sp(Qx),Bee=Sp(Uh);function J5(o){return Op(o)?Yh(ir(o)):gJ(o)}function jee(o){return function(s){return o==null?n:ji(o,s)}}var kee=e5(),Gee=e5(!0);function zp(){return[]}function Up(){return!1}function Hee(){return{}}function Wee(){return""}function Zee(){return!0}function Xee(o,s){if(o=Ye(o),o<1||o>Je)return[];var d=L,g=qt(o,L);s=Fe(s),o-=L;for(var w=Kh(g,s);++d<o;)s(d);return w}function zee(o){return Ue(o)?At(o,ir):xn(o)?[o]:un(m5(ht(o)))}function Uee(o){var s=++oY;return ht(o)+s}var Yee=Pl(function(o,s){return o+s},0),Jee=Ip("ceil"),qee=Pl(function(o,s){return o/s},1),Kee=Ip("floor");function Qee(o){return o&&o.length?Cl(o,fn,lp):n}function ete(o,s){return o&&o.length?Cl(o,Fe(s,2),lp):n}function tte(o){return nC(o,fn)}function nte(o,s){return nC(o,Fe(s,2))}function rte(o){return o&&o.length?Cl(o,fn,hp):n}function ite(o,s){return o&&o.length?Cl(o,Fe(s,2),hp):n}var ote=Pl(function(o,s){return o*s},1),ate=Ip("round"),ste=Pl(function(o,s){return o-s},0);function ute(o){return o&&o.length?qh(o,fn):0}function lte(o,s){return o&&o.length?qh(o,Fe(s,2)):0}return E.after=FK,E.ary=_5,E.assign=bQ,E.assignIn=k5,E.assignInWith=kl,E.assignWith=yQ,E.at=xQ,E.before=P5,E.bind=Dp,E.bindAll=Eee,E.bindKey=T5,E.castArray=HK,E.chain=I5,E.chunk=KJ,E.compact=QJ,E.concat=eq,E.cond=Aee,E.conforms=_ee,E.constant=Hp,E.countBy=uK,E.create=CQ,E.curry=O5,E.curryRight=F5,E.debounce=M5,E.defaults=wQ,E.defaultsDeep=SQ,E.defer=MK,E.delay=LK,E.difference=tq,E.differenceBy=nq,E.differenceWith=rq,E.drop=iq,E.dropRight=oq,E.dropRightWhile=aq,E.dropWhile=sq,E.fill=uq,E.filter=cK,E.flatMap=hK,E.flatMapDeep=pK,E.flatMapDepth=gK,E.flatten=x5,E.flattenDeep=lq,E.flattenDepth=cq,E.flip=RK,E.flow=Tee,E.flowRight=Oee,E.fromPairs=fq,E.functions=OQ,E.functionsIn=FQ,E.groupBy=mK,E.initial=hq,E.intersection=pq,E.intersectionBy=gq,E.intersectionWith=mq,E.invert=LQ,E.invertBy=RQ,E.invokeMap=bK,E.iteratee=Wp,E.keyBy=yK,E.keys=Gt,E.keysIn=cn,E.map=Vl,E.mapKeys=DQ,E.mapValues=NQ,E.matches=Fee,E.matchesProperty=Mee,E.memoize=Nl,E.merge=$Q,E.mergeWith=G5,E.method=Lee,E.methodOf=Ree,E.mixin=Zp,E.negate=$l,E.nthArg=Dee,E.omit=BQ,E.omitBy=jQ,E.once=VK,E.orderBy=xK,E.over=Nee,E.overArgs=DK,E.overEvery=$ee,E.overSome=Bee,E.partial=Np,E.partialRight=L5,E.partition=CK,E.pick=kQ,E.pickBy=H5,E.property=J5,E.propertyOf=jee,E.pull=xq,E.pullAll=w5,E.pullAllBy=Cq,E.pullAllWith=wq,E.pullAt=Sq,E.range=kee,E.rangeRight=Gee,E.rearg=NK,E.reject=IK,E.remove=Iq,E.rest=$K,E.reverse=Rp,E.sampleSize=AK,E.set=HQ,E.setWith=WQ,E.shuffle=_K,E.slice=Eq,E.sortBy=OK,E.sortedUniq=Mq,E.sortedUniqBy=Lq,E.split=hee,E.spread=BK,E.tail=Rq,E.take=Vq,E.takeRight=Dq,E.takeRightWhile=Nq,E.takeWhile=$q,E.tap=Qq,E.throttle=jK,E.thru=Rl,E.toArray=$5,E.toPairs=W5,E.toPairsIn=Z5,E.toPath=zee,E.toPlainObject=j5,E.transform=ZQ,E.unary=kK,E.union=Bq,E.unionBy=jq,E.unionWith=kq,E.uniq=Gq,E.uniqBy=Hq,E.uniqWith=Wq,E.unset=XQ,E.unzip=Vp,E.unzipWith=S5,E.update=zQ,E.updateWith=UQ,E.values=qo,E.valuesIn=YQ,E.without=Zq,E.words=U5,E.wrap=GK,E.xor=Xq,E.xorBy=zq,E.xorWith=Uq,E.zip=Yq,E.zipObject=Jq,E.zipObjectDeep=qq,E.zipWith=Kq,E.entries=W5,E.entriesIn=Z5,E.extend=k5,E.extendWith=kl,Zp(E,E),E.add=Yee,E.attempt=Y5,E.camelCase=QQ,E.capitalize=X5,E.ceil=Jee,E.clamp=JQ,E.clone=WK,E.cloneDeep=XK,E.cloneDeepWith=zK,E.cloneWith=ZK,E.conformsTo=UK,E.deburr=z5,E.defaultTo=Pee,E.divide=qee,E.endsWith=eee,E.eq=Xn,E.escape=tee,E.escapeRegExp=nee,E.every=lK,E.find=fK,E.findIndex=b5,E.findKey=IQ,E.findLast=dK,E.findLastIndex=y5,E.findLastKey=EQ,E.floor=Kee,E.forEach=E5,E.forEachRight=A5,E.forIn=AQ,E.forInRight=_Q,E.forOwn=PQ,E.forOwnRight=TQ,E.get=jp,E.gt=YK,E.gte=JK,E.has=MQ,E.hasIn=kp,E.head=C5,E.identity=fn,E.includes=vK,E.indexOf=dq,E.inRange=qQ,E.invoke=VQ,E.isArguments=Hi,E.isArray=Ue,E.isArrayBuffer=qK,E.isArrayLike=ln,E.isArrayLikeObject=Rt,E.isBoolean=KK,E.isBuffer=ei,E.isDate=QK,E.isElement=eQ,E.isEmpty=tQ,E.isEqual=nQ,E.isEqualWith=rQ,E.isError=$p,E.isFinite=iQ,E.isFunction=Tr,E.isInteger=R5,E.isLength=Bl,E.isMap=V5,E.isMatch=oQ,E.isMatchWith=aQ,E.isNaN=sQ,E.isNative=uQ,E.isNil=cQ,E.isNull=lQ,E.isNumber=D5,E.isObject=Pt,E.isObjectLike=Ft,E.isPlainObject=ps,E.isRegExp=Bp,E.isSafeInteger=fQ,E.isSet=N5,E.isString=jl,E.isSymbol=xn,E.isTypedArray=Jo,E.isUndefined=dQ,E.isWeakMap=hQ,E.isWeakSet=pQ,E.join=vq,E.kebabCase=ree,E.last=Mn,E.lastIndexOf=bq,E.lowerCase=iee,E.lowerFirst=oee,E.lt=gQ,E.lte=mQ,E.max=Qee,E.maxBy=ete,E.mean=tte,E.meanBy=nte,E.min=rte,E.minBy=ite,E.stubArray=zp,E.stubFalse=Up,E.stubObject=Hee,E.stubString=Wee,E.stubTrue=Zee,E.multiply=ote,E.nth=yq,E.noConflict=Vee,E.noop=Xp,E.now=Dl,E.pad=aee,E.padEnd=see,E.padStart=uee,E.parseInt=lee,E.random=KQ,E.reduce=wK,E.reduceRight=SK,E.repeat=cee,E.replace=fee,E.result=GQ,E.round=ate,E.runInContext=j,E.sample=EK,E.size=PK,E.snakeCase=dee,E.some=TK,E.sortedIndex=Aq,E.sortedIndexBy=_q,E.sortedIndexOf=Pq,E.sortedLastIndex=Tq,E.sortedLastIndexBy=Oq,E.sortedLastIndexOf=Fq,E.startCase=pee,E.startsWith=gee,E.subtract=ste,E.sum=ute,E.sumBy=lte,E.template=mee,E.times=Xee,E.toFinite=Or,E.toInteger=Ye,E.toLength=B5,E.toLower=vee,E.toNumber=Ln,E.toSafeInteger=vQ,E.toString=ht,E.toUpper=bee,E.trim=yee,E.trimEnd=xee,E.trimStart=Cee,E.truncate=wee,E.unescape=See,E.uniqueId=Uee,E.upperCase=Iee,E.upperFirst=Gp,E.each=E5,E.eachRight=A5,E.first=C5,Zp(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__=qt(d,g.__takeCount__):g.__views__.push({size:qt(d,L),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($l(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(L)},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,ee=$[0],ne=G||Ue(V),se=function(tt){var it=w.apply(E,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,Ve=_&&!ge,qe=G&&!Ee;if(!_&&ne){V=qe?V:new nt(this);var De=o.apply(V,$);return De.__actions__.push({func:Rl,args:[se],thisArg:n}),new Tn(De,ge)}return Ve&&qe?o.apply(this,$):(De=this.thru(se),Ve?g?De.value()[0]:De.value():De)})}),_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);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[_l(n,P).name]=[{name:"wrapper",func:n}],nt.prototype.clone=SY,nt.prototype.reverse=IY,nt.prototype.value=EY,E.prototype.at=eK,E.prototype.chain=tK,E.prototype.commit=nK,E.prototype.next=rK,E.prototype.plant=oK,E.prototype.reverse=aK,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=sK,E.prototype.first=E.prototype.head,ts&&(E.prototype[ts]=iK),E},Go=nY();Vi?((Vi.exports=Go)._=Go,Wh._=Go):Wt._=Go}).call(or)}(el,el.exports);var _z=el.exports;function Pz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"})})}function Tz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M10.496 2.132a1 1 0 00-.992 0l-7 4A1 1 0 003 8v7a1 1 0 100 2h14a1 1 0 100-2V8a1 1 0 00.496-1.868l-7-4zM6 9a1 1 0 00-1 1v3a1 1 0 102 0v-3a1 1 0 00-1-1zm3 1a1 1 0 012 0v3a1 1 0 11-2 0v-3zm5-1a1 1 0 00-1 1v3a1 1 0 102 0v-3a1 1 0 00-1-1z",clipRule:"evenodd"})})}function Oz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}function Fz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1.323l3.954 1.582 1.599-.8a1 1 0 01.894 1.79l-1.233.616 1.738 5.42a1 1 0 01-.285 1.05A3.989 3.989 0 0115 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 110 2H7a1 1 0 110-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 01-.285 1.05A3.989 3.989 0 015 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.738-5.42-1.233-.617a1 1 0 01.894-1.788l1.599.799L9 4.323V3a1 1 0 011-1zm-5 8.274l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L5 10.274zm10 0l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L15 10.274z",clipRule:"evenodd"})})}function Mz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:I.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}function Lz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{d:"M11 17a1 1 0 001.447.894l4-2A1 1 0 0017 15V9.236a1 1 0 00-1.447-.894l-4 2a1 1 0 00-.553.894V17zM15.211 6.276a1 1 0 000-1.788l-4.764-2.382a1 1 0 00-.894 0L4.789 4.488a1 1 0 000 1.788l4.764 2.382a1 1 0 00.894 0l4.764-2.382zM4.447 8.342A1 1 0 003 9.236V15a1 1 0 00.553.894l4 2A1 1 0 009 17v-5.764a1 1 0 00-.553-.894l-4-2z"})})}function Rz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM14 11a1 1 0 011 1v1h1a1 1 0 110 2h-1v1a1 1 0 11-2 0v-1h-1a1 1 0 110-2h1v-1a1 1 0 011-1z"})})}function Vz(e){return I.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",children:[I.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),I.jsx("path",{d:"M10 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-4 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm4-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-4-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-4-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})]})}function Nh(e){return I.jsx("svg",{...e,viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M19.1427 5.55364H14.0534V2.50007C14.0534 1.38043 13.1374 0.464355 12.0177 0.464355H9.98201C8.86236 0.464355 7.94629 1.38043 7.94629 2.50007V5.55364H2.857C1.73736 5.55364 0.821289 6.46971 0.821289 7.58936V18.7858C0.821289 19.9054 1.73736 20.8215 2.857 20.8215H19.1427C20.2624 20.8215 21.1784 19.9054 21.1784 18.7858V7.58936C21.1784 6.46971 20.2624 5.55364 19.1427 5.55364ZM7.94629 10.6429C8.79111 10.6429 9.47308 11.3249 9.47308 12.1697C9.47308 13.0145 8.79111 13.6965 7.94629 13.6965C7.10147 13.6965 6.4195 13.0145 6.4195 12.1697C6.4195 11.3249 7.10147 10.6429 7.94629 10.6429ZM10.9999 16.7501H4.89272V15.9867C4.89272 14.9688 6.92843 14.4599 7.94629 14.4599C8.96415 14.4599 10.9999 14.9688 10.9999 15.9867V16.7501ZM12.0177 7.58936H9.98201V2.50007H12.0177V7.58936ZM17.107 15.2233H13.0356V13.6965H17.107V15.2233ZM17.107 12.1697H13.0356V10.6429H17.107V12.1697Z",fill:"currentColor"})})}function Dz(e){return I.jsx("svg",{...e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M7.46484 8.75C7.46484 8.05781 6.90469 7.49844 6.21484 7.49844L5.625 7.5C4.24453 7.5 3.125 8.61953 3.125 10.0031V11.8699C3.125 13.2539 4.24609 14.375 5.625 14.375H6.25C6.93984 14.375 7.5 13.8141 7.5 13.1227L7.46484 8.75ZM10 0C4.41016 0 0.179023 4.65234 0.0008125 10L0 11.5625C0 12.082 0.419922 12.5 0.902344 12.5C1.38477 12.5 1.875 12.082 1.875 11.5625V10C1.875 5.51953 5.52109 1.88281 10 1.88281C14.4805 1.88281 18.125 5.51953 18.125 10V15.625C18.125 16.4879 17.4254 17.1875 16.5625 17.1875H12.2383C11.9141 16.6289 11.3164 16.25 10.625 16.25H9.44531C8.53867 16.25 7.70703 16.8629 7.53633 17.7535C7.30469 18.9531 8.21875 20 9.33984 20H10.625C11.3172 20 11.9152 19.6207 12.2398 19.0625H16.5625C18.4609 19.0625 20 17.5234 20 15.625V10C19.8203 4.65234 15.5898 0 10 0ZM14.375 14.375C15.7555 14.375 16.875 13.2539 16.875 11.8699V10.0039C16.875 8.62109 15.7539 7.5 14.375 7.5H13.75C13.0602 7.5 12.5 8.06016 12.5 8.75156V13.1211C12.5 13.8164 13.0586 14.375 13.75 14.375H14.375Z",fill:"currentColor"})})}function Nz(e){return I.jsxs("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("g",{"clip-path":"url(#clip0_103_37)",children:I.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.84017 0.0917256L19.8356 3.50319C19.9235 3.52867 19.9984 3.61784 19.9984 3.75797V16.2038C19.9984 16.344 19.9235 16.4357 19.8356 16.4586L7.84017 19.8905C7.75228 19.9159 7.67741 19.7758 7.67741 19.6357V0.346503C7.67741 0.206375 7.75228 0.0662479 7.84017 0.0917256ZM0.112305 1.79873L1.74479 1.37325V18.5936L0.112305 18.1605C0.0504557 18.1427 0 18.0815 0 17.9847V1.97453C0 1.87771 0.0504557 1.81657 0.112305 1.79873ZM2.3763 1.20765L4.23828 0.721025V19.2561L2.3763 18.7643V1.20765ZM4.87142 0.557968L7.00521 0.00255362C7.06543 -0.012733 7.11751 0.0815345 7.11751 0.17835V19.8217C7.11751 19.9185 7.06706 20.0127 7.00521 19.9975L4.87142 19.4293V0.62421V0.557968ZM19.4238 4.63695V15.3503H19.2122V4.63695H19.4238ZM9.37988 2.50446V17.8064H8.74675V2.19873L9.37988 2.50446ZM11.1133 2.75669V17.4013H10.5322V2.6395L11.1133 2.75669ZM12.6644 3.14905V16.9911H12.137V2.99364L12.6644 3.14905ZM14.0479 3.4879V16.693H13.5726V3.31466L14.0479 3.4879ZM15.3239 3.80892V16.3261H14.9007V3.67134L15.3239 3.80892ZM16.5007 4.04077V16.0433H16.1312V3.90829L16.5007 4.04077ZM17.5553 4.34141V15.786H17.238V4.18599L17.5553 4.34141ZM18.5384 4.60128V15.5491H18.2747V4.4102L18.5384 4.60128Z",fill:"currentColor"})}),I.jsx("defs",{children:I.jsx("clipPath",{id:"clip0_103_37",children:I.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}function $z(e){return I.jsx("svg",{...e,width:"13",height:"20",viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.5 0C1.11929 0 0 1.11929 0 2.5V17.5C0 18.8807 1.11929 20 2.5 20H10C11.3807 20 12.5 18.8807 12.5 17.5V2.5C12.5 1.11929 11.3807 0 10 0H2.5ZM6.25 17.5C6.94037 17.5 7.5 16.9404 7.5 16.25C7.5 15.5596 6.94037 15 6.25 15C5.55965 15 5 15.5596 5 16.25C5 16.9404 5.55965 17.5 6.25 17.5Z",fill:"currentColor"})})}function Bz(e){return I.jsx("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M9.58329 1.66669H1.66663V10.8334H9.58329V1.66669ZM18.3333 14.1667H1.66663V17.9167H18.3333V14.1667ZM18.3333 1.66669H12.9166V5.00002H18.3333V1.66669ZM18.3333 7.50002H12.9166V10.8334H18.3333V7.50002Z",fill:"currentColor",stroke:"currentColor","stroke-width":"1.66667","stroke-linejoin":"round"})})}function jz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm14 1a1 1 0 11-2 0 1 1 0 012 0zM2 13a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2zm14 1a1 1 0 11-2 0 1 1 0 012 0z",clipRule:"evenodd"})})}function kz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",children:I.jsx("path",{fill:"currentColor",d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3c-.55.55-1 .87-1 1.59c0 .78.63 1.41 1.41 1.41h9.17c.78 0 1.41-.63 1.41-1.41c0-.72-.44-1.03-1-1.59h3c1.1 0 2-.9 2-2V5C22 3.9 21.1 3 20 3zm0 13H4V5h16v11z"})})}function Gz(e){return I.jsx("svg",{...e,width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M15.85 17.9501L11.425 13.5251L13.525 11.4251L17.95 15.8501C18.2333 16.1334 18.375 16.4834 18.375 16.9001C18.375 17.3168 18.2333 17.6668 17.95 17.9501C17.6667 18.2334 17.3167 18.3751 16.9 18.3751C16.4833 18.3751 16.1333 18.2334 15.85 17.9501ZM2.05 17.9501C1.76667 17.6668 1.625 17.3168 1.625 16.9001C1.625 16.4834 1.76667 16.1334 2.05 15.8501L7.9 10.0001L6.2 8.3001C6.01667 8.48343 5.78334 8.5751 5.5 8.5751C5.21667 8.5751 4.98334 8.48343 4.8 8.3001L4.225 7.7251V9.9751C4.225 10.2084 4.125 10.3668 3.925 10.4501C3.725 10.5334 3.54167 10.4918 3.375 10.3251L0.650004 7.6001C0.483337 7.43343 0.441671 7.2501 0.525004 7.0501C0.608337 6.8501 0.766671 6.7501 1 6.7501H3.25L2.7 6.2001C2.5 6.0001 2.4 5.76676 2.4 5.5001C2.4 5.23343 2.5 5.0001 2.7 4.8001L5.55 1.9501C5.88334 1.61676 6.24167 1.3751 6.625 1.2251C7.00834 1.0751 7.4 1.0001 7.8 1.0001C8.13334 1.0001 8.44584 1.0501 8.7375 1.1501C9.02917 1.2501 9.31667 1.4001 9.6 1.6001C9.73334 1.68343 9.80417 1.8001 9.8125 1.9501C9.82084 2.1001 9.76667 2.23343 9.65 2.3501L7.75 4.2501L8.3 4.8001C8.48334 4.98343 8.575 5.21676 8.575 5.5001C8.575 5.78343 8.48334 6.01676 8.3 6.2001L10 7.9001L12.25 5.6501C12.1833 5.46676 12.1292 5.2751 12.0875 5.0751C12.0458 4.8751 12.025 4.6751 12.025 4.4751C12.025 3.49176 12.3625 2.6626 13.0375 1.9876C13.7125 1.3126 14.5417 0.975098 15.525 0.975098C15.6583 0.975098 15.7833 0.979264 15.9 0.987598C16.0167 0.995931 16.1333 1.01676 16.25 1.0501C16.4 1.1001 16.4958 1.20426 16.5375 1.3626C16.5792 1.52093 16.5417 1.65843 16.425 1.7751L14.8 3.4001C14.7 3.5001 14.65 3.61676 14.65 3.7501C14.65 3.88343 14.7 4.0001 14.8 4.1001L15.9 5.2001C16 5.3001 16.1167 5.3501 16.25 5.3501C16.3833 5.3501 16.5 5.3001 16.6 5.2001L18.225 3.5751C18.3417 3.45843 18.4792 3.41676 18.6375 3.4501C18.7958 3.48343 18.9 3.58343 18.95 3.7501C18.9833 3.86676 19.0042 3.98343 19.0125 4.1001C19.0208 4.21676 19.025 4.34176 19.025 4.4751C19.025 5.45843 18.6875 6.2876 18.0125 6.9626C17.3375 7.6376 16.5083 7.9751 15.525 7.9751C15.325 7.9751 15.125 7.95843 14.925 7.9251C14.725 7.89176 14.5333 7.83343 14.35 7.7501L4.15 17.9501C3.86667 18.2334 3.51667 18.3751 3.1 18.3751C2.68334 18.3751 2.33334 18.2334 2.05 17.9501Z",fill:"#0093B2"})})}function Hz(e){return I.jsx("svg",{...e,width:"26",height:"28",viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M14.8333 16.6251C13.7329 16.6251 12.6325 16.253 11.6667 15.5801C9.73499 16.9338 7.26499 16.9338 5.33332 15.5801C4.36749 16.253 3.26707 16.6251 2.16666 16.6251H0.583324V18.2084H2.16666C3.25916 18.2084 4.33582 17.9313 5.33332 17.4246C6.31299 17.928 7.39856 18.1906 8.49999 18.1906C9.60143 18.1906 10.687 17.928 11.6667 17.4246C12.6642 17.9392 13.7408 18.2084 14.8333 18.2084H16.4167V16.6251H14.8333ZM2.12707 15.0417H2.16666C3.43332 15.0417 4.55749 14.3451 5.33332 13.4584C6.10916 14.3451 7.23332 15.0417 8.49999 15.0417C9.76666 15.0417 10.8908 14.3451 11.6667 13.4584C12.4425 14.3451 13.5667 15.0417 14.8333 15.0417H14.8729L16.3692 9.75338C16.4325 9.54755 16.4167 9.32588 16.3217 9.13589C16.2267 8.94588 16.0525 8.80338 15.8467 8.74005L14.8333 8.40755V4.75005C14.8333 3.87922 14.1208 3.16672 13.25 3.16672H10.875V0.791718H6.12499V3.16672H3.74999C2.87916 3.16672 2.16666 3.87922 2.16666 4.75005V8.40755L1.14541 8.74005C1.04388 8.77124 0.949607 8.8224 0.868125 8.89052C0.786644 8.95865 0.719597 9.04237 0.670922 9.13677C0.622248 9.23117 0.592927 9.33434 0.584681 9.44023C0.576436 9.54612 0.589433 9.65259 0.622908 9.75338L2.12707 15.0417ZM3.74999 4.75005H13.25V7.89297L8.49999 6.33338L3.74999 7.89297V4.75005Z",fill:"currentColor"})})}function Wz({system:e,classname:t}){switch(e){case"Autenticação":return I.jsx(sw,{className:t});case"Agendamento":return I.jsx(Pz,{className:t});case"Portal ADE":return I.jsx(Tz,{className:t});case"Granéis - Dashboard":return I.jsx(Oz,{className:t});case"Granéis - Fiscal":return I.jsx(Fz,{className:t});case"Granéis - Embarque":return I.jsx(Mz,{className:t});case"Armazém":return I.jsx(Lz,{className:t});case"Planejador":return I.jsx(Rz,{className:t});case"Granéis - Desembarque":return I.jsx(Vz,{className:t});case"Granéis - Recepção":return I.jsx(Nh,{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"DeskManager":return I.jsx(Dz,{className:t});case"Cargo Control":return I.jsx(Nz,{className:t});case"Coletor":return I.jsx($z,{className:t});case"Template":return I.jsx(Bz,{className:t});case"Integrações":return I.jsx(jz,{className:t});case"Eagle":return I.jsx(kz,{className:t});case"Equipamentos":return I.jsx(Gz,{className:t});case"Hatchlist":return I.jsx(Hz,{className:t});case"Hangfire Hatch list":return I.jsx(tg,{className:t});case"Hangfire DPW":return I.jsx(tg,{className:t});default:return I.jsx("span",{children:"?"})}}function Zz({onClick:e}){return I.jsx(Cd.Button,{onClick:e,children:I.jsx(ow,{className:"w-6 h-6"})})}function Xz({user:e,userTypeId:t,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:u,setTheme:l,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:C,nightThemeText:S,logoutText:A,isOpen:P,terminalName:M}){const R=["DPW","T32","BRC","ITACEL"];return I.jsx(Bs,{children:P&&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:D=>D.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(rg,{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(Yz,{children:I.jsx(xw,{className:"w-4 h-4"})}),I.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[I.jsxs(Ex,{onClick:()=>c("pt-br"),children:[I.jsx(Cw,{})," Navegar em português"]}),I.jsxs(Ex,{onClick:()=>c("en-us"),children:[I.jsx(ww,{})," Browse in English"]})]}),I.jsxs("div",{className:"flex justify-center w-full gap-4",children:[t===2&&I.jsx("div",{className:"w-2/4 mb-4",children:I.jsx(qi,{variant:"primary",onClick:f,children:I.jsxs("div",{className:"p-5",children:[I.jsxs("p",{className:"text-[12px]",children:["Terminal:"," ",I.jsx("b",{children:M??""})]}),I.jsx("p",{className:"text-[11px]",children:C})]})})}),i&&I.jsx("div",{className:"w-2/4 mb-4",children:I.jsx(b2,{name:"tenant",label:"Cliente",options:R.map(D=>({value:D,label:D})),onChange:u,value:a?{value:a,label:a}:[]})})]}),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:[m," ",I.jsxs("span",{className:"text-brand-dark-gray",children:["(",v,")"]})]}),I.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:_z.sortBy(e.portais,["descricao"]).map((D,N)=>{const X=p===D.nome;return I.jsxs(Bs,{mode:"wait",children:["isOpen && (",I.jsxs(Ji.a,{href:D.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:N*(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":X,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!X}),children:I.jsx(Wz,{system:D.descricao,classname:"w-6 h-6"})}),I.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:D.nome})]},"portal-item-"+D.descricao),")"]},N)})})]}),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(zz,{isDarkMode:n,setIsDarkMode:r,setTheme:l}),I.jsx("span",{className:et({"text-brand-secondary":n,"text-brand-secondary-text":!n},"text-xs"),children:S})]}),I.jsxs("div",{onClick:h,className:"flex items-center gap-1 cursor-pointer",children:[I.jsx(uw,{}),I.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:A})]})]})]})})})},"user-menu-container")})}function zz({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),I.jsxs(z2,{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(Bs,{children:I.jsx("div",{className:"flex items-center w-full",children:e?I.jsx(lw,{className:"w-4 translate-x-5"}):I.jsx(Uz,{})})})]})}function Uz(){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 Yz({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 Ex({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 Jz({user:e,userTypeId:t,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:u,setTheme:l,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:C,nightThemeText:S,logoutText:A,isOpen:P,setOpen:M,terminalName:R}){function D(){M(X=>!X)}function N(){M(!1)}return I.jsxs(I.Fragment,{children:[I.jsx(Zz,{onClick:D}),I.jsx(js,{isOpen:P,close:N,children:I.jsx(Xz,{userTypeId:t,user:e,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:u,setTheme:l,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:C,nightThemeText:S,logoutText:A,isOpen:P,terminalName:R})})]})}var qz=process.env.NODE_ENV==="production";function Do(e,t){if(!qz){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function $h(){return $h=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},$h.apply(this,arguments)}function Kz(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 Ax(){var e=b.useContext(tl);return e||(process.env.NODE_ENV!=="production"?Do(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Do(!1)),e}var Qz=function(t){return t!==null&&typeof t=="object"};function eU(e){var t=Ax(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,u=t.unregisterField,l=Qz(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"?Do(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):Do(!1))),f||(process.env.NODE_ENV!=="production"?Do(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):Do(!1));var p=b.useMemo(function(){return i(f)},[i,f]);return[n(c),r(f),p]}var tU=b.forwardRef(function(e,t){var n=e.action,r=Kz(e,["action"]),i=n??"#",a=Ax(),u=a.handleReset,l=a.handleSubmit;return b.createElement("form",$h({onSubmit:l,ref:t,onReset:u,action:i},r))});tU.displayName="Form";const nU=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:u},{setValue:l,setTouched:c}]=eU(e),f=p=>{const m=i.type==="color"?p:p.target.value;l(m),n&&n(m)},h=()=>{c(!0),r&&r()};return I.jsx(I.Fragment,{children:I.jsx(Zb,{error:u,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};ke.Avatar=rg,ke.Backdrop=js,ke.BaseField=nU,ke.Button=qi,ke.Card=DS,ke.Checkbox=NS,ke.ColorPicker=Vb,ke.Dialog=Mj,ke.DualListBox=Gj,ke.ErrorMessage=hd,ke.Header=Hj,ke.HelperMessage=pd,ke.Input=Zb,ke.Label=xd,ke.Navbar=Cd,ke.Radio=qj,ke.Select=b2,ke.SideMenu=rX,ke.Spinner=dd,ke.Switch=kX,ke.Table=Cz,ke.TableAction=wz,ke.TablePagination=yz,ke.Tooltip=Ix,ke.UploadFile=Az,ke.UserMenu=Jz,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})});
217
+ }`;var qe=Y5(function(){return ct(_,Ee+"return "+se).apply(n,V)});if(qe.source=se,$p(qe))throw qe;return qe}function vee(o){return ht(o).toLowerCase()}function bee(o){return ht(o).toUpperCase()}function yee(o,s,d){if(o=ht(o),o&&(d||s===n))return iC(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=oC(g,w),V=aC(g,w)+1;return Qr(g,_,V).join("")}function xee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,uC(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=aC(g,Wn(s))+1;return Qr(g,0,w).join("")}function Cee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.replace(Li,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=oC(g,Wn(s));return Qr(g,w).join("")}function wee(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-$),Bp(w)){if(o.slice($).search(w)){var ee,ne=G;for(w.global||(w=tp(w.source,ht(_e.exec(w))+"g")),w.lastIndex=0;ee=w.exec(ne);)var se=ee.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 See(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,KU):o}var Iee=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),Gp=JC("toUpperCase");function U5(o,s,d){return o=ht(o),s=d?n:s,s===n?zU(o)?tY(o):$U(o):o.match(s)||[]}var Y5=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return $p(d)?d:new Ze(d)}}),Eee=_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 _ee(o){return KY(On(o,p))}function Hp(o){return function(){return o}}function Pee(o,s){return o==null||o!==o?s:o}var Tee=KC(),Oee=KC(!0);function fn(o){return o}function Wp(o){return PC(typeof o=="function"?o:On(o,p))}function Fee(o){return OC(On(o,p))}function Mee(o,s){return FC(o,On(s,p))}var Lee=Qe(function(o,s){return function(d){return us(d,o,s)}}),Ree=Qe(function(o,s){return function(d){return us(o,d,s)}});function Zp(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,V=Tr(o);return _n(w,function($){var G=s[$];o[$]=G,V&&(o.prototype[$]=function(){var ee=this.__chain__;if(_||ee){var ne=o(this.__wrapped__),se=ne.__actions__=un(this.__actions__);return se.push({func:G,args:arguments,thisArg:o}),ne.__chain__=ee,ne}return G.apply(o,zr([this.value()],arguments))})}),o}function Vee(){return Wt._===this&&(Wt._=sY),this}function Xp(){}function Dee(o){return o=Ye(o),Qe(function(s){return MC(s,o)})}var Nee=Sp(At),$ee=Sp(Qx),Bee=Sp(Uh);function J5(o){return Op(o)?Yh(ir(o)):gJ(o)}function jee(o){return function(s){return o==null?n:ji(o,s)}}var kee=e5(),Gee=e5(!0);function zp(){return[]}function Up(){return!1}function Hee(){return{}}function Wee(){return""}function Zee(){return!0}function Xee(o,s){if(o=Ye(o),o<1||o>Je)return[];var d=L,g=qt(o,L);s=Fe(s),o-=L;for(var w=Kh(g,s);++d<o;)s(d);return w}function zee(o){return Ue(o)?At(o,ir):xn(o)?[o]:un(m5(ht(o)))}function Uee(o){var s=++oY;return ht(o)+s}var Yee=Pl(function(o,s){return o+s},0),Jee=Ip("ceil"),qee=Pl(function(o,s){return o/s},1),Kee=Ip("floor");function Qee(o){return o&&o.length?Cl(o,fn,lp):n}function ete(o,s){return o&&o.length?Cl(o,Fe(s,2),lp):n}function tte(o){return nC(o,fn)}function nte(o,s){return nC(o,Fe(s,2))}function rte(o){return o&&o.length?Cl(o,fn,hp):n}function ite(o,s){return o&&o.length?Cl(o,Fe(s,2),hp):n}var ote=Pl(function(o,s){return o*s},1),ate=Ip("round"),ste=Pl(function(o,s){return o-s},0);function ute(o){return o&&o.length?qh(o,fn):0}function lte(o,s){return o&&o.length?qh(o,Fe(s,2)):0}return E.after=FK,E.ary=_5,E.assign=bQ,E.assignIn=k5,E.assignInWith=kl,E.assignWith=yQ,E.at=xQ,E.before=P5,E.bind=Dp,E.bindAll=Eee,E.bindKey=T5,E.castArray=HK,E.chain=I5,E.chunk=KJ,E.compact=QJ,E.concat=eq,E.cond=Aee,E.conforms=_ee,E.constant=Hp,E.countBy=uK,E.create=CQ,E.curry=O5,E.curryRight=F5,E.debounce=M5,E.defaults=wQ,E.defaultsDeep=SQ,E.defer=MK,E.delay=LK,E.difference=tq,E.differenceBy=nq,E.differenceWith=rq,E.drop=iq,E.dropRight=oq,E.dropRightWhile=aq,E.dropWhile=sq,E.fill=uq,E.filter=cK,E.flatMap=hK,E.flatMapDeep=pK,E.flatMapDepth=gK,E.flatten=x5,E.flattenDeep=lq,E.flattenDepth=cq,E.flip=RK,E.flow=Tee,E.flowRight=Oee,E.fromPairs=fq,E.functions=OQ,E.functionsIn=FQ,E.groupBy=mK,E.initial=hq,E.intersection=pq,E.intersectionBy=gq,E.intersectionWith=mq,E.invert=LQ,E.invertBy=RQ,E.invokeMap=bK,E.iteratee=Wp,E.keyBy=yK,E.keys=Gt,E.keysIn=cn,E.map=Vl,E.mapKeys=DQ,E.mapValues=NQ,E.matches=Fee,E.matchesProperty=Mee,E.memoize=Nl,E.merge=$Q,E.mergeWith=G5,E.method=Lee,E.methodOf=Ree,E.mixin=Zp,E.negate=$l,E.nthArg=Dee,E.omit=BQ,E.omitBy=jQ,E.once=VK,E.orderBy=xK,E.over=Nee,E.overArgs=DK,E.overEvery=$ee,E.overSome=Bee,E.partial=Np,E.partialRight=L5,E.partition=CK,E.pick=kQ,E.pickBy=H5,E.property=J5,E.propertyOf=jee,E.pull=xq,E.pullAll=w5,E.pullAllBy=Cq,E.pullAllWith=wq,E.pullAt=Sq,E.range=kee,E.rangeRight=Gee,E.rearg=NK,E.reject=IK,E.remove=Iq,E.rest=$K,E.reverse=Rp,E.sampleSize=AK,E.set=HQ,E.setWith=WQ,E.shuffle=_K,E.slice=Eq,E.sortBy=OK,E.sortedUniq=Mq,E.sortedUniqBy=Lq,E.split=hee,E.spread=BK,E.tail=Rq,E.take=Vq,E.takeRight=Dq,E.takeRightWhile=Nq,E.takeWhile=$q,E.tap=Qq,E.throttle=jK,E.thru=Rl,E.toArray=$5,E.toPairs=W5,E.toPairsIn=Z5,E.toPath=zee,E.toPlainObject=j5,E.transform=ZQ,E.unary=kK,E.union=Bq,E.unionBy=jq,E.unionWith=kq,E.uniq=Gq,E.uniqBy=Hq,E.uniqWith=Wq,E.unset=XQ,E.unzip=Vp,E.unzipWith=S5,E.update=zQ,E.updateWith=UQ,E.values=qo,E.valuesIn=YQ,E.without=Zq,E.words=U5,E.wrap=GK,E.xor=Xq,E.xorBy=zq,E.xorWith=Uq,E.zip=Yq,E.zipObject=Jq,E.zipObjectDeep=qq,E.zipWith=Kq,E.entries=W5,E.entriesIn=Z5,E.extend=k5,E.extendWith=kl,Zp(E,E),E.add=Yee,E.attempt=Y5,E.camelCase=QQ,E.capitalize=X5,E.ceil=Jee,E.clamp=JQ,E.clone=WK,E.cloneDeep=XK,E.cloneDeepWith=zK,E.cloneWith=ZK,E.conformsTo=UK,E.deburr=z5,E.defaultTo=Pee,E.divide=qee,E.endsWith=eee,E.eq=Xn,E.escape=tee,E.escapeRegExp=nee,E.every=lK,E.find=fK,E.findIndex=b5,E.findKey=IQ,E.findLast=dK,E.findLastIndex=y5,E.findLastKey=EQ,E.floor=Kee,E.forEach=E5,E.forEachRight=A5,E.forIn=AQ,E.forInRight=_Q,E.forOwn=PQ,E.forOwnRight=TQ,E.get=jp,E.gt=YK,E.gte=JK,E.has=MQ,E.hasIn=kp,E.head=C5,E.identity=fn,E.includes=vK,E.indexOf=dq,E.inRange=qQ,E.invoke=VQ,E.isArguments=Hi,E.isArray=Ue,E.isArrayBuffer=qK,E.isArrayLike=ln,E.isArrayLikeObject=Rt,E.isBoolean=KK,E.isBuffer=ei,E.isDate=QK,E.isElement=eQ,E.isEmpty=tQ,E.isEqual=nQ,E.isEqualWith=rQ,E.isError=$p,E.isFinite=iQ,E.isFunction=Tr,E.isInteger=R5,E.isLength=Bl,E.isMap=V5,E.isMatch=oQ,E.isMatchWith=aQ,E.isNaN=sQ,E.isNative=uQ,E.isNil=cQ,E.isNull=lQ,E.isNumber=D5,E.isObject=Pt,E.isObjectLike=Ft,E.isPlainObject=ps,E.isRegExp=Bp,E.isSafeInteger=fQ,E.isSet=N5,E.isString=jl,E.isSymbol=xn,E.isTypedArray=Jo,E.isUndefined=dQ,E.isWeakMap=hQ,E.isWeakSet=pQ,E.join=vq,E.kebabCase=ree,E.last=Mn,E.lastIndexOf=bq,E.lowerCase=iee,E.lowerFirst=oee,E.lt=gQ,E.lte=mQ,E.max=Qee,E.maxBy=ete,E.mean=tte,E.meanBy=nte,E.min=rte,E.minBy=ite,E.stubArray=zp,E.stubFalse=Up,E.stubObject=Hee,E.stubString=Wee,E.stubTrue=Zee,E.multiply=ote,E.nth=yq,E.noConflict=Vee,E.noop=Xp,E.now=Dl,E.pad=aee,E.padEnd=see,E.padStart=uee,E.parseInt=lee,E.random=KQ,E.reduce=wK,E.reduceRight=SK,E.repeat=cee,E.replace=fee,E.result=GQ,E.round=ate,E.runInContext=j,E.sample=EK,E.size=PK,E.snakeCase=dee,E.some=TK,E.sortedIndex=Aq,E.sortedIndexBy=_q,E.sortedIndexOf=Pq,E.sortedLastIndex=Tq,E.sortedLastIndexBy=Oq,E.sortedLastIndexOf=Fq,E.startCase=pee,E.startsWith=gee,E.subtract=ste,E.sum=ute,E.sumBy=lte,E.template=mee,E.times=Xee,E.toFinite=Or,E.toInteger=Ye,E.toLength=B5,E.toLower=vee,E.toNumber=Ln,E.toSafeInteger=vQ,E.toString=ht,E.toUpper=bee,E.trim=yee,E.trimEnd=xee,E.trimStart=Cee,E.truncate=wee,E.unescape=See,E.uniqueId=Uee,E.upperCase=Iee,E.upperFirst=Gp,E.each=E5,E.eachRight=A5,E.first=C5,Zp(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__=qt(d,g.__takeCount__):g.__views__.push({size:qt(d,L),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($l(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(L)},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,ee=$[0],ne=G||Ue(V),se=function(tt){var it=w.apply(E,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,Ve=_&&!ge,qe=G&&!Ee;if(!_&&ne){V=qe?V:new nt(this);var De=o.apply(V,$);return De.__actions__.push({func:Rl,args:[se],thisArg:n}),new Tn(De,ge)}return Ve&&qe?o.apply(this,$):(De=this.thru(se),Ve?g?De.value()[0]:De.value():De)})}),_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);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[_l(n,P).name]=[{name:"wrapper",func:n}],nt.prototype.clone=SY,nt.prototype.reverse=IY,nt.prototype.value=EY,E.prototype.at=eK,E.prototype.chain=tK,E.prototype.commit=nK,E.prototype.next=rK,E.prototype.plant=oK,E.prototype.reverse=aK,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=sK,E.prototype.first=E.prototype.head,ts&&(E.prototype[ts]=iK),E},Go=nY();Vi?((Vi.exports=Go)._=Go,Wh._=Go):Wt._=Go}).call(or)}(el,el.exports);var _z=el.exports;function Pz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"})})}function Tz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M10.496 2.132a1 1 0 00-.992 0l-7 4A1 1 0 003 8v7a1 1 0 100 2h14a1 1 0 100-2V8a1 1 0 00.496-1.868l-7-4zM6 9a1 1 0 00-1 1v3a1 1 0 102 0v-3a1 1 0 00-1-1zm3 1a1 1 0 012 0v3a1 1 0 11-2 0v-3zm5-1a1 1 0 00-1 1v3a1 1 0 102 0v-3a1 1 0 00-1-1z",clipRule:"evenodd"})})}function Oz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}function Fz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1.323l3.954 1.582 1.599-.8a1 1 0 01.894 1.79l-1.233.616 1.738 5.42a1 1 0 01-.285 1.05A3.989 3.989 0 0115 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 110 2H7a1 1 0 110-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 01-.285 1.05A3.989 3.989 0 015 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.738-5.42-1.233-.617a1 1 0 01.894-1.788l1.599.799L9 4.323V3a1 1 0 011-1zm-5 8.274l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L5 10.274zm10 0l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L15 10.274z",clipRule:"evenodd"})})}function Mz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:I.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}function Lz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{d:"M11 17a1 1 0 001.447.894l4-2A1 1 0 0017 15V9.236a1 1 0 00-1.447-.894l-4 2a1 1 0 00-.553.894V17zM15.211 6.276a1 1 0 000-1.788l-4.764-2.382a1 1 0 00-.894 0L4.789 4.488a1 1 0 000 1.788l4.764 2.382a1 1 0 00.894 0l4.764-2.382zM4.447 8.342A1 1 0 003 9.236V15a1 1 0 00.553.894l4 2A1 1 0 009 17v-5.764a1 1 0 00-.553-.894l-4-2z"})})}function Rz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM14 11a1 1 0 011 1v1h1a1 1 0 110 2h-1v1a1 1 0 11-2 0v-1h-1a1 1 0 110-2h1v-1a1 1 0 011-1z"})})}function Vz(e){return I.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",children:[I.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),I.jsx("path",{d:"M10 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-4 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm4-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-4-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-4-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})]})}function Nh(e){return I.jsx("svg",{...e,viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M19.1427 5.55364H14.0534V2.50007C14.0534 1.38043 13.1374 0.464355 12.0177 0.464355H9.98201C8.86236 0.464355 7.94629 1.38043 7.94629 2.50007V5.55364H2.857C1.73736 5.55364 0.821289 6.46971 0.821289 7.58936V18.7858C0.821289 19.9054 1.73736 20.8215 2.857 20.8215H19.1427C20.2624 20.8215 21.1784 19.9054 21.1784 18.7858V7.58936C21.1784 6.46971 20.2624 5.55364 19.1427 5.55364ZM7.94629 10.6429C8.79111 10.6429 9.47308 11.3249 9.47308 12.1697C9.47308 13.0145 8.79111 13.6965 7.94629 13.6965C7.10147 13.6965 6.4195 13.0145 6.4195 12.1697C6.4195 11.3249 7.10147 10.6429 7.94629 10.6429ZM10.9999 16.7501H4.89272V15.9867C4.89272 14.9688 6.92843 14.4599 7.94629 14.4599C8.96415 14.4599 10.9999 14.9688 10.9999 15.9867V16.7501ZM12.0177 7.58936H9.98201V2.50007H12.0177V7.58936ZM17.107 15.2233H13.0356V13.6965H17.107V15.2233ZM17.107 12.1697H13.0356V10.6429H17.107V12.1697Z",fill:"currentColor"})})}function Dz(e){return I.jsx("svg",{...e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M7.46484 8.75C7.46484 8.05781 6.90469 7.49844 6.21484 7.49844L5.625 7.5C4.24453 7.5 3.125 8.61953 3.125 10.0031V11.8699C3.125 13.2539 4.24609 14.375 5.625 14.375H6.25C6.93984 14.375 7.5 13.8141 7.5 13.1227L7.46484 8.75ZM10 0C4.41016 0 0.179023 4.65234 0.0008125 10L0 11.5625C0 12.082 0.419922 12.5 0.902344 12.5C1.38477 12.5 1.875 12.082 1.875 11.5625V10C1.875 5.51953 5.52109 1.88281 10 1.88281C14.4805 1.88281 18.125 5.51953 18.125 10V15.625C18.125 16.4879 17.4254 17.1875 16.5625 17.1875H12.2383C11.9141 16.6289 11.3164 16.25 10.625 16.25H9.44531C8.53867 16.25 7.70703 16.8629 7.53633 17.7535C7.30469 18.9531 8.21875 20 9.33984 20H10.625C11.3172 20 11.9152 19.6207 12.2398 19.0625H16.5625C18.4609 19.0625 20 17.5234 20 15.625V10C19.8203 4.65234 15.5898 0 10 0ZM14.375 14.375C15.7555 14.375 16.875 13.2539 16.875 11.8699V10.0039C16.875 8.62109 15.7539 7.5 14.375 7.5H13.75C13.0602 7.5 12.5 8.06016 12.5 8.75156V13.1211C12.5 13.8164 13.0586 14.375 13.75 14.375H14.375Z",fill:"currentColor"})})}function Nz(e){return I.jsxs("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("g",{"clip-path":"url(#clip0_103_37)",children:I.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.84017 0.0917256L19.8356 3.50319C19.9235 3.52867 19.9984 3.61784 19.9984 3.75797V16.2038C19.9984 16.344 19.9235 16.4357 19.8356 16.4586L7.84017 19.8905C7.75228 19.9159 7.67741 19.7758 7.67741 19.6357V0.346503C7.67741 0.206375 7.75228 0.0662479 7.84017 0.0917256ZM0.112305 1.79873L1.74479 1.37325V18.5936L0.112305 18.1605C0.0504557 18.1427 0 18.0815 0 17.9847V1.97453C0 1.87771 0.0504557 1.81657 0.112305 1.79873ZM2.3763 1.20765L4.23828 0.721025V19.2561L2.3763 18.7643V1.20765ZM4.87142 0.557968L7.00521 0.00255362C7.06543 -0.012733 7.11751 0.0815345 7.11751 0.17835V19.8217C7.11751 19.9185 7.06706 20.0127 7.00521 19.9975L4.87142 19.4293V0.62421V0.557968ZM19.4238 4.63695V15.3503H19.2122V4.63695H19.4238ZM9.37988 2.50446V17.8064H8.74675V2.19873L9.37988 2.50446ZM11.1133 2.75669V17.4013H10.5322V2.6395L11.1133 2.75669ZM12.6644 3.14905V16.9911H12.137V2.99364L12.6644 3.14905ZM14.0479 3.4879V16.693H13.5726V3.31466L14.0479 3.4879ZM15.3239 3.80892V16.3261H14.9007V3.67134L15.3239 3.80892ZM16.5007 4.04077V16.0433H16.1312V3.90829L16.5007 4.04077ZM17.5553 4.34141V15.786H17.238V4.18599L17.5553 4.34141ZM18.5384 4.60128V15.5491H18.2747V4.4102L18.5384 4.60128Z",fill:"currentColor"})}),I.jsx("defs",{children:I.jsx("clipPath",{id:"clip0_103_37",children:I.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}function $z(e){return I.jsx("svg",{...e,width:"13",height:"20",viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.5 0C1.11929 0 0 1.11929 0 2.5V17.5C0 18.8807 1.11929 20 2.5 20H10C11.3807 20 12.5 18.8807 12.5 17.5V2.5C12.5 1.11929 11.3807 0 10 0H2.5ZM6.25 17.5C6.94037 17.5 7.5 16.9404 7.5 16.25C7.5 15.5596 6.94037 15 6.25 15C5.55965 15 5 15.5596 5 16.25C5 16.9404 5.55965 17.5 6.25 17.5Z",fill:"currentColor"})})}function Bz(e){return I.jsx("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M9.58329 1.66669H1.66663V10.8334H9.58329V1.66669ZM18.3333 14.1667H1.66663V17.9167H18.3333V14.1667ZM18.3333 1.66669H12.9166V5.00002H18.3333V1.66669ZM18.3333 7.50002H12.9166V10.8334H18.3333V7.50002Z",fill:"currentColor",stroke:"currentColor","stroke-width":"1.66667","stroke-linejoin":"round"})})}function jz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:I.jsx("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm14 1a1 1 0 11-2 0 1 1 0 012 0zM2 13a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2zm14 1a1 1 0 11-2 0 1 1 0 012 0z",clipRule:"evenodd"})})}function kz(e){return I.jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",children:I.jsx("path",{fill:"currentColor",d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3c-.55.55-1 .87-1 1.59c0 .78.63 1.41 1.41 1.41h9.17c.78 0 1.41-.63 1.41-1.41c0-.72-.44-1.03-1-1.59h3c1.1 0 2-.9 2-2V5C22 3.9 21.1 3 20 3zm0 13H4V5h16v11z"})})}function Gz(e){return I.jsx("svg",{...e,width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M15.85 17.9501L11.425 13.5251L13.525 11.4251L17.95 15.8501C18.2333 16.1334 18.375 16.4834 18.375 16.9001C18.375 17.3168 18.2333 17.6668 17.95 17.9501C17.6667 18.2334 17.3167 18.3751 16.9 18.3751C16.4833 18.3751 16.1333 18.2334 15.85 17.9501ZM2.05 17.9501C1.76667 17.6668 1.625 17.3168 1.625 16.9001C1.625 16.4834 1.76667 16.1334 2.05 15.8501L7.9 10.0001L6.2 8.3001C6.01667 8.48343 5.78334 8.5751 5.5 8.5751C5.21667 8.5751 4.98334 8.48343 4.8 8.3001L4.225 7.7251V9.9751C4.225 10.2084 4.125 10.3668 3.925 10.4501C3.725 10.5334 3.54167 10.4918 3.375 10.3251L0.650004 7.6001C0.483337 7.43343 0.441671 7.2501 0.525004 7.0501C0.608337 6.8501 0.766671 6.7501 1 6.7501H3.25L2.7 6.2001C2.5 6.0001 2.4 5.76676 2.4 5.5001C2.4 5.23343 2.5 5.0001 2.7 4.8001L5.55 1.9501C5.88334 1.61676 6.24167 1.3751 6.625 1.2251C7.00834 1.0751 7.4 1.0001 7.8 1.0001C8.13334 1.0001 8.44584 1.0501 8.7375 1.1501C9.02917 1.2501 9.31667 1.4001 9.6 1.6001C9.73334 1.68343 9.80417 1.8001 9.8125 1.9501C9.82084 2.1001 9.76667 2.23343 9.65 2.3501L7.75 4.2501L8.3 4.8001C8.48334 4.98343 8.575 5.21676 8.575 5.5001C8.575 5.78343 8.48334 6.01676 8.3 6.2001L10 7.9001L12.25 5.6501C12.1833 5.46676 12.1292 5.2751 12.0875 5.0751C12.0458 4.8751 12.025 4.6751 12.025 4.4751C12.025 3.49176 12.3625 2.6626 13.0375 1.9876C13.7125 1.3126 14.5417 0.975098 15.525 0.975098C15.6583 0.975098 15.7833 0.979264 15.9 0.987598C16.0167 0.995931 16.1333 1.01676 16.25 1.0501C16.4 1.1001 16.4958 1.20426 16.5375 1.3626C16.5792 1.52093 16.5417 1.65843 16.425 1.7751L14.8 3.4001C14.7 3.5001 14.65 3.61676 14.65 3.7501C14.65 3.88343 14.7 4.0001 14.8 4.1001L15.9 5.2001C16 5.3001 16.1167 5.3501 16.25 5.3501C16.3833 5.3501 16.5 5.3001 16.6 5.2001L18.225 3.5751C18.3417 3.45843 18.4792 3.41676 18.6375 3.4501C18.7958 3.48343 18.9 3.58343 18.95 3.7501C18.9833 3.86676 19.0042 3.98343 19.0125 4.1001C19.0208 4.21676 19.025 4.34176 19.025 4.4751C19.025 5.45843 18.6875 6.2876 18.0125 6.9626C17.3375 7.6376 16.5083 7.9751 15.525 7.9751C15.325 7.9751 15.125 7.95843 14.925 7.9251C14.725 7.89176 14.5333 7.83343 14.35 7.7501L4.15 17.9501C3.86667 18.2334 3.51667 18.3751 3.1 18.3751C2.68334 18.3751 2.33334 18.2334 2.05 17.9501Z",fill:"#0093B2"})})}function Hz(e){return I.jsx("svg",{...e,width:"26",height:"28",viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.jsx("path",{d:"M14.8333 16.6251C13.7329 16.6251 12.6325 16.253 11.6667 15.5801C9.73499 16.9338 7.26499 16.9338 5.33332 15.5801C4.36749 16.253 3.26707 16.6251 2.16666 16.6251H0.583324V18.2084H2.16666C3.25916 18.2084 4.33582 17.9313 5.33332 17.4246C6.31299 17.928 7.39856 18.1906 8.49999 18.1906C9.60143 18.1906 10.687 17.928 11.6667 17.4246C12.6642 17.9392 13.7408 18.2084 14.8333 18.2084H16.4167V16.6251H14.8333ZM2.12707 15.0417H2.16666C3.43332 15.0417 4.55749 14.3451 5.33332 13.4584C6.10916 14.3451 7.23332 15.0417 8.49999 15.0417C9.76666 15.0417 10.8908 14.3451 11.6667 13.4584C12.4425 14.3451 13.5667 15.0417 14.8333 15.0417H14.8729L16.3692 9.75338C16.4325 9.54755 16.4167 9.32588 16.3217 9.13589C16.2267 8.94588 16.0525 8.80338 15.8467 8.74005L14.8333 8.40755V4.75005C14.8333 3.87922 14.1208 3.16672 13.25 3.16672H10.875V0.791718H6.12499V3.16672H3.74999C2.87916 3.16672 2.16666 3.87922 2.16666 4.75005V8.40755L1.14541 8.74005C1.04388 8.77124 0.949607 8.8224 0.868125 8.89052C0.786644 8.95865 0.719597 9.04237 0.670922 9.13677C0.622248 9.23117 0.592927 9.33434 0.584681 9.44023C0.576436 9.54612 0.589433 9.65259 0.622908 9.75338L2.12707 15.0417ZM3.74999 4.75005H13.25V7.89297L8.49999 6.33338L3.74999 7.89297V4.75005Z",fill:"currentColor"})})}function Wz({system:e,classname:t}){switch(e){case"Autenticação":return I.jsx(sw,{className:t});case"Agendamento":return I.jsx(Pz,{className:t});case"Portal ADE":return I.jsx(Tz,{className:t});case"Granéis - Dashboard":return I.jsx(Oz,{className:t});case"Granéis - Fiscal":return I.jsx(Fz,{className:t});case"Granéis - Embarque":return I.jsx(Mz,{className:t});case"Armazém":return I.jsx(Lz,{className:t});case"Planejador":return I.jsx(Rz,{className:t});case"Granéis - Desembarque":return I.jsx(Vz,{className:t});case"Granéis - Recepção":return I.jsx(Nh,{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"DeskManager":return I.jsx(Dz,{className:t});case"Cargo Control":return I.jsx(Nz,{className:t});case"Coletor":return I.jsx($z,{className:t});case"Template":return I.jsx(Bz,{className:t});case"Integrações":return I.jsx(jz,{className:t});case"Eagle":return I.jsx(kz,{className:t});case"Equipamentos":return I.jsx(Gz,{className:t});case"Hatchlist":return I.jsx(Hz,{className:t});case"Hangfire Hatch list":return I.jsx(tg,{className:t});case"Hangfire DPW":return I.jsx(tg,{className:t});default:return I.jsx("span",{children:"?"})}}function Zz({onClick:e}){return I.jsx(Cd.Button,{onClick:e,children:I.jsx(ow,{className:"w-6 h-6"})})}function Xz({user:e,userTypeId:t,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:u,setTheme:l,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:C,nightThemeText:S,logoutText:A,isOpen:P,terminalName:M}){const R=["DPW","T32","BRC","ITACEL"];return I.jsx(Bs,{children:P&&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:D=>D.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(rg,{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(Yz,{children:I.jsx(xw,{className:"w-4 h-4"})}),I.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[I.jsxs(Ex,{onClick:()=>c("pt-br"),children:[I.jsx(Cw,{})," Navegar em português"]}),I.jsxs(Ex,{onClick:()=>c("en-us"),children:[I.jsx(ww,{})," Browse in English"]})]}),I.jsxs("div",{className:"flex justify-center items-center mb-4 gap-2",children:[t===2&&I.jsx("div",{className:"w-48",children:I.jsx(qi,{variant:"primary",onClick:f,children:I.jsxs("div",{className:"p-4",children:[I.jsxs("p",{className:"text-xs",children:["Terminal:"," ",I.jsx("b",{children:M??""})]}),I.jsx("p",{className:"text-xs",children:C})]})})}),i&&I.jsx("div",{className:"w-48",children:I.jsx(b2,{name:"tenant",label:"Cliente",options:R.map(D=>({value:D,label:D})),onChange:u,value:a?{value:a,label:a}:[]})})]}),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:[m," ",I.jsxs("span",{className:"text-brand-dark-gray",children:["(",v,")"]})]}),I.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:_z.sortBy(e.portais,["descricao"]).map((D,N)=>{const X=p===D.nome;return I.jsxs(Bs,{mode:"wait",children:["isOpen && (",I.jsxs(Ji.a,{href:D.endereco,initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{type:"tween",delay:N*(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":X,"bg-white dark:text-white dark:bg-brand-secondary-text text-brand hover:bg-brand-secondary dark:hover:bg-brand-secondary hover:text-white":!X}),children:I.jsx(Wz,{system:D.descricao,classname:"w-6 h-6"})}),I.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:D.nome})]},"portal-item-"+D.descricao),")"]},N)})})]}),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(zz,{isDarkMode:n,setIsDarkMode:r,setTheme:l}),I.jsx("span",{className:et({"text-brand-secondary":n,"text-brand-secondary-text":!n},"text-xs"),children:S})]}),I.jsxs("div",{onClick:h,className:"flex items-center gap-1 cursor-pointer",children:[I.jsx(uw,{}),I.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:A})]})]})]})})})},"user-menu-container")})}function zz({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),I.jsxs(z2,{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(Bs,{children:I.jsx("div",{className:"flex items-center w-full",children:e?I.jsx(lw,{className:"w-4 translate-x-5"}):I.jsx(Uz,{})})})]})}function Uz(){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 Yz({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 Ex({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 Jz({user:e,userTypeId:t,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:u,setTheme:l,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:C,nightThemeText:S,logoutText:A,isOpen:P,setOpen:M,terminalName:R}){function D(){M(X=>!X)}function N(){M(!1)}return I.jsxs(I.Fragment,{children:[I.jsx(Zz,{onClick:D}),I.jsx(js,{isOpen:P,close:N,children:I.jsx(Xz,{userTypeId:t,user:e,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:u,setTheme:l,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:C,nightThemeText:S,logoutText:A,isOpen:P,terminalName:R})})]})}var qz=process.env.NODE_ENV==="production";function Do(e,t){if(!qz){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function $h(){return $h=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},$h.apply(this,arguments)}function Kz(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 Ax(){var e=b.useContext(tl);return e||(process.env.NODE_ENV!=="production"?Do(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Do(!1)),e}var Qz=function(t){return t!==null&&typeof t=="object"};function eU(e){var t=Ax(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,u=t.unregisterField,l=Qz(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"?Do(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):Do(!1))),f||(process.env.NODE_ENV!=="production"?Do(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):Do(!1));var p=b.useMemo(function(){return i(f)},[i,f]);return[n(c),r(f),p]}var tU=b.forwardRef(function(e,t){var n=e.action,r=Kz(e,["action"]),i=n??"#",a=Ax(),u=a.handleReset,l=a.handleSubmit;return b.createElement("form",$h({onSubmit:l,ref:t,onReset:u,action:i},r))});tU.displayName="Form";const nU=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:u},{setValue:l,setTouched:c}]=eU(e),f=p=>{const m=i.type==="color"?p:p.target.value;l(m),n&&n(m)},h=()=>{c(!0),r&&r()};return I.jsx(I.Fragment,{children:I.jsx(Zb,{error:u,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};ke.Avatar=rg,ke.Backdrop=js,ke.BaseField=nU,ke.Button=qi,ke.Card=DS,ke.Checkbox=NS,ke.ColorPicker=Vb,ke.Dialog=Mj,ke.DualListBox=Gj,ke.ErrorMessage=hd,ke.Header=Hj,ke.HelperMessage=pd,ke.Input=Zb,ke.Label=xd,ke.Navbar=Cd,ke.Radio=qj,ke.Select=b2,ke.SideMenu=rX,ke.Spinner=dd,ke.Switch=kX,ke.Table=Cz,ke.TableAction=wz,ke.TablePagination=yz,ke.Tooltip=Ix,ke.UploadFile=Az,ke.UserMenu=Jz,Object.defineProperty(ke,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.21.2",
7
+ "version": "0.21.3",
8
8
  "license": "MIT",
9
9
  "description": "Biblioteca de componentes Hxtos",
10
10
  "type": "module",