chop-logic-components 2.0.1 → 2.1.0
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/README.md +4 -4
- package/dist/index.cjs.js +73 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1279 -1438
- package/dist/index.es.js.map +1 -1
- package/package.json +19 -16
- package/dist/__tests__/index.test.d.ts +0 -1
- package/dist/components/containers/form/__tests__/Form.test.d.ts +0 -1
- package/dist/components/containers/form/__tests__/helpers.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/Body.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/ColumnGroup.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/Grid.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/Head.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/Row.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/SelectAllRowsCell.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/SelectRowCell.test.d.ts +0 -1
- package/dist/components/containers/grid/__tests__/helpers.test.d.ts +0 -1
- package/dist/components/containers/menu/__tests__/Menu.test.d.ts +0 -1
- package/dist/components/containers/menu/__tests__/MenuItem.test.d.ts +0 -1
- package/dist/components/containers/menu/__tests__/MenuLeaf.test.d.ts +0 -1
- package/dist/components/containers/menu/__tests__/SubMenu.test.d.ts +0 -1
- package/dist/components/containers/portal/__tests__/Portal.test.d.ts +0 -1
- package/dist/components/containers/tabs/__tests__/TabList.test.d.ts +0 -1
- package/dist/components/containers/tabs/__tests__/Tabs.test.d.ts +0 -1
- package/dist/components/inputs/button/__tests__/Button.test.d.ts +0 -1
- package/dist/components/inputs/checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/dist/components/inputs/multi-select/__tests__/MultiSelect.test.d.ts +0 -1
- package/dist/components/inputs/multi-select/__tests__/helpers.test.d.ts +0 -1
- package/dist/components/inputs/numeric/__tests__/NumericInput.test.d.ts +0 -1
- package/dist/components/inputs/numeric/__tests__/helpers.test.d.ts +0 -1
- package/dist/components/inputs/select/__tests__/Select.test.d.ts +0 -1
- package/dist/components/inputs/select/__tests__/helpers.test.d.ts +0 -1
- package/dist/components/inputs/text/__tests__/TextInput.test.d.ts +0 -1
- package/dist/components/inputs/text/__tests__/helpers.test.d.ts +0 -1
- package/dist/components/modals/alert/__tests__/Alert.test.d.ts +0 -1
- package/dist/components/modals/alert/__tests__/helpers.test.d.ts +0 -1
- package/dist/components/modals/dialog/__tests__/Dialog.test.d.ts +0 -1
- package/dist/components/modals/tooltip/__tests__/Tooltip.test.d.ts +0 -1
- package/dist/elements/error-message/__tests__/ErrorMessage.test.d.ts +0 -1
- package/dist/elements/icon/__tests__/Icon.test.d.ts +0 -1
- package/dist/elements/input-inner-button/__tests__/InputInnerButton.test.d.ts +0 -1
- package/dist/elements/label/__tests__/Label.test.d.ts +0 -1
- package/dist/elements/loader/__tests__/Loader.test.d.ts +0 -1
- package/dist/hocs/with-tooltip/__tests__/with-tooltip.test.d.ts +0 -1
- package/dist/hooks/use-click-outside/__tests__/use-click-outside.test.d.ts +0 -1
- package/dist/hooks/use-element-ids/__tests__/use-element-ids.test.d.ts +0 -1
- package/dist/hooks/use-key-press/__tests__/use-key-press.test.d.ts +0 -1
- package/dist/hooks/use-modal-focus-trap/__tests__/use-modal-focus-trap.test.d.ts +0 -1
- package/dist/hooks/use-mount/__tests__/use-mount.test.d.ts +0 -1
- package/dist/hooks/use-tooltip-position/__tests__/use-tooltip-position.test.d.ts +0 -1
- package/dist/hooks/use-window-dimensions/__tests__/use-window-dimensions.test.d.ts +0 -1
- package/dist/icons/__tests__/icons.test.d.ts +0 -1
- package/dist/utils/__tests__/get-chop-logic-theme.test.d.ts +0 -1
- package/dist/utils/__tests__/handle-dropdown-list-key-press.test.d.ts +0 -1
- package/dist/utils/__tests__/move-focus-on-element-by-id.test.d.ts +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),Jr=require("react-dom");var Ve={exports:{}},Me={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Lt;function Zr(){if(Lt)return Me;Lt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return Me.Fragment=t,Me.jsx=r,Me.jsxs=r,Me}var Te={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,24 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+J+c+Zt}function d(c,x){if(!c||jt)return"";var v=Et.get(c);if(v!==void 0)return v;jt=!0,v=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var B=null;B=N.H,N.H=null,o();try{var H={DetermineComponentFrameRoot:function(){try{if(x){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(le){var rt=le}Reflect.construct(c,[],me)}else{try{me.call()}catch(le){rt=le}c.call(me.prototype)}}else{try{throw Error()}catch(le){rt=le}(me=c())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(le){if(le&&rt&&typeof le.stack=="string")return[le.stack,rt.stack]}return[null,null]}};H.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(H.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(H.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=H.DetermineComponentFrameRoot(),ce=z[0],Me=z[1];if(ce&&Me){var F=ce.split(`
|
|
20
|
-
`),we=Me.split(`
|
|
21
|
-
`);for(z=O=0;O<F.length&&!F[O].includes("DetermineComponentFrameRoot");)O++;for(;z<we.length&&!we[z].includes("DetermineComponentFrameRoot");)z++;if(O===F.length||z===we.length)for(O=F.length-1,z=we.length-1;1<=O&&0<=z&&F[O]!==we[z];)z--;for(;1<=O&&0<=z;O--,z--)if(F[O]!==we[z]){if(O!==1||z!==1)do if(O--,z--,0>z||F[O]!==we[z]){var We=`
|
|
22
|
-
`+F[O].replace(" at new "," at ");return c.displayName&&We.includes("<anonymous>")&&(We=We.replace("<anonymous>",c.displayName)),typeof c=="function"&&Et.set(c,We),We}while(1<=O&&0<=z);break}}}finally{jt=!1,N.H=B,i(),Error.prepareStackTrace=v}return F=(F=c?c.displayName||c.name:"")?a(F):"",typeof c=="function"&&Et.set(c,F),F}function l(c){if(c==null)return"";if(typeof c=="function"){var x=c.prototype;return d(c,!(!x||!x.isReactComponent))}if(typeof c=="string")return a(c);switch(c){case se:return a("Suspense");case X:return a("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case ee:return c=d(c.render,!1),c;case Ve:return l(c.type);case Ge:x=c._payload,c=c._init;try{return l(c(x))}catch{}}return""}function u(){var c=N.A;return c===null?null:c.getOwner()}function h(c){if(fe.call(c,"key")){var x=Object.getOwnPropertyDescriptor(c,"key").get;if(x&&x.isReactWarning)return!1}return c.key!==void 0}function f(c,x){function v(){Qt||(Qt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}v.isReactWarning=!0,Object.defineProperty(c,"key",{get:v,configurable:!0})}function m(){var c=e(this.type);return er[c]||(er[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function p(c,x,v,B,H,O){return v=O.ref,c={$$typeof:M,type:c,key:x,props:O,_owner:H},(v!==void 0?v:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:m}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function g(c,x,v,B,H,O){if(typeof c=="string"||typeof c=="function"||c===E||c===_||c===$||c===se||c===X||c===kt||typeof c=="object"&&c!==null&&(c.$$typeof===Ge||c.$$typeof===Ve||c.$$typeof===oe||c.$$typeof===U||c.$$typeof===ee||c.$$typeof===G||c.getModuleId!==void 0)){var z=x.children;if(z!==void 0)if(B)if(xe(z)){for(B=0;B<z.length;B++)y(z[B],c);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(z,c)}else z="",(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c===null?B="null":xe(c)?B="array":c!==void 0&&c.$$typeof===M?(B="<"+(e(c.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):B=typeof c,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,z);if(fe.call(x,"key")){z=e(c);var ce=Object.keys(x).filter(function(F){return F!=="key"});B=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",tr[z+B]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
17
|
+
*/var Pt;function Qr(){return Pt||(Pt=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===oe?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case x:return"Fragment";case y:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case E:return"SuspenseList";case W:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case g:return"Portal";case j:return(f.displayName||"Context")+".Provider";case v:return(f._context.displayName||"Context")+".Consumer";case z:var S=f.render;return f=f.displayName,f||(f=S.displayName||S.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case $:return S=f.displayName||null,S!==null?S:e(f.type)||"Memo";case L:S=f._payload,f=f._init;try{return e(f(S))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var S=!1}catch{S=!0}if(S){S=console;var R=S.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),t(f)}}function n(f){if(f===x)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===L)return"<...>";try{var S=e(f);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var f=X.A;return f===null?null:f.getOwner()}function i(){return Error("react-stack-top-frame")}function a(f){if(se.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function l(f,S){function R(){Ne||(Ne=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function c(){var f=e(this.type);return Fe[f]||(Fe[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function u(f,S,R,P,U,D,ee,ie){return R=D.ref,f={$$typeof:p,type:f,key:S,props:D,_owner:U},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:c}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function d(f,S,R,P,U,D,ee,ie){var B=S.children;if(B!==void 0)if(P)if(J(B)){for(P=0;P<B.length;P++)h(B[P]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(B);if(se.call(S,"key")){B=e(f);var N=Object.keys(S).filter(function(xe){return xe!=="key"});P=0<N.length?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}",Y[B+P]||(N=0<N.length?"{"+N.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
18
|
let props = %s;
|
|
24
19
|
<%s {...props} />
|
|
25
20
|
React keys must be passed directly to JSX without using spread:
|
|
26
21
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,B,z,ce,z),tr[z+B]=!0)}if(z=null,v!==void 0&&(r(v),z=""+v),h(x)&&(r(x.key),z=""+x.key),"key"in x){v={};for(var Me in x)Me!=="key"&&(v[Me]=x[Me])}else v=x;return z&&f(v,typeof c=="function"?c.displayName||c.name||"Unknown":c),p(c,z,O,H,u(),v)}function y(c,x){if(typeof c=="object"&&c&&c.$$typeof!==yn){if(xe(c))for(var v=0;v<c.length;v++){var B=c[v];S(B)&&w(B,x)}else if(S(c))c._store&&(c._store.validated=1);else if(c===null||typeof c!="object"?v=null:(v=ze&&c[ze]||c["@@iterator"],v=typeof v=="function"?v:null),typeof v=="function"&&v!==c.entries&&(v=v.call(c),v!==c))for(;!(c=v.next()).done;)S(c.value)&&w(c.value,x)}}function S(c){return typeof c=="object"&&c!==null&&c.$$typeof===M}function w(c,x){if(c._store&&!c._store.validated&&c.key==null&&(c._store.validated=1,x=C(x),!rr[x])){rr[x]=!0;var v="";c&&c._owner!=null&&c._owner!==u()&&(v=null,typeof c._owner.tag=="number"?v=e(c._owner.type):typeof c._owner.name=="string"&&(v=c._owner.name),v=" It was passed a child from "+v+".");var B=N.getCurrentStack;N.getCurrentStack=function(){var H=l(c.type);return B&&(H+=B()||""),H},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',x,v),N.getCurrentStack=B}}function C(c){var x="",v=u();return v&&(v=e(v.type))&&(x=`
|
|
28
|
-
|
|
29
|
-
Check the render method of \``+v+"`."),x||(c=e(c))&&(x=`
|
|
30
|
-
|
|
31
|
-
Check the top-level render call using <`+c+">."),x}var A=b,M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Ve=Symbol.for("react.memo"),Ge=Symbol.for("react.lazy"),kt=Symbol.for("react.offscreen"),ze=Symbol.iterator,tt=Symbol.for("react.client.reference"),N=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=Object.prototype.hasOwnProperty,K=Object.assign,G=Symbol.for("react.client.reference"),xe=Array.isArray,ie=0,ve,pe,ye,ae,te,Ie,$e;n.__reactDisabledLog=!0;var J,Zt,jt=!1,Et=new(typeof WeakMap=="function"?WeakMap:Map),yn=Symbol.for("react.client.reference"),Qt,er={},tr={},rr={};Ue.Fragment=E,Ue.jsx=function(c,x,v,B,H){return g(c,x,v,!1,B,H)},Ue.jsxs=function(c,x,v,B,H){return g(c,x,v,!0,B,H)}}()),Ue}var sr;function Cn(){return sr||(sr=1,process.env.NODE_ENV==="production"?nt.exports=wn():nt.exports=Sn()),nt.exports}var s=Cn(),W=function(){return W=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},W.apply(this,arguments)};function Be(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function kn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jn=/^((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)-.*))$/,En=kn(function(e){return jn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),L="-ms-",qe="-moz-",T="-webkit-",Er="comm",gt="rule",Nt="decl",An="@import",Ar="@keyframes",zn="@layer",zr=Math.abs,Ht=String.fromCharCode,Rt=Object.assign;function In(e,t){return D(e,0)^45?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}function Ir(e){return e.trim()}function de(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,r){return e.replace(t,r)}function ct(e,t,r){return e.indexOf(t,r)}function D(e,t){return e.charCodeAt(t)|0}function Te(e,t,r){return e.slice(t,r)}function re(e){return e.length}function Mr(e){return e.length}function Ke(e,t){return t.push(e),e}function Mn(e,t){return e.map(t).join("")}function ir(e,t){return e.filter(function(r){return!de(r,t)})}var bt=1,Le=1,Rr=0,Z=0,P=0,De="";function xt(e,t,r,n,o,i,a,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:bt,column:Le,length:a,return:"",siblings:d}}function ge(e,t){return Rt(xt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Re(e){for(;e.root;)e=ge(e.root,{children:[e]});Ke(e,e.siblings)}function Rn(){return P}function Bn(){return P=Z>0?D(De,--Z):0,Le--,P===10&&(Le=1,bt--),P}function Q(){return P=Z<Rr?D(De,Z++):0,Le++,P===10&&(Le=1,bt++),P}function ke(){return D(De,Z)}function lt(){return Z}function vt(e,t){return Te(De,e,t)}function Bt(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 Tn(e){return bt=Le=1,Rr=re(De=e),Z=0,[]}function Ln(e){return De="",e}function At(e){return Ir(vt(Z-1,Tt(e===91?e+2:e===40?e+1:e)))}function On(e){for(;(P=ke())&&P<33;)Q();return Bt(e)>2||Bt(P)>3?"":" "}function _n(e,t){for(;--t&&Q()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return vt(e,lt()+(t<6&&ke()==32&&Q()==32))}function Tt(e){for(;Q();)switch(P){case e:return Z;case 34:case 39:e!==34&&e!==39&&Tt(P);break;case 40:e===41&&Tt(e);break;case 92:Q();break}return Z}function Pn(e,t){for(;Q()&&e+P!==57;)if(e+P===84&&ke()===47)break;return"/*"+vt(t,Z-1)+"*"+Ht(e===47?e:Q())}function Dn(e){for(;!Bt(ke());)Q();return vt(e,Z)}function Nn(e){return Ln(dt("",null,null,null,[""],e=Tn(e),0,[0],e))}function dt(e,t,r,n,o,i,a,d,l){for(var u=0,h=0,f=a,m=0,p=0,g=0,y=1,S=1,w=1,C=0,A="",M=o,R=i,E=n,$=A;S;)switch(g=C,C=Q()){case 40:if(g!=108&&D($,f-1)==58){ct($+=I(At(C),"&","&\f"),"&\f",zr(u?d[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:$+=At(C);break;case 9:case 10:case 13:case 32:$+=On(g);break;case 92:$+=_n(lt()-1,7);continue;case 47:switch(ke()){case 42:case 47:Ke(Hn(Pn(Q(),lt()),t,r,l),l);break;default:$+="/"}break;case 123*y:d[u++]=re($)*w;case 125*y:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+h:w==-1&&($=I($,/\f/g,"")),p>0&&re($)-f&&Ke(p>32?cr($+";",n,r,f-1,l):cr(I($," ","")+";",n,r,f-2,l),l);break;case 59:$+=";";default:if(Ke(E=ar($,t,r,u,h,o,d,A,M=[],R=[],f,i),i),C===123)if(h===0)dt($,t,E,E,M,i,f,d,R);else switch(m===99&&D($,3)===110?100:m){case 100:case 108:case 109:case 115:dt(e,E,E,n&&Ke(ar(e,E,E,0,0,o,d,A,o,M=[],f,R),R),o,R,f,d,n?M:R);break;default:dt($,E,E,E,[""],R,0,d,R)}}u=h=p=0,y=w=1,A=$="",f=a;break;case 58:f=1+re($),p=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&Bn()==125)continue}switch($+=Ht(C),C*y){case 38:w=h>0?1:($+="\f",-1);break;case 44:d[u++]=(re($)-1)*w,w=1;break;case 64:ke()===45&&($+=At(Q())),m=ke(),h=f=re(A=$+=Dn(lt())),C++;break;case 45:g===45&&re($)==2&&(y=0)}}return i}function ar(e,t,r,n,o,i,a,d,l,u,h,f){for(var m=o-1,p=o===0?i:[""],g=Mr(p),y=0,S=0,w=0;y<n;++y)for(var C=0,A=Te(e,m+1,m=zr(S=a[y])),M=e;C<g;++C)(M=Ir(S>0?p[C]+" "+A:I(A,/&\f/g,p[C])))&&(l[w++]=M);return xt(e,t,r,o===0?gt:d,l,u,h,f)}function Hn(e,t,r,n){return xt(e,t,r,Er,Ht(Rn()),Te(e,2,-2),0,n)}function cr(e,t,r,n,o){return xt(e,t,r,Nt,Te(e,0,n),Te(e,n+1,-1),n,o)}function Br(e,t,r){switch(In(e,t)){case 5103:return T+"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 T+e+e;case 4789:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+qe+e+L+e+e;case 5936:switch(D(e,t+11)){case 114:return T+e+L+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+L+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+L+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return T+e+L+e+e;case 6165:return T+e+L+"flex-"+e+e;case 5187:return T+e+I(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return T+e+L+"flex-item-"+I(e,/flex-|-self/g,"")+(de(e,/flex-|baseline/)?"":L+"grid-row-"+I(e,/flex-|-self/g,""))+e;case 4675:return T+e+L+"flex-line-pack"+I(e,/align-content|flex-|-self/g,"")+e;case 5548:return T+e+L+I(e,"shrink","negative")+e;case 5292:return T+e+L+I(e,"basis","preferred-size")+e;case 6060:return T+"box-"+I(e,"-grow","")+T+e+L+I(e,"grow","positive")+e;case 4554:return T+I(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4200:if(!de(e,/flex-|baseline/))return L+"grid-column-align"+Te(e,t)+e;break;case 2592:case 3360:return L+I(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,de(n.props,/grid-\w+-end/)})?~ct(e+(r=r[t].value),"span",0)?e:L+I(e,"-start","")+e+L+"grid-row-span:"+(~ct(r,"span",0)?de(r,/\d+/):+de(r,/\d+/)-+de(e,/\d+/))+";":L+I(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return de(n.props,/grid-\w+-start/)})?e:L+I(I(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,T+"$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(re(e)-1-t>6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+qe+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?Br(I(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return I(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,d,l,u){return L+o+":"+i+u+(a?L+o+"-span:"+(d?l:+l-+i)+u:"")+e});case 4949:if(D(e,t+6)===121)return I(e,":",":"+T)+e;break;case 6444:switch(D(e,D(e,14)===45?18:11)){case 120:return I(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+T+(D(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+L+"$2box$3")+e;case 100:return I(e,":",":"+L)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return I(e,"scroll-","scroll-snap-")+e}return e}function ft(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Fn(e,t,r,n){switch(e.type){case zn:if(e.children.length)break;case An:case Nt:return e.return=e.return||e.value;case Er:return"";case Ar:return e.return=e.value+"{"+ft(e.children,n)+"}";case gt:if(!re(e.value=e.props.join(",")))return""}return re(r=ft(e.children,n))?e.return=e.value+"{"+r+"}":""}function Vn(e){var t=Mr(e);return function(r,n,o,i){for(var a="",d=0;d<t;d++)a+=e[d](r,n,o,i)||"";return a}}function Gn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Nt:e.return=Br(e.value,e.length,r);return;case Ar:return ft([ge(e,{value:I(e.value,"@","@"+T)})],n);case gt:if(e.length)return Mn(r=e.props,function(o){switch(de(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Re(ge(e,{props:[I(o,/:(read-\w+)/,":"+qe+"$1")]})),Re(ge(e,{props:[o]})),Rt(e,{props:ir(r,n)});break;case"::placeholder":Re(ge(e,{props:[I(o,/:(plac\w+)/,":"+T+"input-$1")]})),Re(ge(e,{props:[I(o,/:(plac\w+)/,":"+qe+"$1")]})),Re(ge(e,{props:[I(o,/:(plac\w+)/,L+"input-$1")]})),Re(ge(e,{props:[o]})),Rt(e,{props:ir(r,n)});break}return""})}}var Yn={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},Ee=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tr="active",Lr="data-styled-version",yt="6.1.15",Ft=`/*!sc*/
|
|
32
|
-
`,pt=typeof window<"u"&&"HTMLElement"in window,Un=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),lr=/invalid hook call/i,ot=new Set,Kn=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
22
|
+
<%s key={someKey} {...props} />`,P,B,N,B),Y[B+P]=!0)}if(B=null,R!==void 0&&(r(R),B=""+R),a(S)&&(r(S.key),B=""+S.key),"key"in S){R={};for(var de in S)de!=="key"&&(R[de]=S[de])}else R=S;return B&&l(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),u(f,B,D,U,o(),R,ee,ie)}function h(f){typeof f=="object"&&f!==null&&f.$$typeof===p&&f._store&&(f._store.validated=1)}var m=b,p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),j=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),X=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,J=Array.isArray,ze=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(f){return f()}};var Ne,Fe={},be=m["react-stack-bottom-frame"].bind(m,i)(),Re=ze(n(i)),Y={};Te.Fragment=x,Te.jsx=function(f,S,R,P,U){var D=1e4>X.recentlyCreatedOwnerStacks++;return d(f,S,R,!1,P,U,D?Error("react-stack-top-frame"):be,D?ze(n(f)):Re)},Te.jsxs=function(f,S,R,P,U){var D=1e4>X.recentlyCreatedOwnerStacks++;return d(f,S,R,!0,P,U,D?Error("react-stack-top-frame"):be,D?ze(n(f)):Re)}}()),Te}var _t;function en(){return _t||(_t=1,process.env.NODE_ENV==="production"?Ve.exports=Zr():Ve.exports=Qr()),Ve.exports}var s=en(),F=function(){return F=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},F.apply(this,arguments)};function ye(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function tn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var rn=/^((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)-.*))$/,nn=tn(function(e){return rn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),T="-ms-",Le="-moz-",M="-webkit-",sr="comm",rt="rule",St="decl",on="@import",ir="@keyframes",sn="@layer",ar=Math.abs,kt=String.fromCharCode,mt=Object.assign;function an(e,t){return O(e,0)^45?(((t<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}function cr(e){return e.trim()}function te(e,t){return(e=t.exec(e))?e[0]:e}function A(e,t,r){return e.replace(t,r)}function Ke(e,t,r){return e.indexOf(t,r)}function O(e,t){return e.charCodeAt(t)|0}function ve(e,t,r){return e.slice(t,r)}function Z(e){return e.length}function lr(e){return e.length}function Be(e,t){return t.push(e),e}function cn(e,t){return e.map(t).join("")}function Ot(e,t){return e.filter(function(r){return!te(r,t)})}var nt=1,we=1,dr=0,K=0,_=0,je="";function ot(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:nt,column:we,length:a,return:"",siblings:l}}function ce(e,t){return mt(ot("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function $e(e){for(;e.root;)e=ce(e.root,{children:[e]});Be(e,e.siblings)}function ln(){return _}function dn(){return _=K>0?O(je,--K):0,we--,_===10&&(we=1,nt--),_}function q(){return _=K<dr?O(je,K++):0,we++,_===10&&(we=1,nt++),_}function fe(){return O(je,K)}function qe(){return K}function st(e,t){return ve(je,e,t)}function gt(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 un(e){return nt=we=1,dr=Z(je=e),K=0,[]}function hn(e){return je="",e}function ut(e){return cr(st(K-1,bt(e===91?e+2:e===40?e+1:e)))}function fn(e){for(;(_=fe())&&_<33;)q();return gt(e)>2||gt(_)>3?"":" "}function pn(e,t){for(;--t&&q()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return st(e,qe()+(t<6&&fe()==32&&q()==32))}function bt(e){for(;q();)switch(_){case e:return K;case 34:case 39:e!==34&&e!==39&&bt(_);break;case 40:e===41&&bt(e);break;case 92:q();break}return K}function mn(e,t){for(;q()&&e+_!==57;)if(e+_===84&&fe()===47)break;return"/*"+st(t,K-1)+"*"+kt(e===47?e:q())}function gn(e){for(;!gt(fe());)q();return st(e,K)}function bn(e){return hn(Xe("",null,null,null,[""],e=un(e),0,[0],e))}function Xe(e,t,r,n,o,i,a,l,c){for(var u=0,d=0,h=a,m=0,p=0,g=0,x=1,C=1,y=1,v=0,j="",z=o,I=i,E=n,$=j;C;)switch(g=v,v=q()){case 40:if(g!=108&&O($,h-1)==58){Ke($+=A(ut(v),"&","&\f"),"&\f",ar(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:$+=ut(v);break;case 9:case 10:case 13:case 32:$+=fn(g);break;case 92:$+=pn(qe()-1,7);continue;case 47:switch(fe()){case 42:case 47:Be(xn(mn(q(),qe()),t,r,c),c);break;default:$+="/"}break;case 123*x:l[u++]=Z($)*y;case 125*x:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+d:y==-1&&($=A($,/\f/g,"")),p>0&&Z($)-h&&Be(p>32?Ht($+";",n,r,h-1,c):Ht(A($," ","")+";",n,r,h-2,c),c);break;case 59:$+=";";default:if(Be(E=Dt($,t,r,u,d,o,l,j,z=[],I=[],h,i),i),v===123)if(d===0)Xe($,t,E,E,z,i,h,l,I);else switch(m===99&&O($,3)===110?100:m){case 100:case 108:case 109:case 115:Xe(e,E,E,n&&Be(Dt(e,E,E,0,0,o,l,j,o,z=[],h,I),I),o,I,h,l,n?z:I);break;default:Xe($,E,E,E,[""],I,0,l,I)}}u=d=p=0,x=y=1,j=$="",h=a;break;case 58:h=1+Z($),p=g;default:if(x<1){if(v==123)--x;else if(v==125&&x++==0&&dn()==125)continue}switch($+=kt(v),v*x){case 38:y=d>0?1:($+="\f",-1);break;case 44:l[u++]=(Z($)-1)*y,y=1;break;case 64:fe()===45&&($+=ut(q())),m=fe(),d=h=Z(j=$+=gn(qe())),v++;break;case 45:g===45&&Z($)==2&&(x=0)}}return i}function Dt(e,t,r,n,o,i,a,l,c,u,d,h){for(var m=o-1,p=o===0?i:[""],g=lr(p),x=0,C=0,y=0;x<n;++x)for(var v=0,j=ve(e,m+1,m=ar(C=a[x])),z=e;v<g;++v)(z=cr(C>0?p[v]+" "+j:A(j,/&\f/g,p[v])))&&(c[y++]=z);return ot(e,t,r,o===0?rt:l,c,u,d,h)}function xn(e,t,r,n){return ot(e,t,r,sr,kt(ln()),ve(e,2,-2),0,n)}function Ht(e,t,r,n,o){return ot(e,t,r,St,ve(e,0,n),ve(e,n+1,-1),n,o)}function ur(e,t,r){switch(an(e,t)){case 5103:return M+"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 M+e+e;case 4789:return Le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+Le+e+T+e+e;case 5936:switch(O(e,t+11)){case 114:return M+e+T+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+T+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+T+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+T+e+e;case 6165:return M+e+T+"flex-"+e+e;case 5187:return M+e+A(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return M+e+T+"flex-item-"+A(e,/flex-|-self/g,"")+(te(e,/flex-|baseline/)?"":T+"grid-row-"+A(e,/flex-|-self/g,""))+e;case 4675:return M+e+T+"flex-line-pack"+A(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+T+A(e,"shrink","negative")+e;case 5292:return M+e+T+A(e,"basis","preferred-size")+e;case 6060:return M+"box-"+A(e,"-grow","")+M+e+T+A(e,"grow","positive")+e;case 4554:return M+A(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4200:if(!te(e,/flex-|baseline/))return T+"grid-column-align"+ve(e,t)+e;break;case 2592:case 3360:return T+A(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,te(n.props,/grid-\w+-end/)})?~Ke(e+(r=r[t].value),"span",0)?e:T+A(e,"-start","")+e+T+"grid-row-span:"+(~Ke(r,"span",0)?te(r,/\d+/):+te(r,/\d+/)-+te(e,/\d+/))+";":T+A(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return te(n.props,/grid-\w+-start/)})?e:T+A(A(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,M+"$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(Z(e)-1-t>6)switch(O(e,t+1)){case 109:if(O(e,t+4)!==45)break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+Le+(O(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ke(e,"stretch",0)?ur(A(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return A(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,l,c,u){return T+o+":"+i+u+(a?T+o+"-span:"+(l?c:+c-+i)+u:"")+e});case 4949:if(O(e,t+6)===121)return A(e,":",":"+M)+e;break;case 6444:switch(O(e,O(e,14)===45?18:11)){case 120:return A(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(O(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+T+"$2box$3")+e;case 100:return A(e,":",":"+T)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return A(e,"scroll-","scroll-snap-")+e}return e}function Qe(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function $n(e,t,r,n){switch(e.type){case sn:if(e.children.length)break;case on:case St:return e.return=e.return||e.value;case sr:return"";case ir:return e.return=e.value+"{"+Qe(e.children,n)+"}";case rt:if(!Z(e.value=e.props.join(",")))return""}return Z(r=Qe(e.children,n))?e.return=e.value+"{"+r+"}":""}function yn(e){var t=lr(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}function vn(e){return function(t){t.root||(t=t.return)&&e(t)}}function wn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case St:e.return=ur(e.value,e.length,r);return;case ir:return Qe([ce(e,{value:A(e.value,"@","@"+M)})],n);case rt:if(e.length)return cn(r=e.props,function(o){switch(te(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$e(ce(e,{props:[A(o,/:(read-\w+)/,":"+Le+"$1")]})),$e(ce(e,{props:[o]})),mt(e,{props:Ot(r,n)});break;case"::placeholder":$e(ce(e,{props:[A(o,/:(plac\w+)/,":"+M+"input-$1")]})),$e(ce(e,{props:[A(o,/:(plac\w+)/,":"+Le+"$1")]})),$e(ce(e,{props:[A(o,/:(plac\w+)/,T+"input-$1")]})),$e(ce(e,{props:[o]})),mt(e,{props:Ot(r,n)});break}return""})}}var Sn={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},me=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",hr="active",fr="data-styled-version",it="6.1.17",Ct=`/*!sc*/
|
|
23
|
+
`,et=typeof window<"u"&&"HTMLElement"in window,kn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Nt=/invalid hook call/i,Ge=new Set,Cn=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
33
24
|
`)+`You may see this warning because you've called styled inside another component.
|
|
34
|
-
To resolve this only create new StyledComponents outside of any render method and function component
|
|
25
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
26
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
27
|
+
`,o=console.error;try{var i=!0;console.error=function(a){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];Nt.test(a)?(i=!1,Ge.delete(n)):o.apply(void 0,ye([a],l,!1))},b.useRef(),i&&!Ge.has(n)&&(console.warn(n),Ge.add(n))}catch(a){Nt.test(a.message)&&Ge.delete(n)}finally{console.error=o}}},at=Object.freeze([]),Se=Object.freeze({});function jn(e,t,r){return r===void 0&&(r=Se),e.theme!==r.theme&&e.theme||t||r.theme}var xt=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"]),En=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,An=/(^-|-$)/g;function Ft(e){return e.replace(En,"-").replace(An,"")}var In=/(a)(d)/gi,We=52,Vt=function(e){return String.fromCharCode(e+(e>25?39:97))};function $t(e){var t,r="";for(t=Math.abs(e);t>We;t=t/We|0)r=Vt(t%We)+r;return(Vt(t%We)+r).replace(In,"$1-$2")}var ht,pr=5381,ue=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},mr=function(e){return ue(pr,e)};function zn(e){return $t(mr(e)>>>0)}function gr(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ft(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var br=typeof Symbol=="function"&&Symbol.for,xr=br?Symbol.for("react.memo"):60115,Rn=br?Symbol.for("react.forward_ref"):60112,Mn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bn=((ht={})[Rn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ht[xr]=$r,ht);function Gt(e){return("type"in(t=e)&&t.type.$$typeof)===xr?$r:"$$typeof"in e?Bn[e.$$typeof]:Mn;var t}var Ln=Object.defineProperty,Pn=Object.getOwnPropertyNames,Wt=Object.getOwnPropertySymbols,_n=Object.getOwnPropertyDescriptor,On=Object.getPrototypeOf,Yt=Object.prototype;function yr(e,t,r){if(typeof t!="string"){if(Yt){var n=On(t);n&&n!==Yt&&yr(e,n,r)}var o=Pn(t);Wt&&(o=o.concat(Wt(t)));for(var i=Gt(e),a=Gt(t),l=0;l<o.length;++l){var c=o[l];if(!(c in Tn||r&&r[c]||a&&c in a||i&&c in i)){var u=_n(t,c);try{Ln(e,c,u)}catch{}}}}return e}function ke(e){return typeof e=="function"}function jt(e){return typeof e=="object"&&"styledComponentId"in e}function he(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ut(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Ce(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yt(e,t,r){if(r===void 0&&(r=!1),!r&&!Ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=yt(e[n],t[n]);else if(Ce(t))for(var n in t)e[n]=yt(e[n],t[n]);return e}function Et(e,t){Object.defineProperty(e,"toString",{value:t})}var Dn=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
35
28
|
|
|
36
29
|
`,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.
|
|
37
30
|
|
|
@@ -72,7 +65,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
72
65
|
|
|
73
66
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
74
67
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
75
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function lo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?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(lo.apply(void 0,Be([co[e]],t,!1)).trim())}var uo=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw Ne(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var d=this.indexOfGroup(t+1),l=(a=0,r.length);a<l;a++)this.tag.insertRule(d,r[a])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(Ft);return r},e}(),ho=1<<30,ut=new Map,mt=new Map,ht=1,it=function(e){if(ut.has(e))return ut.get(e);for(;mt.has(ht);)ht++;var t=ht++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>ho))throw Ne(16,"".concat(t));return ut.set(e,t),mt.set(t,e),t},fo=function(e,t){ht=t+1,ut.set(e,t),mt.set(t,e)},po="style[".concat(Ee,"][").concat(Lr,'="').concat(yt,'"]'),mo=new RegExp("^".concat(Ee,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),go=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},bo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ft),o=[],i=0,a=n.length;i<a;i++){var d=n[i].trim();if(d){var l=d.match(mo);if(l){var u=0|parseInt(l[1],10),h=l[2];u!==0&&(fo(h,u),go(e,h,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(d)}}},gr=function(e){for(var t=document.querySelectorAll(po),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ee)!==Tr&&(bo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function xo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Vr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(d){var l=Array.from(d.querySelectorAll("style[".concat(Ee,"]")));return l[l.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ee,Tr),n.setAttribute(Lr,yt);var a=xo();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},vo=function(){function e(t){this.element=Vr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw Ne(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),yo=function(){function e(t){this.element=Vr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),$o=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),br=pt,wo={isServer:!pt,useCSSOMInjection:!Un},Gr=function(){function e(t,r,n){t===void 0&&(t=Oe),r===void 0&&(r={});var o=this;this.options=W(W({},wo),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&pt&&br&&(br=!1,gr(this)),Gt(this,function(){return function(i){for(var a=i.getTag(),d=a.length,l="",u=function(f){var m=function(w){return mt.get(w)}(f);if(m===void 0)return"continue";var p=i.names.get(m),g=a.getGroup(f);if(p===void 0||!p.size||g.length===0)return"continue";var y="".concat(Ee,".g").concat(f,'[id="').concat(m,'"]'),S="";p!==void 0&&p.forEach(function(w){w.length>0&&(S+="".concat(w,","))}),l+="".concat(g).concat(y,'{content:"').concat(S,'"}').concat(Ft)},h=0;h<d;h++)u(h);return l}(o)})}return e.registerId=function(t){return it(t)},e.prototype.rehydrate=function(){!this.server&&pt&&gr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(W(W({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new $o(o):n?new vo(o):new yo(o)}(this.options),new uo(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(it(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(it(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(it(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),So=/&/g,Co=/^\s*\/\/.*$/gm;function Wr(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Wr(r.children,t)),r})}function ko(e){var t,r,n,o=Oe,i=o.options,a=i===void 0?Oe:i,d=o.plugins,l=d===void 0?$t:d,u=function(m,p,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):m},h=l.slice();h.push(function(m){m.type===gt&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(So,r).replace(n,u))}),a.prefix&&h.push(Wn),h.push(Fn);var f=function(m,p,g,y){p===void 0&&(p=""),g===void 0&&(g=""),y===void 0&&(y="&"),t=y,r=p,n=new RegExp("\\".concat(r,"\\b"),"g");var S=m.replace(Co,""),w=Nn(g||p?"".concat(g," ").concat(p," { ").concat(S," }"):S);a.namespace&&(w=Wr(w,a.namespace));var C=[];return ft(w,Vn(h.concat(Gn(function(A){return C.push(A)})))),C};return f.hash=l.length?l.reduce(function(m,p){return p.name||Ne(15),Se(m,p.name)},Or).toString():"",f}var jo=new Gr,Pt=ko(),Yr=b.createContext({shouldForwardProp:void 0,styleSheet:jo,stylis:Pt});Yr.Consumer;b.createContext(void 0);function xr(){return b.useContext(Yr)}var vr=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=Pt);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Gt(this,function(){throw Ne(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pt),this.name+t.hash},e}(),Eo=function(e){return e>="A"&&e<="Z"};function yr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Eo(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ur=function(e){return e==null||e===!1||e===""},Kr=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ur(i)&&(Array.isArray(i)&&i.isCss||_e(i)?n.push("".concat(yr(o),":"),i,";"):Pe(i)?n.push.apply(n,Be(Be(["".concat(o," {")],Kr(i),!1),["}"],!1)):n.push("".concat(yr(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Yn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function je(e,t,r,n){if(Ur(e))return[];if(Vt(e))return[".".concat(e.styledComponentId)];if(_e(e)){if(!_e(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof vr||Pe(o)||o===null||console.error("".concat(Pr(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.")),je(o,t,r,n)}var i;return e instanceof vr?r?(e.inject(r,n),[e.getName(n)]):[e]:Pe(e)?Kr(e):Array.isArray(e)?Array.prototype.concat.apply($t,e.map(function(a){return je(a,t,r,n)})):[e.toString()]}function Ao(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(_e(r)&&!Vt(r))return!1}return!0}var zo=_r(yt),Io=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Ao(t),this.componentId=r,this.baseHash=Se(zo,r),this.baseStyle=n,Gr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Ce(o,this.staticRulesId);else{var i=mr(je(this.rules,t,r,n)),a=Ot(Se(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var d=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,d)}o=Ce(o,a),this.staticRulesId=a}else{for(var l=Se(this.baseHash,n.hash),u="",h=0;h<this.rules.length;h++){var f=this.rules[h];if(typeof f=="string")u+=f,process.env.NODE_ENV!=="production"&&(l=Se(l,f));else if(f){var m=mr(je(f,t,r,n));l=Se(l,m+h),u+=m}}if(u){var p=Ot(l>>>0);r.hasNameForId(this.componentId,p)||r.insertRules(this.componentId,p,n(u,".".concat(p),void 0,this.componentId)),o=Ce(o,p)}}return o},e}(),qr=b.createContext(void 0);qr.Consumer;var Mt={},$r=new Set;function Mo(e,t,r){var n=Vt(e),o=e,i=!It(e),a=t.attrs,d=a===void 0?$t:a,l=t.componentId,u=l===void 0?function(M,R){var E=typeof M!="string"?"sc":dr(M);Mt[E]=(Mt[E]||0)+1;var $="".concat(E,"-").concat(Qn(yt+E+Mt[E]));return R?"".concat(R,"-").concat($):$}(t.displayName,t.parentComponentId):l,h=t.displayName,f=h===void 0?function(M){return It(M)?"styled.".concat(M):"Styled(".concat(Pr(M),")")}(e):h,m=t.displayName&&t.componentId?"".concat(dr(t.displayName),"-").concat(t.componentId):t.componentId||u,p=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;g=function(M,R){return y(M,R)&&S(M,R)}}else g=y}var w=new Io(r,m,n?o.componentStyle:void 0);function C(M,R){return function(E,$,_){var U=E.attrs,oe=E.componentStyle,ee=E.defaultProps,se=E.foldedComponentIds,X=E.styledComponentId,Ve=E.target,Ge=b.useContext(qr),kt=xr(),ze=E.shouldForwardProp||kt.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(X);var tt=qn($,Ge,ee)||Oe,N=function(ve,pe,ye){for(var ae,te=W(W({},pe),{className:void 0,theme:ye}),Ie=0;Ie<ve.length;Ie+=1){var $e=_e(ae=ve[Ie])?ae(te):ae;for(var J in $e)te[J]=J==="className"?Ce(te[J],$e[J]):J==="style"?W(W({},te[J]),$e[J]):$e[J]}return pe.className&&(te.className=Ce(te.className,pe.className)),te}(U,$,tt),fe=N.as||Ve,K={};for(var G in N)N[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&N.theme===tt||(G==="forwardedAs"?K.as=N.forwardedAs:ze&&!ze(G,fe)||(K[G]=N[G],ze||process.env.NODE_ENV!=="development"||En(G)||$r.has(G)||!Lt.has(fe)||($r.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" 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 xe=function(ve,pe){var ye=xr(),ae=ve.generateAndInjectStyles(pe,ye.styleSheet,ye.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(ae),ae}(oe,N);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(xe);var ie=Ce(se,X);return xe&&(ie+=" "+xe),N.className&&(ie+=" "+N.className),K[It(fe)&&!Lt.has(fe)?"class":"className"]=ie,_&&(K.ref=_),b.createElement(fe,K)}(A,M,R)}C.displayName=f;var A=b.forwardRef(C);return A.attrs=p,A.componentStyle=w,A.displayName=f,A.shouldForwardProp=g,A.foldedComponentIds=n?Ce(o.foldedComponentIds,o.styledComponentId):"",A.styledComponentId=m,A.target=n?o.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=n?function(R){for(var E=[],$=1;$<arguments.length;$++)E[$-1]=arguments[$];for(var _=0,U=E;_<U.length;_++)_t(R,U[_],!0);return R}({},o.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(Kn(f,m),A.warnTooManyClasses=function(M,R){var E={},$=!1;return function(_){if(!$&&(E[_]=!0,Object.keys(E).length>=200)){var U=R?' with the id of "'.concat(R,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(U,`.
|
|
68
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Hn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function Ee(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?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(Hn.apply(void 0,ye([Dn[e]],t,!1)).trim())}var Nn=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw Ee(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(t+1),c=(a=0,r.length);a<c;a++)this.tag.insertRule(l,r[a])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(Ct);return r},e}(),Fn=1<<30,Je=new Map,tt=new Map,Ze=1,Ye=function(e){if(Je.has(e))return Je.get(e);for(;tt.has(Ze);)Ze++;var t=Ze++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Fn))throw Ee(16,"".concat(t));return Je.set(e,t),tt.set(t,e),t},Vn=function(e,t){Ze=t+1,Je.set(e,t),tt.set(t,e)},Gn="style[".concat(me,"][").concat(fr,'="').concat(it,'"]'),Wn=new RegExp("^".concat(me,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Yn=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Un=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ct),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var c=l.match(Wn);if(c){var u=0|parseInt(c[1],10),d=c[2];u!==0&&(Vn(d,u),Yn(e,d,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Kt=function(e){for(var t=document.querySelectorAll(Gn),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(me)!==hr&&(Un(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Kn(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var vr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(l){var c=Array.from(l.querySelectorAll("style[".concat(me,"]")));return c[c.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(me,hr),n.setAttribute(fr,it);var a=Kn();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},qn=function(){function e(t){this.element=vr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw Ee(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Xn=function(){function e(t){this.element=vr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Jn=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),qt=et,Zn={isServer:!et,useCSSOMInjection:!kn},wr=function(){function e(t,r,n){t===void 0&&(t=Se),r===void 0&&(r={});var o=this;this.options=F(F({},Zn),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&et&&qt&&(qt=!1,Kt(this)),Et(this,function(){return function(i){for(var a=i.getTag(),l=a.length,c="",u=function(h){var m=function(y){return tt.get(y)}(h);if(m===void 0)return"continue";var p=i.names.get(m),g=a.getGroup(h);if(p===void 0||!p.size||g.length===0)return"continue";var x="".concat(me,".g").concat(h,'[id="').concat(m,'"]'),C="";p!==void 0&&p.forEach(function(y){y.length>0&&(C+="".concat(y,","))}),c+="".concat(g).concat(x,'{content:"').concat(C,'"}').concat(Ct)},d=0;d<l;d++)u(d);return c}(o)})}return e.registerId=function(t){return Ye(t)},e.prototype.rehydrate=function(){!this.server&&et&&Kt(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(F(F({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Jn(o):n?new qn(o):new Xn(o)}(this.options),new Nn(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Ye(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Ye(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ye(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Qn=/&/g,eo=/^\s*\/\/.*$/gm;function Sr(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Sr(r.children,t)),r})}function to(e){var t,r,n,o=Se,i=o.options,a=i===void 0?Se:i,l=o.plugins,c=l===void 0?at:l,u=function(m,p,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(t):m},d=c.slice();d.push(function(m){m.type===rt&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Qn,r).replace(n,u))}),a.prefix&&d.push(wn),d.push($n);var h=function(m,p,g,x){p===void 0&&(p=""),g===void 0&&(g=""),x===void 0&&(x="&"),t=x,r=p,n=new RegExp("\\".concat(r,"\\b"),"g");var C=m.replace(eo,""),y=bn(g||p?"".concat(g," ").concat(p," { ").concat(C," }"):C);a.namespace&&(y=Sr(y,a.namespace));var v=[];return Qe(y,yn(d.concat(vn(function(j){return v.push(j)})))),v};return h.hash=c.length?c.reduce(function(m,p){return p.name||Ee(15),ue(m,p.name)},pr).toString():"",h}var ro=new wr,vt=to(),kr=b.createContext({shouldForwardProp:void 0,styleSheet:ro,stylis:vt});kr.Consumer;b.createContext(void 0);function Xt(){return b.useContext(kr)}var Jt=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=vt);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Et(this,function(){throw Ee(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=vt),this.name+t.hash},e}(),no=function(e){return e>="A"&&e<="Z"};function Zt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;no(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Cr=function(e){return e==null||e===!1||e===""},jr=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Cr(i)&&(Array.isArray(i)&&i.isCss||ke(i)?n.push("".concat(Zt(o),":"),i,";"):Ce(i)?n.push.apply(n,ye(ye(["".concat(o," {")],jr(i),!1),["}"],!1)):n.push("".concat(Zt(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Sn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function pe(e,t,r,n){if(Cr(e))return[];if(jt(e))return[".".concat(e.styledComponentId)];if(ke(e)){if(!ke(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Jt||Ce(o)||o===null||console.error("".concat(gr(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.")),pe(o,t,r,n)}var i;return e instanceof Jt?r?(e.inject(r,n),[e.getName(n)]):[e]:Ce(e)?jr(e):Array.isArray(e)?Array.prototype.concat.apply(at,e.map(function(a){return pe(a,t,r,n)})):[e.toString()]}function oo(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ke(r)&&!jt(r))return!1}return!0}var so=mr(it),io=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&oo(t),this.componentId=r,this.baseHash=ue(so,r),this.baseStyle=n,wr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=he(o,this.staticRulesId);else{var i=Ut(pe(this.rules,t,r,n)),a=$t(ue(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var l=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,l)}o=he(o,a),this.staticRulesId=a}else{for(var c=ue(this.baseHash,n.hash),u="",d=0;d<this.rules.length;d++){var h=this.rules[d];if(typeof h=="string")u+=h,process.env.NODE_ENV!=="production"&&(c=ue(c,h));else if(h){var m=Ut(pe(h,t,r,n));c=ue(c,m+d),u+=m}}if(u){var p=$t(c>>>0);r.hasNameForId(this.componentId,p)||r.insertRules(this.componentId,p,n(u,".".concat(p),void 0,this.componentId)),o=he(o,p)}}return o},e}(),Er=b.createContext(void 0);Er.Consumer;var pt={},Qt=new Set;function ao(e,t,r){var n=jt(e),o=e,i=!ft(e),a=t.attrs,l=a===void 0?at:a,c=t.componentId,u=c===void 0?function(z,I){var E=typeof z!="string"?"sc":Ft(z);pt[E]=(pt[E]||0)+1;var $="".concat(E,"-").concat(zn(it+E+pt[E]));return I?"".concat(I,"-").concat($):$}(t.displayName,t.parentComponentId):c,d=t.displayName,h=d===void 0?function(z){return ft(z)?"styled.".concat(z):"Styled(".concat(gr(z),")")}(e):d,m=t.displayName&&t.componentId?"".concat(Ft(t.displayName),"-").concat(t.componentId):t.componentId||u,p=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,g=t.shouldForwardProp;if(n&&o.shouldForwardProp){var x=o.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;g=function(z,I){return x(z,I)&&C(z,I)}}else g=x}var y=new io(r,m,n?o.componentStyle:void 0);function v(z,I){return function(E,$,L){var W=E.attrs,oe=E.componentStyle,X=E.defaultProps,se=E.foldedComponentIds,J=E.styledComponentId,ze=E.target,Ne=b.useContext(Er),Fe=Xt(),be=E.shouldForwardProp||Fe.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(J);var Re=jn($,Ne,X)||Se,Y=function(D,ee,ie){for(var B,N=F(F({},ee),{className:void 0,theme:ie}),de=0;de<D.length;de+=1){var xe=ke(B=D[de])?B(N):B;for(var ae in xe)N[ae]=ae==="className"?he(N[ae],xe[ae]):ae==="style"?F(F({},N[ae]),xe[ae]):xe[ae]}return ee.className&&(N.className=he(N.className,ee.className)),N}(W,$,Re),f=Y.as||ze,S={};for(var R in Y)Y[R]===void 0||R[0]==="$"||R==="as"||R==="theme"&&Y.theme===Re||(R==="forwardedAs"?S.as=Y.forwardedAs:be&&!be(R,f)||(S[R]=Y[R],be||process.env.NODE_ENV!=="development"||nn(R)||Qt.has(R)||!xt.has(f)||(Qt.add(R),console.warn('styled-components: it looks like an unknown prop "'.concat(R,'" 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 P=function(D,ee){var ie=Xt(),B=D.generateAndInjectStyles(ee,ie.styleSheet,ie.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(B),B}(oe,Y);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(P);var U=he(se,J);return P&&(U+=" "+P),Y.className&&(U+=" "+Y.className),S[ft(f)&&!xt.has(f)?"class":"className"]=U,L&&(S.ref=L),b.createElement(f,S)}(j,z,I)}v.displayName=h;var j=b.forwardRef(v);return j.attrs=p,j.componentStyle=y,j.displayName=h,j.shouldForwardProp=g,j.foldedComponentIds=n?he(o.foldedComponentIds,o.styledComponentId):"",j.styledComponentId=m,j.target=n?o.target:e,Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(z){this._foldedDefaultProps=n?function(I){for(var E=[],$=1;$<arguments.length;$++)E[$-1]=arguments[$];for(var L=0,W=E;L<W.length;L++)yt(I,W[L],!0);return I}({},o.defaultProps,z):z}}),process.env.NODE_ENV!=="production"&&(Cn(h,m),j.warnTooManyClasses=function(z,I){var E={},$=!1;return function(L){if(!$&&(E[L]=!0,Object.keys(E).length>=200)){var W=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(z).concat(W,`.
|
|
76
69
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
77
70
|
Example:
|
|
78
71
|
const Component = styled.div.attrs(props => ({
|
|
@@ -81,11 +74,11 @@ Example:
|
|
|
81
74
|
},
|
|
82
75
|
}))\`width: 100%;\`
|
|
83
76
|
|
|
84
|
-
<Component />`),$=!0,E={}}}}(
|
|
77
|
+
<Component />`),$=!0,E={}}}}(h,m)),Et(j,function(){return".".concat(j.styledComponentId)}),i&&yr(j,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),j}function er(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var tr=function(e){return Object.assign(e,{isCss:!0})};function co(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ke(e)||Ce(e))return tr(pe(er(at,ye([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?pe(n):tr(pe(er(n,t)))}function wt(e,t,r){if(r===void 0&&(r=Se),!t)throw Ee(1,t);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,co.apply(void 0,ye([o],i,!1)))};return n.attrs=function(o){return wt(e,t,F(F({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return wt(e,t,F(F({},r),o))},n}var Ar=function(e){return wt(ao,e)},w=Ar;xt.forEach(function(e){w[e]=Ar(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
85
78
|
Perhaps you're looking to import 'styled-components/native'?
|
|
86
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
79
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ue="__sc-".concat(me,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ue]||(window[Ue]=0),window[Ue]===1&&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.
|
|
87
80
|
|
|
88
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
81
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Ae=`
|
|
89
82
|
animation: fadeIn ease 400ms;
|
|
90
83
|
-webkit-animation: fadeIn ease 400ms;
|
|
91
84
|
-moz-animation: fadeIn ease 400ms;
|
|
@@ -116,7 +109,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
116
109
|
opacity: 1;
|
|
117
110
|
}
|
|
118
111
|
}
|
|
119
|
-
`,
|
|
112
|
+
`,Ir=`
|
|
120
113
|
animation: fadeOut ease 400ms;
|
|
121
114
|
-webkit-animation: fadeOut ease 400ms;
|
|
122
115
|
-moz-animation: fadeOut ease 400ms;
|
|
@@ -147,7 +140,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
147
140
|
opacity: 0;
|
|
148
141
|
}
|
|
149
142
|
}
|
|
150
|
-
`,
|
|
143
|
+
`,lo=Object.freeze({phones:"only screen and (max-width: 600px)",portraitTablets:"only screen and (min-width: 600px)",landscapeTablets:"only screen and (min-width: 768px)",laptops:"only screen and (min-width: 992px)",desktops:"only screen and (min-width: 1200px)"}),uo={fontColorBase:"hsl(0, 0%, 24%)",fontColorLight:"hsl(0, 0%, 62%)",fontColorAccent:"hsl(345, 100%, 47%)",backgroundColorBase:"hsl(0, 0%, 100%)",backgroundColorLight:"hsl(0, 0%, 95%)",backgroundColorTransparent:"hsla(0, 0%, 0%, 0.3)",gradientShadow:"linear-gradient(to left, hsl(340deg 100% 16%) 0%, hsl(340deg 100% 32%) 8%, hsl(340deg 100% 32%) 92%, hsl(340deg 100% 16%) 100%)",fontFamilyCore:"Arial, Helvetica, sans-serif",fontFamilyMonospace:"'Courier New', Courier, monospace",fontSizeBase:"1.2rem",fontSizeSmall:"0.8rem",fontSizeHeader:"2rem",gapSmall:"0.25rem",gapMedium:"0.6rem",gapBig:"1rem",iconSize:"1.2rem",blockBorderRadius:"0.25rem",boxShadow:"hsla(0, 0%, 0%, 0.15) 2.4px 2.4px 3.2px",textShadow:"2.4px 2.4px 3.2px hsla(0, 0%, 0%, 0.3)",borderBase:"1px solid hsl(0, 0%, 84%)",borderLight:"1px solid hsl(0, 0%, 89%)",borderAccent:"1px solid hsl(345, 100%, 47%)",borderOutline:"1px solid hsl(0, 0%, 24%)",zIndexBase:"1",zIndexPopup:"100",zIndexModal:"200"},ho={fontColorBase:"hsl(0, 0%, 100%)",fontColorLight:"hsl(0, 0%, 92%)",fontColorAccent:"hsl(16, 82%, 52%)",backgroundColorBase:"hsl(0, 0%, 17%)",backgroundColorLight:"hsl(0, 0%, 24%)",backgroundColorTransparent:"hsla(0, 0%, 92%, 0.3)",gradientShadow:"linear-gradient(to left, hsl(16, 86%, 26%) 0%, hsl(16, 86%, 30%) 8%, hsl(16, 86%, 30%) 92%, hsl(16, 86%, 26%) 100%)",fontFamilyCore:"Arial, Helvetica, sans-serif",fontFamilyMonospace:"'Courier New', Courier, monospace",fontSizeBase:"1.2rem",fontSizeSmall:"0.8rem",fontSizeHeader:"2rem",gapSmall:"0.25rem",gapMedium:"0.6rem",gapBig:"1rem",iconSize:"1.2rem",blockBorderRadius:"0.25rem",boxShadow:"hsla(0, 0%, 92%, 0.15) 2.4px 2.4px 3.2px",textShadow:"2.4px 2.4px 3.2px hsla(0, 0%, 92%, 0.3)",borderBase:"1px solid hsl(0, 0%, 11%)",borderLight:"1px solid hsl(0, 0%, 29%)",borderAccent:"1px solid hsl(16, 82%, 52%)",borderOutline:"1px solid hsl(0, 0%, 100%)",zIndexBase:"1",zIndexPopup:"100",zIndexModal:"200"},fo=w.span`
|
|
151
144
|
display: ${({$visible:e})=>e?"block":"none"};
|
|
152
145
|
position: absolute;
|
|
153
146
|
max-width: 100%;
|
|
@@ -165,8 +158,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
165
158
|
box-shadow: ${e=>e.$theme.boxShadow};
|
|
166
159
|
pointer-events: none;
|
|
167
160
|
|
|
168
|
-
${
|
|
169
|
-
`,Wt=({errorId:e,testId:t,message:r="Invalid input",visible:n=!1,style:o,theme:i})=>s.jsx(Oo,{id:e,$visible:n,"data-testid":t,style:o,$theme:i,"aria-hidden":!n,children:r});function Yt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z"})]})}function Ut({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z"})]})}function _o({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M328 112L184 256l144 144"})]})}function Po({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 470 1000",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M452 656c12 12 18 26.333 18 43s-6 31-18 43c-12 10.667-26.333 16-43 16s-31-5.333-43-16L234 590 102 742c-12 10.667-26.333 16-43 16s-31-5.333-43-16C5.333 730 0 715.667 0 699s5.333-31 16-43l138-156L16 342C5.333 330 0 315.667 0 299s5.333-31 16-43c12-10.667 26.333-16 43-16s31 5.333 43 16l132 152 132-152c12-10.667 26.333-16 43-16s31 5.333 43 16c12 12 18 26.333 18 43s-6 31-18 43L314 500l138 156"})]})}function wt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"currentColor",d:"M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 12.414L3.293 8.707l1.414-1.414L7 9.586l4.793-4.793 1.414 1.414L7 12.414z"})]})}function St({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"currentColor",d:"M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z"})]})}function Kt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"})]})}function Do({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M1.553 6.776a.5.5 0 01.67-.223L8 9.44l5.776-2.888a.5.5 0 11.448.894l-6 3a.5.5 0 01-.448 0l-6-3a.5.5 0 01-.223-.67z"})]})}function No({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M9.224 1.553a.5.5 0 01.223.67L6.56 8l2.888 5.776a.5.5 0 11-.894.448l-3-6a.5.5 0 010-.448l3-6a.5.5 0 01.67-.223z"})]})}function Ho({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M6.776 1.553a.5.5 0 01.671.223l3 6a.5.5 0 010 .448l-3 6a.5.5 0 11-.894-.448L9.44 8 6.553 2.224a.5.5 0 01.223-.671z"})]})}function Fo({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M7.776 5.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L8 6.56 2.224 9.447a.5.5 0 11-.448-.894l6-3z"})]})}function Vo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("defs",{children:s.jsx("style",{})}),s.jsx("path",{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"})]})}function Go({title:e,...t}){return s.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M11 9 H20 A2 2 0 0 1 22 11 V20 A2 2 0 0 1 20 22 H11 A2 2 0 0 1 9 20 V11 A2 2 0 0 1 11 9 z"}),s.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}function Wo({title:e,...t}){return s.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{stroke:"none",d:"M0 0h24v24H0z"}),s.jsx("path",{d:"M10 17 A3 3 0 0 1 7 20 A3 3 0 0 1 4 17 A3 3 0 0 1 10 17 z"}),s.jsx("path",{d:"M20 17 A3 3 0 0 1 17 20 A3 3 0 0 1 14 17 A3 3 0 0 1 20 17 z"}),s.jsx("path",{d:"M9.15 14.85L18 4M6 4l8.85 10.85"})]})}function Yo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})]})}function Uo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})]})}function Zr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),s.jsx("path",{d:"M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z"})]})}function Ko({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})]})}const qo=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 448 512",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M219.3.5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9V160c0 70.7-57.3 128-128 128S96 230.7 96 160v-57.1l-48-9.6v65.1l15.7 78.4c.9 4.7-.3 9.6-3.3 13.3S52.8 256 48 256H16c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4V86.6C6.5 83.3 0 74.3 0 64c0-11.4 8.1-21.3 19.3-23.5l200-40zM111.9 327.7c10.5-3.4 21.8.4 29.4 8.5l71 75.5c6.3 6.7 17 6.7 23.3 0l71-75.5c7.6-8.1 18.9-11.9 29.4-8.5 65 20.9 112 81.7 112 153.6 0 17-13.8 30.7-30.7 30.7H30.7C13.8 512 0 498.2 0 481.3c0-71.9 47-132.7 111.9-153.6z"})]});function Qr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z"})]})}function Xo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 011.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 000 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 000-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558l-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0112 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z"})]})}const Jo=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M946.5 505 560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"})]});function en({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),s.jsx("path",{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"})]})}const Zo=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"})]});function Qo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M20 11V5c0-1.103-.897-2-2-2h-3a1 1 0 00-1-1H8a1 1 0 00-1 1H4c-1.103 0-2 .897-2 2v13c0 1.103.897 2 2 2h7c0 1.103.897 2 2 2h7c1.103 0 2-.897 2-2v-7c0-1.103-.897-2-2-2zm-9 2v5H4V5h3v2h8V5h3v6h-5c-1.103 0-2 .897-2 2zm2 7v-7h7l.001 7H13z"})]})}function es({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 80a176 176 0 10176 176A176 176 0 00256 80z"}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:28,d:"M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296"}),s.jsx("path",{d:"M270 348 A20 20 0 0 1 250 368 A20 20 0 0 1 230 348 A20 20 0 0 1 270 348 z"})]})}function ts({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,d:"M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z"}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33"})]})}function rs({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})]})}function ns({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M12 9a3.02 3.02 0 00-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z"}),s.jsx("path",{d:"M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z"})]})}function os({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M.5 9.9a.5.5 0 01.5.5v2.5a1 1 0 001 1h12a1 1 0 001-1v-2.5a.5.5 0 011 0v2.5a2 2 0 01-2 2H2a2 2 0 01-2-2v-2.5a.5.5 0 01.5-.5z"}),s.jsx("path",{d:"M7.646 1.146a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 2.707V11.5a.5.5 0 01-1 0V2.707L5.354 4.854a.5.5 0 11-.708-.708l3-3z"})]})}function tn({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),s.jsx("path",{d:"M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z"})]})}var q=(e=>(e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Help="help",e))(q||{}),ue=(e=>(e.Primary="primary",e.Flat="flat",e.Icon="icon",e))(ue||{}),j=(e=>(e.ArrowDown="arrow-down",e.ArrowUp="arrow-up",e.Back="back",e.Cancel="cancel",e.CheckboxChecked="checkbox-checked",e.CheckboxUnchecked="checkbox-unchecked",e.CheckMark="check-mark",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.ChevronUp="chevron-up",e.Clear="clear",e.Copy="copy",e.Cut="cut",e.Delete="delete",e.Download="download",e.Error="error",e.Forward="forward",e.Graduate="graduate",e.Help="help",e.Hide="hide",e.Home="home",e.Info="info",e.Login="login",e.Paste="paste",e.Question="question",e.Save="save",e.Show="show",e.Upload="upload",e.Warning="warning",e.Remove="remove",e))(j||{}),rn=(e=>(e.Dots="dots",e.Brackets="brackets",e.Linear="linear",e.Square="square",e.Circle="circle",e.Pulse="pulse",e.Arrow="arrow",e.Filler="filler",e.Rotation="rotation",e))(rn||{}),V=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(V||{}),qt=(e=>(e.Light="light",e.Dark="dark",e))(qt||{}),Xt=(e=>(e.Span="span",e.Div="div",e.P="p",e.Strong="strong",e.Em="em",e))(Xt||{});const ss={[j.ArrowDown]:Yt,[j.ArrowUp]:Ut,[j.Back]:_o,[j.Cancel]:Po,[j.CheckboxChecked]:wt,[j.CheckboxUnchecked]:St,[j.CheckMark]:Kt,[j.ChevronDown]:Do,[j.ChevronUp]:Fo,[j.ChevronLeft]:No,[j.ChevronRight]:Ho,[j.Clear]:Vo,[j.Copy]:Go,[j.Cut]:Wo,[j.Delete]:Yo,[j.Download]:Uo,[j.Error]:Zr,[j.Forward]:Ko,[j.Graduate]:qo,[j.Help]:Qr,[j.Hide]:Xo,[j.Home]:Jo,[j.Info]:en,[j.Login]:Zo,[j.Paste]:Qo,[j.Question]:es,[j.Save]:rs,[j.Show]:ns,[j.Upload]:os,[j.Warning]:tn,[j.Remove]:ts},ne=({name:e,testId:t,...r})=>{if(!e)return null;const n=ss[e];return s.jsx(n,{"data-testid":t,...r})},is=k.button`
|
|
161
|
+
${Ae}
|
|
162
|
+
`,At=({errorId:e,testId:t,message:r="Invalid input",visible:n=!1,style:o,theme:i})=>s.jsx(fo,{id:e,$visible:n,"data-testid":t,style:o,$theme:i,"aria-hidden":!n,children:r});function It({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z"})]})}function zt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z"})]})}function po({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M328 112L184 256l144 144"})]})}function mo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 470 1000",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M452 656c12 12 18 26.333 18 43s-6 31-18 43c-12 10.667-26.333 16-43 16s-31-5.333-43-16L234 590 102 742c-12 10.667-26.333 16-43 16s-31-5.333-43-16C5.333 730 0 715.667 0 699s5.333-31 16-43l138-156L16 342C5.333 330 0 315.667 0 299s5.333-31 16-43c12-10.667 26.333-16 43-16s31 5.333 43 16l132 152 132-152c12-10.667 26.333-16 43-16s31 5.333 43 16c12 12 18 26.333 18 43s-6 31-18 43L314 500l138 156"})]})}function ct({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"currentColor",d:"M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 12.414L3.293 8.707l1.414-1.414L7 9.586l4.793-4.793 1.414 1.414L7 12.414z"})]})}function lt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"currentColor",d:"M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z"})]})}function Rt({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"})]})}function go({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M1.553 6.776a.5.5 0 01.67-.223L8 9.44l5.776-2.888a.5.5 0 11.448.894l-6 3a.5.5 0 01-.448 0l-6-3a.5.5 0 01-.223-.67z"})]})}function bo({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M9.224 1.553a.5.5 0 01.223.67L6.56 8l2.888 5.776a.5.5 0 11-.894.448l-3-6a.5.5 0 010-.448l3-6a.5.5 0 01.67-.223z"})]})}function xo({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M6.776 1.553a.5.5 0 01.671.223l3 6a.5.5 0 010 .448l-3 6a.5.5 0 11-.894-.448L9.44 8 6.553 2.224a.5.5 0 01.223-.671z"})]})}function $o({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fillRule:"evenodd",d:"M7.776 5.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L8 6.56 2.224 9.447a.5.5 0 11-.448-.894l6-3z"})]})}function yo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("defs",{children:s.jsx("style",{})}),s.jsx("path",{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"})]})}function vo({title:e,...t}){return s.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M11 9 H20 A2 2 0 0 1 22 11 V20 A2 2 0 0 1 20 22 H11 A2 2 0 0 1 9 20 V11 A2 2 0 0 1 11 9 z"}),s.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}function wo({title:e,...t}){return s.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{stroke:"none",d:"M0 0h24v24H0z"}),s.jsx("path",{d:"M10 17 A3 3 0 0 1 7 20 A3 3 0 0 1 4 17 A3 3 0 0 1 10 17 z"}),s.jsx("path",{d:"M20 17 A3 3 0 0 1 17 20 A3 3 0 0 1 14 17 A3 3 0 0 1 20 17 z"}),s.jsx("path",{d:"M9.15 14.85L18 4M6 4l8.85 10.85"})]})}function So({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})]})}function ko({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})]})}function zr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),s.jsx("path",{d:"M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z"})]})}function Co({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})]})}const jo=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 448 512",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M219.3.5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9V160c0 70.7-57.3 128-128 128S96 230.7 96 160v-57.1l-48-9.6v65.1l15.7 78.4c.9 4.7-.3 9.6-3.3 13.3S52.8 256 48 256H16c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4V86.6C6.5 83.3 0 74.3 0 64c0-11.4 8.1-21.3 19.3-23.5l200-40zM111.9 327.7c10.5-3.4 21.8.4 29.4 8.5l71 75.5c6.3 6.7 17 6.7 23.3 0l71-75.5c7.6-8.1 18.9-11.9 29.4-8.5 65 20.9 112 81.7 112 153.6 0 17-13.8 30.7-30.7 30.7H30.7C13.8 512 0 498.2 0 481.3c0-71.9 47-132.7 111.9-153.6z"})]});function Rr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z"})]})}function Eo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 011.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 000 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 000-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558l-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0112 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z"})]})}const Ao=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M946.5 505 560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"})]});function Mr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),s.jsx("path",{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"})]})}const Io=({title:e,...t})=>s.jsxs("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"})]});function zo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M20 11V5c0-1.103-.897-2-2-2h-3a1 1 0 00-1-1H8a1 1 0 00-1 1H4c-1.103 0-2 .897-2 2v13c0 1.103.897 2 2 2h7c0 1.103.897 2 2 2h7c1.103 0 2-.897 2-2v-7c0-1.103-.897-2-2-2zm-9 2v5H4V5h3v2h8V5h3v6h-5c-1.103 0-2 .897-2 2zm2 7v-7h7l.001 7H13z"})]})}function Ro({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:10,strokeWidth:32,d:"M256 80a176 176 0 10176 176A176 176 0 00256 80z"}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:28,d:"M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296"}),s.jsx("path",{d:"M270 348 A20 20 0 0 1 250 368 A20 20 0 0 1 230 348 A20 20 0 0 1 270 348 z"})]})}function Mo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:32,d:"M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z"}),s.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33"})]})}function To({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})]})}function Bo({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M12 9a3.02 3.02 0 00-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z"}),s.jsx("path",{d:"M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z"})]})}function Lo({title:e,...t}){return s.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{d:"M.5 9.9a.5.5 0 01.5.5v2.5a1 1 0 001 1h12a1 1 0 001-1v-2.5a.5.5 0 011 0v2.5a2 2 0 01-2 2H2a2 2 0 01-2-2v-2.5a.5.5 0 01.5-.5z"}),s.jsx("path",{d:"M7.646 1.146a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 2.707V11.5a.5.5 0 01-1 0V2.707L5.354 4.854a.5.5 0 11-.708-.708l3-3z"})]})}function Tr({title:e,...t}){return s.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...t,children:[e&&s.jsx("title",{children:e}),s.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),s.jsx("path",{d:"M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z"})]})}var G=(e=>(e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Help="help",e))(G||{}),re=(e=>(e.Primary="primary",e.Flat="flat",e.Icon="icon",e))(re||{}),k=(e=>(e.ArrowDown="arrow-down",e.ArrowUp="arrow-up",e.Back="back",e.Cancel="cancel",e.CheckboxChecked="checkbox-checked",e.CheckboxUnchecked="checkbox-unchecked",e.CheckMark="check-mark",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.ChevronUp="chevron-up",e.Clear="clear",e.Copy="copy",e.Cut="cut",e.Delete="delete",e.Download="download",e.Error="error",e.Forward="forward",e.Graduate="graduate",e.Help="help",e.Hide="hide",e.Home="home",e.Info="info",e.Login="login",e.Paste="paste",e.Question="question",e.Save="save",e.Show="show",e.Upload="upload",e.Warning="warning",e.Remove="remove",e))(k||{}),Br=(e=>(e.Dots="dots",e.Brackets="brackets",e.Linear="linear",e.Square="square",e.Circle="circle",e.Pulse="pulse",e.Arrow="arrow",e.Filler="filler",e.Rotation="rotation",e))(Br||{}),H=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(H||{}),Mt=(e=>(e.Light="light",e.Dark="dark",e))(Mt||{}),Tt=(e=>(e.Span="span",e.Div="div",e.P="p",e.Strong="strong",e.Em="em",e))(Tt||{});const Po={[k.ArrowDown]:It,[k.ArrowUp]:zt,[k.Back]:po,[k.Cancel]:mo,[k.CheckboxChecked]:ct,[k.CheckboxUnchecked]:lt,[k.CheckMark]:Rt,[k.ChevronDown]:go,[k.ChevronUp]:$o,[k.ChevronLeft]:bo,[k.ChevronRight]:xo,[k.Clear]:yo,[k.Copy]:vo,[k.Cut]:wo,[k.Delete]:So,[k.Download]:ko,[k.Error]:zr,[k.Forward]:Co,[k.Graduate]:jo,[k.Help]:Rr,[k.Hide]:Eo,[k.Home]:Ao,[k.Info]:Mr,[k.Login]:Io,[k.Paste]:zo,[k.Question]:Ro,[k.Save]:To,[k.Show]:Bo,[k.Upload]:Lo,[k.Warning]:Tr,[k.Remove]:Mo},Q=({name:e,testId:t,...r})=>{if(!e)return null;const n=Po[e];return s.jsx(n,{"data-testid":t,...r})},_o=w.button`
|
|
170
163
|
background: transparent;
|
|
171
164
|
border: none;
|
|
172
165
|
display: flex;
|
|
@@ -194,7 +187,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
194
187
|
pointer-events: none;
|
|
195
188
|
opacity: 0.5;
|
|
196
189
|
}
|
|
197
|
-
`,
|
|
190
|
+
`,Pe=({onClick:e,label:t,icon:r,disabled:n,theme:o})=>s.jsx(_o,{onClick:e,"aria-label":t,type:"button",disabled:n,$theme:o,children:s.jsx(Q,{name:r})}),Oo=w.label`
|
|
198
191
|
display: flex;
|
|
199
192
|
align-items: center;
|
|
200
193
|
font-size: ${e=>e.$theme.fontSizeSmall};
|
|
@@ -218,7 +211,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
218
211
|
color: ${e=>e.$theme.fontColorAccent};
|
|
219
212
|
margin-left: ${e=>e.$theme.gapSmall};
|
|
220
213
|
}
|
|
221
|
-
`,
|
|
214
|
+
`,ge=({label:e,required:t,inputId:r,theme:n,icon:o,iconPosition:i,isTextHidden:a=!1,style:l})=>{const c=!!o&&i==="left",u=!!o&&i==="right";return s.jsxs(Oo,{htmlFor:r,style:l,$theme:n,children:[c&&o,!a&&s.jsxs("span",{children:[e,t&&s.jsx("abbr",{title:"required",children:"*"})]}),u&&o]})};function Do(e){return({tooltip:t,visibleOn:r,...n})=>t!=null&&t.length?s.jsx(Wr,{tooltipContent:t,visibleOn:r,children:s.jsx(e,{...n})}):s.jsx(e,{...n})}const le=b.createContext({}),Lr=b.createContext({mode:Mt.Light});function Ho(e,t){const r=e==="dark"?ho:uo;if(t)for(const n in t){const o=n;Object.prototype.hasOwnProperty.call(r,o)&&(r[o]=t[o].toString())}return r}function _e(e){const t=document.getElementById(e);t&&t.focus()}function Pr({e,options:t,onClose:r}){let n="";t.forEach(i=>{document.getElementById(i.id)===document.activeElement&&(n=i.id)});const o=t.findIndex(i=>i.id===n);switch(e.key){case"Escape":e.preventDefault(),r();break;case"ArrowUp":{e.preventDefault();const i=o-1>=0?o-1:t.length-1,a=t[i];a&&_e(a.id);break}case"ArrowDown":case"Tab":{e.preventDefault();const i=o===t.length-1?0:o+1,a=t[i];a&&_e(a.id);break}}}const V=()=>{const{customTheme:e,mode:t}=b.useContext(Lr);return Ho(t,e)},De=({ref:e,onClickOutsideHandler:t,dependentRef:r})=>{b.useEffect(()=>{const n=o=>{const i=(e==null?void 0:e.current)&&!e.current.contains(o.target),a=r!=null&&r.current?!r.current.contains(o.target):!0;i&&a&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,r,t])},_r=({ref:e,isVisible:t})=>{const[r,n]=b.useState({width:0,height:0});return b.useEffect(()=>{e!=null&&e.current&&t&&n({width:e.current.offsetWidth,height:e.current.offsetHeight})},[e,t]),r};function ne(e){const t=b.useId(),r=e??t,n=`${r}_error`,o=`${r}_dropdown`;return{elementId:r,errorId:n,dropdownId:o}}const He=({ref:e,keyCode:t,onKeyPress:r})=>{b.useEffect(()=>{const n=o=>{(o==null?void 0:o.code)===t&&(e!=null&&e.current)&&r()};return document.addEventListener("keydown",n,!1),()=>{document.removeEventListener("keydown",n,!1)}},[e,t,r])},Or=({modalRef:e,isOpened:t})=>{b.useEffect(()=>{const r=e.current;if(!t||!r)return;const n=r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=n[0],i=n[n.length-1],a=l=>{l.key==="Tab"&&(l.shiftKey&&document.activeElement===o?(l.preventDefault(),i.focus()):!l.shiftKey&&document.activeElement===i&&(l.preventDefault(),o.focus()))};return r.addEventListener("keydown",a),()=>{r.removeEventListener("keydown",a)}},[e,t])},Bt=(e,t=300)=>{const[r,n]=b.useState(!1);return b.useEffect(()=>{e&&!r?n(!0):!e&&r&&setTimeout(()=>{n(!1)},t)},[e]),r},Ie=e=>{const{resetSignal:t}=b.useContext(le);b.useEffect(()=>{t&&e()},[t,e])};function rr(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function Dr(){const[e,t]=b.useState(rr());return b.useEffect(()=>{function r(){t(rr())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e}const Hr=({wrapperRef:e,tooltipRef:t,isOpened:r,spacing:n=4})=>{const[o,i]=b.useState({top:0,left:0}),{width:a,height:l}=_r({ref:t,isVisible:r}),{width:c,height:u}=Dr();return b.useEffect(()=>{if(r&&(e!=null&&e.current)){const d=e==null?void 0:e.current.getBoundingClientRect();let h=Math.round(d.bottom+n),m=Math.round(d.left);h+l>window.innerHeight&&(h=Math.round(d.top-l-n)),m+a>window.innerWidth&&(m=Math.round(window.innerWidth-a-n)),m<0&&(m=n),i({top:h,left:m})}},[r,e,l,a,n,c,u]),o},No=w.button`
|
|
222
215
|
position: relative;
|
|
223
216
|
border: none;
|
|
224
217
|
background: transparent;
|
|
@@ -301,7 +294,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
301
294
|
outline: ${e=>e.$theme.borderOutline};
|
|
302
295
|
outline-offset: 4px;
|
|
303
296
|
}
|
|
304
|
-
`,
|
|
297
|
+
`,Fo=w.button`
|
|
305
298
|
border: none;
|
|
306
299
|
cursor: pointer;
|
|
307
300
|
display: flex;
|
|
@@ -330,7 +323,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
330
323
|
pointer-events: none;
|
|
331
324
|
opacity: 0.5;
|
|
332
325
|
}
|
|
333
|
-
`,
|
|
326
|
+
`,Vo=w.button`
|
|
334
327
|
border: none;
|
|
335
328
|
cursor: pointer;
|
|
336
329
|
display: flex;
|
|
@@ -361,7 +354,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
361
354
|
height: ${e=>e.$theme.iconSize};
|
|
362
355
|
width: ${e=>e.$theme.iconSize};
|
|
363
356
|
}
|
|
364
|
-
`,
|
|
357
|
+
`,Go=({onClick:e,text:t,icon:r,label:n,disabled:o=!1,extended:i=!1,type:a="button",view:l=re.Primary,...c})=>{const u=V();switch(l){case re.Primary:return s.jsxs(No,{$extended:i,"aria-label":n,type:a,onClick:e,disabled:o,$theme:u,...c,children:[s.jsx("span",{className:"chop-logic-button_shadow"}),s.jsx("span",{className:"chop-logic-button_edge"}),s.jsxs("span",{className:"chop-logic-button_front",children:[s.jsx(Q,{name:r}),t]})]});case re.Flat:return s.jsxs(Fo,{$extended:i,"aria-label":n,type:a,onClick:e,disabled:o,$theme:u,...c,children:[s.jsx(Q,{name:r}),t]});case re.Icon:return s.jsx(Vo,{"aria-label":n,type:a,onClick:e,disabled:o,$theme:u,...c,children:s.jsx(Q,{name:r})});default:return null}},Oe=Do(Go),Wo=w.div`
|
|
365
358
|
display: flex;
|
|
366
359
|
gap: ${e=>e.$theme.gapMedium};
|
|
367
360
|
padding: ${e=>e.$theme.gapMedium} 0;
|
|
@@ -400,14 +393,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
400
393
|
outline-offset: 2px;
|
|
401
394
|
}
|
|
402
395
|
}
|
|
403
|
-
`;function
|
|
396
|
+
`;function Yo({defaultChecked:e,initialValues:t,name:r}){return t&&(t==null?void 0:t[r])!==void 0?!!(t!=null&&t[r]):!!e}function Uo({name:e,defaultChecked:t,onChange:r}){const{onChangeFormInput:n,initialValues:o}=b.useContext(le),i=Yo({initialValues:o,name:e,defaultChecked:t}),[a,l]=b.useState(i),c=d=>{const h=d.target.checked;l(h),r==null||r(d),n==null||n({name:e,value:h})},u=b.useCallback(()=>{l(i),n==null||n({name:e,value:i})},[e]);return Ie(u),{handleChange:c,checked:a}}const Ko=({name:e,label:t,disabled:r,noLabel:n,required:o=!1,iconPosition:i="left",defaultChecked:a,onChange:l,id:c,...u})=>{const{handleChange:d,checked:h}=Uo({name:e,defaultChecked:a,onChange:l}),{elementId:m}=ne(c),p=V();return s.jsxs(Wo,{$disabled:!!r,$theme:p,$checked:h,...u,children:[s.jsx("input",{id:m,name:e,type:"checkbox",disabled:r,required:o,checked:h,onChange:d,"aria-label":n?t:void 0}),s.jsx(ge,{label:t,required:o,inputId:m,isTextHidden:n,icon:h?s.jsx(ct,{}):s.jsx(lt,{}),iconPosition:i,theme:p})]})},Nr=w.div`
|
|
404
397
|
position: relative;
|
|
405
398
|
display: flex;
|
|
406
399
|
justify-content: space-between;
|
|
407
400
|
flex-direction: column;
|
|
408
401
|
gap: ${e=>e.$theme.gapMedium};
|
|
409
402
|
background: transparent;
|
|
410
|
-
`,
|
|
403
|
+
`,Fr=w.button`
|
|
411
404
|
text-align: left;
|
|
412
405
|
cursor: pointer;
|
|
413
406
|
display: flex;
|
|
@@ -450,7 +443,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
450
443
|
pointer-events: none;
|
|
451
444
|
opacity: 0.5;
|
|
452
445
|
}
|
|
453
|
-
`,
|
|
446
|
+
`,Vr=w.ul`
|
|
454
447
|
visibility: hidden;
|
|
455
448
|
opacity: 0;
|
|
456
449
|
transition:
|
|
@@ -472,7 +465,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
472
465
|
max-height: 180px;
|
|
473
466
|
|
|
474
467
|
${e=>e.$opened&&"visibility: visible; opacity: 1;"}
|
|
475
|
-
`,
|
|
468
|
+
`,Gr=w.li`
|
|
476
469
|
padding: ${e=>e.$theme.gapMedium};
|
|
477
470
|
cursor: pointer;
|
|
478
471
|
display: flex;
|
|
@@ -498,9 +491,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
498
491
|
width: ${e=>e.$theme.iconSize};
|
|
499
492
|
height: ${e=>e.$theme.iconSize};
|
|
500
493
|
}
|
|
501
|
-
`,
|
|
494
|
+
`,qo=w(Gr)`
|
|
502
495
|
justify-content: flex-start;
|
|
503
|
-
`,
|
|
496
|
+
`,Xo=({opened:e,onClick:t,comboboxId:r,dropdownId:n,name:o,placeholder:i,disabled:a,required:l,values:c,theme:u})=>{const d=c==null?void 0:c.filter(p=>p.selected).map(p=>p.label),h=c==null?void 0:c.filter(p=>p.selected).map(p=>p.id);let m=s.jsx("span",{children:i});return d&&d.length>1?m=s.jsx("span",{children:`${d.length} items selected`}):d&&d.length===1&&(m=s.jsx("span",{children:d[0]})),s.jsxs(Fr,{type:"button",name:o,value:h,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":n,id:r,onClick:t,disabled:a,"aria-required":l,$theme:u,children:[m,e?s.jsx(zt,{}):s.jsx(It,{})]})},Jo=({value:e,onSelect:t,theme:r})=>{const{id:n,label:o,selected:i}=e,a=l=>c=>{switch(c.key){case" ":case"SpaceBar":case"Enter":c.preventDefault(),t(l);break}};return s.jsxs(qo,{id:n,role:"option","aria-selected":i,tabIndex:0,onKeyDown:a(n),onClick:()=>t(n),$theme:r,$selected:i,children:[i?s.jsx(ct,{}):s.jsx(lt,{}),s.jsx("span",{children:o})]})},Zo=({options:e,opened:t,onClose:r,onSelect:n,dropdownId:o,theme:i})=>s.jsx(Vr,{$opened:t,role:"listbox",id:o,tabIndex:-1,onKeyDown:a=>Pr({e:a,options:e,onClose:r}),$theme:i,children:e.map(a=>s.jsx(Jo,{value:a,onSelect:()=>n(a.id),theme:i},a.id))});function Qo({name:e,options:t,initialValues:r,defaultValue:n}){return t.map(o=>{let i=!1;return r&&(r!=null&&r[e])&&Array.isArray(r[e])&&r[e].find(l=>l===o.id||(l==null?void 0:l.id)===o.id)&&(i=!0),!(r!=null&&r[e])&&Array.isArray(n)&&n.find(l=>l===o.id)&&(i=!0),{...o,selected:i}})}const nr=e=>e.filter(t=>t.selected).map(t=>t.id),es=(e,t)=>{const r=e.find(n=>n.id===t);return e.map(n=>n.id===t?{...n,selected:!(r!=null&&r.selected)}:n)};function ts({name:e,defaultValue:t,onChange:r,options:n}){const[o,i]=b.useState(!1),{onChangeFormInput:a,initialValues:l}=b.useContext(le),c=Qo({name:e,options:n,initialValues:l,defaultValue:t}),[u,d]=b.useState(c),h=()=>i(!1),m=()=>i(!o),p=x=>{const C=es(u,x);d(C),r==null||r(C),a==null||a({name:e,value:nr(C)})},g=b.useCallback(()=>{i(!1),d(c),a==null||a({name:e,value:nr(c)})},[e]);return Ie(g),{handleClose:h,handleToggle:m,handleSelect:p,opened:o,values:u}}const rs=({options:e,name:t,label:r,required:n=!1,placeholder:o="Not selected",disabled:i=!1,onChange:a,defaultValue:l,id:c,...u})=>{const d=b.useRef(null),{elementId:h,dropdownId:m}=ne(c),p=V(),{handleClose:g,handleSelect:x,handleToggle:C,opened:y,values:v}=ts({name:t,options:e,defaultValue:l,onChange:a});return De({ref:d,onClickOutsideHandler:g}),He({keyCode:"Escape",ref:d,onKeyPress:g}),s.jsxs(Nr,{ref:d,$theme:p,...u,children:[s.jsx(ge,{label:r,required:n,inputId:h,theme:p}),s.jsx(Xo,{name:t,opened:y,comboboxId:h,dropdownId:m,onClick:C,values:v,placeholder:o,disabled:i,required:n,theme:p}),s.jsx(Zo,{theme:p,options:v,opened:y,onClose:g,dropdownId:m,onSelect:x})]})};function ns({name:e,initialValues:t,defaultValue:r}){return t&&t[e]?Number(t[e]):r&&typeof r=="number"?r:0}function os({value:e,required:t,validator:r,maxValue:n,minValue:o}){return t&&!r&&e===void 0?!1:r&&typeof r=="function"?r(e):n&&o&&e&&!r?e<=n&&e>=o:!0}function ss({name:e,defaultValue:t,onChange:r,onSpinButtonClick:n,min:o,max:i,step:a,required:l,validator:c}){const{onChangeFormInput:u,initialValues:d}=b.useContext(le),h=ns({initialValues:d,defaultValue:t,name:e}),m=i?Number(i):Number.MAX_SAFE_INTEGER,p=o?Number(o):Number.MIN_SAFE_INTEGER,[g,x]=b.useState(h),[C,y]=b.useState(!0),v=$=>{x($);const L=os({value:$,required:l,validator:c,maxValue:m,minValue:p});y(L),u==null||u({name:e,value:$,valid:L})},j=$=>{const L=Number($.target.value);v(L),r==null||r($)},z=()=>{v(g+a),n==null||n(g+a)},I=()=>{v(g-a),n==null||n(g-a)},E=b.useCallback(()=>{x(h),y(!0),u==null||u({name:e,value:h,valid:!0})},[e]);return Ie(E),{handleChange:j,value:g,valid:C,minValue:p,maxValue:m,increment:z,decrement:I}}const is=w.div`
|
|
504
497
|
display: flex;
|
|
505
498
|
flex-direction: column;
|
|
506
499
|
gap: ${e=>e.$theme.gapMedium};
|
|
@@ -562,7 +555,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
562
555
|
-moz-appearance: textfield;
|
|
563
556
|
}
|
|
564
557
|
}
|
|
565
|
-
`,
|
|
558
|
+
`,as=({name:e,label:t,errorMessage:r,onChange:n,onBlur:o,onFocus:i,onSpinButtonClick:a,validator:l,min:c,max:u,id:d,tabIndex:h,disabled:m=!1,required:p=!1,readOnly:g=!1,hasSpinButtons:x=!0,defaultValue:C=0,step:y=1,...v})=>{const{elementId:j,errorId:z}=ne(d),I=V(),{value:E,valid:$,handleChange:L,increment:W,decrement:oe,minValue:X,maxValue:se}=ss({name:e,defaultValue:C,min:c,max:u,onChange:n,required:p,validator:l,step:y,onSpinButtonClick:a});return s.jsxs(is,{$theme:I,...v,children:[s.jsx(ge,{label:t,required:p,inputId:j,theme:I}),s.jsxs("div",{children:[s.jsx("input",{id:j,name:e,type:"number",disabled:m,required:p,readOnly:g,placeholder:"0","aria-invalid":!$,"aria-errormessage":z,value:E.toString(),onChange:L,min:X,max:se,step:y,onBlur:o,onFocus:i,tabIndex:h}),x&&s.jsxs("span",{children:[s.jsx(Pe,{onClick:oe,label:`Decrement value for ${t}`,icon:k.ChevronLeft,disabled:m,theme:I}),s.jsx(Pe,{onClick:W,label:`Increment value for ${t}`,icon:k.ChevronRight,disabled:m,theme:I})]})]}),s.jsx(At,{errorId:z,message:r,visible:!$,theme:I})]})},cs=({opened:e,onClick:t,comboboxId:r,dropdownId:n,selected:o,name:i,placeholder:a,disabled:l,required:c,theme:u})=>s.jsxs(Fr,{type:"button",name:i,value:o==null?void 0:o.id,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":n,id:r,onClick:t,disabled:l,"aria-required":c,$theme:u,children:[o!=null&&o.label?s.jsx("span",{children:o==null?void 0:o.label}):s.jsx("span",{children:a}),e?s.jsx(zt,{}):s.jsx(It,{})]}),ls=({value:e,selected:t,onSelect:r,onClear:n,theme:o})=>{const{id:i,label:a}=e,l=u=>{t?n():r(u)},c=u=>d=>{switch(d.key){case" ":case"SpaceBar":case"Enter":d.preventDefault(),l(u);break}};return s.jsxs(Gr,{id:i,role:"option","aria-selected":t,tabIndex:0,onKeyDown:c(i),onClick:()=>l(i),$theme:o,$selected:t,children:[s.jsx("span",{children:a}),t&&s.jsx(Rt,{})]})},ds=({options:e,opened:t,onClose:r,onSelect:n,dropdownId:o,comboboxId:i,selected:a,onClear:l,theme:c})=>{const u=d=>{n(d),r(),_e(i)};return s.jsx(Vr,{role:"listbox",id:o,tabIndex:-1,onKeyDown:d=>Pr({e:d,options:e,onClose:r}),$opened:t,$theme:c,children:e.map(d=>s.jsx(ls,{value:d,onSelect:()=>u(d.id),onClear:l,selected:d.id===(a==null?void 0:a.id),theme:c},d.id))})};function us({name:e,options:t,initialValues:r,defaultValue:n}){var i;let o;return r&&r[e]&&(o=((i=r[e])==null?void 0:i.id)??r[e]),!(r!=null&&r[e])&&n&&typeof n=="string"&&(o=n),t.find(a=>a.id===o)}function hs({name:e,defaultValue:t,onChange:r,options:n}){const{onChangeFormInput:o,initialValues:i}=b.useContext(le),a=us({name:e,options:n,defaultValue:t,initialValues:i}),[l,c]=b.useState(!1),[u,d]=b.useState(a),h=()=>c(!1),m=()=>c(!l),p=C=>{const y=n.find(v=>v.id===C);d(y),r==null||r(y),o==null||o({name:e,value:y==null?void 0:y.id})},g=()=>{d(void 0),r==null||r(void 0)},x=b.useCallback(()=>{c(!1),d(a),o==null||o({name:e,value:a==null?void 0:a.id})},[e]);return Ie(x),{selected:u,opened:l,handleClear:g,handleClose:h,handleToggle:m,handleSelect:p}}const fs=({options:e,onChange:t,name:r,label:n,defaultValue:o,id:i,placeholder:a="Not selected",required:l=!1,disabled:c=!1,...u})=>{const d=b.useRef(null),h=V(),{elementId:m,dropdownId:p}=ne(i),{handleClear:g,handleClose:x,handleSelect:C,handleToggle:y,selected:v,opened:j}=hs({options:e,onChange:t,defaultValue:o,name:r});return De({ref:d,onClickOutsideHandler:x}),He({keyCode:"Escape",ref:d,onKeyPress:x}),s.jsxs(Nr,{ref:d,$theme:h,...u,children:[s.jsx(ge,{label:n,required:l,inputId:m,theme:h}),s.jsx(cs,{name:r,opened:j,comboboxId:m,dropdownId:p,onClick:y,selected:v,placeholder:a,disabled:c,required:l,theme:h}),s.jsx(ds,{options:e,selected:v,opened:j,onClose:x,dropdownId:p,comboboxId:m,onSelect:C,onClear:g,theme:h})]})};function ps({value:e,required:t,validator:r}){return t&&!r&&!e.length?!1:r&&typeof r=="function"?r(e):r&&typeof r=="object"?new RegExp(r.regexp,r==null?void 0:r.flags).test(e):!0}function ms({name:e,initialValues:t,defaultValue:r}){return t&&(t!=null&&t[e])?t[e].toString():r&&typeof r=="string"?r:""}function gs({name:e,defaultValue:t,onChange:r,onClear:n,required:o,validator:i}){const{onChangeFormInput:a,initialValues:l}=b.useContext(le),c=ms({initialValues:l,defaultValue:t,name:e}),[u,d]=b.useState(c),[h,m]=b.useState(!0),[p,g]=b.useState(!1),x=j=>{const z=j.target.value,I=ps({value:z,required:o,validator:i});d(z),m(I),a==null||a({name:e,value:z,valid:I}),r==null||r(j)},C=()=>{d(""),m(!0),a==null||a({name:e,value:"",valid:!0}),n==null||n()},y=b.useCallback(()=>{d(c),m(!0),a==null||a({name:e,value:c,valid:!0})},[e]),v=()=>{g(!p)};return Ie(y),{value:u,valid:h,passwordShown:p,handleChange:x,handleClear:C,togglePassword:v}}const bs=w.div`
|
|
566
559
|
display: flex;
|
|
567
560
|
flex-direction: column;
|
|
568
561
|
gap: ${e=>e.$theme.gapMedium};
|
|
@@ -619,7 +612,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
619
612
|
display: none !important;
|
|
620
613
|
}
|
|
621
614
|
}
|
|
622
|
-
`,
|
|
615
|
+
`,xs=({name:e,label:t,errorMessage:r,defaultValue:n,onChange:o,onBlur:i,onFocus:a,onClear:l,validator:c,maxLength:u,id:d,tabIndex:h,placeholder:m="Type here...",disabled:p=!1,required:g=!1,clearable:x=!0,readOnly:C=!1,autoComplete:y="off",type:v="text",...j})=>{const{value:z,valid:I,handleChange:E,handleClear:$,passwordShown:L,togglePassword:W}=gs({defaultValue:n,name:e,onChange:o,onClear:l,required:g,validator:c}),{elementId:oe,errorId:X}=ne(d),se=v==="password",J=V();return s.jsxs(bs,{$theme:J,...j,children:[s.jsx(ge,{label:t,required:g,inputId:oe,theme:J}),s.jsxs("div",{children:[s.jsx("input",{id:oe,name:e,type:L?"text":v,disabled:p,placeholder:m,required:g,readOnly:C,autoComplete:y,"aria-invalid":!I,"aria-errormessage":X,"aria-readonly":C,value:z,onChange:E,maxLength:u,onBlur:i,onFocus:a,tabIndex:h}),s.jsxs("span",{children:[x&&s.jsx(Pe,{onClick:$,label:`Clear input for ${t}`,icon:k.Remove,disabled:p,theme:J}),se&&s.jsx(Pe,{onClick:W,label:"Toggle password visibility",icon:L?k.Hide:k.Show,disabled:p,theme:J})]})]}),s.jsx(At,{errorId:X,message:r,visible:!I,theme:J})]})},$s=w.div`
|
|
623
616
|
z-index: ${e=>e.$theme.zIndexModal};
|
|
624
617
|
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
625
618
|
box-shadow: ${e=>e.$theme.boxShadow};
|
|
@@ -632,9 +625,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
632
625
|
left: 0;
|
|
633
626
|
border-top-left-radius: ${e=>e.$theme.blockBorderRadius};
|
|
634
627
|
border-top-right-radius: ${e=>e.$theme.blockBorderRadius};
|
|
635
|
-
${
|
|
628
|
+
${Ae}
|
|
636
629
|
|
|
637
|
-
@media ${
|
|
630
|
+
@media ${lo.landscapeTablets} {
|
|
638
631
|
width: fit-content;
|
|
639
632
|
height: fit-content;
|
|
640
633
|
position: relative;
|
|
@@ -648,7 +641,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
648
641
|
font-size: ${e=>e.$theme.fontSizeHeader};
|
|
649
642
|
}
|
|
650
643
|
}
|
|
651
|
-
`,
|
|
644
|
+
`,ys=w.div`
|
|
652
645
|
position: fixed;
|
|
653
646
|
top: 0;
|
|
654
647
|
left: 0;
|
|
@@ -659,10 +652,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
659
652
|
justify-content: center;
|
|
660
653
|
align-items: center;
|
|
661
654
|
background-color: ${e=>e.$theme.backgroundColorTransparent};
|
|
662
|
-
${
|
|
655
|
+
${Ae}
|
|
663
656
|
|
|
664
|
-
${e=>e.$isClosing&&
|
|
665
|
-
`,
|
|
657
|
+
${e=>e.$isClosing&&Ir}
|
|
658
|
+
`,vs=w.header`
|
|
666
659
|
font-size: 1.6rem;
|
|
667
660
|
font-weight: bold;
|
|
668
661
|
display: flex;
|
|
@@ -672,10 +665,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
672
665
|
padding: ${e=>e.$theme.gapBig};
|
|
673
666
|
border-bottom: ${e=>e.$theme.borderBase};
|
|
674
667
|
color: ${e=>e.$theme.fontColorBase};
|
|
675
|
-
`,
|
|
668
|
+
`,ws=w.div`
|
|
676
669
|
padding: ${e=>e.$theme.gapBig};
|
|
677
670
|
font-size: ${e=>e.$theme.fontSizeBase};
|
|
678
|
-
`,
|
|
671
|
+
`,Ss=({title:e,onClose:t,theme:r})=>s.jsxs(vs,{$theme:r,children:[e,s.jsx(Oe,{icon:k.Cancel,view:re.Icon,label:"Close modal window",onClick:t})]}),ks=({title:e,onClose:t,isOpened:r,children:n,theme:o,...i})=>{const a=b.useRef(null);return Or({modalRef:a,isOpened:r}),He({keyCode:"Escape",ref:a,onKeyPress:t}),s.jsxs($s,{ref:a,role:"dialog","aria-modal":"true",$theme:o,...i,children:[s.jsx(Ss,{title:e,onClose:t,theme:o}),s.jsx(ws,{$theme:o,children:n})]})},Cs=({isOpened:e,onClose:t,title:r,children:n,...o})=>{const i=Bt(e),a=i&&!e,l=V();return i?s.jsx(dt,{children:s.jsx(ys,{$isClosing:a,$theme:l,children:s.jsx(ks,{title:r,onClose:t,isOpened:e,...o,theme:l,children:n})})}):null},js=({id:e})=>{const[t,r]=b.useState(!1),n=b.useRef(null),o=b.useRef(null),{top:i,left:a}=Hr({wrapperRef:n,tooltipRef:o,isOpened:t}),{elementId:l}=ne(e),c=()=>r(!1),u=()=>r(!0),d=()=>r(!t),h=m=>{m.preventDefault(),d()};return He({keyCode:"Escape",ref:o,onKeyPress:c}),De({ref:o,onClickOutsideHandler:c,dependentRef:n}),{elementId:l,openTooltip:u,closeTooltip:c,toggleTooltip:d,handleContextMenu:h,top:i,left:a,isOpened:t,wrapperRef:n,tooltipRef:o}},Es=w.div`
|
|
679
672
|
position: absolute;
|
|
680
673
|
left: 0;
|
|
681
674
|
top: 0;
|
|
@@ -691,8 +684,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
691
684
|
pointer-events: none;
|
|
692
685
|
white-space: nowrap;
|
|
693
686
|
|
|
694
|
-
${
|
|
695
|
-
`,
|
|
687
|
+
${Ae}
|
|
688
|
+
`,Wr=({children:e,tooltipContent:t,containerTag:r=Tt.Span,visibleOn:n="hover",id:o,style:i,...a})=>{const l=r,c=V(),{openTooltip:u,closeTooltip:d,toggleTooltip:h,handleContextMenu:m,elementId:p,top:g,left:x,isOpened:C,wrapperRef:y,tooltipRef:v}=js({id:o});return s.jsxs(l,{style:{position:"relative",cursor:"pointer"},onClick:n==="click"?h:void 0,onMouseOver:n==="hover"?u:void 0,onMouseLeave:n==="hover"?d:void 0,onFocus:n==="focus"?u:void 0,onBlur:n==="focus"?d:void 0,onContextMenu:n==="contextmenu"?j=>m(j):void 0,tabIndex:0,ref:y,"aria-describedby":p,children:[e,C&&s.jsx(dt,{children:s.jsx(Es,{style:{...i,top:g,left:x},ref:v,role:"tooltip",id:p,$theme:c,...a,children:t})})]})};function As(e){return e?Object.keys(e).map(t=>[t,!0]):[]}function Is(e,t){return(t==null?void 0:t.valid)===void 0?e:e.map(r=>r[0]!==t.name?r:[r[0],!!(t!=null&&t.valid)])}function zs(e){return e.every(t=>t[1])}function Rs({initialValues:e,onReset:t,onSubmit:r,onClickSubmit:n}){const[o,i]=b.useState(e),[a,l]=b.useState(As(e)),[c,u]=b.useState(0);return{handleInputChange:p=>{const g={...o,[p.name]:p.value};i(g),l(Is(a,p))},handleSubmit:p=>{p.preventDefault();const x={...Object.fromEntries(new FormData(p.target)),...o};r==null||r(p),n==null||n(x)},handleReset:p=>{t==null||t(p),i(e),u(c+1)},resetSignal:c,valid:zs(a)}}const Ms=w.form`
|
|
696
689
|
display: grid;
|
|
697
690
|
align-items: end;
|
|
698
691
|
gap: ${e=>e.$theme.gapMedium};
|
|
@@ -703,7 +696,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
703
696
|
grid-template-columns: repeat(${e}, 1fr);
|
|
704
697
|
grid-template-rows: auto;
|
|
705
698
|
`}
|
|
706
|
-
`,
|
|
699
|
+
`,Ts=w.div`
|
|
707
700
|
display: flex;
|
|
708
701
|
align-items: center;
|
|
709
702
|
justify-content: space-between;
|
|
@@ -712,42 +705,42 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
712
705
|
${({$columns:e})=>`
|
|
713
706
|
grid-column: 1 / ${e+1};
|
|
714
707
|
`}
|
|
715
|
-
`,
|
|
708
|
+
`,Bs=({children:e,initialValues:t,onReset:r,onSubmit:n,onClickSubmit:o,columns:i=1,hasReset:a=!0,...l})=>{const{handleInputChange:c,handleSubmit:u,handleReset:d,resetSignal:h,valid:m}=Rs({initialValues:t,onReset:r,onSubmit:n,onClickSubmit:o}),p=V();return s.jsx(Ms,{onSubmit:u,onReset:d,$columns:i,$theme:p,...l,children:s.jsxs(le.Provider,{value:{onChangeFormInput:c,initialValues:t,resetSignal:h},children:[e,s.jsxs(Ts,{$columns:i,children:[a&&s.jsx(Oe,{type:"reset",text:"Reset",icon:k.Clear,view:re.Flat}),s.jsx(Oe,{type:"submit",text:"Submit",icon:k.Forward,extended:!a,disabled:!m})]})]})})},Ls=w.table`
|
|
716
709
|
border-collapse: collapse;
|
|
717
|
-
`,
|
|
710
|
+
`,Ps=w.thead`
|
|
718
711
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
719
712
|
color: ${e=>e.$theme.fontColorBase};
|
|
720
713
|
font-size: ${e=>e.$theme.fontSizeBase};
|
|
721
|
-
`,
|
|
714
|
+
`,_s=w.tbody`
|
|
722
715
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
723
716
|
color: ${e=>e.$theme.fontColorBase};
|
|
724
|
-
`,
|
|
717
|
+
`,Yr=w.th`
|
|
725
718
|
padding: ${e=>e.$theme.gapMedium};
|
|
726
719
|
text-align: left;
|
|
727
|
-
`,
|
|
720
|
+
`,Os=w.tr`
|
|
728
721
|
font-weight: bold;
|
|
729
722
|
border-top: ${e=>e.$theme.borderLight};
|
|
730
723
|
border-bottom: ${e=>e.$theme.borderLight};
|
|
731
724
|
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
732
|
-
`,
|
|
725
|
+
`,Ur=w.td`
|
|
733
726
|
padding: ${e=>e.$theme.gapMedium};
|
|
734
|
-
`,
|
|
727
|
+
`,Ds=w.caption`
|
|
735
728
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
736
729
|
color: ${e=>e.$theme.fontColorBase};
|
|
737
730
|
padding: ${e=>e.$theme.gapMedium};
|
|
738
731
|
font-weight: bold;
|
|
739
|
-
`,
|
|
732
|
+
`,Hs=w.tr`
|
|
740
733
|
border-bottom: ${e=>e.$theme.borderLight};
|
|
741
734
|
|
|
742
735
|
${e=>e.$selected&&`
|
|
743
736
|
background-color: ${e.$theme.backgroundColorLight};
|
|
744
737
|
`}
|
|
745
|
-
`,
|
|
738
|
+
`,or=w.col`
|
|
746
739
|
border-right: ${e=>e.$theme.borderLight};
|
|
747
740
|
|
|
748
741
|
${e=>e.$isFirst&&`border-left: ${e.$theme.borderLight};`}
|
|
749
742
|
${e=>e.$highlighted&&`background-color: ${e.$theme.backgroundColorLight};`}
|
|
750
|
-
`,
|
|
743
|
+
`,Ns=w.div`
|
|
751
744
|
display: flex;
|
|
752
745
|
gap: ${e=>e.$theme.gapSmall};
|
|
753
746
|
padding: ${e=>e.$theme.gapSmall} 0;
|
|
@@ -772,7 +765,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
772
765
|
pointer-events: none;
|
|
773
766
|
opacity: 0.5;
|
|
774
767
|
`}
|
|
775
|
-
`,
|
|
768
|
+
`,Fs=w.input`
|
|
776
769
|
position: absolute;
|
|
777
770
|
z-index: -1;
|
|
778
771
|
opacity: 0;
|
|
@@ -784,26 +777,26 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
784
777
|
outline: ${e=>e.$theme.borderOutline};
|
|
785
778
|
outline-offset: 2px;
|
|
786
779
|
}
|
|
787
|
-
`;function
|
|
780
|
+
`;function Vs({item:e,columns:t,renderDataItem:r}){const n=[];for(const o of t){let i;r&&e[o.field]?i=r(e,o.field):e[o.field]?i=e[o.field].toString():i="",n.push(i)}return n}const Gs=({value:e,theme:t})=>s.jsx(Ur,{$theme:t,children:e}),Kr=({name:e,label:t,disabled:r,required:n=!1,onChange:o,checked:i=!1,theme:a,...l})=>{const{elementId:c}=ne(l==null?void 0:l.id);return s.jsxs(Ns,{$disabled:!!r,$checked:i,$theme:a,children:[s.jsx(Fs,{id:c,name:e,type:"checkbox",disabled:r,required:n,checked:i,onChange:o,$theme:a}),s.jsx(ge,{label:t,required:n,inputId:c,isTextHidden:!0,iconPosition:"left",theme:a,icon:i?s.jsx(ct,{}):s.jsx(lt,{})})]})},Ws=({rowId:e,isRowSelected:t,selectRowById:r,deselectRowById:n,disabled:o,theme:i})=>{const a=l=>{const{checked:c}=l.target;c?r(e):n(e)};return s.jsx(Ur,{$theme:i,children:s.jsx(Kr,{theme:i,label:"Select row",onChange:a,id:`select_row_${e}`,checked:t,disabled:o})})},Ys=({rowId:e,selectRowById:t,deselectRowById:r,selectable:n,values:o,selectedIds:i,disabled:a,theme:l})=>{const c=i.includes(e);return s.jsxs(Hs,{$selected:c,$theme:l,children:[n&&s.jsx(Ws,{rowId:e,selectRowById:t,deselectRowById:r,isRowSelected:c,disabled:a,theme:l}),o.map((u,d)=>s.jsx(Gs,{value:u,theme:l},`row_${d}`))]})},Us=({selectRowById:e,deselectRowById:t,renderDataItem:r,selectedIds:n,selectable:o,data:i,columns:a,theme:l})=>s.jsx(_s,{$theme:l,children:i.map(c=>{const u=Vs({item:c,columns:a,renderDataItem:r});return s.jsx(Ys,{rowId:c.id,disabled:c==null?void 0:c.disabled,selectRowById:e,deselectRowById:t,selectable:o,values:u,selectedIds:n,theme:l},c.id)})}),Ks=({columns:e,selectable:t,theme:r})=>s.jsxs("colgroup",{children:[t&&s.jsx(or,{$isFirst:!0,$highlighted:!1,$theme:r}),e.map((n,o)=>s.jsx(or,{$isFirst:o===0&&!t,$highlighted:!!(n!=null&&n.highlighted),className:n==null?void 0:n.className,$theme:r},n==null?void 0:n.title))]}),qs=({title:e,component:t,theme:r})=>s.jsx(Yr,{$theme:r,children:t??e??""}),Xs=({gridId:e,isAllSelected:t,selectAll:r,deselectAll:n,disabled:o,theme:i})=>{const a=l=>{const{checked:c}=l.target;c?r():n()};return s.jsx(Yr,{$theme:i,children:s.jsx(Kr,{label:"Select all rows",onChange:a,id:`select_all_${e}`,checked:t,disabled:o,theme:i})})},Js=({columns:e,gridId:t,selectAll:r,deselectAll:n,selectable:o,isAllSelected:i,isAllCheckboxDisabled:a=!1,theme:l})=>s.jsx(Ps,{$theme:l,children:s.jsxs(Os,{$theme:l,children:[o&&s.jsx(Xs,{isAllSelected:i,disabled:a,gridId:t,selectAll:r,deselectAll:n,theme:l}),e.map(c=>s.jsx(qs,{title:c.title,component:c.component,theme:l},`${c.title}_${t}`))]})}),Zs=({data:e,id:t,onSelect:r})=>{const{elementId:n}=ne(t),[o,i]=b.useState([]),a=e.map(g=>g.id),l=a.length===o.length,c=e.some(g=>g==null?void 0:g.disabled),u=g=>{i(g),r==null||r(g)};return{elementId:n,isAllSelected:l,isAllCheckboxDisabled:c,selectedIds:o,handleSelectAll:()=>{u(a)},handleDeselectAll:()=>{u([])},handleSelectRowById:g=>{const x=[...o,g];u(x)},handleDeselectRowById:g=>{const x=o.filter(C=>C!==g);u(x)}}},Qs=({columns:e,data:t,id:r,onSelect:n,renderDataItem:o,caption:i,selectable:a=!1,...l})=>{const{elementId:c,handleSelectAll:u,handleDeselectAll:d,isAllCheckboxDisabled:h,isAllSelected:m,handleDeselectRowById:p,handleSelectRowById:g,selectedIds:x}=Zs({id:r,data:t,onSelect:n}),C=V();return s.jsxs(Ls,{...l,children:[i&&s.jsx(Ds,{$theme:C,children:i}),s.jsx(Ks,{columns:e,selectable:a,theme:C}),s.jsx(Js,{gridId:c,columns:e,selectable:a,selectAll:u,deselectAll:d,isAllSelected:m,isAllCheckboxDisabled:h,theme:C}),s.jsx(Us,{columns:e,data:t,selectable:a,selectRowById:g,deselectRowById:p,selectedIds:x,renderDataItem:o,theme:C})]})},qr=w.ul`
|
|
788
781
|
list-style: none;
|
|
789
782
|
margin: 0;
|
|
790
783
|
padding: 0;
|
|
791
784
|
padding-inline-start: 0;
|
|
792
785
|
display: flex;
|
|
793
786
|
gap: ${e=>e.$theme.gapSmall};
|
|
794
|
-
flex-direction: ${e=>e.$mode===
|
|
787
|
+
flex-direction: ${e=>e.$mode===H.Vertical?"column":"row"};
|
|
795
788
|
justify-content: flex-start;
|
|
796
789
|
width: 100%;
|
|
797
|
-
`,
|
|
790
|
+
`,ei=w(qr)`
|
|
798
791
|
flex-direction: column;
|
|
799
792
|
padding-left: ${e=>e.$theme.gapBig};
|
|
800
793
|
margin-left: ${e=>e.$theme.gapBig};
|
|
801
794
|
margin-top: ${e=>e.$theme.gapSmall};
|
|
802
795
|
box-sizing: border-box;
|
|
803
796
|
border-left: ${e=>e.$theme.borderLight};
|
|
804
|
-
${
|
|
797
|
+
${Ae}
|
|
805
798
|
|
|
806
|
-
${({$theme:e,$mode:t})=>t===
|
|
799
|
+
${({$theme:e,$mode:t})=>t===H.Horizontal&&`
|
|
807
800
|
position: absolute;
|
|
808
801
|
top: 100%;
|
|
809
802
|
left: 40%;
|
|
@@ -816,7 +809,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
816
809
|
margin: 0;
|
|
817
810
|
z-index: ${e.zIndexPopup};
|
|
818
811
|
`}
|
|
819
|
-
`,
|
|
812
|
+
`,ti=w.li`
|
|
820
813
|
display: flex;
|
|
821
814
|
justify-content: flex-start;
|
|
822
815
|
align-items: center;
|
|
@@ -836,7 +829,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
836
829
|
&:focus-visible {
|
|
837
830
|
outline: ${e=>e.$theme.borderOutline};
|
|
838
831
|
}
|
|
839
|
-
`,
|
|
832
|
+
`,ri=w.li`
|
|
840
833
|
display: flex;
|
|
841
834
|
justify-content: flex-start;
|
|
842
835
|
align-items: center;
|
|
@@ -849,7 +842,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
849
842
|
&:focus-visible {
|
|
850
843
|
outline: ${e=>e.$theme.borderOutline};
|
|
851
844
|
}
|
|
852
|
-
`,
|
|
845
|
+
`,ni=w.span`
|
|
853
846
|
position: relative;
|
|
854
847
|
display: flex;
|
|
855
848
|
box-sizing: border-box;
|
|
@@ -874,7 +867,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
874
867
|
&:hover {
|
|
875
868
|
color: ${e=>e.$theme.fontColorAccent};
|
|
876
869
|
}
|
|
877
|
-
`,
|
|
870
|
+
`,oi=({theme:e,item:t})=>{const{icon:r,link:n,label:o,onFocus:i,onClick:a,onHover:l}=t,c=n?s.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:o}):s.jsx("span",{children:o});return s.jsxs(ti,{tabIndex:0,role:"menuitem",$theme:e,onFocus:i,onClick:a,onMouseOver:l,children:[s.jsx(Q,{name:r}),c]})},si=({item:e,theme:t,isSubMenuOpened:r,toggleSubMenu:n,closeSubMenu:o,mode:i,children:a})=>{const{icon:l,link:c,label:u}=e,d=b.useRef(null),h=b.useRef(null),m=c?s.jsxs("a",{href:c,target:"_blank",rel:"noreferrer",children:[s.jsx(Q,{name:l}),u]}):s.jsxs("span",{children:[s.jsx(Q,{name:l}),u]}),p=x=>{x.stopPropagation(),x.key===" "&&n()};return De({ref:d,dependentRef:h,onClickOutsideHandler:()=>{i!==H.Vertical&&o()}}),s.jsxs(ri,{tabIndex:0,role:"menuitem","aria-haspopup":"true","aria-expanded":r,$theme:t,onKeyDown:p,ref:d,children:[s.jsxs(ni,{ref:h,$theme:t,onClick:n,$mode:i,children:[m,s.jsx(Q,{name:r?k.ArrowUp:k.ArrowDown})]}),r&&a]})},Xr=({item:e,theme:t,mode:r})=>{var c,u;const n=!((c=e==null?void 0:e.nestedItems)!=null&&c.length),[o,i]=b.useState(!1);if(n)return s.jsx(oi,{item:e,theme:t});const a=()=>{i(!o)},l=()=>{i(!1)};return s.jsx(si,{item:e,theme:t,isSubMenuOpened:o,toggleSubMenu:a,closeSubMenu:l,mode:r,children:s.jsx(ei,{role:"menu","aria-label":e.label,$theme:t,$mode:r,children:(u=e==null?void 0:e.nestedItems)==null?void 0:u.map(d=>s.jsx(Xr,{item:d,theme:t,mode:r},d.id))})})},ii=({items:e,mode:t=H.Vertical,...r})=>{const n=V();return s.jsx(qr,{role:"menubar",$theme:n,$mode:t,...r,children:e.map(o=>s.jsx(Xr,{item:o,theme:n,mode:t},o.id))})},dt=({children:e})=>{const[t]=b.useState(()=>document.createElement("div"));return b.useEffect(()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)}),[t]),Jr.createPortal(e,t)},ai=w.button`
|
|
878
871
|
background: transparent;
|
|
879
872
|
position: relative;
|
|
880
873
|
outline: none;
|
|
@@ -912,12 +905,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
912
905
|
top: 1px;
|
|
913
906
|
`}
|
|
914
907
|
|
|
915
|
-
${e=>e.$mode===
|
|
908
|
+
${e=>e.$mode===H.Vertical&&`
|
|
916
909
|
border-bottom-left-radius: ${e.$theme.blockBorderRadius};
|
|
917
910
|
border-top-right-radius: 0;
|
|
918
911
|
`}
|
|
919
912
|
|
|
920
|
-
${e=>e.$mode===
|
|
913
|
+
${e=>e.$mode===H.Vertical&&e.$selected&&`
|
|
921
914
|
border-top: ${e.$theme.borderLight};
|
|
922
915
|
border-right: none;
|
|
923
916
|
border-left: ${e.$theme.borderLight};
|
|
@@ -925,34 +918,34 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
925
918
|
top: 0px;
|
|
926
919
|
left: 1px;
|
|
927
920
|
`}
|
|
928
|
-
`,
|
|
921
|
+
`,ci=w.div`
|
|
929
922
|
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
930
923
|
color: ${e=>e.$theme.fontColorBase};
|
|
931
924
|
font-size: ${e=>e.$theme.fontSizeBase};
|
|
932
925
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
933
926
|
padding: ${e=>e.$theme.gapBig};
|
|
934
927
|
flex-grow: 1;
|
|
935
|
-
`,
|
|
928
|
+
`,li=w.div`
|
|
936
929
|
border-bottom: ${e=>e.$theme.borderLight};
|
|
937
930
|
padding: 0 ${e=>e.$theme.gapMedium};
|
|
938
931
|
display: flex;
|
|
939
932
|
gap: ${e=>e.$theme.gapMedium};
|
|
940
933
|
|
|
941
|
-
${e=>e.$mode===
|
|
934
|
+
${e=>e.$mode===H.Vertical&&`
|
|
942
935
|
flex-direction: column;
|
|
943
936
|
border-bottom: none;
|
|
944
937
|
border-right: ${e.$theme.borderLight};
|
|
945
938
|
padding: ${e.$theme.gapMedium} 0;
|
|
946
939
|
`}
|
|
947
|
-
`,
|
|
940
|
+
`,di=w.div`
|
|
948
941
|
display: flex;
|
|
949
942
|
flex-direction: column;
|
|
950
943
|
width: 100%;
|
|
951
944
|
|
|
952
|
-
${({$mode:e})=>e===
|
|
945
|
+
${({$mode:e})=>e===H.Vertical&&`
|
|
953
946
|
flex-direction: row;
|
|
954
947
|
`}
|
|
955
|
-
`,
|
|
948
|
+
`,ui=({tabs:e,selectedTabId:t,theme:r})=>{var i;const n=(i=e.find(a=>a.id===t))==null?void 0:i.content,o=`tabpanel_${t}`;return s.jsx(ci,{role:"tabpanel","aria-labelledby":t,id:o,$theme:r,children:n})},hi=({title:e,onTabSelect:t,tabId:r,isSelected:n,isDisabled:o=!1,tabPanelId:i,mode:a,theme:l})=>s.jsx(ai,{role:"tab",id:r,onClick:()=>t(r),"aria-selected":n,"aria-controls":i,$selected:n,$disabled:o,$mode:a,$theme:l,children:e}),fi=({tabs:e,onTabSelect:t,selectedTabId:r,tabPanelIds:n,mode:o,tabIds:i,theme:a})=>{const l=c=>{const u=i.findIndex(d=>d===r);switch(c.key){case"ArrowLeft":case"ArrowUp":{if(c.preventDefault(),c.key==="ArrowUp"&&o===H.Horizontal||c.key==="ArrowLeft"&&o===H.Vertical)break;const d=u-1>=0?u-1:i.length-1,h=i[d];h&&(_e(h),t(h));break}case"ArrowRight":case"ArrowDown":{if(c.preventDefault(),c.key==="ArrowDown"&&o===H.Horizontal||c.key==="ArrowRight"&&o===H.Vertical)break;const d=u===i.length-1?0:u+1,h=i[d];h&&(_e(h),t(h));break}}};return s.jsx(li,{role:"tablist",$mode:o,onKeyDown:l,$theme:a,children:e.map(({id:c,title:u,disabled:d},h)=>s.jsx(hi,{title:u,onTabSelect:t,tabId:c,isSelected:c===r,isDisabled:d,tabPanelId:n[h],mode:o,theme:a},c))})},pi=({tabs:e,defaultTabId:t,mode:r=H.Horizontal,...n})=>{const o=e.map(h=>h.id),i=o.map(h=>`tabpanel_${h}`),a=t&&o.includes(t)?t:o[0],[l,c]=b.useState(a),u=V(),d=h=>{c(h)};return s.jsxs(di,{$mode:r,...n,children:[s.jsx(fi,{tabs:e,selectedTabId:l,tabPanelIds:i,onTabSelect:d,mode:r,tabIds:o,theme:u}),s.jsx(ui,{tabs:e,selectedTabId:l,theme:u})]})},mi=w.header`
|
|
956
949
|
display: flex;
|
|
957
950
|
justify-content: space-between;
|
|
958
951
|
align-items: center;
|
|
@@ -968,16 +961,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
968
961
|
color: ${e=>e.$theme.fontColorAccent};
|
|
969
962
|
}
|
|
970
963
|
}
|
|
971
|
-
`,
|
|
964
|
+
`,gi=w.div`
|
|
972
965
|
position: fixed;
|
|
973
966
|
bottom: ${e=>e.$theme.gapBig};
|
|
974
967
|
left: 50%;
|
|
975
968
|
transform: translateX(-50%);
|
|
976
969
|
z-index: ${e=>e.$theme.zIndexPopup};
|
|
977
|
-
${
|
|
970
|
+
${Ae}
|
|
978
971
|
|
|
979
|
-
${e=>e.$isClosing&&
|
|
980
|
-
`,
|
|
972
|
+
${e=>e.$isClosing&&Ir}
|
|
973
|
+
`,bi=w.div`
|
|
981
974
|
display: flex;
|
|
982
975
|
flex-direction: column;
|
|
983
976
|
gap: ${e=>e.$theme.gapMedium};
|
|
@@ -989,5 +982,5 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const He=`
|
|
|
989
982
|
box-shadow: ${e=>e.$theme.boxShadow};
|
|
990
983
|
border: ${e=>e.$theme.borderLight};
|
|
991
984
|
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
992
|
-
`;function
|
|
985
|
+
`;function xi(e,t){if(t)return t;switch(e){case G.Info:return"For your information";case G.Warning:return"Please pay attention";case G.Error:return"Something went wrong";case G.Success:return"Everything is okay";case G.Help:return"Useful tip";default:return"Alert"}}function $i(e,t){if(t)return s.jsx(Q,{name:t});switch(e){case G.Info:return s.jsx(Mr,{});case G.Warning:return s.jsx(Tr,{});case G.Error:return s.jsx(zr,{});case G.Success:return s.jsx(Rt,{});case G.Help:return s.jsx(Rr,{});default:return null}}const yi=({title:e,onClose:t,mode:r,icon:n,theme:o})=>{const i=xi(r,e),a=$i(r,n);return s.jsxs(mi,{$theme:o,children:[s.jsxs("h3",{children:[a,i]}),s.jsx(Oe,{icon:k.Cancel,view:re.Icon,label:"Close alert popup",onClick:t})]})},vi=({isOpened:e,onClose:t,title:r,message:n,mode:o=G.Info,icon:i,...a})=>{const l=Bt(e),c=l&&!e,u=V();return l?s.jsx(dt,{children:s.jsx(gi,{$isClosing:c,$theme:u,children:s.jsxs(bi,{...a,$theme:u,children:[s.jsx(yi,{title:r,onClose:t,mode:o,icon:i,theme:u}),s.jsx("p",{children:n})]})})}):null};exports.ChopLogicAlert=vi;exports.ChopLogicAlertMode=G;exports.ChopLogicButton=Oe;exports.ChopLogicButtonView=re;exports.ChopLogicCheckbox=Ko;exports.ChopLogicDialog=Cs;exports.ChopLogicErrorMessage=At;exports.ChopLogicForm=Bs;exports.ChopLogicFormContext=le;exports.ChopLogicGrid=Qs;exports.ChopLogicIcon=Q;exports.ChopLogicIconName=k;exports.ChopLogicInputInnerButton=Pe;exports.ChopLogicLabel=ge;exports.ChopLogicLoaderView=Br;exports.ChopLogicMenu=ii;exports.ChopLogicMultiSelect=rs;exports.ChopLogicNumericInput=as;exports.ChopLogicOrientationMode=H;exports.ChopLogicPortal=dt;exports.ChopLogicSelect=fs;exports.ChopLogicTabs=pi;exports.ChopLogicTextInput=xs;exports.ChopLogicThemeContext=Lr;exports.ChopLogicThemeMode=Mt;exports.ChopLogicTooltip=Wr;exports.ChopLogicTooltipContainer=Tt;exports.useChopLogicTheme=V;exports.useClickOutside=De;exports.useContainerDimensions=_r;exports.useElementIds=ne;exports.useKeyPress=He;exports.useModalFocusTrap=Or;exports.useMount=Bt;exports.useResetFormInput=Ie;exports.useTooltipPosition=Hr;exports.useWindowDimensions=Dr;
|
|
993
986
|
//# sourceMappingURL=index.cjs.js.map
|