@lax-wp/design-system 0.3.90 → 0.3.91
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
|
@@ -50758,77 +50758,79 @@ const Stepper = ({
|
|
|
50758
50758
|
};
|
|
50759
50759
|
Stepper.displayName = "Stepper";
|
|
50760
50760
|
const Drawer = ({
|
|
50761
|
-
|
|
50762
|
-
|
|
50763
|
-
|
|
50764
|
-
|
|
50765
|
-
|
|
50766
|
-
|
|
50767
|
-
|
|
50768
|
-
|
|
50769
|
-
|
|
50770
|
-
|
|
50771
|
-
|
|
50772
|
-
|
|
50773
|
-
|
|
50774
|
-
|
|
50775
|
-
|
|
50761
|
+
id: e,
|
|
50762
|
+
children: t,
|
|
50763
|
+
onClose: n,
|
|
50764
|
+
open: a,
|
|
50765
|
+
title: s,
|
|
50766
|
+
parentContainer: o = "full-screen-container",
|
|
50767
|
+
resizable: V,
|
|
50768
|
+
width: W = 400,
|
|
50769
|
+
placement: G = "right",
|
|
50770
|
+
closable: U = !1,
|
|
50771
|
+
mask: J,
|
|
50772
|
+
classNames: K,
|
|
50773
|
+
styles: oe,
|
|
50774
|
+
getContainer: ce,
|
|
50775
|
+
zIndex: pe,
|
|
50776
|
+
footer: ue
|
|
50776
50777
|
}) => {
|
|
50777
|
-
const
|
|
50778
|
+
const xe = useRef(!1), [me, ve] = useState(W);
|
|
50778
50779
|
useEffect(() => {
|
|
50779
|
-
|
|
50780
|
-
}, [
|
|
50781
|
-
const
|
|
50782
|
-
(
|
|
50783
|
-
if (
|
|
50784
|
-
if (
|
|
50785
|
-
const
|
|
50786
|
-
|
|
50780
|
+
ve(W);
|
|
50781
|
+
}, [a, W]);
|
|
50782
|
+
const ge = useCallback(
|
|
50783
|
+
(Re) => {
|
|
50784
|
+
if (xe.current)
|
|
50785
|
+
if (G === "right") {
|
|
50786
|
+
const Ie = document.body.offsetWidth - (Re.clientX - document.body.offsetLeft);
|
|
50787
|
+
Ie > 256 && ve(Ie);
|
|
50787
50788
|
} else
|
|
50788
|
-
|
|
50789
|
+
Re.clientX > 256 && ve(Re.clientX);
|
|
50789
50790
|
},
|
|
50790
|
-
[
|
|
50791
|
-
),
|
|
50792
|
-
|
|
50791
|
+
[G, ve]
|
|
50792
|
+
), ye = useCallback(() => {
|
|
50793
|
+
xe.current && (xe.current = !1);
|
|
50793
50794
|
}, []);
|
|
50794
|
-
useEffect(() => (document.addEventListener("mousemove",
|
|
50795
|
-
document.removeEventListener("mousemove",
|
|
50796
|
-
}), [
|
|
50797
|
-
const
|
|
50798
|
-
return
|
|
50795
|
+
useEffect(() => (document.addEventListener("mousemove", ge), document.addEventListener("mouseup", ye), () => {
|
|
50796
|
+
document.removeEventListener("mousemove", ge), document.removeEventListener("mouseup", ye);
|
|
50797
|
+
}), [ge, ye]);
|
|
50798
|
+
const _e = typeof window < "u" ? document.getElementById(o) || document.body : null;
|
|
50799
|
+
return _e ? createPortal(
|
|
50799
50800
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
50800
50801
|
Drawer$1,
|
|
50801
50802
|
{
|
|
50802
|
-
|
|
50803
|
-
|
|
50804
|
-
|
|
50805
|
-
|
|
50806
|
-
|
|
50807
|
-
|
|
50808
|
-
|
|
50809
|
-
|
|
50810
|
-
|
|
50811
|
-
|
|
50812
|
-
|
|
50813
|
-
|
|
50803
|
+
id: e || "",
|
|
50804
|
+
closable: U,
|
|
50805
|
+
title: s,
|
|
50806
|
+
onClose: n,
|
|
50807
|
+
open: a,
|
|
50808
|
+
width: me,
|
|
50809
|
+
getContainer: ce !== void 0 ? ce : !1,
|
|
50810
|
+
placement: G,
|
|
50811
|
+
mask: J,
|
|
50812
|
+
classNames: K,
|
|
50813
|
+
styles: oe,
|
|
50814
|
+
zIndex: pe,
|
|
50815
|
+
footer: ue,
|
|
50814
50816
|
children: [
|
|
50815
|
-
|
|
50817
|
+
V && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50816
50818
|
"div",
|
|
50817
50819
|
{
|
|
50818
50820
|
className: "cursor-ew-resize w-1 pl-[2px] absolute top-0 bottom-0 z-[2100] bg-transparent dark:bg-black-600 hover:bg-neutral-200 dark:hover:bg-black-700",
|
|
50819
50821
|
onMouseDown: () => {
|
|
50820
|
-
|
|
50822
|
+
xe.current = !0;
|
|
50821
50823
|
},
|
|
50822
|
-
style:
|
|
50824
|
+
style: G === "right" ? { left: 0 } : {
|
|
50823
50825
|
right: 0
|
|
50824
50826
|
}
|
|
50825
50827
|
}
|
|
50826
50828
|
),
|
|
50827
|
-
|
|
50829
|
+
t
|
|
50828
50830
|
]
|
|
50829
50831
|
}
|
|
50830
50832
|
),
|
|
50831
|
-
|
|
50833
|
+
_e
|
|
50832
50834
|
) : null;
|
|
50833
50835
|
};
|
|
50834
50836
|
Drawer.displayName = "Drawer";
|
package/dist/index.umd.js
CHANGED
|
@@ -337,7 +337,7 @@ __p += '`),Qt&&(wt+=`' +
|
|
|
337
337
|
function print() { __p += __j.call(arguments, '') }
|
|
338
338
|
`:`;
|
|
339
339
|
`)+wt+`return __p
|
|
340
|
-
}`;var Ut=ac(function(){return rr(qe,Mt+"return "+wt).apply(n,tt)});if(Ut.source=wt,Ss(Ut))throw Ut;return Ut}function Ep(X){return ir(X).toLowerCase()}function wp(X){return ir(X).toUpperCase()}function Rp(X,ne,Re){if(X=ir(X),X&&(Re||ne===n))return po(X);if(!X||!(ne=en(ne)))return X;var Le=gn(X),Xe=gn(ne),qe=mo(Le,Xe),tt=go(Le,Xe)+1;return Gn(Le,qe,tt).join("")}function Cp(X,ne,Re){if(X=ir(X),X&&(Re||ne===n))return X.slice(0,xo(X)+1);if(!X||!(ne=en(ne)))return X;var Le=gn(X),Xe=go(Le,gn(ne))+1;return Gn(Le,0,Xe).join("")}function Sp(X,ne,Re){if(X=ir(X),X&&(Re||ne===n))return X.replace($r,"");if(!X||!(ne=en(ne)))return X;var Le=gn(X),Xe=mo(Le,gn(ne));return Gn(Le,Xe).join("")}function Ap(X,ne){var Re=$e,Le=We;if(hr(ne)){var Xe="separator"in ne?ne.separator:Xe;Re="length"in ne?Gt(ne.length):Re,Le="omission"in ne?en(ne.omission):Le}X=ir(X);var qe=X.length;if(ai(X)){var tt=gn(X);qe=tt.length}if(Re>=qe)return X;var it=Re-si(Le);if(it<1)return Le;var ct=tt?Gn(tt,0,it).join(""):X.slice(0,it);if(Xe===n)return ct+Le;if(tt&&(it+=ct.length-it),As(Xe)){if(X.slice(it).search(Xe)){var xt,yt=ct;for(Xe.global||(Xe=$a(Xe.source,ir(nr.exec(Xe))+"g")),Xe.lastIndex=0;xt=Xe.exec(yt);)var wt=xt.index;ct=ct.slice(0,wt===n?it:wt)}}else if(X.indexOf(en(Xe),it)!=it){var St=ct.lastIndexOf(Xe);St>-1&&(ct=ct.slice(0,St))}return ct+Le}function _p(X){return X=ir(X),X&&Sr.test(X)?X.replace(Ln,tu):X}var Tp=hi(function(X,ne,Re){return X+(Re?" ":"")+ne.toUpperCase()}),ks=sl("toUpperCase");function ic(X,ne,Re){return X=ir(X),ne=Re?n:ne,ne===n?qc(X)?iu(X):Bc(X):X.match(ne)||[]}var ac=Yt(function(X,ne){try{return Kr(X,n,ne)}catch(Re){return Ss(Re)?Re:new Ht(Re)}}),kp=Pn(function(X,ne){return on(ne,function(Re){Re=Cn(Re),In(X,Re,Rs(X[Re],X))}),X});function Ip(X){var ne=X==null?0:X.length,Re=Dt();return X=ne?ur(X,function(Le){if(typeof Le[1]!="function")throw new ln(V);return[Re(Le[0]),Le[1]]}):[],Yt(function(Le){for(var Xe=-1;++Xe<ne;){var qe=X[Xe];if(Kr(qe[0],this,Le))return Kr(qe[1],this,Le)}})}function Mp(X){return t1(dn(X,K))}function Is(X){return function(){return X}}function Pp(X,ne){return X==null||X!==X?ne:X}var jp=ll(),Fp=ll(!0);function Zr(X){return X}function Ms(X){return No(typeof X=="function"?X:dn(X,K))}function Dp(X){return $o(dn(X,K))}function zp(X,ne){return Bo(X,dn(ne,K))}var Lp=Yt(function(X,ne){return function(Re){return Ai(Re,X,ne)}}),Np=Yt(function(X,ne){return function(Re){return Ai(X,Re,ne)}});function Ps(X,ne,Re){var Le=Ar(ne),Xe=ra(ne,Le);Re==null&&!(hr(ne)&&(Xe.length||!Le.length))&&(Re=ne,ne=X,X=this,Xe=ra(ne,Ar(ne)));var qe=!(hr(Re)&&"chain"in Re)||!!Re.chain,tt=Fn(X);return on(Xe,function(it){var ct=ne[it];X[it]=ct,tt&&(X.prototype[it]=function(){var xt=this.__chain__;if(qe||xt){var yt=X(this.__wrapped__),wt=yt.__actions__=Ur(this.__actions__);return wt.push({func:ct,args:arguments,thisArg:X}),yt.__chain__=xt,yt}return ct.apply(X,On([this.value()],arguments))})}),X}function Op(){return Ir._===this&&(Ir._=uu),this}function js(){}function $p(X){return X=Gt(X),Yt(function(ne){return Ho(ne,X)})}var Bp=cs(ur),Hp=cs(lo),Vp=cs(ja);function sc(X){return vs(X)?Fa(Cn(X)):x1(X)}function Wp(X){return function(ne){return X==null?n:Kn(X,ne)}}var Gp=ul(),Up=ul(!0);function Fs(){return[]}function Ds(){return!1}function Yp(){return{}}function Xp(){return""}function Zp(){return!0}function qp(X,ne){if(X=Gt(X),X<1||X>Ae)return[];var Re=Ue,Le=Fr(X,Ue);ne=Dt(ne),X-=Ue;for(var Xe=La(Le,ne);++Re<X;)ne(Re);return Xe}function Jp(X){return Vt(X)?ur(X,Cn):tn(X)?[X]:Ur(Al(ir(X)))}function Kp(X){var ne=++lu;return ir(X)+ne}var Qp=la(function(X,ne){return X+ne},0),e0=us("ceil"),t0=la(function(X,ne){return X/ne},1),r0=us("floor");function n0(X){return X&&X.length?ta(X,Zr,Xa):n}function i0(X,ne){return X&&X.length?ta(X,Dt(ne,2),Xa):n}function a0(X){return fo(X,Zr)}function s0(X,ne){return fo(X,Dt(ne,2))}function o0(X){return X&&X.length?ta(X,Zr,Ka):n}function l0(X,ne){return X&&X.length?ta(X,Dt(ne,2),Ka):n}var c0=la(function(X,ne){return X*ne},1),u0=us("round"),d0=la(function(X,ne){return X-ne},0);function f0(X){return X&&X.length?za(X,Zr):0}function h0(X,ne){return X&&X.length?za(X,Dt(ne,2)):0}return Ze.after=Df,Ze.ary=Ll,Ze.assign=wh,Ze.assignIn=Jl,Ze.assignInWith=Ea,Ze.assignWith=Rh,Ze.at=Ch,Ze.before=Nl,Ze.bind=Rs,Ze.bindAll=kp,Ze.bindKey=Ol,Ze.castArray=Yf,Ze.chain=Fl,Ze.chunk=td,Ze.compact=rd,Ze.concat=nd,Ze.cond=Ip,Ze.conforms=Mp,Ze.constant=Is,Ze.countBy=ff,Ze.create=Sh,Ze.curry=$l,Ze.curryRight=Bl,Ze.debounce=Hl,Ze.defaults=Ah,Ze.defaultsDeep=_h,Ze.defer=zf,Ze.delay=Lf,Ze.difference=id,Ze.differenceBy=ad,Ze.differenceWith=sd,Ze.drop=od,Ze.dropRight=ld,Ze.dropRightWhile=cd,Ze.dropWhile=ud,Ze.fill=dd,Ze.filter=pf,Ze.flatMap=vf,Ze.flatMapDeep=xf,Ze.flatMapDepth=yf,Ze.flatten=Il,Ze.flattenDeep=fd,Ze.flattenDepth=hd,Ze.flip=Nf,Ze.flow=jp,Ze.flowRight=Fp,Ze.fromPairs=pd,Ze.functions=Fh,Ze.functionsIn=Dh,Ze.groupBy=bf,Ze.initial=gd,Ze.intersection=vd,Ze.intersectionBy=xd,Ze.intersectionWith=yd,Ze.invert=Lh,Ze.invertBy=Nh,Ze.invokeMap=wf,Ze.iteratee=Ms,Ze.keyBy=Rf,Ze.keys=Ar,Ze.keysIn=Xr,Ze.map=ma,Ze.mapKeys=$h,Ze.mapValues=Bh,Ze.matches=Dp,Ze.matchesProperty=zp,Ze.memoize=va,Ze.merge=Hh,Ze.mergeWith=Kl,Ze.method=Lp,Ze.methodOf=Np,Ze.mixin=Ps,Ze.negate=xa,Ze.nthArg=$p,Ze.omit=Vh,Ze.omitBy=Wh,Ze.once=Of,Ze.orderBy=Cf,Ze.over=Bp,Ze.overArgs=$f,Ze.overEvery=Hp,Ze.overSome=Vp,Ze.partial=Cs,Ze.partialRight=Vl,Ze.partition=Sf,Ze.pick=Gh,Ze.pickBy=Ql,Ze.property=sc,Ze.propertyOf=Wp,Ze.pull=Rd,Ze.pullAll=Pl,Ze.pullAllBy=Cd,Ze.pullAllWith=Sd,Ze.pullAt=Ad,Ze.range=Gp,Ze.rangeRight=Up,Ze.rearg=Bf,Ze.reject=Tf,Ze.remove=_d,Ze.rest=Hf,Ze.reverse=Es,Ze.sampleSize=If,Ze.set=Yh,Ze.setWith=Xh,Ze.shuffle=Mf,Ze.slice=Td,Ze.sortBy=Ff,Ze.sortedUniq=Dd,Ze.sortedUniqBy=zd,Ze.split=vp,Ze.spread=Vf,Ze.tail=Ld,Ze.take=Nd,Ze.takeRight=Od,Ze.takeRightWhile=$d,Ze.takeWhile=Bd,Ze.tap=rf,Ze.throttle=Wf,Ze.thru=pa,Ze.toArray=Xl,Ze.toPairs=ec,Ze.toPairsIn=tc,Ze.toPath=Jp,Ze.toPlainObject=ql,Ze.transform=Zh,Ze.unary=Gf,Ze.union=Hd,Ze.unionBy=Vd,Ze.unionWith=Wd,Ze.uniq=Gd,Ze.uniqBy=Ud,Ze.uniqWith=Yd,Ze.unset=qh,Ze.unzip=ws,Ze.unzipWith=jl,Ze.update=Jh,Ze.updateWith=Kh,Ze.values=gi,Ze.valuesIn=Qh,Ze.without=Xd,Ze.words=ic,Ze.wrap=Uf,Ze.xor=Zd,Ze.xorBy=qd,Ze.xorWith=Jd,Ze.zip=Kd,Ze.zipObject=Qd,Ze.zipObjectDeep=ef,Ze.zipWith=tf,Ze.entries=ec,Ze.entriesIn=tc,Ze.extend=Jl,Ze.extendWith=Ea,Ps(Ze,Ze),Ze.add=Qp,Ze.attempt=ac,Ze.camelCase=np,Ze.capitalize=rc,Ze.ceil=e0,Ze.clamp=ep,Ze.clone=Xf,Ze.cloneDeep=qf,Ze.cloneDeepWith=Jf,Ze.cloneWith=Zf,Ze.conformsTo=Kf,Ze.deburr=nc,Ze.defaultTo=Pp,Ze.divide=t0,Ze.endsWith=ip,Ze.eq=xn,Ze.escape=ap,Ze.escapeRegExp=sp,Ze.every=hf,Ze.find=mf,Ze.findIndex=Tl,Ze.findKey=Th,Ze.findLast=gf,Ze.findLastIndex=kl,Ze.findLastKey=kh,Ze.floor=r0,Ze.forEach=Dl,Ze.forEachRight=zl,Ze.forIn=Ih,Ze.forInRight=Mh,Ze.forOwn=Ph,Ze.forOwnRight=jh,Ze.get=_s,Ze.gt=Qf,Ze.gte=eh,Ze.has=zh,Ze.hasIn=Ts,Ze.head=Ml,Ze.identity=Zr,Ze.includes=Ef,Ze.indexOf=md,Ze.inRange=tp,Ze.invoke=Oh,Ze.isArguments=ti,Ze.isArray=Vt,Ze.isArrayBuffer=th,Ze.isArrayLike=Yr,Ze.isArrayLikeObject=xr,Ze.isBoolean=rh,Ze.isBuffer=Un,Ze.isDate=nh,Ze.isElement=ih,Ze.isEmpty=ah,Ze.isEqual=sh,Ze.isEqualWith=oh,Ze.isError=Ss,Ze.isFinite=lh,Ze.isFunction=Fn,Ze.isInteger=Wl,Ze.isLength=ya,Ze.isMap=Gl,Ze.isMatch=ch,Ze.isMatchWith=uh,Ze.isNaN=dh,Ze.isNative=fh,Ze.isNil=ph,Ze.isNull=hh,Ze.isNumber=Ul,Ze.isObject=hr,Ze.isObjectLike=gr,Ze.isPlainObject=Pi,Ze.isRegExp=As,Ze.isSafeInteger=mh,Ze.isSet=Yl,Ze.isString=ba,Ze.isSymbol=tn,Ze.isTypedArray=mi,Ze.isUndefined=gh,Ze.isWeakMap=vh,Ze.isWeakSet=xh,Ze.join=bd,Ze.kebabCase=op,Ze.last=hn,Ze.lastIndexOf=Ed,Ze.lowerCase=lp,Ze.lowerFirst=cp,Ze.lt=yh,Ze.lte=bh,Ze.max=n0,Ze.maxBy=i0,Ze.mean=a0,Ze.meanBy=s0,Ze.min=o0,Ze.minBy=l0,Ze.stubArray=Fs,Ze.stubFalse=Ds,Ze.stubObject=Yp,Ze.stubString=Xp,Ze.stubTrue=Zp,Ze.multiply=c0,Ze.nth=wd,Ze.noConflict=Op,Ze.noop=js,Ze.now=ga,Ze.pad=up,Ze.padEnd=dp,Ze.padStart=fp,Ze.parseInt=hp,Ze.random=rp,Ze.reduce=Af,Ze.reduceRight=_f,Ze.repeat=pp,Ze.replace=mp,Ze.result=Uh,Ze.round=u0,Ze.runInContext=lt,Ze.sample=kf,Ze.size=Pf,Ze.snakeCase=gp,Ze.some=jf,Ze.sortedIndex=kd,Ze.sortedIndexBy=Id,Ze.sortedIndexOf=Md,Ze.sortedLastIndex=Pd,Ze.sortedLastIndexBy=jd,Ze.sortedLastIndexOf=Fd,Ze.startCase=xp,Ze.startsWith=yp,Ze.subtract=d0,Ze.sum=f0,Ze.sumBy=h0,Ze.template=bp,Ze.times=qp,Ze.toFinite=Dn,Ze.toInteger=Gt,Ze.toLength=Zl,Ze.toLower=Ep,Ze.toNumber=pn,Ze.toSafeInteger=Eh,Ze.toString=ir,Ze.toUpper=wp,Ze.trim=Rp,Ze.trimEnd=Cp,Ze.trimStart=Sp,Ze.truncate=Ap,Ze.unescape=_p,Ze.uniqueId=Kp,Ze.upperCase=Tp,Ze.upperFirst=ks,Ze.each=Dl,Ze.eachRight=zl,Ze.first=Ml,Ps(Ze,function(){var X={};return wn(Ze,function(ne,Re){ar.call(Ze.prototype,Re)||(X[Re]=ne)}),X}(),{chain:!1}),Ze.VERSION=a,on(["bind","bindKey","curry","curryRight","partial","partialRight"],function(X){Ze[X].placeholder=Ze}),on(["drop","take"],function(X,ne){Jt.prototype[X]=function(Re){Re=Re===n?1:Rr(Gt(Re),0);var Le=this.__filtered__&&!ne?new Jt(this):this.clone();return Le.__filtered__?Le.__takeCount__=Fr(Re,Le.__takeCount__):Le.__views__.push({size:Fr(Re,Ue),type:X+(Le.__dir__<0?"Right":"")}),Le},Jt.prototype[X+"Right"]=function(Re){return this.reverse()[X](Re).reverse()}}),on(["filter","map","takeWhile"],function(X,ne){var Re=ne+1,Le=Re==Be||Re==ke;Jt.prototype[X]=function(Xe){var qe=this.clone();return qe.__iteratees__.push({iteratee:Dt(Xe,3),type:Re}),qe.__filtered__=qe.__filtered__||Le,qe}}),on(["head","last"],function(X,ne){var Re="take"+(ne?"Right":"");Jt.prototype[X]=function(){return this[Re](1).value()[0]}}),on(["initial","tail"],function(X,ne){var Re="drop"+(ne?"":"Right");Jt.prototype[X]=function(){return this.__filtered__?new Jt(this):this[Re](1)}}),Jt.prototype.compact=function(){return this.filter(Zr)},Jt.prototype.find=function(X){return this.filter(X).head()},Jt.prototype.findLast=function(X){return this.reverse().find(X)},Jt.prototype.invokeMap=Yt(function(X,ne){return typeof X=="function"?new Jt(this):this.map(function(Re){return Ai(Re,X,ne)})}),Jt.prototype.reject=function(X){return this.filter(xa(Dt(X)))},Jt.prototype.slice=function(X,ne){X=Gt(X);var Re=this;return Re.__filtered__&&(X>0||ne<0)?new Jt(Re):(X<0?Re=Re.takeRight(-X):X&&(Re=Re.drop(X)),ne!==n&&(ne=Gt(ne),Re=ne<0?Re.dropRight(-ne):Re.take(ne-X)),Re)},Jt.prototype.takeRightWhile=function(X){return this.reverse().takeWhile(X).reverse()},Jt.prototype.toArray=function(){return this.take(Ue)},wn(Jt.prototype,function(X,ne){var Re=/^(?:filter|find|map|reject)|While$/.test(ne),Le=/^(?:head|last)$/.test(ne),Xe=Ze[Le?"take"+(ne=="last"?"Right":""):ne],qe=Le||/^find/.test(ne);Xe&&(Ze.prototype[ne]=function(){var tt=this.__wrapped__,it=Le?[1]:arguments,ct=tt instanceof Jt,xt=it[0],yt=ct||Vt(tt),wt=function(Zt){var Qt=Xe.apply(Ze,On([Zt],it));return Le&&St?Qt[0]:Qt};yt&&Re&&typeof xt=="function"&&xt.length!=1&&(ct=yt=!1);var St=this.__chain__,Mt=!!this.__actions__.length,Lt=qe&&!St,Ut=ct&&!Mt;if(!qe&&yt){tt=Ut?tt:new Jt(this);var Nt=X.apply(tt,it);return Nt.__actions__.push({func:pa,args:[wt],thisArg:n}),new un(Nt,St)}return Lt&&Ut?X.apply(this,it):(Nt=this.thru(wt),Lt?Le?Nt.value()[0]:Nt.value():Nt)})}),on(["pop","push","shift","sort","splice","unshift"],function(X){var ne=$i[X],Re=/^(?:push|sort|unshift)$/.test(X)?"tap":"thru",Le=/^(?:pop|shift)$/.test(X);Ze.prototype[X]=function(){var Xe=arguments;if(Le&&!this.__chain__){var qe=this.value();return ne.apply(Vt(qe)?qe:[],Xe)}return this[Re](function(tt){return ne.apply(Vt(tt)?tt:[],Xe)})}}),wn(Jt.prototype,function(X,ne){var Re=Ze[ne];if(Re){var Le=Re.name+"";ar.call(ui,Le)||(ui[Le]=[]),ui[Le].push({name:ne,func:Re})}}),ui[oa(n,me).name]=[{name:"wrapper",func:n}],Jt.prototype.clone=Au,Jt.prototype.reverse=_u,Jt.prototype.value=Tu,Ze.prototype.at=nf,Ze.prototype.chain=af,Ze.prototype.commit=sf,Ze.prototype.next=of,Ze.prototype.plant=cf,Ze.prototype.reverse=uf,Ze.prototype.toJSON=Ze.prototype.valueOf=Ze.prototype.value=df,Ze.prototype.first=Ze.prototype.head,yi&&(Ze.prototype[yi]=lf),Ze},oi=au();Yn?((Yn.exports=oi)._=oi,ka._=oi):Ir._=oi}).call(lodash)}(lodash$1,lodash$1.exports)),lodash$1.exports}var lodashExports=requireLodash();const Text=({LText:e,RText:t,emptyTag:n,text:a="",LeftIcon:s,role:o="",children:V,RightIcon:W,tagName:G="p",className:U="",onClick:J=lodashExports.noop})=>{const{t:K}=useTranslation(),oe=G,ce=jsxRuntimeExports.jsxs(React.Fragment,{children:[e&&e,K(a),t&&t]});return oe&&!n?jsxRuntimeExports.jsxs(oe,{onClick:J,className:cn$1({[U]:U}),role:G==="button"&&"button"||o,children:[s&&jsxRuntimeExports.jsx(s,{}),ce,V,W&&jsxRuntimeExports.jsx(W,{})]}):ce};Text.displayName="Text";const TextWithStrike=({text:e})=>{const[t,n]=React.useState([]),a=()=>{const s=e.split(/(<um>.*?<\/um>)/);n(s)};return React.useEffect(()=>{a()},[e]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:t.map((s,o)=>s.includes("<um>")?jsxRuntimeExports.jsx("span",{className:"bg-yellow-100 dark:bg-yellow-900 decoration-gray-600",children:s.replace(/<um>|<\/um>/g,"")},o):jsxRuntimeExports.jsx("span",{children:s},o))})};TextWithStrike.displayName="TextWithStrike";const DynamicItemsCellComponent=({items:e,isDarkMode:t,getLabel:n,getColor:a,getId:s=J=>J?.id??"",moreTagColor:o="gray",useHashColor:V=!1,tooltipPlacement:W="topRight",className:G="w-full",containerWidth:U})=>{const J=React.useCallback(me=>me?me.length*8+20:0,[]),K=React.useCallback(()=>{if(!U||!e?.length)return 0;const me=U,ve=J("+ XX more")+10;let ge=0,ye=0;for(let we=0;we<e.length;we++){const Se=e[we],Ie=J(n(Se)),Te=8;if(we>0&&ye+Ie+Te+ve>me)break;if(we===0||ye+Ie+Te<=me)ye+=Ie+Te,ge++;else break}return Math.max(1,ge)},[U,e,J,n]),oe=React.useMemo(()=>U?K():0,[U,K]),ce=React.useMemo(()=>e?.slice(0,oe)||[],[e,oe]),pe=React.useMemo(()=>e?.length>oe,[e?.length,oe]),ue=React.useMemo(()=>e?.length>0&&pe?jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-2 p-2 max-h-[300px] overflow-y-auto dark:bg-neutral-800",children:e?.slice(oe,e?.length).map((me,ve)=>jsxRuntimeExports.jsx("div",{className:"w-fit cursor-pointer",children:jsxRuntimeExports.jsx(Tag,{label:n(me),color:a(me),size:"sm",isHashColor:V,theme:t?"dark":"light"},`tooltip-tag-${oe+ve}`)},`tooltip-${oe+ve}`))}):null,[e,pe,oe,n,a,V,t]),xe=React.useCallback((me,ve)=>me.map((ge,ye)=>jsxRuntimeExports.jsx(Tag,{label:n(ge),color:a(ge),size:"sm",isHashColor:V,theme:t?"dark":"light"},`${ve}-${s(ge)||ye}`)),[s,n,a,V,t]);return jsxRuntimeExports.jsx("div",{className:G,children:pe?jsxRuntimeExports.jsx(antd.Tooltip,{title:ue,placement:W,classNames:{root:"dynamic-items-tooltip"},arrow:!1,styles:{root:{zIndex:1050}},color:t?"black":"white",children:jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center cursor-pointer",children:[xe(ce,"display"),jsxRuntimeExports.jsx(Tag,{label:`+${e.length-oe} more`,color:o,size:"sm",isHashColor:V,theme:t?"dark":"light"},"more-items-tag")]})}):jsxRuntimeExports.jsx("div",{className:"flex gap-2 items-center",children:xe(ce,"no-tooltip")})})};DynamicItemsCellComponent.displayName="DynamicItemsCell";const DynamicItemsCell=React.memo(DynamicItemsCellComponent),formatNumber=(e,t,n)=>{if(e==null||e==="")return"";const a=typeof e=="string"?parseFloat(e):e;if(isNaN(a))return String(e);const s=n!==void 0?a.toFixed(n):a;switch(t){case"comma":return Number(s).toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n});case"currency":return Number(s).toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n??2,maximumFractionDigits:n??2});case"percent":return`${Number(s).toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n})}%`;default:return String(s)}},NumberInputField=({label:e,className:t,disabled:n,onChange:a,value:s,numberFormat:o,precision:V=void 0,id:W,style:G,...U})=>{const[J,K]=React.useState(!1),oe=()=>{K(!0)},ce=pe=>{K(!1),a?.(pe.target.value)};return jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntimeExports.jsx(Typography,{size:"extra-small",variant:"regular",appearance:"subtitle",children:e}),jsxRuntimeExports.jsx("input",{id:W,type:J?"number":"text",className:cn$1(t),disabled:n,onChange:({target:pe})=>a&&a(pe.value),onFocus:oe,onBlur:ce,value:!J&&o?formatNumber(s,o,V):s,style:{fontStyle:"inherit",...G},autoComplete:"off",...U})]})};NumberInputField.displayName="NumberInputField";const Accordion=({children:e,title:t,toggle:n,isOpen:a,hoveringIndex:s,index:o,viewOnly:V,onTitleClick:W,isChecked:G,onSelect:U,subTitle:J,noSpace:K,isDraggable:oe,sortableConfig:ce,headerClass:pe,icon:ue,additionalHeader:xe,mainClass:me,id:ve,childrenClass:ge,...ye})=>jsxRuntimeExports.jsxs("div",{id:ve,className:`${!K&&"mb-4"} ${a?"pb-1":""} ${me||""}`,style:ce?.style,...ye,children:[jsxRuntimeExports.jsxs("div",{className:cn$1("flex items-center justify-between cursor-pointer border border-neutral-200 dark:border-none bg-neutral-100 dark:bg-black-600 px-3 py-1 rounded-lg",pe),onClick:n,...ye,children:[jsxRuntimeExports.jsxs("div",{onClick:we=>W?W(we):null,className:`${oe&&"flex"} w-full`,children:[oe&&!V&&jsxRuntimeExports.jsx("button",{id:"btn-accordion-outline-drag-indicator",className:"flex items-center justify-center w-icon h-icon hover:transform hover:scale-125 transition-all duration-200 ease-in-out",...ce?.attributes,...ce?.listeners,children:jsxRuntimeExports.jsx(MdOutlineDragIndicator,{height:"10px",width:"7px",color:"#98A2B3"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1 w-full",children:[U&&jsxRuntimeExports.jsx(Radio,{isChecked:G,onSelect:we=>{we.stopPropagation(),U()},className:"h-4 w-4 accent-[#366FE3]"}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center",children:[ue,jsxRuntimeExports.jsx(Typography,{size:"small",appearance:"body",variant:"medium",className:"whitespace-nowrap",children:t})]}),jsxRuntimeExports.jsx(Typography,{size:"extra-small",appearance:"title",variant:"medium",className:"ml-1",children:J}),xe,jsxRuntimeExports.jsx("span",{children:s===o&&!V&&jsxRuntimeExports.jsx(IconButton,{variant:"ghost",children:jsxRuntimeExports.jsx(MdEdit,{size:16,className:"ml-[8px]"})})})]})]}),jsxRuntimeExports.jsx(AllIcons.ChevronLeft,{sx:{fontSize:18},className:cn$1("text-neutral-900 dark:text-neutral-400",a?"rotate-90":"-rotate-90")})]}),a?jsxRuntimeExports.jsx(framerMotion.motion.div,{className:` ${!K&&"p-4"} ${ge}`,children:e}):null]});Accordion.displayName="Accordion";function AiOutlineCheck(e){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},child:[]}]})(e)}const Stepper=({steps:e,currentStep:t,appearance:n="linear",labelPosition:a="inline",onClick:s,className:o,showIndex:V=!0,disableOneMore:W=!1,isMainSideBarOpen:G=!1,isAuthoringOpen:U=!1})=>{const J=React.useRef(null),[K,oe]=React.useState(0),[ce,pe]=React.useState(0),[ue,xe]=React.useState(0),[me,ve]=React.useState(""),[ge,ye]=React.useState(""),we=()=>a==="top"||a==="top-right"?"flex-col":a==="bottom"||a==="bottom-right"?"flex-col-reverse":n==="linear"?"flex-row":"flex-col",Se=()=>{setTimeout(()=>{oe(0);const Te=210,ze=225;let $e=0,We=0;for(let _e=0;_e<e.length&&(J?.current?.clientWidth&&J?.current?.clientWidth>$e+ze+Te);_e++)$e+=ze,We=_e+1;oe(We),J?.current?.clientWidth&&J?.current?.clientWidth<480&&oe(e?.length)},300)};React.useEffect(()=>{Se()},[G,e,t]),React.useEffect(()=>{setTimeout(()=>{Se()},300)},[U]),React.useEffect(()=>{if(K>0)if(K>t){let Te=e?.slice(K,e?.length)?.map($e=>$e?.label)?.join(", "),ze=K;W&&ze===e.length-1&&(ze=e.length,Te=""),pe(0),xe(ze),ye(Te)}else{const Te=Math.floor((K+1)/2),ze=t+Te-e?.length;let $e=t+Te,We=t-Math.max(K-Te,0)-(ze>0?ze:0),_e=e?.slice(0,We)?.map(Be=>Be?.label)?.join(", "),Ge=e?.slice($e,e?.length)?.map(Be=>Be?.label)?.join(", ");W&&We===1&&(We=0,_e=""),W&&$e===e.length-1&&($e=e.length,Ge=""),pe(We),xe($e),ve(_e),ye(Ge)}},[K,U,G,e,t]),useEventListener("resize",Se);const Ie=(Te,ze,$e=!1)=>jsxRuntimeExports.jsx("div",{onClick:()=>s?.(ze),className:`flex ${ze<e.length-1||n=="parallel"?"flex flex-grow":""} min-w-[200px] ${s?"cursor-pointer":""}`,children:jsxRuntimeExports.jsxs("div",{className:"w-full flex flex-col",children:[jsxRuntimeExports.jsxs("div",{className:`flex ${we()} ${a==="inline"&&n==="linear"?"items-center":""}`,children:[jsxRuntimeExports.jsxs("div",{className:`${a==="inline"?"max-w-[70%]":"w-full"} flex flex-col`,children:[jsxRuntimeExports.jsx("div",{className:`flex ${a==="top-right"||a==="bottom-right"?"justify-end":""}`,children:jsxRuntimeExports.jsx(Tooltip,{title:Te?.tooltipText,children:jsxRuntimeExports.jsxs(Typography,{size:"small",variant:"medium",className:`truncate flex items-center ${ze<=t?"text-primary-600 dark:text-primary-300":"text-neutral-400 dark:text-neutral-100"}`,appearance:"custom",children:[V?jsxRuntimeExports.jsx("div",{className:`${n==="parallel"?"flex items-center":`w-6 min-w-[24px] h-6 ${ze<=t?"bg-primary-600":"bg-neutral-400 dark:bg-black-400"} rounded-full flex items-center justify-center text-white`}`,children:Te?.isLocked?jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center",children:jsxRuntimeExports.jsx(AllIcons.Lock,{sx:{fontSize:16}})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:t>ze&&n==="linear"?jsxRuntimeExports.jsx(AiOutlineCheck,{className:"w-4 h-4"}):jsxRuntimeExports.jsx(Typography,{size:`${n==="parallel"?"small":"extra-small"}`,variant:"medium",className:"text-neutral-100",appearance:"custom",children:ze+1})})}):null,jsxRuntimeExports.jsx("div",{className:`truncate ${a==="inline"?"mx-2":"ml-2"} ${ze<=t?"":"dark:text-black-200"}`,children:Te?.label})]})})}),a!=="inline"||n==="parallel"?jsxRuntimeExports.jsx("div",{className:`flex ${a==="top-right"||a==="bottom-right"?"justify-end":n==="linear"?"ml-8":""}`,children:jsxRuntimeExports.jsx(Typography,{size:"extra-small",variant:"medium",className:`truncate ${ze===t?"text-neutral-900 dark:text-white":"text-neutral-400 dark:text-neutral-600"}`,appearance:"custom",children:Te?.description||""})}):null]}),ze<e.length-(n==="linear"&&a==="inline"?1:0)&&!$e?jsxRuntimeExports.jsx("div",{className:`w-full flex-grow h-0.5 min-w-[70px] ${a!=="inline"||n==="parallel"?"my-2":""} ${ze<=t-(n==="linear"&&a==="inline"?1:0)?"bg-primary-600":"bg-neutral-300"}`}):null]}),a==="inline"&&n==="linear"?jsxRuntimeExports.jsx(Typography,{size:"extra-small",variant:"medium",className:`ml-8 truncate ${ze===t?"text-neutral-900 dark:text-white":"text-neutral-400 dark:text-neutral-600"}`,appearance:"custom",children:Te?.description||""}):null]})},ze);return jsxRuntimeExports.jsxs("div",{className:`w-full flex ${o}`,ref:J,children:[ce>0?jsxRuntimeExports.jsxs("div",{className:`flex ${n==="parallel"?"flex-col":""}`,children:[s?jsxRuntimeExports.jsx(antd.Dropdown,{menu:{items:e.slice(0,ce).map((Te,ze)=>({label:jsxRuntimeExports.jsx("div",{className:"px-2 py-1",children:Ie(Te,ze,!0)}),key:ze}))},trigger:["click"],children:jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-K>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:me,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[ce," More..."]})})})}):jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-K>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:me,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[ce," More..."]})})}),jsxRuntimeExports.jsx("div",{className:`h-0.5 min-w-[40px] px-2 mr-2 bg-primary-600 ${n==="parallel"?"mt-2":"mt-[11px]"}`})]}):null,jsxRuntimeExports.jsx("div",{className:"w-full flex flex-wrap gap-3 ",children:e?.map((Te,ze)=>ce<=ze&&ze<ue?Ie(Te,ze):null)}),e.length-ue>0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col",children:[s?jsxRuntimeExports.jsx(antd.Dropdown,{menu:{items:e.slice(ue,e?.length).map((Te,ze)=>({label:jsxRuntimeExports.jsx("div",{className:"px-2 py-1",children:Ie(Te,ze+ue,!0)}),key:ze}))},trigger:["click"],children:jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-ue>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:ge,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[e.length-ue," More..."]})})})}):jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-ue>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:ge,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[e.length-ue," More..."]})})}),jsxRuntimeExports.jsx("div",{className:`h-0.5 min-w-[40px] px-2 ml-2 bg-neutral-300 ${n==="parallel"?"mt-2":"hidden"}`})]}):null]})};Stepper.displayName="Stepper";const Drawer=({children:e,onClose:t,open:n,title:a,parentContainer:s="full-screen-container",resizable:o,width:V=400,placement:W="right",closable:G=!1,mask:U,classNames:J,styles:K,getContainer:oe,zIndex:ce,footer:pe})=>{const ue=React.useRef(!1),[xe,me]=React.useState(V);React.useEffect(()=>{me(V)},[n,V]);const ve=React.useCallback(we=>{if(ue.current)if(W==="right"){const Se=document.body.offsetWidth-(we.clientX-document.body.offsetLeft);Se>256&&me(Se)}else we.clientX>256&&me(we.clientX)},[W,me]),ge=React.useCallback(()=>{ue.current&&(ue.current=!1)},[]);React.useEffect(()=>(document.addEventListener("mousemove",ve),document.addEventListener("mouseup",ge),()=>{document.removeEventListener("mousemove",ve),document.removeEventListener("mouseup",ge)}),[ve,ge]);const ye=typeof window<"u"?document.getElementById(s)||document.body:null;return ye?ReactDOM.createPortal(jsxRuntimeExports.jsxs(antd.Drawer,{closable:G,title:a,onClose:t,open:n,width:xe,getContainer:oe!==void 0?oe:!1,placement:W,mask:U,classNames:J,styles:K,zIndex:ce,footer:pe,children:[o&&jsxRuntimeExports.jsx("div",{className:"cursor-ew-resize w-1 pl-[2px] absolute top-0 bottom-0 z-[2100] bg-transparent dark:bg-black-600 hover:bg-neutral-200 dark:hover:bg-black-700",onMouseDown:()=>{ue.current=!0},style:W==="right"?{left:0}:{right:0}}),e]}),ye):null};Drawer.displayName="Drawer";const ConfirmPopUp=({children:e,onCancel:t,onOk:n,async:a,title:s,content:o,footer:V,width:W=500,isVisibleOutside:G=!1,ableToConfirmByChildren:U=!0,parentContainer:J})=>{const[K,oe]=React.useState(!1),[ce,pe]=React.useState(!1),ue=({closeByIcon:me})=>{oe(!1),t?.(me)},xe=()=>{a?(pe(!0),a(({error:me})=>{me?pe(!1):(pe(!1),n(),oe(!1))})):(n(),oe(!1))};return React.useEffect(()=>{e||oe(G)},[G,e]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Modal,{asForm:!0,width:W,title:jsxRuntimeExports.jsx("h1",{children:s}),parentContainer:J,open:K,onCancel:()=>ue({closeByIcon:!0}),footer:[jsxRuntimeExports.jsxs("div",{className:cn$1("flex gap-2",V?.justify||"justify-end"),children:[jsxRuntimeExports.jsx(Button,{id:"btn-confirm-popup-close",appearance:"outline",status:V?.cancelBtnType||"secondary-neutral",onClick:()=>ue({closeByIcon:!1}),className:"mt-10",children:V?.cancelText||"Cancel"}),jsxRuntimeExports.jsxs(Button,{id:`btn-confirm-popup-${V?.okText||"Ok"}`,disabled:ce,status:V?.okBtnType||"primary",onClick:xe,className:"mt-10",type:"submit",children:[ce?jsxRuntimeExports.jsx(CgSpinner,{className:"spinner inline mr-2 mb-0.5"}):null,V?.okText||"Ok"]})]},"")],children:jsxRuntimeExports.jsx("div",{className:"mt-5 mb-8",children:jsxRuntimeExports.jsx("h1",{className:"text-neutral-400 font-inter text-base",children:o})})}),e?U?React.cloneElement(e,{onClick:()=>U&&oe(!0)}):e:null]})};ConfirmPopUp.displayName="ConfirmPopUp";const ConfirmPopUp$1=React.memo(ConfirmPopUp),CardHeaderView=({title:e,to:t,hasUserPermissions:n=!0,viewMoreText:a="View More",LinkComponent:s})=>{const o=()=>{window.scrollTo(0,0)},V=J=>{J.stopPropagation()},W=()=>{o()},G=J=>{J.stopPropagation()},U="text-primary-600 font-semibold font-inter text-sm cursor-pointer hover:text-primary-700";return jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntimeExports.jsx(Typography,{variant:"semibold",size:"medium",appearance:"body",children:e}),n&&t?s?jsxRuntimeExports.jsx(s,{to:t,className:U,onClick:W,onMouseDown:V,onTouchStart:G,children:jsxRuntimeExports.jsx(Text,{emptyTag:!0,text:a})}):jsxRuntimeExports.jsx("a",{href:t,className:U,onClick:W,onMouseDown:V,onTouchStart:G,children:jsxRuntimeExports.jsx(Text,{emptyTag:!0,text:a})}):null]})};CardHeaderView.displayName="CardHeaderView";const CardMain=({title:e,children:t,noPadding:n,className:a,noBanner:s,noScrollbar:o,mode:V,displayId:W})=>{const G=V===MODES.EDIT||V===MODES.FOCUS_EDIT?"edit":V===MODES.COMPARISON?"compare":null,U=React.useMemo(()=>G==="edit"&&W&&!s||G==="compare",[G,W,s]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetTitle,{title:e}),jsxRuntimeExports.jsxs("div",{className:cn$1("relative h-[calc(100vh-56px)] overflow-y-auto flex flex-col bg-primary-800 dark:bg-black-800",`ease-in-out duration-${OPEN_DURATION_MS$1}`,a),children:[G==="edit"&&W&&!s?jsxRuntimeExports.jsx(Banner,{status:"warning",children:`You're currently editing ${W||""}`}):G==="compare"?jsxRuntimeExports.jsx(Banner,{status:"success",children:"You are now in Comparison Mode"}):null,jsxRuntimeExports.jsx("div",{className:cn$1(`flex-1 overflow-y-auto overflow-x-hidden bg-gray-50 dark:bg-black-700 ${o?"hide-scrollbar":""}`,n?"p-0":"p-base",U?"rounded-tl-none":"!rounded-tl-xl"),id:"app-body-container",children:t})]})]})};CardMain.displayName="CardMain";const TabContent=({tabs:e,content:t,title:n,noPadding:a=!1,drawerConfig:s,noBorderTopContent:o=!1,noBorder:V,className:W})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetTitle,{title:n}),jsxRuntimeExports.jsxs(Card,{className:`${!a&&"p-4"} relative ${W||""}`,children:[e&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"mb-4",children:e}),!V&&jsxRuntimeExports.jsx("div",{className:`${!o&&"mb-4"}`,children:jsxRuntimeExports.jsx("hr",{className:"w-full bg-neutral-200 dark:bg-black-800"})})]}),jsxRuntimeExports.jsx("div",{className:"flex flex-col flex-1",children:t}),s&&jsxRuntimeExports.jsx("div",{id:"tab-content-drawer-parent",children:jsxRuntimeExports.jsx(Drawer,{title:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 justify-between",children:[s.header," ",jsxRuntimeExports.jsx(AllIcons.Close,{sx:{fontSize:18},onClick:()=>s?.onClose(),className:"text-neutral-900 dark:text-neutral-100 cursor-pointer"})]}),width:400,getContainer:!1,open:s.open,onClose:()=>s?.onClose(),closable:!1,mask:!1,classNames:{content:"rounded-br-xl !p-0",body:"!p-0"},placement:"right",styles:{body:{padding:0,backgroundColor:"rgb(249 250 251)"}},parentContainer:"tab-content-drawer-parent",children:s.content})})]})]});TabContent.displayName="TabContent";const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function isWindow(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function isNode(e){return"nodeType"in e}function getWindow(e){var t,n;return e?isWindow(e)?e:isNode(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function isDocument(e){const{Document:t}=getWindow(e);return e instanceof t}function isHTMLElement(e){return isWindow(e)?!1:e instanceof getWindow(e).HTMLElement}function isSVGElement(e){return e instanceof getWindow(e).SVGElement}function getOwnerDocument(e){return e?isWindow(e)?e.document:isNode(e)?isDocument(e)?e:isHTMLElement(e)||isSVGElement(e)?e.ownerDocument:document:document:document}const useIsomorphicLayoutEffect=canUseDOM?React.useLayoutEffect:React.useEffect;function useEvent(e){const t=React.useRef(e);return useIsomorphicLayoutEffect(()=>{t.current=e}),React.useCallback(function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.current==null?void 0:t.current(...a)},[])}function useInterval(){const e=React.useRef(null),t=React.useCallback((a,s)=>{e.current=setInterval(a,s)},[]),n=React.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function useLatestValue(e,t){t===void 0&&(t=[e]);const n=React.useRef(e);return useIsomorphicLayoutEffect(()=>{n.current!==e&&(n.current=e)},t),n}function useLazyMemo(e,t){const n=React.useRef();return React.useMemo(()=>{const a=e(n.current);return n.current=a,a},[...t])}function useNodeRef(e){const t=useEvent(e),n=React.useRef(null),a=React.useCallback(s=>{s!==n.current&&t?.(s,n.current),n.current=s},[]);return[n,a]}function usePrevious(e){const t=React.useRef();return React.useEffect(()=>{t.current=e},[e]),t.current}let ids={};function useUniqueId(e,t){return React.useMemo(()=>{if(t)return t;const n=ids[e]==null?0:ids[e]+1;return ids[e]=n,e+"-"+n},[e,t])}function createAdjustmentFn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return a.reduce((o,V)=>{const W=Object.entries(V);for(const[G,U]of W){const J=o[G];J!=null&&(o[G]=J+e*U)}return o},{...t})}}const add=createAdjustmentFn(1),subtract=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(e){return"clientX"in e&&"clientY"in e}function isKeyboardEvent(e){if(!e)return!1;const{KeyboardEvent:t}=getWindow(e.target);return t&&e instanceof t}function isTouchEvent(e){if(!e)return!1;const{TouchEvent:t}=getWindow(e.target);return t&&e instanceof t}function getEventCoordinates(e){if(isTouchEvent(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return hasViewportRelativeCoordinates(e)?{x:e.clientX,y:e.clientY}:null}const CSS$1=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[CSS$1.Translate.toString(e),CSS$1.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:a}=e;return t+" "+n+"ms "+a}}}),SELECTOR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(e){return e.matches(SELECTOR)?e:e.querySelector(SELECTOR)}const hiddenStyles={display:"none"};function HiddenText(e){let{id:t,value:n}=e;return React.createElement("div",{id:t,style:hiddenStyles},n)}function LiveRegion(e){let{id:t,announcement:n,ariaLiveType:a="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return React.createElement("div",{id:t,style:s,role:"status","aria-live":a,"aria-atomic":!0},n)}function useAnnouncement(){const[e,t]=React.useState("");return{announce:React.useCallback(a=>{a!=null&&t(a)},[]),announcement:e}}const DndMonitorContext=React.createContext(null);function useDndMonitor(e){const t=React.useContext(DndMonitorContext);React.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function useDndMonitorProvider(){const[e]=React.useState(()=>new Set),t=React.useCallback(a=>(e.add(a),()=>e.delete(a)),[e]);return[React.useCallback(a=>{let{type:s,event:o}=a;e.forEach(V=>{var W;return(W=V[s])==null?void 0:W.call(V,o)})},[e]),t]}const defaultScreenReaderInstructions={draggable:`
|
|
340
|
+
}`;var Ut=ac(function(){return rr(qe,Mt+"return "+wt).apply(n,tt)});if(Ut.source=wt,Ss(Ut))throw Ut;return Ut}function Ep(X){return ir(X).toLowerCase()}function wp(X){return ir(X).toUpperCase()}function Rp(X,ne,Re){if(X=ir(X),X&&(Re||ne===n))return po(X);if(!X||!(ne=en(ne)))return X;var Le=gn(X),Xe=gn(ne),qe=mo(Le,Xe),tt=go(Le,Xe)+1;return Gn(Le,qe,tt).join("")}function Cp(X,ne,Re){if(X=ir(X),X&&(Re||ne===n))return X.slice(0,xo(X)+1);if(!X||!(ne=en(ne)))return X;var Le=gn(X),Xe=go(Le,gn(ne))+1;return Gn(Le,0,Xe).join("")}function Sp(X,ne,Re){if(X=ir(X),X&&(Re||ne===n))return X.replace($r,"");if(!X||!(ne=en(ne)))return X;var Le=gn(X),Xe=mo(Le,gn(ne));return Gn(Le,Xe).join("")}function Ap(X,ne){var Re=$e,Le=We;if(hr(ne)){var Xe="separator"in ne?ne.separator:Xe;Re="length"in ne?Gt(ne.length):Re,Le="omission"in ne?en(ne.omission):Le}X=ir(X);var qe=X.length;if(ai(X)){var tt=gn(X);qe=tt.length}if(Re>=qe)return X;var it=Re-si(Le);if(it<1)return Le;var ct=tt?Gn(tt,0,it).join(""):X.slice(0,it);if(Xe===n)return ct+Le;if(tt&&(it+=ct.length-it),As(Xe)){if(X.slice(it).search(Xe)){var xt,yt=ct;for(Xe.global||(Xe=$a(Xe.source,ir(nr.exec(Xe))+"g")),Xe.lastIndex=0;xt=Xe.exec(yt);)var wt=xt.index;ct=ct.slice(0,wt===n?it:wt)}}else if(X.indexOf(en(Xe),it)!=it){var St=ct.lastIndexOf(Xe);St>-1&&(ct=ct.slice(0,St))}return ct+Le}function _p(X){return X=ir(X),X&&Sr.test(X)?X.replace(Ln,tu):X}var Tp=hi(function(X,ne,Re){return X+(Re?" ":"")+ne.toUpperCase()}),ks=sl("toUpperCase");function ic(X,ne,Re){return X=ir(X),ne=Re?n:ne,ne===n?qc(X)?iu(X):Bc(X):X.match(ne)||[]}var ac=Yt(function(X,ne){try{return Kr(X,n,ne)}catch(Re){return Ss(Re)?Re:new Ht(Re)}}),kp=Pn(function(X,ne){return on(ne,function(Re){Re=Cn(Re),In(X,Re,Rs(X[Re],X))}),X});function Ip(X){var ne=X==null?0:X.length,Re=Dt();return X=ne?ur(X,function(Le){if(typeof Le[1]!="function")throw new ln(V);return[Re(Le[0]),Le[1]]}):[],Yt(function(Le){for(var Xe=-1;++Xe<ne;){var qe=X[Xe];if(Kr(qe[0],this,Le))return Kr(qe[1],this,Le)}})}function Mp(X){return t1(dn(X,K))}function Is(X){return function(){return X}}function Pp(X,ne){return X==null||X!==X?ne:X}var jp=ll(),Fp=ll(!0);function Zr(X){return X}function Ms(X){return No(typeof X=="function"?X:dn(X,K))}function Dp(X){return $o(dn(X,K))}function zp(X,ne){return Bo(X,dn(ne,K))}var Lp=Yt(function(X,ne){return function(Re){return Ai(Re,X,ne)}}),Np=Yt(function(X,ne){return function(Re){return Ai(X,Re,ne)}});function Ps(X,ne,Re){var Le=Ar(ne),Xe=ra(ne,Le);Re==null&&!(hr(ne)&&(Xe.length||!Le.length))&&(Re=ne,ne=X,X=this,Xe=ra(ne,Ar(ne)));var qe=!(hr(Re)&&"chain"in Re)||!!Re.chain,tt=Fn(X);return on(Xe,function(it){var ct=ne[it];X[it]=ct,tt&&(X.prototype[it]=function(){var xt=this.__chain__;if(qe||xt){var yt=X(this.__wrapped__),wt=yt.__actions__=Ur(this.__actions__);return wt.push({func:ct,args:arguments,thisArg:X}),yt.__chain__=xt,yt}return ct.apply(X,On([this.value()],arguments))})}),X}function Op(){return Ir._===this&&(Ir._=uu),this}function js(){}function $p(X){return X=Gt(X),Yt(function(ne){return Ho(ne,X)})}var Bp=cs(ur),Hp=cs(lo),Vp=cs(ja);function sc(X){return vs(X)?Fa(Cn(X)):x1(X)}function Wp(X){return function(ne){return X==null?n:Kn(X,ne)}}var Gp=ul(),Up=ul(!0);function Fs(){return[]}function Ds(){return!1}function Yp(){return{}}function Xp(){return""}function Zp(){return!0}function qp(X,ne){if(X=Gt(X),X<1||X>Ae)return[];var Re=Ue,Le=Fr(X,Ue);ne=Dt(ne),X-=Ue;for(var Xe=La(Le,ne);++Re<X;)ne(Re);return Xe}function Jp(X){return Vt(X)?ur(X,Cn):tn(X)?[X]:Ur(Al(ir(X)))}function Kp(X){var ne=++lu;return ir(X)+ne}var Qp=la(function(X,ne){return X+ne},0),e0=us("ceil"),t0=la(function(X,ne){return X/ne},1),r0=us("floor");function n0(X){return X&&X.length?ta(X,Zr,Xa):n}function i0(X,ne){return X&&X.length?ta(X,Dt(ne,2),Xa):n}function a0(X){return fo(X,Zr)}function s0(X,ne){return fo(X,Dt(ne,2))}function o0(X){return X&&X.length?ta(X,Zr,Ka):n}function l0(X,ne){return X&&X.length?ta(X,Dt(ne,2),Ka):n}var c0=la(function(X,ne){return X*ne},1),u0=us("round"),d0=la(function(X,ne){return X-ne},0);function f0(X){return X&&X.length?za(X,Zr):0}function h0(X,ne){return X&&X.length?za(X,Dt(ne,2)):0}return Ze.after=Df,Ze.ary=Ll,Ze.assign=wh,Ze.assignIn=Jl,Ze.assignInWith=Ea,Ze.assignWith=Rh,Ze.at=Ch,Ze.before=Nl,Ze.bind=Rs,Ze.bindAll=kp,Ze.bindKey=Ol,Ze.castArray=Yf,Ze.chain=Fl,Ze.chunk=td,Ze.compact=rd,Ze.concat=nd,Ze.cond=Ip,Ze.conforms=Mp,Ze.constant=Is,Ze.countBy=ff,Ze.create=Sh,Ze.curry=$l,Ze.curryRight=Bl,Ze.debounce=Hl,Ze.defaults=Ah,Ze.defaultsDeep=_h,Ze.defer=zf,Ze.delay=Lf,Ze.difference=id,Ze.differenceBy=ad,Ze.differenceWith=sd,Ze.drop=od,Ze.dropRight=ld,Ze.dropRightWhile=cd,Ze.dropWhile=ud,Ze.fill=dd,Ze.filter=pf,Ze.flatMap=vf,Ze.flatMapDeep=xf,Ze.flatMapDepth=yf,Ze.flatten=Il,Ze.flattenDeep=fd,Ze.flattenDepth=hd,Ze.flip=Nf,Ze.flow=jp,Ze.flowRight=Fp,Ze.fromPairs=pd,Ze.functions=Fh,Ze.functionsIn=Dh,Ze.groupBy=bf,Ze.initial=gd,Ze.intersection=vd,Ze.intersectionBy=xd,Ze.intersectionWith=yd,Ze.invert=Lh,Ze.invertBy=Nh,Ze.invokeMap=wf,Ze.iteratee=Ms,Ze.keyBy=Rf,Ze.keys=Ar,Ze.keysIn=Xr,Ze.map=ma,Ze.mapKeys=$h,Ze.mapValues=Bh,Ze.matches=Dp,Ze.matchesProperty=zp,Ze.memoize=va,Ze.merge=Hh,Ze.mergeWith=Kl,Ze.method=Lp,Ze.methodOf=Np,Ze.mixin=Ps,Ze.negate=xa,Ze.nthArg=$p,Ze.omit=Vh,Ze.omitBy=Wh,Ze.once=Of,Ze.orderBy=Cf,Ze.over=Bp,Ze.overArgs=$f,Ze.overEvery=Hp,Ze.overSome=Vp,Ze.partial=Cs,Ze.partialRight=Vl,Ze.partition=Sf,Ze.pick=Gh,Ze.pickBy=Ql,Ze.property=sc,Ze.propertyOf=Wp,Ze.pull=Rd,Ze.pullAll=Pl,Ze.pullAllBy=Cd,Ze.pullAllWith=Sd,Ze.pullAt=Ad,Ze.range=Gp,Ze.rangeRight=Up,Ze.rearg=Bf,Ze.reject=Tf,Ze.remove=_d,Ze.rest=Hf,Ze.reverse=Es,Ze.sampleSize=If,Ze.set=Yh,Ze.setWith=Xh,Ze.shuffle=Mf,Ze.slice=Td,Ze.sortBy=Ff,Ze.sortedUniq=Dd,Ze.sortedUniqBy=zd,Ze.split=vp,Ze.spread=Vf,Ze.tail=Ld,Ze.take=Nd,Ze.takeRight=Od,Ze.takeRightWhile=$d,Ze.takeWhile=Bd,Ze.tap=rf,Ze.throttle=Wf,Ze.thru=pa,Ze.toArray=Xl,Ze.toPairs=ec,Ze.toPairsIn=tc,Ze.toPath=Jp,Ze.toPlainObject=ql,Ze.transform=Zh,Ze.unary=Gf,Ze.union=Hd,Ze.unionBy=Vd,Ze.unionWith=Wd,Ze.uniq=Gd,Ze.uniqBy=Ud,Ze.uniqWith=Yd,Ze.unset=qh,Ze.unzip=ws,Ze.unzipWith=jl,Ze.update=Jh,Ze.updateWith=Kh,Ze.values=gi,Ze.valuesIn=Qh,Ze.without=Xd,Ze.words=ic,Ze.wrap=Uf,Ze.xor=Zd,Ze.xorBy=qd,Ze.xorWith=Jd,Ze.zip=Kd,Ze.zipObject=Qd,Ze.zipObjectDeep=ef,Ze.zipWith=tf,Ze.entries=ec,Ze.entriesIn=tc,Ze.extend=Jl,Ze.extendWith=Ea,Ps(Ze,Ze),Ze.add=Qp,Ze.attempt=ac,Ze.camelCase=np,Ze.capitalize=rc,Ze.ceil=e0,Ze.clamp=ep,Ze.clone=Xf,Ze.cloneDeep=qf,Ze.cloneDeepWith=Jf,Ze.cloneWith=Zf,Ze.conformsTo=Kf,Ze.deburr=nc,Ze.defaultTo=Pp,Ze.divide=t0,Ze.endsWith=ip,Ze.eq=xn,Ze.escape=ap,Ze.escapeRegExp=sp,Ze.every=hf,Ze.find=mf,Ze.findIndex=Tl,Ze.findKey=Th,Ze.findLast=gf,Ze.findLastIndex=kl,Ze.findLastKey=kh,Ze.floor=r0,Ze.forEach=Dl,Ze.forEachRight=zl,Ze.forIn=Ih,Ze.forInRight=Mh,Ze.forOwn=Ph,Ze.forOwnRight=jh,Ze.get=_s,Ze.gt=Qf,Ze.gte=eh,Ze.has=zh,Ze.hasIn=Ts,Ze.head=Ml,Ze.identity=Zr,Ze.includes=Ef,Ze.indexOf=md,Ze.inRange=tp,Ze.invoke=Oh,Ze.isArguments=ti,Ze.isArray=Vt,Ze.isArrayBuffer=th,Ze.isArrayLike=Yr,Ze.isArrayLikeObject=xr,Ze.isBoolean=rh,Ze.isBuffer=Un,Ze.isDate=nh,Ze.isElement=ih,Ze.isEmpty=ah,Ze.isEqual=sh,Ze.isEqualWith=oh,Ze.isError=Ss,Ze.isFinite=lh,Ze.isFunction=Fn,Ze.isInteger=Wl,Ze.isLength=ya,Ze.isMap=Gl,Ze.isMatch=ch,Ze.isMatchWith=uh,Ze.isNaN=dh,Ze.isNative=fh,Ze.isNil=ph,Ze.isNull=hh,Ze.isNumber=Ul,Ze.isObject=hr,Ze.isObjectLike=gr,Ze.isPlainObject=Pi,Ze.isRegExp=As,Ze.isSafeInteger=mh,Ze.isSet=Yl,Ze.isString=ba,Ze.isSymbol=tn,Ze.isTypedArray=mi,Ze.isUndefined=gh,Ze.isWeakMap=vh,Ze.isWeakSet=xh,Ze.join=bd,Ze.kebabCase=op,Ze.last=hn,Ze.lastIndexOf=Ed,Ze.lowerCase=lp,Ze.lowerFirst=cp,Ze.lt=yh,Ze.lte=bh,Ze.max=n0,Ze.maxBy=i0,Ze.mean=a0,Ze.meanBy=s0,Ze.min=o0,Ze.minBy=l0,Ze.stubArray=Fs,Ze.stubFalse=Ds,Ze.stubObject=Yp,Ze.stubString=Xp,Ze.stubTrue=Zp,Ze.multiply=c0,Ze.nth=wd,Ze.noConflict=Op,Ze.noop=js,Ze.now=ga,Ze.pad=up,Ze.padEnd=dp,Ze.padStart=fp,Ze.parseInt=hp,Ze.random=rp,Ze.reduce=Af,Ze.reduceRight=_f,Ze.repeat=pp,Ze.replace=mp,Ze.result=Uh,Ze.round=u0,Ze.runInContext=lt,Ze.sample=kf,Ze.size=Pf,Ze.snakeCase=gp,Ze.some=jf,Ze.sortedIndex=kd,Ze.sortedIndexBy=Id,Ze.sortedIndexOf=Md,Ze.sortedLastIndex=Pd,Ze.sortedLastIndexBy=jd,Ze.sortedLastIndexOf=Fd,Ze.startCase=xp,Ze.startsWith=yp,Ze.subtract=d0,Ze.sum=f0,Ze.sumBy=h0,Ze.template=bp,Ze.times=qp,Ze.toFinite=Dn,Ze.toInteger=Gt,Ze.toLength=Zl,Ze.toLower=Ep,Ze.toNumber=pn,Ze.toSafeInteger=Eh,Ze.toString=ir,Ze.toUpper=wp,Ze.trim=Rp,Ze.trimEnd=Cp,Ze.trimStart=Sp,Ze.truncate=Ap,Ze.unescape=_p,Ze.uniqueId=Kp,Ze.upperCase=Tp,Ze.upperFirst=ks,Ze.each=Dl,Ze.eachRight=zl,Ze.first=Ml,Ps(Ze,function(){var X={};return wn(Ze,function(ne,Re){ar.call(Ze.prototype,Re)||(X[Re]=ne)}),X}(),{chain:!1}),Ze.VERSION=a,on(["bind","bindKey","curry","curryRight","partial","partialRight"],function(X){Ze[X].placeholder=Ze}),on(["drop","take"],function(X,ne){Jt.prototype[X]=function(Re){Re=Re===n?1:Rr(Gt(Re),0);var Le=this.__filtered__&&!ne?new Jt(this):this.clone();return Le.__filtered__?Le.__takeCount__=Fr(Re,Le.__takeCount__):Le.__views__.push({size:Fr(Re,Ue),type:X+(Le.__dir__<0?"Right":"")}),Le},Jt.prototype[X+"Right"]=function(Re){return this.reverse()[X](Re).reverse()}}),on(["filter","map","takeWhile"],function(X,ne){var Re=ne+1,Le=Re==Be||Re==ke;Jt.prototype[X]=function(Xe){var qe=this.clone();return qe.__iteratees__.push({iteratee:Dt(Xe,3),type:Re}),qe.__filtered__=qe.__filtered__||Le,qe}}),on(["head","last"],function(X,ne){var Re="take"+(ne?"Right":"");Jt.prototype[X]=function(){return this[Re](1).value()[0]}}),on(["initial","tail"],function(X,ne){var Re="drop"+(ne?"":"Right");Jt.prototype[X]=function(){return this.__filtered__?new Jt(this):this[Re](1)}}),Jt.prototype.compact=function(){return this.filter(Zr)},Jt.prototype.find=function(X){return this.filter(X).head()},Jt.prototype.findLast=function(X){return this.reverse().find(X)},Jt.prototype.invokeMap=Yt(function(X,ne){return typeof X=="function"?new Jt(this):this.map(function(Re){return Ai(Re,X,ne)})}),Jt.prototype.reject=function(X){return this.filter(xa(Dt(X)))},Jt.prototype.slice=function(X,ne){X=Gt(X);var Re=this;return Re.__filtered__&&(X>0||ne<0)?new Jt(Re):(X<0?Re=Re.takeRight(-X):X&&(Re=Re.drop(X)),ne!==n&&(ne=Gt(ne),Re=ne<0?Re.dropRight(-ne):Re.take(ne-X)),Re)},Jt.prototype.takeRightWhile=function(X){return this.reverse().takeWhile(X).reverse()},Jt.prototype.toArray=function(){return this.take(Ue)},wn(Jt.prototype,function(X,ne){var Re=/^(?:filter|find|map|reject)|While$/.test(ne),Le=/^(?:head|last)$/.test(ne),Xe=Ze[Le?"take"+(ne=="last"?"Right":""):ne],qe=Le||/^find/.test(ne);Xe&&(Ze.prototype[ne]=function(){var tt=this.__wrapped__,it=Le?[1]:arguments,ct=tt instanceof Jt,xt=it[0],yt=ct||Vt(tt),wt=function(Zt){var Qt=Xe.apply(Ze,On([Zt],it));return Le&&St?Qt[0]:Qt};yt&&Re&&typeof xt=="function"&&xt.length!=1&&(ct=yt=!1);var St=this.__chain__,Mt=!!this.__actions__.length,Lt=qe&&!St,Ut=ct&&!Mt;if(!qe&&yt){tt=Ut?tt:new Jt(this);var Nt=X.apply(tt,it);return Nt.__actions__.push({func:pa,args:[wt],thisArg:n}),new un(Nt,St)}return Lt&&Ut?X.apply(this,it):(Nt=this.thru(wt),Lt?Le?Nt.value()[0]:Nt.value():Nt)})}),on(["pop","push","shift","sort","splice","unshift"],function(X){var ne=$i[X],Re=/^(?:push|sort|unshift)$/.test(X)?"tap":"thru",Le=/^(?:pop|shift)$/.test(X);Ze.prototype[X]=function(){var Xe=arguments;if(Le&&!this.__chain__){var qe=this.value();return ne.apply(Vt(qe)?qe:[],Xe)}return this[Re](function(tt){return ne.apply(Vt(tt)?tt:[],Xe)})}}),wn(Jt.prototype,function(X,ne){var Re=Ze[ne];if(Re){var Le=Re.name+"";ar.call(ui,Le)||(ui[Le]=[]),ui[Le].push({name:ne,func:Re})}}),ui[oa(n,me).name]=[{name:"wrapper",func:n}],Jt.prototype.clone=Au,Jt.prototype.reverse=_u,Jt.prototype.value=Tu,Ze.prototype.at=nf,Ze.prototype.chain=af,Ze.prototype.commit=sf,Ze.prototype.next=of,Ze.prototype.plant=cf,Ze.prototype.reverse=uf,Ze.prototype.toJSON=Ze.prototype.valueOf=Ze.prototype.value=df,Ze.prototype.first=Ze.prototype.head,yi&&(Ze.prototype[yi]=lf),Ze},oi=au();Yn?((Yn.exports=oi)._=oi,ka._=oi):Ir._=oi}).call(lodash)}(lodash$1,lodash$1.exports)),lodash$1.exports}var lodashExports=requireLodash();const Text=({LText:e,RText:t,emptyTag:n,text:a="",LeftIcon:s,role:o="",children:V,RightIcon:W,tagName:G="p",className:U="",onClick:J=lodashExports.noop})=>{const{t:K}=useTranslation(),oe=G,ce=jsxRuntimeExports.jsxs(React.Fragment,{children:[e&&e,K(a),t&&t]});return oe&&!n?jsxRuntimeExports.jsxs(oe,{onClick:J,className:cn$1({[U]:U}),role:G==="button"&&"button"||o,children:[s&&jsxRuntimeExports.jsx(s,{}),ce,V,W&&jsxRuntimeExports.jsx(W,{})]}):ce};Text.displayName="Text";const TextWithStrike=({text:e})=>{const[t,n]=React.useState([]),a=()=>{const s=e.split(/(<um>.*?<\/um>)/);n(s)};return React.useEffect(()=>{a()},[e]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:t.map((s,o)=>s.includes("<um>")?jsxRuntimeExports.jsx("span",{className:"bg-yellow-100 dark:bg-yellow-900 decoration-gray-600",children:s.replace(/<um>|<\/um>/g,"")},o):jsxRuntimeExports.jsx("span",{children:s},o))})};TextWithStrike.displayName="TextWithStrike";const DynamicItemsCellComponent=({items:e,isDarkMode:t,getLabel:n,getColor:a,getId:s=J=>J?.id??"",moreTagColor:o="gray",useHashColor:V=!1,tooltipPlacement:W="topRight",className:G="w-full",containerWidth:U})=>{const J=React.useCallback(me=>me?me.length*8+20:0,[]),K=React.useCallback(()=>{if(!U||!e?.length)return 0;const me=U,ve=J("+ XX more")+10;let ge=0,ye=0;for(let we=0;we<e.length;we++){const Se=e[we],Ie=J(n(Se)),Te=8;if(we>0&&ye+Ie+Te+ve>me)break;if(we===0||ye+Ie+Te<=me)ye+=Ie+Te,ge++;else break}return Math.max(1,ge)},[U,e,J,n]),oe=React.useMemo(()=>U?K():0,[U,K]),ce=React.useMemo(()=>e?.slice(0,oe)||[],[e,oe]),pe=React.useMemo(()=>e?.length>oe,[e?.length,oe]),ue=React.useMemo(()=>e?.length>0&&pe?jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-2 p-2 max-h-[300px] overflow-y-auto dark:bg-neutral-800",children:e?.slice(oe,e?.length).map((me,ve)=>jsxRuntimeExports.jsx("div",{className:"w-fit cursor-pointer",children:jsxRuntimeExports.jsx(Tag,{label:n(me),color:a(me),size:"sm",isHashColor:V,theme:t?"dark":"light"},`tooltip-tag-${oe+ve}`)},`tooltip-${oe+ve}`))}):null,[e,pe,oe,n,a,V,t]),xe=React.useCallback((me,ve)=>me.map((ge,ye)=>jsxRuntimeExports.jsx(Tag,{label:n(ge),color:a(ge),size:"sm",isHashColor:V,theme:t?"dark":"light"},`${ve}-${s(ge)||ye}`)),[s,n,a,V,t]);return jsxRuntimeExports.jsx("div",{className:G,children:pe?jsxRuntimeExports.jsx(antd.Tooltip,{title:ue,placement:W,classNames:{root:"dynamic-items-tooltip"},arrow:!1,styles:{root:{zIndex:1050}},color:t?"black":"white",children:jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center cursor-pointer",children:[xe(ce,"display"),jsxRuntimeExports.jsx(Tag,{label:`+${e.length-oe} more`,color:o,size:"sm",isHashColor:V,theme:t?"dark":"light"},"more-items-tag")]})}):jsxRuntimeExports.jsx("div",{className:"flex gap-2 items-center",children:xe(ce,"no-tooltip")})})};DynamicItemsCellComponent.displayName="DynamicItemsCell";const DynamicItemsCell=React.memo(DynamicItemsCellComponent),formatNumber=(e,t,n)=>{if(e==null||e==="")return"";const a=typeof e=="string"?parseFloat(e):e;if(isNaN(a))return String(e);const s=n!==void 0?a.toFixed(n):a;switch(t){case"comma":return Number(s).toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n});case"currency":return Number(s).toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n??2,maximumFractionDigits:n??2});case"percent":return`${Number(s).toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n})}%`;default:return String(s)}},NumberInputField=({label:e,className:t,disabled:n,onChange:a,value:s,numberFormat:o,precision:V=void 0,id:W,style:G,...U})=>{const[J,K]=React.useState(!1),oe=()=>{K(!0)},ce=pe=>{K(!1),a?.(pe.target.value)};return jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntimeExports.jsx(Typography,{size:"extra-small",variant:"regular",appearance:"subtitle",children:e}),jsxRuntimeExports.jsx("input",{id:W,type:J?"number":"text",className:cn$1(t),disabled:n,onChange:({target:pe})=>a&&a(pe.value),onFocus:oe,onBlur:ce,value:!J&&o?formatNumber(s,o,V):s,style:{fontStyle:"inherit",...G},autoComplete:"off",...U})]})};NumberInputField.displayName="NumberInputField";const Accordion=({children:e,title:t,toggle:n,isOpen:a,hoveringIndex:s,index:o,viewOnly:V,onTitleClick:W,isChecked:G,onSelect:U,subTitle:J,noSpace:K,isDraggable:oe,sortableConfig:ce,headerClass:pe,icon:ue,additionalHeader:xe,mainClass:me,id:ve,childrenClass:ge,...ye})=>jsxRuntimeExports.jsxs("div",{id:ve,className:`${!K&&"mb-4"} ${a?"pb-1":""} ${me||""}`,style:ce?.style,...ye,children:[jsxRuntimeExports.jsxs("div",{className:cn$1("flex items-center justify-between cursor-pointer border border-neutral-200 dark:border-none bg-neutral-100 dark:bg-black-600 px-3 py-1 rounded-lg",pe),onClick:n,...ye,children:[jsxRuntimeExports.jsxs("div",{onClick:we=>W?W(we):null,className:`${oe&&"flex"} w-full`,children:[oe&&!V&&jsxRuntimeExports.jsx("button",{id:"btn-accordion-outline-drag-indicator",className:"flex items-center justify-center w-icon h-icon hover:transform hover:scale-125 transition-all duration-200 ease-in-out",...ce?.attributes,...ce?.listeners,children:jsxRuntimeExports.jsx(MdOutlineDragIndicator,{height:"10px",width:"7px",color:"#98A2B3"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1 w-full",children:[U&&jsxRuntimeExports.jsx(Radio,{isChecked:G,onSelect:we=>{we.stopPropagation(),U()},className:"h-4 w-4 accent-[#366FE3]"}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center",children:[ue,jsxRuntimeExports.jsx(Typography,{size:"small",appearance:"body",variant:"medium",className:"whitespace-nowrap",children:t})]}),jsxRuntimeExports.jsx(Typography,{size:"extra-small",appearance:"title",variant:"medium",className:"ml-1",children:J}),xe,jsxRuntimeExports.jsx("span",{children:s===o&&!V&&jsxRuntimeExports.jsx(IconButton,{variant:"ghost",children:jsxRuntimeExports.jsx(MdEdit,{size:16,className:"ml-[8px]"})})})]})]}),jsxRuntimeExports.jsx(AllIcons.ChevronLeft,{sx:{fontSize:18},className:cn$1("text-neutral-900 dark:text-neutral-400",a?"rotate-90":"-rotate-90")})]}),a?jsxRuntimeExports.jsx(framerMotion.motion.div,{className:` ${!K&&"p-4"} ${ge}`,children:e}):null]});Accordion.displayName="Accordion";function AiOutlineCheck(e){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},child:[]}]})(e)}const Stepper=({steps:e,currentStep:t,appearance:n="linear",labelPosition:a="inline",onClick:s,className:o,showIndex:V=!0,disableOneMore:W=!1,isMainSideBarOpen:G=!1,isAuthoringOpen:U=!1})=>{const J=React.useRef(null),[K,oe]=React.useState(0),[ce,pe]=React.useState(0),[ue,xe]=React.useState(0),[me,ve]=React.useState(""),[ge,ye]=React.useState(""),we=()=>a==="top"||a==="top-right"?"flex-col":a==="bottom"||a==="bottom-right"?"flex-col-reverse":n==="linear"?"flex-row":"flex-col",Se=()=>{setTimeout(()=>{oe(0);const Te=210,ze=225;let $e=0,We=0;for(let _e=0;_e<e.length&&(J?.current?.clientWidth&&J?.current?.clientWidth>$e+ze+Te);_e++)$e+=ze,We=_e+1;oe(We),J?.current?.clientWidth&&J?.current?.clientWidth<480&&oe(e?.length)},300)};React.useEffect(()=>{Se()},[G,e,t]),React.useEffect(()=>{setTimeout(()=>{Se()},300)},[U]),React.useEffect(()=>{if(K>0)if(K>t){let Te=e?.slice(K,e?.length)?.map($e=>$e?.label)?.join(", "),ze=K;W&&ze===e.length-1&&(ze=e.length,Te=""),pe(0),xe(ze),ye(Te)}else{const Te=Math.floor((K+1)/2),ze=t+Te-e?.length;let $e=t+Te,We=t-Math.max(K-Te,0)-(ze>0?ze:0),_e=e?.slice(0,We)?.map(Be=>Be?.label)?.join(", "),Ge=e?.slice($e,e?.length)?.map(Be=>Be?.label)?.join(", ");W&&We===1&&(We=0,_e=""),W&&$e===e.length-1&&($e=e.length,Ge=""),pe(We),xe($e),ve(_e),ye(Ge)}},[K,U,G,e,t]),useEventListener("resize",Se);const Ie=(Te,ze,$e=!1)=>jsxRuntimeExports.jsx("div",{onClick:()=>s?.(ze),className:`flex ${ze<e.length-1||n=="parallel"?"flex flex-grow":""} min-w-[200px] ${s?"cursor-pointer":""}`,children:jsxRuntimeExports.jsxs("div",{className:"w-full flex flex-col",children:[jsxRuntimeExports.jsxs("div",{className:`flex ${we()} ${a==="inline"&&n==="linear"?"items-center":""}`,children:[jsxRuntimeExports.jsxs("div",{className:`${a==="inline"?"max-w-[70%]":"w-full"} flex flex-col`,children:[jsxRuntimeExports.jsx("div",{className:`flex ${a==="top-right"||a==="bottom-right"?"justify-end":""}`,children:jsxRuntimeExports.jsx(Tooltip,{title:Te?.tooltipText,children:jsxRuntimeExports.jsxs(Typography,{size:"small",variant:"medium",className:`truncate flex items-center ${ze<=t?"text-primary-600 dark:text-primary-300":"text-neutral-400 dark:text-neutral-100"}`,appearance:"custom",children:[V?jsxRuntimeExports.jsx("div",{className:`${n==="parallel"?"flex items-center":`w-6 min-w-[24px] h-6 ${ze<=t?"bg-primary-600":"bg-neutral-400 dark:bg-black-400"} rounded-full flex items-center justify-center text-white`}`,children:Te?.isLocked?jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center",children:jsxRuntimeExports.jsx(AllIcons.Lock,{sx:{fontSize:16}})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:t>ze&&n==="linear"?jsxRuntimeExports.jsx(AiOutlineCheck,{className:"w-4 h-4"}):jsxRuntimeExports.jsx(Typography,{size:`${n==="parallel"?"small":"extra-small"}`,variant:"medium",className:"text-neutral-100",appearance:"custom",children:ze+1})})}):null,jsxRuntimeExports.jsx("div",{className:`truncate ${a==="inline"?"mx-2":"ml-2"} ${ze<=t?"":"dark:text-black-200"}`,children:Te?.label})]})})}),a!=="inline"||n==="parallel"?jsxRuntimeExports.jsx("div",{className:`flex ${a==="top-right"||a==="bottom-right"?"justify-end":n==="linear"?"ml-8":""}`,children:jsxRuntimeExports.jsx(Typography,{size:"extra-small",variant:"medium",className:`truncate ${ze===t?"text-neutral-900 dark:text-white":"text-neutral-400 dark:text-neutral-600"}`,appearance:"custom",children:Te?.description||""})}):null]}),ze<e.length-(n==="linear"&&a==="inline"?1:0)&&!$e?jsxRuntimeExports.jsx("div",{className:`w-full flex-grow h-0.5 min-w-[70px] ${a!=="inline"||n==="parallel"?"my-2":""} ${ze<=t-(n==="linear"&&a==="inline"?1:0)?"bg-primary-600":"bg-neutral-300"}`}):null]}),a==="inline"&&n==="linear"?jsxRuntimeExports.jsx(Typography,{size:"extra-small",variant:"medium",className:`ml-8 truncate ${ze===t?"text-neutral-900 dark:text-white":"text-neutral-400 dark:text-neutral-600"}`,appearance:"custom",children:Te?.description||""}):null]})},ze);return jsxRuntimeExports.jsxs("div",{className:`w-full flex ${o}`,ref:J,children:[ce>0?jsxRuntimeExports.jsxs("div",{className:`flex ${n==="parallel"?"flex-col":""}`,children:[s?jsxRuntimeExports.jsx(antd.Dropdown,{menu:{items:e.slice(0,ce).map((Te,ze)=>({label:jsxRuntimeExports.jsx("div",{className:"px-2 py-1",children:Ie(Te,ze,!0)}),key:ze}))},trigger:["click"],children:jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-K>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:me,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[ce," More..."]})})})}):jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-K>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:me,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[ce," More..."]})})}),jsxRuntimeExports.jsx("div",{className:`h-0.5 min-w-[40px] px-2 mr-2 bg-primary-600 ${n==="parallel"?"mt-2":"mt-[11px]"}`})]}):null,jsxRuntimeExports.jsx("div",{className:"w-full flex flex-wrap gap-3 ",children:e?.map((Te,ze)=>ce<=ze&&ze<ue?Ie(Te,ze):null)}),e.length-ue>0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col",children:[s?jsxRuntimeExports.jsx(antd.Dropdown,{menu:{items:e.slice(ue,e?.length).map((Te,ze)=>({label:jsxRuntimeExports.jsx("div",{className:"px-2 py-1",children:Ie(Te,ze+ue,!0)}),key:ze}))},trigger:["click"],children:jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-ue>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:ge,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[e.length-ue," More..."]})})})}):jsxRuntimeExports.jsx(Typography,{size:"small",variant:"medium",className:`px-2 ${e.length-ue>0?"cursor-pointer":"cursor-not-allowed"}`,appearance:"subtitle",children:jsxRuntimeExports.jsx(Tooltip,{title:ge,children:jsxRuntimeExports.jsxs("div",{className:"min-w-max",children:[e.length-ue," More..."]})})}),jsxRuntimeExports.jsx("div",{className:`h-0.5 min-w-[40px] px-2 ml-2 bg-neutral-300 ${n==="parallel"?"mt-2":"hidden"}`})]}):null]})};Stepper.displayName="Stepper";const Drawer=({id:e,children:t,onClose:n,open:a,title:s,parentContainer:o="full-screen-container",resizable:V,width:W=400,placement:G="right",closable:U=!1,mask:J,classNames:K,styles:oe,getContainer:ce,zIndex:pe,footer:ue})=>{const xe=React.useRef(!1),[me,ve]=React.useState(W);React.useEffect(()=>{ve(W)},[a,W]);const ge=React.useCallback(Se=>{if(xe.current)if(G==="right"){const Ie=document.body.offsetWidth-(Se.clientX-document.body.offsetLeft);Ie>256&&ve(Ie)}else Se.clientX>256&&ve(Se.clientX)},[G,ve]),ye=React.useCallback(()=>{xe.current&&(xe.current=!1)},[]);React.useEffect(()=>(document.addEventListener("mousemove",ge),document.addEventListener("mouseup",ye),()=>{document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",ye)}),[ge,ye]);const we=typeof window<"u"?document.getElementById(o)||document.body:null;return we?ReactDOM.createPortal(jsxRuntimeExports.jsxs(antd.Drawer,{id:e||"",closable:U,title:s,onClose:n,open:a,width:me,getContainer:ce!==void 0?ce:!1,placement:G,mask:J,classNames:K,styles:oe,zIndex:pe,footer:ue,children:[V&&jsxRuntimeExports.jsx("div",{className:"cursor-ew-resize w-1 pl-[2px] absolute top-0 bottom-0 z-[2100] bg-transparent dark:bg-black-600 hover:bg-neutral-200 dark:hover:bg-black-700",onMouseDown:()=>{xe.current=!0},style:G==="right"?{left:0}:{right:0}}),t]}),we):null};Drawer.displayName="Drawer";const ConfirmPopUp=({children:e,onCancel:t,onOk:n,async:a,title:s,content:o,footer:V,width:W=500,isVisibleOutside:G=!1,ableToConfirmByChildren:U=!0,parentContainer:J})=>{const[K,oe]=React.useState(!1),[ce,pe]=React.useState(!1),ue=({closeByIcon:me})=>{oe(!1),t?.(me)},xe=()=>{a?(pe(!0),a(({error:me})=>{me?pe(!1):(pe(!1),n(),oe(!1))})):(n(),oe(!1))};return React.useEffect(()=>{e||oe(G)},[G,e]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Modal,{asForm:!0,width:W,title:jsxRuntimeExports.jsx("h1",{children:s}),parentContainer:J,open:K,onCancel:()=>ue({closeByIcon:!0}),footer:[jsxRuntimeExports.jsxs("div",{className:cn$1("flex gap-2",V?.justify||"justify-end"),children:[jsxRuntimeExports.jsx(Button,{id:"btn-confirm-popup-close",appearance:"outline",status:V?.cancelBtnType||"secondary-neutral",onClick:()=>ue({closeByIcon:!1}),className:"mt-10",children:V?.cancelText||"Cancel"}),jsxRuntimeExports.jsxs(Button,{id:`btn-confirm-popup-${V?.okText||"Ok"}`,disabled:ce,status:V?.okBtnType||"primary",onClick:xe,className:"mt-10",type:"submit",children:[ce?jsxRuntimeExports.jsx(CgSpinner,{className:"spinner inline mr-2 mb-0.5"}):null,V?.okText||"Ok"]})]},"")],children:jsxRuntimeExports.jsx("div",{className:"mt-5 mb-8",children:jsxRuntimeExports.jsx("h1",{className:"text-neutral-400 font-inter text-base",children:o})})}),e?U?React.cloneElement(e,{onClick:()=>U&&oe(!0)}):e:null]})};ConfirmPopUp.displayName="ConfirmPopUp";const ConfirmPopUp$1=React.memo(ConfirmPopUp),CardHeaderView=({title:e,to:t,hasUserPermissions:n=!0,viewMoreText:a="View More",LinkComponent:s})=>{const o=()=>{window.scrollTo(0,0)},V=J=>{J.stopPropagation()},W=()=>{o()},G=J=>{J.stopPropagation()},U="text-primary-600 font-semibold font-inter text-sm cursor-pointer hover:text-primary-700";return jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntimeExports.jsx(Typography,{variant:"semibold",size:"medium",appearance:"body",children:e}),n&&t?s?jsxRuntimeExports.jsx(s,{to:t,className:U,onClick:W,onMouseDown:V,onTouchStart:G,children:jsxRuntimeExports.jsx(Text,{emptyTag:!0,text:a})}):jsxRuntimeExports.jsx("a",{href:t,className:U,onClick:W,onMouseDown:V,onTouchStart:G,children:jsxRuntimeExports.jsx(Text,{emptyTag:!0,text:a})}):null]})};CardHeaderView.displayName="CardHeaderView";const CardMain=({title:e,children:t,noPadding:n,className:a,noBanner:s,noScrollbar:o,mode:V,displayId:W})=>{const G=V===MODES.EDIT||V===MODES.FOCUS_EDIT?"edit":V===MODES.COMPARISON?"compare":null,U=React.useMemo(()=>G==="edit"&&W&&!s||G==="compare",[G,W,s]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetTitle,{title:e}),jsxRuntimeExports.jsxs("div",{className:cn$1("relative h-[calc(100vh-56px)] overflow-y-auto flex flex-col bg-primary-800 dark:bg-black-800",`ease-in-out duration-${OPEN_DURATION_MS$1}`,a),children:[G==="edit"&&W&&!s?jsxRuntimeExports.jsx(Banner,{status:"warning",children:`You're currently editing ${W||""}`}):G==="compare"?jsxRuntimeExports.jsx(Banner,{status:"success",children:"You are now in Comparison Mode"}):null,jsxRuntimeExports.jsx("div",{className:cn$1(`flex-1 overflow-y-auto overflow-x-hidden bg-gray-50 dark:bg-black-700 ${o?"hide-scrollbar":""}`,n?"p-0":"p-base",U?"rounded-tl-none":"!rounded-tl-xl"),id:"app-body-container",children:t})]})]})};CardMain.displayName="CardMain";const TabContent=({tabs:e,content:t,title:n,noPadding:a=!1,drawerConfig:s,noBorderTopContent:o=!1,noBorder:V,className:W})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetTitle,{title:n}),jsxRuntimeExports.jsxs(Card,{className:`${!a&&"p-4"} relative ${W||""}`,children:[e&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"mb-4",children:e}),!V&&jsxRuntimeExports.jsx("div",{className:`${!o&&"mb-4"}`,children:jsxRuntimeExports.jsx("hr",{className:"w-full bg-neutral-200 dark:bg-black-800"})})]}),jsxRuntimeExports.jsx("div",{className:"flex flex-col flex-1",children:t}),s&&jsxRuntimeExports.jsx("div",{id:"tab-content-drawer-parent",children:jsxRuntimeExports.jsx(Drawer,{title:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 justify-between",children:[s.header," ",jsxRuntimeExports.jsx(AllIcons.Close,{sx:{fontSize:18},onClick:()=>s?.onClose(),className:"text-neutral-900 dark:text-neutral-100 cursor-pointer"})]}),width:400,getContainer:!1,open:s.open,onClose:()=>s?.onClose(),closable:!1,mask:!1,classNames:{content:"rounded-br-xl !p-0",body:"!p-0"},placement:"right",styles:{body:{padding:0,backgroundColor:"rgb(249 250 251)"}},parentContainer:"tab-content-drawer-parent",children:s.content})})]})]});TabContent.displayName="TabContent";const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function isWindow(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function isNode(e){return"nodeType"in e}function getWindow(e){var t,n;return e?isWindow(e)?e:isNode(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function isDocument(e){const{Document:t}=getWindow(e);return e instanceof t}function isHTMLElement(e){return isWindow(e)?!1:e instanceof getWindow(e).HTMLElement}function isSVGElement(e){return e instanceof getWindow(e).SVGElement}function getOwnerDocument(e){return e?isWindow(e)?e.document:isNode(e)?isDocument(e)?e:isHTMLElement(e)||isSVGElement(e)?e.ownerDocument:document:document:document}const useIsomorphicLayoutEffect=canUseDOM?React.useLayoutEffect:React.useEffect;function useEvent(e){const t=React.useRef(e);return useIsomorphicLayoutEffect(()=>{t.current=e}),React.useCallback(function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.current==null?void 0:t.current(...a)},[])}function useInterval(){const e=React.useRef(null),t=React.useCallback((a,s)=>{e.current=setInterval(a,s)},[]),n=React.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function useLatestValue(e,t){t===void 0&&(t=[e]);const n=React.useRef(e);return useIsomorphicLayoutEffect(()=>{n.current!==e&&(n.current=e)},t),n}function useLazyMemo(e,t){const n=React.useRef();return React.useMemo(()=>{const a=e(n.current);return n.current=a,a},[...t])}function useNodeRef(e){const t=useEvent(e),n=React.useRef(null),a=React.useCallback(s=>{s!==n.current&&t?.(s,n.current),n.current=s},[]);return[n,a]}function usePrevious(e){const t=React.useRef();return React.useEffect(()=>{t.current=e},[e]),t.current}let ids={};function useUniqueId(e,t){return React.useMemo(()=>{if(t)return t;const n=ids[e]==null?0:ids[e]+1;return ids[e]=n,e+"-"+n},[e,t])}function createAdjustmentFn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return a.reduce((o,V)=>{const W=Object.entries(V);for(const[G,U]of W){const J=o[G];J!=null&&(o[G]=J+e*U)}return o},{...t})}}const add=createAdjustmentFn(1),subtract=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(e){return"clientX"in e&&"clientY"in e}function isKeyboardEvent(e){if(!e)return!1;const{KeyboardEvent:t}=getWindow(e.target);return t&&e instanceof t}function isTouchEvent(e){if(!e)return!1;const{TouchEvent:t}=getWindow(e.target);return t&&e instanceof t}function getEventCoordinates(e){if(isTouchEvent(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return hasViewportRelativeCoordinates(e)?{x:e.clientX,y:e.clientY}:null}const CSS$1=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[CSS$1.Translate.toString(e),CSS$1.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:a}=e;return t+" "+n+"ms "+a}}}),SELECTOR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(e){return e.matches(SELECTOR)?e:e.querySelector(SELECTOR)}const hiddenStyles={display:"none"};function HiddenText(e){let{id:t,value:n}=e;return React.createElement("div",{id:t,style:hiddenStyles},n)}function LiveRegion(e){let{id:t,announcement:n,ariaLiveType:a="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return React.createElement("div",{id:t,style:s,role:"status","aria-live":a,"aria-atomic":!0},n)}function useAnnouncement(){const[e,t]=React.useState("");return{announce:React.useCallback(a=>{a!=null&&t(a)},[]),announcement:e}}const DndMonitorContext=React.createContext(null);function useDndMonitor(e){const t=React.useContext(DndMonitorContext);React.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function useDndMonitorProvider(){const[e]=React.useState(()=>new Set),t=React.useCallback(a=>(e.add(a),()=>e.delete(a)),[e]);return[React.useCallback(a=>{let{type:s,event:o}=a;e.forEach(V=>{var W;return(W=V[s])==null?void 0:W.call(V,o)})},[e]),t]}const defaultScreenReaderInstructions={draggable:`
|
|
341
341
|
To pick up a draggable item, press the space bar.
|
|
342
342
|
While dragging, use the arrow keys to move the item.
|
|
343
343
|
Press space again to drop the item in its new position, or press escape to cancel.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lax-wp/design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.91",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@mui/icons-material": "^7.3.1",
|
|
44
44
|
"@mui/material": "^7.3.1",
|
|
45
45
|
"@storybook/addon-actions": "^9.0.8",
|
|
46
|
-
"antd": "^5.27.
|
|
46
|
+
"antd": "^5.27.1",
|
|
47
47
|
"array-move": "^4.0.0",
|
|
48
48
|
"classnames": "^2.5.1",
|
|
49
49
|
"clsx": "^2.1.1",
|