dga-ui-react 1.8.0 → 1.8.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/cjs/index.js +365 -67
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +363 -65
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +50 -3
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDebugValue as n,createElement as i,useRef as a,useContext as l,useEffect as s}from"react";import{Calendar as d}from"react-multi-date-picker";import{createRoot as c}from"react-dom/client";const p=o.createContext(null),u=({theme:t,children:r})=>e(p.Provider,{value:t,children:r}),g=t=>()=>e(u,{theme:{direction:"rtl"},children:e(t,{})}),h={direction:"ltr",fontFamily:"IBM Plex Sans",textColor:"#161616",textOnColor:"#FFFFFF",palette:{neutral:{25:"#FCFCFD",50:"#F9FAFB",100:"#F3F4F6",200:"#E5E7EB",300:"#D2D6DB",400:"#9DA4AE",500:"#6C737F",600:"#4D5761",700:"#384250",800:"#1F2A37",900:"#111927",950:"#0D121C",light:"#D2D6DB",main:"#6C737F",dark:"#384250",contrastText:"#FFF"},primary:{25:"#F7FDF9",50:"#F3FCF6",100:"#DFF6E7",200:"#B8EACB",300:"#88D8AD",400:"#54C08A",500:"#25935F",600:"#1B8354",700:"#166A45",800:"#14573A",900:"#104631",950:"#092A1E",light:"#54C08A",main:"#1B8354",dark:"#14573A",contrastText:"#FFF"},secondary:{25:"#FFFEF7",50:"#FFFEF2",100:"#FFFCE6",200:"#FCF3BD",300:"#FAE996",400:"#F7D54D",500:"#F5BD02",600:"#DBA102",700:"#B87B02",800:"#945C01",900:"#6E3C00",950:"#472400",light:"#F7D54D",main:"#DBA102",dark:"#945C01",contrastText:"#0D121C"},error:{25:"#FFFBFA",50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#55160C",light:"#FDA29B",main:"#F04438",dark:"#B42318",contrastText:"#FFF"},warning:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#4E1D09",light:"#FEC84B",main:"#F79009",dark:"#B54708",contrastText:"#0D121C"},info:{25:"#F5FAFF",50:"#ECFDF3",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185",950:"#102A56",light:"#84CAFF",main:"#2E90FA",dark:"#175CD3",contrastText:"#FFF"},success:{25:"#F6FEF9",50:"#ECFDF3",100:"#DCFAE6",200:"#ABEFC6",300:"#75E0A7",400:"#47CD89",500:"#17B26A",600:"#079455",700:"#067647",800:"#085D3A",900:"#074D31",950:"#053321",light:"#75E0A7",main:"#17B26A",dark:"#067647",contrastText:"#FFF"}},typography:{h1:{fontSize:"72px",lineHeight:"90px"},h2:{fontSize:"60px",lineHeight:"72px"},h3:{fontSize:"48px",lineHeight:"60px"},h4:{fontSize:"36px",lineHeight:"44px"},h5:{fontSize:"30px",lineHeight:"38px"},h6:{fontSize:"24px",lineHeight:"32px"},xl:{fontSize:"20px",lineHeight:"30px"},lg:{fontSize:"18px",lineHeight:"28px"},md:{fontSize:"16px",lineHeight:"24px"},sm:{fontSize:"14px",lineHeight:"20px"},xs:{fontSize:"12px",lineHeight:"18px"}},elevation:{shadows:{xs:"box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, .05);",sm:"box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, .06), 0px 1px 3px 0px rgba(16, 24, 40, .1);",md:"box-shadow: 0px 2px 4px -2px rgba(16, 24, 40, .06), 0px 4px 8px -2px rgba(16, 24, 40, .1);",lg:"box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);",xl:"box-shadow: 0px 8px 8px -4px rgba(16, 24, 40, .03), 0px 20px 24px -4px rgba(16, 24, 40, .08);","2xl":"box-shadow: 0 24px 48px -12px #1018282e;","3xl":"box-shadow: 0 32px 64px -12px #10182824;"},backdropBlur:{sm:"filter: blur(8px);-webkit-filter: blur(8px);",md:"filter: blur(16px);-webkit-filter: blur(16px);",lg:"filter: blur(24px);-webkit-filter: blur(24px);",xl:"filter: blur(40px);-webkit-filter: blur(40px);"}},raduises:{none:"0",xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"24px",full:"9999px"},breakPoints:{lg:1280,md:768,sm:375}},m=(e,t,r=" ")=>e+r+(null!=t?t:""),A=()=>Date.now().toString(36)+Math.random().toString(36).substring(2,8);function f(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}f(".dgaui {\n font-family: IBM Plex Sans Arabic;\n box-sizing: border-box;\n font-size: 14px;\n -webkit-tap-highlight-color: transparent;\n}\n\n.dgaui input,\n.dgaui textarea,\n.dgaui select {\n font-family: IBM Plex Sans Arabic;\n}\n\n.dgaui_hiddenScrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n /* Hide scrollbar for IE, Edge and Firefox */\n scrollbar-width: none; /* Firefox */\n}\n/* Hide scrollbar for Chrome, Safari and Opera */\n.dgaui_hiddenScrollbar::-webkit-scrollbar {\n display: none;\n}\n\n.dgauiDragging {\n cursor: grabbing;\n}\n");const b=()=>{const e=o.useContext(p);let t=h;return e&&(t=((e,t)=>{let r={};return t&&(r=function e(t,r){let o=Object.assign({},t);for(const i in r)(n=r[i])&&"object"==typeof n&&!Array.isArray(n)&&i in t?o[i]=e(t[i],r[i]):o[i]=r[i];var n;return o}(e,t)),r})(h,e)),t};var x=function(){return x=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},x.apply(this,arguments)};function v(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}function y(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function C(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}"function"==typeof SuppressedError&&SuppressedError;var w=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$=C((function(e){return w.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S="-ms-",B="-moz-",E="-webkit-",N="comm",z="rule",I="decl",F="@keyframes",R=Math.abs,U=String.fromCharCode,D=Object.assign;function O(e){return e.trim()}function T(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function H(e,t,r){return e.indexOf(t,r)}function M(e,t){return 0|e.charCodeAt(t)}function L(e,t,r){return e.slice(t,r)}function Q(e){return e.length}function j(e){return e.length}function V(e,t){return t.push(e),e}function P(e,t){return e.filter((function(e){return!T(e,t)}))}var K=1,X=1,G=0,W=0,J=0,Z="";function q(e,t,r,o,n,i,a,l){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:K,column:X,length:a,return:"",siblings:l}}function _(e,t){return D(q("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ee(e){for(;e.root;)e=_(e.root,{children:[e]});V(e,e.siblings)}function te(){return J=W>0?M(Z,--W):0,X--,10===J&&(X=1,K--),J}function re(){return J=W<G?M(Z,W++):0,X++,10===J&&(X=1,K++),J}function oe(){return M(Z,W)}function ne(){return W}function ie(e,t){return L(Z,e,t)}function ae(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return O(ie(W-1,ce(91===e?e+2:40===e?e+1:e)))}function se(e){for(;(J=oe())&&J<33;)re();return ae(e)>2||ae(J)>3?"":" "}function de(e,t){for(;--t&&re()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return ie(e,ne()+(t<6&&32==oe()&&32==re()))}function ce(e){for(;re();)switch(J){case e:return W;case 34:case 39:34!==e&&39!==e&&ce(J);break;case 40:41===e&&ce(e);break;case 92:re()}return W}function pe(e,t){for(;re()&&e+J!==57&&(e+J!==84||47!==oe()););return"/*"+ie(t,W-1)+"*"+U(47===e?e:re())}function ue(e){for(;!ae(oe());)re();return ie(e,W)}function ge(e){return function(e){return Z="",e}(he("",null,null,null,[""],e=function(e){return K=X=1,G=Q(Z=e),W=0,[]}(e),0,[0],e))}function he(e,t,r,o,n,i,a,l,s){for(var d=0,c=0,p=a,u=0,g=0,h=0,m=1,A=1,f=1,b=0,x="",v=n,y=i,C=o,w=x;A;)switch(h=b,b=re()){case 40:if(108!=h&&58==M(w,p-1)){-1!=H(w+=Y(le(b),"&","&\f"),"&\f",R(d?l[d-1]:0))&&(f=-1);break}case 34:case 39:case 91:w+=le(b);break;case 9:case 10:case 13:case 32:w+=se(h);break;case 92:w+=de(ne()-1,7);continue;case 47:switch(oe()){case 42:case 47:V(Ae(pe(re(),ne()),t,r,s),s);break;default:w+="/"}break;case 123*m:l[d++]=Q(w)*f;case 125*m:case 59:case 0:switch(b){case 0:case 125:A=0;case 59+c:-1==f&&(w=Y(w,/\f/g,"")),g>0&&Q(w)-p&&V(g>32?fe(w+";",o,r,p-1,s):fe(Y(w," ","")+";",o,r,p-2,s),s);break;case 59:w+=";";default:if(V(C=me(w,t,r,d,c,n,l,x,v=[],y=[],p,i),i),123===b)if(0===c)he(w,t,C,C,v,i,p,l,y);else switch(99===u&&110===M(w,3)?100:u){case 100:case 108:case 109:case 115:he(e,C,C,o&&V(me(e,C,C,0,0,n,l,x,n,v=[],p,y),y),n,y,p,l,o?v:y);break;default:he(w,C,C,C,[""],y,0,l,y)}}d=c=g=0,m=f=1,x=w="",p=a;break;case 58:p=1+Q(w),g=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==te())continue;switch(w+=U(b),b*m){case 38:f=c>0?1:(w+="\f",-1);break;case 44:l[d++]=(Q(w)-1)*f,f=1;break;case 64:45===oe()&&(w+=le(re())),u=oe(),c=p=Q(x=w+=ue(ne())),b++;break;case 45:45===h&&2==Q(w)&&(m=0)}}return i}function me(e,t,r,o,n,i,a,l,s,d,c,p){for(var u=n-1,g=0===n?i:[""],h=j(g),m=0,A=0,f=0;m<o;++m)for(var b=0,x=L(e,u+1,u=R(A=a[m])),v=e;b<h;++b)(v=O(A>0?g[b]+" "+x:Y(x,/&\f/g,g[b])))&&(s[f++]=v);return q(e,t,r,0===n?z:l,s,d,c,p)}function Ae(e,t,r,o){return q(e,t,r,N,U(J),L(e,2,-2),0,o)}function fe(e,t,r,o,n){return q(e,t,r,I,L(e,0,o),L(e,o+1,-1),o,n)}function be(e,t,r){switch(function(e,t){return 45^M(e,0)?(((t<<2^M(e,0))<<2^M(e,1))<<2^M(e,2))<<2^M(e,3):0}(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 4789:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+B+e+S+e+e;case 5936:switch(M(e,t+11)){case 114:return E+e+S+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+S+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+S+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return E+e+S+e+e;case 6165:return E+e+S+"flex-"+e+e;case 5187:return E+e+Y(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+S+"flex-$1$2")+e;case 5443:return E+e+S+"flex-item-"+Y(e,/flex-|-self/g,"")+(T(e,/flex-|baseline/)?"":S+"grid-row-"+Y(e,/flex-|-self/g,""))+e;case 4675:return E+e+S+"flex-line-pack"+Y(e,/align-content|flex-|-self/g,"")+e;case 5548:return E+e+S+Y(e,"shrink","negative")+e;case 5292:return E+e+S+Y(e,"basis","preferred-size")+e;case 6060:return E+"box-"+Y(e,"-grow","")+E+e+S+Y(e,"grow","positive")+e;case 4554:return E+Y(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4200:if(!T(e,/flex-|baseline/))return S+"grid-column-align"+L(e,t)+e;break;case 2592:case 3360:return S+Y(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,T(e.props,/grid-\w+-end/)}))?~H(e+(r=r[t].value),"span",0)?e:S+Y(e,"-start","")+e+S+"grid-row-span:"+(~H(r,"span",0)?T(r,/\d+/):+T(r,/\d+/)-+T(e,/\d+/))+";":S+Y(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return T(e.props,/grid-\w+-start/)}))?e:S+Y(Y(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(M(e,t+1)){case 109:if(45!==M(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+B+(108==M(e,t+3)?"$3":"$2-$3"))+e;case 115:return~H(e,"stretch",0)?be(Y(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Y(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,o,n,i,a,l){return S+r+":"+o+l+(n?S+r+"-span:"+(i?a:+a-+o)+l:"")+e}));case 4949:if(121===M(e,t+6))return Y(e,":",":"+E)+e;break;case 6444:switch(M(e,45===M(e,14)?18:11)){case 120:return Y(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+E+(45===M(e,14)?"inline-":"")+"box$3$1"+E+"$2$3$1"+S+"$2box$3")+e;case 100:return Y(e,":",":"+S)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Y(e,"scroll-","scroll-snap-")+e}return e}function xe(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function ve(e,t,r,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case N:return"";case F:return e.return=e.value+"{"+xe(e.children,o)+"}";case z:if(!Q(e.value=e.props.join(",")))return""}return Q(r=xe(e.children,o))?e.return=e.value+"{"+r+"}":""}function ye(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case I:return void(e.return=be(e.value,e.length,r));case F:return xe([_(e,{value:Y(e.value,"@","@"+E)})],o);case z:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(T(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ee(_(e,{props:[Y(t,/:(read-\w+)/,":-moz-$1")]})),ee(_(e,{props:[t]})),D(e,{props:P(r,o)});break;case"::placeholder":ee(_(e,{props:[Y(t,/:(plac\w+)/,":"+E+"input-$1")]})),ee(_(e,{props:[Y(t,/:(plac\w+)/,":-moz-$1")]})),ee(_(e,{props:[Y(t,/:(plac\w+)/,S+"input-$1")]})),ee(_(e,{props:[t]})),D(e,{props:P(r,o)})}return""}))}}var Ce={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},we="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$e="active",ke="data-styled-version",Se="6.1.15",Be="/*!sc*/\n",Ee="undefined"!=typeof window&&"HTMLElement"in window,Ne=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),ze=/invalid hook call/i,Ie=new Set,Fe=function(e,t){if("production"!==process.env.NODE_ENV){var r=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",n=console.error;try{var i=!0;console.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];ze.test(e)?(i=!1,Ie.delete(o)):n.apply(void 0,y([e],t,!1))},a(),i&&!Ie.has(o)&&(console.warn(o),Ie.add(o))}catch(e){ze.test(e.message)&&Ie.delete(o)}finally{console.error=n}}},Re=Object.freeze([]),Ue=Object.freeze({});var De=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Te=/(^-|-$)/g;function Ye(e){return e.replace(Oe,"-").replace(Te,"")}var He=/(a)(d)/gi,Me=function(e){return String.fromCharCode(e+(e>25?39:97))};function Le(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Me(t%52)+r;return(Me(t%52)+r).replace(He,"$1-$2")}var Qe,je=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ve=function(e){return je(5381,e)};function Pe(e){return Le(Ve(e)>>>0)}function Ke(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Xe(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ge="function"==typeof Symbol&&Symbol.for,We=Ge?Symbol.for("react.memo"):60115,Je=Ge?Symbol.for("react.forward_ref"):60112,Ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},et=((Qe={})[Je]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qe[We]=_e,Qe);function tt(e){return("type"in(t=e)&&t.type.$$typeof)===We?_e:"$$typeof"in e?et[e.$$typeof]:Ze;var t}var rt=Object.defineProperty,ot=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,it=Object.getOwnPropertyDescriptor,at=Object.getPrototypeOf,lt=Object.prototype;function st(e,t,r){if("string"!=typeof t){if(lt){var o=at(t);o&&o!==lt&&st(e,o,r)}var n=ot(t);nt&&(n=n.concat(nt(t)));for(var i=tt(e),a=tt(t),l=0;l<n.length;++l){var s=n[l];if(!(s in qe||r&&r[s]||a&&s in a||i&&s in i)){var d=it(t,s);try{rt(e,s,d)}catch(e){}}}}return e}function dt(e){return"function"==typeof e}function ct(e){return"object"==typeof e&&"styledComponentId"in e}function pt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ut(e,t){if(0===e.length)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function gt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ht(e,t,r){if(void 0===r&&(r=!1),!r&&!gt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=ht(e[o],t[o]);else if(gt(t))for(var o in t)e[o]=ht(e[o],t[o]);return e}function mt(e,t){Object.defineProperty(e,"toString",{value:t})}var At="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],o=[],n=1,i=e.length;n<i;n+=1)o.push(e[n]);return o.forEach((function(e){r=r.replace(/%[a-z]/,e)})),r}function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ft.apply(void 0,y([At[e]],t,!1)).trim())}var xt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,n=o;e>=n;)if((n<<=1)<0)throw bt(16,"".concat(e));this.groupSizes=new Uint32Array(n),this.groupSizes.set(r),this.length=n;for(var i=o;i<n;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t;this.groupSizes[e]=0;for(var n=r;n<o;n++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],o=this.indexOfGroup(e),n=o+r,i=o;i<n;i++)t+="".concat(this.tag.getRule(i)).concat(Be);return t},e}(),vt=1<<30,yt=new Map,Ct=new Map,wt=1,$t=function(e){if(yt.has(e))return yt.get(e);for(;Ct.has(wt);)wt++;var t=wt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>vt))throw bt(16,"".concat(t));return yt.set(e,t),Ct.set(t,e),t},kt=function(e,t){wt=t+1,yt.set(e,t),Ct.set(t,e)},St="style[".concat(we,"][").concat(ke,'="').concat(Se,'"]'),Bt=new RegExp("^".concat(we,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Et=function(e,t,r){for(var o,n=r.split(","),i=0,a=n.length;i<a;i++)(o=n[i])&&e.registerName(t,o)},Nt=function(e,t){for(var r,o=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Be),n=[],i=0,a=o.length;i<a;i++){var l=o[i].trim();if(l){var s=l.match(Bt);if(s){var d=0|parseInt(s[1],10),c=s[2];0!==d&&(kt(c,d),Et(e,c,s[3]),e.getTag().insertRules(d,n)),n.length=0}else n.push(l)}}},zt=function(e){for(var t=document.querySelectorAll(St),r=0,o=t.length;r<o;r++){var n=t[r];n&&n.getAttribute(we)!==$e&&(Nt(e,n),n.parentNode&&n.parentNode.removeChild(n))}};var It=function(e){var t=document.head,r=e||t,o=document.createElement("style"),n=function(e){var t=Array.from(e.querySelectorAll("style[".concat(we,"]")));return t[t.length-1]}(r),i=void 0!==n?n.nextSibling:null;o.setAttribute(we,$e),o.setAttribute(ke,Se);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&o.setAttribute("nonce",a),r.insertBefore(o,i),o},Ft=function(){function e(e){this.element=It(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,o=t.length;r<o;r++){var n=t[r];if(n.ownerNode===e)return n}throw bt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Rt=function(){function e(e){this.element=It(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ut=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Dt=Ee,Ot={isServer:!Ee,useCSSOMInjection:!Ne},Tt=function(){function e(e,t,r){void 0===e&&(e=Ue),void 0===t&&(t={});var o=this;this.options=x(x({},Ot),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ee&&Dt&&(Dt=!1,zt(this)),mt(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,o="",n=function(r){var n=function(e){return Ct.get(e)}(r);if(void 0===n)return"continue";var i=e.names.get(n),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(we,".g").concat(r,'[id="').concat(n,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),o+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Be)},i=0;i<r;i++)n(i);return o}(o)}))}return e.registerId=function(e){return $t(e)},e.prototype.rehydrate=function(){!this.server&&Ee&&zt(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(x(x({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Ut(r):t?new Ft(r):new Rt(r)}(this.options),new xt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if($t(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules($t(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup($t(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Yt=/&/g,Ht=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}var Lt=new Tt,Qt=function(){var e,t,r,o=Ue,n=o.options,i=void 0===n?Ue:n,a=o.plugins,l=void 0===a?Re:a,s=function(r,o,n){return n.startsWith(t)&&n.endsWith(t)&&n.replaceAll(t,"").length>0?".".concat(e):r},d=l.slice();d.push((function(e){e.type===z&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Yt,t).replace(r,s))})),i.prefix&&d.push(ye),d.push(ve);var c=function(o,n,a,l){void 0===n&&(n=""),void 0===a&&(a=""),void 0===l&&(l="&"),e=l,t=n,r=new RegExp("\\".concat(t,"\\b"),"g");var s=o.replace(Ht,""),c=ge(a||n?"".concat(a," ").concat(n," { ").concat(s," }"):s);i.namespace&&(c=Mt(c,i.namespace));var p,u=[];return xe(c,function(e){var t=j(e);return function(r,o,n,i){for(var a="",l=0;l<t;l++)a+=e[l](r,o,n,i)||"";return a}}(d.concat((p=function(e){return u.push(e)},function(e){e.root||(e=e.return)&&p(e)})))),u};return c.hash=l.length?l.reduce((function(e,t){return t.name||bt(15),je(e,t.name)}),5381).toString():"",c}(),jt=o.createContext({shouldForwardProp:void 0,styleSheet:Lt,stylis:Qt});function Vt(){return l(jt)}jt.Consumer,o.createContext(void 0);var Pt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Qt);var o=r.name+t.hash;e.hasNameForId(r.id,o)||e.insertRules(r.id,o,t(r.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,mt(this,(function(){throw bt(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Qt),this.name+e.hash},e}(),Kt=function(e){return e>="A"&&e<="Z"};function Xt(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(1===r&&"-"===o&&"-"===e[0])return e;Kt(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Gt=function(e){return null==e||!1===e||""===e},Wt=function(e){var t,r,o=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!Gt(i)&&(Array.isArray(i)&&i.isCss||dt(i)?o.push("".concat(Xt(n),":"),i,";"):gt(i)?o.push.apply(o,y(y(["".concat(n," {")],Wt(i),!1),["}"],!1)):o.push("".concat(Xt(n),": ").concat((t=n,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Ce||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function Jt(e,t,r,o){if(Gt(e))return[];if(ct(e))return[".".concat(e.styledComponentId)];if(dt(e)){if(!dt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var n=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof n||Array.isArray(n)||n instanceof Pt||gt(n)||null===n||console.error("".concat(Ke(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Jt(n,t,r,o)}var i;return e instanceof Pt?r?(e.inject(r,o),[e.getName(o)]):[e]:gt(e)?Wt(e):Array.isArray(e)?Array.prototype.concat.apply(Re,e.map((function(e){return Jt(e,t,r,o)}))):[e.toString()]}var Zt=Ve(Se),qt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(dt(r)&&!ct(r))return!1}return!0}(e),this.componentId=t,this.baseHash=je(Zt,t),this.baseStyle=r,Tt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=pt(o,this.staticRulesId);else{var n=ut(Jt(this.rules,e,t,r)),i=Le(je(this.baseHash,n)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(n,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}o=pt(o,i),this.staticRulesId=i}else{for(var l=je(this.baseHash,r.hash),s="",d=0;d<this.rules.length;d++){var c=this.rules[d];if("string"==typeof c)s+=c,"production"!==process.env.NODE_ENV&&(l=je(l,c));else if(c){var p=ut(Jt(c,e,t,r));l=je(l,p+d),s+=p}}if(s){var u=Le(l>>>0);t.hasNameForId(this.componentId,u)||t.insertRules(this.componentId,u,r(s,".".concat(u),void 0,this.componentId)),o=pt(o,u)}}return o},e}(),_t=o.createContext(void 0);_t.Consumer;var er={},tr=new Set;function rr(e,t,r){var a=ct(e),l=e,s=!Xe(e),d=t.attrs,c=void 0===d?Re:d,p=t.componentId,u=void 0===p?function(e,t){var r="string"!=typeof e?"sc":Ye(e);er[r]=(er[r]||0)+1;var o="".concat(r,"-").concat(Pe(Se+r+er[r]));return t?"".concat(t,"-").concat(o):o}(t.displayName,t.parentComponentId):p,g=t.displayName,h=void 0===g?function(e){return Xe(e)?"styled.".concat(e):"Styled(".concat(Ke(e),")")}(e):g,m=t.displayName&&t.componentId?"".concat(Ye(t.displayName),"-").concat(t.componentId):t.componentId||u,A=a&&l.attrs?l.attrs.concat(c).filter(Boolean):c,f=t.shouldForwardProp;if(a&&l.shouldForwardProp){var b=l.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;f=function(e,t){return b(e,t)&&v(e,t)}}else f=b}var y=new qt(r,m,a?l.componentStyle:void 0);function C(e,t){return function(e,t,r){var a=e.attrs,l=e.componentStyle,s=e.defaultProps,d=e.foldedComponentIds,c=e.styledComponentId,p=e.target,u=o.useContext(_t),g=Vt(),h=e.shouldForwardProp||g.shouldForwardProp;"production"!==process.env.NODE_ENV&&n(c);var m=function(e,t,r){return void 0===r&&(r=Ue),e.theme!==r.theme&&e.theme||t||r.theme}(t,u,s)||Ue,A=function(e,t,r){for(var o,n=x(x({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=dt(o=e[i])?o(n):o;for(var l in a)n[l]="className"===l?pt(n[l],a[l]):"style"===l?x(x({},n[l]),a[l]):a[l]}return t.className&&(n.className=pt(n.className,t.className)),n}(a,t,m),f=A.as||p,b={};for(var v in A)void 0===A[v]||"$"===v[0]||"as"===v||"theme"===v&&A.theme===m||("forwardedAs"===v?b.as=A.forwardedAs:h&&!h(v,f)||(b[v]=A[v],h||"development"!==process.env.NODE_ENV||$(v)||tr.has(v)||!De.has(f)||(tr.add(v),console.warn('styled-components: it looks like an unknown prop "'.concat(v,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var y=function(e,t){var r=Vt(),o=e.generateAndInjectStyles(t,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&n(o),o}(l,A);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(y);var C=pt(d,c);return y&&(C+=" "+y),A.className&&(C+=" "+A.className),b[Xe(f)&&!De.has(f)?"class":"className"]=C,r&&(b.ref=r),i(f,b)}(w,e,t)}C.displayName=h;var w=o.forwardRef(C);return w.attrs=A,w.componentStyle=y,w.displayName=h,w.shouldForwardProp=f,w.foldedComponentIds=a?pt(l.foldedComponentIds,l.styledComponentId):"",w.styledComponentId=m,w.target=a?l.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var o=0,n=t;o<n.length;o++)ht(e,n[o],!0);return e}({},l.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Fe(h,m),w.warnTooManyClasses=function(e,t){var r={},o=!1;return function(n){if(!o&&(r[n]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(i,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,r={}}}}(h,m)),mt(w,(function(){return".".concat(w.styledComponentId)})),s&&st(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function or(e,t){for(var r=[e[0]],o=0,n=t.length;o<n;o+=1)r.push(t[o],e[o+1]);return r}var nr=function(e){return Object.assign(e,{isCss:!0})};function ir(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(dt(e)||gt(e))return nr(Jt(or(Re,y([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?Jt(o):nr(Jt(or(o,t)))}function ar(e,t,r){if(void 0===r&&(r=Ue),!t)throw bt(1,t);var o=function(o){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return e(t,r,ir.apply(void 0,y([o],n,!1)))};return o.attrs=function(o){return ar(e,t,x(x({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return ar(e,t,x(x({},r),o))},o}var lr=function(e){return ar(rr,e)},sr=lr;function dr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=ut(ir.apply(void 0,y([e],t,!1))),n=Pe(o);return new Pt(n,o)}De.forEach((function(e){sr[e]=lr(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var cr="__sc-".concat(we,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[cr]||(window[cr]=0),1===window[cr]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[cr]+=1);var pr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAClSURBVHgB7Y89DsIwDIUdomRIMnTIz8oR2Fi5CVfoDYCNjYzcpitnyYJYsoKN2gURSmFsPimSZT8/vwBUZkiD/KNbvDaEEHvnXAcjSCk71MVRQ855ZIwtUXwqmXnvdxSStPAN1toNLt1DCO07M5rhwRVMAU3bfnE79KguHRrgpUHO+aK1xt+zaIy5KaXWWJ9xdEgpHeFXKCkmu9L7lGwSTQ9UKk8eYgIfE1UYUugAAAAASUVORK5CYII=";const ur={small:{h:40,p:8,f:16},medium:{h:48,p:12,f:16},large:{h:56,p:16,f:16}},gr=n=>{var i,{size:a="medium",title:l,expanded:s,onChange:d,defaultExpanded:c,iconAlignment:p="trailing",flush:u=!1,children:g}=n,h=v(n,["size","title","expanded","onChange","defaultExpanded","iconAlignment","flush","children"]);const A=b(),f=o.useRef(null),[x,y]=o.useState(c),[C,w]=o.useState(0);let $=`solid 1px ${A.palette.neutral[300]}`,k="solid 2px transparent",S="pointer",B="#161616";const E=void 0!==s?s:x;h.disabled&&(S="default",$=`solid 1px ${A.palette.neutral[300]}`,k="none",B=A.palette.neutral[400]);return o.useEffect((()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.clientHeight)&&w(f.current.clientHeight)}),[null===(i=f.current)||void 0===i?void 0:i.clientHeight]),t("div",{className:m("dgaui dgaui_accordion",h.className),tabIndex:1,children:[t(hr,Object.assign({$customStyle:{direction:A.direction,minHeight:ur[a].h,padding:ur[a].p,fontSize:ur[a].f,fontColor:B,colors:A.palette.neutral,border:k,borderTop:$,cursor:S},flush:u},h,{onClick:e=>{d&&d(e,!E),y(!E)},className:"dgaui dgaui_accordion_title",children:["leading"===p&&t("div",{style:{display:"flex",alignItems:"flex-start",justifyItems:"center",gap:16},children:[e("span",{children:e("img",{alt:"arrowdown",src:pr,style:{transition:"all 0.2s",transform:E?"rotateZ(180deg)":"none"}})}),e("span",{children:l})]}),"trailing"===p&&t(r,{children:[e("span",{children:l}),e("img",{alt:"arrowdown",src:pr,style:{transition:"all 0.2s",transform:E?"rotateZ(180deg)":"none"}})]})]})),e("div",{className:"dgaui_accordionContent",style:{direction:A.direction,height:E?C:0,overflow:"hidden",transition:"all 0.2s",color:B},children:e("div",{ref:f,style:{padding:16},children:g})})]})},hr=sr.button`
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDebugValue as n,createElement as i,useRef as a,useContext as l,useEffect as s}from"react";import{Calendar as d}from"react-multi-date-picker";import{createRoot as c}from"react-dom/client";const p=o.createContext(null),u=({theme:t,children:r})=>e(p.Provider,{value:t,children:r}),g=t=>()=>e(u,{theme:{direction:"rtl"},children:e(t,{})}),h={direction:"ltr",fontFamily:"IBM Plex Sans",textColor:"#161616",textOnColor:"#FFFFFF",palette:{neutral:{25:"#FCFCFD",50:"#F9FAFB",100:"#F3F4F6",200:"#E5E7EB",300:"#D2D6DB",400:"#9DA4AE",500:"#6C737F",600:"#4D5761",700:"#384250",800:"#1F2A37",900:"#111927",950:"#0D121C",light:"#D2D6DB",main:"#6C737F",dark:"#384250",contrastText:"#FFF"},primary:{25:"#F7FDF9",50:"#F3FCF6",100:"#DFF6E7",200:"#B8EACB",300:"#88D8AD",400:"#54C08A",500:"#25935F",600:"#1B8354",700:"#166A45",800:"#14573A",900:"#104631",950:"#092A1E",light:"#54C08A",main:"#1B8354",dark:"#14573A",contrastText:"#FFF"},secondary:{25:"#FFFEF7",50:"#FFFEF2",100:"#FFFCE6",200:"#FCF3BD",300:"#FAE996",400:"#F7D54D",500:"#F5BD02",600:"#DBA102",700:"#B87B02",800:"#945C01",900:"#6E3C00",950:"#472400",light:"#F7D54D",main:"#DBA102",dark:"#945C01",contrastText:"#0D121C"},error:{25:"#FFFBFA",50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#55160C",light:"#FDA29B",main:"#F04438",dark:"#B42318",contrastText:"#FFF"},warning:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#4E1D09",light:"#FEC84B",main:"#F79009",dark:"#B54708",contrastText:"#0D121C"},info:{25:"#F5FAFF",50:"#ECFDF3",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185",950:"#102A56",light:"#84CAFF",main:"#2E90FA",dark:"#175CD3",contrastText:"#FFF"},success:{25:"#F6FEF9",50:"#ECFDF3",100:"#DCFAE6",200:"#ABEFC6",300:"#75E0A7",400:"#47CD89",500:"#17B26A",600:"#079455",700:"#067647",800:"#085D3A",900:"#074D31",950:"#053321",light:"#75E0A7",main:"#17B26A",dark:"#067647",contrastText:"#FFF"}},typography:{h1:{fontSize:"72px",lineHeight:"90px"},h2:{fontSize:"60px",lineHeight:"72px"},h3:{fontSize:"48px",lineHeight:"60px"},h4:{fontSize:"36px",lineHeight:"44px"},h5:{fontSize:"30px",lineHeight:"38px"},h6:{fontSize:"24px",lineHeight:"32px"},xl:{fontSize:"20px",lineHeight:"30px"},lg:{fontSize:"18px",lineHeight:"28px"},md:{fontSize:"16px",lineHeight:"24px"},sm:{fontSize:"14px",lineHeight:"20px"},xs:{fontSize:"12px",lineHeight:"18px"}},elevation:{shadows:{xs:"box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, .05);",sm:"box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, .06), 0px 1px 3px 0px rgba(16, 24, 40, .1);",md:"box-shadow: 0px 2px 4px -2px rgba(16, 24, 40, .06), 0px 4px 8px -2px rgba(16, 24, 40, .1);",lg:"box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);",xl:"box-shadow: 0px 8px 8px -4px rgba(16, 24, 40, .03), 0px 20px 24px -4px rgba(16, 24, 40, .08);","2xl":"box-shadow: 0 24px 48px -12px #1018282e;","3xl":"box-shadow: 0 32px 64px -12px #10182824;"},backdropBlur:{sm:"filter: blur(8px);-webkit-filter: blur(8px);",md:"filter: blur(16px);-webkit-filter: blur(16px);",lg:"filter: blur(24px);-webkit-filter: blur(24px);",xl:"filter: blur(40px);-webkit-filter: blur(40px);"}},raduises:{none:"0",xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"24px",full:"9999px"},breakPoints:{lg:1280,md:768,sm:375}},m=(e,t,r=" ")=>e+r+(null!=t?t:""),A=()=>Date.now().toString(36)+Math.random().toString(36).substring(2,8);function f(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}f(".dgaui {\n font-family: IBM Plex Sans Arabic;\n box-sizing: border-box;\n font-size: 14px;\n -webkit-tap-highlight-color: transparent;\n}\n\n.dgaui input,\n.dgaui textarea,\n.dgaui select {\n font-family: IBM Plex Sans Arabic;\n}\n\n.dgaui_hiddenScrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n /* Hide scrollbar for IE, Edge and Firefox */\n scrollbar-width: none; /* Firefox */\n}\n/* Hide scrollbar for Chrome, Safari and Opera */\n.dgaui_hiddenScrollbar::-webkit-scrollbar {\n display: none;\n}\n\n.dgauiDragging {\n cursor: grabbing;\n}\n");const b=()=>{const e=o.useContext(p);let t=h;return e&&(t=((e,t)=>{let r={};return t&&(r=function e(t,r){let o=Object.assign({},t);for(const i in r)(n=r[i])&&"object"==typeof n&&!Array.isArray(n)&&i in t?o[i]=e(t[i],r[i]):o[i]=r[i];var n;return o}(e,t)),r})(h,e)),t};var x=function(){return x=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},x.apply(this,arguments)};function v(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}function y(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function w(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}"function"==typeof SuppressedError&&SuppressedError;var C=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$=w((function(e){return C.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S="-ms-",B="-moz-",E="-webkit-",N="comm",z="rule",I="decl",F="@keyframes",R=Math.abs,U=String.fromCharCode,D=Object.assign;function O(e){return e.trim()}function T(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function Y(e,t,r){return e.indexOf(t,r)}function H(e,t){return 0|e.charCodeAt(t)}function M(e,t,r){return e.slice(t,r)}function L(e){return e.length}function j(e){return e.length}function P(e,t){return t.push(e),e}function V(e,t){return e.filter((function(e){return!T(e,t)}))}var K=1,G=1,X=0,J=0,W=0,Z="";function q(e,t,r,o,n,i,a,l){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:K,column:G,length:a,return:"",siblings:l}}function _(e,t){return D(q("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ee(e){for(;e.root;)e=_(e.root,{children:[e]});P(e,e.siblings)}function te(){return W=J>0?H(Z,--J):0,G--,10===W&&(G=1,K--),W}function re(){return W=J<X?H(Z,J++):0,G++,10===W&&(G=1,K++),W}function oe(){return H(Z,J)}function ne(){return J}function ie(e,t){return M(Z,e,t)}function ae(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return O(ie(J-1,ce(91===e?e+2:40===e?e+1:e)))}function se(e){for(;(W=oe())&&W<33;)re();return ae(e)>2||ae(W)>3?"":" "}function de(e,t){for(;--t&&re()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return ie(e,ne()+(t<6&&32==oe()&&32==re()))}function ce(e){for(;re();)switch(W){case e:return J;case 34:case 39:34!==e&&39!==e&&ce(W);break;case 40:41===e&&ce(e);break;case 92:re()}return J}function pe(e,t){for(;re()&&e+W!==57&&(e+W!==84||47!==oe()););return"/*"+ie(t,J-1)+"*"+U(47===e?e:re())}function ue(e){for(;!ae(oe());)re();return ie(e,J)}function ge(e){return function(e){return Z="",e}(he("",null,null,null,[""],e=function(e){return K=G=1,X=L(Z=e),J=0,[]}(e),0,[0],e))}function he(e,t,r,o,n,i,a,l,s){for(var d=0,c=0,p=a,u=0,g=0,h=0,m=1,A=1,f=1,b=0,x="",v=n,y=i,w=o,C=x;A;)switch(h=b,b=re()){case 40:if(108!=h&&58==H(C,p-1)){-1!=Y(C+=Q(le(b),"&","&\f"),"&\f",R(d?l[d-1]:0))&&(f=-1);break}case 34:case 39:case 91:C+=le(b);break;case 9:case 10:case 13:case 32:C+=se(h);break;case 92:C+=de(ne()-1,7);continue;case 47:switch(oe()){case 42:case 47:P(Ae(pe(re(),ne()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[d++]=L(C)*f;case 125*m:case 59:case 0:switch(b){case 0:case 125:A=0;case 59+c:-1==f&&(C=Q(C,/\f/g,"")),g>0&&L(C)-p&&P(g>32?fe(C+";",o,r,p-1,s):fe(Q(C," ","")+";",o,r,p-2,s),s);break;case 59:C+=";";default:if(P(w=me(C,t,r,d,c,n,l,x,v=[],y=[],p,i),i),123===b)if(0===c)he(C,t,w,w,v,i,p,l,y);else switch(99===u&&110===H(C,3)?100:u){case 100:case 108:case 109:case 115:he(e,w,w,o&&P(me(e,w,w,0,0,n,l,x,n,v=[],p,y),y),n,y,p,l,o?v:y);break;default:he(C,w,w,w,[""],y,0,l,y)}}d=c=g=0,m=f=1,x=C="",p=a;break;case 58:p=1+L(C),g=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==te())continue;switch(C+=U(b),b*m){case 38:f=c>0?1:(C+="\f",-1);break;case 44:l[d++]=(L(C)-1)*f,f=1;break;case 64:45===oe()&&(C+=le(re())),u=oe(),c=p=L(x=C+=ue(ne())),b++;break;case 45:45===h&&2==L(C)&&(m=0)}}return i}function me(e,t,r,o,n,i,a,l,s,d,c,p){for(var u=n-1,g=0===n?i:[""],h=j(g),m=0,A=0,f=0;m<o;++m)for(var b=0,x=M(e,u+1,u=R(A=a[m])),v=e;b<h;++b)(v=O(A>0?g[b]+" "+x:Q(x,/&\f/g,g[b])))&&(s[f++]=v);return q(e,t,r,0===n?z:l,s,d,c,p)}function Ae(e,t,r,o){return q(e,t,r,N,U(W),M(e,2,-2),0,o)}function fe(e,t,r,o,n){return q(e,t,r,I,M(e,0,o),M(e,o+1,-1),o,n)}function be(e,t,r){switch(function(e,t){return 45^H(e,0)?(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3):0}(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 4789:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+B+e+S+e+e;case 5936:switch(H(e,t+11)){case 114:return E+e+S+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+S+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+S+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return E+e+S+e+e;case 6165:return E+e+S+"flex-"+e+e;case 5187:return E+e+Q(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+S+"flex-$1$2")+e;case 5443:return E+e+S+"flex-item-"+Q(e,/flex-|-self/g,"")+(T(e,/flex-|baseline/)?"":S+"grid-row-"+Q(e,/flex-|-self/g,""))+e;case 4675:return E+e+S+"flex-line-pack"+Q(e,/align-content|flex-|-self/g,"")+e;case 5548:return E+e+S+Q(e,"shrink","negative")+e;case 5292:return E+e+S+Q(e,"basis","preferred-size")+e;case 6060:return E+"box-"+Q(e,"-grow","")+E+e+S+Q(e,"grow","positive")+e;case 4554:return E+Q(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4200:if(!T(e,/flex-|baseline/))return S+"grid-column-align"+M(e,t)+e;break;case 2592:case 3360:return S+Q(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,T(e.props,/grid-\w+-end/)}))?~Y(e+(r=r[t].value),"span",0)?e:S+Q(e,"-start","")+e+S+"grid-row-span:"+(~Y(r,"span",0)?T(r,/\d+/):+T(r,/\d+/)-+T(e,/\d+/))+";":S+Q(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return T(e.props,/grid-\w+-start/)}))?e:S+Q(Q(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(L(e)-1-t>6)switch(H(e,t+1)){case 109:if(45!==H(e,t+4))break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+B+(108==H(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Y(e,"stretch",0)?be(Q(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Q(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,o,n,i,a,l){return S+r+":"+o+l+(n?S+r+"-span:"+(i?a:+a-+o)+l:"")+e}));case 4949:if(121===H(e,t+6))return Q(e,":",":"+E)+e;break;case 6444:switch(H(e,45===H(e,14)?18:11)){case 120:return Q(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+E+(45===H(e,14)?"inline-":"")+"box$3$1"+E+"$2$3$1"+S+"$2box$3")+e;case 100:return Q(e,":",":"+S)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Q(e,"scroll-","scroll-snap-")+e}return e}function xe(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function ve(e,t,r,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case N:return"";case F:return e.return=e.value+"{"+xe(e.children,o)+"}";case z:if(!L(e.value=e.props.join(",")))return""}return L(r=xe(e.children,o))?e.return=e.value+"{"+r+"}":""}function ye(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case I:return void(e.return=be(e.value,e.length,r));case F:return xe([_(e,{value:Q(e.value,"@","@"+E)})],o);case z:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(T(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ee(_(e,{props:[Q(t,/:(read-\w+)/,":-moz-$1")]})),ee(_(e,{props:[t]})),D(e,{props:V(r,o)});break;case"::placeholder":ee(_(e,{props:[Q(t,/:(plac\w+)/,":"+E+"input-$1")]})),ee(_(e,{props:[Q(t,/:(plac\w+)/,":-moz-$1")]})),ee(_(e,{props:[Q(t,/:(plac\w+)/,S+"input-$1")]})),ee(_(e,{props:[t]})),D(e,{props:V(r,o)})}return""}))}}var we={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ce="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$e="active",ke="data-styled-version",Se="6.1.15",Be="/*!sc*/\n",Ee="undefined"!=typeof window&&"HTMLElement"in window,Ne=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),ze=/invalid hook call/i,Ie=new Set,Fe=function(e,t){if("production"!==process.env.NODE_ENV){var r=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",n=console.error;try{var i=!0;console.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];ze.test(e)?(i=!1,Ie.delete(o)):n.apply(void 0,y([e],t,!1))},a(),i&&!Ie.has(o)&&(console.warn(o),Ie.add(o))}catch(e){ze.test(e.message)&&Ie.delete(o)}finally{console.error=n}}},Re=Object.freeze([]),Ue=Object.freeze({});var De=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Te=/(^-|-$)/g;function Qe(e){return e.replace(Oe,"-").replace(Te,"")}var Ye=/(a)(d)/gi,He=function(e){return String.fromCharCode(e+(e>25?39:97))};function Me(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=He(t%52)+r;return(He(t%52)+r).replace(Ye,"$1-$2")}var Le,je=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Pe=function(e){return je(5381,e)};function Ve(e){return Me(Pe(e)>>>0)}function Ke(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ge(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Xe="function"==typeof Symbol&&Symbol.for,Je=Xe?Symbol.for("react.memo"):60115,We=Xe?Symbol.for("react.forward_ref"):60112,Ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},et=((Le={})[We]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Le[Je]=_e,Le);function tt(e){return("type"in(t=e)&&t.type.$$typeof)===Je?_e:"$$typeof"in e?et[e.$$typeof]:Ze;var t}var rt=Object.defineProperty,ot=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,it=Object.getOwnPropertyDescriptor,at=Object.getPrototypeOf,lt=Object.prototype;function st(e,t,r){if("string"!=typeof t){if(lt){var o=at(t);o&&o!==lt&&st(e,o,r)}var n=ot(t);nt&&(n=n.concat(nt(t)));for(var i=tt(e),a=tt(t),l=0;l<n.length;++l){var s=n[l];if(!(s in qe||r&&r[s]||a&&s in a||i&&s in i)){var d=it(t,s);try{rt(e,s,d)}catch(e){}}}}return e}function dt(e){return"function"==typeof e}function ct(e){return"object"==typeof e&&"styledComponentId"in e}function pt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ut(e,t){if(0===e.length)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function gt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ht(e,t,r){if(void 0===r&&(r=!1),!r&&!gt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=ht(e[o],t[o]);else if(gt(t))for(var o in t)e[o]=ht(e[o],t[o]);return e}function mt(e,t){Object.defineProperty(e,"toString",{value:t})}var At="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],o=[],n=1,i=e.length;n<i;n+=1)o.push(e[n]);return o.forEach((function(e){r=r.replace(/%[a-z]/,e)})),r}function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ft.apply(void 0,y([At[e]],t,!1)).trim())}var xt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,n=o;e>=n;)if((n<<=1)<0)throw bt(16,"".concat(e));this.groupSizes=new Uint32Array(n),this.groupSizes.set(r),this.length=n;for(var i=o;i<n;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t;this.groupSizes[e]=0;for(var n=r;n<o;n++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],o=this.indexOfGroup(e),n=o+r,i=o;i<n;i++)t+="".concat(this.tag.getRule(i)).concat(Be);return t},e}(),vt=1<<30,yt=new Map,wt=new Map,Ct=1,$t=function(e){if(yt.has(e))return yt.get(e);for(;wt.has(Ct);)Ct++;var t=Ct++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>vt))throw bt(16,"".concat(t));return yt.set(e,t),wt.set(t,e),t},kt=function(e,t){Ct=t+1,yt.set(e,t),wt.set(t,e)},St="style[".concat(Ce,"][").concat(ke,'="').concat(Se,'"]'),Bt=new RegExp("^".concat(Ce,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Et=function(e,t,r){for(var o,n=r.split(","),i=0,a=n.length;i<a;i++)(o=n[i])&&e.registerName(t,o)},Nt=function(e,t){for(var r,o=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Be),n=[],i=0,a=o.length;i<a;i++){var l=o[i].trim();if(l){var s=l.match(Bt);if(s){var d=0|parseInt(s[1],10),c=s[2];0!==d&&(kt(c,d),Et(e,c,s[3]),e.getTag().insertRules(d,n)),n.length=0}else n.push(l)}}},zt=function(e){for(var t=document.querySelectorAll(St),r=0,o=t.length;r<o;r++){var n=t[r];n&&n.getAttribute(Ce)!==$e&&(Nt(e,n),n.parentNode&&n.parentNode.removeChild(n))}};var It=function(e){var t=document.head,r=e||t,o=document.createElement("style"),n=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ce,"]")));return t[t.length-1]}(r),i=void 0!==n?n.nextSibling:null;o.setAttribute(Ce,$e),o.setAttribute(ke,Se);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&o.setAttribute("nonce",a),r.insertBefore(o,i),o},Ft=function(){function e(e){this.element=It(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,o=t.length;r<o;r++){var n=t[r];if(n.ownerNode===e)return n}throw bt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Rt=function(){function e(e){this.element=It(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ut=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Dt=Ee,Ot={isServer:!Ee,useCSSOMInjection:!Ne},Tt=function(){function e(e,t,r){void 0===e&&(e=Ue),void 0===t&&(t={});var o=this;this.options=x(x({},Ot),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ee&&Dt&&(Dt=!1,zt(this)),mt(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,o="",n=function(r){var n=function(e){return wt.get(e)}(r);if(void 0===n)return"continue";var i=e.names.get(n),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ce,".g").concat(r,'[id="').concat(n,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),o+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Be)},i=0;i<r;i++)n(i);return o}(o)}))}return e.registerId=function(e){return $t(e)},e.prototype.rehydrate=function(){!this.server&&Ee&&zt(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(x(x({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Ut(r):t?new Ft(r):new Rt(r)}(this.options),new xt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if($t(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules($t(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup($t(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Qt=/&/g,Yt=/^\s*\/\/.*$/gm;function Ht(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ht(e.children,t)),e}))}var Mt=new Tt,Lt=function(){var e,t,r,o=Ue,n=o.options,i=void 0===n?Ue:n,a=o.plugins,l=void 0===a?Re:a,s=function(r,o,n){return n.startsWith(t)&&n.endsWith(t)&&n.replaceAll(t,"").length>0?".".concat(e):r},d=l.slice();d.push((function(e){e.type===z&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Qt,t).replace(r,s))})),i.prefix&&d.push(ye),d.push(ve);var c=function(o,n,a,l){void 0===n&&(n=""),void 0===a&&(a=""),void 0===l&&(l="&"),e=l,t=n,r=new RegExp("\\".concat(t,"\\b"),"g");var s=o.replace(Yt,""),c=ge(a||n?"".concat(a," ").concat(n," { ").concat(s," }"):s);i.namespace&&(c=Ht(c,i.namespace));var p,u=[];return xe(c,function(e){var t=j(e);return function(r,o,n,i){for(var a="",l=0;l<t;l++)a+=e[l](r,o,n,i)||"";return a}}(d.concat((p=function(e){return u.push(e)},function(e){e.root||(e=e.return)&&p(e)})))),u};return c.hash=l.length?l.reduce((function(e,t){return t.name||bt(15),je(e,t.name)}),5381).toString():"",c}(),jt=o.createContext({shouldForwardProp:void 0,styleSheet:Mt,stylis:Lt});function Pt(){return l(jt)}jt.Consumer,o.createContext(void 0);var Vt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Lt);var o=r.name+t.hash;e.hasNameForId(r.id,o)||e.insertRules(r.id,o,t(r.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,mt(this,(function(){throw bt(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Lt),this.name+e.hash},e}(),Kt=function(e){return e>="A"&&e<="Z"};function Gt(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(1===r&&"-"===o&&"-"===e[0])return e;Kt(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Xt=function(e){return null==e||!1===e||""===e},Jt=function(e){var t,r,o=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!Xt(i)&&(Array.isArray(i)&&i.isCss||dt(i)?o.push("".concat(Gt(n),":"),i,";"):gt(i)?o.push.apply(o,y(y(["".concat(n," {")],Jt(i),!1),["}"],!1)):o.push("".concat(Gt(n),": ").concat((t=n,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in we||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function Wt(e,t,r,o){if(Xt(e))return[];if(ct(e))return[".".concat(e.styledComponentId)];if(dt(e)){if(!dt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var n=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof n||Array.isArray(n)||n instanceof Vt||gt(n)||null===n||console.error("".concat(Ke(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Wt(n,t,r,o)}var i;return e instanceof Vt?r?(e.inject(r,o),[e.getName(o)]):[e]:gt(e)?Jt(e):Array.isArray(e)?Array.prototype.concat.apply(Re,e.map((function(e){return Wt(e,t,r,o)}))):[e.toString()]}var Zt=Pe(Se),qt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(dt(r)&&!ct(r))return!1}return!0}(e),this.componentId=t,this.baseHash=je(Zt,t),this.baseStyle=r,Tt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=pt(o,this.staticRulesId);else{var n=ut(Wt(this.rules,e,t,r)),i=Me(je(this.baseHash,n)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(n,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}o=pt(o,i),this.staticRulesId=i}else{for(var l=je(this.baseHash,r.hash),s="",d=0;d<this.rules.length;d++){var c=this.rules[d];if("string"==typeof c)s+=c,"production"!==process.env.NODE_ENV&&(l=je(l,c));else if(c){var p=ut(Wt(c,e,t,r));l=je(l,p+d),s+=p}}if(s){var u=Me(l>>>0);t.hasNameForId(this.componentId,u)||t.insertRules(this.componentId,u,r(s,".".concat(u),void 0,this.componentId)),o=pt(o,u)}}return o},e}(),_t=o.createContext(void 0);_t.Consumer;var er={},tr=new Set;function rr(e,t,r){var a=ct(e),l=e,s=!Ge(e),d=t.attrs,c=void 0===d?Re:d,p=t.componentId,u=void 0===p?function(e,t){var r="string"!=typeof e?"sc":Qe(e);er[r]=(er[r]||0)+1;var o="".concat(r,"-").concat(Ve(Se+r+er[r]));return t?"".concat(t,"-").concat(o):o}(t.displayName,t.parentComponentId):p,g=t.displayName,h=void 0===g?function(e){return Ge(e)?"styled.".concat(e):"Styled(".concat(Ke(e),")")}(e):g,m=t.displayName&&t.componentId?"".concat(Qe(t.displayName),"-").concat(t.componentId):t.componentId||u,A=a&&l.attrs?l.attrs.concat(c).filter(Boolean):c,f=t.shouldForwardProp;if(a&&l.shouldForwardProp){var b=l.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;f=function(e,t){return b(e,t)&&v(e,t)}}else f=b}var y=new qt(r,m,a?l.componentStyle:void 0);function w(e,t){return function(e,t,r){var a=e.attrs,l=e.componentStyle,s=e.defaultProps,d=e.foldedComponentIds,c=e.styledComponentId,p=e.target,u=o.useContext(_t),g=Pt(),h=e.shouldForwardProp||g.shouldForwardProp;"production"!==process.env.NODE_ENV&&n(c);var m=function(e,t,r){return void 0===r&&(r=Ue),e.theme!==r.theme&&e.theme||t||r.theme}(t,u,s)||Ue,A=function(e,t,r){for(var o,n=x(x({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=dt(o=e[i])?o(n):o;for(var l in a)n[l]="className"===l?pt(n[l],a[l]):"style"===l?x(x({},n[l]),a[l]):a[l]}return t.className&&(n.className=pt(n.className,t.className)),n}(a,t,m),f=A.as||p,b={};for(var v in A)void 0===A[v]||"$"===v[0]||"as"===v||"theme"===v&&A.theme===m||("forwardedAs"===v?b.as=A.forwardedAs:h&&!h(v,f)||(b[v]=A[v],h||"development"!==process.env.NODE_ENV||$(v)||tr.has(v)||!De.has(f)||(tr.add(v),console.warn('styled-components: it looks like an unknown prop "'.concat(v,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var y=function(e,t){var r=Pt(),o=e.generateAndInjectStyles(t,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&n(o),o}(l,A);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(y);var w=pt(d,c);return y&&(w+=" "+y),A.className&&(w+=" "+A.className),b[Ge(f)&&!De.has(f)?"class":"className"]=w,r&&(b.ref=r),i(f,b)}(C,e,t)}w.displayName=h;var C=o.forwardRef(w);return C.attrs=A,C.componentStyle=y,C.displayName=h,C.shouldForwardProp=f,C.foldedComponentIds=a?pt(l.foldedComponentIds,l.styledComponentId):"",C.styledComponentId=m,C.target=a?l.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var o=0,n=t;o<n.length;o++)ht(e,n[o],!0);return e}({},l.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Fe(h,m),C.warnTooManyClasses=function(e,t){var r={},o=!1;return function(n){if(!o&&(r[n]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(i,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,r={}}}}(h,m)),mt(C,(function(){return".".concat(C.styledComponentId)})),s&&st(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function or(e,t){for(var r=[e[0]],o=0,n=t.length;o<n;o+=1)r.push(t[o],e[o+1]);return r}var nr=function(e){return Object.assign(e,{isCss:!0})};function ir(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(dt(e)||gt(e))return nr(Wt(or(Re,y([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?Wt(o):nr(Wt(or(o,t)))}function ar(e,t,r){if(void 0===r&&(r=Ue),!t)throw bt(1,t);var o=function(o){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return e(t,r,ir.apply(void 0,y([o],n,!1)))};return o.attrs=function(o){return ar(e,t,x(x({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return ar(e,t,x(x({},r),o))},o}var lr=function(e){return ar(rr,e)},sr=lr;function dr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=ut(ir.apply(void 0,y([e],t,!1))),n=Ve(o);return new Vt(n,o)}De.forEach((function(e){sr[e]=lr(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var cr="__sc-".concat(Ce,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[cr]||(window[cr]=0),1===window[cr]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[cr]+=1);var pr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAClSURBVHgB7Y89DsIwDIUdomRIMnTIz8oR2Fi5CVfoDYCNjYzcpitnyYJYsoKN2gURSmFsPimSZT8/vwBUZkiD/KNbvDaEEHvnXAcjSCk71MVRQ855ZIwtUXwqmXnvdxSStPAN1toNLt1DCO07M5rhwRVMAU3bfnE79KguHRrgpUHO+aK1xt+zaIy5KaXWWJ9xdEgpHeFXKCkmu9L7lGwSTQ9UKk8eYgIfE1UYUugAAAAASUVORK5CYII=";const ur={small:{h:40,p:8,f:16},medium:{h:48,p:12,f:16},large:{h:56,p:16,f:16}},gr=n=>{var i,{size:a="medium",title:l,expanded:s,onChange:d,defaultExpanded:c,iconAlignment:p="trailing",flush:u=!1,children:g}=n,h=v(n,["size","title","expanded","onChange","defaultExpanded","iconAlignment","flush","children"]);const A=b(),f=o.useRef(null),[x,y]=o.useState(c),[w,C]=o.useState(0);let $=`solid 1px ${A.palette.neutral[300]}`,k="solid 2px transparent",S="pointer",B="#161616";const E=void 0!==s?s:x;h.disabled&&(S="default",$=`solid 1px ${A.palette.neutral[300]}`,k="none",B=A.palette.neutral[400]);return o.useEffect((()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.clientHeight)&&C(f.current.clientHeight)}),[null===(i=f.current)||void 0===i?void 0:i.clientHeight]),t("div",{className:m("dgaui dgaui_accordion",h.className),tabIndex:1,children:[t(hr,Object.assign({$customStyle:{direction:A.direction,minHeight:ur[a].h,padding:ur[a].p,fontSize:ur[a].f,fontColor:B,colors:A.palette.neutral,border:k,borderTop:$,cursor:S},flush:u},h,{onClick:e=>{d&&d(e,!E),y(!E)},className:"dgaui dgaui_accordion_title",children:["leading"===p&&t("div",{style:{display:"flex",alignItems:"flex-start",justifyItems:"center",gap:16},children:[e("span",{children:e("img",{alt:"arrowdown",src:pr,style:{transition:"all 0.2s",transform:E?"rotateZ(180deg)":"none"}})}),e("span",{children:l})]}),"trailing"===p&&t(r,{children:[e("span",{children:l}),e("img",{alt:"arrowdown",src:pr,style:{transition:"all 0.2s",transform:E?"rotateZ(180deg)":"none"}})]})]})),e("div",{className:"dgaui_accordionContent",style:{direction:A.direction,height:E?w:0,overflow:"hidden",transition:"all 0.2s",color:B},children:e("div",{ref:f,style:{padding:16},children:g})})]})},hr=sr.button`
|
|
2
2
|
direction: ${e=>e.$customStyle.direction};
|
|
3
3
|
outline: none;
|
|
4
4
|
min-height: ${e=>e.$customStyle.minHeight}px;
|
|
@@ -30,7 +30,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
30
30
|
&:disabled:active {
|
|
31
31
|
background-color: #fff;
|
|
32
32
|
}
|
|
33
|
-
`;var mr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACySURBVHgBfVGxEQIhEIQnegiMgPRLsQRLsAPtQMwMLUE78UPL+MyBmBRcZiTw4Z6ZG3budmFZuDHmkHPehRCebGNprU+c82VIKU0ADwgvFLnMwLmXg2vDoXJPVHq/mVsPGlGPLCqIMb6UUhzQYWeofcGoq/fesQ2/9abWBtbQ0WQC/1uqnqsN1Fztwe7MOlaaB5LpkdH1RPjBI0Vei6y1ZzGO4ySEeCO6GyUokUspF8DPF27nTJwLb4bWAAAAAElFTkSuQmCC",Ar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgB7ZLBCcAwCEVNV0jUNTpCN2g3yipu0hE6UmuggVB6UwiBPPAg6Dv4BZh0BxHXtl/AABHlEMLFzDtYKTKtW0vASj9ZSmlzk8UYj3c4m2XNkvxJTTf7Sl0CqFJ92tMzTXGTVUpQMBmfB72yKHZx70rDAAAAAElFTkSuQmCC",fr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF/SURBVHgBjVOxTgJBEJ3ZOwwl5RmbTdDEEv9ASqMWfAH4BfAJ/oHwBcIXoBFDiX+gpYkU2xgpKS+6d+PMckfW49Sbanf2zbyZebMIJTbVuhGGcUsRaLmnCOZyuXoqw2IxcE/FfUIcAFCjgDVIMP5M66OOMeudBHMd6SSABR81O8fMOglDMPJmLfsIenzsSqKgBu2z15XZJhDmWhA/87VBSJ3fyn08OmhRmjIJrb+S+olUouRBynbMSrX9YAmYH0c6v5+/vb8IgWB5RgPxuQSE0JOyBeAzUprcJBZufV9GMEHCvlSuHg6jU8koPUNFY8KxDNkplUuVD6yKhXaDVcit/IlEvIf/ksmSsEROKr4b//Fi+TEsC7KhkxVSAqOsrfPgcM2tdIvAWTNazJr7d0V/hnXbqURLlmbECXvZQLcWJHDF0l77PrcLjKVs6DuLJLtQlDM3IWD5pv4iVV5lKVuYoWyVc8t+4QA3Peqf/Oha5ZkNSz9TWbn+d5Zh+4G5fQMA8cBCDpoKdwAAAABJRU5ErkJggg==";const br=({indeterminate:t=!1})=>e("svg",t?{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{width:"12",height:"2",rx:"1",className:"checkmark",fill:"white"})}:{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5945 0.535432C12.1352 1.07616 12.1352 1.95286 11.5945 2.4936L5.2483 8.83982C4.98864 9.09949 4.63645 9.24537 4.26923 9.24537C3.90201 9.24537 3.54983 9.09949 3.29016 8.83982L0.405544 5.95517C-0.135181 5.41444 -0.135181 4.53774 0.405545 3.99701C0.946271 3.45628 1.82296 3.45628 2.36369 3.99701L4.26923 5.90257L9.63631 0.535432C10.177 -0.00530017 11.0537 -0.00530013 11.5945 0.535432Z",className:"checkmark",fill:"white"})}),xr={xSmall:{w:14,h:14,svgW:9,svgH:9,svgLeft:2.5,svgTop:3},small:{w:18,h:18,svgW:12,svgH:12,svgLeft:3,svgTop:4},medium:{w:22,h:22,svgW:14,svgH:14,svgLeft:4,svgTop:5}},vr=r=>{var{label:o,description:n,error:i,onChange:l,value:d,size:c,style:p="primary",indeterminate:u=!1}=r,g=v(r,["label","description","error","onChange","value","size","style","indeterminate"]);const h=b(),f={neutral:{default:(x=h).palette.neutral[600],hovered:x.palette.neutral[800],active:x.palette.neutral[900],disabled:x.palette.neutral[200]},primary:{default:x.palette.primary[600],hovered:x.palette.primary[800],active:x.palette.primary[900],disabled:x.palette.neutral[200]}};var x;const y=null!=c?c:"medium";let
|
|
33
|
+
`;var mr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACySURBVHgBfVGxEQIhEIQnegiMgPRLsQRLsAPtQMwMLUE78UPL+MyBmBRcZiTw4Z6ZG3budmFZuDHmkHPehRCebGNprU+c82VIKU0ADwgvFLnMwLmXg2vDoXJPVHq/mVsPGlGPLCqIMb6UUhzQYWeofcGoq/fesQ2/9abWBtbQ0WQC/1uqnqsN1Fztwe7MOlaaB5LpkdH1RPjBI0Vei6y1ZzGO4ySEeCO6GyUokUspF8DPF27nTJwLb4bWAAAAAElFTkSuQmCC",Ar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgB7ZLBCcAwCEVNV0jUNTpCN2g3yipu0hE6UmuggVB6UwiBPPAg6Dv4BZh0BxHXtl/AABHlEMLFzDtYKTKtW0vASj9ZSmlzk8UYj3c4m2XNkvxJTTf7Sl0CqFJ92tMzTXGTVUpQMBmfB72yKHZx70rDAAAAAElFTkSuQmCC",fr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF/SURBVHgBjVOxTgJBEJ3ZOwwl5RmbTdDEEv9ASqMWfAH4BfAJ/oHwBcIXoBFDiX+gpYkU2xgpKS+6d+PMckfW49Sbanf2zbyZebMIJTbVuhGGcUsRaLmnCOZyuXoqw2IxcE/FfUIcAFCjgDVIMP5M66OOMeudBHMd6SSABR81O8fMOglDMPJmLfsIenzsSqKgBu2z15XZJhDmWhA/87VBSJ3fyn08OmhRmjIJrb+S+olUouRBynbMSrX9YAmYH0c6v5+/vb8IgWB5RgPxuQSE0JOyBeAzUprcJBZufV9GMEHCvlSuHg6jU8koPUNFY8KxDNkplUuVD6yKhXaDVcit/IlEvIf/ksmSsEROKr4b//Fi+TEsC7KhkxVSAqOsrfPgcM2tdIvAWTNazJr7d0V/hnXbqURLlmbECXvZQLcWJHDF0l77PrcLjKVs6DuLJLtQlDM3IWD5pv4iVV5lKVuYoWyVc8t+4QA3Peqf/Oha5ZkNSz9TWbn+d5Zh+4G5fQMA8cBCDpoKdwAAAABJRU5ErkJggg==";const br=({indeterminate:t=!1})=>e("svg",t?{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{width:"12",height:"2",rx:"1",className:"checkmark",fill:"white"})}:{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5945 0.535432C12.1352 1.07616 12.1352 1.95286 11.5945 2.4936L5.2483 8.83982C4.98864 9.09949 4.63645 9.24537 4.26923 9.24537C3.90201 9.24537 3.54983 9.09949 3.29016 8.83982L0.405544 5.95517C-0.135181 5.41444 -0.135181 4.53774 0.405545 3.99701C0.946271 3.45628 1.82296 3.45628 2.36369 3.99701L4.26923 5.90257L9.63631 0.535432C10.177 -0.00530017 11.0537 -0.00530013 11.5945 0.535432Z",className:"checkmark",fill:"white"})}),xr={xSmall:{w:14,h:14,svgW:9,svgH:9,svgLeft:2.5,svgTop:3},small:{w:18,h:18,svgW:12,svgH:12,svgLeft:3,svgTop:4},medium:{w:22,h:22,svgW:14,svgH:14,svgLeft:4,svgTop:5}},vr=r=>{var{label:o,description:n,error:i,onChange:l,value:d,size:c,style:p="primary",indeterminate:u=!1}=r,g=v(r,["label","description","error","onChange","value","size","style","indeterminate"]);const h=b(),f={neutral:{default:(x=h).palette.neutral[600],hovered:x.palette.neutral[800],active:x.palette.neutral[900],disabled:x.palette.neutral[200]},primary:{default:x.palette.primary[600],hovered:x.palette.primary[800],active:x.palette.primary[900],disabled:x.palette.neutral[200]}};var x;const y=null!=c?c:"medium";let w=h.textColor,C=f[p].default,$=f[p].hovered,k=f[p].active;const S=A(),B=a(null);return s((()=>{B.current&&(B.current.indeterminate=u)}),[u]),t(yr,{$customStyle:{theme:h,fontColor:w,backgroundColor:C,backgroundColorHovered:$,backgroundColorActive:k,width:xr[y].w,height:xr[y].h,svgW:xr[y].svgW,svgH:xr[y].svgW,svgLeft:xr[y].svgLeft,svgTop:xr[y].svgTop},className:m("dgaui dgaui_checkboxContainer",g.className),children:[t("div",{className:"dgaui_checkboxHead",children:[t("label",{className:"dgaui_checkbox",children:[e("input",Object.assign({ref:B,id:S,type:"checkbox"},g,{checked:d,onChange:e=>{l&&l(e,e.target.checked)}})),e(br,{indeterminate:u})]}),o&&e("label",{htmlFor:g.id||S,className:"dgaui_checkboxLabel",children:o})]}),(n||i)&&t("div",{className:"dgaui_checkboxDescription",children:[n&&e("div",{className:"dgaui_checkboxDescriptionText",children:n}),i&&e("div",{className:"dgaui_checkboxDescriptionError",children:i})]})]})},yr=sr.div`
|
|
34
34
|
direction: ${e=>e.$customStyle.theme.direction};
|
|
35
35
|
color: ${e=>e.$customStyle.fontColor};
|
|
36
36
|
|
|
@@ -217,7 +217,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
217
217
|
height: 0;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
`,
|
|
220
|
+
`,wr=r=>{var{selected:o,multiple:n,value:i,onClick:a,children:l}=r,s=v(r,["selected","multiple","value","onClick","children"]);const d=b();return t(Cr,{className:m("dgaui dgaui_dropdownItem"+(o?" selected":""),s.className),$theme:d,$selected:o,$multiple:n,onClick:e=>{a&&a(e,i)},children:[n&&e(vr,{color:"neutral",size:"small",value:o}),l]})},Cr=sr.div`
|
|
221
221
|
direction: ${e=>e.$theme.direction};
|
|
222
222
|
color: ${e=>e.$theme.textColor};
|
|
223
223
|
padding: 8px;
|
|
@@ -249,7 +249,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
249
249
|
margin-bottom: 0;
|
|
250
250
|
margin-inline-end: 8px;
|
|
251
251
|
}
|
|
252
|
-
`,$r={xsmall:{w:56,h:20,py:8,f:10},small:{w:64,h:24,py:8,f:12},medium:{w:86,h:32,py:12,f:16}},kr=o=>{var n,{children:i,style:a,size:l,outLine:s,iconOnly:d,leadIcon:c,trailIcon:p,rounded:u}=o,g=v(o,["children","style","size","outLine","iconOnly","leadIcon","trailIcon","rounded"]);const h=b(),A=null!=a?a:"neutral",f=null!=l?l:"medium",x=null==s||s,y=null!==(n={neutral:{bg:(
|
|
252
|
+
`,$r={xsmall:{w:56,h:20,py:8,f:10},small:{w:64,h:24,py:8,f:12},medium:{w:86,h:32,py:12,f:16}},kr=o=>{var n,{children:i,style:a,size:l,outLine:s,iconOnly:d,leadIcon:c,trailIcon:p,rounded:u}=o,g=v(o,["children","style","size","outLine","iconOnly","leadIcon","trailIcon","rounded"]);const h=b(),A=null!=a?a:"neutral",f=null!=l?l:"medium",x=null==s||s,y=null!==(n={neutral:{bg:(w=h).palette.neutral[50],border:w.palette.neutral[200],borderOutlined:w.palette.neutral[600],fontColor:w.palette.neutral[800]},success:{bg:w.palette.info[50],border:w.palette.success[200],borderOutlined:w.palette.success[700],fontColor:w.palette.success[800]},error:{bg:w.palette.error[50],border:w.palette.error[200],borderOutlined:w.palette.error[700],fontColor:w.palette.error[800]},warning:{bg:w.palette.warning[50],border:w.palette.warning[200],borderOutlined:w.palette.warning[700],fontColor:w.palette.warning[800]},info:{bg:"#EFF8FF",border:w.palette.info[200],borderOutlined:w.palette.info[700],fontColor:w.palette.info[800]},onColor:{bg:"rgba(255, 255, 255, 0.2)",border:"transparent",borderOutlined:"rgba(255, 255, 255, 0.6)",fontColor:w.textOnColor}})&&void 0!==n?n:"neutral";var w;let C=y[A].bg,$=y[A].border,k=y[A].borderOutlined,S=y[A].fontColor,B=`border: 1px solid ${$}`,E=u?9999:4;return x&&(C="transparent",B=`border: 1px solid ${k}`),t(Sr,{className:m("dgaui dgaui_tag",g.className),$customStyle:{direction:h.direction,minWidth:d?0:$r[f].w,height:$r[f].h,paddingY:$r[f].py,fontSize:$r[f].f,fontColor:S,backgroundColor:C,border:B,borderRadius:E},children:[d&&e("div",{className:"iconOnly",children:c||i}),!d&&t(r,{children:[e("div",{className:"leadIcon",children:c}),i,e("div",{className:"trailIcon",children:p})]})]})},Sr=sr.div`
|
|
253
253
|
direction: ${e=>e.$customStyle.direction};
|
|
254
254
|
min-width: ${e=>e.$customStyle.minWidth}px;
|
|
255
255
|
color: ${e=>e.$customStyle.fontColor};
|
|
@@ -272,7 +272,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
272
272
|
margin-inline-start: 4px;
|
|
273
273
|
display: inline-flex;
|
|
274
274
|
}
|
|
275
|
-
`,Br={medium:{w:320,h:32,p:16,f:14},large:{w:320,h:40,p:16,f:16}},Er=({label:r,className:n,size:i,variant:a,error:l,onChange:s,value:d,placeholder:c,options:p,getOptionLabel:u,disabled:g,multiple:h,maxTagsToShow:A,maxTagsLabel:f})=>{const x=b(),[v,y]=o.useState(!1),[C
|
|
275
|
+
`,Br={medium:{w:320,h:32,p:16,f:14},large:{w:320,h:40,p:16,f:16}},Er=({label:r,className:n,size:i,variant:a,error:l,onChange:s,value:d,placeholder:c,options:p,getOptionLabel:u,disabled:g,multiple:h,maxTagsToShow:A,maxTagsLabel:f})=>{const x=b(),[v,y]=o.useState(!1),[w,C]=o.useState(""),[$,k]=o.useState(""),[S,B]=o.useState(),[E,N]=o.useState({top:0,left:0,width:0}),z=o.useRef(null),I=null!=i?i:"large";let F=x.textColor,R=x.palette.neutral[500],U=`1px solid ${l?x.palette.error[700]:x.palette.neutral[400]}`,D=`1px solid ${l?x.palette.error[700]:x.palette.neutral[700]}`,O=`1px solid ${l?x.palette.error[700]:x.palette.neutral[700]}`,T="#FFF",Q=l?x.palette.error[700]:x.textColor,Y=x.elevation.shadows.md;"lighter"===a&&(T=x.palette.neutral[25],U="1px solid transparent",D=`1px solid ${x.palette.neutral[400]}`,O=`1px solid ${x.palette.neutral[400]}`),"darker"===a&&(T=x.palette.neutral[100]),g&&(F=x.palette.neutral[400],U=`1px solid ${x.palette.neutral[200]}`,D=`1px solid ${x.palette.neutral[200]}`);const H=e=>u?u(e):null==e?void 0:e.label,M=o.useMemo((()=>{let e=[];return $&&p.length>0?p.forEach((t=>{var r;(u&&u(t).toLowerCase().trim().includes($.toLowerCase().trim())||!u&&(null===(r=null==t?void 0:t.label)||void 0===r?void 0:r.toLowerCase().trim().includes($.toLowerCase().trim())))&&e.push(t)})):e=p,e}),[p,$]),L=()=>{z.current&&N({top:z.current.offsetTop+z.current.clientHeight,left:z.current.offsetLeft,width:z.current.clientWidth})};return o.useEffect((()=>{if(z.current){const e=()=>{z.current&&L()},t=e=>{var t;(null===(t=z.current)||void 0===t?void 0:t.contains(e.target))||y(!1)};return window.addEventListener("resize",e),window.addEventListener("click",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("click",t)}}}),[z]),o.useEffect((()=>{if(!d)return C(""),k(""),B([]),void y(!1);Array.isArray(d)||C(H(d)),h&&Array.isArray(d)?B(d):B([d])}),[d,p]),o.useEffect((()=>{v&&L()}),[v,S]),t(Nr,{$theme:x,className:m("dgaui dgaui_autocomplete",n),children:[e("label",{className:g?"disabled":void 0,children:r}),t(zr,{ref:z,onClick:()=>y((e=>!e)),className:"dgaui_dropdownContainer "+(h?"multiple ":"")+(g?"disabled":""),$customStyle:{theme:x,direction:x.direction,minWidth:Br[I].w,height:Br[I].h,padding:Br[I].p,fontSize:Br[I].f,placeholderFontColor:R,fontColor:F,border:U,borderHovered:D,borderFocused:O,backgroundColor:T,shadowFocus:Y},children:[h&&(!A||A&&S&&(null==S?void 0:S.length)<=A)&&(null==S?void 0:S.map(((r,o)=>t(kr,{rounded:!0,size:"medium",color:"neutral",children:[H(r),e("button",{className:"deleteIcon",onClick:e=>((e,t)=>{if(e.stopPropagation(),h&&S){let r=[];const o=S.filter((e=>e!==t));B(o),r=p.filter((e=>o.includes(e))),s&&s(e,r)}})(e,r)})]},o)))),h&&A&&A>0&&S&&(null==S?void 0:S.length)>A&&t(kr,{rounded:!0,size:"medium",color:"neutral",children:[f||`${S.length} selected`,e("button",{className:"deleteIcon",onClick:e=>{e.stopPropagation(),h&&S&&(B([]),s&&s(e,[]))}})]}),e("input",{className:"dgaui",disabled:g,placeholder:c,value:w,onChange:e=>{v||y(!0),C(e.target.value),k(e.target.value)}})]}),(null==M?void 0:M.length)>0&&e("div",{className:"items"+(v?" slide-bottom":""),style:E,children:M.map(((t,r)=>{if(!t)return null;let o=t;return"object"==typeof t&&(o=null==t?void 0:t.label),e(wr,{value:t,onClick:(e,t)=>((e,t)=>{if(h&&e.stopPropagation(),h&&S){let r=[];if(S.includes(t)){const e=S.filter((e=>e!==t));B(e),r=e}if(!S.includes(t)){const e=[...S,t];B(e),r=e}s&&s(e,r)}else{s&&s(e,t),B([t]);const r=H(t);C(r)}})(e,t),selected:null==S?void 0:S.includes(t),children:u?u(t):o},r)}))}),e(Ir,{$bgColor:Q,className:"dgaui_autocompleteSeparator"+(v?" open":"")})]})},Nr=sr.div`
|
|
276
276
|
direction: ${e=>e.$theme.direction};
|
|
277
277
|
display: flex;
|
|
278
278
|
flex-direction: column;
|
|
@@ -480,7 +480,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
480
480
|
&.stacked {
|
|
481
481
|
${e=>(({index:e=0,op:t="-"})=>`\n transform: translateX(${t}${8*e}px);\n`)({index:e.$index,op:"ltr"===e.$theme.direction?"-":"+"})}
|
|
482
482
|
}
|
|
483
|
-
`;const Dr=({items:n,className:i})=>{const a=b(),[l,s]=o.useState(!1),d=o.useRef(null),c=o.useRef(null),[p,u]=o.useState({top:0,left:0,width:0}),g=()=>{s(!0)};let h=n.map(((t,r)=>e("span",{className:"dgaui_breadcrumbItem",onClick:()=>t.onClick&&t.onClick(),children:t.label},r)));if(n.length>5){const o=[n[n.length-2],n[n.length-1]];h=t(r,{children:[e("span",{className:"dgaui_breadcrumbItem",onClick:()=>n[0].onClick&&n[0].onClick(),children:n[0].label}),e("span",{ref:d,onClick:g,className:"dgaui_breadcrumbItem dots",children:"..."}),o.map(((t,r)=>e("span",{className:"dgaui_breadcrumbItem",onClick:()=>t.onClick&&t.onClick(),children:t.label},r)))]})}return o.useEffect((()=>{if(d.current&&c.current){u({top:c.current.offsetTop+c.current.clientHeight,left:c.current.offsetLeft,width:c.current.clientWidth});const e=()=>{d.current&&c.current&&u({top:c.current.offsetTop+c.current.clientHeight,left:c.current.offsetLeft,width:c.current.clientWidth})},t=e=>{var t;(null===(t=c.current)||void 0===t?void 0:t.contains(e.target))||s(!1)};return window.addEventListener("resize",e),window.addEventListener("click",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("click",t)}}}),[d]),t(r,{children:[e(Or,{className:m("dgaui dgaui_breadcrumb",i),$theme:a,$icon:"ltr"===a.direction?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACbSURBVHgBzZHBDYMwDEUdh0HaTTpCK45tpebAHG03KPdKaZG4ITECI8AocAcHOCAhFIgRF97R9n9RbIBd8o2Ss47TJ2cWbUXZyILIPDgSMdfQOj2QZzJE8VPXy3u1gCtZFHAkTsFIkmNdHZVS5biHsBGnYPgCgQmnr/ewltiF/8Hdf9lmnGdcCs8KuOEez1YkSScSEAY3/wO7pwU2FFQ/1m+2IwAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACPSURBVHgB5ZI9CoUwEIQ34R3gXU1S+gMi1uoJjDdIL2KhluLZ7DWrayUSNbY6sKQY5stmCMA3VHdDUrV9avK4RTjXiEoj/E0+swjLdYrYF/IRwCZ8CrANk4wdTLMe6fxxjnAjIyAOhKLbaQva5gpwWWLZ9JIzlq8jQ9cpHgP2EADMIk+oo3/7D6jE7TnwWi3nAk7pNHjsVAAAAABJRU5ErkJggg==",ref:c,children:h}),n.length>5&&e(Tr,{$theme:a,className:"dgaui_breadcrumbList"+(l?" slide-bottom":""),style:Object.assign({},p),children:n.map(((t,r)=>e(
|
|
483
|
+
`;const Dr=({items:n,className:i})=>{const a=b(),[l,s]=o.useState(!1),d=o.useRef(null),c=o.useRef(null),[p,u]=o.useState({top:0,left:0,width:0}),g=()=>{s(!0)};let h=n.map(((t,r)=>e("span",{className:"dgaui_breadcrumbItem",onClick:()=>t.onClick&&t.onClick(),children:t.label},r)));if(n.length>5){const o=[n[n.length-2],n[n.length-1]];h=t(r,{children:[e("span",{className:"dgaui_breadcrumbItem",onClick:()=>n[0].onClick&&n[0].onClick(),children:n[0].label}),e("span",{ref:d,onClick:g,className:"dgaui_breadcrumbItem dots",children:"..."}),o.map(((t,r)=>e("span",{className:"dgaui_breadcrumbItem",onClick:()=>t.onClick&&t.onClick(),children:t.label},r)))]})}return o.useEffect((()=>{if(d.current&&c.current){u({top:c.current.offsetTop+c.current.clientHeight,left:c.current.offsetLeft,width:c.current.clientWidth});const e=()=>{d.current&&c.current&&u({top:c.current.offsetTop+c.current.clientHeight,left:c.current.offsetLeft,width:c.current.clientWidth})},t=e=>{var t;(null===(t=c.current)||void 0===t?void 0:t.contains(e.target))||s(!1)};return window.addEventListener("resize",e),window.addEventListener("click",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("click",t)}}}),[d]),t(r,{children:[e(Or,{className:m("dgaui dgaui_breadcrumb",i),$theme:a,$icon:"ltr"===a.direction?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACbSURBVHgBzZHBDYMwDEUdh0HaTTpCK45tpebAHG03KPdKaZG4ITECI8AocAcHOCAhFIgRF97R9n9RbIBd8o2Ss47TJ2cWbUXZyILIPDgSMdfQOj2QZzJE8VPXy3u1gCtZFHAkTsFIkmNdHZVS5biHsBGnYPgCgQmnr/ewltiF/8Hdf9lmnGdcCs8KuOEez1YkSScSEAY3/wO7pwU2FFQ/1m+2IwAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACPSURBVHgB5ZI9CoUwEIQ34R3gXU1S+gMi1uoJjDdIL2KhluLZ7DWrayUSNbY6sKQY5stmCMA3VHdDUrV9avK4RTjXiEoj/E0+swjLdYrYF/IRwCZ8CrANk4wdTLMe6fxxjnAjIyAOhKLbaQva5gpwWWLZ9JIzlq8jQ9cpHgP2EADMIk+oo3/7D6jE7TnwWi3nAk7pNHjsVAAAAABJRU5ErkJggg==",ref:c,children:h}),n.length>5&&e(Tr,{$theme:a,className:"dgaui_breadcrumbList"+(l?" slide-bottom":""),style:Object.assign({},p),children:n.map(((t,r)=>e(wr,{onClick:()=>t.onClick&&t.onClick(),children:t.label},r)))})]})},Or=sr.div`
|
|
484
484
|
direction: ${e=>e.$theme.direction};
|
|
485
485
|
display: flex;
|
|
486
486
|
|
|
@@ -554,7 +554,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
554
554
|
opacity: 1;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
`,
|
|
557
|
+
`,Qr="#FFF",Yr="#FFF3",Hr="#FFFFFF4D",Mr="#FFF6",Lr="#FFF9",jr="#FFFFFFB2",Pr="#FFFC",Vr={small:{w:74,h:24,p:8,f:12},medium:{w:94,h:32,p:12,f:14},large:{w:110,h:40,p:16,f:16}},Kr=o.forwardRef(((o,n)=>{var{children:i,size:a="large",style:l="primary",buttonStyle:s,destructive:d,iconOnly:c,onColor:p,leadIcon:u,trailIcon:g}=o,h=v(o,["children","size","style","buttonStyle","destructive","iconOnly","onColor","leadIcon","trailIcon"]);const A=b(),f=((e,t=!1,r=!1)=>t||r?!t&&r?{neutral:{backgroundColor:{default:e.palette.neutral[950],hovered:e.palette.neutral[800],active:e.palette.neutral[600],disabled:e.palette.neutral[200]},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:e.palette.neutral[400]}},primary:{backgroundColor:{default:e.palette.error[600],hovered:e.palette.error[700],active:e.palette.error[900],disabled:e.palette.neutral[200]},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor},innerBorderColor:{focus:Qr}},"secondary-solid":{backgroundColor:{default:e.palette.error[50],hovered:e.palette.error[100],active:e.palette.error[200],disabled:e.palette.neutral[200]},fontColor:{default:e.palette.error[700],hovered:e.palette.error[200],active:e.palette.error[200],disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor}},"secondary-outline":{backgroundColor:{default:"transparent",hovered:e.palette.error[100],active:e.palette.error[200],disabled:"transparent"},fontColor:{default:e.palette.error[700],hovered:e.palette.error[700],active:e.palette.error[700],disabled:e.palette.neutral[400]},borderColor:{default:e.palette.error[200],hovered:e.palette.error[200],active:e.palette.error[200],disabled:e.palette.neutral[400],focus:e.textColor}},subtle:{backgroundColor:{default:"transparent",hovered:e.palette.error[100],active:e.palette.error[200],disabled:"transparent"},fontColor:{default:e.palette.error[700],hovered:e.palette.error[700],active:e.palette.error[700],disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor}},transparent:{backgroundColor:{default:"transparent",hovered:"transparent",active:"transparent",disabled:"transparent"},fontColor:{default:e.palette.error[600],hovered:e.palette.error[700],active:e.palette.error[900],disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor}}}:t&&!r?{neutral:{backgroundColor:{default:Qr,hovered:Pr,active:Lr,disabled:Yr},fontColor:{default:e.textColor,hovered:e.textColor,active:e.textColor,disabled:Mr},borderColor:{focus:Qr},innerBorderColor:{focus:e.textColor}},primary:{backgroundColor:{default:Qr,hovered:Pr,active:Lr,disabled:Yr},fontColor:{default:e.textColor,hovered:e.textColor,active:e.textColor,disabled:Mr},borderColor:{focus:Qr},innerBorderColor:{focus:e.textColor}},"secondary-solid":{backgroundColor:{default:Yr,hovered:Yr,active:Mr,disabled:e.palette.neutral[200]},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:Mr},borderColor:{focus:Qr}},"secondary-outline":{backgroundColor:{default:"transparent",hovered:Yr,active:Mr,disabled:"transparent"},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:Mr},borderColor:{default:Mr,hovered:Mr,active:Mr,disabled:e.palette.neutral[400],focus:Qr}},subtle:{backgroundColor:{default:"transparent",hovered:Yr,active:Mr,disabled:"transparent"},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:Mr},borderColor:{focus:Qr}},transparent:{backgroundColor:{default:"transparent",hovered:"transparent",active:"transparent",disabled:"transparent"},fontColor:{default:e.textOnColor||Qr,hovered:e.palette.primary[400],active:e.palette.primary[300],disabled:Mr},borderColor:{focus:Qr}}}:{neutral:{backgroundColor:{default:e.palette.neutral[950],hovered:e.palette.neutral[800],active:e.palette.neutral[600],disabled:e.palette.neutral[200]},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:e.palette.neutral[400]}},primary:{backgroundColor:{default:e.palette.error[600],hovered:e.palette.error[700],active:e.palette.error[900],disabled:e.palette.neutral[200]},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:e.palette.neutral[400]},borderColor:{focus:Qr},innerBorderColor:{focus:e.textColor}},"secondary-solid":{backgroundColor:{default:e.palette.error[50],hovered:e.palette.error[100],active:e.palette.error[200],disabled:e.palette.neutral[200]},fontColor:{default:e.palette.error[700],hovered:e.palette.error[200],active:e.palette.error[200],disabled:e.palette.neutral[400]},borderColor:{focus:Qr}},"secondary-outline":{backgroundColor:{default:"transparent",hovered:e.palette.error[100],active:e.palette.error[200],disabled:"transparent"},fontColor:{default:e.palette.error[200],hovered:e.palette.error[700],active:e.palette.error[700],disabled:e.palette.neutral[400]},borderColor:{default:e.palette.error[200],hovered:e.palette.error[200],active:e.palette.error[200],disabled:e.palette.neutral[400],focus:Qr}},subtle:{backgroundColor:{default:"transparent",hovered:e.palette.error[100],active:e.palette.error[200],disabled:"transparent"},fontColor:{default:e.palette.error[200],hovered:e.palette.error[700],active:e.palette.error[700],disabled:e.palette.neutral[400]},borderColor:{focus:Qr}},transparent:{backgroundColor:{default:"transparent",hovered:"transparent",active:"transparent",disabled:"transparent"},fontColor:{default:e.palette.error[200],hovered:e.palette.error[300],active:e.palette.error[400],disabled:e.palette.neutral[400]},borderColor:{focus:Qr}}}:{neutral:{backgroundColor:{default:e.palette.neutral[950],hovered:e.palette.neutral[800],active:e.palette.neutral[600],disabled:e.palette.neutral[200]},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor},innerBorderColor:{focus:Qr}},primary:{backgroundColor:{default:e.palette.primary[600],hovered:e.palette.primary[700],active:e.palette.primary[900],disabled:e.palette.neutral[200]},fontColor:{default:e.textOnColor||Qr,hovered:e.textOnColor||Qr,active:e.textOnColor||Qr,disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor},innerBorderColor:{focus:Qr}},"secondary-solid":{backgroundColor:{default:e.palette.neutral[100],hovered:e.palette.neutral[200],active:e.palette.neutral[200],disabled:e.palette.neutral[200]},fontColor:{default:e.textColor,hovered:e.textColor,active:e.textColor,disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor}},"secondary-outline":{backgroundColor:{default:"transparent",hovered:e.palette.neutral[100],active:e.palette.neutral[200],disabled:"transparent"},fontColor:{default:e.textColor,hovered:e.textColor,active:e.textColor,disabled:e.palette.neutral[400]},borderColor:{default:e.palette.neutral[300],hovered:e.palette.neutral[200],active:e.palette.neutral[300],disabled:e.palette.neutral[400],focus:e.textColor}},subtle:{backgroundColor:{default:"transparent",hovered:e.palette.neutral[100],active:e.palette.neutral[200],disabled:"transparent"},fontColor:{default:e.textColor,hovered:e.textColor,active:e.textColor,disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor}},transparent:{backgroundColor:{default:"transparent",hovered:"transparent",active:"transparent",disabled:"transparent"},fontColor:{default:e.textColor,hovered:e.palette.primary[700],active:e.palette.primary[900],disabled:e.palette.neutral[400]},borderColor:{focus:e.textColor}}})(A,p,d),x=f[l].backgroundColor,y=f[l].fontColor,w=f[l].borderColor,C=f[l].innerBorderColor;return t(Gr,Object.assign({},h,{ref:n,className:m("dgaui dgaui_button",h.className),$disabled:h.disabled,$customStyle:{theme:A,minWidth:c?0:Vr[a].w,height:Vr[a].h,padding:Vr[a].p,fontSize:Vr[a].f,fontColor:y,backgroundColor:x,borderColor:w,innerBorderColor:C},style:s,children:[c&&e("div",{className:"iconOnly",children:u||i}),!c&&t(r,{children:[e("div",{className:"leadIcon",children:u}),i,e("div",{className:"trailIcon",children:g})]})]}))})),Gr=sr.button`
|
|
558
558
|
outline: none;
|
|
559
559
|
border-radius: 4px;
|
|
560
560
|
cursor: pointer;
|
|
@@ -630,7 +630,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
630
630
|
.iconOnly {
|
|
631
631
|
display: inline-flex;
|
|
632
632
|
}
|
|
633
|
-
`,
|
|
633
|
+
`,Xr=n=>{var i,{title:a,description:l,icon:s,type:d="default",state:c="default",effect:p="withShadow",expandableContent:u,actionsButtons:g,selected:h,expanded:A,onChange:f}=n,x=v(n,["title","description","icon","type","state","effect","expandableContent","actionsButtons","selected","expanded","onChange"]);const y=b(),[w,C]=o.useState(!1),[$,k]=o.useState(0),S=o.useRef(null),B=void 0!==A?A:w,E="selectable"===d,N="expandable"===d,z="expandable"===d||"selectable"===d?"all":"none";o.useEffect((()=>{var e;N&&(null===(e=S.current)||void 0===e?void 0:e.clientHeight)&&k(S.current.clientHeight)}),[N,null===(i=S.current)||void 0===i?void 0:i.clientHeight]);return t(Jr,Object.assign({className:m("dgaui dgaui_card"+("disabled"===c?" disabled":"")+(E?" selectable":""),x.className),$theme:y,$pointerEvents:z,$effect:p,$contentHeight:$,$expanded:B,$state:c},x,{tabIndex:0,onClick:e=>{x.onClick&&x.onClick(e),null==f||f(e,!h)},children:[(s||E)&&t("div",{className:"cardHeader",children:[e("div",{className:"iconContainer",children:s}),E&&e("div",{className:"checkboxContainer",onClick:e=>e.stopPropagation(),children:e(vr,{value:h,onChange:f,size:"medium",disabled:"disabled"===c})})]}),a&&e("div",{className:"titleContainer",children:a}),l&&e("div",{className:"descriptionContainer",children:l}),!!g&&g.length>0&&"default"===d&&e("div",{className:"actionsButtonsContainer",onClick:e=>e.stopPropagation(),children:g}),N&&t(r,{children:[e("div",{className:"caretButtonContainer",children:e("img",{src:pr,onClick:()=>{void 0===A&&C((e=>!e))},style:{transition:"all 0.2s",transform:B?"rotateZ(-180deg)":"none"}})}),e("div",{className:"expandableContentContainer",style:{height:B?$:0},children:e("div",{className:"expandableContent",ref:S,style:{visibility:B?"visible":"hidden"},children:u})})]})]}))},Jr=sr.div`
|
|
634
634
|
direction: ${e=>e.$theme.direction};
|
|
635
635
|
/* pointer-events: ${e=>e.$pointerEvents}; */
|
|
636
636
|
border: none;
|
|
@@ -727,7 +727,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
727
727
|
.expandableContent {
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
`;var
|
|
730
|
+
`;var Wr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}({name:"gregorian",startYear:1,yearLength:365,epoch:1721424,century:20,weekStartDayIndex:1,getMonthLengths:e=>[31,e?29:28,31,30,31,30,31,31,30,31,30,31],isLeap:e=>e%4==0&&e%100!=0||e%400==0,getLeaps(e){if(0===e)return;let t=e>0?1:-1,r=[];for(;e>0?t<=e:e<=t;)this.isLeap(t)&&r.push(t),e>0?t++:t--;return r},getDayOfYear({year:e,month:t,day:r}){let o=this.getMonthLengths(this.isLeap(e));for(let e=0;e<t.index;e++)r+=o[e];return r},getAllDays(e){const{year:t}=e;return this.yearLength*(t-1)+this.leapsLength(t)+this.getDayOfYear(e)},leapsLength:e=>((e-1)/4|0)+(-(e-1)/100|0)+((e-1)/400|0),guessYear:(e,t)=>~~(e/365.24)+(t>0?1:-1)}),Zr=k(Wr);var qr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}({name:"arabic",startYear:1,yearLength:354,epoch:1948438,century:14,weekStartDayIndex:0,getMonthLengths:e=>[30,29,30,29,30,29,30,29,30,29,30,e?30:29],isLeap:e=>[2,5,7,10,13,15,18,21,24,26,29].includes(e%30),getLeaps(e){if(0===e)return;let t=e>0?1:-1,r=[];for(;e>0?t<=e:e<=t;)this.isLeap(t)&&r.push(t),e>0?t++:t--;return r},getDayOfYear({year:e,month:t,day:r}){let o=this.getMonthLengths(this.isLeap(e));for(let e=0;e<t.index;e++)r+=o[e];return r},getAllDays(e){const{year:t}=e;return this.yearLength*(t-1)+this.leapsLength(t)+this.getDayOfYear(e)},leapsLength:e=>11/30*(e-1)+.5|0,guessYear:(e,t)=>~~((e-.5)/354.366)+(t>0?1:-1)}),_r=k(qr);const eo={name:"gregorian_ar",months:[["يناير","ينا"],["فبراير","فبر"],["مارس","ما"],["إبريل","إبر"],["مايو","ما"],["يونيو","يو"],["يوليو","يوليو"],["أغسطس","أغس"],["سبتمبر","سب"],["أكتوبر","اک"],["نوفمبر","نو"],["ديسمبر","دس"]],weekDays:[["السّبت","سب"],["الأحد","اح"],["الإثنينِ","ثن"],["الثلاثاء","ثل"],["الأربعاء","ار"],["الخميس","خم"],["الجمعة","جم"]],digits:["0","1","2","3","4","5","6","7","8","9"],meridiems:[["قبل الظهر","ق.ظ"],["بعد الظهر","ب.ظ"]]},to={name:"arabic_ar",months:[["محرم","محرم"],["صفر","صفر"],["ربیع الاول","ربیع الاول"],["ربیع الثانی","ربیع الثانی"],["جمادی الاول","جمادی الاول"],["جمادی الثانی","جمادی الثانی"],["رجب","رجب"],["شعبان","شعبان"],["رمضان","رمضان"],["شوال","شوال"],["ذو القعدة","ذو القعدة"],["ذو الحجة","ذو الحجة"]],weekDays:[["السّبت","سب"],["الأحد","اح"],["الإثنينِ","ثن"],["الثلاثاء","ثل"],["الأربعاء","ار"],["الخميس","خم"],["الجمعة","جم"]],digits:["0","1","2","3","4","5","6","7","8","9"],meridiems:[["قبل الظهر","ق.ظ"],["بعد الظهر","ب.ظ"]]},ro={medium:{w:320,h:32,p:8,f:14,prefixW:72},large:{w:320,h:40,p:8,f:16,prefixW:61}},oo=o.forwardRef(((r,o)=>{var{label:n,size:i="large",style:a,error:l,prefix:s,prefixStyle:d="solid",onPrefixClicked:c,suffix:p,suffixStyle:u="solid",onSuffixClicked:g,icon:h}=r,A=v(r,["label","size","style","error","prefix","prefixStyle","onPrefixClicked","suffix","suffixStyle","onSuffixClicked","icon"]);const f=b(),x=null!=i?i:"large";let y=f.textColor,w=f.palette.neutral[500],C=`1px solid ${l?f.palette.error[700]:f.palette.neutral[400]}`,$=`1px solid ${l?f.palette.error[700]:f.palette.neutral[700]}`,k=`1px solid ${l?f.palette.error[700]:f.palette.neutral[700]}`,S="#FFF",B=l?f.palette.error[700]:f.textColor,E=f.elevation.shadows.md,N="solid"===d?f.palette.neutral[100]:"transparent",z=f.palette.neutral[100],I=f.palette.neutral[200],F="solid"===u?f.palette.neutral[100]:"transparent",R=f.palette.neutral[100],U=f.palette.neutral[200];return"filledLighter"===a&&(S=f.palette.neutral[25],l||(C="1px solid transparent",$=`1px solid ${f.palette.neutral[400]}`,k=`1px solid ${f.palette.neutral[400]}`)),"filledDarker"===a&&(S=f.palette.neutral[100]),A.disabled&&(y=f.palette.neutral[400],C=`1px solid ${f.palette.neutral[200]}`,$=`1px solid ${f.palette.neutral[200]}`),t(no,{$theme:f,className:m("dgaui dgaui_textInput",A.className),$customStyle:{prefixBg:N,prefixBgHover:z,prefixBgActive:I,suffixBg:F,suffixBgHover:R,suffixBgActive:U,size:i,iconPadding:h?"20px":"0px"},children:[e("label",{style:{marginBottom:8,textAlign:"start"},htmlFor:A.id,children:n}),s&&e("div",{className:"prefix",onClick:()=>null==c?void 0:c(),children:s}),p&&e("div",{className:"suffix",onClick:()=>null==g?void 0:g(),children:p}),t("div",{style:{display:"flex",alignItems:"center"},children:[h&&e("div",{className:"icon",children:h}),e(io,Object.assign({$customStyle:{direction:f.direction,minWidth:ro[x].w,height:ro[x].h,padding:ro[x].p,fontSize:ro[x].f,placeholderFontColor:w,fontColor:y,border:C,borderHovered:$,borderFocused:k,backgroundColor:S,shadowFocus:E}},A,{ref:o,className:"dgaui dgaui_textInput_input"}))]}),e(ao,{$bgColor:B,className:"dgauiInputSeparator"})]})})),no=sr.div`
|
|
731
731
|
position: relative;
|
|
732
732
|
direction: ${e=>e.$theme.direction};
|
|
733
733
|
display: flex;
|
|
@@ -870,7 +870,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
870
870
|
transition: all 0.2s;
|
|
871
871
|
border-bottom-left-radius: 50px;
|
|
872
872
|
border-bottom-right-radius: 50px;
|
|
873
|
-
`,lo=r=>{var{children:n,menuItems:i,disabled:a,keepOpenOnItemsClicked:l,onOpen:s,onClose:d,reverseOpeningDirection:c}=r,p=v(r,["children","menuItems","disabled","keepOpenOnItemsClicked","onOpen","onClose","reverseOpeningDirection"]);const u=b(),[g,h]=o.useState(!1),[A,f]=o.useState(""),[x,y]=o.useState({top:0,left:0}),
|
|
873
|
+
`,lo=r=>{var{children:n,menuItems:i,disabled:a,keepOpenOnItemsClicked:l,onOpen:s,onClose:d,reverseOpeningDirection:c}=r,p=v(r,["children","menuItems","disabled","keepOpenOnItemsClicked","onOpen","onClose","reverseOpeningDirection"]);const u=b(),[g,h]=o.useState(!1),[A,f]=o.useState(""),[x,y]=o.useState({top:0,left:0}),w=o.useRef(null),C=o.useRef(null),$=o.useRef(null),k=()=>{const e=Math.max(document.documentElement.clientHeight,window.innerHeight);if(C.current&&$.current){const t=C.current.getBoundingClientRect();let r={top:t.bottom,left:"ltr"===u.direction?t.left:t.right-$.current.clientWidth};"ltr"===u.direction?r.left+$.current.clientWidth>window.innerWidth&&(r.left=window.innerWidth-$.current.clientWidth):r.left&&t.right-$.current.clientWidth<0&&(r.left=0),c&&(r={top:r.top,left:"ltr"===u.direction?t.right-$.current.clientWidth:t.left},r.left<0&&(r.left=0),t.left+$.current.clientWidth>innerWidth&&(r.left=innerWidth-$.current.clientWidth)),t.bottom+$.current.clientHeight>e&&(r.top=t.top-$.current.clientHeight),r.top<0&&(r.top=0),r.top>e&&(r.top=$.current.clientHeight),y(r)}};return o.useEffect((()=>{if(C.current){const e=()=>{k()},t=e=>{var t;(null===(t=w.current)||void 0===t?void 0:t.contains(e.target))||(null==d||d(e),h(!1))};return window.addEventListener("resize",e),window.addEventListener("click",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("click",t)}}}),[C,c]),o.useEffect((()=>{const e=document.getElementsByTagName("body");e&&e[0]&&(e[0].style.overflow=g?"hidden":A)}),[g]),o.useEffect((()=>{var e,t,r;f(null===(r=null===(t=null===(e=document.getElementsByTagName("body"))||void 0===e?void 0:e[0])||void 0===t?void 0:t.style)||void 0===r?void 0:r.overflow)}),[]),t(so,Object.assign({$theme:u},p,{className:m("dgaui dgaui_menu",p.className),ref:w,children:[e("div",{ref:C,onClick:e=>(e=>{g?(h(!1),null==d||d(e)):(k(),h(!0),null==s||s(e))})(e),className:"menuChildren",children:n}),e("div",{ref:$,className:"menueItemsContainer dgaui_hiddenScrollbar "+(g?" slide-bottom":""),style:x,onClick:e=>{l||(h(!1),null==d||d(e))},children:i})]}))},so=sr.div`
|
|
874
874
|
direction: ${e=>e.$theme.direction};
|
|
875
875
|
display: inline-block;
|
|
876
876
|
|
|
@@ -906,7 +906,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
`;var co="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD/SURBVHgB7dUxroJAEAbgAV5I6LaBUHqExxG8wWtf9Z4n8Ah6I49gbaU30JJAIQUVCeA/xsLCgl2zRpP/SzYLxSSTmZ1dESIiIiJ6IE3TZZZlK3lSKJ6M4xhgWyPJvTFmJu8IVfzHOiPJo2uSgXiW5/lsGIYtPg2qOq/r+mAT7z1BdZ9k13VF0zSnqbFfYkEPPrYfsdT3vQTBtRYmjmMdnMXUWKshuR18J4htxMFLWqwDgsppiyUMw3lZlqepsVYtdoFj8Y32blBBg1+r5JS3e1AhuT9s18pFUVTYTrBX+opgjXpR6xSLo0g8SZKkQGt3VVX9tm3rNCBEREREn+8C+TlJKy8I1/cAAAAASUVORK5CYII=",po="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEJSURBVHgB7dU9boNAEAXgtySigYKGn9JHSI7AEXIC5wi5QXKEtOlyhZwgbTp8g7gEUWQLQBEF+I1l916stWxpPmnFFFsMszO7gFJKKaXULbvDmbIse43j+LHv+x94EGChJElWTK5i+DbPc4JrckjuN03TP65neHQPR0zogZ9vLstVtm27gUfGZbNULgxDSQ5BEJR1XW/hmVOCrN6nMWbNcMO+s1iAP/bVNM37yfvhgMkdw4sNhVMFi6JYTdO0P+JxHEtr7RaeOVVQeo5H+ySx9KL0JDxzvgdlamVAJGaSFftyjWskx83kKt6Hc57nL/Bk8VPXdZ0dhuEjiiLOjvn39dQppZRSSt22HXZvSded5pbnAAAAAElFTkSuQmCC";const uo=({hijri:r=!1,range:n=!1,minYear:i,maxYear:a,minDate:l,maxDate:s,onChange:c,onRangeChange:p,value:u,withTextInput:g=!0,textInputProps:h,closeOnSelect:m=!0,rangeSeparator:A=" - "})=>{const f=b(),[x,v]=o.useState(),[y,
|
|
909
|
+
`;var co="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD/SURBVHgB7dUxroJAEAbgAV5I6LaBUHqExxG8wWtf9Z4n8Ah6I49gbaU30JJAIQUVCeA/xsLCgl2zRpP/SzYLxSSTmZ1dESIiIiJ6IE3TZZZlK3lSKJ6M4xhgWyPJvTFmJu8IVfzHOiPJo2uSgXiW5/lsGIYtPg2qOq/r+mAT7z1BdZ9k13VF0zSnqbFfYkEPPrYfsdT3vQTBtRYmjmMdnMXUWKshuR18J4htxMFLWqwDgsppiyUMw3lZlqepsVYtdoFj8Y32blBBg1+r5JS3e1AhuT9s18pFUVTYTrBX+opgjXpR6xSLo0g8SZKkQGt3VVX9tm3rNCBEREREn+8C+TlJKy8I1/cAAAAASUVORK5CYII=",po="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEJSURBVHgB7dU9boNAEAXgtySigYKGn9JHSI7AEXIC5wi5QXKEtOlyhZwgbTp8g7gEUWQLQBEF+I1l916stWxpPmnFFFsMszO7gFJKKaXULbvDmbIse43j+LHv+x94EGChJElWTK5i+DbPc4JrckjuN03TP65neHQPR0zogZ9vLstVtm27gUfGZbNULgxDSQ5BEJR1XW/hmVOCrN6nMWbNcMO+s1iAP/bVNM37yfvhgMkdw4sNhVMFi6JYTdO0P+JxHEtr7RaeOVVQeo5H+ySx9KL0JDxzvgdlamVAJGaSFftyjWskx83kKt6Hc57nL/Bk8VPXdZ0dhuEjiiLOjvn39dQppZRSSt22HXZvSded5pbnAAAAAElFTkSuQmCC";const uo=({hijri:r=!1,range:n=!1,minYear:i,maxYear:a,minDate:l,maxDate:s,onChange:c,onRangeChange:p,value:u,withTextInput:g=!0,textInputProps:h,closeOnSelect:m=!0,rangeSeparator:A=" - "})=>{const f=b(),[x,v]=o.useState(),[y,w]=o.useState(""),[C,$]=o.useState([]),[k,S]=o.useState(0),B=o.useRef(),E=n&&Array.isArray(x)&&1===x.length;o.useEffect((()=>{let e=0,t=0;r?(e=l?l.year:i||1300,t=s?s.year:a||1500):(e=l?l.year:i||1900,t=(s?s.year:a||2100)+1);let o=[];if(e>=t)return o=Array(200).fill(0).map(((e,t)=>t+1900)),void $(o);o=e&&t?Array(t-e).fill(0).map(((t,r)=>r+e)):e&&!t?Array(200).fill(0).map(((t,r)=>r+e)):!e&&t?Array(200).fill(0).map(((e,t)=>t+(r?1300:1900))):r?Array(200).fill(0).map(((e,t)=>t+1300)):Array(200).fill(0).map(((e,t)=>t+1900)),$(o)}),[i,a,l,s,r]),o.useEffect((()=>{const e=(new Date).getFullYear(),t=(new Date).getMonth()+1;S(r?function(e,t){let r=(e-622)/.970224;t>=9&&(r+=1);return Math.floor(r)}(e,t):e)}),[r]),o.useEffect((()=>{n||v(void 0)}),[n]),o.useEffect((()=>{v(u)}),[u]),o.useEffect((()=>{let e="";n&&Array.isArray(x)&&2===x.length?e=`${mo(x[0])}${A}${mo(x[1])}`:x&&!Array.isArray(x)&&(e=mo(x)),w(e)}),[x,n]);const N=e(d,{ref:B,value:u||x,range:n,calendar:r?_r:Zr,onMonthChange:e=>S(e.year),locale:r?to:"rtl"===f.direction?eo:void 0,weekStartDayIndex:r?1:0,weekDays:r?["سبت","أحد","إثنين","ثلاثاء","أربعاء","خميس","جمعة"]:"rtl"===f.direction?["أحد","إثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"]:void 0,onChange:e=>{v(e),n&&p&&Array.isArray(e)?p(e):e&&c&&c(e),m&&(n&&Array.isArray(e)&&e.length>1?document.body.click():n||document.body.click())},format:"YYYY/MM/DD",showOtherDays:!0,monthYearSeparator:" ",minDate:l,maxDate:s,children:e("div",{className:"yearsSelect",children:e("select",{value:k,onChange:e=>(e=>{var t;v(void 0),null===(t=null==B?void 0:B.current)||void 0===t||t.set("year",e),S(e)})(+e.target.value),children:C.map((t=>e("option",{value:t,children:t},t)))})})});return t(go,{className:"dgaui"+(E?" rangeOnlyOneSelected":""),$theme:f,children:[!g&&N,g&&e(lo,{menuItems:N,keepOpenOnItemsClicked:!0,children:e(oo,Object.assign({value:(null==h?void 0:h.value)||y,readOnly:!0},h))})]})},go=sr.div`
|
|
910
910
|
.rmdp-top-class {
|
|
911
911
|
width: 424px;
|
|
912
912
|
display: block !important;
|
|
@@ -1336,7 +1336,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
1336
1336
|
fill: ${e=>e.$theme.palette.neutral[400]};
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
`;var yo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADMSURBVHgB7ZJBDoIwEEU7VfccwSt4A69giCslLAyu5QTgCeheQxOpK1OJJ8AjeB+lY6sxJg2I0SW8pJt25s1PM4R0tBDOc+efOmpflH0Vp0IWpAEcYLHNJGsU9m6UIcKQizypk/F9HiES56pr7TeoathkhzGFnk6J4WLuMlumEOMSYLScTS6NCQ2BNz0rhaGel6Ti6L/uU3HyjUzpQVWy2oTvpDKmAJFJSoGiljF91oHnxnU9H4UP6U6unlJCFGiZ9QU/YVbk23XqaAN3EK5V48n9BCMAAAAASUVORK5CYII=";const
|
|
1339
|
+
`;var yo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADMSURBVHgB7ZJBDoIwEEU7VfccwSt4A69giCslLAyu5QTgCeheQxOpK1OJJ8AjeB+lY6sxJg2I0SW8pJt25s1PM4R0tBDOc+efOmpflH0Vp0IWpAEcYLHNJGsU9m6UIcKQizypk/F9HiES56pr7TeoathkhzGFnk6J4WLuMlumEOMSYLScTS6NCQ2BNz0rhaGel6Ti6L/uU3HyjUzpQVWy2oTvpDKmAJFJSoGiljF91oHnxnU9H4UP6U6unlJCFGiZ9QU/YVbk23XqaAN3EK5V48n9BCMAAAAASUVORK5CYII=";const wo={medium:{w:320,h:32,p:16,f:14},large:{w:320,h:40,p:16,f:16}},Co=r=>{const n=b(),{state:i,error:a,filled:l,style:s,onChange:d,children:c,onOpen:p,className:u,dropdownStyle:g,label:h,placeholder:A,value:f,valueDisplay:x,multiple:y,name:w,size:C}=r,$=v(r,["state","error","filled","style","onChange","children","onOpen","className","dropdownStyle","label","placeholder","value","valueDisplay","multiple","name","size"]),[k,S]=o.useState(""),[B,E]=o.useState(!1),[N,z]=o.useState({top:0,left:0,width:0}),I=o.useRef(null),F=null!=C?C:"large";let R=n.textColor,U=n.palette.neutral[500],D=`1px solid ${a?n.palette.error[700]:n.palette.neutral[400]}`,O=`1px solid ${a?n.palette.error[700]:n.palette.neutral[700]}`,T=`1px solid ${a?n.palette.error[700]:n.palette.neutral[700]}`,Q="#FFF",Y=a?n.palette.error[700]:n.textColor,H=n.elevation.shadows.md;"filled"===s&&(Q=n.palette.neutral[50],D=`1px solid ${n.palette.neutral[300]}`),"filled-darker"===s&&(Q=n.palette.neutral[100],D=`1px solid ${n.palette.neutral[400]}`),"filled-lighter"===s&&(Q=n.palette.neutral[25],D=`1px solid ${n.palette.neutral[200]}`),l&&(Q=n.palette.neutral[50],D=`1px solid ${n.palette.neutral[300]}`),"disabled"===i&&(R=n.palette.neutral[400],D=`1px solid ${n.palette.neutral[200]}`,O=`1px solid ${n.palette.neutral[200]}`,T=`1px solid ${n.palette.neutral[200]}`,Q=n.palette.neutral[50]),"read-only"===i&&(Q=n.palette.neutral[25],D=`1px solid ${n.palette.neutral[300]}`,O=`1px solid ${n.palette.neutral[300]}`,T=`1px solid ${n.palette.neutral[300]}`),"hovered"===i&&(D=O),"focused"===i&&(D=T,H=n.elevation.shadows.md),"pressed"===i&&(Q=n.palette.neutral[100],D=T),a&&(D=`1px solid ${n.palette.error[700]}`,O=`1px solid ${n.palette.error[700]}`,T=`1px solid ${n.palette.error[700]}`,Y=n.palette.error[700]);const M=()=>{I.current&&z({top:I.current.offsetTop+I.current.clientHeight,left:I.current.offsetLeft,width:I.current.clientWidth})},L=(e,t)=>{if(y||null==d||d(e,t),y){let r=[];r=f&&Array.isArray(f)&&f.includes(t)?f.filter((e=>e!==t)):[...f||[],t],null==d||d(e,r)}},j=o.Children.map(c,(e=>{var t,r;if(e)return o.cloneElement(e,Object.assign(Object.assign({},e.props),{onClick:L,selected:(null===(t=e.props)||void 0===t?void 0:t.selected)||f===(null===(r=e.props)||void 0===r?void 0:r.value)||Array.isArray(f)&&f.includes(e.props.value),multiple:y}))}));return o.useEffect((()=>{let e="";y?(null==j||j.map((t=>{t.props.selected&&(e=e.concat(t.props.children+", "))})),e=e.slice(0,e.length-2)):null==j||j.map((t=>{t.props.selected&&(e=t.props.children)})),S(e)}),[j,f]),o.useEffect((()=>{if(I.current){const e=()=>{I.current&&M()},t=e=>{var t;(null===(t=I.current)||void 0===t?void 0:t.contains(e.target))||(!y||y&&e.target&&e.target.classList&&!e.target.classList.contains("dgaui_dropdownItem"))&&E(!1)};return window.addEventListener("resize",e),window.addEventListener("click",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("click",t)}}}),[I]),o.useEffect((()=>{B&&M(),B&&p&&p()}),[B,p]),t($o,Object.assign({style:g,$theme:n,className:m("dgaui dgaui_dropdown",u)},$,{children:[h&&e("label",{className:"disabled"===i?"disabled":"read-only"===i?"readonly":void 0,children:h}),t(ko,{ref:I,onClick:()=>{"disabled"!==i&&"read-only"!==i&&E((e=>!e))},className:"dgaui_dropdownContainer "+("disabled"===i?"disabled":"")+("read-only"===i?" readonly":""),$customStyle:{theme:n,direction:n.direction,minWidth:wo[F].w,height:wo[F].h,padding:wo[F].p,fontSize:wo[F].f,placeholderFontColor:U,fontColor:R,border:D,borderHovered:O,borderFocused:T,backgroundColor:Q,shadowFocus:H},children:[A&&!x&&!k&&e("div",{className:"placeholder",children:A}),e("div",{className:"valueDisplay",children:x||k})]}),e("div",{className:"dgaui_dropdownItems"+(B?" slide-bottom":""),style:Object.assign({},N),children:j}),e(So,{$bgColor:Y,className:"dgaui_dropdownSeparator"+(B?" open":"")})]}))},$o=sr.div`
|
|
1340
1340
|
direction: ${e=>e.$theme.direction};
|
|
1341
1341
|
display: flex;
|
|
1342
1342
|
flex-direction: column;
|
|
@@ -1670,7 +1670,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
|
-
`,Oo={medium:{f:16,lh:24},small:{f:14,lh:20}},To=t=>{var{children:r,style:o="primary",size:n="medium",inline:i,disabled:a}=t,l=v(t,["children","style","size","inline","disabled"]);const s=b(),d="on-color"===o?"#FFF":s.textColor,c=(p=s,{primary:{default:p.palette.primary[600],hovered:p.palette.primary[400],active:p.palette.primary[600],visited:p.palette.primary[800],disabled:p.palette.neutral[400]},neutral:{default:p.palette.neutral[700],hovered:p.palette.neutral[500],active:p.palette.neutral[400],visited:p.palette.primary[800],disabled:p.palette.neutral[400]},"on-color":{default:"#FFF",hovered:"rgba(255, 255, 255, 0.8)",active:"rgba(255, 255, 255, 0.6)",visited:"rgba(255, 255, 255, 0.9)",disabled:"rgba(255, 255, 255, 0.3)"}})[o];var p;return e(
|
|
1673
|
+
`,Oo={medium:{f:16,lh:24},small:{f:14,lh:20}},To=t=>{var{children:r,style:o="primary",size:n="medium",inline:i,disabled:a}=t,l=v(t,["children","style","size","inline","disabled"]);const s=b(),d="on-color"===o?"#FFF":s.textColor,c=(p=s,{primary:{default:p.palette.primary[600],hovered:p.palette.primary[400],active:p.palette.primary[600],visited:p.palette.primary[800],disabled:p.palette.neutral[400]},neutral:{default:p.palette.neutral[700],hovered:p.palette.neutral[500],active:p.palette.neutral[400],visited:p.palette.primary[800],disabled:p.palette.neutral[400]},"on-color":{default:"#FFF",hovered:"rgba(255, 255, 255, 0.8)",active:"rgba(255, 255, 255, 0.6)",visited:"rgba(255, 255, 255, 0.9)",disabled:"rgba(255, 255, 255, 0.3)"}})[o];var p;return e(Qo,Object.assign({$theme:s,$fontSize:Oo[n].f,$lineHeight:Oo[n].lh,$focusBorderColor:d,$style:c,$inline:i,$disabled:a},l,{href:a?"":l.href,className:m("dgaui dgaui_link",l.className),children:r}))},Qo=sr.a`
|
|
1674
1674
|
font-size: ${e=>e.$fontSize}px;
|
|
1675
1675
|
line-height: ${e=>e.$lineHeight}px;
|
|
1676
1676
|
color: ${e=>e.$disabled?e.$style.disabled:e.$style.default};
|
|
@@ -1696,11 +1696,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
1696
1696
|
&:hover {
|
|
1697
1697
|
color: ${e=>e.$disabled?e.$style.disabled:e.$style.hovered};
|
|
1698
1698
|
}
|
|
1699
|
-
`,
|
|
1700
|
-
${e=>
|
|
1701
|
-
`,
|
|
1702
|
-
${e=>
|
|
1703
|
-
`,
|
|
1699
|
+
`,Yo=t=>{var{children:r,style:o="primary",type:n="ordered-list",level:i=1,iconUrl:a=""}=t,l=v(t,["children","style","type","level","iconUrl"]);const s=b(),d=(c=s,{neutral:{text:c.textColor},primary:{text:c.palette.primary[600]},"on-color":{text:"#FFF"}})[o];var c;return e("ordered-list"===n?Mo:Ho,Object.assign({$theme:s,$colors:d,$listStyleType:jo(n,i)},l,{className:m("dgaui dgaui_list",l.className),type:"ordered-list"===n&&1==+i?"1":"a",$iconUrl:a,$level:+i,$ol:"ordered-list"===n,children:r}))},Ho=sr.ul`
|
|
1700
|
+
${e=>Lo(e)};
|
|
1701
|
+
`,Mo=sr.ol`
|
|
1702
|
+
${e=>Lo(e)};
|
|
1703
|
+
`,Lo=e=>ir`
|
|
1704
1704
|
direction: ${e.$theme.direction};
|
|
1705
1705
|
color: ${e.$colors.text};
|
|
1706
1706
|
font-size: 16px;
|
|
@@ -1752,11 +1752,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
`:""};
|
|
1755
|
-
`,jo=(e,t)=>{const r=+t;switch(e){case"ordered-list":return 1===r?"decimal":"";case"unordered-list":return 1===r?'"- "':2===r?"disc":"";default:return"with-icon"}},
|
|
1755
|
+
`,jo=(e,t)=>{const r=+t;switch(e){case"ordered-list":return 1===r?"decimal":"";case"unordered-list":return 1===r?'"- "':2===r?"disc":"";default:return"with-icon"}},Po={xxSmall:{wh:20,b:2},xSmall:{wh:24,b:2},small:{wh:28,b:2},medium:{wh:32,b:3},large:{wh:36,b:3},xLarge:{wh:40,b:3},xxLarge:{wh:44,b:4}},Vo=t=>{var{style:r="primary",size:o="medium",className:n,loadingStyle:i}=t,a=v(t,["style","size","className","loadingStyle"]);const l=b(),s={primary:(d=l).palette.primary.main,neutral:d.textColor,"on-color":d.textOnColor||Qr};var d;return e(Ko,Object.assign({},a,{$theme:l,$customStyle:{color:s[r],size:Po[o]},$style:r,className:m("dgaui dgaui_loading",n)}))},Ko=sr.div`
|
|
1756
1756
|
width: ${e=>e.$customStyle.size.wh}px;
|
|
1757
1757
|
height: ${e=>e.$customStyle.size.wh}px;
|
|
1758
1758
|
border: ${e=>e.$customStyle.size.b}px solid
|
|
1759
|
-
${e=>"on-color"===e.$style?
|
|
1759
|
+
${e=>"on-color"===e.$style?Hr:e.$theme.palette.neutral[100]};
|
|
1760
1760
|
border-bottom-color: ${e=>e.$customStyle.color};
|
|
1761
1761
|
border-radius: 50%;
|
|
1762
1762
|
display: inline-block;
|
|
@@ -1771,7 +1771,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
1771
1771
|
transform: rotate(360deg);
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
|
-
`,
|
|
1774
|
+
`,Go=r=>{var{icon:o,trailIcon:n,children:i,disabled:a}=r,l=v(r,["icon","trailIcon","children","disabled"]);const s=b();return t(Xo,Object.assign({$theme:s},l,{className:m("dgaui dgaui_menuItem"+(a?" disabled":""),l.className),tabIndex:0,children:[t("div",{className:"itemContent",children:[o&&e("div",{className:"icon",children:o}),e("div",{className:"content",children:i})]}),n&&e("div",{className:"trailIcon",children:n})]}))},Xo=sr.div`
|
|
1775
1775
|
direction: ${e=>e.$theme.direction};
|
|
1776
1776
|
min-width: 225px;
|
|
1777
1777
|
height: 40px;
|
|
@@ -1820,7 +1820,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
-
`,
|
|
1823
|
+
`,Jo=r=>{var{title:o,children:n}=r,i=v(r,["title","children"]);const a=b();return t(Wo,Object.assign({$theme:a},i,{className:m("dgaui dgaui_menuItemGroup",i.className),tabIndex:0,children:[e("div",{className:"groupTitle",children:o}),n]}))},Wo=sr.div`
|
|
1824
1824
|
direction: ${e=>e.$theme.direction};
|
|
1825
1825
|
border-bottom: 1px solid #cbd5e1;
|
|
1826
1826
|
padding-bottom: 8px;
|
|
@@ -2092,7 +2092,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2092
2092
|
filter: opacity(0.5) grayscale(100%);
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
|
-
`,an=o=>{var{count:n,currentPage:i,siblingCount:a=1,onPageChange:l,size:s="small"}=o,d=v(o,["count","currentPage","siblingCount","onPageChange","size"]);const c=b(),p=n<=1e3?e(lo,{onOpen:()=>{var e,t;const r=document.getElementsByClassName("menueItemsContainer");for(let o=0;o<r.length;o++)null===(e=r[o])||void 0===e||e.scrollTo(0,(null===(t=document.getElementsByClassName("selectedMenueItem")[0])||void 0===t?void 0:t.offsetTop)||0)},menuItems:Array(n).fill("").map(((t,r)=>e(
|
|
2095
|
+
`,an=o=>{var{count:n,currentPage:i,siblingCount:a=1,onPageChange:l,size:s="small"}=o,d=v(o,["count","currentPage","siblingCount","onPageChange","size"]);const c=b(),p=n<=1e3?e(lo,{onOpen:()=>{var e,t;const r=document.getElementsByClassName("menueItemsContainer");for(let o=0;o<r.length;o++)null===(e=r[o])||void 0===e||e.scrollTo(0,(null===(t=document.getElementsByClassName("selectedMenueItem")[0])||void 0===t?void 0:t.offsetTop)||0)},menuItems:Array(n).fill("").map(((t,r)=>e(Go,{onClick:()=>null==l?void 0:l(r+1),trailIcon:i===r+1?e("img",{src:Ar}):void 0,className:i===r+1?"selectedMenueItem":void 0,children:r+1},r))),children:e(on,{size:s,children:"..."})}):e(on,{size:s,children:"..."}),u=2*a>=n?1:a,g=1===u?i<=2*u+1:i<2*u+1,h=!g&&i>n-2*u,A=!g&&!h,f=!g,x=!h;let y=1+2*u;const w=Array(y).fill(0).map(((e,t)=>t+1)),C=Array(y).fill(0).map(((e,t)=>i-u+t)),$=Array(y).fill(0).map(((e,t)=>n-t)).reverse(),k=n<=5;return t(ln,Object.assign({$theme:c},d,{className:m("dgaui dgaui_pagination",d.className),children:[e(on,{className:"noAfter",size:s,onClick:()=>i>1?null==l?void 0:l(i-1):void 0,children:"<"}),k&&Array(n).fill(0).map(((e,t)=>t+1)).map((t=>e(on,{size:s,selected:t===i,onClick:()=>null==l?void 0:l(t),children:t},t))),!k&&t(r,{children:[!g&&e(on,{size:s,selected:1===i,onClick:()=>null==l?void 0:l(1),children:"1"}),f&&p,g&&w.map((t=>e(on,{size:s,selected:t===i,onClick:()=>null==l?void 0:l(t),children:t},t))),A&&C.map((t=>e(on,{size:s,selected:t===i,onClick:()=>null==l?void 0:l(t),children:t},t))),x&&p,h&&$.map((t=>e(on,{size:s,selected:t===i,onClick:()=>null==l?void 0:l(t),children:t},t))),!h&&e(on,{size:s,selected:i===n,onClick:()=>null==l?void 0:l(n),children:n})]}),e(on,{className:"noAfter",size:s,onClick:()=>i<n?null==l?void 0:l(i+1):void 0,children:">"})]}))},ln=sr.div`
|
|
2096
2096
|
direction: ${e=>e.$theme.direction};
|
|
2097
2097
|
display: flex;
|
|
2098
2098
|
align-items: center;
|
|
@@ -2281,7 +2281,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2281
2281
|
display: none;
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
`,hn=r=>{var{label:o,description:n,error:i,onChange:a,value:l,groupValue:s,style:d="primary"}=r,c=v(r,["label","description","error","onChange","value","groupValue","style"]);const p=b(),u={neutral:{default:(g=p).palette.neutral[600],hovered:g.palette.neutral[800],active:g.palette.neutral[900],disabled:g.palette.neutral[200]},primary:{default:g.palette.primary[600],hovered:g.palette.primary[800],active:g.palette.primary[900],disabled:g.palette.neutral[200]}};var g;const h=null!=d?d:"primary";let A=p.textColor,f=u[h].default,x=u[h].hovered,y=u[h].active,
|
|
2284
|
+
`,hn=r=>{var{label:o,description:n,error:i,onChange:a,value:l,groupValue:s,style:d="primary"}=r,c=v(r,["label","description","error","onChange","value","groupValue","style"]);const p=b(),u={neutral:{default:(g=p).palette.neutral[600],hovered:g.palette.neutral[800],active:g.palette.neutral[900],disabled:g.palette.neutral[200]},primary:{default:g.palette.primary[600],hovered:g.palette.primary[800],active:g.palette.primary[900],disabled:g.palette.neutral[200]}};var g;const h=null!=d?d:"primary";let A=p.textColor,f=u[h].default,x=u[h].hovered,y=u[h].active,w=p.palette.neutral[950],C=p.palette.neutral[600],$=p.palette.neutral[500],k=p.palette.neutral[300];const S=c.id;return t(mn,{$customStyle:{theme:p,fontColor:A,backgroundColor:f,backgroundColorHovered:x,backgroundColorActive:y,sliderBg:w,sliderBgHovered:C,sliderBgActive:$,sliderBgDisabled:k},className:m("dgaui dgaui_radioContainer",c.className),children:[t("div",{className:"dgaui_radioHead",children:[t("label",{className:"dgaui_radio",children:[e("input",Object.assign({id:S,type:"radio"},c,{checked:s===l,onChange:e=>a&&a(e,l)})),e("span",{className:"dgaui_radioDot"})]}),e("label",{htmlFor:S,className:"dgaui_radioLabel",children:o})]}),t("div",{className:"dgaui_radioDescription",children:[n&&e("div",{className:"dgaui_radioDescriptionText",children:n}),i&&e("div",{className:"dgaui_radioDescriptionError",children:i})]})]})},mn=sr.div`
|
|
2285
2285
|
direction: ${e=>e.$customStyle.theme.direction};
|
|
2286
2286
|
color: ${e=>e.$customStyle.fontColor};
|
|
2287
2287
|
|
|
@@ -2500,7 +2500,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2500
2500
|
.dgaui_radioLabel {
|
|
2501
2501
|
margin-inline-start: 40px;
|
|
2502
2502
|
}
|
|
2503
|
-
`,bn=r=>{var{label:o,helperText:n,color:i,alertMessage:a,checked:l,trailSwitch:s,icon:d,onChange:c}=r,p=v(r,["label","helperText","color","alertMessage","checked","trailSwitch","icon","onChange"]);const u=b(),g={neutral:{default:(h=u).palette.neutral[600],hovered:h.palette.neutral[800],active:h.palette.neutral[900],disabled:h.palette.neutral[200]},primary:{default:h.palette.primary[600],hovered:h.palette.primary[800],active:h.palette.primary[900],disabled:h.palette.neutral[200]},secondary:{default:h.palette.secondary[600],hovered:h.palette.secondary[800],active:h.palette.secondary[900],disabled:h.palette.neutral[200]},error:{default:h.palette.error[600],hovered:h.palette.error[800],active:h.palette.error[900],disabled:h.palette.neutral[200]},warning:{default:h.palette.warning[600],hovered:h.palette.warning[800],active:h.palette.warning[900],disabled:h.palette.neutral[200]},success:{default:h.palette.success[600],hovered:h.palette.success[800],active:h.palette.success[900],disabled:h.palette.neutral[200]},info:{default:h.palette.info[600],hovered:h.palette.info[800],active:h.palette.info[900],disabled:h.palette.neutral[200]}};var h;const f=null!=i?i:"primary";let x=u.textColor,y=g[f].default,
|
|
2503
|
+
`,bn=r=>{var{label:o,helperText:n,color:i,alertMessage:a,checked:l,trailSwitch:s,icon:d,onChange:c}=r,p=v(r,["label","helperText","color","alertMessage","checked","trailSwitch","icon","onChange"]);const u=b(),g={neutral:{default:(h=u).palette.neutral[600],hovered:h.palette.neutral[800],active:h.palette.neutral[900],disabled:h.palette.neutral[200]},primary:{default:h.palette.primary[600],hovered:h.palette.primary[800],active:h.palette.primary[900],disabled:h.palette.neutral[200]},secondary:{default:h.palette.secondary[600],hovered:h.palette.secondary[800],active:h.palette.secondary[900],disabled:h.palette.neutral[200]},error:{default:h.palette.error[600],hovered:h.palette.error[800],active:h.palette.error[900],disabled:h.palette.neutral[200]},warning:{default:h.palette.warning[600],hovered:h.palette.warning[800],active:h.palette.warning[900],disabled:h.palette.neutral[200]},success:{default:h.palette.success[600],hovered:h.palette.success[800],active:h.palette.success[900],disabled:h.palette.neutral[200]},info:{default:h.palette.info[600],hovered:h.palette.info[800],active:h.palette.info[900],disabled:h.palette.neutral[200]}};var h;const f=null!=i?i:"primary";let x=u.textColor,y=g[f].default,w=g[f].hovered,C=g[f].active,$=u.palette.neutral[950],k=u.palette.neutral[600],S=u.palette.neutral[500],B=u.palette.neutral[300];const E=p.id||A();return t(xn,{$customStyle:{theme:u,fontColor:x,backgroundColor:y,backgroundColorHovered:w,backgroundColorActive:C,sliderBg:$,sliderBgHovered:k,sliderBgActive:S,sliderBgDisabled:B},className:m("dgaui dgaui_switchContainer "+(s?"endSwitch":""),p.className),children:[t("div",{className:"dgaui_switchHead",children:[t("label",{className:"dgaui_switch",children:[e("input",Object.assign({id:E,type:"checkbox"},p,{checked:l,onChange:e=>c&&c(e,e.target.checked)})),e("span",{className:"dgaui_switchSlider",children:d&&e("span",{className:"icon",children:d})})]}),e("label",{htmlFor:E,className:"dgaui_switchLabel",children:o})]}),t("div",{className:"dgaui_switchDescription",children:[n&&e("div",{className:"dgaui_switchDescriptionText",children:n}),a&&e("div",{className:"dgaui_switchDescriptionError",children:a})]})]})},xn=sr.div`
|
|
2504
2504
|
direction: ${e=>e.$customStyle.theme.direction};
|
|
2505
2505
|
color: ${e=>e.$customStyle.fontColor};
|
|
2506
2506
|
|
|
@@ -2692,7 +2692,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2692
2692
|
border: 4px solid transparent;
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
2695
|
-
`,vn={xsmall:{w:64,h:20,py:8,f:10},small:{h:24,py:8,f:12},medium:{h:32,py:16,f:16}},yn=r=>{var o,n,i,{children:a,status:l,size:s,style:d}=r,c=v(r,["children","status","size","style"]);const p=b(),u=null!=d?d:"neutral",g=null!=s?s:"medium",h=l||"subtle",A={neutral:{subtle:{bg:(f=p).palette.neutral[50],iconBg:f.palette.neutral[600],font:f.palette.neutral[800]},inverted:{bg:f.palette.neutral[600],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.neutral[600],font:f.palette.neutral[800]}},blue:{subtle:{bg:"#EFF8FF",iconBg:f.palette.info[800],font:f.palette.info[800]},inverted:{bg:f.palette.info[600],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.info[800],font:f.palette.neutral[800]}},green:{subtle:{bg:f.palette.success[50],iconBg:f.palette.success[800],font:f.palette.success[800]},inverted:{bg:f.palette.success[700],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.success[800],font:f.palette.neutral[800]}},red:{subtle:{bg:f.palette.error[50],iconBg:f.palette.error[800],font:f.palette.error[800]},inverted:{bg:f.palette.error[600],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.error[800],font:f.palette.neutral[800]}},yellow:{subtle:{bg:f.palette.warning[50],iconBg:f.palette.warning[800],font:f.palette.warning[800]},inverted:{bg:f.palette.warning[700],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.warning[800],font:f.palette.neutral[800]}}};var f;let x=null===(o=A[u][h])||void 0===o?void 0:o.bg,y=null===(n=A[u][h])||void 0===n?void 0:n.iconBg,
|
|
2695
|
+
`,vn={xsmall:{w:64,h:20,py:8,f:10},small:{h:24,py:8,f:12},medium:{h:32,py:16,f:16}},yn=r=>{var o,n,i,{children:a,status:l,size:s,style:d}=r,c=v(r,["children","status","size","style"]);const p=b(),u=null!=d?d:"neutral",g=null!=s?s:"medium",h=l||"subtle",A={neutral:{subtle:{bg:(f=p).palette.neutral[50],iconBg:f.palette.neutral[600],font:f.palette.neutral[800]},inverted:{bg:f.palette.neutral[600],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.neutral[600],font:f.palette.neutral[800]}},blue:{subtle:{bg:"#EFF8FF",iconBg:f.palette.info[800],font:f.palette.info[800]},inverted:{bg:f.palette.info[600],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.info[800],font:f.palette.neutral[800]}},green:{subtle:{bg:f.palette.success[50],iconBg:f.palette.success[800],font:f.palette.success[800]},inverted:{bg:f.palette.success[700],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.success[800],font:f.palette.neutral[800]}},red:{subtle:{bg:f.palette.error[50],iconBg:f.palette.error[800],font:f.palette.error[800]},inverted:{bg:f.palette.error[600],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.error[800],font:f.palette.neutral[800]}},yellow:{subtle:{bg:f.palette.warning[50],iconBg:f.palette.warning[800],font:f.palette.warning[800]},inverted:{bg:f.palette.warning[700],iconBg:"#ffffff99",font:"#fff"},ghost:{bg:"transparent",iconBg:f.palette.warning[800],font:f.palette.neutral[800]}}};var f;let x=null===(o=A[u][h])||void 0===o?void 0:o.bg,y=null===(n=A[u][h])||void 0===n?void 0:n.iconBg,w=null===(i=A[u][h])||void 0===i?void 0:i.font;return t(wn,{className:m("dgaui dgaui_statusTag",c.className),$customStyle:{direction:p.direction,height:vn[g].h,paddingY:vn[g].py,fontSize:vn[g].f,fontColor:w,backgroundColor:x,iconBackgroundColor:y},children:[e("i",{className:"dgaui_icon"}),a]})},wn=sr.div`
|
|
2696
2696
|
direction: ${e=>e.$customStyle.direction};
|
|
2697
2697
|
height: ${e=>e.$customStyle.height}px;
|
|
2698
2698
|
padding: 0 ${e=>e.$customStyle.paddingY}px;
|
|
@@ -2712,7 +2712,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2712
2712
|
background-color: ${e=>e.$customStyle.iconBackgroundColor};
|
|
2713
2713
|
margin-inline-end: 8px;
|
|
2714
2714
|
}
|
|
2715
|
-
`,
|
|
2715
|
+
`,Cn=({contained:r,compact:n,alternatingRows:i,selectable:a,className:l,labels:s,values:d,onRowClick:c,onCheck:p,responsiveThreshold:u,columnDivider:g,headerColumnDivider:h=!0,lastColumnWidthMultiply:A})=>{const f=b(),[x,v]=o.useState(!1),[y,w]=o.useState(!1),C=e=>{null==p||p(d.map((t=>t===e?Object.assign(Object.assign({},t),{selected:!(null==t?void 0:t.selected)}):t)))};return o.useEffect((()=>{if(a){let e=!0;d.forEach((t=>{(null==t?void 0:t.selected)||(e=!1)})),v(e)}}),[d]),o.useEffect((()=>{const e=()=>w(window.innerWidth<=(u||768));return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),y?e(kn,{$theme:f,$compact:n,$contained:r,$alternatingRows:i,$onRowClick:!!c,className:m("dgaui dgaui_table",l),children:d.map(((r,o)=>{const l=null==r?void 0:r.selected;return t("div",{className:"mobileRow "+(l?"checked ":""),onClick:e=>{if(!(e.target instanceof HTMLElement))return;"DIV"===e.target.nodeName&&(null==c||c(r))},children:[a&&e("div",{className:"cell selectable",children:e(vr,{size:n?"small":"medium",value:l,onChange:()=>C(r),onClick:e=>e.stopPropagation()})}),Object.keys(s).filter((e=>!!s[e])).map(((o,n)=>t("div",{className:"mobileRowContainer",children:[e("div",{className:"cell label",children:s[o]}),e("div",{className:"cell value "+(i?(n+1)%2==0?"even":"odd":""),children:r[o]})]},n)))]},o)}))}):t($n,{$theme:f,$headerColumnDivider:h,$compact:n,$contained:r,$alternatingRows:i,$onRowClick:!!c,className:m("dgaui dgaui_table"+(g?" columnDivider":""),l),cellPadding:0,cellSpacing:0,children:[e("thead",{children:t("tr",{children:[a&&e("th",{className:"selectable",children:e(vr,{value:x,onChange:(e,t)=>{if(v(t),p){let e=[];e=t?d.map((e=>Object.assign(Object.assign({},e),{selected:!0}))):d.map((e=>Object.assign(Object.assign({},e),{selected:!1}))),p(e)}}})}),Object.keys(s).filter((e=>!!s[e])).map(((t,r)=>e("th",{style:{flex:A&&r===Object.keys(s).length-1?A:void 0},children:s[t]},r)))]})}),d&&d.length>0&&e("tbody",{children:d.map(((r,o)=>{const n=null==r?void 0:r.selected;return t("tr",{onClick:e=>{if(!(e.target instanceof HTMLElement))return;const t=e.target.nodeName;"TR"!==t&&"TD"!==t||null==c||c(r)},className:(n?"checked ":"")+(i?(o+1)%2==0?"even":"odd":""),children:[a&&e("td",{className:"selectable",children:e(vr,{value:n,onChange:()=>C(r),onClick:e=>e.stopPropagation()})}),Object.entries(r).filter((e=>!!s[e[0]])).map((([t,r],o)=>s[t]&&e("td",{style:{flex:A&&o===Object.keys(s).length-1?A:void 0},children:r},t)))]},o)}))})]})},$n=sr.table`
|
|
2716
2716
|
direction: ${e=>e.$theme.direction};
|
|
2717
2717
|
width: 100%;
|
|
2718
2718
|
overflow: hidden;
|
|
@@ -3197,7 +3197,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3197
3197
|
@media screen and (max-width: 640px) {
|
|
3198
3198
|
width: calc(100% - 32px);
|
|
3199
3199
|
}
|
|
3200
|
-
`;const Tn=n=>{var{title:i,content:a,jsxContents:l,children:s,beakPlacement:d="top",beakAlignment:c="center",noBeak:p,inverted:u,backgroundColor:g,icon:h=!1}=n,A=v(n,["title","content","jsxContents","children","beakPlacement","beakAlignment","noBeak","inverted","backgroundColor","icon"]);const f=b(),[x,y]=o.useState(!1),[C
|
|
3200
|
+
`;const Tn=n=>{var{title:i,content:a,jsxContents:l,children:s,beakPlacement:d="top",beakAlignment:c="center",noBeak:p,inverted:u,backgroundColor:g,icon:h=!1}=n,A=v(n,["title","content","jsxContents","children","beakPlacement","beakAlignment","noBeak","inverted","backgroundColor","icon"]);const f=b(),[x,y]=o.useState(!1),[w,C]=o.useState(!1),$=o.useRef(null),k=o.useRef(null),[S,B]=o.useState({top:0,left:0,caret:{top:0,left:0,color:""}}),E=x||w;let N=u?f.palette.neutral[800]:"#fff";g&&(N=g);const z={toBottom:`${N} transparent transparent transparent`,toTop:`transparent transparent ${N} transparent`,toLeft:`transparent ${N} transparent transparent`,toRight:`transparent transparent transparent ${N}`},I=()=>{if($.current&&k.current){let e=0,t=0,r={top:0,left:0,color:""};const o=$.current.clientWidth,n=$.current.clientHeight,i=$.current.offsetTop,a=$.current.offsetLeft,l=k.current.clientWidth,s=k.current.clientHeight;"top"===d&&"start"===c&&(e=i-s-6,t=a,r={top:i-6,left:a+6,color:z.toBottom}),"top"===d&&"center"===c&&(e=i-s-6,t=a-l/2,r={top:i-6,left:a,color:z.toBottom}),"top"===d&&"end"===c&&(e=i-s-6,t=a+18-l,r={top:i-6,left:a,color:z.toBottom}),"bottom"===d&&"start"===c&&(e=i+n+6,t=a,r={top:i+n-6,left:a+6,color:z.toTop}),"bottom"===d&&"center"===c&&(e=i+n+6,t=a-l/2,r={top:i+n-6,left:a,color:z.toTop}),"bottom"===d&&"end"===c&&(e=i+n+6,t=a+24-l,r={top:i+n-6,left:a+6,color:z.toTop}),"left"===d&&"start"===c&&(e=i,t=a-l-6,r={top:i+6,left:a-6,color:z.toRight}),"left"===d&&"center"===c&&(e=i+9-s/2,t=a-l-6,r={top:i+6,left:a-6,color:z.toRight}),"left"===d&&"end"===c&&(e=i-s+24,t=a-l-6,r={top:i+6,left:a-6,color:z.toRight}),"right"===d&&"start"===c&&(e=i,t=a+o+6,r={top:i+6,left:a+o-6,color:z.toLeft}),"right"===d&&"center"===c&&(e=i-s/2+12,t=a+o+6,r={top:i+6,left:a+o-6,color:z.toLeft}),"right"===d&&"end"===c&&(e=i-s+24,t=a+o+6,r={top:i+6,left:a+o-6,color:z.toLeft}),B({top:e,left:t,caret:r})}};return o.useEffect((()=>{if($.current){I();const e=()=>{I()},t=e=>{var t;(null===(t=$.current)||void 0===t?void 0:t.contains(e.target))||(y(!1),C(!1))},r=e=>{I(),y(!0)},o=()=>{y(!1)};return window.addEventListener("click",t),window.addEventListener("resize",e),$.current.addEventListener("mouseover",r),$.current.addEventListener("mouseleave",o),$.current.addEventListener("click",r),()=>{var n,i,a;window.removeEventListener("resize",e),window.removeEventListener("click",t),null===(n=null==$?void 0:$.current)||void 0===n||n.removeEventListener("mouseover",r),null===(i=null==$?void 0:$.current)||void 0===i||i.removeEventListener("mouseleave",o),null===(a=null==$?void 0:$.current)||void 0===a||a.removeEventListener("click",r)}}}),[$,k,d,c]),t(Qn,Object.assign({className:m("dgaui dgaui_tooltip",A.className),$theme:f,$inverted:u},A,{ref:$,onClick:()=>{C(!0)},$position:S,children:[s,t(Yn,{ref:k,$theme:f,$position:S,$inverted:u,$backgroundColor:g,className:"dgaui_tooltipContent"+(E?" show-tooltip":""),children:[l&&l,!l&&t(r,{children:[h&&e("div",{className:"dgaui_tooltipContentIcon",children:e("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHaSURBVHgBjVQ9SMNAFP4SOxR0cHAQFJv6Ax3rIAqK1CIqiFh0UFC04uAgojiog2JxchJdBEGFujmZxcFBzVgQtIKCqGA2fwYpmEqp0PjuMDWkSdoPrne59/L1fXffiwAXtIUiEk1swAskFUVOOeUK1o1QKFKZETFPy6hBYoJKb8QS53LclaglFAmWiTixIUABYQ5dCUVWC4iYDF3EDW1UogToQCpHZFeKnGTPZUagtj7ASKrNyU0NfnSHO+Crq4GmfUNLp81SvKKAvkZfIK6qDxkPryYciVrl9PeGsbo0l39+ffvA7OIaXt8/zGkSnecCzTHxb2PdWvr0xAienl/QMziOobEZVFSUY3V5DjaYZD+eIN0SbA734OgY17d3+NLSfNzQmkm1gcTOVyR/BO2ip2cXXA7DyPAAOttbObEDJA+K4GhvC02Nflwn77Cze+iYx4hUN6J9kqiRNJdquOu5j+jWXlDchPbQoSYuZb9xa3GnvM2NFX6DLkQxNnFDVvkCSdI4Si4rcHU2+4P7h0d8fqbsq1HkKbbMtwjrM3LqpSCU2CI6UoKOZqPfDGlgPcMC7F+Ks0DN6Q5NawYZLEqRdRqSJcRejHtz2LZ+m2yJDPBv079hVXMFVvwCXOukAPYYzukAAAAASUVORK5CYII="})}),t("div",{className:"dgaui_tooltipContentText",children:[e("div",{className:"dgaui_tooltipTitle",children:i}),e("div",{className:"dgaui_tooltipDescription",children:a})]})]})]}),!p&&e("span",{className:E?"show":""})]}))},Qn=sr.div`
|
|
3201
3201
|
direction: ${e=>e.$theme.direction};
|
|
3202
3202
|
display: inline-block;
|
|
3203
3203
|
|
|
@@ -3216,7 +3216,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3216
3216
|
display: initial;
|
|
3217
3217
|
}
|
|
3218
3218
|
}
|
|
3219
|
-
`,
|
|
3219
|
+
`,Yn=sr.div`
|
|
3220
3220
|
position: absolute;
|
|
3221
3221
|
top: ${e=>e.$position.top}px;
|
|
3222
3222
|
left: ${e=>e.$position.left}px;
|
|
@@ -3268,7 +3268,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3268
3268
|
opacity: 1;
|
|
3269
3269
|
}
|
|
3270
3270
|
}
|
|
3271
|
-
`,
|
|
3271
|
+
`,Hn=t=>{var{children:r,selected:o}=t,n=v(t,["children","selected"]);const i=b();return e(Mn,Object.assign({},n,{className:m("dgaui dgaui_headerMenuItem",n.className),$theme:i,$selected:o,children:r}))},Mn=sr.button`
|
|
3272
3272
|
direction: ${e=>e.$theme.direction};
|
|
3273
3273
|
height: 72px;
|
|
3274
3274
|
outline: none;
|
|
@@ -3319,7 +3319,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3319
3319
|
opacity: ${e=>e.$selected?1:0};
|
|
3320
3320
|
}
|
|
3321
3321
|
}
|
|
3322
|
-
`,
|
|
3322
|
+
`,Ln=n=>{var i,{children:a,title:l,selected:s,type:d="link",level:c=1,disabled:p,expanded:u,defaultExpanded:g}=n,h=v(n,["children","title","selected","type","level","disabled","expanded","defaultExpanded"]);const A=b(),[f,x]=o.useState(g),[y,w]=o.useState(0),C=o.useRef(null),$=void 0!==u?u:f,k=m("dgaui dgaui_ndi"+(p?" disabled":"")+("parent"===d?" parent":""),h.className);return o.useEffect((()=>{var e;(null===(e=C.current)||void 0===e?void 0:e.clientHeight)&&w(C.current.clientHeight+10)}),[null===(i=C.current)||void 0===i?void 0:i.clientHeight]),"divider"===d?e(Pn,{}):t(r,{children:[t(jn,Object.assign({},h,{className:k,$theme:A,$selected:s,$level:c,$type:d,tabIndex:0,onClick:()=>{x(!$)},children:[l,"parent"===d&&e("img",{src:pr,style:{transition:"all 0.2s",transform:$?"rotateZ(180deg)":"none"}})]})),"parent"===d&&e("div",{className:"dgaui_ndiContent",style:{direction:A.direction,height:$?y:0,overflow:"hidden",transition:"all 0.2s"},children:e("div",{ref:C,children:a})})]})},jn=sr.div`
|
|
3323
3323
|
direction: ${e=>e.$theme.direction};
|
|
3324
3324
|
height: 36px;
|
|
3325
3325
|
outline: none;
|
|
@@ -3385,12 +3385,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3385
3385
|
filter: opacity(0.5) grayscale(100%);
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
|
-
`,
|
|
3388
|
+
`,Pn=sr.div`
|
|
3389
3389
|
margin: 8px 16px;
|
|
3390
3390
|
height: 1px;
|
|
3391
3391
|
background-color: #d2d6db;
|
|
3392
3392
|
width: 100%;
|
|
3393
|
-
`;const
|
|
3393
|
+
`;const Vn=r=>{var{label:o,icon:n,showTrailingIcon:i=!0,showLabel:a=!0,helperText:l,onSearchByVoiceClicked:s}=r,d=v(r,["label","icon","showTrailingIcon","showLabel","helperText","onSearchByVoiceClicked"]);const c=b();return t(Kn,{className:m("dgaui dgaui_searchBox",d.className),$showTrailingIcon:i,$showLabel:a&&!!o,$disabled:d.disabled,$theme:c,children:[a&&e("label",{style:{marginBottom:13,textAlign:"start"},htmlFor:d.id,children:o}),e(oo,Object.assign({},d,{icon:n})),i&&e("img",{className:"dgaui_searchBox_trailIcon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAkCAYAAACe0YppAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOTSURBVHgB5Ve9UttAED7LhuFnYFwAQ4fyBuYJEF26mDJVRJeOuEqJ6dLhNwA6OpwylZ0uHeYJEB3mZ0bMAMPw53yf2GMOYZ1PTjIp2Bnp7la7t7+3tyqonDAzMxMUCoUqniUsy8T1er0IQ4Rx5+zsrO2yT0E5wuzsbAXDJgQGA0ij29vb5TiOI/WngiF0DQIbeg3LYgwdChGUn1YI61q3220MLXhubq6KYc9AbcCiBiyKTbr5+Xn/8fExxHTdUDA8PT3dyS24XC77IyMj+9C+LFYuY6OOjUdC0iIPxhhKLvZzu2fbBELrsgFdtzpIKIE0UHJF64491vvRZVpMa0dHRw9luX1ycrKqcgAsb0ncafW7dGgyLS4WixU9R+x2VE6A1RsypdXV9PeSchDscjYltmt6rUMkc99ZMEATR8oNtiCgkvFtQeUQnAsg9LuSSmaAn0X/1wQj+eoY6iYONeAwS7j1OP1LeHuCkxhLPd5UT4ViQw0B2IMVKkyh/Qy6qra4KkShGh5C2cN8sugqOqsj9VrDZxzKZzld8tLw8PBQ8zzvg4nDEQtlemSgfb4SwSiJMZgSLK+34+NjdhMRGBNcqVRiYWgrC5yfnzcxNPVaOpVQFNjnyPqvv2tXdwzNA453d3dNuQrJuK5ygmEt5wcczTKcCL6/v+8YQhJ30bVSjYgLaIFyBCYreD7JcpseTIR5nr4sYi8tBBAwpkJY1wphvicXgRVIA54tzskLvuSU0M2GMs2iZhgfH4/FPWMgHru+vv5xeXkZT05OdtlVEo/xM9ZsEI5ubm5eJBuVnZ6e/gqaXTxj4qmP6Lt+cT41NdXQlwhyqlZIaasvb35c1tch3PwFymyatLCG3yJZ+ngqqavwudlL9W1JU/FCMDMaybXfr1+SZq6lLDeOoVBNt0nSySR8dD0SbJExf9X6wOoQgrdkyWO1YvZaTDJYHwK/oC94yYOfGJtm08B4g2ZPK2vrOpW4po6nZzy5jhPjTZ7UHnWTptiP8erqqo1ku4C27wUVIKnCiYmJGG67SCeWKZAJBo/sGrxJvBHXbyatta+2xDX5i9BHTTYP+tGBpm9b7PoLE0r18pUbUGDDFk/nnzaCJFaATZcksXz5FKknLxzAQ23XP8ahgEroxMlTTjX8tw4kz/8xm/XnWi1FJin6qSpGaFvPq6tgiW1L5QAos2j7yXPqq3lt4mLomLV4gNAI93lko/kNLXmsYTAB8fwAAAAASUVORK5CYII=",onClick:()=>null==s?void 0:s()}),l&&e("div",{className:"dgaui dgaui_searchBox_helperText",children:l})]})},Kn=sr.div`
|
|
3394
3394
|
direction: ${e=>e.$theme.direction};
|
|
3395
3395
|
|
|
3396
3396
|
.dgaui_searchBox_trailIcon {
|
|
@@ -3408,18 +3408,18 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3408
3408
|
margin-top: 8px;
|
|
3409
3409
|
color: ${e=>e.$disabled?e.$theme.palette.neutral[400]:"unset"};
|
|
3410
3410
|
}
|
|
3411
|
-
`,
|
|
3411
|
+
`,Gn={small:{h:32},medium:{h:40},large:{h:48}},Xn=t=>{var{size:r="medium",onColor:o=!1,data:n,onItemClicked:i}=t,a=v(t,["size","onColor","data","onItemClicked"]);const l=b();return e(Jn,{$theme:l,$onColor:o,$size:r,className:m("dgaui dgaui_contentSwitcher"+(o?" onColor":""),a.className),children:n.map(((t,r)=>e("div",{tabIndex:0,className:"dgaui dgaui_contentSwitcherItem"+(t.active?" active":""),onClick:()=>i&&i(t,r),children:t.text},r)))})},Jn=sr.div`
|
|
3412
3412
|
direction: ${e=>e.$theme.direction};
|
|
3413
3413
|
display: flex;
|
|
3414
3414
|
align-items: center;
|
|
3415
|
-
height: ${e=>
|
|
3415
|
+
height: ${e=>Gn[e.$size].h}px;
|
|
3416
3416
|
border-radius: 8px;
|
|
3417
3417
|
overflow: hidden;
|
|
3418
3418
|
|
|
3419
3419
|
.dgaui_contentSwitcherItem {
|
|
3420
|
-
background-color: ${e=>e.$onColor?
|
|
3420
|
+
background-color: ${e=>e.$onColor?Yr:e.$theme.palette.neutral[100]};
|
|
3421
3421
|
outline: none;
|
|
3422
|
-
color: ${e=>e.$onColor?
|
|
3422
|
+
color: ${e=>e.$onColor?Qr:e.$theme.textColor};
|
|
3423
3423
|
height: 100%;
|
|
3424
3424
|
padding: 8px 16px;
|
|
3425
3425
|
border-inline-end: 1px solid #d2d6db;
|
|
@@ -3486,7 +3486,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3486
3486
|
}
|
|
3487
3487
|
}
|
|
3488
3488
|
}
|
|
3489
|
-
`,
|
|
3489
|
+
`,Wn=t=>{var{color:r,lineType:o="horizontal"}=t,n=v(t,["color","lineType"]);const i=b();return e(Zn,Object.assign({},n,{$theme:i,$color:r,$lineType:o,className:m("dgaui dgaui_divider",n.className)}))},Zn=sr.hr`
|
|
3490
3490
|
outline: none;
|
|
3491
3491
|
border: none;
|
|
3492
3492
|
${e=>"vertical"===e.$lineType&&"height: 100%; width: 1px;"}
|
|
@@ -3494,8 +3494,8 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3494
3494
|
|
|
3495
3495
|
${e=>"neutral"===e.$color&&`background-color: ${e.$theme.palette.neutral[300]};`}
|
|
3496
3496
|
${e=>"primary"===e.$color&&`background-color: ${e.$theme.palette.primary[600]};`}
|
|
3497
|
-
${e=>"alphaWhite"===e.$color&&`background-color: ${
|
|
3498
|
-
${e=>"white"===e.$color&&`background-color: ${
|
|
3497
|
+
${e=>"alphaWhite"===e.$color&&`background-color: ${Hr};`}
|
|
3498
|
+
${e=>"white"===e.$color&&`background-color: ${Qr};`}
|
|
3499
3499
|
`;f("@keyframes blink {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.skeletonAnimation {\n background: linear-gradient(\n 90deg,\n rgba(157, 164, 174, 0.2) 0%,\n rgba(210, 214, 219, 0.2) 49.5%,\n rgba(229, 231, 235, 0.2) 100%\n );\n\n animation: blink 1.5s infinite;\n}\n");const qn=t=>{var{size:r="120px"}=t,o=v(t,["size"]);const n=b();return e(_n,Object.assign({},o,{$theme:n,$size:r,className:m("dgaui dgaui_skeletonCircle skeletonAnimation",o.className)}))},_n=sr.div`
|
|
3500
3500
|
direction: ${e=>e.$theme.direction};
|
|
3501
3501
|
height: ${e=>e.$size};
|
|
@@ -3641,19 +3641,19 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3641
3641
|
}
|
|
3642
3642
|
|
|
3643
3643
|
&.onColor {
|
|
3644
|
-
background-color: ${e=>e.$selected?jr:
|
|
3644
|
+
background-color: ${e=>e.$selected?jr:Qr};
|
|
3645
3645
|
color: ${e=>e.$theme.textColor};
|
|
3646
3646
|
|
|
3647
3647
|
&:hover {
|
|
3648
|
-
background-color: ${
|
|
3648
|
+
background-color: ${Pr};
|
|
3649
3649
|
}
|
|
3650
3650
|
&:active {
|
|
3651
|
-
background-color: ${
|
|
3651
|
+
background-color: ${Lr};
|
|
3652
3652
|
}
|
|
3653
3653
|
|
|
3654
3654
|
&.disabled {
|
|
3655
|
-
background-color: ${
|
|
3656
|
-
color: ${
|
|
3655
|
+
background-color: ${Yr};
|
|
3656
|
+
color: ${Mr};
|
|
3657
3657
|
}
|
|
3658
3658
|
}
|
|
3659
3659
|
`,hi=r=>{var{size:o="large",style:n="Primary-Neutral",onColor:i=!1,selected:a=!1,disabled:l=!1,iconOnly:s=!1,children:d,leadIcon:c}=r,p=v(r,["size","style","onColor","selected","disabled","iconOnly","children","leadIcon"]);const u=b();return t(mi,Object.assign({$size:o,$theme:u,$iconOnly:s,$selected:a,className:m("dgaui dgaui_floatingButton"+("Primary-Brand"===n?" primaryBrand":"")+("Secondary-Solid"===n?" secondarySolid":"")+(l?" disabled":"")+(i?" onColor":""),p.className)},p,{children:[c&&e("div",{className:"leadIcon",children:c}),d&&!s&&e("div",{children:d})]}))},mi=sr.button`
|
|
@@ -3672,7 +3672,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3672
3672
|
border: none;
|
|
3673
3673
|
justify-content: ${e=>e.$iconOnly?"center":"flex-start"};
|
|
3674
3674
|
background-color: ${e=>e.$selected?e.$theme.palette.neutral[700]:e.$theme.palette.neutral[950]};
|
|
3675
|
-
color: ${
|
|
3675
|
+
color: ${Qr};
|
|
3676
3676
|
|
|
3677
3677
|
&:hover {
|
|
3678
3678
|
background-color: ${e=>e.$theme.palette.neutral[800]};
|
|
@@ -3735,14 +3735,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3735
3735
|
}
|
|
3736
3736
|
|
|
3737
3737
|
&.onColor {
|
|
3738
|
-
background-color: ${e=>e.$selected?jr:
|
|
3738
|
+
background-color: ${e=>e.$selected?jr:Qr};
|
|
3739
3739
|
color: ${e=>e.$theme.textColor};
|
|
3740
3740
|
|
|
3741
3741
|
&:hover {
|
|
3742
|
-
background-color: ${
|
|
3742
|
+
background-color: ${Pr};
|
|
3743
3743
|
}
|
|
3744
3744
|
&:active {
|
|
3745
|
-
background-color: ${
|
|
3745
|
+
background-color: ${Lr};
|
|
3746
3746
|
}
|
|
3747
3747
|
|
|
3748
3748
|
&:focus {
|
|
@@ -3752,7 +3752,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3752
3752
|
}
|
|
3753
3753
|
|
|
3754
3754
|
&.primaryBrand {
|
|
3755
|
-
color: ${
|
|
3755
|
+
color: ${Qr};
|
|
3756
3756
|
background-color: ${e=>e.$selected?e.$theme.palette.primary[700]:e.$theme.palette.primary[600]};
|
|
3757
3757
|
|
|
3758
3758
|
&:hover {
|
|
@@ -3764,23 +3764,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3764
3764
|
}
|
|
3765
3765
|
|
|
3766
3766
|
&.secondarySolid {
|
|
3767
|
-
color: ${
|
|
3768
|
-
background-color: ${e=>e.$selected?
|
|
3767
|
+
color: ${Qr};
|
|
3768
|
+
background-color: ${e=>e.$selected?Hr:Yr};
|
|
3769
3769
|
|
|
3770
3770
|
&:hover {
|
|
3771
|
-
background-color: ${
|
|
3771
|
+
background-color: ${Yr};
|
|
3772
3772
|
}
|
|
3773
3773
|
&:focus {
|
|
3774
3774
|
background-color: transparent;
|
|
3775
3775
|
}
|
|
3776
3776
|
&:active {
|
|
3777
|
-
background-color: ${
|
|
3777
|
+
background-color: ${Mr};
|
|
3778
3778
|
}
|
|
3779
3779
|
}
|
|
3780
3780
|
|
|
3781
3781
|
&.disabled {
|
|
3782
|
-
background-color: ${
|
|
3783
|
-
color: ${
|
|
3782
|
+
background-color: ${Yr};
|
|
3783
|
+
color: ${Mr};
|
|
3784
3784
|
}
|
|
3785
3785
|
}
|
|
3786
3786
|
`,Ai={"40px":{borderWidth:2,width:40,circleRadius:2,magicNumber:118,stepNameFontSize:12,descriptionFontSize:10,innerCircleFontSize:9},"48px":{borderWidth:4,width:48,circleRadius:4,magicNumber:136,stepNameFontSize:14,descriptionFontSize:12,innerCircleFontSize:10.5},"64px":{borderWidth:5,width:64,circleRadius:5,magicNumber:185,stepNameFontSize:14,descriptionFontSize:12,innerCircleFontSize:14},"80px":{borderWidth:8,width:80,circleRadius:8,magicNumber:225,stepNameFontSize:16,descriptionFontSize:14,innerCircleFontSize:16},"120px":{borderWidth:10,width:120,circleRadius:10,magicNumber:340,stepNameFontSize:20,descriptionFontSize:14,innerCircleFontSize:24}},fi=r=>{var{size:o="64px",style:n="primary",onColor:i=!1,stepsCount:a,activeStep:l,innerCircleText:s,description:d,preStepName:c,stepName:p,nextStepName:u}=r,g=v(r,["size","style","onColor","stepsCount","activeStep","innerCircleText","description","preStepName","stepName","nextStepName"]);const h=b(),A=Ai[o].circleRadius;return t(bi,Object.assign({$size:o,$circleRadius:A,$theme:h,className:m("dgaui dgaui_radialStepper"+("neutral"===n?" neutral":"")+(i?" onColor":""),g.className)},g,{$stepsCount:a,$activeStep:l,children:[t("div",{className:"dgaui dgaui_circle",children:[e("div",{className:"innerCircleText",children:s}),e("svg",{className:"dgaui_circle-svg",width:Ai[o].width,height:Ai[o].width,children:e("circle",{className:"dgaui_circle-path",cx:Ai[o].width/2,cy:Ai[o].width/2,r:Ai[o].width/2-A/2,strokeWidth:Ai[o].borderWidth})})]}),t("div",{className:"dgaui_content",children:[e("div",{className:"preStepName",children:c}),e("div",{className:"stepName",children:p}),e("div",{className:"description",children:d}),e("div",{className:"nextStepName",children:u})]})]}))},bi=sr.div`
|
|
@@ -3857,11 +3857,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3857
3857
|
}
|
|
3858
3858
|
|
|
3859
3859
|
&.onColor {
|
|
3860
|
-
color: ${
|
|
3860
|
+
color: ${Qr};
|
|
3861
3861
|
.dgaui_circle {
|
|
3862
|
-
border-color: ${
|
|
3862
|
+
border-color: ${Hr};
|
|
3863
3863
|
.dgaui_circle-path {
|
|
3864
|
-
stroke: ${
|
|
3864
|
+
stroke: ${Qr};
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
3867
3867
|
|
|
@@ -3870,10 +3870,10 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3870
3870
|
color: ${jr};
|
|
3871
3871
|
}
|
|
3872
3872
|
.stepName {
|
|
3873
|
-
color: ${
|
|
3873
|
+
color: ${Qr};
|
|
3874
3874
|
}
|
|
3875
3875
|
.description {
|
|
3876
|
-
color: ${
|
|
3876
|
+
color: ${Pr};
|
|
3877
3877
|
}
|
|
3878
3878
|
.nextStepName {
|
|
3879
3879
|
color: ${jr};
|
|
@@ -3923,7 +3923,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3923
3923
|
.helperText {
|
|
3924
3924
|
color: ${e=>e.$success?e.$theme.palette.success[700]:e.$error?e.$theme.palette.error[700]:"initial"};
|
|
3925
3925
|
}
|
|
3926
|
-
`;const yi=e("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC4SURBVHgB7dhBCsIwEIXhiS6zTtZ6Ao+gN7FH8SbiTfQInqDus882zkiFrHxoApbyPmiZTcsPpXToWjoIIQze+13O+S7/ZjExxmKHzkdptJJGzrlNNW+lUXNQbwxCGIQwCGEQwiCEQYizk60Q9Vf7G6WUvV57mOarzjf5gV47ppQuboo5ywxo1MBH9uE+r0cmrXR1Pb1XWJulEV97hEEIgxAGIQxCGIQsL0jXhkc1jzIHtk/1+HtmniG3OoMZpqw2AAAAAElFTkSuQmCC",style:{width:17.5}}),
|
|
3926
|
+
`;const yi=e("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC4SURBVHgB7dhBCsIwEIXhiS6zTtZ6Ao+gN7FH8SbiTfQInqDus882zkiFrHxoApbyPmiZTcsPpXToWjoIIQze+13O+S7/ZjExxmKHzkdptJJGzrlNNW+lUXNQbwxCGIQwCGEQwiCEQYizk60Q9Vf7G6WUvV57mOarzjf5gV47ppQuboo5ywxo1MBH9uE+r0cmrXR1Pb1XWJulEV97hEEIgxAGIQxCGIQsL0jXhkc1jzIHtk/1+HtmniG3OoMZpqw2AAAAAElFTkSuQmCC",style:{width:17.5}}),wi=e("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAECAYAAADmrJ2uAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA9SURBVHgBzdHBDQAgCAPA1rgCf0dzM+NkDsAQCAk7wD36blrCicgmuVDIzJ6q3pllDop5hxgGA80wotNlHyEREYxNANeWAAAAAElFTkSuQmCC",style:{width:17.5}}),Ci=o.forwardRef(((t,r)=>{var{prefixType:o="plus",suffixType:n="minus"}=t,i=v(t,["prefixType","suffixType"]);return e($i,Object.assign({className:m("dgaui dgaui_numberInput",i.className),ref:r,prefix:"plus"===o?yi:wi,suffix:"plus"===n?yi:wi,prefixStyle:i.prefixStyle?i.prefixStyle:"filledLighter"===i.style?"subtle":void 0,suffixStyle:i.suffixStyle?i.suffixStyle:"filledLighter"===i.style?"subtle":void 0},i,{onWheel:e=>{e.target.blur()},type:"number",pattern:"[0-9]*",inputMode:"numeric",onKeyDown:e=>{var t;("e"===e.key||"E"===e.key)&&e.preventDefault(),null===(t=i.onKeyDown)||void 0===t||t.call(i,e)}}))})),$i=sr(oo)`
|
|
3927
3927
|
input[type="number"] {
|
|
3928
3928
|
appearance: textfield;
|
|
3929
3929
|
-moz-appearance: textfield;
|
|
@@ -3952,7 +3952,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3952
3952
|
filter: brightness(8);
|
|
3953
3953
|
}
|
|
3954
3954
|
}
|
|
3955
|
-
`,ki=()=>{const[e,t]=o.useState({width:window.innerWidth,height:window.innerHeight});return o.useEffect((()=>{const e=()=>{};return window.addEventListener("resize",(()=>{t({width:window.innerWidth,height:window.innerHeight})})),()=>{window.removeEventListener("resize",e)}}),[]),e},Si=r=>{var{label:n="",helperText:i="",size:a="medium",percentage:l=0,onChnage:s}=r,d=v(r,["label","helperText","size","percentage","onChnage"]);const c=b(),p=ki(),u=o.useRef(null),g=o.useRef(null),[h,A]=o.useState(!1),[f,x]=o.useState(0),[y,
|
|
3955
|
+
`,ki=()=>{const[e,t]=o.useState({width:window.innerWidth,height:window.innerHeight});return o.useEffect((()=>{const e=()=>{};return window.addEventListener("resize",(()=>{t({width:window.innerWidth,height:window.innerHeight})})),()=>{window.removeEventListener("resize",e)}}),[]),e},Si=r=>{var{label:n="",helperText:i="",size:a="medium",percentage:l=0,onChnage:s}=r,d=v(r,["label","helperText","size","percentage","onChnage"]);const c=b(),p=ki(),u=o.useRef(null),g=o.useRef(null),[h,A]=o.useState(!1),[f,x]=o.useState(0),[y,w]=o.useState([0,0]),C="medium"===a?16:12;return o.useEffect((()=>{const e=100*(f-y[0])/(y[1]-y[0]),t=Math.round(e);null==s||s(t)}),[f,y]),o.useEffect((()=>{if(u.current&&g.current){const e=u.current.getBoundingClientRect(),t=g.current.getBoundingClientRect();w([e.left,e.right]),x(t.x+C/2)}}),[u,g,p]),o.useEffect((()=>{if(h){const e=e=>{const t=e.clientX;console.log("newClientX a",t),t>y[0]&&t<y[1]&&x(t),t<=y[0]&&x(y[0]),t>=y[1]&&x(y[1])},t=()=>{document.getElementsByTagName("body")[0].classList.remove("dgauiDragging"),A(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}}),[h,p,window.innerWidth]),t(Bi,Object.assign({$size:a,$theme:c,$percentage:l,$indicatorWidth:C,className:m("dgaui dgaui_slider",d.className)},d,{children:[n&&e("label",{children:n}),t("div",{className:"sliderBaseContent",children:[e("div",{className:"dgaui sliderBase",ref:u,children:e("div",{ref:g,className:"dgaui sliderIndicator",onMouseDown:()=>{document.getElementsByTagName("body")[0].classList.add("dgauiDragging"),A(!0)}})}),e("div",{className:"dgaui_percentageText",children:l})]}),i&&e("div",{className:"helperText",children:i})]}))},Bi=sr.div`
|
|
3956
3956
|
direction: ${e=>e.$theme.direction};
|
|
3957
3957
|
width: 100%;
|
|
3958
3958
|
|
|
@@ -4008,7 +4008,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
4008
4008
|
}
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
|
-
`,Ei=r=>{var{label:n="",helperText:i="",size:a="medium",percentage:l=[0,0],onChnage:s}=r,d=v(r,["label","helperText","size","percentage","onChnage"]);const c=b(),p=ki(),u=o.useRef(null),g=o.useRef(null),h=o.useRef(null),[A,f]=o.useState(!1),[x,y]=o.useState(!1),[C
|
|
4011
|
+
`,Ei=r=>{var{label:n="",helperText:i="",size:a="medium",percentage:l=[0,0],onChnage:s}=r,d=v(r,["label","helperText","size","percentage","onChnage"]);const c=b(),p=ki(),u=o.useRef(null),g=o.useRef(null),h=o.useRef(null),[A,f]=o.useState(!1),[x,y]=o.useState(!1),[w,C]=o.useState(0),[$,k]=o.useState(0),[S,B]=o.useState([0,0]),E="medium"===a?16:12;return o.useEffect((()=>{const e=100*(w-S[0])/(S[1]-S[0]),t=[Math.round(e),l[1]];null==s||s(t)}),[w,S]),o.useEffect((()=>{const e=100*($-S[0])/(S[1]-S[0]),t=[l[0],Math.round(e)];null==s||s(t)}),[$,S]),o.useEffect((()=>{if(u.current&&g.current&&h.current){const e=u.current.getBoundingClientRect(),t=g.current.getBoundingClientRect(),r=h.current.getBoundingClientRect();B([e.left,e.right]),C(t.x+E/2),k(r.x+E/2)}}),[u,g,h,p]),o.useEffect((()=>{if(A){const e=e=>{var t;const r=null===(t=h.current)||void 0===t?void 0:t.getBoundingClientRect(),o=e.clientX;o>S[0]&&o<r.left+E/2&&C(o),o<=S[0]&&C(S[0]),o>=r.left+E/2&&C(r.left+E/2)},t=()=>{document.getElementsByTagName("body")[0].classList.remove("dgauiDragging"),f(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}}),[A,p]),o.useEffect((()=>{if(x){const e=e=>{var t;const r=null===(t=g.current)||void 0===t?void 0:t.getBoundingClientRect(),o=e.clientX;o>r.left+E/2&&o<S[1]&&k(o),o<=r.left+E/2&&k(r.left+E/2),o>=S[1]&&k(S[1])},t=()=>{document.getElementsByTagName("body")[0].classList.remove("dgauiDragging"),y(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}}),[x,p]),t(Ni,Object.assign({$size:a,$theme:c,$percentage:l,$indicatorWidth:E,className:m("dgaui dgaui_rangeSlider",d.className)},d,{children:[n&&e("label",{children:n}),t("div",{className:"dgaui_rangeSliderContainer",children:[e("div",{className:"dgaui_percentageText",children:l[0]}),e("div",{className:"sliderBaseContent",children:t("div",{className:"dgaui sliderBase",ref:u,children:[e("div",{ref:g,className:"dgaui sliderIndicator",onMouseDown:()=>{document.getElementsByTagName("body")[0].classList.add("dgauiDragging"),f(!0)}}),e("div",{ref:h,className:"dgaui sliderIndicator end",onMouseDown:()=>{document.getElementsByTagName("body")[0].classList.add("dgauiDragging"),y(!0)}})]})}),e("div",{className:"dgaui_percentageText",children:l[1]})]}),i&&e("div",{className:"helperText",children:i})]}))},Ni=sr.div`
|
|
4012
4012
|
direction: ${e=>e.$theme.direction};
|
|
4013
4013
|
width: 100%;
|
|
4014
4014
|
|
|
@@ -4077,5 +4077,303 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
4077
4077
|
}
|
|
4078
4078
|
}
|
|
4079
4079
|
}
|
|
4080
|
-
|
|
4080
|
+
`,zi=({size:t="large",selected:r,onClick:o})=>{const n=b();return e(Ii,{$theme:n,className:"dgaui_carouselDot "+t+(r?" selected":""),onClick:()=>o()})},Ii=sr.div`
|
|
4081
|
+
background-color: ${e=>e.$theme.palette.neutral[200]};
|
|
4082
|
+
border-radius: 100%;
|
|
4083
|
+
margin-inline-end: 8px;
|
|
4084
|
+
cursor: pointer;
|
|
4085
|
+
|
|
4086
|
+
&.large {
|
|
4087
|
+
width: 16px;
|
|
4088
|
+
height: 16px;
|
|
4089
|
+
}
|
|
4090
|
+
&.medium {
|
|
4091
|
+
width: 12px;
|
|
4092
|
+
height: 12px;
|
|
4093
|
+
}
|
|
4094
|
+
&.small {
|
|
4095
|
+
width: 8px;
|
|
4096
|
+
height: 8px;
|
|
4097
|
+
}
|
|
4098
|
+
&.selected {
|
|
4099
|
+
background-color: ${e=>e.$theme.palette.primary[600]};
|
|
4100
|
+
}
|
|
4101
|
+
`;const Fi=({position:t,style:r,size:o,onClick:n})=>e(Kr,{iconOnly:!0,leadIcon:e("img",{src:"primary"===r?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEDSURBVHgB7djRDYJADAbgH+O7jsAIjIAbuIFuoBvoBjqCG+gGugFu4AiOUNt4RD2OJwjhj/2Shte/oeUuAM4555z7MyKy1lqBjYbOta7y0bmJKQaiYQt9nLVysNHwG2nag4EGPUTBn1olxk5DzqN5N5XtAcYuLGsVhT9ZUxi7EP7BOu+p8FswSIS3ZV2CRSJ8ARaJT2UJFmF0+Ga+ZoG/wl8wsAn6NQMbeZ+4vCNkNPSRdolNeAsV7WfU0B9kRpivErWWJnZg0tKEndbjv07XwmKfoyasqRxMNPA+0UQJJvJ73aDdi0Kae9H5v1Dfd6FWWZbd9bHQuoGdsP5adM4551zkBQszBWdT8Sb1AAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAITSURBVHgB7Zg9TgJREMeHzwQIcS2AlhtIaQkdJZxAPIF4Az2B3gAprZATAKWVcAK35KvABIghBPxP8tbgBqudWULyfsmGt68g/3k7M29miCwWi8VisZyOGJ2AXC7XyGQyV+v1ekQBiVOIOI5TTCQSrUgkUuZ3GEKz2axNAQjNAIgtQXgHyyIJEqUQgPg7iP+gv+Ifg54+EyFlIP4J4pve+36/X+Cpz+fzPgmgZgD83YG/dzx/Nwyj0Wh9PB67JISKC3GwJpPJnk98e7PZVCTFM+JfwBNPPn+fTqcPpICoAcfE4yvcTyaTZ1JCzAC/eA5WiL/Fyb+RImL3gF88fioQPyRlRAzgVEkHbmPSpLp4JrALGdf5/P1DZZ/3EziNxuPxmreG+G6Y4hnRe2C3211QyAQ2YLvdvnhrvrgKhUKTQiRwP/AN0un0JcRfm61qKpUaoNZ3KQRE7gFT93DpUDJbXLBVUG2qZyKRGFiAWCxWx9I1Ww6M6eXz+RopIxbEXKSh0qzQgRF4OtoxIdoTL5fLRTab7cJ9+OQds11F/0ur1WpACog39f8YUUagO7jw3jnoSRDVhgaCW1gexoHLPQFCxiUh1MYqfNJwm1e4Dx9S2Ww7CPYa0uxIKs2qz4VgRB+Cv5CVqmaLM1RDKi7Um3qPY2MVxEkj6GQilLEKw5cap1mI7tO5w6NFPDdksVgsFovlzPkB3uXHj+IHmZAAAAAASUVORK5CYII="}),style:r,size:o,className:t,onClick:()=>n()}),Ri=({style:r="dots",selectedContentIndex:n,content:i,dotsSize:a="medium",className:l,onChange:s,arrowsSize:d="medium",arrowsStyle:c="subtle"})=>{const p=b();return o.useEffect((()=>{if("dotsOnly"!==r){const e=document.querySelectorAll(".dgaui_carouselSlide")[n],t=document.querySelector(".dgaui_carouselSlides");if(e&&t){const r=e.offsetLeft;t.scrollTo({left:r,behavior:"smooth"})}}}),[n,r]),o.useEffect((()=>{if("dotsOnly"!==r){const e=document.querySelectorAll(".dgaui_carouselSlide")[n],t=document.querySelector(".dgaui_carouselSlides");if(e&&t){const r=e.offsetLeft;t.scrollTo({left:r,behavior:"instant"})}}}),[]),t(Ui,{$theme:p,className:m("dgaui dgaui_carousel",l),$arrowsSize:d,$style:r,children:["dotsOnly"!==r&&t("div",{className:"dgaui_carouselSlidesContainer "+("arrows"===r?" arrows":""),children:[e("div",{className:"leftArrow",children:e(Fi,{position:"left",style:c,size:d,onClick:()=>n>0&&(null==s?void 0:s(n-1))})}),e("div",{className:"dgaui_carouselSlides",children:i.map(((t,r)=>e("div",{className:"dgaui_carouselSlide",children:t},r)))}),e("div",{className:"rightArrow",children:e(Fi,{position:"right",style:c,size:d,onClick:()=>n<i.length-1&&(null==s?void 0:s(n+1))})})]}),("dots"===r||"dotsOnly"===r)&&e("div",{className:"dots",children:i.map(((t,r)=>e(zi,{selected:r===n,size:a,onClick:()=>null==s?void 0:s(r)})))})]})},Ui=sr.div`
|
|
4102
|
+
direction: ${e=>e.$theme.direction};
|
|
4103
|
+
height: 100%;
|
|
4104
|
+
width: 100%;
|
|
4105
|
+
|
|
4106
|
+
.dgaui_carouselSlidesContainer {
|
|
4107
|
+
.leftArrow,
|
|
4108
|
+
.rightArrow {
|
|
4109
|
+
display: none;
|
|
4110
|
+
}
|
|
4111
|
+
&.arrows {
|
|
4112
|
+
display: flex;
|
|
4113
|
+
.dgaui_carouselSlides {
|
|
4114
|
+
flex: 1;
|
|
4115
|
+
}
|
|
4116
|
+
.leftArrow,
|
|
4117
|
+
.rightArrow {
|
|
4118
|
+
display: flex;
|
|
4119
|
+
justify-content: center;
|
|
4120
|
+
align-items: center;
|
|
4121
|
+
}
|
|
4122
|
+
.leftArrow {
|
|
4123
|
+
margin-right: 44px;
|
|
4124
|
+
margin-right: 44px;
|
|
4125
|
+
}
|
|
4126
|
+
.rightArrow {
|
|
4127
|
+
margin-left: 44px;
|
|
4128
|
+
}
|
|
4129
|
+
}
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
.dgaui_carouselSlides {
|
|
4133
|
+
overflow-x: hidden;
|
|
4134
|
+
overscroll-behavior-x: contain; /* Prevents unwanted page scrolling */
|
|
4135
|
+
scroll-snap-type: x mandatory; /* Snaps to each slide */
|
|
4136
|
+
height: 100%;
|
|
4137
|
+
display: block;
|
|
4138
|
+
margin-bottom: ${e=>"arrows"===e.$style?0:24}px;
|
|
4139
|
+
display: flex;
|
|
4140
|
+
|
|
4141
|
+
.dgaui_carouselSlide {
|
|
4142
|
+
flex: 0 0 100%;
|
|
4143
|
+
width: 100%; /* Fallback for older browsers */
|
|
4144
|
+
/* Aligns the snap point to the start of each slide */
|
|
4145
|
+
scroll-snap-align: start;
|
|
4146
|
+
}
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
.dots {
|
|
4150
|
+
padding: 16px;
|
|
4151
|
+
display: flex;
|
|
4152
|
+
justify-content: center;
|
|
4153
|
+
align-items: center;
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
.dgaui_button {
|
|
4157
|
+
border-radius: 9999px;
|
|
4158
|
+
border-width: 3px;
|
|
4159
|
+
&:focus:after {
|
|
4160
|
+
border-radius: 9999px;
|
|
4161
|
+
border-width: 2px;
|
|
4162
|
+
}
|
|
4163
|
+
|
|
4164
|
+
width: ${e=>"large"===e.$arrowsSize?48:"medium"===e.$arrowsSize?40:32}px;
|
|
4165
|
+
height: ${e=>"large"===e.$arrowsSize?48:"medium"===e.$arrowsSize?40:32}px;
|
|
4166
|
+
|
|
4167
|
+
.iconOnly {
|
|
4168
|
+
img {
|
|
4169
|
+
width: ${e=>"large"===e.$arrowsSize?24:16}px;
|
|
4170
|
+
height: ${e=>"large"===e.$arrowsSize?24:16}px;
|
|
4171
|
+
}
|
|
4172
|
+
}
|
|
4173
|
+
|
|
4174
|
+
&.right {
|
|
4175
|
+
.iconOnly {
|
|
4176
|
+
img {
|
|
4177
|
+
transform: rotateZ(180deg);
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
`,Di=r=>{var{size:o,whiteBackground:n=!0,title:i,description:a,authorDetails:l}=r,s=v(r,["size","whiteBackground","title","description","authorDetails"]);const d=b();return t(Oi,Object.assign({$theme:d,className:m("dgaui dgaui_quote"+(n?" whiteBackground":"")+(l?"":" noAuthorDetails")+` ${d.direction} ${null!=o?o:""}`,s.className)},s,{children:[t("div",{className:"dgaui_quoteTextContainer",children:[e("span",{className:"dgaui_quoteTitleQuote start",children:"”"}),e("span",{className:"dgaui_quoteTitleText",children:i}),e("span",{className:"dgaui_quoteTitleQuote end",children:"“"}),a&&e("div",{className:"dgaui_quoteDescription",children:a})]}),l&&t("div",{className:"dgaui_quoteAuthorDetailsContainer",children:[l.avatar&&e("div",{className:"dgaui_quoteAuthorDetailsAvatar",children:l.avatar}),t("div",{className:"dgaui_quoteAuthorDetailsText",children:[e("div",{className:"dgaui_quoteAuthorDetailsName",children:l.name}),e("div",{className:"dgaui_quoteAuthorDetailsTitle",children:l.title})]})]})]}))},Oi=sr.p`
|
|
4183
|
+
direction: ${e=>e.$theme.direction};
|
|
4184
|
+
border-radius: 16px;
|
|
4185
|
+
padding: 20px;
|
|
4186
|
+
|
|
4187
|
+
&.small {
|
|
4188
|
+
width: 640px;
|
|
4189
|
+
}
|
|
4190
|
+
&.large {
|
|
4191
|
+
width: 846px;
|
|
4192
|
+
}
|
|
4193
|
+
|
|
4194
|
+
&.whiteBackground {
|
|
4195
|
+
background-color: ${e=>e.$theme.palette.neutral[50]};
|
|
4196
|
+
}
|
|
4197
|
+
|
|
4198
|
+
.dgaui_quoteTextContainer {
|
|
4199
|
+
position: relative;
|
|
4200
|
+
color: ${e=>e.$theme.textColor};
|
|
4201
|
+
|
|
4202
|
+
margin-inline-start: 64px;
|
|
4203
|
+
|
|
4204
|
+
.dgaui_quoteDescription {
|
|
4205
|
+
line-height: 30px;
|
|
4206
|
+
color: ${e=>e.$theme.palette.neutral[700]};
|
|
4207
|
+
font-weight: 400;
|
|
4208
|
+
font-size: 20px;
|
|
4209
|
+
margin-top: 16px;
|
|
4210
|
+
}
|
|
4211
|
+
.dgaui_quoteTitleText {
|
|
4212
|
+
font-size: 24px;
|
|
4213
|
+
line-height: 32px;
|
|
4214
|
+
font-weight: 500;
|
|
4215
|
+
}
|
|
4216
|
+
.dgaui_quoteTitleQuote {
|
|
4217
|
+
color: ${e=>e.$theme.palette.primary[800]};
|
|
4218
|
+
display: block;
|
|
4219
|
+
transform: rotateY(180deg);
|
|
4220
|
+
position: absolute;
|
|
4221
|
+
|
|
4222
|
+
&.start {
|
|
4223
|
+
line-height: 0;
|
|
4224
|
+
font-size: 128px;
|
|
4225
|
+
top: 45px;
|
|
4226
|
+
inset-inline-start: -75px;
|
|
4227
|
+
}
|
|
4228
|
+
&.end {
|
|
4229
|
+
line-height: 0;
|
|
4230
|
+
font-size: 128px;
|
|
4231
|
+
bottom: -56px;
|
|
4232
|
+
inset-inline-end: 0;
|
|
4233
|
+
}
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4237
|
+
.dgaui_quoteAuthorDetailsContainer {
|
|
4238
|
+
margin-top: 48px;
|
|
4239
|
+
display: flex;
|
|
4240
|
+
align-items: center;
|
|
4241
|
+
|
|
4242
|
+
.dgaui_quoteAuthorDetailsAvatar {
|
|
4243
|
+
margin-inline-end: 8px;
|
|
4244
|
+
}
|
|
4245
|
+
.dgaui_quoteAuthorDetailsText {
|
|
4246
|
+
.dgaui_quoteAuthorDetailsName {
|
|
4247
|
+
font-size: 20px;
|
|
4248
|
+
}
|
|
4249
|
+
.dgaui_quoteAuthorDetailsTitle {
|
|
4250
|
+
color: ${e=>e.$theme.textColor};
|
|
4251
|
+
margin-top: 8px;
|
|
4252
|
+
color: ${e=>e.$theme.palette.neutral[700]};
|
|
4253
|
+
}
|
|
4254
|
+
}
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
&.noAuthorDetails {
|
|
4258
|
+
.dgaui_quoteTextContainer {
|
|
4259
|
+
.dgaui_quoteDescription {
|
|
4260
|
+
margin-inline-end: 64px;
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
.dgaui_quoteTitleQuote {
|
|
4265
|
+
&.end {
|
|
4266
|
+
bottom: 20%;
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
&.rtl {
|
|
4272
|
+
.dgaui_quoteTextContainer {
|
|
4273
|
+
.dgaui_quoteTitleQuote {
|
|
4274
|
+
transform: rotateY(0deg);
|
|
4275
|
+
}
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
`,Ti=r=>{var{items:o,actions:n,style:i="gray"}=r,a=v(r,["items","actions","style"]);const l=b();return t(Qi,Object.assign({$theme:l,$style:i,className:m("dgaui dgaui_secondNavHeader "+(null!=i?i:" "),a.className)},a,{children:[e("div",{className:"dgaui_secondNavHeaderItems",children:o.map(((r,o)=>t("div",{className:"dgaui_secondNavHeaderItem",children:[e("div",{className:"icon",children:r.icon}),e("div",{className:"text",children:r.text})]},o)))}),e("div",{className:"dgaui_secondNavHeaderActions",children:n.map(((t,r)=>e("div",{className:"action",children:t},r)))})]}))},Qi=sr.div`
|
|
4279
|
+
direction: ${e=>e.$theme.direction};
|
|
4280
|
+
padding: 0 32px;
|
|
4281
|
+
display: flex;
|
|
4282
|
+
align-items: center;
|
|
4283
|
+
justify-content: space-between;
|
|
4284
|
+
border-bottom: 1px solid ${e=>"gray"===e.$style?e.$theme.palette.neutral[300]:Hr};
|
|
4285
|
+
|
|
4286
|
+
background-color: ${e=>e.$theme.palette.primary[600]};
|
|
4287
|
+
&.gray {
|
|
4288
|
+
background-color: ${e=>e.$theme.palette.neutral[100]};
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
.dgaui_secondNavHeaderItems {
|
|
4292
|
+
display: flex;
|
|
4293
|
+
align-items: center;
|
|
4294
|
+
|
|
4295
|
+
.dgaui_secondNavHeaderItem {
|
|
4296
|
+
color: ${e=>"gray"===e.$style?e.$theme.palette.neutral[700]:Qr};
|
|
4297
|
+
|
|
4298
|
+
margin-inline-end: 16px;
|
|
4299
|
+
display: flex;
|
|
4300
|
+
align-items: center;
|
|
4301
|
+
|
|
4302
|
+
.icon {
|
|
4303
|
+
margin-inline-end: 4px;
|
|
4304
|
+
display: flex;
|
|
4305
|
+
align-items: center;
|
|
4306
|
+
justify-content: center;
|
|
4307
|
+
}
|
|
4308
|
+
.text {
|
|
4309
|
+
font-size: 16px;
|
|
4310
|
+
white-space: nowrap;
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
|
|
4315
|
+
.dgaui_secondNavHeaderActions {
|
|
4316
|
+
display: flex;
|
|
4317
|
+
align-items: center;
|
|
4318
|
+
|
|
4319
|
+
.action {
|
|
4320
|
+
margin-inline-start: 4px;
|
|
4321
|
+
.dgaui_button {
|
|
4322
|
+
padding: 4px;
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
}
|
|
4326
|
+
`;const Yi=r=>{var{children:n,type:i="singleLine",multiLineItems:a,onTabClicked:l}=r,s=v(r,["children","type","multiLineItems","onTabClicked"]);const d=b(),[c,p]=o.useState(!1),u=o.useMemo((()=>{var e;let t=[""];if(a){t=((null===(e=a.find((e=>e.active)))||void 0===e?void 0:e.code)||"").split("\n")}return t}),[a]),g=e(Kr,{iconOnly:!0,leadIcon:c?"copied!":e("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMvSURBVHgB7VhLbhpBEC0+RkgsQsRH7Dw5AeMTeLgBNwBOADlBuEHsE9g+QZwThJwAcwJPdgiQgiUW/MkrqB61MYb5QVj4SeOubjzF66quT0P0gWCIvPdBGri4uChDvMZjRCIRg1xitVrZInYgPw4Ggxb5xE6CuVyujqEJUmkKBzaer71e75E84g3BfD5/h6Gq5rDAUL7gidzDwJPGBk19Ebqq/X7/gTwgskXuG4amTO3lclkL4h7tmHxX3gDJK5B0vdmIpsxIJBLPitx0Or0aAhQCcGRMEGwLwRYIlty+G1UCdmopmS0XFjkGWwzEblkGUYst6/bdqCar8zIM4tb3gE23lByPx0237+kEi/wHO/USDK4BDzl6vaQsneDa7NFo9IWOgG63ayvZF0Etyv7SGSFKJ4TkVB5dB0mcQoREZxpBYOz7P3jrMpvNWvP53EaysOmYBDl/IgAaECseSmMZZ72MvMvFgedPePd+Mpk8bKe3QC5GAq6AXBvK6wHrtgm334Bwmzesf+DbgqyId63mXCEwcDPwonUze8HRLBFdoU39Zm9wL1AKTBCKmkpGEi4FTO5NeONGPGHx+VT6fLsYiq5l/BlG5ZnNZk0V5dBZVuu+CEq0GjJtUQiQ4LBZRgAZat2vBQ1NfqaQAMt1eIQli2rNIaiZ9/MhRchzTsQuFoujlEYFnaAt4yWdEfRa/EdE00u/dmzoFnQuNEiYDToTOAQlVdgyrXObTmeAV1HMrb6IfCNrg+QdJ83t8nNKvKokbEWQqoEclxs+l1V+tKK+jnashXZfOYQ3eRAXnHskyi8Qd95fpSkw6ETYWYulPa/CtQ2+4IBUUeVHaTZ5btH/Iqgg5adFW+UMxE1ujViOxWKf6IjwVeqSyaRzBhFYByuPW2hFwtHvi+B4PNaDJMx0pC5uwQjqnQfJfToopAFebxbjb7UeI59IpVLsWos7YsjcwHZg2TH5gPwu9ANigefIIrXRaLRpXsgnuF5LoBhqjdt+zpG6i/ZBUpa5peMWqc4ptb4JMgqFgoEg+UUh5cVtcoxABBUymQxfIy3anMe02xueVCWb5KdiL78bfsAt/gGRnkOtTYslCgAAAABJRU5ErkJggg==",width:20}),size:"medium",style:"subtle",buttonStyle:{padding:4},onClick:()=>{var e;if(p(!0),setTimeout((()=>{p(!1)}),800),navigator.clipboard){const t=null===(e=document.getElementById("dgaui_codeSnippetText"))||void 0===e?void 0:e.innerText;navigator.clipboard.writeText(t)}}});return t(Hi,Object.assign({},s,{className:m("dgaui dgaui_codeSnippet "+i,s.className),$theme:d,children:["singleLine"===i&&t("div",{className:"singleLine",children:[e("div",{className:"content",id:"dgaui_codeSnippetText",children:n}),e("div",{className:"copyIcon",children:g})]}),"multiLine"===i&&a&&t("div",{className:"multiLine",children:[e(Sn,{children:a.map(((t,r)=>e(on,{selected:t.active,onClick:()=>null==l?void 0:l(r,t),children:t.title})))}),t("div",{className:"content",children:[e("pre",{className:"linesNumbers",children:e("code",{children:Array(u.length).fill("").map(((e,t)=>t+1+"\n"))})}),e("pre",{children:e("code",{className:"code",id:"dgaui_codeSnippetText",children:u.map((e=>e+"\n"))})})]}),e("div",{className:"floatCopyIcon",children:g})]})]}))},Hi=sr.div`
|
|
4327
|
+
direction: ltr;
|
|
4328
|
+
border-radius: 16px;
|
|
4329
|
+
overflow: hidden;
|
|
4330
|
+
border: 1px solid ${e=>e.$theme.palette.neutral[200]};
|
|
4331
|
+
|
|
4332
|
+
.singleLine {
|
|
4333
|
+
padding: 24px;
|
|
4334
|
+
border-radius: 16px;
|
|
4335
|
+
background-color: #fff;
|
|
4336
|
+
border: 1px solid ${e=>e.$theme.palette.neutral[200]};
|
|
4337
|
+
display: flex;
|
|
4338
|
+
justify-content: space-between;
|
|
4339
|
+
align-items: center;
|
|
4340
|
+
.content {
|
|
4341
|
+
font-size: 16px;
|
|
4342
|
+
color: ${e=>e.$theme.palette.primary[600]};
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
.multiLine {
|
|
4347
|
+
position: relative;
|
|
4348
|
+
.floatCopyIcon {
|
|
4349
|
+
position: absolute;
|
|
4350
|
+
z-index: 1;
|
|
4351
|
+
inset-inline-end: 24px;
|
|
4352
|
+
top: 74px;
|
|
4353
|
+
}
|
|
4354
|
+
|
|
4355
|
+
.content {
|
|
4356
|
+
display: flex;
|
|
4357
|
+
font-size: 16px;
|
|
4358
|
+
|
|
4359
|
+
.linesNumbers {
|
|
4360
|
+
background-color: ${e=>e.$theme.palette.neutral[50]};
|
|
4361
|
+
padding: 24px;
|
|
4362
|
+
border-right: 1px solid ${e=>e.$theme.palette.neutral[200]};
|
|
4363
|
+
font-weight: 500;
|
|
4364
|
+
box-sizing: border-box;
|
|
4365
|
+
color: #667085;
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
.code {
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
pre {
|
|
4372
|
+
margin: 0;
|
|
4373
|
+
padding: 24px;
|
|
4374
|
+
overflow: scroll;
|
|
4375
|
+
}
|
|
4376
|
+
}
|
|
4377
|
+
}
|
|
4378
|
+
`;export{gr as Accordion,Er as Autocomplete,Rr as Avatar,Dr as Breadcrumb,Kr as Button,Xr as Card,Ri as Carousel,vr as Checkbox,ui as Chip,Yi as CodeSnippet,Xn as ContentSwitcher,uo as DatePicker,Wn as Divider,xo as DropZone,Co as Dropdown,wr as DropdownItem,fo as FileCard,Bo as FileUpload,hi as FloatingButton,zo as Grid,Hn as HeaderMenuItem,Uo as InlineAlert,To as Link,Yo as List,Vo as Loading,lo as Menu,Go as MenuItem,Jo as MenuItemGroup,Zo as Modal,Ln as NavigationDrawerItem,en as Notification,Ci as NumberInput,an as Pagination,xi as ProgressBar,pn as ProgressIndicator,Di as Quote,fi as RadialStepper,hn as Radio,An as RadioGroup,Ei as RangeSlider,ci as Rating,Vn as SearchBox,Ti as SecondNavHeader,li as Skeleton,qn as SkeletonCircle,ei as SkeletonLine,ni as SkeletonRectangle,ri as SkeletonSquare,Si as Slider,yn as StatusTag,bn as Switch,on as Tab,Sn as TabList,Cn as Table,kr as Tag,oo as TextInput,Nn as Textarea,u as ThemeProvider,Tn as Tooltip,Un as toast,b as useTheme,g as withRtl};
|
|
4081
4379
|
//# sourceMappingURL=index.js.map
|