UNPKG

fluid-system-components

Version:

Fluid System is an open-source React component library created to build fast and awesome websites from scratch with easy to use Components.

48 lines (47 loc) 44.1 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const C=require("react/jsx-runtime"),V=require("react");require("react-dom");function Tt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const v=Tt(V);function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne={exports:{}},ce={exports:{}},N={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var qe;function Rt(){if(qe)return N;qe=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,L=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,W=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function O(u){if(typeof u=="object"&&u!==null){var F=u.$$typeof;switch(F){case t:switch(u=u.type,u){case d:case f:case n:case o:case a:case h:return u;default:switch(u=u&&u.$$typeof,u){case c:case m:case A:case L:case i:return u;default:return F}}case r:return F}}}function b(u){return O(u)===f}return N.AsyncMode=d,N.ConcurrentMode=f,N.ContextConsumer=c,N.ContextProvider=i,N.Element=t,N.ForwardRef=m,N.Fragment=n,N.Lazy=A,N.Memo=L,N.Portal=r,N.Profiler=o,N.StrictMode=a,N.Suspense=h,N.isAsyncMode=function(u){return b(u)||O(u)===d},N.isConcurrentMode=b,N.isContextConsumer=function(u){return O(u)===c},N.isContextProvider=function(u){return O(u)===i},N.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===t},N.isForwardRef=function(u){return O(u)===m},N.isFragment=function(u){return O(u)===n},N.isLazy=function(u){return O(u)===A},N.isMemo=function(u){return O(u)===L},N.isPortal=function(u){return O(u)===r},N.isProfiler=function(u){return O(u)===o},N.isStrictMode=function(u){return O(u)===a},N.isSuspense=function(u){return O(u)===h},N.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===n||u===f||u===o||u===a||u===h||u===y||typeof u=="object"&&u!==null&&(u.$$typeof===A||u.$$typeof===L||u.$$typeof===i||u.$$typeof===c||u.$$typeof===m||u.$$typeof===$||u.$$typeof===W||u.$$typeof===D||u.$$typeof===T)},N.typeOf=O,N}var j={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ze;function _t(){return ze||(ze=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,L=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,W=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function O(l){return typeof l=="string"||typeof l=="function"||l===n||l===f||l===o||l===a||l===h||l===y||typeof l=="object"&&l!==null&&(l.$$typeof===A||l.$$typeof===L||l.$$typeof===i||l.$$typeof===c||l.$$typeof===m||l.$$typeof===$||l.$$typeof===W||l.$$typeof===D||l.$$typeof===T)}function b(l){if(typeof l=="object"&&l!==null){var z=l.$$typeof;switch(z){case t:var se=l.type;switch(se){case d:case f:case n:case o:case a:case h:return se;default:var Fe=se&&se.$$typeof;switch(Fe){case c:case m:case A:case L:case i:return Fe;default:return z}}case r:return z}}}var u=d,F=f,J=c,Y=i,ne=t,Z=m,H=n,ge=A,be=L,K=r,Ee=o,q=a,G=h,ie=!1;function we(l){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),s(l)||b(l)===d}function s(l){return b(l)===f}function p(l){return b(l)===c}function S(l){return b(l)===i}function w(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function g(l){return b(l)===m}function P(l){return b(l)===n}function E(l){return b(l)===A}function x(l){return b(l)===L}function R(l){return b(l)===r}function I(l){return b(l)===o}function _(l){return b(l)===a}function k(l){return b(l)===h}j.AsyncMode=u,j.ConcurrentMode=F,j.ContextConsumer=J,j.ContextProvider=Y,j.Element=ne,j.ForwardRef=Z,j.Fragment=H,j.Lazy=ge,j.Memo=be,j.Portal=K,j.Profiler=Ee,j.StrictMode=q,j.Suspense=G,j.isAsyncMode=we,j.isConcurrentMode=s,j.isContextConsumer=p,j.isContextProvider=S,j.isElement=w,j.isForwardRef=g,j.isFragment=P,j.isLazy=E,j.isMemo=x,j.isPortal=R,j.isProfiler=I,j.isStrictMode=_,j.isSuspense=k,j.isValidElementType=O,j.typeOf=b}()),j}var Be;function at(){return Be||(Be=1,process.env.NODE_ENV==="production"?ce.exports=Rt():ce.exports=_t()),ce.exports}/* object-assign (c) Sindre Sorhus @license MIT */var xe,Ye;function Nt(){if(Ye)return xe;Ye=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(i).map(function(m){return i[m]});if(d.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xe=a()?Object.assign:function(o,i){for(var c,d=n(o),f,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var h in c)t.call(c,h)&&(d[h]=c[h]);if(e){f=e(c);for(var y=0;y<f.length;y++)r.call(c,f[y])&&(d[f[y]]=c[f[y]])}}return d},xe}var Ce,Ze;function Le(){if(Ze)return Ce;Ze=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ce=e,Ce}var Oe,Ge;function ot(){return Ge||(Ge=1,Oe=Function.call.bind(Object.prototype.hasOwnProperty)),Oe}var Se,Je;function jt(){if(Je)return Se;Je=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Le(),r={},n=ot();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,c,d,f){if(process.env.NODE_ENV!=="production"){for(var m in o)if(n(o,m)){var h;try{if(typeof o[m]!="function"){var y=Error((d||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=o[m](i,m,d,c,null,t)}catch(A){h=A}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var L=f?f():"";e("Failed "+c+" type: "+h.message+(L??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Se=a,Se}var Te,He;function It(){if(He)return Te;He=1;var e=at(),t=Nt(),r=Le(),n=ot(),a=jt(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return Te=function(c,d){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function h(s){var p=s&&(f&&s[f]||s[m]);if(typeof p=="function")return p}var y="<<anonymous>>",L={array:W("array"),bigint:W("bigint"),bool:W("boolean"),func:W("function"),number:W("number"),object:W("object"),string:W("string"),symbol:W("symbol"),any:D(),arrayOf:O,element:b(),elementType:u(),instanceOf:F,node:Z(),objectOf:Y,oneOf:J,oneOfType:ne,shape:ge,exact:be};function A(s,p){return s===p?s!==0||1/s===1/p:s!==s&&p!==p}function T(s,p){this.message=s,this.data=p&&typeof p=="object"?p:{},this.stack=""}T.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var p={},S=0;function w(P,E,x,R,I,_,k){if(R=R||y,_=_||x,k!==r){if(d){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var z=R+":"+x;!p[z]&&S<3&&(o("You are manually calling a React.PropTypes validation function for the `"+_+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),p[z]=!0,S++)}}return E[x]==null?P?E[x]===null?new T("The "+I+" `"+_+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new T("The "+I+" `"+_+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:s(E,x,R,I,_)}var g=w.bind(null,!1);return g.isRequired=w.bind(null,!0),g}function W(s){function p(S,w,g,P,E,x){var R=S[w],I=q(R);if(I!==s){var _=G(R);return new T("Invalid "+P+" `"+E+"` of type "+("`"+_+"` supplied to `"+g+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(p)}function D(){return $(i)}function O(s){function p(S,w,g,P,E){if(typeof s!="function")return new T("Property `"+E+"` of component `"+g+"` has invalid PropType notation inside arrayOf.");var x=S[w];if(!Array.isArray(x)){var R=q(x);return new T("Invalid "+P+" `"+E+"` of type "+("`"+R+"` supplied to `"+g+"`, expected an array."))}for(var I=0;I<x.length;I++){var _=s(x,I,g,P,E+"["+I+"]",r);if(_ instanceof Error)return _}return null}return $(p)}function b(){function s(p,S,w,g,P){var E=p[S];if(!c(E)){var x=q(E);return new T("Invalid "+g+" `"+P+"` of type "+("`"+x+"` supplied to `"+w+"`, expected a single ReactElement."))}return null}return $(s)}function u(){function s(p,S,w,g,P){var E=p[S];if(!e.isValidElementType(E)){var x=q(E);return new T("Invalid "+g+" `"+P+"` of type "+("`"+x+"` supplied to `"+w+"`, expected a single ReactElement type."))}return null}return $(s)}function F(s){function p(S,w,g,P,E){if(!(S[w]instanceof s)){var x=s.name||y,R=we(S[w]);return new T("Invalid "+P+" `"+E+"` of type "+("`"+R+"` supplied to `"+g+"`, expected ")+("instance of `"+x+"`."))}return null}return $(p)}function J(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function p(S,w,g,P,E){for(var x=S[w],R=0;R<s.length;R++)if(A(x,s[R]))return null;var I=JSON.stringify(s,function(k,l){var z=G(l);return z==="symbol"?String(l):l});return new T("Invalid "+P+" `"+E+"` of value `"+String(x)+"` "+("supplied to `"+g+"`, expected one of "+I+"."))}return $(p)}function Y(s){function p(S,w,g,P,E){if(typeof s!="function")return new T("Property `"+E+"` of component `"+g+"` has invalid PropType notation inside objectOf.");var x=S[w],R=q(x);if(R!=="object")return new T("Invalid "+P+" `"+E+"` of type "+("`"+R+"` supplied to `"+g+"`, expected an object."));for(var I in x)if(n(x,I)){var _=s(x,I,g,P,E+"."+I,r);if(_ instanceof Error)return _}return null}return $(p)}function ne(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var p=0;p<s.length;p++){var S=s[p];if(typeof S!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(S)+" at index "+p+"."),i}function w(g,P,E,x,R){for(var I=[],_=0;_<s.length;_++){var k=s[_],l=k(g,P,E,x,R,r);if(l==null)return null;l.data&&n(l.data,"expectedType")&&I.push(l.data.expectedType)}var z=I.length>0?", expected one of type ["+I.join(", ")+"]":"";return new T("Invalid "+x+" `"+R+"` supplied to "+("`"+E+"`"+z+"."))}return $(w)}function Z(){function s(p,S,w,g,P){return K(p[S])?null:new T("Invalid "+g+" `"+P+"` supplied to "+("`"+w+"`, expected a ReactNode."))}return $(s)}function H(s,p,S,w,g){return new T((s||"React class")+": "+p+" type `"+S+"."+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+g+"`.")}function ge(s){function p(S,w,g,P,E){var x=S[w],R=q(x);if(R!=="object")return new T("Invalid "+P+" `"+E+"` of type `"+R+"` "+("supplied to `"+g+"`, expected `object`."));for(var I in s){var _=s[I];if(typeof _!="function")return H(g,P,E,I,G(_));var k=_(x,I,g,P,E+"."+I,r);if(k)return k}return null}return $(p)}function be(s){function p(S,w,g,P,E){var x=S[w],R=q(x);if(R!=="object")return new T("Invalid "+P+" `"+E+"` of type `"+R+"` "+("supplied to `"+g+"`, expected `object`."));var I=t({},S[w],s);for(var _ in I){var k=s[_];if(n(s,_)&&typeof k!="function")return H(g,P,E,_,G(k));if(!k)return new T("Invalid "+P+" `"+E+"` key `"+_+"` supplied to `"+g+"`.\nBad object: "+JSON.stringify(S[w],null," ")+` Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l=k(x,_,g,P,E+"."+_,r);if(l)return l}return null}return $(p)}function K(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(K);if(s===null||c(s))return!0;var p=h(s);if(p){var S=p.call(s),w;if(p!==s.entries){for(;!(w=S.next()).done;)if(!K(w.value))return!1}else for(;!(w=S.next()).done;){var g=w.value;if(g&&!K(g[1]))return!1}}else return!1;return!0;default:return!1}}function Ee(s,p){return s==="symbol"?!0:p?p["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&p instanceof Symbol:!1}function q(s){var p=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":Ee(p,s)?"symbol":p}function G(s){if(typeof s>"u"||s===null)return""+s;var p=q(s);if(p==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return p}function ie(s){var p=G(s);switch(p){case"array":case"object":return"an "+p;case"boolean":case"date":case"regexp":return"a "+p;default:return p}}function we(s){return!s.constructor||!s.constructor.name?y:s.constructor.name}return L.checkPropTypes=a,L.resetWarningCache=a.resetWarningCache,L.PropTypes=L,L},Te}var Pe,Ke;function At(){if(Ke)return Pe;Ke=1;var e=Le();function t(){}function r(){}return r.resetWarningCache=t,Pe=function(){function n(i,c,d,f,m,h){if(h!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},Pe}if(process.env.NODE_ENV!=="production"){var Lt=at(),Dt=!0;Ne.exports=It()(Lt.isElement,Dt)}else Ne.exports=At()();var Mt=Ne.exports;const M=Pt(Mt),De=({primary:e=!1,backgroundColor:t=null,size:r="medium",variant:n="secondary",onClick:a=void 0,children:o,...i})=>{const c=n?`fs-button--${n}`:e?"fs-button--primary":"fs-button--secondary";return C.jsx("button",{type:"button",className:["fs-button",`fs-button--${r}`,c].join(" "),style:t&&{backgroundColor:t},onClick:a,...i,children:o})};De.propTypes={primary:M.bool,backgroundColor:M.string,size:M.oneOf(["small","medium","large"]),children:M.node.isRequired,variant:M.oneOf(["primary","secondary","success","danger","warning","mosaic"]),onClick:M.func};const it=({size:e,children:t,...r})=>{const n=e?`fs-card--${e}`:"";return C.jsx("div",{className:`fs-card ${n}`,...r,children:t})};it.propTypes={size:M.oneOf(["small","medium","large"]),children:M.node.isRequired};var st={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xe=V.createContext&&V.createContext(st),$t=["attr","size","title"];function Ut(e,t){if(e==null)return{};var r=Wt(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},de.apply(this,arguments)}function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qe(Object(r),!0).forEach(function(n){kt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kt(e,t,r){return t=Vt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vt(e){var t=Ft(e,"string");return typeof t=="symbol"?t:t+""}function Ft(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e){return e&&e.map((t,r)=>V.createElement(t.tag,pe({key:r},t.attr),ct(t.child)))}function ee(e){return t=>V.createElement(qt,de({attr:pe({},e.attr)},t),ct(e.child))}function qt(e){var t=r=>{var{attr:n,size:a,title:o}=e,i=Ut(e,$t),c=a||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),V.createElement("svg",de({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:d,style:pe(pe({color:e.color||r.color},r.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&V.createElement("title",null,o),e.children)};return Xe!==void 0?V.createElement(Xe.Consumer,null,r=>t(r)):t(st)}function zt(e){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},child:[]}]})(e)}function Bt(e){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function Yt(e){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"},child:[]}]})(e)}function Zt(e){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function Gt(e){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"},child:[]}]})(e)}function Jt(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z",opacity:".87"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"},child:[]}]})(e)}const ut=({status:e,shape:t,showIcon:r,backgroundColor:n,fontColor:a})=>{const o=()=>{switch(e){case"correct":return C.jsx(zt,{});case"warning":return C.jsx(Gt,{});case"alert":return C.jsx(Jt,{});default:return null}},i={backgroundColor:n||"transparent",color:a||"inherit"},c={correct:"#15be77",warning:"#ffa100",alert:"#ff005c"};return C.jsx("span",{className:`fs-icon fs-icon--${e} fs-icon--${t}`,style:{...i,backgroundColor:c[e],color:a},children:r&&(t==="circle"||t==="square")&&o()})};ut.propTypes={status:M.oneOf(["correct","warning","alert"]).isRequired,shape:M.oneOf(["circle","square"]).isRequired,showIcon:M.bool,backgroundColor:M.string,fontColor:M.string};const lt=({status:e,children:t})=>{const r={primary:"#ffa294",secondary:"#a3a3f9",tertiary:"#545fe7"},n={dark:"#151321",light:"#f4f4f4"};return C.jsx("span",{className:`fs-text fs-text--${e}`,style:{backgroundColor:r[e],color:n.light},children:t})};lt.propTypes={status:M.oneOf(["primary","secondary","tertiary"]).isRequired,children:M.node.isRequired};const Me=({variant:e="dots",size:t="medium",color:r="primary"})=>C.jsx("div",{className:`fs-spinner fs-spinner--${e} fs-spinner--${t} fs-spinner--${r} fs-m4`,children:e==="dots"?C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"fs-spinner__dot"}),C.jsx("div",{className:"fs-spinner__dot"}),C.jsx("div",{className:"fs-spinner__dot"})]}):C.jsx("div",{className:"fs-spinner__circle"})});Me.propTypes={variant:M.oneOf(["dots","circle"]).isRequired,size:M.oneOf(["medium","large"]),color:M.oneOf(["primary","secondary","tertiary"])};Me.defaultProps={size:"medium",color:"primary"};const ft=({variant:e="light",children:t,...r})=>{const[n,a]=V.useState(!1),o=()=>{a(i=>!i)};return C.jsxs("div",{className:`fs-accordion fs-accordion--${e}`,children:[C.jsxs("div",{className:`fs-accordion--header fs-accordion--header--${e}`,onClick:o,...r,children:[C.jsx("p",{className:"fs-body",children:"Accordion"}),C.jsx(Yt,{className:`fs-accordion--icon ${n?"fs-accordion--icon__rotate":""}`})]}),C.jsx("div",{className:`fs-accordion-body ${n?"fs-accordion-body__show":""} fs-accordion-body--${e}`,children:C.jsx("p",{className:"fs-body",children:t||"Lorem Ipsum is simply dummy text of the printing and typesetting industry. "})})]})};ft.propTypes={variant:M.oneOf(["light","inverse"]),children:M.node.isRequired};const Ht=V.createContext(),Kt=()=>V.useContext(Ht);/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(this,arguments)}var et;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(et||(et={}));function U(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ae(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ie(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function dt(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var tt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tt||(tt={}));function rt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Xt(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:n.reduce((f,m,h)=>{let{paramName:y,isOptional:L}=m;if(y==="*"){let T=c[h]||"";i=o.slice(0,o.length-T.length).replace(/(.)\/+$/,"$1")}const A=c[h];return L&&!A?f[y]=void 0:f[y]=(A||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:i,pattern:e}}function Xt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ae(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,c,d)=>(n.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function X(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Qt(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?dt(e):e;return{pathname:r?r.startsWith("/")?r:er(r,t):t,search:rr(n),hash:nr(a)}}function er(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Re(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function tr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function pt(e,t){let r=tr(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function mt(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=dt(e):(a=je({},e),U(!a.pathname||!a.pathname.includes("?"),Re("?","pathname","search",a)),U(!a.pathname||!a.pathname.includes("#"),Re("#","pathname","hash",a)),U(!a.search||!a.search.includes("#"),Re("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,c;if(i==null)c=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let y=i.split("/");for(;y[0]==="..";)y.shift(),h-=1;a.pathname=y.join("/")}c=h>=0?t[h]:"/"}let d=Qt(a,c),f=i&&i!=="/"&&i.endsWith("/"),m=(o||i===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}const $e=e=>e.join("/").replace(/\/\/+/g,"/"),rr=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ht=["post","put","patch","delete"];new Set(ht);const ar=["get",...ht];new Set(ar);/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ae.apply(this,arguments)}const ve=v.createContext(null);process.env.NODE_ENV!=="production"&&(ve.displayName="DataRouter");const vt=v.createContext(null);process.env.NODE_ENV!=="production"&&(vt.displayName="DataRouterState");const or=v.createContext(null);process.env.NODE_ENV!=="production"&&(or.displayName="Await");const B=v.createContext(null);process.env.NODE_ENV!=="production"&&(B.displayName="Navigation");const Ue=v.createContext(null);process.env.NODE_ENV!=="production"&&(Ue.displayName="Location");const te=v.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(te.displayName="Route");const ir=v.createContext(null);process.env.NODE_ENV!=="production"&&(ir.displayName="RouteError");function sr(e,t){let{relative:r}=t===void 0?{}:t;We()||(process.env.NODE_ENV!=="production"?U(!1,"useHref() may be used only in the context of a <Router> component."):U(!1));let{basename:n,navigator:a}=v.useContext(B),{hash:o,pathname:i,search:c}=oe(e,{relative:r}),d=i;return n!=="/"&&(d=i==="/"?n:$e([n,i])),a.createHref({pathname:d,search:c,hash:o})}function We(){return v.useContext(Ue)!=null}function re(){return We()||(process.env.NODE_ENV!=="production"?U(!1,"useLocation() may be used only in the context of a <Router> component."):U(!1)),v.useContext(Ue).location}const yt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gt(e){v.useContext(B).static||v.useLayoutEffect(e)}function cr(){let{isDataRoute:e}=v.useContext(te);return e?pr():ur()}function ur(){We()||(process.env.NODE_ENV!=="production"?U(!1,"useNavigate() may be used only in the context of a <Router> component."):U(!1));let e=v.useContext(ve),{basename:t,future:r,navigator:n}=v.useContext(B),{matches:a}=v.useContext(te),{pathname:o}=re(),i=JSON.stringify(pt(a,r.v7_relativeSplatPath)),c=v.useRef(!1);return gt(()=>{c.current=!0}),v.useCallback(function(f,m){if(m===void 0&&(m={}),process.env.NODE_ENV!=="production"&&ae(c.current,yt),!c.current)return;if(typeof f=="number"){n.go(f);return}let h=mt(f,JSON.parse(i),o,m.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:$e([t,h.pathname])),(m.replace?n.replace:n.push)(h,m.state,m)},[t,n,i,o,e])}function oe(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=v.useContext(B),{matches:a}=v.useContext(te),{pathname:o}=re(),i=JSON.stringify(pt(a,n.v7_relativeSplatPath));return v.useMemo(()=>mt(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}var bt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bt||{}),ke=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ke||{});function Et(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function lr(e){let t=v.useContext(ve);return t||(process.env.NODE_ENV!=="production"?U(!1,Et(e)):U(!1)),t}function fr(e){let t=v.useContext(te);return t||(process.env.NODE_ENV!=="production"?U(!1,Et(e)):U(!1)),t}function wt(e){let t=fr(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?U(!1,e+' can only be used on routes that contain a unique "id"'):U(!1)),r.route.id}function dr(){return wt(ke.UseRouteId)}function pr(){let{router:e}=lr(bt.UseNavigateStable),t=wt(ke.UseNavigateStable),r=v.useRef(!1);return gt(()=>{r.current=!0}),v.useCallback(function(a,o){o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&ae(r.current,yt),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Ae({fromRouteId:t},o)))},[e,t])}new Promise(()=>{});/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}function Ve(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}const le="get",fe="application/x-www-form-urlencoded";function ye(e){return e!=null&&typeof e.tagName=="string"}function mr(e){return ye(e)&&e.tagName.toLowerCase()==="button"}function hr(e){return ye(e)&&e.tagName.toLowerCase()==="form"}function vr(e){return ye(e)&&e.tagName.toLowerCase()==="input"}function yr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gr(e,t){return e.button===0&&(!t||t==="_self")&&!yr(e)}let ue=null;function br(){if(ue===null)try{new FormData(document.createElement("form"),0),ue=!1}catch{ue=!0}return ue}const Er=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _e(e){return e!=null&&!Er.has(e)?(process.env.NODE_ENV!=="production"&&ae(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+fe+'"')),null):e}function wr(e,t){let r,n,a,o,i;if(hr(e)){let c=e.getAttribute("action");n=c?X(c,t):null,r=e.getAttribute("method")||le,a=_e(e.getAttribute("enctype"))||fe,o=new FormData(e)}else if(mr(e)||vr(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(n=d?X(d,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||le,a=_e(e.getAttribute("formenctype"))||_e(c.getAttribute("enctype"))||fe,o=new FormData(c,e),!br()){let{name:f,type:m,value:h}=e;if(m==="image"){let y=f?f+".":"";o.append(y+"x","0"),o.append(y+"y","0")}else f&&o.append(f,h)}}else{if(ye(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=le,n=null,a=fe,i=e}return o&&a==="text/plain"&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}const xr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Cr=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Or=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],Sr="6";try{window.__reactRouterVersion=Sr}catch{}const xt=v.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(xt.displayName="ViewTransition");const Tr=v.createContext(new Map);process.env.NODE_ENV!=="production"&&(Tr.displayName="Fetchers");process.env.NODE_ENV;const Pr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,me=v.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:c,target:d,to:f,preventScrollReset:m,unstable_viewTransition:h}=t,y=Ve(t,xr),{basename:L}=v.useContext(B),A,T=!1;if(typeof f=="string"&&Rr.test(f)&&(A=f,Pr))try{let O=new URL(window.location.href),b=f.startsWith("//")?new URL(O.protocol+f):new URL(f),u=X(b.pathname,L);b.origin===O.origin&&u!=null?f=u+b.search+b.hash:T=!0}catch{process.env.NODE_ENV!=="production"&&ae(!1,'<Link to="'+f+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let $=sr(f,{relative:a}),W=Ir(f,{replace:i,state:c,target:d,preventScrollReset:m,relative:a,unstable_viewTransition:h});function D(O){n&&n(O),O.defaultPrevented||W(O)}return v.createElement("a",Q({},y,{href:A||$,onClick:T||o?n:D,ref:r,target:d}))});process.env.NODE_ENV!=="production"&&(me.displayName="Link");const _r=v.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:c,to:d,unstable_viewTransition:f,children:m}=t,h=Ve(t,Cr),y=oe(d,{relative:h.relative}),L=re(),A=v.useContext(vt),{navigator:T,basename:$}=v.useContext(B),W=A!=null&&Ur(y)&&f===!0,D=T.encodeLocation?T.encodeLocation(y).pathname:y.pathname,O=L.pathname,b=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;a||(O=O.toLowerCase(),b=b?b.toLowerCase():null,D=D.toLowerCase()),b&&$&&(b=X(b,$)||b);const u=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let F=O===D||!i&&O.startsWith(D)&&O.charAt(u)==="/",J=b!=null&&(b===D||!i&&b.startsWith(D)&&b.charAt(D.length)==="/"),Y={isActive:F,isPending:J,isTransitioning:W},ne=F?n:void 0,Z;typeof o=="function"?Z=o(Y):Z=[o,F?"active":null,J?"pending":null,W?"transitioning":null].filter(Boolean).join(" ");let H=typeof c=="function"?c(Y):c;return v.createElement(me,Q({},h,{"aria-current":ne,className:Z,ref:r,style:H,to:d,unstable_viewTransition:f}),typeof m=="function"?m(Y):m)});process.env.NODE_ENV!=="production"&&(_r.displayName="NavLink");const Nr=v.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:c=le,action:d,onSubmit:f,relative:m,preventScrollReset:h,unstable_viewTransition:y}=e,L=Ve(e,Or),A=Mr(),T=$r(d,{relative:m}),$=c.toLowerCase()==="get"?"get":"post",W=D=>{if(f&&f(D),D.defaultPrevented)return;D.preventDefault();let O=D.nativeEvent.submitter,b=(O==null?void 0:O.getAttribute("formmethod"))||c;A(O||D.currentTarget,{fetcherKey:r,method:b,navigate:n,replace:o,state:i,relative:m,preventScrollReset:h,unstable_viewTransition:y})};return v.createElement("form",Q({ref:t,method:$,action:T,onSubmit:a?f:W},L))});process.env.NODE_ENV!=="production"&&(Nr.displayName="Form");process.env.NODE_ENV;var he;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(he||(he={}));var nt;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nt||(nt={}));function jr(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Ct(e){let t=v.useContext(ve);return t||(process.env.NODE_ENV!=="production"?U(!1,jr(e)):U(!1)),t}function Ir(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:c}=t===void 0?{}:t,d=cr(),f=re(),m=oe(e,{relative:i});return v.useCallback(h=>{if(gr(h,r)){h.preventDefault();let y=n!==void 0?n:Ie(f)===Ie(m);d(e,{replace:y,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:c})}},[f,d,m,n,a,r,e,o,i,c])}function Ar(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Lr=0,Dr=()=>"__"+String(++Lr)+"__";function Mr(){let{router:e}=Ct(he.UseSubmit),{basename:t}=v.useContext(B),r=dr();return v.useCallback(function(n,a){a===void 0&&(a={}),Ar();let{action:o,method:i,encType:c,formData:d,body:f}=wr(n,t);if(a.navigate===!1){let m=a.fetcherKey||Dr();e.fetch(m,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||i,formEncType:a.encType||c,unstable_flushSync:a.unstable_flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||i,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:r,unstable_flushSync:a.unstable_flushSync,unstable_viewTransition:a.unstable_viewTransition})},[e,t,r])}function $r(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=v.useContext(B),a=v.useContext(te);a||(process.env.NODE_ENV!=="production"?U(!1,"useFormAction must be used inside a RouteContext"):U(!1));let[o]=a.matches.slice(-1),i=Q({},oe(e||".",{relative:r})),c=re();if(e==null){i.search=c.search;let d=new URLSearchParams(i.search);d.has("index")&&d.get("index")===""&&(d.delete("index"),i.search=d.toString()?"?"+d.toString():"")}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:$e([n,i.pathname])),Ie(i)}function Ur(e,t){t===void 0&&(t={});let r=v.useContext(xt);r==null&&(process.env.NODE_ENV!=="production"?U(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):U(!1));let{basename:n}=Ct(he.useViewTransitionState),a=oe(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=X(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=X(r.nextLocation.pathname,n)||r.nextLocation.pathname;return rt(a.pathname,i)!=null||rt(a.pathname,o)!=null}const Wr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGNpcmNsZSBjeD0iMTAwIiBjeT0iMTAwIiByPSI5MCIgZmlsbD0iI2ZmYTI5NCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEwIi8+CiAgCiAgPCEtLSBUZXh0byAiRlMiIGVzdGlsaXphZG8gY29uIFF1aWNrc2FuZCAtLT4KICA8dGV4dCB4PSI1MCUiIHk9IjUwJSIgZm9udC1mYW1pbHk9IidRdWlja3NhbmQnLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjgwIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjZjRmNGY0IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCI+CiAgICBGUwogIDwvdGV4dD4KPC9zdmc+Cg==",Ot=({title:e=""})=>{const{isSidebarOpen:t,toggleSidebar:r}=Kt(),a=re().pathname==="/";return C.jsx("header",{children:C.jsxs("div",{className:"fs-header",children:[C.jsxs("div",{className:"fs-flex--row",children:[C.jsx(me,{to:"/",children:C.jsx("img",{className:"fs-logo",src:Wr,alt:"Fluid System Logo"})}),C.jsx(me,{to:"/components",className:"fs-body fs-link",children:"Components"}),e&&C.jsx("h1",{children:e})]}),!a&&C.jsx("button",{className:"fs-menu",onClick:r,children:t?C.jsx(Bt,{}):C.jsx(Zt,{})})]})})};Ot.PropTypes={title:M.string};const St=({triggerId:e,buttonText:t,variant:r,children:n})=>{const[a,o]=V.useState(!1),i=()=>{o(!a)};return C.jsxs("div",{children:[C.jsx(De,{variant:r,"data-fs-id":e,onClick:i,children:t}),a&&C.jsx("div",{className:"fs-modal-overlay",onClick:i,children:C.jsxs("div",{className:"fs-modal-content",onClick:c=>c.stopPropagation(),children:[C.jsx("button",{className:"fs-modal-close",onClick:i,children:"×"}),C.jsx("div",{children:n})]})})]})};St.propTypes={triggerId:M.string.isRequired,buttonText:M.string.isRequired,variant:M.oneOf(["primary","secondary","success","danger","warning","mosaic"]).isRequired,children:M.node.isRequired};exports.Accordion=ft;exports.Button=De;exports.Card=it;exports.Header=Ot;exports.Modal=St;exports.PillIcon=ut;exports.PillText=lt;exports.Spinner=Me;