chop-logic-components 1.2.3 → 1.2.5
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/LICENSE +674 -0
- package/README.md +21 -8
- package/dist/BackIcon-Ca52-ZOT.js +11 -0
- package/dist/BackIcon-Ca52-ZOT.js.map +1 -0
- package/dist/BackIcon-e-_x5Urp.cjs +2 -0
- package/dist/BackIcon-e-_x5Urp.cjs.map +1 -0
- package/dist/CancelIcon-BZhunXFX.cjs +2 -0
- package/dist/CancelIcon-BZhunXFX.cjs.map +1 -0
- package/dist/CancelIcon-CTuZJRbI.js +11 -0
- package/dist/CancelIcon-CTuZJRbI.js.map +1 -0
- package/dist/ChevronDownIcon-CJ6cUxXp.js +17 -0
- package/dist/ChevronDownIcon-CJ6cUxXp.js.map +1 -0
- package/dist/ChevronDownIcon-Ddfa_dez.cjs +2 -0
- package/dist/ChevronDownIcon-Ddfa_dez.cjs.map +1 -0
- package/dist/ChevronLeftIcon-BK0PG77O.js +17 -0
- package/dist/ChevronLeftIcon-BK0PG77O.js.map +1 -0
- package/dist/ChevronLeftIcon-d_wvCNh1.cjs +2 -0
- package/dist/ChevronLeftIcon-d_wvCNh1.cjs.map +1 -0
- package/dist/ChevronRightIcon-CK_CUAKh.js +17 -0
- package/dist/ChevronRightIcon-CK_CUAKh.js.map +1 -0
- package/dist/ChevronRightIcon-DniNfn1t.cjs +2 -0
- package/dist/ChevronRightIcon-DniNfn1t.cjs.map +1 -0
- package/dist/ChevronUpIcon-DEWXf2el.cjs +2 -0
- package/dist/ChevronUpIcon-DEWXf2el.cjs.map +1 -0
- package/dist/ChevronUpIcon-Dlss0vwB.js +11 -0
- package/dist/ChevronUpIcon-Dlss0vwB.js.map +1 -0
- package/dist/ClearIcon-BMgJN8bc.cjs +2 -0
- package/dist/ClearIcon-BMgJN8bc.cjs.map +1 -0
- package/dist/{ClearIcon-DyMoiQ-w.js → ClearIcon-Dq2JJlSk.js} +6 -5
- package/dist/ClearIcon-Dq2JJlSk.js.map +1 -0
- package/dist/{CopyIcon-CBNmeroa.js → CopyIcon-DGgcyld5.js} +9 -7
- package/dist/CopyIcon-DGgcyld5.js.map +1 -0
- package/dist/CopyIcon-DTRIj9l1.cjs +2 -0
- package/dist/CopyIcon-DTRIj9l1.cjs.map +1 -0
- package/dist/CutIcon-BR6xOpd4.cjs +2 -0
- package/dist/CutIcon-BR6xOpd4.cjs.map +1 -0
- package/dist/{CutIcon-B-LgsSko.js → CutIcon-CFdQ6CEf.js} +4 -2
- package/dist/CutIcon-CFdQ6CEf.js.map +1 -0
- package/dist/DeleteIcon-eSw3zBM6.js +11 -0
- package/dist/DeleteIcon-eSw3zBM6.js.map +1 -0
- package/dist/DeleteIcon-nz_hRmmb.cjs +2 -0
- package/dist/DeleteIcon-nz_hRmmb.cjs.map +1 -0
- package/dist/DownloadIcon-Cy81XZnF.cjs +2 -0
- package/dist/DownloadIcon-Cy81XZnF.cjs.map +1 -0
- package/dist/DownloadIcon-pkZg7tDQ.js +11 -0
- package/dist/DownloadIcon-pkZg7tDQ.js.map +1 -0
- package/dist/ForwardIcon-BKziJAna.cjs +2 -0
- package/dist/ForwardIcon-BKziJAna.cjs.map +1 -0
- package/dist/ForwardIcon-DoXC6-Z_.js +11 -0
- package/dist/ForwardIcon-DoXC6-Z_.js.map +1 -0
- package/dist/GraduateIcon-CjLMpy6y.js +9 -0
- package/dist/GraduateIcon-CjLMpy6y.js.map +1 -0
- package/dist/GraduateIcon-DNxxAuYA.cjs +2 -0
- package/dist/GraduateIcon-DNxxAuYA.cjs.map +1 -0
- package/dist/{HideIcon-CfYkoRnF.cjs → HideIcon-DG20Tl0A.cjs} +2 -2
- package/dist/HideIcon-DG20Tl0A.cjs.map +1 -0
- package/dist/HideIcon-DdLpvYLX.js +11 -0
- package/dist/HideIcon-DdLpvYLX.js.map +1 -0
- package/dist/HomeIcon-CULQay_2.js +9 -0
- package/dist/HomeIcon-CULQay_2.js.map +1 -0
- package/dist/{HomeIcon-Crjf7uX6.cjs → HomeIcon-hwlLHWaR.cjs} +2 -2
- package/dist/HomeIcon-hwlLHWaR.cjs.map +1 -0
- package/dist/LoginIcon-DBezvQQB.cjs +2 -0
- package/dist/LoginIcon-DBezvQQB.cjs.map +1 -0
- package/dist/LoginIcon-ePY_tP-B.js +9 -0
- package/dist/LoginIcon-ePY_tP-B.js.map +1 -0
- package/dist/PasteIcon-Br6Gqsj_.js +11 -0
- package/dist/PasteIcon-Br6Gqsj_.js.map +1 -0
- package/dist/PasteIcon-D59158Zj.cjs +2 -0
- package/dist/PasteIcon-D59158Zj.cjs.map +1 -0
- package/dist/QuestionIcon-CIpm7LMG.cjs +2 -0
- package/dist/QuestionIcon-CIpm7LMG.cjs.map +1 -0
- package/dist/{QuestionIcon-BThUz1cJ.js → QuestionIcon-ZDms0Smt.js} +5 -4
- package/dist/QuestionIcon-ZDms0Smt.js.map +1 -0
- package/dist/{RemoveIcon-ChFXLYPl.cjs → RemoveIcon-BoRVcP9t.cjs} +2 -2
- package/dist/RemoveIcon-BoRVcP9t.cjs.map +1 -0
- package/dist/{RemoveIcon-DBtu0veq.js → RemoveIcon-C06KrQ8K.js} +7 -6
- package/dist/RemoveIcon-C06KrQ8K.js.map +1 -0
- package/dist/{SaveIcon-WRIhBKOk.cjs → SaveIcon-Bn6kL1CS.cjs} +2 -2
- package/dist/SaveIcon-Bn6kL1CS.cjs.map +1 -0
- package/dist/SaveIcon-DuSjMx_-.js +11 -0
- package/dist/SaveIcon-DuSjMx_-.js.map +1 -0
- package/dist/ShowIcon-BhxuZY0T.cjs +2 -0
- package/dist/ShowIcon-BhxuZY0T.cjs.map +1 -0
- package/dist/{ShowIcon-9GgVcl5j.js → ShowIcon-Dsxn2pYT.js} +4 -3
- package/dist/ShowIcon-Dsxn2pYT.js.map +1 -0
- package/dist/{UploadIcon-6Ck1RYYg.cjs → UploadIcon-DqJxcjjP.cjs} +2 -2
- package/dist/UploadIcon-DqJxcjjP.cjs.map +1 -0
- package/dist/{UploadIcon-CX6SmVQ1.js → UploadIcon-w8k3Od_z.js} +6 -5
- package/dist/UploadIcon-w8k3Od_z.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/modals/alert/__tests__/helpers.test.d.ts +1 -0
- package/dist/hooks/use-tooltip-position/__tests__/use-tooltip-position.test.d.ts +1 -0
- package/dist/{index-CbK7_eps.js → index-CKPbuOHV.js} +474 -453
- package/dist/index-CKPbuOHV.js.map +1 -0
- package/dist/{index-CGGWsvkc.cjs → index-HVCL1DYW.cjs} +79 -79
- package/dist/index-HVCL1DYW.cjs.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +2 -2
- package/dist/BackIcon-BLFONnIx.cjs +0 -2
- package/dist/BackIcon-BLFONnIx.cjs.map +0 -1
- package/dist/BackIcon-CLsHxyg7.js +0 -8
- package/dist/BackIcon-CLsHxyg7.js.map +0 -1
- package/dist/CancelIcon-BIljykn5.cjs +0 -2
- package/dist/CancelIcon-BIljykn5.cjs.map +0 -1
- package/dist/CancelIcon-BcYQHeqm.js +0 -8
- package/dist/CancelIcon-BcYQHeqm.js.map +0 -1
- package/dist/ChevronDownIcon-CQ-Qe6e2.js +0 -14
- package/dist/ChevronDownIcon-CQ-Qe6e2.js.map +0 -1
- package/dist/ChevronDownIcon-UG36IwoY.cjs +0 -2
- package/dist/ChevronDownIcon-UG36IwoY.cjs.map +0 -1
- package/dist/ChevronLeftIcon-CO2xMbg1.cjs +0 -2
- package/dist/ChevronLeftIcon-CO2xMbg1.cjs.map +0 -1
- package/dist/ChevronLeftIcon-CP-17MpX.js +0 -14
- package/dist/ChevronLeftIcon-CP-17MpX.js.map +0 -1
- package/dist/ChevronRightIcon-CBYYtuLd.js +0 -14
- package/dist/ChevronRightIcon-CBYYtuLd.js.map +0 -1
- package/dist/ChevronRightIcon-Cz2Cy7nl.cjs +0 -2
- package/dist/ChevronRightIcon-Cz2Cy7nl.cjs.map +0 -1
- package/dist/ChevronUpIcon-AUDuzisJ.js +0 -8
- package/dist/ChevronUpIcon-AUDuzisJ.js.map +0 -1
- package/dist/ChevronUpIcon-BDICjvA2.cjs +0 -2
- package/dist/ChevronUpIcon-BDICjvA2.cjs.map +0 -1
- package/dist/ClearIcon-BkT6ssBl.cjs +0 -2
- package/dist/ClearIcon-BkT6ssBl.cjs.map +0 -1
- package/dist/ClearIcon-DyMoiQ-w.js.map +0 -1
- package/dist/CopyIcon-CBNmeroa.js.map +0 -1
- package/dist/CopyIcon-CwJk9YP_.cjs +0 -2
- package/dist/CopyIcon-CwJk9YP_.cjs.map +0 -1
- package/dist/CutIcon-B-LgsSko.js.map +0 -1
- package/dist/CutIcon-C1knd1j0.cjs +0 -2
- package/dist/CutIcon-C1knd1j0.cjs.map +0 -1
- package/dist/DeleteIcon-Bat9AneM.js +0 -8
- package/dist/DeleteIcon-Bat9AneM.js.map +0 -1
- package/dist/DeleteIcon-CCPpxVhC.cjs +0 -2
- package/dist/DeleteIcon-CCPpxVhC.cjs.map +0 -1
- package/dist/DownloadIcon-D1ft8_pY.js +0 -8
- package/dist/DownloadIcon-D1ft8_pY.js.map +0 -1
- package/dist/DownloadIcon-q6rYps37.cjs +0 -2
- package/dist/DownloadIcon-q6rYps37.cjs.map +0 -1
- package/dist/ForwardIcon-B_WDnC28.js +0 -8
- package/dist/ForwardIcon-B_WDnC28.js.map +0 -1
- package/dist/ForwardIcon-CDXjMx8I.cjs +0 -2
- package/dist/ForwardIcon-CDXjMx8I.cjs.map +0 -1
- package/dist/GraduateIcon-1tdpsRn5.cjs +0 -2
- package/dist/GraduateIcon-1tdpsRn5.cjs.map +0 -1
- package/dist/GraduateIcon-CxW9SQaF.js +0 -6
- package/dist/GraduateIcon-CxW9SQaF.js.map +0 -1
- package/dist/HideIcon-BMsnJnv-.js +0 -8
- package/dist/HideIcon-BMsnJnv-.js.map +0 -1
- package/dist/HideIcon-CfYkoRnF.cjs.map +0 -1
- package/dist/HomeIcon-Crjf7uX6.cjs.map +0 -1
- package/dist/HomeIcon-CxQojEJM.js +0 -6
- package/dist/HomeIcon-CxQojEJM.js.map +0 -1
- package/dist/LoginIcon-BpyyUIQO.cjs +0 -2
- package/dist/LoginIcon-BpyyUIQO.cjs.map +0 -1
- package/dist/LoginIcon-ft_fvKAw.js +0 -6
- package/dist/LoginIcon-ft_fvKAw.js.map +0 -1
- package/dist/PasteIcon-Bn5Iytim.cjs +0 -2
- package/dist/PasteIcon-Bn5Iytim.cjs.map +0 -1
- package/dist/PasteIcon-C7BO4YhP.js +0 -8
- package/dist/PasteIcon-C7BO4YhP.js.map +0 -1
- package/dist/QuestionIcon-BThUz1cJ.js.map +0 -1
- package/dist/QuestionIcon-D3X-n-NH.cjs +0 -2
- package/dist/QuestionIcon-D3X-n-NH.cjs.map +0 -1
- package/dist/RemoveIcon-ChFXLYPl.cjs.map +0 -1
- package/dist/RemoveIcon-DBtu0veq.js.map +0 -1
- package/dist/SaveIcon-IIvVW1lD.js +0 -8
- package/dist/SaveIcon-IIvVW1lD.js.map +0 -1
- package/dist/SaveIcon-WRIhBKOk.cjs.map +0 -1
- package/dist/ShowIcon-9GgVcl5j.js.map +0 -1
- package/dist/ShowIcon-BIPYMy15.cjs +0 -2
- package/dist/ShowIcon-BIPYMy15.cjs.map +0 -1
- package/dist/UploadIcon-6Ck1RYYg.cjs.map +0 -1
- package/dist/UploadIcon-CX6SmVQ1.js.map +0 -1
- package/dist/index-CGGWsvkc.cjs.map +0 -1
- package/dist/index-CbK7_eps.js.map +0 -1
- /package/dist/{elements/styled → __docs__/styles}/ExampleDivContainer.styled.d.ts +0 -0
- /package/dist/{css → __docs__/styles}/story-wrapper-styles.d.ts +0 -0
|
@@ -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 $r;function so(){if($r)return Je;$r=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(d,
|
|
9
|
+
*/var $r;function so(){if($r)return Je;$r=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(d,l,h){var u,f={},y=null,g=null;h!==void 0&&(y=""+h),l.key!==void 0&&(y=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(f[u]=l[u]);if(d&&d.defaultProps)for(u in l=d.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:t,type:d,key:y,ref:g,props:f,_owner:o.current}}return Je.Fragment=r,Je.jsx=a,Je.jsxs=a,Je}var Ze={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,23 +14,23 @@
|
|
|
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 xr;function ao(){return xr||(xr=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),d=Symbol.for("react.context"),
|
|
17
|
+
*/var xr;function ao(){return xr||(xr=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),d=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function E(s){if(s===null||typeof s!="object")return null;var m=b&&s[b]||s[x];return typeof m=="function"?m:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(s){{for(var m=arguments.length,v=new Array(m>1?m-1:0),C=1;C<m;C++)v[C-1]=arguments[C];I("error",s,v)}}function I(s,m,v){{var C=S.ReactDebugCurrentFrame,O=C.getStackAddendum();O!==""&&(m+="%s",v=v.concat([O]));var M=v.map(function(T){return String(T)});M.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,M)}}var A=!1,P=!1,R=!1,w=!1,H=!1,J;J=Symbol.for("react.module.reference");function fe(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===i||H||s===o||s===h||s===u||w||s===g||A||P||R||typeof s=="object"&&s!==null&&(s.$$typeof===y||s.$$typeof===f||s.$$typeof===a||s.$$typeof===d||s.$$typeof===l||s.$$typeof===J||s.getModuleId!==void 0))}function pe(s,m,v){var C=s.displayName;if(C)return C;var O=m.displayName||m.name||"";return O!==""?v+"("+O+")":v}function me(s){return s.displayName||"Context"}function W(s){if(s==null)return null;if(typeof s.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case u:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case d:var m=s;return me(m)+".Consumer";case a:var v=s;return me(v._context)+".Provider";case l:return pe(s,s.render,"ForwardRef");case f:var C=s.displayName||null;return C!==null?C:W(s.type)||"Memo";case y:{var O=s,M=O._payload,T=O._init;try{return W(T(M))}catch{return null}}}return null}var ce=Object.assign,we=0,st,_e,Ye,Q,ge,ye,U;function Pe(){}Pe.__reactDisabledLog=!0;function qe(){{if(we===0){st=console.log,_e=console.info,Ye=console.warn,Q=console.error,ge=console.group,ye=console.groupCollapsed,U=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}we++}}function Ae(){{if(we--,we===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},s,{value:st}),info:ce({},s,{value:_e}),warn:ce({},s,{value:Ye}),error:ce({},s,{value:Q}),group:ce({},s,{value:ge}),groupCollapsed:ce({},s,{value:ye}),groupEnd:ce({},s,{value:U})})}we<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=S.ReactCurrentDispatcher,be;function re(s,m,v){{if(be===void 0)try{throw Error()}catch(O){var C=O.stack.trim().match(/\n( *(at )?)/);be=C&&C[1]||""}return`
|
|
18
18
|
`+be+s}}var ne=!1,ve;{var ze=typeof WeakMap=="function"?WeakMap:Map;ve=new ze}function oe(s,m){if(!s||ne)return"";{var v=ve.get(s);if(v!==void 0)return v}var C;ne=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=le.current,le.current=null,qe();try{if(m){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(q){C=q}Reflect.construct(s,[],T)}else{try{T.call()}catch(q){C=q}s.call(T.prototype)}}else{try{throw Error()}catch(q){C=q}s()}}catch(q){if(q&&C&&typeof q.stack=="string"){for(var z=q.stack.split(`
|
|
19
19
|
`),V=C.stack.split(`
|
|
20
20
|
`),L=z.length-1,F=V.length-1;L>=1&&F>=0&&z[L]!==V[F];)F--;for(;L>=1&&F>=0;L--,F--)if(z[L]!==V[F]){if(L!==1||F!==1)do if(L--,F--,F<0||z[L]!==V[F]){var ee=`
|
|
21
|
-
`+z[L].replace(" at new "," at ");return s.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",s.displayName)),typeof s=="function"&&ve.set(s,ee),ee}while(L>=1&&F>=0);break}}}finally{ne=!1,le.current=M,Ae(),Error.prepareStackTrace=O}var Oe=s?s.displayName||s.name:"",Se=Oe?re(Oe):"";return typeof s=="function"&&ve.set(s,Se),Se}function On(s,m,v){return oe(s,!1)}function Dn(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function at(s,m,v){if(s==null)return"";if(typeof s=="function")return oe(s,Dn(s));if(typeof s=="string")return re(s);switch(s){case h:return re("Suspense");case u:return re("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case
|
|
21
|
+
`+z[L].replace(" at new "," at ");return s.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",s.displayName)),typeof s=="function"&&ve.set(s,ee),ee}while(L>=1&&F>=0);break}}}finally{ne=!1,le.current=M,Ae(),Error.prepareStackTrace=O}var Oe=s?s.displayName||s.name:"",Se=Oe?re(Oe):"";return typeof s=="function"&&ve.set(s,Se),Se}function On(s,m,v){return oe(s,!1)}function Dn(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function at(s,m,v){if(s==null)return"";if(typeof s=="function")return oe(s,Dn(s));if(typeof s=="string")return re(s);switch(s){case h:return re("Suspense");case u:return re("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case l:return On(s.render);case f:return at(s.type,m,v);case y:{var C=s,O=C._payload,M=C._init;try{return at(M(O),m,v)}catch{}}}return""}var Ke=Object.prototype.hasOwnProperty,ar={},cr=S.ReactDebugCurrentFrame;function ct(s){if(s){var m=s._owner,v=at(s.type,s._source,m?m.type:null);cr.setExtraStackFrame(v)}else cr.setExtraStackFrame(null)}function Mn(s,m,v,C,O){{var M=Function.call.bind(Ke);for(var T in s)if(M(s,T)){var z=void 0;try{if(typeof s[T]!="function"){var V=Error((C||"React class")+": "+v+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}z=s[T](m,T,C,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){z=L}z&&!(z instanceof Error)&&(ct(O),$("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",v,T,typeof z),ct(null)),z instanceof Error&&!(z.message in ar)&&(ar[z.message]=!0,ct(O),$("Failed %s type: %s",v,z.message),ct(null))}}}var Bn=Array.isArray;function _t(s){return Bn(s)}function Ln(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,v=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return v}}function Fn(s){try{return lr(s),!1}catch{return!0}}function lr(s){return""+s}function dr(s){if(Fn(s))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ln(s)),lr(s)}var Xe=S.ReactCurrentOwner,Nn={key:!0,ref:!0,__self:!0,__source:!0},ur,hr,Pt;Pt={};function Hn(s){if(Ke.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function Wn(s){if(Ke.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function Gn(s,m){if(typeof s.ref=="string"&&Xe.current&&m&&Xe.current.stateNode!==m){var v=W(Xe.current.type);Pt[v]||($('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(Xe.current.type),s.ref),Pt[v]=!0)}}function Un(s,m){{var v=function(){ur||(ur=!0,$("%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://reactjs.org/link/special-props)",m))};v.isReactWarning=!0,Object.defineProperty(s,"key",{get:v,configurable:!0})}}function Vn(s,m){{var v=function(){hr||(hr=!0,$("%s: `ref` 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://reactjs.org/link/special-props)",m))};v.isReactWarning=!0,Object.defineProperty(s,"ref",{get:v,configurable:!0})}}var Yn=function(s,m,v,C,O,M,T){var z={$$typeof:t,type:s,key:m,ref:v,props:T,_owner:M};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function qn(s,m,v,C,O){{var M,T={},z=null,V=null;v!==void 0&&(dr(v),z=""+v),Wn(m)&&(dr(m.key),z=""+m.key),Hn(m)&&(V=m.ref,Gn(m,O));for(M in m)Ke.call(m,M)&&!Nn.hasOwnProperty(M)&&(T[M]=m[M]);if(s&&s.defaultProps){var L=s.defaultProps;for(M in L)T[M]===void 0&&(T[M]=L[M])}if(z||V){var F=typeof s=="function"?s.displayName||s.name||"Unknown":s;z&&Un(T,F),V&&Vn(T,F)}return Yn(s,z,V,O,C,Xe.current,T)}}var At=S.ReactCurrentOwner,fr=S.ReactDebugCurrentFrame;function Te(s){if(s){var m=s._owner,v=at(s.type,s._source,m?m.type:null);fr.setExtraStackFrame(v)}else fr.setExtraStackFrame(null)}var zt;zt=!1;function Tt(s){return typeof s=="object"&&s!==null&&s.$$typeof===t}function pr(){{if(At.current){var s=W(At.current.type);if(s)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+s+"`."}return""}}function Kn(s){return""}var mr={};function Xn(s){{var m=pr();if(!m){var v=typeof s=="string"?s:s.displayName||s.name;v&&(m=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+v+">.")}return m}}function gr(s,m){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var v=Xn(m);if(mr[v])return;mr[v]=!0;var C="";s&&s._owner&&s._owner!==At.current&&(C=" It was passed a child from "+W(s._owner.type)+"."),Te(s),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,C),Te(null)}}function yr(s,m){{if(typeof s!="object")return;if(_t(s))for(var v=0;v<s.length;v++){var C=s[v];Tt(C)&&gr(C,m)}else if(Tt(s))s._store&&(s._store.validated=!0);else if(s){var O=E(s);if(typeof O=="function"&&O!==s.entries)for(var M=O.call(s),T;!(T=M.next()).done;)Tt(T.value)&&gr(T.value,m)}}}function Jn(s){{var m=s.type;if(m==null||typeof m=="string")return;var v;if(typeof m=="function")v=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===
|
|
25
|
+
Check the top-level render call using <`+v+">.")}return m}}function gr(s,m){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var v=Xn(m);if(mr[v])return;mr[v]=!0;var C="";s&&s._owner&&s._owner!==At.current&&(C=" It was passed a child from "+W(s._owner.type)+"."),Te(s),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,C),Te(null)}}function yr(s,m){{if(typeof s!="object")return;if(_t(s))for(var v=0;v<s.length;v++){var C=s[v];Tt(C)&&gr(C,m)}else if(Tt(s))s._store&&(s._store.validated=!0);else if(s){var O=E(s);if(typeof O=="function"&&O!==s.entries)for(var M=O.call(s),T;!(T=M.next()).done;)Tt(T.value)&&gr(T.value,m)}}}function Jn(s){{var m=s.type;if(m==null||typeof m=="string")return;var v;if(typeof m=="function")v=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===l||m.$$typeof===f))v=m.propTypes;else return;if(v){var C=W(m);Mn(v,s.props,"prop",C,s)}else if(m.PropTypes!==void 0&&!zt){zt=!0;var O=W(m);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zn(s){{for(var m=Object.keys(s.props),v=0;v<m.length;v++){var C=m[v];if(C!=="children"&&C!=="key"){Te(s),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Te(null);break}}s.ref!==null&&(Te(s),$("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}}var br={};function vr(s,m,v,C,O,M){{var T=fe(s);if(!T){var z="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).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.");var V=Kn();V?z+=V:z+=pr();var L;s===null?L="null":_t(s)?L="array":s!==void 0&&s.$$typeof===t?(L="<"+(W(s.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):L=typeof s,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,z)}var F=qn(s,m,v,O,M);if(F==null)return F;if(T){var ee=m.children;if(ee!==void 0)if(C)if(_t(ee)){for(var Oe=0;Oe<ee.length;Oe++)yr(ee[Oe],s);Object.freeze&&Object.freeze(ee)}else $("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 yr(ee,s)}if(Ke.call(m,"key")){var Se=W(s),q=Object.keys(m).filter(function(oo){return oo!=="key"}),Ot=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!br[Se+Ot]){var no=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ot,Se,no,Se),br[Se+Ot]=!0}}return s===n?Zn(F):Jn(F),F}}function Qn(s,m,v){return vr(s,m,v,!0)}function eo(s,m,v){return vr(s,m,v,!1)}var to=eo,ro=Qn;Ze.Fragment=n,Ze.jsx=to,Ze.jsxs=ro}()),Ze}process.env.NODE_ENV==="production"?Ft.exports=so():Ft.exports=ao();var l=Ft.exports,K=function(){return K=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},K.apply(this,arguments)};function Me(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 co(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var lo=/^((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)-.*))$/,uo=co(function(e){return lo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),B="-ms-",et="-moz-",D="-webkit-",Wr="comm",xt="rule",Kt="decl",ho="@import",Gr="@keyframes",fo="@layer",Ur=Math.abs,Xt=String.fromCharCode,Nt=Object.assign;function po(e,t){return G(e,0)^45?(((t<<2^G(e,0))<<2^G(e,1))<<2^G(e,2))<<2^G(e,3):0}function Vr(e){return e.trim()}function de(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,r){return e.replace(t,r)}function ft(e,t,r){return e.indexOf(t,r)}function G(e,t){return e.charCodeAt(t)|0}function Be(e,t,r){return e.slice(t,r)}function se(e){return e.length}function Yr(e){return e.length}function Qe(e,t){return t.push(e),e}function mo(e,t){return e.map(t).join("")}function wr(e,t){return e.filter(function(r){return!de(r,t)})}var wt=1,Le=1,qr=0,te=0,N=0,We="";function St(e,t,r,n,o,i,a,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:wt,column:Le,length:a,return:"",siblings:d}}function $e(e,t){return Nt(St("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function De(e){for(;e.root;)e=$e(e.root,{children:[e]});Qe(e,e.siblings)}function go(){return N}function yo(){return N=te>0?G(We,--te):0,Le--,N===10&&(Le=1,wt--),N}function ie(){return N=te<qr?G(We,te++):0,Le++,N===10&&(Le=1,wt++),N}function je(){return G(We,te)}function pt(){return te}function Ct(e,t){return Be(We,e,t)}function Ht(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 bo(e){return wt=Le=1,qr=se(We=e),te=0,[]}function vo(e){return We="",e}function Dt(e){return Vr(Ct(te-1,Wt(e===91?e+2:e===40?e+1:e)))}function $o(e){for(;(N=je())&&N<33;)ie();return Ht(e)>2||Ht(N)>3?"":" "}function xo(e,t){for(;--t&&ie()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return Ct(e,pt()+(t<6&&je()==32&&ie()==32))}function Wt(e){for(;ie();)switch(N){case e:return te;case 34:case 39:e!==34&&e!==39&&Wt(N);break;case 40:e===41&&Wt(e);break;case 92:ie();break}return te}function wo(e,t){for(;ie()&&e+N!==57;)if(e+N===84&&je()===47)break;return"/*"+Ct(t,te-1)+"*"+Xt(e===47?e:ie())}function So(e){for(;!Ht(je());)ie();return Ct(e,te)}function Co(e){return vo(mt("",null,null,null,[""],e=bo(e),0,[0],e))}function mt(e,t,r,n,o,i,a,d,c){for(var h=0,u=0,f=a,y=0,g=0,b=0,x=1,E=1,S=1,$=0,I="",A=o,P=i,R=n,w=I;E;)switch(b=$,$=ie()){case 40:if(b!=108&&G(w,f-1)==58){ft(w+=_(Dt($),"&","&\f"),"&\f",Ur(h?d[h-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:w+=Dt($);break;case 9:case 10:case 13:case 32:w+=$o(b);break;case 92:w+=xo(pt()-1,7);continue;case 47:switch(je()){case 42:case 47:Qe(ko(wo(ie(),pt()),t,r,c),c);break;default:w+="/"}break;case 123*x:d[h++]=se(w)*S;case 125*x:case 59:case 0:switch($){case 0:case 125:E=0;case 59+u:S==-1&&(w=_(w,/\f/g,"")),g>0&&se(w)-f&&Qe(g>32?Cr(w+";",n,r,f-1,c):Cr(_(w," ","")+";",n,r,f-2,c),c);break;case 59:w+=";";default:if(Qe(R=Sr(w,t,r,h,u,o,d,I,A=[],P=[],f,i),i),$===123)if(u===0)mt(w,t,R,R,A,i,f,d,P);else switch(y===99&&G(w,3)===110?100:y){case 100:case 108:case 109:case 115:mt(e,R,R,n&&Qe(Sr(e,R,R,0,0,o,d,I,o,A=[],f,P),P),o,P,f,d,n?A:P);break;default:mt(w,R,R,R,[""],P,0,d,P)}}h=u=g=0,x=S=1,I=w="",f=a;break;case 58:f=1+se(w),g=b;default:if(x<1){if($==123)--x;else if($==125&&x++==0&&yo()==125)continue}switch(w+=Xt($),$*x){case 38:S=u>0?1:(w+="\f",-1);break;case 44:d[h++]=(se(w)-1)*S,S=1;break;case 64:je()===45&&(w+=Dt(ie())),y=je(),u=f=se(I=w+=So(pt())),$++;break;case 45:b===45&&se(w)==2&&(x=0)}}return i}function Sr(e,t,r,n,o,i,a,d,c,h,u,f){for(var y=o-1,g=o===0?i:[""],b=Yr(g),x=0,E=0,S=0;x<n;++x)for(var $=0,I=Be(e,y+1,y=Ur(E=a[x])),A=e;$<b;++$)(A=Vr(E>0?g[$]+" "+I:_(I,/&\f/g,g[$])))&&(c[S++]=A);return St(e,t,r,o===0?xt:d,c,h,u,f)}function ko(e,t,r,n){return St(e,t,r,Wr,Xt(go()),Be(e,2,-2),0,n)}function Cr(e,t,r,n,o){return St(e,t,r,Kt,Be(e,0,n),Be(e,n+1,-1),n,o)}function Kr(e,t,r){switch(po(e,t)){case 5103:return D+"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 D+e+e;case 4789:return et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+et+e+B+e+e;case 5936:switch(G(e,t+11)){case 114:return D+e+B+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+B+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+B+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return D+e+B+e+e;case 6165:return D+e+B+"flex-"+e+e;case 5187:return D+e+_(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return D+e+B+"flex-item-"+_(e,/flex-|-self/g,"")+(de(e,/flex-|baseline/)?"":B+"grid-row-"+_(e,/flex-|-self/g,""))+e;case 4675:return D+e+B+"flex-line-pack"+_(e,/align-content|flex-|-self/g,"")+e;case 5548:return D+e+B+_(e,"shrink","negative")+e;case 5292:return D+e+B+_(e,"basis","preferred-size")+e;case 6060:return D+"box-"+_(e,"-grow","")+D+e+B+_(e,"grow","positive")+e;case 4554:return D+_(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4200:if(!de(e,/flex-|baseline/))return B+"grid-column-align"+Be(e,t)+e;break;case 2592:case 3360:return B+_(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,de(n.props,/grid-\w+-end/)})?~ft(e+(r=r[t].value),"span",0)?e:B+_(e,"-start","")+e+B+"grid-row-span:"+(~ft(r,"span",0)?de(r,/\d+/):+de(r,/\d+/)-+de(e,/\d+/))+";":B+_(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return de(n.props,/grid-\w+-start/)})?e:B+_(_(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,D+"$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(se(e)-1-t>6)switch(G(e,t+1)){case 109:if(G(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+et+(G(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch",0)?Kr(_(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return _(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,d,c,h){return B+o+":"+i+h+(a?B+o+"-span:"+(d?c:+c-+i)+h:"")+e});case 4949:if(G(e,t+6)===121)return _(e,":",":"+D)+e;break;case 6444:switch(G(e,G(e,14)===45?18:11)){case 120:return _(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+D+(G(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+B+"$2box$3")+e;case 100:return _(e,":",":"+B)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _(e,"scroll-","scroll-snap-")+e}return e}function bt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function jo(e,t,r,n){switch(e.type){case fo:if(e.children.length)break;case ho:case Kt:return e.return=e.return||e.value;case Wr:return"";case Gr:return e.return=e.value+"{"+bt(e.children,n)+"}";case xt:if(!se(e.value=e.props.join(",")))return""}return se(r=bt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Eo(e){var t=Yr(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 Io(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ro(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kt:e.return=Kr(e.value,e.length,r);return;case Gr:return bt([$e(e,{value:_(e.value,"@","@"+D)})],n);case xt:if(e.length)return mo(r=e.props,function(o){switch(de(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":De($e(e,{props:[_(o,/:(read-\w+)/,":"+et+"$1")]})),De($e(e,{props:[o]})),Nt(e,{props:wr(r,n)});break;case"::placeholder":De($e(e,{props:[_(o,/:(plac\w+)/,":"+D+"input-$1")]})),De($e(e,{props:[_(o,/:(plac\w+)/,":"+et+"$1")]})),De($e(e,{props:[_(o,/:(plac\w+)/,B+"input-$1")]})),De($e(e,{props:[o]})),Nt(e,{props:wr(r,n)});break}return""})}}var _o={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},Ie=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xr="active",Jr="data-styled-version",kt="6.1.13",Jt=`/*!sc*/
|
|
30
|
+
<%s key={someKey} {...props} />`,Ot,Se,no,Se),br[Se+Ot]=!0}}return s===n?Zn(F):Jn(F),F}}function Qn(s,m,v){return vr(s,m,v,!0)}function eo(s,m,v){return vr(s,m,v,!1)}var to=eo,ro=Qn;Ze.Fragment=n,Ze.jsx=to,Ze.jsxs=ro}()),Ze}process.env.NODE_ENV==="production"?Ft.exports=so():Ft.exports=ao();var c=Ft.exports,K=function(){return K=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},K.apply(this,arguments)};function Me(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 co(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var lo=/^((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)-.*))$/,uo=co(function(e){return lo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),B="-ms-",et="-moz-",D="-webkit-",Wr="comm",xt="rule",Kt="decl",ho="@import",Gr="@keyframes",fo="@layer",Ur=Math.abs,Xt=String.fromCharCode,Nt=Object.assign;function po(e,t){return G(e,0)^45?(((t<<2^G(e,0))<<2^G(e,1))<<2^G(e,2))<<2^G(e,3):0}function Vr(e){return e.trim()}function de(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,r){return e.replace(t,r)}function ft(e,t,r){return e.indexOf(t,r)}function G(e,t){return e.charCodeAt(t)|0}function Be(e,t,r){return e.slice(t,r)}function se(e){return e.length}function Yr(e){return e.length}function Qe(e,t){return t.push(e),e}function mo(e,t){return e.map(t).join("")}function wr(e,t){return e.filter(function(r){return!de(r,t)})}var wt=1,Le=1,qr=0,te=0,N=0,We="";function St(e,t,r,n,o,i,a,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:wt,column:Le,length:a,return:"",siblings:d}}function $e(e,t){return Nt(St("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function De(e){for(;e.root;)e=$e(e.root,{children:[e]});Qe(e,e.siblings)}function go(){return N}function yo(){return N=te>0?G(We,--te):0,Le--,N===10&&(Le=1,wt--),N}function ie(){return N=te<qr?G(We,te++):0,Le++,N===10&&(Le=1,wt++),N}function je(){return G(We,te)}function pt(){return te}function Ct(e,t){return Be(We,e,t)}function Ht(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 bo(e){return wt=Le=1,qr=se(We=e),te=0,[]}function vo(e){return We="",e}function Dt(e){return Vr(Ct(te-1,Wt(e===91?e+2:e===40?e+1:e)))}function $o(e){for(;(N=je())&&N<33;)ie();return Ht(e)>2||Ht(N)>3?"":" "}function xo(e,t){for(;--t&&ie()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return Ct(e,pt()+(t<6&&je()==32&&ie()==32))}function Wt(e){for(;ie();)switch(N){case e:return te;case 34:case 39:e!==34&&e!==39&&Wt(N);break;case 40:e===41&&Wt(e);break;case 92:ie();break}return te}function wo(e,t){for(;ie()&&e+N!==57;)if(e+N===84&&je()===47)break;return"/*"+Ct(t,te-1)+"*"+Xt(e===47?e:ie())}function So(e){for(;!Ht(je());)ie();return Ct(e,te)}function Co(e){return vo(mt("",null,null,null,[""],e=bo(e),0,[0],e))}function mt(e,t,r,n,o,i,a,d,l){for(var h=0,u=0,f=a,y=0,g=0,b=0,x=1,E=1,S=1,$=0,I="",A=o,P=i,R=n,w=I;E;)switch(b=$,$=ie()){case 40:if(b!=108&&G(w,f-1)==58){ft(w+=_(Dt($),"&","&\f"),"&\f",Ur(h?d[h-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:w+=Dt($);break;case 9:case 10:case 13:case 32:w+=$o(b);break;case 92:w+=xo(pt()-1,7);continue;case 47:switch(je()){case 42:case 47:Qe(ko(wo(ie(),pt()),t,r,l),l);break;default:w+="/"}break;case 123*x:d[h++]=se(w)*S;case 125*x:case 59:case 0:switch($){case 0:case 125:E=0;case 59+u:S==-1&&(w=_(w,/\f/g,"")),g>0&&se(w)-f&&Qe(g>32?Cr(w+";",n,r,f-1,l):Cr(_(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(Qe(R=Sr(w,t,r,h,u,o,d,I,A=[],P=[],f,i),i),$===123)if(u===0)mt(w,t,R,R,A,i,f,d,P);else switch(y===99&&G(w,3)===110?100:y){case 100:case 108:case 109:case 115:mt(e,R,R,n&&Qe(Sr(e,R,R,0,0,o,d,I,o,A=[],f,P),P),o,P,f,d,n?A:P);break;default:mt(w,R,R,R,[""],P,0,d,P)}}h=u=g=0,x=S=1,I=w="",f=a;break;case 58:f=1+se(w),g=b;default:if(x<1){if($==123)--x;else if($==125&&x++==0&&yo()==125)continue}switch(w+=Xt($),$*x){case 38:S=u>0?1:(w+="\f",-1);break;case 44:d[h++]=(se(w)-1)*S,S=1;break;case 64:je()===45&&(w+=Dt(ie())),y=je(),u=f=se(I=w+=So(pt())),$++;break;case 45:b===45&&se(w)==2&&(x=0)}}return i}function Sr(e,t,r,n,o,i,a,d,l,h,u,f){for(var y=o-1,g=o===0?i:[""],b=Yr(g),x=0,E=0,S=0;x<n;++x)for(var $=0,I=Be(e,y+1,y=Ur(E=a[x])),A=e;$<b;++$)(A=Vr(E>0?g[$]+" "+I:_(I,/&\f/g,g[$])))&&(l[S++]=A);return St(e,t,r,o===0?xt:d,l,h,u,f)}function ko(e,t,r,n){return St(e,t,r,Wr,Xt(go()),Be(e,2,-2),0,n)}function Cr(e,t,r,n,o){return St(e,t,r,Kt,Be(e,0,n),Be(e,n+1,-1),n,o)}function Kr(e,t,r){switch(po(e,t)){case 5103:return D+"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 D+e+e;case 4789:return et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+et+e+B+e+e;case 5936:switch(G(e,t+11)){case 114:return D+e+B+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+B+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+B+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return D+e+B+e+e;case 6165:return D+e+B+"flex-"+e+e;case 5187:return D+e+_(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return D+e+B+"flex-item-"+_(e,/flex-|-self/g,"")+(de(e,/flex-|baseline/)?"":B+"grid-row-"+_(e,/flex-|-self/g,""))+e;case 4675:return D+e+B+"flex-line-pack"+_(e,/align-content|flex-|-self/g,"")+e;case 5548:return D+e+B+_(e,"shrink","negative")+e;case 5292:return D+e+B+_(e,"basis","preferred-size")+e;case 6060:return D+"box-"+_(e,"-grow","")+D+e+B+_(e,"grow","positive")+e;case 4554:return D+_(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4200:if(!de(e,/flex-|baseline/))return B+"grid-column-align"+Be(e,t)+e;break;case 2592:case 3360:return B+_(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,de(n.props,/grid-\w+-end/)})?~ft(e+(r=r[t].value),"span",0)?e:B+_(e,"-start","")+e+B+"grid-row-span:"+(~ft(r,"span",0)?de(r,/\d+/):+de(r,/\d+/)-+de(e,/\d+/))+";":B+_(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return de(n.props,/grid-\w+-start/)})?e:B+_(_(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,D+"$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(se(e)-1-t>6)switch(G(e,t+1)){case 109:if(G(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+et+(G(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch",0)?Kr(_(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return _(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,d,l,h){return B+o+":"+i+h+(a?B+o+"-span:"+(d?l:+l-+i)+h:"")+e});case 4949:if(G(e,t+6)===121)return _(e,":",":"+D)+e;break;case 6444:switch(G(e,G(e,14)===45?18:11)){case 120:return _(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+D+(G(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+B+"$2box$3")+e;case 100:return _(e,":",":"+B)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _(e,"scroll-","scroll-snap-")+e}return e}function bt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function jo(e,t,r,n){switch(e.type){case fo:if(e.children.length)break;case ho:case Kt:return e.return=e.return||e.value;case Wr:return"";case Gr:return e.return=e.value+"{"+bt(e.children,n)+"}";case xt:if(!se(e.value=e.props.join(",")))return""}return se(r=bt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Eo(e){var t=Yr(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 Io(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ro(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kt:e.return=Kr(e.value,e.length,r);return;case Gr:return bt([$e(e,{value:_(e.value,"@","@"+D)})],n);case xt:if(e.length)return mo(r=e.props,function(o){switch(de(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":De($e(e,{props:[_(o,/:(read-\w+)/,":"+et+"$1")]})),De($e(e,{props:[o]})),Nt(e,{props:wr(r,n)});break;case"::placeholder":De($e(e,{props:[_(o,/:(plac\w+)/,":"+D+"input-$1")]})),De($e(e,{props:[_(o,/:(plac\w+)/,":"+et+"$1")]})),De($e(e,{props:[_(o,/:(plac\w+)/,B+"input-$1")]})),De($e(e,{props:[o]})),Nt(e,{props:wr(r,n)});break}return""})}}var _o={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},Ie=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xr="active",Jr="data-styled-version",kt="6.1.13",Jt=`/*!sc*/
|
|
31
31
|
`,vt=typeof window<"u"&&"HTMLElement"in window,Po=!!(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"),kr=/invalid hook call/i,lt=new Set,Ao=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.
|
|
32
32
|
`)+`You may see this warning because you've called styled inside another component.
|
|
33
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var d=[],
|
|
33
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var d=[],l=1;l<arguments.length;l++)d[l-1]=arguments[l];kr.test(a)?(i=!1,lt.delete(n)):o.apply(void 0,Me([a],d,!1))},p.useRef(),i&&!lt.has(n)&&(console.warn(n),lt.add(n))}catch(a){kr.test(a.message)&<.delete(n)}finally{console.error=o}}},jt=Object.freeze([]),Fe=Object.freeze({});function zo(e,t,r){return r===void 0&&(r=Fe),e.theme!==r.theme&&e.theme||t||r.theme}var Gt=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"]),To=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oo=/(^-|-$)/g;function jr(e){return e.replace(To,"-").replace(Oo,"")}var Do=/(a)(d)/gi,dt=52,Er=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ut(e){var t,r="";for(t=Math.abs(e);t>dt;t=t/dt|0)r=Er(t%dt)+r;return(Er(t%dt)+r).replace(Do,"$1-$2")}var Mt,Zr=5381,Ce=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Qr=function(e){return Ce(Zr,e)};function Mo(e){return Ut(Qr(e)>>>0)}function en(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Bt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var tn=typeof Symbol=="function"&&Symbol.for,rn=tn?Symbol.for("react.memo"):60115,Bo=tn?Symbol.for("react.forward_ref"):60112,Lo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},No=((Mt={})[Bo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mt[rn]=nn,Mt);function Ir(e){return("type"in(t=e)&&t.type.$$typeof)===rn?nn:"$$typeof"in e?No[e.$$typeof]:Lo;var t}var Ho=Object.defineProperty,Wo=Object.getOwnPropertyNames,Rr=Object.getOwnPropertySymbols,Go=Object.getOwnPropertyDescriptor,Uo=Object.getPrototypeOf,_r=Object.prototype;function on(e,t,r){if(typeof t!="string"){if(_r){var n=Uo(t);n&&n!==_r&&on(e,n,r)}var o=Wo(t);Rr&&(o=o.concat(Rr(t)));for(var i=Ir(e),a=Ir(t),d=0;d<o.length;++d){var l=o[d];if(!(l in Fo||r&&r[l]||a&&l in a||i&&l in i)){var h=Go(t,l);try{Ho(e,l,h)}catch{}}}}return e}function Ne(e){return typeof e=="function"}function Zt(e){return typeof e=="object"&&"styledComponentId"in e}function ke(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Pr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function He(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Vt(e,t,r){if(r===void 0&&(r=!1),!r&&!He(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Vt(e[n],t[n]);else if(He(t))for(var n in t)e[n]=Vt(e[n],t[n]);return e}function Qt(e,t){Object.defineProperty(e,"toString",{value:t})}var Vo=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
34
34
|
|
|
35
35
|
`,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.
|
|
36
36
|
|
|
@@ -71,7 +71,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
71
71
|
|
|
72
72
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
73
73
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
74
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Yo(){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 Ge(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(Yo.apply(void 0,Me([Vo[e]],t,!1)).trim())}var qo=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 Ge(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),c=(a=0,r.length);a<c;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(Jt);return r},e}(),Ko=1<<30,gt=new Map,$t=new Map,yt=1,ut=function(e){if(gt.has(e))return gt.get(e);for(;$t.has(yt);)yt++;var t=yt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Ko))throw Ge(16,"".concat(t));return gt.set(e,t),$t.set(t,e),t},Xo=function(e,t){yt=t+1,gt.set(e,t),$t.set(t,e)},Jo="style[".concat(Ie,"][").concat(Jr,'="').concat(kt,'"]'),Zo=new RegExp("^".concat(Ie,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qo=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)},ei=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Jt),o=[],i=0,a=n.length;i<a;i++){var d=n[i].trim();if(d){var c=d.match(Zo);if(c){var h=0|parseInt(c[1],10),u=c[2];h!==0&&(Xo(u,h),Qo(e,u,c[3]),e.getTag().insertRules(h,o)),o.length=0}else o.push(d)}}},Ar=function(e){for(var t=document.querySelectorAll(Jo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ie)!==Xr&&(ei(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ti(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var sn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(d){var c=Array.from(d.querySelectorAll("style[".concat(Ie,"]")));return c[c.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ie,Xr),n.setAttribute(Jr,kt);var a=ti();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ri=function(){function e(t){this.element=sn(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 Ge(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}(),ni=function(){function e(t){this.element=sn(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}(),oi=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}(),zr=vt,ii={isServer:!vt,useCSSOMInjection:!Po},an=function(){function e(t,r,n){t===void 0&&(t=Fe),r===void 0&&(r={});var o=this;this.options=K(K({},ii),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&vt&&zr&&(zr=!1,Ar(this)),Qt(this,function(){return function(i){for(var a=i.getTag(),d=a.length,c="",h=function(f){var y=function(S){return $t.get(S)}(f);if(y===void 0)return"continue";var g=i.names.get(y),b=a.getGroup(f);if(g===void 0||!g.size||b.length===0)return"continue";var x="".concat(Ie,".g").concat(f,'[id="').concat(y,'"]'),E="";g!==void 0&&g.forEach(function(S){S.length>0&&(E+="".concat(S,","))}),c+="".concat(b).concat(x,'{content:"').concat(E,'"}').concat(Jt)},u=0;u<d;u++)h(u);return c}(o)})}return e.registerId=function(t){return ut(t)},e.prototype.rehydrate=function(){!this.server&&vt&&Ar(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(K(K({},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 oi(o):n?new ri(o):new ni(o)}(this.options),new qo(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(ut(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(ut(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ut(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),si=/&/g,ai=/^\s*\/\/.*$/gm;function cn(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=cn(r.children,t)),r})}function ci(e){var t,r,n,o=Fe,i=o.options,a=i===void 0?Fe:i,d=o.plugins,c=d===void 0?jt:d,h=function(y,g,b){return b.startsWith(r)&&b.endsWith(r)&&b.replaceAll(r,"").length>0?".".concat(t):y},u=c.slice();u.push(function(y){y.type===xt&&y.value.includes("&")&&(y.props[0]=y.props[0].replace(si,r).replace(n,h))}),a.prefix&&u.push(Ro),u.push(jo);var f=function(y,g,b,x){g===void 0&&(g=""),b===void 0&&(b=""),x===void 0&&(x="&"),t=x,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var E=y.replace(ai,""),S=Co(b||g?"".concat(b," ").concat(g," { ").concat(E," }"):E);a.namespace&&(S=cn(S,a.namespace));var $=[];return bt(S,Eo(u.concat(Io(function(I){return $.push(I)})))),$};return f.hash=c.length?c.reduce(function(y,g){return g.name||Ge(15),Ce(y,g.name)},Zr).toString():"",f}var li=new an,Yt=ci(),ln=p.createContext({shouldForwardProp:void 0,styleSheet:li,stylis:Yt});ln.Consumer;p.createContext(void 0);function Tr(){return p.useContext(ln)}var Or=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=Yt);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,Qt(this,function(){throw Ge(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Yt),this.name+t.hash},e}(),di=function(e){return e>="A"&&e<="Z"};function Dr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;di(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var dn=function(e){return e==null||e===!1||e===""},un=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!dn(i)&&(Array.isArray(i)&&i.isCss||Ne(i)?n.push("".concat(Dr(o),":"),i,";"):He(i)?n.push.apply(n,Me(Me(["".concat(o," {")],un(i),!1),["}"],!1)):n.push("".concat(Dr(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in _o||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ee(e,t,r,n){if(dn(e))return[];if(Zt(e))return[".".concat(e.styledComponentId)];if(Ne(e)){if(!Ne(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 Or||He(o)||o===null||console.error("".concat(en(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.")),Ee(o,t,r,n)}var i;return e instanceof Or?r?(e.inject(r,n),[e.getName(n)]):[e]:He(e)?un(e):Array.isArray(e)?Array.prototype.concat.apply(jt,e.map(function(a){return Ee(a,t,r,n)})):[e.toString()]}function ui(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ne(r)&&!Zt(r))return!1}return!0}var hi=Qr(kt),fi=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&ui(t),this.componentId=r,this.baseHash=Ce(hi,r),this.baseStyle=n,an.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=ke(o,this.staticRulesId);else{var i=Pr(Ee(this.rules,t,r,n)),a=Ut(Ce(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=ke(o,a),this.staticRulesId=a}else{for(var c=Ce(this.baseHash,n.hash),h="",u=0;u<this.rules.length;u++){var f=this.rules[u];if(typeof f=="string")h+=f,process.env.NODE_ENV!=="production"&&(c=Ce(c,f));else if(f){var y=Pr(Ee(f,t,r,n));c=Ce(c,y+u),h+=y}}if(h){var g=Ut(c>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(h,".".concat(g),void 0,this.componentId)),o=ke(o,g)}}return o},e}(),hn=p.createContext(void 0);hn.Consumer;var Lt={},Mr=new Set;function pi(e,t,r){var n=Zt(e),o=e,i=!Bt(e),a=t.attrs,d=a===void 0?jt:a,c=t.componentId,h=c===void 0?function(A,P){var R=typeof A!="string"?"sc":jr(A);Lt[R]=(Lt[R]||0)+1;var w="".concat(R,"-").concat(Mo(kt+R+Lt[R]));return P?"".concat(P,"-").concat(w):w}(t.displayName,t.parentComponentId):c,u=t.displayName,f=u===void 0?function(A){return Bt(A)?"styled.".concat(A):"Styled(".concat(en(A),")")}(e):u,y=t.displayName&&t.componentId?"".concat(jr(t.displayName),"-").concat(t.componentId):t.componentId||h,g=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,b=t.shouldForwardProp;if(n&&o.shouldForwardProp){var x=o.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;b=function(A,P){return x(A,P)&&E(A,P)}}else b=x}var S=new fi(r,y,n?o.componentStyle:void 0);function $(A,P){return function(R,w,H){var J=R.attrs,fe=R.componentStyle,pe=R.defaultProps,me=R.foldedComponentIds,W=R.styledComponentId,ce=R.target,we=p.useContext(hn),st=Tr(),_e=R.shouldForwardProp||st.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(W);var Ye=zo(w,we,pe)||Fe,Q=function(Ae,le,be){for(var re,ne=K(K({},le),{className:void 0,theme:be}),ve=0;ve<Ae.length;ve+=1){var ze=Ne(re=Ae[ve])?re(ne):re;for(var oe in ze)ne[oe]=oe==="className"?ke(ne[oe],ze[oe]):oe==="style"?K(K({},ne[oe]),ze[oe]):ze[oe]}return le.className&&(ne.className=ke(ne.className,le.className)),ne}(J,w,Ye),ge=Q.as||ce,ye={};for(var U in Q)Q[U]===void 0||U[0]==="$"||U==="as"||U==="theme"&&Q.theme===Ye||(U==="forwardedAs"?ye.as=Q.forwardedAs:_e&&!_e(U,ge)||(ye[U]=Q[U],_e||process.env.NODE_ENV!=="development"||uo(U)||Mr.has(U)||!Gt.has(ge)||(Mr.add(U),console.warn('styled-components: it looks like an unknown prop "'.concat(U,'" 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 Pe=function(Ae,le){var be=Tr(),re=Ae.generateAndInjectStyles(le,be.styleSheet,be.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(re),re}(fe,Q);process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(Pe);var qe=ke(me,W);return Pe&&(qe+=" "+Pe),Q.className&&(qe+=" "+Q.className),ye[Bt(ge)&&!Gt.has(ge)?"class":"className"]=qe,ye.ref=H,p.createElement(ge,ye)}(I,A,P)}$.displayName=f;var I=p.forwardRef($);return I.attrs=g,I.componentStyle=S,I.displayName=f,I.shouldForwardProp=b,I.foldedComponentIds=n?ke(o.foldedComponentIds,o.styledComponentId):"",I.styledComponentId=y,I.target=n?o.target:e,Object.defineProperty(I,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=n?function(P){for(var R=[],w=1;w<arguments.length;w++)R[w-1]=arguments[w];for(var H=0,J=R;H<J.length;H++)Vt(P,J[H],!0);return P}({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(Ao(f,y),I.warnTooManyClasses=function(A,P){var R={},w=!1;return function(H){if(!w&&(R[H]=!0,Object.keys(R).length>=200)){var J=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(J,`.
|
|
74
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Yo(){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 Ge(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(Yo.apply(void 0,Me([Vo[e]],t,!1)).trim())}var qo=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 Ge(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(Jt);return r},e}(),Ko=1<<30,gt=new Map,$t=new Map,yt=1,ut=function(e){if(gt.has(e))return gt.get(e);for(;$t.has(yt);)yt++;var t=yt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Ko))throw Ge(16,"".concat(t));return gt.set(e,t),$t.set(t,e),t},Xo=function(e,t){yt=t+1,gt.set(e,t),$t.set(t,e)},Jo="style[".concat(Ie,"][").concat(Jr,'="').concat(kt,'"]'),Zo=new RegExp("^".concat(Ie,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qo=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)},ei=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Jt),o=[],i=0,a=n.length;i<a;i++){var d=n[i].trim();if(d){var l=d.match(Zo);if(l){var h=0|parseInt(l[1],10),u=l[2];h!==0&&(Xo(u,h),Qo(e,u,l[3]),e.getTag().insertRules(h,o)),o.length=0}else o.push(d)}}},Ar=function(e){for(var t=document.querySelectorAll(Jo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ie)!==Xr&&(ei(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ti(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var sn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(d){var l=Array.from(d.querySelectorAll("style[".concat(Ie,"]")));return l[l.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ie,Xr),n.setAttribute(Jr,kt);var a=ti();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ri=function(){function e(t){this.element=sn(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 Ge(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}(),ni=function(){function e(t){this.element=sn(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}(),oi=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}(),zr=vt,ii={isServer:!vt,useCSSOMInjection:!Po},an=function(){function e(t,r,n){t===void 0&&(t=Fe),r===void 0&&(r={});var o=this;this.options=K(K({},ii),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&vt&&zr&&(zr=!1,Ar(this)),Qt(this,function(){return function(i){for(var a=i.getTag(),d=a.length,l="",h=function(f){var y=function(S){return $t.get(S)}(f);if(y===void 0)return"continue";var g=i.names.get(y),b=a.getGroup(f);if(g===void 0||!g.size||b.length===0)return"continue";var x="".concat(Ie,".g").concat(f,'[id="').concat(y,'"]'),E="";g!==void 0&&g.forEach(function(S){S.length>0&&(E+="".concat(S,","))}),l+="".concat(b).concat(x,'{content:"').concat(E,'"}').concat(Jt)},u=0;u<d;u++)h(u);return l}(o)})}return e.registerId=function(t){return ut(t)},e.prototype.rehydrate=function(){!this.server&&vt&&Ar(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(K(K({},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 oi(o):n?new ri(o):new ni(o)}(this.options),new qo(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(ut(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(ut(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ut(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),si=/&/g,ai=/^\s*\/\/.*$/gm;function cn(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=cn(r.children,t)),r})}function ci(e){var t,r,n,o=Fe,i=o.options,a=i===void 0?Fe:i,d=o.plugins,l=d===void 0?jt:d,h=function(y,g,b){return b.startsWith(r)&&b.endsWith(r)&&b.replaceAll(r,"").length>0?".".concat(t):y},u=l.slice();u.push(function(y){y.type===xt&&y.value.includes("&")&&(y.props[0]=y.props[0].replace(si,r).replace(n,h))}),a.prefix&&u.push(Ro),u.push(jo);var f=function(y,g,b,x){g===void 0&&(g=""),b===void 0&&(b=""),x===void 0&&(x="&"),t=x,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var E=y.replace(ai,""),S=Co(b||g?"".concat(b," ").concat(g," { ").concat(E," }"):E);a.namespace&&(S=cn(S,a.namespace));var $=[];return bt(S,Eo(u.concat(Io(function(I){return $.push(I)})))),$};return f.hash=l.length?l.reduce(function(y,g){return g.name||Ge(15),Ce(y,g.name)},Zr).toString():"",f}var li=new an,Yt=ci(),ln=p.createContext({shouldForwardProp:void 0,styleSheet:li,stylis:Yt});ln.Consumer;p.createContext(void 0);function Tr(){return p.useContext(ln)}var Or=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=Yt);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,Qt(this,function(){throw Ge(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Yt),this.name+t.hash},e}(),di=function(e){return e>="A"&&e<="Z"};function Dr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;di(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var dn=function(e){return e==null||e===!1||e===""},un=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!dn(i)&&(Array.isArray(i)&&i.isCss||Ne(i)?n.push("".concat(Dr(o),":"),i,";"):He(i)?n.push.apply(n,Me(Me(["".concat(o," {")],un(i),!1),["}"],!1)):n.push("".concat(Dr(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in _o||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ee(e,t,r,n){if(dn(e))return[];if(Zt(e))return[".".concat(e.styledComponentId)];if(Ne(e)){if(!Ne(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 Or||He(o)||o===null||console.error("".concat(en(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.")),Ee(o,t,r,n)}var i;return e instanceof Or?r?(e.inject(r,n),[e.getName(n)]):[e]:He(e)?un(e):Array.isArray(e)?Array.prototype.concat.apply(jt,e.map(function(a){return Ee(a,t,r,n)})):[e.toString()]}function ui(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ne(r)&&!Zt(r))return!1}return!0}var hi=Qr(kt),fi=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&ui(t),this.componentId=r,this.baseHash=Ce(hi,r),this.baseStyle=n,an.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=ke(o,this.staticRulesId);else{var i=Pr(Ee(this.rules,t,r,n)),a=Ut(Ce(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=ke(o,a),this.staticRulesId=a}else{for(var l=Ce(this.baseHash,n.hash),h="",u=0;u<this.rules.length;u++){var f=this.rules[u];if(typeof f=="string")h+=f,process.env.NODE_ENV!=="production"&&(l=Ce(l,f));else if(f){var y=Pr(Ee(f,t,r,n));l=Ce(l,y+u),h+=y}}if(h){var g=Ut(l>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(h,".".concat(g),void 0,this.componentId)),o=ke(o,g)}}return o},e}(),hn=p.createContext(void 0);hn.Consumer;var Lt={},Mr=new Set;function pi(e,t,r){var n=Zt(e),o=e,i=!Bt(e),a=t.attrs,d=a===void 0?jt:a,l=t.componentId,h=l===void 0?function(A,P){var R=typeof A!="string"?"sc":jr(A);Lt[R]=(Lt[R]||0)+1;var w="".concat(R,"-").concat(Mo(kt+R+Lt[R]));return P?"".concat(P,"-").concat(w):w}(t.displayName,t.parentComponentId):l,u=t.displayName,f=u===void 0?function(A){return Bt(A)?"styled.".concat(A):"Styled(".concat(en(A),")")}(e):u,y=t.displayName&&t.componentId?"".concat(jr(t.displayName),"-").concat(t.componentId):t.componentId||h,g=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,b=t.shouldForwardProp;if(n&&o.shouldForwardProp){var x=o.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;b=function(A,P){return x(A,P)&&E(A,P)}}else b=x}var S=new fi(r,y,n?o.componentStyle:void 0);function $(A,P){return function(R,w,H){var J=R.attrs,fe=R.componentStyle,pe=R.defaultProps,me=R.foldedComponentIds,W=R.styledComponentId,ce=R.target,we=p.useContext(hn),st=Tr(),_e=R.shouldForwardProp||st.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(W);var Ye=zo(w,we,pe)||Fe,Q=function(Ae,le,be){for(var re,ne=K(K({},le),{className:void 0,theme:be}),ve=0;ve<Ae.length;ve+=1){var ze=Ne(re=Ae[ve])?re(ne):re;for(var oe in ze)ne[oe]=oe==="className"?ke(ne[oe],ze[oe]):oe==="style"?K(K({},ne[oe]),ze[oe]):ze[oe]}return le.className&&(ne.className=ke(ne.className,le.className)),ne}(J,w,Ye),ge=Q.as||ce,ye={};for(var U in Q)Q[U]===void 0||U[0]==="$"||U==="as"||U==="theme"&&Q.theme===Ye||(U==="forwardedAs"?ye.as=Q.forwardedAs:_e&&!_e(U,ge)||(ye[U]=Q[U],_e||process.env.NODE_ENV!=="development"||uo(U)||Mr.has(U)||!Gt.has(ge)||(Mr.add(U),console.warn('styled-components: it looks like an unknown prop "'.concat(U,'" 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 Pe=function(Ae,le){var be=Tr(),re=Ae.generateAndInjectStyles(le,be.styleSheet,be.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(re),re}(fe,Q);process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(Pe);var qe=ke(me,W);return Pe&&(qe+=" "+Pe),Q.className&&(qe+=" "+Q.className),ye[Bt(ge)&&!Gt.has(ge)?"class":"className"]=qe,ye.ref=H,p.createElement(ge,ye)}(I,A,P)}$.displayName=f;var I=p.forwardRef($);return I.attrs=g,I.componentStyle=S,I.displayName=f,I.shouldForwardProp=b,I.foldedComponentIds=n?ke(o.foldedComponentIds,o.styledComponentId):"",I.styledComponentId=y,I.target=n?o.target:e,Object.defineProperty(I,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=n?function(P){for(var R=[],w=1;w<arguments.length;w++)R[w-1]=arguments[w];for(var H=0,J=R;H<J.length;H++)Vt(P,J[H],!0);return P}({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(Ao(f,y),I.warnTooManyClasses=function(A,P){var R={},w=!1;return function(H){if(!w&&(R[H]=!0,Object.keys(R).length>=200)){var J=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(J,`.
|
|
75
75
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
76
76
|
Example:
|
|
77
77
|
const Component = styled.div.attrs(props => ({
|
|
@@ -165,7 +165,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
165
165
|
pointer-events: none;
|
|
166
166
|
|
|
167
167
|
${Ue}
|
|
168
|
-
`,er=({errorId:e,testId:t,message:r="Invalid input",visible:n=!1,style:o,theme:i})=>
|
|
168
|
+
`,er=({errorId:e,testId:t,message:r="Invalid input",visible:n=!1,style:o,theme:i})=>c.jsx(vi,{id:e,$visible:n,"data-testid":t,style:o,$theme:i,"aria-hidden":!n,children:r});var Z=(e=>(e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Help="help",e))(Z||{}),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||{}),Y=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Y||{}),tr=(e=>(e.Light="light",e.Dark="dark",e))(tr||{}),rr=(e=>(e.Span="span",e.Div="div",e.P="p",e.Strong="strong",e.Em="em",e))(rr||{});const $i=p.lazy(()=>Promise.resolve().then(()=>fs)),xi=p.lazy(()=>Promise.resolve().then(()=>ps)),wi=p.lazy(()=>Promise.resolve().then(()=>require("./BackIcon-e-_x5Urp.cjs"))),Si=p.lazy(()=>Promise.resolve().then(()=>require("./CancelIcon-BZhunXFX.cjs"))),Ci=p.lazy(()=>Promise.resolve().then(()=>ss)),ki=p.lazy(()=>Promise.resolve().then(()=>as)),ji=p.lazy(()=>Promise.resolve().then(()=>Is)),Ei=p.lazy(()=>Promise.resolve().then(()=>require("./ChevronDownIcon-Ddfa_dez.cjs"))),Ii=p.lazy(()=>Promise.resolve().then(()=>require("./ChevronLeftIcon-d_wvCNh1.cjs"))),Ri=p.lazy(()=>Promise.resolve().then(()=>require("./ChevronRightIcon-DniNfn1t.cjs"))),_i=p.lazy(()=>Promise.resolve().then(()=>require("./ChevronUpIcon-DEWXf2el.cjs"))),Pi=p.lazy(()=>Promise.resolve().then(()=>require("./ClearIcon-BMgJN8bc.cjs"))),Ai=p.lazy(()=>Promise.resolve().then(()=>require("./CopyIcon-DTRIj9l1.cjs"))),zi=p.lazy(()=>Promise.resolve().then(()=>require("./CutIcon-BR6xOpd4.cjs"))),Ti=p.lazy(()=>Promise.resolve().then(()=>require("./DeleteIcon-nz_hRmmb.cjs"))),Oi=p.lazy(()=>Promise.resolve().then(()=>require("./DownloadIcon-Cy81XZnF.cjs"))),Di=p.lazy(()=>Promise.resolve().then(()=>Ba)),Mi=p.lazy(()=>Promise.resolve().then(()=>require("./ForwardIcon-BKziJAna.cjs"))),Bi=p.lazy(()=>Promise.resolve().then(()=>require("./GraduateIcon-DNxxAuYA.cjs"))),Li=p.lazy(()=>Promise.resolve().then(()=>La)),Fi=p.lazy(()=>Promise.resolve().then(()=>require("./HideIcon-DG20Tl0A.cjs"))),Ni=p.lazy(()=>Promise.resolve().then(()=>require("./HomeIcon-hwlLHWaR.cjs"))),Hi=p.lazy(()=>Promise.resolve().then(()=>Fa)),Wi=p.lazy(()=>Promise.resolve().then(()=>require("./LoginIcon-DBezvQQB.cjs"))),Gi=p.lazy(()=>Promise.resolve().then(()=>require("./PasteIcon-D59158Zj.cjs"))),Ui=p.lazy(()=>Promise.resolve().then(()=>require("./QuestionIcon-CIpm7LMG.cjs"))),Vi=p.lazy(()=>Promise.resolve().then(()=>require("./RemoveIcon-BoRVcP9t.cjs"))),Yi=p.lazy(()=>Promise.resolve().then(()=>require("./SaveIcon-Bn6kL1CS.cjs"))),qi=p.lazy(()=>Promise.resolve().then(()=>require("./ShowIcon-BhxuZY0T.cjs"))),Ki=p.lazy(()=>Promise.resolve().then(()=>require("./UploadIcon-DqJxcjjP.cjs"))),Xi=p.lazy(()=>Promise.resolve().then(()=>Na)),Ji={[j.ArrowDown]:$i,[j.ArrowUp]:xi,[j.Back]:wi,[j.Cancel]:Si,[j.CheckboxChecked]:Ci,[j.CheckboxUnchecked]:ki,[j.CheckMark]:ji,[j.ChevronDown]:Ei,[j.ChevronUp]:_i,[j.ChevronLeft]:Ii,[j.ChevronRight]:Ri,[j.Clear]:Pi,[j.Copy]:Ai,[j.Cut]:zi,[j.Delete]:Ti,[j.Download]:Oi,[j.Error]:Di,[j.Forward]:Mi,[j.Graduate]:Bi,[j.Help]:Li,[j.Hide]:Fi,[j.Home]:Ni,[j.Info]:Hi,[j.Login]:Wi,[j.Paste]:Gi,[j.Question]:Ui,[j.Save]:Yi,[j.Show]:qi,[j.Upload]:Ki,[j.Warning]:Xi,[j.Remove]:Vi},ae=({name:e,testId:t,...r})=>{if(!e)return null;const n=c.jsx("span",{style:{fontSize:"1rem"},"aria-label":"SVG Icon Fallback",children:"⬜"}),o=Ji[e];return c.jsx(p.Suspense,{fallback:n,children:c.jsx(o,{"data-testid":t,...r})})},Zi=k.button`
|
|
169
169
|
background: transparent;
|
|
170
170
|
border: none;
|
|
171
171
|
display: flex;
|
|
@@ -193,7 +193,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
193
193
|
pointer-events: none;
|
|
194
194
|
opacity: 0.5;
|
|
195
195
|
}
|
|
196
|
-
`,tt=({onClick:e,label:t,icon:r,disabled:n,theme:o})=>
|
|
196
|
+
`,tt=({onClick:e,label:t,icon:r,disabled:n,theme:o})=>c.jsx(Zi,{onClick:e,"aria-label":t,type:"button",disabled:n,$theme:o,children:c.jsx(ae,{name:r})}),Qi=k.label`
|
|
197
197
|
display: flex;
|
|
198
198
|
align-items: center;
|
|
199
199
|
font-size: ${e=>e.$theme.fontSizeSmall};
|
|
@@ -217,7 +217,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
217
217
|
color: ${e=>e.$theme.fontColorAccent};
|
|
218
218
|
margin-left: ${e=>e.$theme.gapSmall};
|
|
219
219
|
}
|
|
220
|
-
`,Re=({label:e,required:t,inputId:r,theme:n,icon:o,iconPosition:i,isTextHidden:a=!1,style:d})=>{const
|
|
220
|
+
`,Re=({label:e,required:t,inputId:r,theme:n,icon:o,iconPosition:i,isTextHidden:a=!1,style:d})=>{const l=!!o&&i==="left",h=!!o&&i==="right";return c.jsxs(Qi,{htmlFor:r,style:d,$theme:n,children:[l&&o,!a&&c.jsxs("span",{children:[e,t&&c.jsx("abbr",{title:"required",children:"*"})]}),h&&o]})};function es(e){return({tooltip:t,visibleOn:r,...n})=>t!=null&&t.length?c.jsx(kn,{tooltipContent:t,visibleOn:r,children:c.jsx(e,{...n})}):c.jsx(e,{...n})}const xe=p.createContext({}),mn=p.createContext({mode:tr.Light});function ts(e,t){const r=e==="dark"?bi:yi;if(t)for(const n in t){const o=n;Object.prototype.hasOwnProperty.call(r,o)&&(r[o]=t[o].toString())}return r}function rt(e){const t=document.getElementById(e);t&&t.focus()}function gn({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&&rt(a.id);break}case"ArrowDown":case"Tab":{e.preventDefault();const i=o===t.length-1?0:o+1,a=t[i];a&&rt(a.id);break}}}const X=()=>{const{customTheme:e,mode:t}=p.useContext(mn);return ts(t,e)},ot=({ref:e,onClickOutsideHandler:t,dependentRef:r})=>{p.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])},yn=({ref:e,isVisible:t})=>{const[r,n]=p.useState({width:0,height:0});return p.useEffect(()=>{e.current&&t&&n({width:e.current.offsetWidth,height:e.current.offsetHeight})},[e,t]),r};function he(e){const t=p.useId(),r=e??t,n=`${r}_error`,o=`${r}_dropdown`;return{elementId:r,errorId:n,dropdownId:o}}const it=({ref:e,keyCode:t,onKeyPress:r})=>{p.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])},bn=({modalRef:e,isOpened:t})=>{p.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=d=>{d.key==="Tab"&&(d.shiftKey&&document.activeElement===o?(d.preventDefault(),i.focus()):!d.shiftKey&&document.activeElement===i&&(d.preventDefault(),o.focus()))};return r.addEventListener("keydown",a),()=>{r.removeEventListener("keydown",a)}},[e,t])},nr=(e,t=300)=>{const[r,n]=p.useState(!1);return p.useEffect(()=>{e&&!r?n(!0):!e&&r&&setTimeout(()=>{n(!1)},t)},[e]),r},Ve=e=>{const{resetSignal:t}=p.useContext(xe);p.useEffect(()=>{t&&e()},[t,e])};function Fr(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function vn(){const[e,t]=p.useState(Fr());return p.useEffect(()=>{function r(){t(Fr())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e}const $n=({wrapperRef:e,tooltipRef:t,isOpened:r,spacing:n=4})=>{const[o,i]=p.useState({top:0,left:0}),{width:a,height:d}=yn({ref:t,isVisible:r}),{width:l,height:h}=vn();return p.useEffect(()=>{if(r&&e.current){const u=e.current.getBoundingClientRect();let f=Math.round(u.bottom+n),y=Math.round(u.left);f+d>window.innerHeight&&(f=Math.round(u.top-d-n)),y+a>window.innerWidth&&(y=Math.round(window.innerWidth-a-n)),y<0&&(y=n),i({top:f,left:y})}},[r,e,d,a,n,l,h]),o},rs=k.button`
|
|
221
221
|
position: relative;
|
|
222
222
|
border: none;
|
|
223
223
|
background: transparent;
|
|
@@ -360,7 +360,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
360
360
|
height: ${e=>e.$theme.iconSize};
|
|
361
361
|
width: ${e=>e.$theme.iconSize};
|
|
362
362
|
}
|
|
363
|
-
`,is=({onClick:e,text:t,icon:r,label:n,disabled:o=!1,extended:i=!1,type:a="button",view:d=ue.Primary,...
|
|
363
|
+
`,is=({onClick:e,text:t,icon:r,label:n,disabled:o=!1,extended:i=!1,type:a="button",view:d=ue.Primary,...l})=>{const h=X();switch(d){case ue.Primary:return c.jsxs(rs,{$extended:i,"aria-label":n,type:a,onClick:e,disabled:o,$theme:h,...l,children:[c.jsx("span",{className:"chop-logic-button_shadow"}),c.jsx("span",{className:"chop-logic-button_edge"}),c.jsxs("span",{className:"chop-logic-button_front",children:[c.jsx(ae,{name:r}),t]})]});case ue.Flat:return c.jsxs(ns,{$extended:i,"aria-label":n,type:a,onClick:e,disabled:o,$theme:h,...l,children:[c.jsx(ae,{name:r}),t]});case ue.Icon:return c.jsx(os,{"aria-label":n,type:a,onClick:e,disabled:o,$theme:h,...l,children:c.jsx(ae,{name:r})});default:return null}},nt=es(is);function Et(e){return c.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Checkbox Checked"}),c.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"})]})}const ss=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));function It(e){return c.jsxs("svg",{viewBox:"0 0 16 16",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Checkbox Unchecked"}),c.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"})]})}const as=Object.freeze(Object.defineProperty({__proto__:null,default:It},Symbol.toStringTag,{value:"Module"})),cs=k.div`
|
|
364
364
|
display: flex;
|
|
365
365
|
gap: ${e=>e.$theme.gapMedium};
|
|
366
366
|
padding: ${e=>e.$theme.gapMedium} 0;
|
|
@@ -399,7 +399,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
399
399
|
outline-offset: 2px;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
`;function ls({defaultChecked:e,initialValues:t,name:r}){return t&&(t==null?void 0:t[r])!==void 0?!!(t!=null&&t[r]):!!e}function ds({name:e,defaultChecked:t,onChange:r}){const{onChangeFormInput:n,initialValues:o}=p.useContext(xe),i=ls({initialValues:o,name:e,defaultChecked:t}),[a,d]=p.useState(i),
|
|
402
|
+
`;function ls({defaultChecked:e,initialValues:t,name:r}){return t&&(t==null?void 0:t[r])!==void 0?!!(t!=null&&t[r]):!!e}function ds({name:e,defaultChecked:t,onChange:r}){const{onChangeFormInput:n,initialValues:o}=p.useContext(xe),i=ls({initialValues:o,name:e,defaultChecked:t}),[a,d]=p.useState(i),l=u=>{const f=u.target.checked;d(f),r==null||r(u),n==null||n({name:e,value:f})},h=p.useCallback(()=>{d(i),n==null||n({name:e,value:i})},[e]);return Ve(h),{handleChange:l,checked:a}}const us=({name:e,label:t,disabled:r,noLabel:n,required:o=!1,iconPosition:i="left",defaultChecked:a,onChange:d,id:l,...h})=>{const{handleChange:u,checked:f}=ds({name:e,defaultChecked:a,onChange:d}),{elementId:y}=he(l),g=X();return c.jsxs(cs,{$disabled:!!r,$theme:g,$checked:f,...h,children:[c.jsx("input",{id:y,name:e,type:"checkbox",disabled:r,required:o,checked:f,onChange:u,"aria-label":n?t:void 0}),c.jsx(Re,{label:t,required:o,inputId:y,isTextHidden:n,icon:f?c.jsx(Et,{}):c.jsx(It,{}),iconPosition:i,theme:g})]})},xn=k.div`
|
|
403
403
|
position: relative;
|
|
404
404
|
display: flex;
|
|
405
405
|
justify-content: space-between;
|
|
@@ -499,7 +499,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
499
499
|
}
|
|
500
500
|
`,hs=k(Cn)`
|
|
501
501
|
justify-content: flex-start;
|
|
502
|
-
`;function or(e){return
|
|
502
|
+
`;function or(e){return c.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Arrow Down"}),c.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"})]})}const fs=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"}));function ir(e){return c.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Arrow Up"}),c.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"})]})}const ps=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),ms=({opened:e,onClick:t,comboboxId:r,dropdownId:n,name:o,placeholder:i,disabled:a,required:d,values:l,theme:h})=>{const u=l==null?void 0:l.filter(g=>g.selected).map(g=>g.label),f=l==null?void 0:l.filter(g=>g.selected).map(g=>g.id);let y=c.jsx("span",{children:i});return u&&u.length>1?y=c.jsx("span",{children:`${u.length} items selected`}):u&&u.length===1&&(y=c.jsx("span",{children:u[0]})),c.jsxs(wn,{type:"button",name:o,value:f,role:"combobox","aria-haspopup":"listbox","aria-expanded":e,"aria-controls":n,id:r,onClick:t,disabled:a,"aria-required":d,$theme:h,children:[y,e?c.jsx(ir,{}):c.jsx(or,{})]})},gs=({value:e,onSelect:t,theme:r})=>{const{id:n,label:o,selected:i}=e,a=d=>l=>{switch(l.key){case" ":case"SpaceBar":case"Enter":l.preventDefault(),t(d);break}};return c.jsxs(hs,{id:n,role:"option","aria-selected":i,tabIndex:0,onKeyDown:a(n),onClick:()=>t(n),$theme:r,$selected:i,children:[i?c.jsx(Et,{}):c.jsx(It,{}),c.jsx("span",{children:o})]})},ys=({options:e,opened:t,onClose:r,onSelect:n,dropdownId:o,theme:i})=>c.jsx(Sn,{$opened:t,role:"listbox",id:o,tabIndex:-1,onKeyDown:a=>gn({e:a,options:e,onClose:r}),$theme:i,children:e.map(a=>c.jsx(gs,{value:a,onSelect:()=>n(a.id),theme:i},a.id))});function bs({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(d=>d===o.id||(d==null?void 0:d.id)===o.id)&&(i=!0),!(r!=null&&r[e])&&Array.isArray(n)&&n.find(d=>d===o.id)&&(i=!0),{...o,selected:i}})}const Nr=e=>e.filter(t=>t.selected).map(t=>t.id),vs=(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 $s({name:e,defaultValue:t,onChange:r,options:n}){const[o,i]=p.useState(!1),{onChangeFormInput:a,initialValues:d}=p.useContext(xe),l=bs({name:e,options:n,initialValues:d,defaultValue:t}),[h,u]=p.useState(l),f=()=>i(!1),y=()=>i(!o),g=x=>{const E=vs(h,x);u(E),r==null||r(E),a==null||a({name:e,value:Nr(E)})},b=p.useCallback(()=>{i(!1),u(l),a==null||a({name:e,value:Nr(l)})},[e]);return Ve(b),{handleClose:f,handleToggle:y,handleSelect:g,opened:o,values:h}}const xs=({options:e,name:t,label:r,required:n=!1,placeholder:o="Not selected",disabled:i=!1,onChange:a,defaultValue:d,id:l,...h})=>{const u=p.useRef(null),{elementId:f,dropdownId:y}=he(l),g=X(),{handleClose:b,handleSelect:x,handleToggle:E,opened:S,values:$}=$s({name:t,options:e,defaultValue:d,onChange:a});return ot({ref:u,onClickOutsideHandler:b}),it({keyCode:"Escape",ref:u,onKeyPress:b}),c.jsxs(xn,{ref:u,$theme:g,...h,children:[c.jsx(Re,{label:r,required:n,inputId:f,theme:g}),c.jsx(ms,{name:t,opened:S,comboboxId:f,dropdownId:y,onClick:E,values:$,placeholder:o,disabled:i,required:n,theme:g}),c.jsx(ys,{theme:g,options:$,opened:S,onClose:b,dropdownId:y,onSelect:x})]})};function ws({name:e,initialValues:t,defaultValue:r}){return t&&t[e]?Number(t[e]):r&&typeof r=="number"?r:0}function Ss({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 Cs({name:e,defaultValue:t,onChange:r,onSpinButtonClick:n,min:o,max:i,step:a,required:d,validator:l}){const{onChangeFormInput:h,initialValues:u}=p.useContext(xe),f=ws({initialValues:u,defaultValue:t,name:e}),y=i?Number(i):Number.MAX_SAFE_INTEGER,g=o?Number(o):Number.MIN_SAFE_INTEGER,[b,x]=p.useState(f),[E,S]=p.useState(!0),$=w=>{x(w);const H=Ss({value:w,required:d,validator:l,maxValue:y,minValue:g});S(H),h==null||h({name:e,value:w,valid:H})},I=w=>{const H=Number(w.target.value);$(H),r==null||r(w)},A=()=>{$(b+a),n==null||n(b+a)},P=()=>{$(b-a),n==null||n(b-a)},R=p.useCallback(()=>{x(f),S(!0),h==null||h({name:e,value:f,valid:!0})},[e]);return Ve(R),{handleChange:I,value:b,valid:E,minValue:g,maxValue:y,increment:A,decrement:P}}const ks=k.div`
|
|
503
503
|
display: flex;
|
|
504
504
|
flex-direction: column;
|
|
505
505
|
gap: ${e=>e.$theme.gapMedium};
|
|
@@ -561,7 +561,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
561
561
|
-moz-appearance: textfield;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
`,js=({name:e,label:t,errorMessage:r,onChange:n,onBlur:o,onFocus:i,onSpinButtonClick:a,validator:d,min:
|
|
564
|
+
`,js=({name:e,label:t,errorMessage:r,onChange:n,onBlur:o,onFocus:i,onSpinButtonClick:a,validator:d,min:l,max:h,id:u,tabIndex:f,disabled:y=!1,required:g=!1,readOnly:b=!1,hasSpinButtons:x=!0,defaultValue:E=0,step:S=1,...$})=>{const{elementId:I,errorId:A}=he(u),P=X(),{value:R,valid:w,handleChange:H,increment:J,decrement:fe,minValue:pe,maxValue:me}=Cs({name:e,defaultValue:E,min:l,max:h,onChange:n,required:g,validator:d,step:S,onSpinButtonClick:a});return c.jsxs(ks,{$theme:P,...$,children:[c.jsx(Re,{label:t,required:g,inputId:I,theme:P}),c.jsxs("div",{children:[c.jsx("input",{id:I,name:e,type:"number",disabled:y,required:g,readOnly:b,placeholder:"0","aria-invalid":!w,"aria-errormessage":A,value:R.toString(),onChange:H,min:pe,max:me,step:S,onBlur:o,onFocus:i,tabIndex:f}),x&&c.jsxs("span",{children:[c.jsx(tt,{onClick:fe,label:`Decrement value for ${t}`,icon:j.ChevronLeft,disabled:y,theme:P}),c.jsx(tt,{onClick:J,label:`Increment value for ${t}`,icon:j.ChevronRight,disabled:y,theme:P})]})]}),c.jsx(er,{errorId:A,message:r,visible:!w,theme:P})]})},Es=({opened:e,onClick:t,comboboxId:r,dropdownId:n,selected:o,name:i,placeholder:a,disabled:d,required:l,theme:h})=>c.jsxs(wn,{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:d,"aria-required":l,$theme:h,children:[o!=null&&o.label?c.jsx("span",{children:o==null?void 0:o.label}):c.jsx("span",{children:a}),e?c.jsx(ir,{}):c.jsx(or,{})]});function sr(e){return c.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Check Mark"}),c.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"})]})}const Is=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),Rs=({value:e,selected:t,onSelect:r,onClear:n,theme:o})=>{const{id:i,label:a}=e,d=h=>{t?n():r(h)},l=h=>u=>{switch(u.key){case" ":case"SpaceBar":case"Enter":u.preventDefault(),d(h);break}};return c.jsxs(Cn,{id:i,role:"option","aria-selected":t,tabIndex:0,onKeyDown:l(i),onClick:()=>d(i),$theme:o,$selected:t,children:[c.jsx("span",{children:a}),t&&c.jsx(sr,{})]})},_s=({options:e,opened:t,onClose:r,onSelect:n,dropdownId:o,comboboxId:i,selected:a,onClear:d,theme:l})=>{const h=u=>{n(u),r(),rt(i)};return c.jsx(Sn,{role:"listbox",id:o,tabIndex:-1,onKeyDown:u=>gn({e:u,options:e,onClose:r}),$opened:t,$theme:l,children:e.map(u=>c.jsx(Rs,{value:u,onSelect:()=>h(u.id),onClear:d,selected:u.id===(a==null?void 0:a.id),theme:l},u.id))})};function Ps({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 As({name:e,defaultValue:t,onChange:r,options:n}){const{onChangeFormInput:o,initialValues:i}=p.useContext(xe),a=Ps({name:e,options:n,defaultValue:t,initialValues:i}),[d,l]=p.useState(!1),[h,u]=p.useState(a),f=()=>l(!1),y=()=>l(!d),g=E=>{const S=n.find($=>$.id===E);u(S),r==null||r(S),o==null||o({name:e,value:S==null?void 0:S.id})},b=()=>{u(void 0),r==null||r(void 0)},x=p.useCallback(()=>{l(!1),u(a),o==null||o({name:e,value:a==null?void 0:a.id})},[e]);return Ve(x),{selected:h,opened:d,handleClear:b,handleClose:f,handleToggle:y,handleSelect:g}}const zs=({options:e,onChange:t,name:r,label:n,defaultValue:o,id:i,placeholder:a="Not selected",required:d=!1,disabled:l=!1,...h})=>{const u=p.useRef(null),f=X(),{elementId:y,dropdownId:g}=he(i),{handleClear:b,handleClose:x,handleSelect:E,handleToggle:S,selected:$,opened:I}=As({options:e,onChange:t,defaultValue:o,name:r});return ot({ref:u,onClickOutsideHandler:x}),it({keyCode:"Escape",ref:u,onKeyPress:x}),c.jsxs(xn,{ref:u,$theme:f,...h,children:[c.jsx(Re,{label:n,required:d,inputId:y,theme:f}),c.jsx(Es,{name:r,opened:I,comboboxId:y,dropdownId:g,onClick:S,selected:$,placeholder:a,disabled:l,required:d,theme:f}),c.jsx(_s,{options:e,selected:$,opened:I,onClose:x,dropdownId:g,comboboxId:y,onSelect:E,onClear:b,theme:f})]})};function Ts({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 Os({name:e,initialValues:t,defaultValue:r}){return t&&(t!=null&&t[e])?t[e].toString():r&&typeof r=="string"?r:""}function Ds({name:e,defaultValue:t,onChange:r,onClear:n,required:o,validator:i}){const{onChangeFormInput:a,initialValues:d}=p.useContext(xe),l=Os({initialValues:d,defaultValue:t,name:e}),[h,u]=p.useState(l),[f,y]=p.useState(!0),[g,b]=p.useState(!1),x=I=>{const A=I.target.value,P=Ts({value:A,required:o,validator:i});u(A),y(P),a==null||a({name:e,value:A,valid:P}),r==null||r(I)},E=()=>{u(""),y(!0),a==null||a({name:e,value:"",valid:!0}),n==null||n()},S=p.useCallback(()=>{u(l),y(!0),a==null||a({name:e,value:l,valid:!0})},[e]),$=()=>{b(!g)};return Ve(S),{value:h,valid:f,passwordShown:g,handleChange:x,handleClear:E,togglePassword:$}}const Ms=k.div`
|
|
565
565
|
display: flex;
|
|
566
566
|
flex-direction: column;
|
|
567
567
|
gap: ${e=>e.$theme.gapMedium};
|
|
@@ -618,44 +618,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
618
618
|
display: none !important;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
`,Bs=({name:e,label:t,errorMessage:r,defaultValue:n,onChange:o,onBlur:i,onFocus:a,onClear:d,validator:
|
|
622
|
-
display: flex;
|
|
623
|
-
justify-content: space-between;
|
|
624
|
-
align-items: center;
|
|
625
|
-
|
|
626
|
-
h3 {
|
|
627
|
-
display: flex;
|
|
628
|
-
gap: ${e=>e.$theme.gapMedium};
|
|
629
|
-
align-items: center;
|
|
630
|
-
margin: 0;
|
|
631
|
-
color: ${e=>e.$theme.fontColorBase};
|
|
632
|
-
|
|
633
|
-
svg {
|
|
634
|
-
color: ${e=>e.$theme.fontColorAccent};
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
`,Fs=k.div`
|
|
638
|
-
position: fixed;
|
|
639
|
-
bottom: ${e=>e.$theme.gapBig};
|
|
640
|
-
left: 50%;
|
|
641
|
-
transform: translateX(-50%);
|
|
642
|
-
z-index: ${e=>e.$theme.zIndexPopup};
|
|
643
|
-
${Ue}
|
|
644
|
-
|
|
645
|
-
${e=>e.$isClosing&&pn}
|
|
646
|
-
`,Ns=k.div`
|
|
647
|
-
display: flex;
|
|
648
|
-
flex-direction: column;
|
|
649
|
-
gap: ${e=>e.$theme.gapMedium};
|
|
650
|
-
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
651
|
-
background: ${e=>e.$theme.backgroundColorBase};
|
|
652
|
-
color: ${e=>e.$theme.fontColorBase};
|
|
653
|
-
width: 90vw;
|
|
654
|
-
padding: ${e=>e.$theme.gapMedium};
|
|
655
|
-
box-shadow: ${e=>e.$theme.boxShadow};
|
|
656
|
-
border: ${e=>e.$theme.borderLight};
|
|
657
|
-
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
658
|
-
`;function kn(e){return l.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...e,children:[l.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),l.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"})]})}const Hs=Object.freeze(Object.defineProperty({__proto__:null,default:kn},Symbol.toStringTag,{value:"Module"}));function jn(e){return l.jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",...e,children:l.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"})})}const Ws=Object.freeze(Object.defineProperty({__proto__:null,default:jn},Symbol.toStringTag,{value:"Module"}));function En(e){return l.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",...e,children:[l.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"}),l.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 Gs=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"}));function In(e){return l.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...e,children:[l.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),l.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"})]})}const Us=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"}));function Vs(e,t){if(t)return t;switch(e){case Z.Info:return"For your information";case Z.Warning:return"Please pay attention";case Z.Error:return"Something went wrong";case Z.Success:return"Everything is okay";case Z.Help:return"Useful tip";default:return"Alert"}}function Ys(e,t){if(t)return l.jsx(ae,{name:t});switch(e){case Z.Info:return l.jsx(En,{});case Z.Warning:return l.jsx(In,{});case Z.Error:return l.jsx(kn,{});case Z.Success:return l.jsx(sr,{});case Z.Help:return l.jsx(jn,{});default:return null}}const qs=({title:e,onClose:t,mode:r,icon:n,theme:o})=>{const i=Vs(r,e),a=Ys(r,n);return l.jsxs(Ls,{$theme:o,children:[l.jsxs("h3",{children:[a,i]}),l.jsx(nt,{icon:j.Cancel,view:ue.Icon,label:"Close alert popup",onClick:t})]})},Ks=({isOpened:e,onClose:t,title:r,message:n,mode:o=Z.Info,icon:i,...a})=>{const d=nr(e),c=d&&!e,h=X();return d?l.jsx(Rt,{children:l.jsx(Fs,{$isClosing:c,$theme:h,children:l.jsxs(Ns,{...a,$theme:h,children:[l.jsx(qs,{title:r,onClose:t,mode:o,icon:i,theme:h}),l.jsx("p",{children:n})]})})}):null},Xs=k.div`
|
|
621
|
+
`,Bs=({name:e,label:t,errorMessage:r,defaultValue:n,onChange:o,onBlur:i,onFocus:a,onClear:d,validator:l,maxLength:h,id:u,tabIndex:f,placeholder:y="Type here...",disabled:g=!1,required:b=!1,clearable:x=!0,readOnly:E=!1,autoComplete:S="off",type:$="text",...I})=>{const{value:A,valid:P,handleChange:R,handleClear:w,passwordShown:H,togglePassword:J}=Ds({defaultValue:n,name:e,onChange:o,onClear:d,required:b,validator:l}),{elementId:fe,errorId:pe}=he(u),me=$==="password",W=X();return c.jsxs(Ms,{$theme:W,...I,children:[c.jsx(Re,{label:t,required:b,inputId:fe,theme:W}),c.jsxs("div",{children:[c.jsx("input",{id:fe,name:e,type:H?"text":$,disabled:g,placeholder:y,required:b,readOnly:E,autoComplete:S,"aria-invalid":!P,"aria-errormessage":pe,"aria-readonly":E,value:A,onChange:R,maxLength:h,onBlur:i,onFocus:a,tabIndex:f}),c.jsxs("span",{children:[x&&c.jsx(tt,{onClick:w,label:`Clear input for ${t}`,icon:j.Remove,disabled:g,theme:W}),me&&c.jsx(tt,{onClick:J,label:"Toggle password visibility",icon:H?j.Hide:j.Show,disabled:g,theme:W})]})]}),c.jsx(er,{errorId:pe,message:r,visible:!P,theme:W})]})},Ls=k.div`
|
|
659
622
|
z-index: ${e=>e.$theme.zIndexModal};
|
|
660
623
|
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
661
624
|
box-shadow: ${e=>e.$theme.boxShadow};
|
|
@@ -684,7 +647,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
684
647
|
font-size: ${e=>e.$theme.fontSizeHeader};
|
|
685
648
|
}
|
|
686
649
|
}
|
|
687
|
-
`,
|
|
650
|
+
`,Fs=k.div`
|
|
688
651
|
position: fixed;
|
|
689
652
|
top: 0;
|
|
690
653
|
left: 0;
|
|
@@ -698,7 +661,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
698
661
|
${Ue}
|
|
699
662
|
|
|
700
663
|
${e=>e.$isClosing&&pn}
|
|
701
|
-
`,
|
|
664
|
+
`,Ns=k.header`
|
|
702
665
|
font-size: 1.6rem;
|
|
703
666
|
font-weight: bold;
|
|
704
667
|
display: flex;
|
|
@@ -708,10 +671,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
708
671
|
padding: ${e=>e.$theme.gapBig};
|
|
709
672
|
border-bottom: ${e=>e.$theme.borderBase};
|
|
710
673
|
color: ${e=>e.$theme.fontColorBase};
|
|
711
|
-
`,
|
|
674
|
+
`,Hs=k.div`
|
|
712
675
|
padding: ${e=>e.$theme.gapBig};
|
|
713
676
|
font-size: ${e=>e.$theme.fontSizeBase};
|
|
714
|
-
`,
|
|
677
|
+
`,Ws=({title:e,onClose:t,theme:r})=>c.jsxs(Ns,{$theme:r,children:[e,c.jsx(nt,{icon:j.Cancel,view:ue.Icon,label:"Close modal window",onClick:t})]}),Gs=({title:e,onClose:t,isOpened:r,children:n,theme:o,...i})=>{const a=p.useRef(null);return bn({modalRef:a,isOpened:r}),it({keyCode:"Escape",ref:a,onKeyPress:t}),c.jsxs(Ls,{ref:a,role:"dialog","aria-modal":"true",$theme:o,...i,children:[c.jsx(Ws,{title:e,onClose:t,theme:o}),c.jsx(Hs,{$theme:o,children:n})]})},Us=({isOpened:e,onClose:t,title:r,children:n,...o})=>{const i=nr(e),a=i&&!e,d=X();return i?c.jsx(Rt,{children:c.jsx(Fs,{$isClosing:a,$theme:d,children:c.jsx(Gs,{title:r,onClose:t,isOpened:e,...o,theme:d,children:n})})}):null},Vs=({id:e})=>{const[t,r]=p.useState(!1),n=p.useRef(null),o=p.useRef(null),{top:i,left:a}=$n({wrapperRef:n,tooltipRef:o,isOpened:t}),{elementId:d}=he(e),l=()=>r(!1),h=()=>r(!0),u=()=>r(!t),f=y=>{y.preventDefault(),u()};return it({keyCode:"Escape",ref:o,onKeyPress:l}),ot({ref:o,onClickOutsideHandler:l,dependentRef:n}),{elementId:d,openTooltip:h,closeTooltip:l,toggleTooltip:u,handleContextMenu:f,top:i,left:a,isOpened:t,wrapperRef:n,tooltipRef:o}},Ys=k.div`
|
|
715
678
|
position: absolute;
|
|
716
679
|
left: 0;
|
|
717
680
|
top: 0;
|
|
@@ -728,7 +691,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
728
691
|
white-space: nowrap;
|
|
729
692
|
|
|
730
693
|
${Ue}
|
|
731
|
-
`,
|
|
694
|
+
`,kn=({children:e,tooltipContent:t,containerTag:r=rr.Span,visibleOn:n="hover",id:o,style:i,...a})=>{const d=r,l=X(),{openTooltip:h,closeTooltip:u,toggleTooltip:f,handleContextMenu:y,elementId:g,top:b,left:x,isOpened:E,wrapperRef:S,tooltipRef:$}=Vs({id:o});return c.jsxs(d,{style:{position:"relative",cursor:"pointer"},onClick:n==="click"?f:void 0,onMouseOver:n==="hover"?h:void 0,onMouseLeave:n==="hover"?u:void 0,onFocus:n==="focus"?h:void 0,onBlur:n==="focus"?u:void 0,onContextMenu:n==="contextmenu"?I=>y(I):void 0,tabIndex:0,ref:S,"aria-describedby":g,children:[e,E&&c.jsx(Rt,{children:c.jsx(Ys,{style:{...i,top:b,left:x},ref:$,role:"tooltip",id:g,$theme:l,...a,children:t})})]})};function qs(e){return e?Object.keys(e).map(t=>[t,!0]):[]}function Ks(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 Xs(e){return e.every(t=>t[1])}function Js({initialValues:e,onReset:t,onSubmit:r,onClickSubmit:n}){const[o,i]=p.useState(e),[a,d]=p.useState(qs(e)),[l,h]=p.useState(0);return{handleInputChange:g=>{const b={...o,[g.name]:g.value};i(b),d(Ks(a,g))},handleSubmit:g=>{g.preventDefault();const x={...Object.fromEntries(new FormData(g.target)),...o};r==null||r(g),n==null||n(x)},handleReset:g=>{t==null||t(g),i(e),h(l+1)},resetSignal:l,valid:Xs(a)}}const Zs=k.form`
|
|
732
695
|
display: grid;
|
|
733
696
|
align-items: end;
|
|
734
697
|
gap: ${e=>e.$theme.gapMedium};
|
|
@@ -739,7 +702,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
739
702
|
grid-template-columns: repeat(${e}, 1fr);
|
|
740
703
|
grid-template-rows: auto;
|
|
741
704
|
`}
|
|
742
|
-
`,
|
|
705
|
+
`,Qs=k.div`
|
|
743
706
|
display: flex;
|
|
744
707
|
align-items: center;
|
|
745
708
|
justify-content: space-between;
|
|
@@ -748,31 +711,31 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
748
711
|
${({$columns:e})=>`
|
|
749
712
|
grid-column: 1 / ${e+1};
|
|
750
713
|
`}
|
|
751
|
-
`,
|
|
714
|
+
`,ea=({children:e,initialValues:t,onReset:r,onSubmit:n,onClickSubmit:o,columns:i=1,hasReset:a=!0,...d})=>{const{handleInputChange:l,handleSubmit:h,handleReset:u,resetSignal:f,valid:y}=Js({initialValues:t,onReset:r,onSubmit:n,onClickSubmit:o}),g=X();return c.jsx(Zs,{onSubmit:h,onReset:u,$columns:i,$theme:g,...d,children:c.jsxs(xe.Provider,{value:{onChangeFormInput:l,initialValues:t,resetSignal:f},children:[e,c.jsxs(Qs,{$columns:i,children:[a&&c.jsx(nt,{type:"reset",text:"Reset",icon:j.Clear,view:ue.Flat}),c.jsx(nt,{type:"submit",text:"Submit",icon:j.Forward,extended:!a,disabled:!y})]})]})})},ta=k.table`
|
|
752
715
|
border-collapse: collapse;
|
|
753
|
-
`,
|
|
716
|
+
`,ra=k.thead`
|
|
754
717
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
755
718
|
color: ${e=>e.$theme.fontColorBase};
|
|
756
719
|
font-size: ${e=>e.$theme.fontSizeBase};
|
|
757
|
-
`,
|
|
720
|
+
`,na=k.tbody`
|
|
758
721
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
759
722
|
color: ${e=>e.$theme.fontColorBase};
|
|
760
|
-
`,
|
|
723
|
+
`,jn=k.th`
|
|
761
724
|
padding: ${e=>e.$theme.gapMedium};
|
|
762
725
|
text-align: left;
|
|
763
|
-
`,
|
|
726
|
+
`,oa=k.tr`
|
|
764
727
|
font-weight: bold;
|
|
765
728
|
border-top: ${e=>e.$theme.borderLight};
|
|
766
729
|
border-bottom: ${e=>e.$theme.borderLight};
|
|
767
730
|
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
768
|
-
`,
|
|
731
|
+
`,En=k.td`
|
|
769
732
|
padding: ${e=>e.$theme.gapMedium};
|
|
770
|
-
`,
|
|
733
|
+
`,ia=k.caption`
|
|
771
734
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
772
735
|
color: ${e=>e.$theme.fontColorBase};
|
|
773
736
|
padding: ${e=>e.$theme.gapMedium};
|
|
774
737
|
font-weight: bold;
|
|
775
|
-
`,
|
|
738
|
+
`,sa=k.tr`
|
|
776
739
|
border-bottom: ${e=>e.$theme.borderLight};
|
|
777
740
|
|
|
778
741
|
${e=>e.$selected&&`
|
|
@@ -783,7 +746,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
783
746
|
|
|
784
747
|
${e=>e.$isFirst&&`border-left: ${e.$theme.borderLight};`}
|
|
785
748
|
${e=>e.$highlighted&&`background-color: ${e.$theme.backgroundColorLight};`}
|
|
786
|
-
`,
|
|
749
|
+
`,aa=k.div`
|
|
787
750
|
display: flex;
|
|
788
751
|
gap: ${e=>e.$theme.gapSmall};
|
|
789
752
|
padding: ${e=>e.$theme.gapSmall} 0;
|
|
@@ -808,7 +771,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
808
771
|
pointer-events: none;
|
|
809
772
|
opacity: 0.5;
|
|
810
773
|
`}
|
|
811
|
-
`,
|
|
774
|
+
`,ca=k.input`
|
|
812
775
|
position: absolute;
|
|
813
776
|
z-index: -1;
|
|
814
777
|
opacity: 0;
|
|
@@ -820,7 +783,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
820
783
|
outline: ${e=>e.$theme.borderOutline};
|
|
821
784
|
outline-offset: 2px;
|
|
822
785
|
}
|
|
823
|
-
`;function
|
|
786
|
+
`;function la({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 da=({value:e,theme:t})=>c.jsx(En,{$theme:t,children:e}),In=({name:e,label:t,disabled:r,required:n=!1,onChange:o,checked:i=!1,theme:a,...d})=>{const{elementId:l}=he(d==null?void 0:d.id);return c.jsxs(aa,{$disabled:!!r,$checked:i,$theme:a,children:[c.jsx(ca,{id:l,name:e,type:"checkbox",disabled:r,required:n,checked:i,onChange:o,$theme:a}),c.jsx(Re,{label:t,required:n,inputId:l,isTextHidden:!0,iconPosition:"left",theme:a,icon:i?c.jsx(Et,{}):c.jsx(It,{})})]})},ua=({rowId:e,isRowSelected:t,selectRowById:r,deselectRowById:n,disabled:o,theme:i})=>{const a=d=>{const{checked:l}=d.target;l?r(e):n(e)};return c.jsx(En,{$theme:i,children:c.jsx(In,{theme:i,label:"Select row",onChange:a,id:`select_row_${e}`,checked:t,disabled:o})})},ha=({rowId:e,selectRowById:t,deselectRowById:r,selectable:n,values:o,selectedIds:i,disabled:a,theme:d})=>{const l=i.includes(e);return c.jsxs(sa,{$selected:l,$theme:d,children:[n&&c.jsx(ua,{rowId:e,selectRowById:t,deselectRowById:r,isRowSelected:l,disabled:a,theme:d}),o.map((h,u)=>c.jsx(da,{value:h,theme:d},`row_${u}`))]})},fa=({selectRowById:e,deselectRowById:t,renderDataItem:r,selectedIds:n,selectable:o,data:i,columns:a,theme:d})=>c.jsx(na,{$theme:d,children:i.map(l=>{const h=la({item:l,columns:a,renderDataItem:r});return c.jsx(ha,{rowId:l.id,disabled:l==null?void 0:l.disabled,selectRowById:e,deselectRowById:t,selectable:o,values:h,selectedIds:n,theme:d},l.id)})}),pa=({columns:e,selectable:t,theme:r})=>c.jsxs("colgroup",{children:[t&&c.jsx(Hr,{$isFirst:!0,$highlighted:!1,$theme:r}),e.map((n,o)=>c.jsx(Hr,{$isFirst:o===0&&!t,$highlighted:!!(n!=null&&n.highlighted),className:n==null?void 0:n.className,$theme:r},n==null?void 0:n.title))]}),ma=({title:e,component:t,theme:r})=>c.jsx(jn,{$theme:r,children:t??e??""}),ga=({gridId:e,isAllSelected:t,selectAll:r,deselectAll:n,disabled:o,theme:i})=>{const a=d=>{const{checked:l}=d.target;l?r():n()};return c.jsx(jn,{$theme:i,children:c.jsx(In,{label:"Select all rows",onChange:a,id:`select_all_${e}`,checked:t,disabled:o,theme:i})})},ya=({columns:e,gridId:t,selectAll:r,deselectAll:n,selectable:o,isAllSelected:i,isAllCheckboxDisabled:a=!1,theme:d})=>c.jsx(ra,{$theme:d,children:c.jsxs(oa,{$theme:d,children:[o&&c.jsx(ga,{isAllSelected:i,disabled:a,gridId:t,selectAll:r,deselectAll:n,theme:d}),e.map(l=>c.jsx(ma,{title:l.title,component:l.component,theme:d},`${l.title}_${t}`))]})}),ba=({data:e,id:t,onSelect:r})=>{const{elementId:n}=he(t),[o,i]=p.useState([]),a=e.map(b=>b.id),d=a.length===o.length,l=e.some(b=>b==null?void 0:b.disabled),h=b=>{i(b),r==null||r(b)};return{elementId:n,isAllSelected:d,isAllCheckboxDisabled:l,selectedIds:o,handleSelectAll:()=>{h(a)},handleDeselectAll:()=>{h([])},handleSelectRowById:b=>{const x=[...o,b];h(x)},handleDeselectRowById:b=>{const x=o.filter(E=>E!==b);h(x)}}},va=({columns:e,data:t,id:r,onSelect:n,renderDataItem:o,caption:i,selectable:a=!1,...d})=>{const{elementId:l,handleSelectAll:h,handleDeselectAll:u,isAllCheckboxDisabled:f,isAllSelected:y,handleDeselectRowById:g,handleSelectRowById:b,selectedIds:x}=ba({id:r,data:t,onSelect:n}),E=X();return c.jsxs(ta,{...d,children:[i&&c.jsx(ia,{$theme:E,children:i}),c.jsx(pa,{columns:e,selectable:a,theme:E}),c.jsx(ya,{gridId:l,columns:e,selectable:a,selectAll:h,deselectAll:u,isAllSelected:y,isAllCheckboxDisabled:f,theme:E}),c.jsx(fa,{columns:e,data:t,selectable:a,selectRowById:b,deselectRowById:g,selectedIds:x,renderDataItem:o,theme:E})]})},Rn=k.ul`
|
|
824
787
|
list-style: none;
|
|
825
788
|
margin: 0;
|
|
826
789
|
padding: 0;
|
|
@@ -830,7 +793,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
830
793
|
flex-direction: ${e=>e.$mode===Y.Vertical?"column":"row"};
|
|
831
794
|
justify-content: flex-start;
|
|
832
795
|
width: 100%;
|
|
833
|
-
|
|
796
|
+
`,$a=k(Rn)`
|
|
834
797
|
flex-direction: column;
|
|
835
798
|
padding-left: ${e=>e.$theme.gapBig};
|
|
836
799
|
margin-left: ${e=>e.$theme.gapBig};
|
|
@@ -852,7 +815,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
852
815
|
margin: 0;
|
|
853
816
|
z-index: ${e.zIndexPopup};
|
|
854
817
|
`}
|
|
855
|
-
`,
|
|
818
|
+
`,xa=k.li`
|
|
856
819
|
display: flex;
|
|
857
820
|
justify-content: flex-start;
|
|
858
821
|
align-items: center;
|
|
@@ -872,7 +835,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
872
835
|
&:focus-visible {
|
|
873
836
|
outline: ${e=>e.$theme.borderOutline};
|
|
874
837
|
}
|
|
875
|
-
`,
|
|
838
|
+
`,wa=k.li`
|
|
876
839
|
display: flex;
|
|
877
840
|
justify-content: flex-start;
|
|
878
841
|
align-items: center;
|
|
@@ -885,7 +848,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
885
848
|
&:focus-visible {
|
|
886
849
|
outline: ${e=>e.$theme.borderOutline};
|
|
887
850
|
}
|
|
888
|
-
`,
|
|
851
|
+
`,Sa=k.span`
|
|
889
852
|
position: relative;
|
|
890
853
|
display: flex;
|
|
891
854
|
box-sizing: border-box;
|
|
@@ -910,7 +873,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
910
873
|
&:hover {
|
|
911
874
|
color: ${e=>e.$theme.fontColorAccent};
|
|
912
875
|
}
|
|
913
|
-
`,
|
|
876
|
+
`,Ca=({theme:e,item:t})=>{const{icon:r,link:n,label:o,onFocus:i,onClick:a,onHover:d}=t,l=n?c.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:o}):c.jsx("span",{children:o});return c.jsxs(xa,{tabIndex:0,role:"menuitem",$theme:e,onFocus:i,onClick:a,onMouseOver:d,children:[c.jsx(ae,{name:r}),l]})},ka=({item:e,theme:t,isSubMenuOpened:r,toggleSubMenu:n,closeSubMenu:o,mode:i,children:a})=>{const{icon:d,link:l,label:h}=e,u=p.useRef(null),f=p.useRef(null),y=l?c.jsxs("a",{href:l,target:"_blank",rel:"noreferrer",children:[c.jsx(ae,{name:d}),h]}):c.jsxs("span",{children:[c.jsx(ae,{name:d}),h]}),g=x=>{x.stopPropagation(),x.key===" "&&n()};return ot({ref:u,dependentRef:f,onClickOutsideHandler:()=>{i!==Y.Vertical&&o()}}),c.jsxs(wa,{tabIndex:0,role:"menuitem","aria-haspopup":"true","aria-expanded":r,$theme:t,onKeyDown:g,ref:u,children:[c.jsxs(Sa,{ref:f,$theme:t,onClick:n,$mode:i,children:[y,c.jsx(ae,{name:r?j.ArrowUp:j.ArrowDown})]}),r&&a]})},_n=({item:e,theme:t,mode:r})=>{var l,h;const n=!((l=e==null?void 0:e.nestedItems)!=null&&l.length),[o,i]=p.useState(!1);if(n)return c.jsx(Ca,{item:e,theme:t});const a=()=>{i(!o)},d=()=>{i(!1)};return c.jsx(ka,{item:e,theme:t,isSubMenuOpened:o,toggleSubMenu:a,closeSubMenu:d,mode:r,children:c.jsx($a,{role:"menu","aria-label":e.label,$theme:t,$mode:r,children:(h=e==null?void 0:e.nestedItems)==null?void 0:h.map(u=>c.jsx(_n,{item:u,theme:t,mode:r},u.id))})})},ja=({items:e,mode:t=Y.Vertical,...r})=>{const n=X();return c.jsx(Rn,{role:"menubar",$theme:n,$mode:t,...r,children:e.map(o=>c.jsx(_n,{item:o,theme:n,mode:t},o.id))})},Rt=({children:e})=>{const[t]=p.useState(()=>document.createElement("div"));return p.useEffect(()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)}),[t]),io.createPortal(e,t)},Ea=k.button`
|
|
914
877
|
background: transparent;
|
|
915
878
|
position: relative;
|
|
916
879
|
outline: none;
|
|
@@ -962,14 +925,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
962
925
|
top: 0px;
|
|
963
926
|
left: 1px;
|
|
964
927
|
`}
|
|
965
|
-
`,
|
|
928
|
+
`,Ia=k.div`
|
|
966
929
|
background-color: ${e=>e.$theme.backgroundColorBase};
|
|
967
930
|
color: ${e=>e.$theme.fontColorBase};
|
|
968
931
|
font-size: ${e=>e.$theme.fontSizeBase};
|
|
969
932
|
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
970
933
|
padding: ${e=>e.$theme.gapBig};
|
|
971
934
|
flex-grow: 1;
|
|
972
|
-
`,
|
|
935
|
+
`,Ra=k.div`
|
|
973
936
|
border-bottom: ${e=>e.$theme.borderLight};
|
|
974
937
|
padding: 0 ${e=>e.$theme.gapMedium};
|
|
975
938
|
display: flex;
|
|
@@ -981,7 +944,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
981
944
|
border-right: ${e.$theme.borderLight};
|
|
982
945
|
padding: ${e.$theme.gapMedium} 0;
|
|
983
946
|
`}
|
|
984
|
-
`,
|
|
947
|
+
`,_a=k.div`
|
|
985
948
|
display: flex;
|
|
986
949
|
flex-direction: column;
|
|
987
950
|
width: 100%;
|
|
@@ -989,5 +952,42 @@ See https://s-c.sh/2BAXzed for more info.`),window[ht]+=1);const Ue=`
|
|
|
989
952
|
${({$mode:e})=>e===Y.Vertical&&`
|
|
990
953
|
flex-direction: row;
|
|
991
954
|
`}
|
|
992
|
-
`,
|
|
993
|
-
|
|
955
|
+
`,Pa=({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 c.jsx(Ia,{role:"tabpanel","aria-labelledby":t,id:o,$theme:r,children:n})},Aa=({title:e,onTabSelect:t,tabId:r,isSelected:n,isDisabled:o=!1,tabPanelId:i,mode:a,theme:d})=>c.jsx(Ea,{role:"tab",id:r,onClick:()=>t(r),"aria-selected":n,"aria-controls":i,$selected:n,$disabled:o,$mode:a,$theme:d,children:e}),za=({tabs:e,onTabSelect:t,selectedTabId:r,tabPanelIds:n,mode:o,tabIds:i,theme:a})=>{const d=l=>{const h=i.findIndex(u=>u===r);switch(l.key){case"ArrowLeft":case"ArrowUp":{if(l.preventDefault(),l.key==="ArrowUp"&&o===Y.Horizontal||l.key==="ArrowLeft"&&o===Y.Vertical)break;const u=h-1>=0?h-1:i.length-1,f=i[u];f&&(rt(f),t(f));break}case"ArrowRight":case"ArrowDown":{if(l.preventDefault(),l.key==="ArrowDown"&&o===Y.Horizontal||l.key==="ArrowRight"&&o===Y.Vertical)break;const u=h===i.length-1?0:h+1,f=i[u];f&&(rt(f),t(f));break}}};return c.jsx(Ra,{role:"tablist",$mode:o,onKeyDown:d,$theme:a,children:e.map(({id:l,title:h,disabled:u},f)=>c.jsx(Aa,{title:h,onTabSelect:t,tabId:l,isSelected:l===r,isDisabled:u,tabPanelId:n[f],mode:o,theme:a},l))})},Ta=({tabs:e,defaultTabId:t,mode:r=Y.Horizontal,...n})=>{const o=e.map(f=>f.id),i=o.map(f=>`tabpanel_${f}`),a=t&&o.includes(t)?t:o[0],[d,l]=p.useState(a),h=X(),u=f=>{l(f)};return c.jsxs(_a,{$mode:r,...n,children:[c.jsx(za,{tabs:e,selectedTabId:d,tabPanelIds:i,onTabSelect:u,mode:r,tabIds:o,theme:h}),c.jsx(Pa,{tabs:e,selectedTabId:d,theme:h})]})},Oa=k.header`
|
|
956
|
+
display: flex;
|
|
957
|
+
justify-content: space-between;
|
|
958
|
+
align-items: center;
|
|
959
|
+
|
|
960
|
+
h3 {
|
|
961
|
+
display: flex;
|
|
962
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
963
|
+
align-items: center;
|
|
964
|
+
margin: 0;
|
|
965
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
966
|
+
|
|
967
|
+
svg {
|
|
968
|
+
color: ${e=>e.$theme.fontColorAccent};
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
`,Da=k.div`
|
|
972
|
+
position: fixed;
|
|
973
|
+
bottom: ${e=>e.$theme.gapBig};
|
|
974
|
+
left: 50%;
|
|
975
|
+
transform: translateX(-50%);
|
|
976
|
+
z-index: ${e=>e.$theme.zIndexPopup};
|
|
977
|
+
${Ue}
|
|
978
|
+
|
|
979
|
+
${e=>e.$isClosing&&pn}
|
|
980
|
+
`,Ma=k.div`
|
|
981
|
+
display: flex;
|
|
982
|
+
flex-direction: column;
|
|
983
|
+
gap: ${e=>e.$theme.gapMedium};
|
|
984
|
+
font-family: ${e=>e.$theme.fontFamilyCore};
|
|
985
|
+
background: ${e=>e.$theme.backgroundColorBase};
|
|
986
|
+
color: ${e=>e.$theme.fontColorBase};
|
|
987
|
+
width: 90vw;
|
|
988
|
+
padding: ${e=>e.$theme.gapMedium};
|
|
989
|
+
box-shadow: ${e=>e.$theme.boxShadow};
|
|
990
|
+
border: ${e=>e.$theme.borderLight};
|
|
991
|
+
border-radius: ${e=>e.$theme.blockBorderRadius};
|
|
992
|
+
`;function Pn(e){return c.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Error"}),c.jsx("path",{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}),c.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"})]})}const Ba=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"}));function An(e){return c.jsxs("svg",{viewBox:"0 0 512 512",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Help"}),c.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"})]})}const La=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"}));function zn(e){return c.jsxs("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Info"}),c.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"}),c.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 Fa=Object.freeze(Object.defineProperty({__proto__:null,default:zn},Symbol.toStringTag,{value:"Module"}));function Tn(e){return c.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",role:"img",...e,children:[c.jsx("title",{children:"Warning"}),c.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),c.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"})]})}const Na=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"}));function Ha(e,t){if(t)return t;switch(e){case Z.Info:return"For your information";case Z.Warning:return"Please pay attention";case Z.Error:return"Something went wrong";case Z.Success:return"Everything is okay";case Z.Help:return"Useful tip";default:return"Alert"}}function Wa(e,t){if(t)return c.jsx(ae,{name:t});switch(e){case Z.Info:return c.jsx(zn,{});case Z.Warning:return c.jsx(Tn,{});case Z.Error:return c.jsx(Pn,{});case Z.Success:return c.jsx(sr,{});case Z.Help:return c.jsx(An,{});default:return null}}const Ga=({title:e,onClose:t,mode:r,icon:n,theme:o})=>{const i=Ha(r,e),a=Wa(r,n);return c.jsxs(Oa,{$theme:o,children:[c.jsxs("h3",{children:[a,i]}),c.jsx(nt,{icon:j.Cancel,view:ue.Icon,label:"Close alert popup",onClick:t})]})},Ua=({isOpened:e,onClose:t,title:r,message:n,mode:o=Z.Info,icon:i,...a})=>{const d=nr(e),l=d&&!e,h=X();return d?c.jsx(Rt,{children:c.jsx(Da,{$isClosing:l,$theme:h,children:c.jsxs(Ma,{...a,$theme:h,children:[c.jsx(Ga,{title:r,onClose:t,mode:o,icon:i,theme:h}),c.jsx("p",{children:n})]})})}):null};exports.ChopLogicAlert=Ua;exports.ChopLogicAlertMode=Z;exports.ChopLogicButton=nt;exports.ChopLogicButtonView=ue;exports.ChopLogicCheckbox=us;exports.ChopLogicDialog=Us;exports.ChopLogicErrorMessage=er;exports.ChopLogicForm=ea;exports.ChopLogicFormContext=xe;exports.ChopLogicGrid=va;exports.ChopLogicIcon=ae;exports.ChopLogicIconName=j;exports.ChopLogicLabel=Re;exports.ChopLogicMenu=ja;exports.ChopLogicMultiSelect=xs;exports.ChopLogicNumericInput=js;exports.ChopLogicOrientationMode=Y;exports.ChopLogicPortal=Rt;exports.ChopLogicSelect=zs;exports.ChopLogicTabs=Ta;exports.ChopLogicTextInput=Bs;exports.ChopLogicThemeContext=mn;exports.ChopLogicThemeMode=tr;exports.ChopLogicTooltip=kn;exports.ChopLogicTooltipContainer=rr;exports.InputInnerButton=tt;exports.jsxRuntimeExports=c;exports.useChopLogicTheme=X;exports.useClickOutside=ot;exports.useContainerDimensions=yn;exports.useElementIds=he;exports.useKeyPress=it;exports.useModalFocusTrap=bn;exports.useMount=nr;exports.useResetFormInput=Ve;exports.useTooltipPosition=$n;exports.useWindowDimensions=vn;
|
|
993
|
+
//# sourceMappingURL=index-HVCL1DYW.cjs.map
|