@hxtos/hx-components 0.22.0 → 0.23.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 +79 -79
- package/dist/index.umd.js +1 -1
- package/dist/src/components/UserMenu/index.d.ts +2 -2
- package/package.json +3 -2
package/dist/index.es.js
CHANGED
|
@@ -28041,27 +28041,27 @@ function xte({ onClick: e }) {
|
|
|
28041
28041
|
}
|
|
28042
28042
|
function wte({
|
|
28043
28043
|
user: e,
|
|
28044
|
-
|
|
28045
|
-
|
|
28046
|
-
|
|
28047
|
-
|
|
28048
|
-
|
|
28049
|
-
|
|
28050
|
-
|
|
28051
|
-
|
|
28052
|
-
|
|
28053
|
-
|
|
28054
|
-
|
|
28055
|
-
|
|
28056
|
-
|
|
28057
|
-
|
|
28058
|
-
|
|
28059
|
-
|
|
28060
|
-
|
|
28061
|
-
|
|
28044
|
+
isDarkMode: t,
|
|
28045
|
+
setIsDarkMode: n,
|
|
28046
|
+
isDebuggMode: r,
|
|
28047
|
+
tenantValue: i,
|
|
28048
|
+
onTenantChange: a,
|
|
28049
|
+
setTheme: l,
|
|
28050
|
+
setLanguage: u,
|
|
28051
|
+
onSelectTerminal: c,
|
|
28052
|
+
logout: f,
|
|
28053
|
+
appNameText: h,
|
|
28054
|
+
availablePortalsText: p,
|
|
28055
|
+
clickToAccessText: m,
|
|
28056
|
+
clickToChangeTerminal: v,
|
|
28057
|
+
nightThemeText: C,
|
|
28058
|
+
logoutText: w,
|
|
28059
|
+
isOpen: I,
|
|
28060
|
+
terminalName: _,
|
|
28061
|
+
isMultiTerminal: F = !1
|
|
28062
28062
|
}) {
|
|
28063
28063
|
const L = ["DPW", "T32", "BRC", "ITACEL"];
|
|
28064
|
-
return /* @__PURE__ */ E.jsx(Yl, { children:
|
|
28064
|
+
return /* @__PURE__ */ E.jsx(Yl, { children: I && /* @__PURE__ */ E.jsx(
|
|
28065
28065
|
jo.div,
|
|
28066
28066
|
{
|
|
28067
28067
|
transition: { type: "spring" },
|
|
@@ -28081,55 +28081,55 @@ function wte({
|
|
|
28081
28081
|
/* @__PURE__ */ E.jsx("span", { className: " text-[0.625rem] text-brand-dark-gray pb-1.5", children: e == null ? void 0 : e.email }),
|
|
28082
28082
|
/* @__PURE__ */ E.jsx(Ete, { children: /* @__PURE__ */ E.jsx(jS, { className: "w-4 h-4" }) }),
|
|
28083
28083
|
/* @__PURE__ */ E.jsxs("div", { className: "pt-3 pb-3.5 space-x-2 flex", children: [
|
|
28084
|
-
/* @__PURE__ */ E.jsxs(Eb, { onClick: () =>
|
|
28084
|
+
/* @__PURE__ */ E.jsxs(Eb, { onClick: () => u("pt-br"), children: [
|
|
28085
28085
|
/* @__PURE__ */ E.jsx(kS, {}),
|
|
28086
28086
|
" Navegar em português"
|
|
28087
28087
|
] }),
|
|
28088
|
-
/* @__PURE__ */ E.jsxs(Eb, { onClick: () =>
|
|
28088
|
+
/* @__PURE__ */ E.jsxs(Eb, { onClick: () => u("en-us"), children: [
|
|
28089
28089
|
/* @__PURE__ */ E.jsx(GS, {}),
|
|
28090
28090
|
" Browse in English"
|
|
28091
28091
|
] })
|
|
28092
28092
|
] }),
|
|
28093
28093
|
/* @__PURE__ */ E.jsxs("div", { className: "flex justify-center items-center mb-4 gap-2", children: [
|
|
28094
|
-
|
|
28094
|
+
F && /* @__PURE__ */ E.jsx("div", { className: "w-48", children: /* @__PURE__ */ E.jsx(
|
|
28095
28095
|
qa,
|
|
28096
28096
|
{
|
|
28097
28097
|
variant: "primary",
|
|
28098
|
-
onClick:
|
|
28098
|
+
onClick: c,
|
|
28099
28099
|
children: /* @__PURE__ */ E.jsxs("div", { className: "p-4", children: [
|
|
28100
28100
|
/* @__PURE__ */ E.jsxs("p", { className: "text-xs", children: [
|
|
28101
28101
|
"Terminal:",
|
|
28102
28102
|
" ",
|
|
28103
|
-
/* @__PURE__ */ E.jsx("b", { children:
|
|
28103
|
+
/* @__PURE__ */ E.jsx("b", { children: _ ?? "" })
|
|
28104
28104
|
] }),
|
|
28105
|
-
/* @__PURE__ */ E.jsx("p", { className: "text-xs", children:
|
|
28105
|
+
/* @__PURE__ */ E.jsx("p", { className: "text-xs", children: v })
|
|
28106
28106
|
] })
|
|
28107
28107
|
}
|
|
28108
28108
|
) }),
|
|
28109
|
-
|
|
28109
|
+
r && /* @__PURE__ */ E.jsx("div", { className: "w-48", children: /* @__PURE__ */ E.jsx(
|
|
28110
28110
|
Jq,
|
|
28111
28111
|
{
|
|
28112
28112
|
name: "tenant",
|
|
28113
28113
|
label: "Cliente",
|
|
28114
28114
|
options: L.map((D) => ({ value: D, label: D })),
|
|
28115
|
-
onChange:
|
|
28116
|
-
value:
|
|
28115
|
+
onChange: a,
|
|
28116
|
+
value: i ? { value: i, label: i } : []
|
|
28117
28117
|
}
|
|
28118
28118
|
) })
|
|
28119
28119
|
] }),
|
|
28120
28120
|
/* @__PURE__ */ E.jsxs("div", { className: "w-full pt-3 pb-4 border-y", children: [
|
|
28121
28121
|
/* @__PURE__ */ E.jsxs("p", { className: "text-xs text-brand-text dark:text-white", children: [
|
|
28122
|
-
|
|
28122
|
+
p,
|
|
28123
28123
|
" ",
|
|
28124
28124
|
/* @__PURE__ */ E.jsxs("span", { className: "text-brand-dark-gray", children: [
|
|
28125
28125
|
"(",
|
|
28126
|
-
|
|
28126
|
+
m,
|
|
28127
28127
|
")"
|
|
28128
28128
|
] })
|
|
28129
28129
|
] }),
|
|
28130
28130
|
/* @__PURE__ */ E.jsx("div", { className: "grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60", children: yte.sortBy(e.portais, ["descricao"]).map(
|
|
28131
28131
|
(D, N) => {
|
|
28132
|
-
const z =
|
|
28132
|
+
const z = h === D.nome;
|
|
28133
28133
|
return /* @__PURE__ */ E.jsxs(Yl, { mode: "wait", children: [
|
|
28134
28134
|
"isOpen && (",
|
|
28135
28135
|
/* @__PURE__ */ E.jsxs(
|
|
@@ -28173,9 +28173,9 @@ function wte({
|
|
|
28173
28173
|
/* @__PURE__ */ E.jsx(
|
|
28174
28174
|
Ste,
|
|
28175
28175
|
{
|
|
28176
|
-
isDarkMode:
|
|
28177
|
-
setIsDarkMode:
|
|
28178
|
-
setTheme:
|
|
28176
|
+
isDarkMode: t,
|
|
28177
|
+
setIsDarkMode: n,
|
|
28178
|
+
setTheme: l
|
|
28179
28179
|
}
|
|
28180
28180
|
),
|
|
28181
28181
|
/* @__PURE__ */ E.jsx(
|
|
@@ -28183,23 +28183,23 @@ function wte({
|
|
|
28183
28183
|
{
|
|
28184
28184
|
className: Qe(
|
|
28185
28185
|
{
|
|
28186
|
-
"text-brand-secondary":
|
|
28187
|
-
"text-brand-secondary-text": !
|
|
28186
|
+
"text-brand-secondary": t,
|
|
28187
|
+
"text-brand-secondary-text": !t
|
|
28188
28188
|
},
|
|
28189
28189
|
"text-xs"
|
|
28190
28190
|
),
|
|
28191
|
-
children:
|
|
28191
|
+
children: C
|
|
28192
28192
|
}
|
|
28193
28193
|
)
|
|
28194
28194
|
] }),
|
|
28195
28195
|
/* @__PURE__ */ E.jsxs(
|
|
28196
28196
|
"div",
|
|
28197
28197
|
{
|
|
28198
|
-
onClick:
|
|
28198
|
+
onClick: f,
|
|
28199
28199
|
className: "flex items-center gap-1 cursor-pointer",
|
|
28200
28200
|
children: [
|
|
28201
28201
|
/* @__PURE__ */ E.jsx(RS, {}),
|
|
28202
|
-
/* @__PURE__ */ E.jsx("span", { className: "text-xs text-brand-dark-gray dark:text-brand-light-gray", children:
|
|
28202
|
+
/* @__PURE__ */ E.jsx("span", { className: "text-xs text-brand-dark-gray dark:text-brand-light-gray", children: w })
|
|
28203
28203
|
]
|
|
28204
28204
|
}
|
|
28205
28205
|
)
|
|
@@ -28279,56 +28279,56 @@ function Eb({ children: e, onClick: t }) {
|
|
|
28279
28279
|
}
|
|
28280
28280
|
function zte({
|
|
28281
28281
|
user: e,
|
|
28282
|
-
|
|
28283
|
-
|
|
28284
|
-
|
|
28285
|
-
|
|
28286
|
-
|
|
28287
|
-
|
|
28288
|
-
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
|
|
28295
|
-
|
|
28296
|
-
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28282
|
+
isDarkMode: t,
|
|
28283
|
+
setIsDarkMode: n,
|
|
28284
|
+
isDebuggMode: r,
|
|
28285
|
+
tenantValue: i,
|
|
28286
|
+
onTenantChange: a,
|
|
28287
|
+
setTheme: l,
|
|
28288
|
+
setLanguage: u,
|
|
28289
|
+
onSelectTerminal: c,
|
|
28290
|
+
logout: f,
|
|
28291
|
+
appNameText: h,
|
|
28292
|
+
availablePortalsText: p,
|
|
28293
|
+
clickToAccessText: m,
|
|
28294
|
+
clickToChangeTerminal: v,
|
|
28295
|
+
nightThemeText: C,
|
|
28296
|
+
logoutText: w,
|
|
28297
|
+
isOpen: I,
|
|
28298
|
+
setOpen: _,
|
|
28299
|
+
terminalName: F,
|
|
28300
|
+
isMultiTerminal: L = !1
|
|
28301
28301
|
}) {
|
|
28302
28302
|
function D() {
|
|
28303
|
-
|
|
28303
|
+
_((z) => !z);
|
|
28304
28304
|
}
|
|
28305
28305
|
function N() {
|
|
28306
|
-
|
|
28306
|
+
_(!1);
|
|
28307
28307
|
}
|
|
28308
28308
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
28309
28309
|
/* @__PURE__ */ E.jsx(xte, { onClick: D }),
|
|
28310
|
-
/* @__PURE__ */ E.jsx(Fh, { isOpen:
|
|
28310
|
+
/* @__PURE__ */ E.jsx(Fh, { isOpen: I, close: N, children: /* @__PURE__ */ E.jsx(
|
|
28311
28311
|
wte,
|
|
28312
28312
|
{
|
|
28313
|
-
userTypeId: t,
|
|
28314
28313
|
user: e,
|
|
28315
|
-
isDarkMode:
|
|
28316
|
-
setIsDarkMode:
|
|
28317
|
-
isDebuggMode:
|
|
28318
|
-
tenantValue:
|
|
28319
|
-
onTenantChange:
|
|
28320
|
-
setTheme:
|
|
28321
|
-
setLanguage:
|
|
28322
|
-
onSelectTerminal:
|
|
28323
|
-
logout:
|
|
28324
|
-
appNameText:
|
|
28325
|
-
availablePortalsText:
|
|
28326
|
-
clickToAccessText:
|
|
28327
|
-
clickToChangeTerminal:
|
|
28328
|
-
nightThemeText:
|
|
28329
|
-
logoutText:
|
|
28330
|
-
isOpen:
|
|
28331
|
-
terminalName:
|
|
28314
|
+
isDarkMode: t,
|
|
28315
|
+
setIsDarkMode: n,
|
|
28316
|
+
isDebuggMode: r,
|
|
28317
|
+
tenantValue: i,
|
|
28318
|
+
onTenantChange: a,
|
|
28319
|
+
setTheme: l,
|
|
28320
|
+
setLanguage: u,
|
|
28321
|
+
onSelectTerminal: c,
|
|
28322
|
+
logout: f,
|
|
28323
|
+
appNameText: h,
|
|
28324
|
+
availablePortalsText: p,
|
|
28325
|
+
clickToAccessText: m,
|
|
28326
|
+
clickToChangeTerminal: v,
|
|
28327
|
+
nightThemeText: C,
|
|
28328
|
+
logoutText: w,
|
|
28329
|
+
isOpen: I,
|
|
28330
|
+
terminalName: F,
|
|
28331
|
+
isMultiTerminal: L
|
|
28332
28332
|
}
|
|
28333
28333
|
) })
|
|
28334
28334
|
] });
|
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=Yy(function(){return ct(_,Ee+"return "+se).apply(n,V)});if(Ke.source=se,$1(Ke))throw Ke;return Ke}function mee(o){return ht(o).toLowerCase()}function vee(o){return ht(o).toUpperCase()}function bee(o,s,d){if(o=ht(o),o&&(d||s===n))return i9(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=o9(g,w),V=a9(g,w)+1;return Qr(g,_,V).join("")}function yee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,l9(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=a9(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(Ri,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=o9(g,Wn(s));return Qr(g,w).join("")}function xee(o,s){var d=Te,g=Ge;if(Pt(s)){var w="separator"in s?s.separator:w;d="length"in s?Ye(s.length):d,g="omission"in s?yn(s.omission):g}o=ht(o);var _=o.length;if(ko(o)){var V=Wn(o);_=V.length}if(d>=_)return o;var $=d-jo(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-$),B1(w)){if(o.slice($).search(w)){var te,re=G;for(w.global||(w=t1(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 wee(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,KU):o}var See=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),G1=J9("toUpperCase");function Uy(o,s,d){return o=ht(o),s=d?n:s,s===n?XU(o)?eY(o):NU(o):o.match(s)||[]}var Yy=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return $1(d)?d:new Ze(d)}}),Iee=_r(function(o,s){return _n(s,function(d){d=ir(d),Er(o,d,D1(o[d],o))}),o});function Eee(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 Aee(o){return KY(On(o,p))}function H1(o){return function(){return o}}function _ee(o,s){return o==null||o!==o?s:o}var Pee=q9(),Tee=q9(!0);function fn(o){return o}function W1(o){return P9(typeof o=="function"?o:On(o,p))}function Oee(o){return O9(On(o,p))}function Fee(o,s){return F9(o,On(s,p))}var Mee=Qe(function(o,s){return function(d){return ls(d,o,s)}}),Ree=Qe(function(o,s){return function(d){return ls(o,d,s)}});function Z1(o,s,d){var g=Gt(s),w=wu(s,g);d==null&&!(Pt(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=wu(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 Lee(){return Wt._===this&&(Wt._=aY),this}function X1(){}function Vee(o){return o=Ye(o),Qe(function(s){return M9(s,o)})}var Dee=S1(At),Nee=S1(Q3),$ee=S1(Uh);function Jy(o){return O1(o)?Yh(ir(o)):pJ(o)}function Bee(o){return function(s){return o==null?n:ki(o,s)}}var kee=ey(),jee=ey(!0);function z1(){return[]}function U1(){return!1}function Gee(){return{}}function Hee(){return""}function Wee(){return!0}function Zee(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=qh(g,s);++d<o;)s(d);return w}function Xee(o){return Ue(o)?At(o,ir):Cn(o)?[o]:ln(my(ht(o)))}function zee(o){var s=++iY;return ht(o)+s}var Uee=Pu(function(o,s){return o+s},0),Yee=I1("ceil"),Jee=Pu(function(o,s){return o/s},1),Kee=I1("floor");function qee(o){return o&&o.length?xu(o,fn,u1):n}function Qee(o,s){return o&&o.length?xu(o,Fe(s,2),u1):n}function ete(o){return n9(o,fn)}function tte(o,s){return n9(o,Fe(s,2))}function nte(o){return o&&o.length?xu(o,fn,h1):n}function rte(o,s){return o&&o.length?xu(o,Fe(s,2),h1):n}var ite=Pu(function(o,s){return o*s},1),ote=I1("round"),ate=Pu(function(o,s){return o-s},0);function ste(o){return o&&o.length?Kh(o,fn):0}function lte(o,s){return o&&o.length?Kh(o,Fe(s,2)):0}return I.after=Oq,I.ary=_y,I.assign=vQ,I.assignIn=jy,I.assignInWith=ju,I.assignWith=bQ,I.at=yQ,I.before=Py,I.bind=D1,I.bindAll=Iee,I.bindKey=Ty,I.castArray=Gq,I.chain=Iy,I.chunk=KJ,I.compact=qJ,I.concat=QJ,I.cond=Eee,I.conforms=Aee,I.constant=H1,I.countBy=sq,I.create=CQ,I.curry=Oy,I.curryRight=Fy,I.debounce=My,I.defaults=xQ,I.defaultsDeep=wQ,I.defer=Fq,I.delay=Mq,I.difference=eK,I.differenceBy=tK,I.differenceWith=nK,I.drop=rK,I.dropRight=iK,I.dropRightWhile=oK,I.dropWhile=aK,I.fill=sK,I.filter=uq,I.flatMap=dq,I.flatMapDeep=hq,I.flatMapDepth=pq,I.flatten=Cy,I.flattenDeep=lK,I.flattenDepth=uK,I.flip=Rq,I.flow=Pee,I.flowRight=Tee,I.fromPairs=cK,I.functions=TQ,I.functionsIn=OQ,I.groupBy=gq,I.initial=dK,I.intersection=hK,I.intersectionBy=pK,I.intersectionWith=gK,I.invert=MQ,I.invertBy=RQ,I.invokeMap=vq,I.iteratee=W1,I.keyBy=bq,I.keys=Gt,I.keysIn=cn,I.map=Vu,I.mapKeys=VQ,I.mapValues=DQ,I.matches=Oee,I.matchesProperty=Fee,I.memoize=Nu,I.merge=NQ,I.mergeWith=Gy,I.method=Mee,I.methodOf=Ree,I.mixin=Z1,I.negate=$u,I.nthArg=Vee,I.omit=$Q,I.omitBy=BQ,I.once=Lq,I.orderBy=yq,I.over=Dee,I.overArgs=Vq,I.overEvery=Nee,I.overSome=$ee,I.partial=N1,I.partialRight=Ry,I.partition=Cq,I.pick=kQ,I.pickBy=Hy,I.property=Jy,I.propertyOf=Bee,I.pull=yK,I.pullAll=wy,I.pullAllBy=CK,I.pullAllWith=xK,I.pullAt=wK,I.range=kee,I.rangeRight=jee,I.rearg=Dq,I.reject=Sq,I.remove=SK,I.rest=Nq,I.reverse=L1,I.sampleSize=Eq,I.set=GQ,I.setWith=HQ,I.shuffle=Aq,I.slice=IK,I.sortBy=Tq,I.sortedUniq=FK,I.sortedUniqBy=MK,I.split=dee,I.spread=$q,I.tail=RK,I.take=LK,I.takeRight=VK,I.takeRightWhile=DK,I.takeWhile=NK,I.tap=qK,I.throttle=Bq,I.thru=Lu,I.toArray=$y,I.toPairs=Wy,I.toPairsIn=Zy,I.toPath=Xee,I.toPlainObject=ky,I.transform=WQ,I.unary=kq,I.union=$K,I.unionBy=BK,I.unionWith=kK,I.uniq=jK,I.uniqBy=GK,I.uniqWith=HK,I.unset=ZQ,I.unzip=V1,I.unzipWith=Sy,I.update=XQ,I.updateWith=zQ,I.values=Ko,I.valuesIn=UQ,I.without=WK,I.words=Uy,I.wrap=jq,I.xor=ZK,I.xorBy=XK,I.xorWith=zK,I.zip=UK,I.zipObject=YK,I.zipObjectDeep=JK,I.zipWith=KK,I.entries=Wy,I.entriesIn=Zy,I.extend=jy,I.extendWith=ju,Z1(I,I),I.add=Uee,I.attempt=Yy,I.camelCase=qQ,I.capitalize=Xy,I.ceil=Yee,I.clamp=YQ,I.clone=Hq,I.cloneDeep=Zq,I.cloneDeepWith=Xq,I.cloneWith=Wq,I.conformsTo=zq,I.deburr=zy,I.defaultTo=_ee,I.divide=Jee,I.endsWith=QQ,I.eq=Xn,I.escape=eee,I.escapeRegExp=tee,I.every=lq,I.find=cq,I.findIndex=by,I.findKey=SQ,I.findLast=fq,I.findLastIndex=yy,I.findLastKey=IQ,I.floor=Kee,I.forEach=Ey,I.forEachRight=Ay,I.forIn=EQ,I.forInRight=AQ,I.forOwn=_Q,I.forOwnRight=PQ,I.get=k1,I.gt=Uq,I.gte=Yq,I.has=FQ,I.hasIn=j1,I.head=xy,I.identity=fn,I.includes=mq,I.indexOf=fK,I.inRange=JQ,I.invoke=LQ,I.isArguments=Hi,I.isArray=Ue,I.isArrayBuffer=Jq,I.isArrayLike=un,I.isArrayLikeObject=Lt,I.isBoolean=Kq,I.isBuffer=ei,I.isDate=qq,I.isElement=Qq,I.isEmpty=eQ,I.isEqual=tQ,I.isEqualWith=nQ,I.isError=$1,I.isFinite=rQ,I.isFunction=Tr,I.isInteger=Ly,I.isLength=Bu,I.isMap=Vy,I.isMatch=iQ,I.isMatchWith=oQ,I.isNaN=aQ,I.isNative=sQ,I.isNil=uQ,I.isNull=lQ,I.isNumber=Dy,I.isObject=Pt,I.isObjectLike=Ft,I.isPlainObject=ps,I.isRegExp=B1,I.isSafeInteger=cQ,I.isSet=Ny,I.isString=ku,I.isSymbol=Cn,I.isTypedArray=Jo,I.isUndefined=fQ,I.isWeakMap=dQ,I.isWeakSet=hQ,I.join=mK,I.kebabCase=nee,I.last=Mn,I.lastIndexOf=vK,I.lowerCase=ree,I.lowerFirst=iee,I.lt=pQ,I.lte=gQ,I.max=qee,I.maxBy=Qee,I.mean=ete,I.meanBy=tte,I.min=nte,I.minBy=rte,I.stubArray=z1,I.stubFalse=U1,I.stubObject=Gee,I.stubString=Hee,I.stubTrue=Wee,I.multiply=ite,I.nth=bK,I.noConflict=Lee,I.noop=X1,I.now=Du,I.pad=oee,I.padEnd=aee,I.padStart=see,I.parseInt=lee,I.random=KQ,I.reduce=xq,I.reduceRight=wq,I.repeat=uee,I.replace=cee,I.result=jQ,I.round=ote,I.runInContext=k,I.sample=Iq,I.size=_q,I.snakeCase=fee,I.some=Pq,I.sortedIndex=EK,I.sortedIndexBy=AK,I.sortedIndexOf=_K,I.sortedLastIndex=PK,I.sortedLastIndexBy=TK,I.sortedLastIndexOf=OK,I.startCase=hee,I.startsWith=pee,I.subtract=ate,I.sum=ste,I.sumBy=lte,I.template=gee,I.times=Zee,I.toFinite=Or,I.toInteger=Ye,I.toLength=By,I.toLower=mee,I.toNumber=Rn,I.toSafeInteger=mQ,I.toString=ht,I.toUpper=vee,I.trim=bee,I.trimEnd=yee,I.trimStart=Cee,I.truncate=xee,I.unescape=wee,I.uniqueId=zee,I.upperCase=See,I.upperFirst=G1,I.each=Ey,I.eachRight=Ay,I.first=xy,Z1(I,function(){var o={};return nr(I,function(s,d){pt.call(I.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),I.VERSION=r,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),_n(["drop","take"],function(o,s){nt.prototype[o]=function(d){d=d===n?1:kt(Ye(d),0);var g=this.__filtered__&&!s?new nt(this):this.clone();return g.__filtered__?g.__takeCount__=Kt(d,g.__takeCount__):g.__views__.push({size:Kt(d,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==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 ls(d,o,s)})}),nt.prototype.reject=function(o){return this.filter($u(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=I[g?"take"+(s=="last"?"Right":""):s],_=g||/^find/.test(s);w&&(I.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(I,zr([tt],$));return g&&ge?it[0]:it};re&&d&&typeof te=="function"&&te.length!=1&&(G=re=!1);var ge=this.__chain__,Ee=!!this.__actions__.length,Ve=_&&!ge,Ke=G&&!Ee;if(!_&&re){V=Ke?V:new nt(this);var De=o.apply(V,$);return De.__actions__.push({func:Lu,args:[se],thisArg:n}),new Tn(De,ge)}return Ve&&Ke?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=au[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var _=this.value();return s.apply(Ue(_)?_:[],w)}return this[d](function(V){return s.apply(Ue(V)?V:[],w)})}}),nr(nt.prototype,function(o,s){var d=I[s];if(d){var g=d.name+"";pt.call(Zo,g)||(Zo[g]=[]),Zo[g].push({name:s,func:d})}}),Zo[_u(n,P).name]=[{name:"wrapper",func:n}],nt.prototype.clone=wY,nt.prototype.reverse=SY,nt.prototype.value=IY,I.prototype.at=QK,I.prototype.chain=eq,I.prototype.commit=tq,I.prototype.next=nq,I.prototype.plant=iq,I.prototype.reverse=oq,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=aq,I.prototype.first=I.prototype.head,ts&&(I.prototype[ts]=rq),I},Go=tY();Vi?((Vi.exports=Go)._=Go,Wh._=Go):Wt._=Go}).call(or)}(eu,eu.exports);var Gz=eu.exports;function Hz({system:e,classname:t}){switch(e){case"Autenticação":return A.jsx(l4,{className:t});case"Agendamento":return A.jsx(O4,{className:t});case"Portal ADE":return A.jsx($4,{className:t});case"Granéis - Dashboard":return A.jsx(L4,{className:t});case"Granéis - Fiscal":return A.jsx(R4,{className:t});case"Granéis - Embarque":return A.jsx(_4,{className:t});case"Armazém":return A.jsx(I4,{className:t});case"Planejador":return A.jsx(F4,{className:t});case"Granéis - Desembarque":return A.jsx(V4,{className:t});case"Granéis - Recepção Exportação":return A.jsx(tp,{className:t});case"Granéis - Recepção Importação":return A.jsx(tp,{className:t});case"Hubspot":return A.jsx(B4,{className:t});case"Cargo Control":return A.jsx(N4,{className:t});case"Coletor":return A.jsx(M4,{className:t});case"Integrações":return A.jsx(D4,{className:t});case"Eagle":return A.jsx(T4,{className:t});case"Equipamentos":return A.jsx(P4,{className:t});case"Hatchlist":return A.jsx(r4,{className:t});case"Integrações Job":return A.jsx(zu,{className:t});case"Integrações Job HatchList":return A.jsx(zu,{className:t});case"Integrações Job DPW":return A.jsx(zu,{className:t});default:return A.jsx("span",{children:"?"})}}function Wz({onClick:e}){return A.jsx(wd.Button,{onClick:e,children:A.jsx(a4,{className:"w-6 h-6"})})}function Zz({user:e,userTypeId:t,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:l,setTheme:u,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:x,nightThemeText:S,logoutText:E,isOpen:P,terminalName:M}){const L=["DPW","T32","BRC","ITACEL"];return A.jsx(Bs,{children:P&&A.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:A.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:A.jsx("div",{className:"w-full px-3",children:A.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[A.jsx(rp,{size:"md"}),A.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),A.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),A.jsx(Uz,{children:A.jsx(x4,{className:"w-4 h-4"})}),A.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[A.jsxs(E3,{onClick:()=>c("pt-br"),children:[A.jsx(w4,{})," Navegar em português"]}),A.jsxs(E3,{onClick:()=>c("en-us"),children:[A.jsx(S4,{})," Browse in English"]})]}),A.jsxs("div",{className:"flex justify-center items-center mb-4 gap-2",children:[t===2&&A.jsx("div",{className:"w-48",children:A.jsx(Ki,{variant:"primary",onClick:f,children:A.jsxs("div",{className:"p-4",children:[A.jsxs("p",{className:"text-xs",children:["Terminal:"," ",A.jsx("b",{children:M??""})]}),A.jsx("p",{className:"text-xs",children:x})]})})}),i&&A.jsx("div",{className:"w-48",children:A.jsx(b5,{name:"tenant",label:"Cliente",options:L.map(D=>({value:D,label:D})),onChange:l,value:a?{value:a,label:a}:[]})})]}),A.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[A.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[m," ",A.jsxs("span",{className:"text-brand-dark-gray",children:["(",v,")"]})]}),A.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:Gz.sortBy(e.portais,["descricao"]).map((D,N)=>{const z=p===D.nome;return A.jsxs(Bs,{mode:"wait",children:["isOpen && (",A.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:[A.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:A.jsx(Hz,{system:D.descricao,classname:"w-6 h-6"})}),A.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:D.nome})]},"portal-item-"+D.descricao),")"]},N)})})]}),A.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[A.jsxs("div",{className:"flex items-center gap-0.5",children:[A.jsx(Xz,{isDarkMode:n,setIsDarkMode:r,setTheme:u}),A.jsx("span",{className:et({"text-brand-secondary":n,"text-brand-secondary-text":!n},"text-xs"),children:S})]}),A.jsxs("div",{onClick:h,className:"flex items-center gap-1 cursor-pointer",children:[A.jsx(u4,{}),A.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:E})]})]})]})})})},"user-menu-container")})}function Xz({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),A.jsxs(z5,{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:[A.jsx("span",{className:"sr-only",children:"Dark theme?"}),A.jsx(Bs,{children:A.jsx("div",{className:"flex items-center w-full",children:e?A.jsx(c4,{className:"w-4 translate-x-5"}):A.jsx(zz,{})})})]})}function zz(){return A.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:A.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 Uz({children:e}){return A.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 E3({children:e,onClick:t}){return A.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 Yz({user:e,userTypeId:t,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:l,setTheme:u,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:x,nightThemeText:S,logoutText:E,isOpen:P,setOpen:M,terminalName:L}){function D(){M(z=>!z)}function N(){M(!1)}return A.jsxs(A.Fragment,{children:[A.jsx(Wz,{onClick:D}),A.jsx(ks,{isOpen:P,close:N,children:A.jsx(Zz,{userTypeId:t,user:e,isDarkMode:n,setIsDarkMode:r,isDebuggMode:i,tenantValue:a,onTenantChange:l,setTheme:u,setLanguage:c,onSelectTerminal:f,logout:h,appNameText:p,availablePortalsText:m,clickToAccessText:v,clickToChangeTerminal:x,nightThemeText:S,logoutText:E,isOpen:P,terminalName:L})})]})}var Jz=process.env.NODE_ENV==="production";function Do(e,t){if(!Jz){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 tu=b.createContext(void 0);tu.displayName="FormikContext",tu.Provider,tu.Consumer;function A3(){var e=b.useContext(tu);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 Qz(e){var t=A3(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,l=t.unregisterField,u=qz(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"?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 eU=b.forwardRef(function(e,t){var n=e.action,r=Kz(e,["action"]),i=n??"#",a=A3(),l=a.handleReset,u=a.handleSubmit;return b.createElement("form",$h({onSubmit:u,ref:t,onReset:l,action:i},r))});eU.displayName="Form";const tU=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:l},{setValue:u,setTouched:c}]=Qz(e),f=p=>{const m=i.type==="color"?p:p.target.value;u(m),n&&n(m)},h=()=>{c(!0),r&&r()};return A.jsx(A.Fragment,{children:A.jsx(Z2,{error:l,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};je.Avatar=rp,je.Backdrop=ks,je.BaseField=tU,je.Button=Ki,je.Card=K7,je.Checkbox=q7,je.ColorPicker=V2,je.Dialog=zk,je.DualListBox=rj,je.ErrorMessage=pd,je.Header=ij,je.HelperMessage=gd,je.Input=Z2,je.Label=xd,je.Navbar=wd,je.Radio=dj,je.Select=b5,je.SideMenu=bX,je.Spinner=hd,je.Switch=nz,je.Table=Dz,je.TableAction=Nz,je.TablePagination=Lz,je.Tooltip=I3,je.UploadFile=jz,je.UserMenu=Yz,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})});
|
|
217
|
+
}`;var Ke=Yy(function(){return ct(_,Ee+"return "+se).apply(n,V)});if(Ke.source=se,$1(Ke))throw Ke;return Ke}function mee(o){return ht(o).toLowerCase()}function vee(o){return ht(o).toUpperCase()}function bee(o,s,d){if(o=ht(o),o&&(d||s===n))return i9(o);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=Wn(s),_=o9(g,w),V=a9(g,w)+1;return Qr(g,_,V).join("")}function yee(o,s,d){if(o=ht(o),o&&(d||s===n))return o.slice(0,l9(o)+1);if(!o||!(s=yn(s)))return o;var g=Wn(o),w=a9(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(Ri,"");if(!o||!(s=yn(s)))return o;var g=Wn(o),w=o9(g,Wn(s));return Qr(g,w).join("")}function xee(o,s){var d=Te,g=Ge;if(Pt(s)){var w="separator"in s?s.separator:w;d="length"in s?Ye(s.length):d,g="omission"in s?yn(s.omission):g}o=ht(o);var _=o.length;if(ko(o)){var V=Wn(o);_=V.length}if(d>=_)return o;var $=d-jo(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-$),B1(w)){if(o.slice($).search(w)){var te,re=G;for(w.global||(w=t1(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 wee(o){return o=ht(o),o&&wr.test(o)?o.replace(Jt,KU):o}var See=Uo(function(o,s,d){return o+(d?" ":"")+s.toUpperCase()}),G1=J9("toUpperCase");function Uy(o,s,d){return o=ht(o),s=d?n:s,s===n?XU(o)?eY(o):NU(o):o.match(s)||[]}var Yy=Qe(function(o,s){try{return vn(o,n,s)}catch(d){return $1(d)?d:new Ze(d)}}),Iee=_r(function(o,s){return _n(s,function(d){d=ir(d),Er(o,d,D1(o[d],o))}),o});function Eee(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 Aee(o){return KY(On(o,p))}function H1(o){return function(){return o}}function _ee(o,s){return o==null||o!==o?s:o}var Pee=q9(),Tee=q9(!0);function fn(o){return o}function W1(o){return P9(typeof o=="function"?o:On(o,p))}function Oee(o){return O9(On(o,p))}function Fee(o,s){return F9(o,On(s,p))}var Mee=Qe(function(o,s){return function(d){return ls(d,o,s)}}),Ree=Qe(function(o,s){return function(d){return ls(o,d,s)}});function Z1(o,s,d){var g=Gt(s),w=wu(s,g);d==null&&!(Pt(s)&&(w.length||!g.length))&&(d=s,s=o,o=this,w=wu(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 Lee(){return Wt._===this&&(Wt._=aY),this}function X1(){}function Vee(o){return o=Ye(o),Qe(function(s){return M9(s,o)})}var Dee=S1(At),Nee=S1(Q3),$ee=S1(Uh);function Jy(o){return O1(o)?Yh(ir(o)):pJ(o)}function Bee(o){return function(s){return o==null?n:ki(o,s)}}var kee=ey(),jee=ey(!0);function z1(){return[]}function U1(){return!1}function Gee(){return{}}function Hee(){return""}function Wee(){return!0}function Zee(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=qh(g,s);++d<o;)s(d);return w}function Xee(o){return Ue(o)?At(o,ir):Cn(o)?[o]:ln(my(ht(o)))}function zee(o){var s=++iY;return ht(o)+s}var Uee=Pu(function(o,s){return o+s},0),Yee=I1("ceil"),Jee=Pu(function(o,s){return o/s},1),Kee=I1("floor");function qee(o){return o&&o.length?xu(o,fn,u1):n}function Qee(o,s){return o&&o.length?xu(o,Fe(s,2),u1):n}function ete(o){return n9(o,fn)}function tte(o,s){return n9(o,Fe(s,2))}function nte(o){return o&&o.length?xu(o,fn,h1):n}function rte(o,s){return o&&o.length?xu(o,Fe(s,2),h1):n}var ite=Pu(function(o,s){return o*s},1),ote=I1("round"),ate=Pu(function(o,s){return o-s},0);function ste(o){return o&&o.length?Kh(o,fn):0}function lte(o,s){return o&&o.length?Kh(o,Fe(s,2)):0}return I.after=Oq,I.ary=_y,I.assign=vQ,I.assignIn=jy,I.assignInWith=ju,I.assignWith=bQ,I.at=yQ,I.before=Py,I.bind=D1,I.bindAll=Iee,I.bindKey=Ty,I.castArray=Gq,I.chain=Iy,I.chunk=KJ,I.compact=qJ,I.concat=QJ,I.cond=Eee,I.conforms=Aee,I.constant=H1,I.countBy=sq,I.create=CQ,I.curry=Oy,I.curryRight=Fy,I.debounce=My,I.defaults=xQ,I.defaultsDeep=wQ,I.defer=Fq,I.delay=Mq,I.difference=eK,I.differenceBy=tK,I.differenceWith=nK,I.drop=rK,I.dropRight=iK,I.dropRightWhile=oK,I.dropWhile=aK,I.fill=sK,I.filter=uq,I.flatMap=dq,I.flatMapDeep=hq,I.flatMapDepth=pq,I.flatten=Cy,I.flattenDeep=lK,I.flattenDepth=uK,I.flip=Rq,I.flow=Pee,I.flowRight=Tee,I.fromPairs=cK,I.functions=TQ,I.functionsIn=OQ,I.groupBy=gq,I.initial=dK,I.intersection=hK,I.intersectionBy=pK,I.intersectionWith=gK,I.invert=MQ,I.invertBy=RQ,I.invokeMap=vq,I.iteratee=W1,I.keyBy=bq,I.keys=Gt,I.keysIn=cn,I.map=Vu,I.mapKeys=VQ,I.mapValues=DQ,I.matches=Oee,I.matchesProperty=Fee,I.memoize=Nu,I.merge=NQ,I.mergeWith=Gy,I.method=Mee,I.methodOf=Ree,I.mixin=Z1,I.negate=$u,I.nthArg=Vee,I.omit=$Q,I.omitBy=BQ,I.once=Lq,I.orderBy=yq,I.over=Dee,I.overArgs=Vq,I.overEvery=Nee,I.overSome=$ee,I.partial=N1,I.partialRight=Ry,I.partition=Cq,I.pick=kQ,I.pickBy=Hy,I.property=Jy,I.propertyOf=Bee,I.pull=yK,I.pullAll=wy,I.pullAllBy=CK,I.pullAllWith=xK,I.pullAt=wK,I.range=kee,I.rangeRight=jee,I.rearg=Dq,I.reject=Sq,I.remove=SK,I.rest=Nq,I.reverse=L1,I.sampleSize=Eq,I.set=GQ,I.setWith=HQ,I.shuffle=Aq,I.slice=IK,I.sortBy=Tq,I.sortedUniq=FK,I.sortedUniqBy=MK,I.split=dee,I.spread=$q,I.tail=RK,I.take=LK,I.takeRight=VK,I.takeRightWhile=DK,I.takeWhile=NK,I.tap=qK,I.throttle=Bq,I.thru=Lu,I.toArray=$y,I.toPairs=Wy,I.toPairsIn=Zy,I.toPath=Xee,I.toPlainObject=ky,I.transform=WQ,I.unary=kq,I.union=$K,I.unionBy=BK,I.unionWith=kK,I.uniq=jK,I.uniqBy=GK,I.uniqWith=HK,I.unset=ZQ,I.unzip=V1,I.unzipWith=Sy,I.update=XQ,I.updateWith=zQ,I.values=Ko,I.valuesIn=UQ,I.without=WK,I.words=Uy,I.wrap=jq,I.xor=ZK,I.xorBy=XK,I.xorWith=zK,I.zip=UK,I.zipObject=YK,I.zipObjectDeep=JK,I.zipWith=KK,I.entries=Wy,I.entriesIn=Zy,I.extend=jy,I.extendWith=ju,Z1(I,I),I.add=Uee,I.attempt=Yy,I.camelCase=qQ,I.capitalize=Xy,I.ceil=Yee,I.clamp=YQ,I.clone=Hq,I.cloneDeep=Zq,I.cloneDeepWith=Xq,I.cloneWith=Wq,I.conformsTo=zq,I.deburr=zy,I.defaultTo=_ee,I.divide=Jee,I.endsWith=QQ,I.eq=Xn,I.escape=eee,I.escapeRegExp=tee,I.every=lq,I.find=cq,I.findIndex=by,I.findKey=SQ,I.findLast=fq,I.findLastIndex=yy,I.findLastKey=IQ,I.floor=Kee,I.forEach=Ey,I.forEachRight=Ay,I.forIn=EQ,I.forInRight=AQ,I.forOwn=_Q,I.forOwnRight=PQ,I.get=k1,I.gt=Uq,I.gte=Yq,I.has=FQ,I.hasIn=j1,I.head=xy,I.identity=fn,I.includes=mq,I.indexOf=fK,I.inRange=JQ,I.invoke=LQ,I.isArguments=Hi,I.isArray=Ue,I.isArrayBuffer=Jq,I.isArrayLike=un,I.isArrayLikeObject=Lt,I.isBoolean=Kq,I.isBuffer=ei,I.isDate=qq,I.isElement=Qq,I.isEmpty=eQ,I.isEqual=tQ,I.isEqualWith=nQ,I.isError=$1,I.isFinite=rQ,I.isFunction=Tr,I.isInteger=Ly,I.isLength=Bu,I.isMap=Vy,I.isMatch=iQ,I.isMatchWith=oQ,I.isNaN=aQ,I.isNative=sQ,I.isNil=uQ,I.isNull=lQ,I.isNumber=Dy,I.isObject=Pt,I.isObjectLike=Ft,I.isPlainObject=ps,I.isRegExp=B1,I.isSafeInteger=cQ,I.isSet=Ny,I.isString=ku,I.isSymbol=Cn,I.isTypedArray=Jo,I.isUndefined=fQ,I.isWeakMap=dQ,I.isWeakSet=hQ,I.join=mK,I.kebabCase=nee,I.last=Mn,I.lastIndexOf=vK,I.lowerCase=ree,I.lowerFirst=iee,I.lt=pQ,I.lte=gQ,I.max=qee,I.maxBy=Qee,I.mean=ete,I.meanBy=tte,I.min=nte,I.minBy=rte,I.stubArray=z1,I.stubFalse=U1,I.stubObject=Gee,I.stubString=Hee,I.stubTrue=Wee,I.multiply=ite,I.nth=bK,I.noConflict=Lee,I.noop=X1,I.now=Du,I.pad=oee,I.padEnd=aee,I.padStart=see,I.parseInt=lee,I.random=KQ,I.reduce=xq,I.reduceRight=wq,I.repeat=uee,I.replace=cee,I.result=jQ,I.round=ote,I.runInContext=k,I.sample=Iq,I.size=_q,I.snakeCase=fee,I.some=Pq,I.sortedIndex=EK,I.sortedIndexBy=AK,I.sortedIndexOf=_K,I.sortedLastIndex=PK,I.sortedLastIndexBy=TK,I.sortedLastIndexOf=OK,I.startCase=hee,I.startsWith=pee,I.subtract=ate,I.sum=ste,I.sumBy=lte,I.template=gee,I.times=Zee,I.toFinite=Or,I.toInteger=Ye,I.toLength=By,I.toLower=mee,I.toNumber=Rn,I.toSafeInteger=mQ,I.toString=ht,I.toUpper=vee,I.trim=bee,I.trimEnd=yee,I.trimStart=Cee,I.truncate=xee,I.unescape=wee,I.uniqueId=zee,I.upperCase=See,I.upperFirst=G1,I.each=Ey,I.eachRight=Ay,I.first=xy,Z1(I,function(){var o={};return nr(I,function(s,d){pt.call(I.prototype,d)||(o[d]=s)}),o}(),{chain:!1}),I.VERSION=r,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),_n(["drop","take"],function(o,s){nt.prototype[o]=function(d){d=d===n?1:kt(Ye(d),0);var g=this.__filtered__&&!s?new nt(this):this.clone();return g.__filtered__?g.__takeCount__=Kt(d,g.__takeCount__):g.__views__.push({size:Kt(d,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==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 ls(d,o,s)})}),nt.prototype.reject=function(o){return this.filter($u(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=I[g?"take"+(s=="last"?"Right":""):s],_=g||/^find/.test(s);w&&(I.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(I,zr([tt],$));return g&&ge?it[0]:it};re&&d&&typeof te=="function"&&te.length!=1&&(G=re=!1);var ge=this.__chain__,Ee=!!this.__actions__.length,Ve=_&&!ge,Ke=G&&!Ee;if(!_&&re){V=Ke?V:new nt(this);var De=o.apply(V,$);return De.__actions__.push({func:Lu,args:[se],thisArg:n}),new Tn(De,ge)}return Ve&&Ke?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=au[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var _=this.value();return s.apply(Ue(_)?_:[],w)}return this[d](function(V){return s.apply(Ue(V)?V:[],w)})}}),nr(nt.prototype,function(o,s){var d=I[s];if(d){var g=d.name+"";pt.call(Zo,g)||(Zo[g]=[]),Zo[g].push({name:s,func:d})}}),Zo[_u(n,P).name]=[{name:"wrapper",func:n}],nt.prototype.clone=wY,nt.prototype.reverse=SY,nt.prototype.value=IY,I.prototype.at=QK,I.prototype.chain=eq,I.prototype.commit=tq,I.prototype.next=nq,I.prototype.plant=iq,I.prototype.reverse=oq,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=aq,I.prototype.first=I.prototype.head,ts&&(I.prototype[ts]=rq),I},Go=tY();Vi?((Vi.exports=Go)._=Go,Wh._=Go):Wt._=Go}).call(or)}(eu,eu.exports);var Gz=eu.exports;function Hz({system:e,classname:t}){switch(e){case"Autenticação":return A.jsx(l4,{className:t});case"Agendamento":return A.jsx(O4,{className:t});case"Portal ADE":return A.jsx($4,{className:t});case"Granéis - Dashboard":return A.jsx(L4,{className:t});case"Granéis - Fiscal":return A.jsx(R4,{className:t});case"Granéis - Embarque":return A.jsx(_4,{className:t});case"Armazém":return A.jsx(I4,{className:t});case"Planejador":return A.jsx(F4,{className:t});case"Granéis - Desembarque":return A.jsx(V4,{className:t});case"Granéis - Recepção Exportação":return A.jsx(tp,{className:t});case"Granéis - Recepção Importação":return A.jsx(tp,{className:t});case"Hubspot":return A.jsx(B4,{className:t});case"Cargo Control":return A.jsx(N4,{className:t});case"Coletor":return A.jsx(M4,{className:t});case"Integrações":return A.jsx(D4,{className:t});case"Eagle":return A.jsx(T4,{className:t});case"Equipamentos":return A.jsx(P4,{className:t});case"Hatchlist":return A.jsx(r4,{className:t});case"Integrações Job":return A.jsx(zu,{className:t});case"Integrações Job HatchList":return A.jsx(zu,{className:t});case"Integrações Job DPW":return A.jsx(zu,{className:t});default:return A.jsx("span",{children:"?"})}}function Wz({onClick:e}){return A.jsx(wd.Button,{onClick:e,children:A.jsx(a4,{className:"w-6 h-6"})})}function Zz({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:E,terminalName:P,isMultiTerminal:M=!1}){const L=["DPW","T32","BRC","ITACEL"];return A.jsx(Bs,{children:E&&A.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:A.jsx("div",{className:"w-full h-full bg-white rounded-lg rounded-tr-none dark:bg-brand-text",children:A.jsx("div",{className:"w-full px-3",children:A.jsxs("div",{className:"flex flex-col items-center justify-center transform -translate-y-5",children:[A.jsx(rp,{size:"md"}),A.jsx("span",{className:"text-xs text-brand-text dark:text-white pt-2.5 pb-px",children:e==null?void 0:e.nome}),A.jsx("span",{className:" text-[0.625rem] text-brand-dark-gray pb-1.5",children:e==null?void 0:e.email}),A.jsx(Uz,{children:A.jsx(x4,{className:"w-4 h-4"})}),A.jsxs("div",{className:"pt-3 pb-3.5 space-x-2 flex",children:[A.jsxs(E3,{onClick:()=>u("pt-br"),children:[A.jsx(w4,{})," Navegar em português"]}),A.jsxs(E3,{onClick:()=>u("en-us"),children:[A.jsx(S4,{})," Browse in English"]})]}),A.jsxs("div",{className:"flex justify-center items-center mb-4 gap-2",children:[M&&A.jsx("div",{className:"w-48",children:A.jsx(Ki,{variant:"primary",onClick:c,children:A.jsxs("div",{className:"p-4",children:[A.jsxs("p",{className:"text-xs",children:["Terminal:"," ",A.jsx("b",{children:P??""})]}),A.jsx("p",{className:"text-xs",children:v})]})})}),r&&A.jsx("div",{className:"w-48",children:A.jsx(b5,{name:"tenant",label:"Cliente",options:L.map(D=>({value:D,label:D})),onChange:a,value:i?{value:i,label:i}:[]})})]}),A.jsxs("div",{className:"w-full pt-3 pb-4 border-y",children:[A.jsxs("p",{className:"text-xs text-brand-text dark:text-white",children:[p," ",A.jsxs("span",{className:"text-brand-dark-gray",children:["(",m,")"]})]}),A.jsx("div",{className:"grid grid-cols-12 gap-3 children:col-span-3 py-3.5 overflow-y-scroll max-h-60",children:Gz.sortBy(e.portais,["descricao"]).map((D,N)=>{const z=h===D.nome;return A.jsxs(Bs,{mode:"wait",children:["isOpen && (",A.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:[A.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:A.jsx(Hz,{system:D.descricao,classname:"w-6 h-6"})}),A.jsx("span",{className:"text-xs text-center text-brand-text dark:text-white",children:D.nome})]},"portal-item-"+D.descricao),")"]},N)})})]}),A.jsxs("div",{className:"flex items-center justify-between w-full pt-4",children:[A.jsxs("div",{className:"flex items-center gap-0.5",children:[A.jsx(Xz,{isDarkMode:t,setIsDarkMode:n,setTheme:l}),A.jsx("span",{className:et({"text-brand-secondary":t,"text-brand-secondary-text":!t},"text-xs"),children:x})]}),A.jsxs("div",{onClick:f,className:"flex items-center gap-1 cursor-pointer",children:[A.jsx(u4,{}),A.jsx("span",{className:"text-xs text-brand-dark-gray dark:text-brand-light-gray",children:S})]})]})]})})})},"user-menu-container")})}function Xz({isDarkMode:e,setIsDarkMode:t,setTheme:n}){return b.useEffect(()=>{n()},[e]),A.jsxs(z5,{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:[A.jsx("span",{className:"sr-only",children:"Dark theme?"}),A.jsx(Bs,{children:A.jsx("div",{className:"flex items-center w-full",children:e?A.jsx(c4,{className:"w-4 translate-x-5"}):A.jsx(zz,{})})})]})}function zz(){return A.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:A.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 Uz({children:e}){return A.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 E3({children:e,onClick:t}){return A.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 Yz({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:E,setOpen:P,terminalName:M,isMultiTerminal:L=!1}){function D(){P(z=>!z)}function N(){P(!1)}return A.jsxs(A.Fragment,{children:[A.jsx(Wz,{onClick:D}),A.jsx(ks,{isOpen:E,close:N,children:A.jsx(Zz,{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:E,terminalName:M,isMultiTerminal:L})})]})}var Jz=process.env.NODE_ENV==="production";function Do(e,t){if(!Jz){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 tu=b.createContext(void 0);tu.displayName="FormikContext",tu.Provider,tu.Consumer;function A3(){var e=b.useContext(tu);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 Qz(e){var t=A3(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,l=t.unregisterField,u=qz(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"?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 eU=b.forwardRef(function(e,t){var n=e.action,r=Kz(e,["action"]),i=n??"#",a=A3(),l=a.handleReset,u=a.handleSubmit;return b.createElement("form",$h({onSubmit:u,ref:t,onReset:l,action:i},r))});eU.displayName="Form";const tU=({name:e,helper:t,onChange:n,onBlur:r,...i})=>{const[a,{error:l},{setValue:u,setTouched:c}]=Qz(e),f=p=>{const m=i.type==="color"?p:p.target.value;u(m),n&&n(m)},h=()=>{c(!0),r&&r()};return A.jsx(A.Fragment,{children:A.jsx(Z2,{error:l,name:a.name,value:a.value,onChange:f,onBlur:h,helper:t,...i})})};je.Avatar=rp,je.Backdrop=ks,je.BaseField=tU,je.Button=Ki,je.Card=K7,je.Checkbox=q7,je.ColorPicker=V2,je.Dialog=zk,je.DualListBox=rj,je.ErrorMessage=pd,je.Header=ij,je.HelperMessage=gd,je.Input=Z2,je.Label=xd,je.Navbar=wd,je.Radio=dj,je.Select=b5,je.SideMenu=bX,je.Spinner=hd,je.Switch=nz,je.Table=Dz,je.TableAction=Nz,je.TablePagination=Lz,je.Tooltip=I3,je.UploadFile=jz,je.UserMenu=Yz,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface UserMenuProps {
|
|
3
3
|
user: any;
|
|
4
|
-
userTypeId?: number | undefined;
|
|
5
4
|
isDarkMode: boolean;
|
|
6
5
|
setIsDarkMode: any;
|
|
7
6
|
isDebuggMode: boolean;
|
|
@@ -20,6 +19,7 @@ interface UserMenuProps {
|
|
|
20
19
|
isOpen: boolean;
|
|
21
20
|
setOpen: (value: React.SetStateAction<boolean>) => void;
|
|
22
21
|
terminalName?: string;
|
|
22
|
+
isMultiTerminal?: boolean;
|
|
23
23
|
}
|
|
24
|
-
declare function UserMenu({ user,
|
|
24
|
+
declare function UserMenu({ user, isDarkMode, setIsDarkMode, isDebuggMode, tenantValue, onTenantChange, setTheme, setLanguage, onSelectTerminal, logout, appNameText, availablePortalsText, clickToAccessText, clickToChangeTerminal, nightThemeText, logoutText, isOpen, setOpen, terminalName, isMultiTerminal }: UserMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export default UserMenu;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "Hxtos"
|
|
5
5
|
},
|
|
6
6
|
"private": false,
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.23.1",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"description": "Biblioteca de componentes Hxtos",
|
|
10
10
|
"type": "module",
|
|
@@ -75,5 +75,6 @@
|
|
|
75
75
|
"typescript": "^5.2.2",
|
|
76
76
|
"vite": "^5.0.8",
|
|
77
77
|
"vite-plugin-dts": "^3.6.0"
|
|
78
|
-
}
|
|
78
|
+
},
|
|
79
|
+
"packageManager": "pnpm@8.15.8+sha512.d1a029e1a447ad90bc96cd58b0fad486d2993d531856396f7babf2d83eb1823bb83c5a3d0fc18f675b2d10321d49eb161fece36fe8134aa5823ecd215feed392"
|
|
79
80
|
}
|