@progressiveui/react 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +80 -0
- package/package.json +8 -8
- package/src/components/SkeletonText/SkeletonText.tsx +15 -15
- package/src/index.ts +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react"),yr=require("react-transition-state"),$=require("classnames"),mn=require("react-dom"),wr=require("react-popper-tooltip");function $r(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const K=$r(W);function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var We={exports:{}},Pe={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ht;function Nr(){if(Ht)return Pe;Ht=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(o,i,c){var l=null;if(c!==void 0&&(l=""+c),i.key!==void 0&&(l=""+i.key),"key"in i){c={};for(var u in i)u!=="key"&&(c[u]=i[u])}else c=i;return i=c.ref,{$$typeof:e,type:o,key:l,ref:i!==void 0?i:null,props:c}}return Pe.Fragment=n,Pe.jsx=r,Pe.jsxs=r,Pe}var Oe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Yt;function Er(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===ee?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case g:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case b:return"Suspense";case q:return"SuspenseList";case V:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case j:return"Portal";case P:return(s.displayName||"Context")+".Provider";case O:return(s._context.displayName||"Context")+".Consumer";case C:var f=s.render;return s=s.displayName,s||(s=f.displayName||f.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case z:return f=s.displayName||null,f!==null?f:e(s.type)||"Memo";case U:f=s._payload,s=s._init;try{return e(s(f))}catch{}}return null}function n(s){return""+s}function r(s){try{n(s);var f=!1}catch{f=!0}if(f){f=console;var y=f.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return y.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),n(s)}}function o(s){if(s===g)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===U)return"<...>";try{var f=e(s);return f?"<"+f+">":"<...>"}catch{return"<...>"}}function i(){var s=F.A;return s===null?null:s.getOwner()}function c(){return Error("react-stack-top-frame")}function l(s){if(G.call(s,"key")){var f=Object.getOwnPropertyDescriptor(s,"key").get;if(f&&f.isReactWarning)return!1}return s.key!==void 0}function u(s,f){function y(){ue||(ue=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",f))}y.isReactWarning=!0,Object.defineProperty(s,"key",{get:y,configurable:!0})}function p(){var s=e(this.type);return se[s]||(se[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function d(s,f,y,N,T,D,k,Y){return y=D.ref,s={$$typeof:x,type:s,key:f,props:D,_owner:T},(y!==void 0?y:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:p}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function m(s,f,y,N,T,D,k,Y){var A=f.children;if(A!==void 0)if(N)if(oe(A)){for(N=0;N<A.length;N++)h(A[N]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(A);if(G.call(f,"key")){A=e(s);var B=Object.keys(f).filter(function(fe){return fe!=="key"});N=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",me[A+N]||(B=0<B.length?"{"+B.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,N,A,B,A),me[A+N]=!0)}if(A=null,y!==void 0&&(r(y),A=""+y),l(f)&&(r(f.key),A=""+f.key),"key"in f){y={};for(var Q in f)Q!=="key"&&(y[Q]=f[Q])}else y=f;return A&&u(y,typeof s=="function"?s.displayName||s.name||"Unknown":s),d(s,A,D,T,i(),y,k,Y)}function h(s){typeof s=="object"&&s!==null&&s.$$typeof===x&&s._store&&(s._store.validated=1)}var _=W,x=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),P=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),F=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,oe=Array.isArray,X=console.createTask?console.createTask:function(){return null};_={"react-stack-bottom-frame":function(s){return s()}};var ue,se={},de=_["react-stack-bottom-frame"].bind(_,c)(),pe=X(o(c)),me={};Oe.Fragment=g,Oe.jsx=function(s,f,y,N,T){var D=1e4>F.recentlyCreatedOwnerStacks++;return m(s,f,y,!1,N,T,D?Error("react-stack-top-frame"):de,D?X(o(s)):pe)},Oe.jsxs=function(s,f,y,N,T){var D=1e4>F.recentlyCreatedOwnerStacks++;return m(s,f,y,!0,N,T,D?Error("react-stack-top-frame"):de,D?X(o(s)):pe)}}()),Oe}var Ut;function Cr(){return Ut||(Ut=1,process.env.NODE_ENV==="production"?We.exports=Nr():We.exports=Er()),We.exports}var t=Cr();const ze=(e,n)=>e===!0||!!(e&&e[n]),Tr=({transition:e,transitionTimeout:n,...r}={})=>{const o=yr.useTransitionMap({timeout:n,enter:ze(e,"enter"),exit:ze(e,"exit"),preEnter:ze(e,"preEnter"),preExit:ze(e,"preExit"),...r});return{mountOnEnter:!!r.mountOnEnter,initialEntered:!!r.initialEntered,...o}},ke="szh-accordion",ht="szh-adn",Sr=`data-${ht}`,dt=`data-${ht}-btn`,hn=W.createContext({}),Re=(e,n,r)=>(o,i)=>{const c=n?`${e}__${n}`:e;let l=c;r&&Object.keys(r).forEach(p=>{const d=r[p];d&&(l+=` ${c}--${d===!0?p:`${p}-${d}`}`)});let u=typeof o=="function"?o(i):o;return typeof u=="string"&&(u=u.trim(),u&&(l+=` ${u}`)),l},ft=(e,n)=>{if(!n)return e;const r={...e};return Object.keys(n).forEach(o=>{const i=e[o],c=n[o];typeof c=="function"&&i?r[o]=(...l)=>{i(...l),c(...l)}:r[o]=c}),r},kr=e=>t.jsx(hn.Provider,{...e}),nt=e=>{do e=e.parentElement;while(e&&!e.hasAttribute(Sr));return e},Vt=(e,n,r)=>e?n>0?n-1:r-1:(n+1)%r,Gt=(e,n)=>{const{activeElement:r}=document;if(!r||!r.hasAttribute(dt)||nt(r)!==n.currentTarget)return;const o=n.currentTarget.querySelectorAll(`[${dt}]`),{length:i}=o;for(let c=0;c<i;c++)if(o[c]===r){let l=Vt(e,c,i);for(;nt(o[c])!==nt(o[l]);)l=Vt(e,l,i);c!==l&&(n.preventDefault(),o[l].focus());break}},Rr=()=>({accordionProps:{"data-accordion":"",onKeyDown:n=>n.key==="ArrowUp"?Gt(!0,n):n.key==="ArrowDown"&&Gt(!1,n)}}),gn=K.forwardRef(({providerValue:e,className:n,...r},o)=>{const{accordionProps:i}=Rr();return t.jsx(kr,{value:e,children:t.jsx("div",{...ft(i,r),ref:o,className:Re(ke)(n)})})});gn.displayName="ControlledAccordion";const gt=K.forwardRef(({allowMultiple:e,initialEntered:n,mountOnEnter:r,unmountOnExit:o,transition:i,transitionTimeout:c,onStateChange:l,...u},p)=>{const d=Tr({allowMultiple:e,initialEntered:n,mountOnEnter:r,unmountOnExit:o,transition:i,transitionTimeout:c,onStateChange:l});return t.jsx(gn,{...u,ref:p,providerValue:d})});gt.displayName="Accordion";const Ge={prefix:"wfp",initialized:!1,selectorTabbable:`
|
|
23
|
+
a[href], area[href], input:not([disabled]):not([tabindex='-1']),
|
|
24
|
+
button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),
|
|
25
|
+
textarea:not([disabled]):not([tabindex='-1']),
|
|
26
|
+
iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]
|
|
27
|
+
`,selectorFocusable:`
|
|
28
|
+
a[href], area[href], input:not([disabled]),
|
|
29
|
+
button:not([disabled]),select:not([disabled]),
|
|
30
|
+
textarea:not([disabled]),
|
|
31
|
+
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
32
|
+
`,theme:"light",actualTheme:"light",setTheme:e=>{console.warn("setTheme not initialized")}},Ke=W.createContext(Ge),rt=()=>typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches:!1,Pr=({children:e,wrapperElement:n,prefix:r="wfp",initialTheme:o="light",...i})=>{const c=g=>{const w=`${r}--theme--`;g==="auto"&&rt();const S=g==="auto"&&rt()?"dark":g==="auto"?"light":g;if(n){const O=n.className.split(" ").filter(P=>!P.startsWith(w));n.className=O.join(" ").trim(),n.classList.add(`${r}--theme--${S}`)}return S},l=()=>{const g=u();return g==="auto"?rt()?"dark":"light":g},u=()=>{const w=(typeof window<"u"?window.localStorage.getItem("theme"):!1)||o;return c(w),w},[p,d]=W.useState(u()),[m,h]=W.useState(l());W.useEffect(()=>{const g=window.matchMedia("(prefers-color-scheme: dark)");return g.addListener(_),()=>g.removeListener(_)},[]);const _=()=>{if(p==="auto"){const g=c("auto");h(g)}},j={...Ge,...i,prefix:r,theme:p,actualTheme:m,initialized:!0,setTheme:g=>{const w=c(g);h(w),typeof window<"u"&&window.localStorage.setItem("theme",g),d(g)}};return t.jsx(Ke.Provider,{value:j,children:e})};function E(){const e=W.useContext(Ke);return e===void 0?Ge:e}let Or=0;const Ar=()=>{const[e,n]=W.useState();return W.useEffect(()=>n(++Or),[]),e&&`${ht}-${e}`},vn=W.useId||Ar,Ir=({state:e,toggle:n,disabled:r})=>{const o=vn(),i=o&&o+"-",c={id:o,"aria-controls":i,"aria-expanded":e.isEnter,onClick:n};return r?c.disabled=!0:c[dt]="",{buttonProps:c,panelProps:{id:i,"aria-labelledby":o,role:"region"}}},Mr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?W.useLayoutEffect:W.useEffect,Dr=({status:e,isResolved:n})=>{const[r,o]=W.useState(),i=W.useRef(null);return Mr(()=>{(e==="preEnter"||e==="preExit")&&o(i.current.getBoundingClientRect().height)},[e]),[{height:e==="preEnter"||e==="exiting"?0:e==="entering"||e==="preExit"?r:void 0,overflow:n?void 0:"hidden"},i]};function Kt(e,n){typeof e=="function"?e(n):e.current=n}function Qt(e,n){return W.useMemo(()=>e?n?r=>{Kt(e,r),Kt(n,r)}:e:n,[e,n])}function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ae.apply(this,arguments)}var pt={exports:{}},Z={};/**
|
|
33
|
+
* @license React
|
|
34
|
+
* react.production.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/var Xt;function Lr(){if(Xt)return Z;Xt=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator;function _(s){return s===null||typeof s!="object"?null:(s=h&&s[h]||s["@@iterator"],typeof s=="function"?s:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,g={};function w(s,f,y){this.props=s,this.context=f,this.refs=g,this.updater=y||x}w.prototype.isReactComponent={},w.prototype.setState=function(s,f){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,f,"setState")},w.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function S(){}S.prototype=w.prototype;function O(s,f,y){this.props=s,this.context=f,this.refs=g,this.updater=y||x}var P=O.prototype=new S;P.constructor=O,j(P,w.prototype),P.isPureReactComponent=!0;var C=Array.isArray,b={H:null,A:null,T:null,S:null,V:null},q=Object.prototype.hasOwnProperty;function z(s,f,y,N,T,D){return y=D.ref,{$$typeof:e,type:s,key:f,ref:y!==void 0?y:null,props:D}}function U(s,f){return z(s.type,f,void 0,void 0,void 0,s.props)}function V(s){return typeof s=="object"&&s!==null&&s.$$typeof===e}function ee(s){var f={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(y){return f[y]})}var F=/\/+/g;function G(s,f){return typeof s=="object"&&s!==null&&s.key!=null?ee(""+s.key):f.toString(36)}function oe(){}function X(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(oe,oe):(s.status="pending",s.then(function(f){s.status==="pending"&&(s.status="fulfilled",s.value=f)},function(f){s.status==="pending"&&(s.status="rejected",s.reason=f)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function ue(s,f,y,N,T){var D=typeof s;(D==="undefined"||D==="boolean")&&(s=null);var k=!1;if(s===null)k=!0;else switch(D){case"bigint":case"string":case"number":k=!0;break;case"object":switch(s.$$typeof){case e:case n:k=!0;break;case m:return k=s._init,ue(k(s._payload),f,y,N,T)}}if(k)return T=T(s),k=N===""?"."+G(s,0):N,C(T)?(y="",k!=null&&(y=k.replace(F,"$&/")+"/"),ue(T,f,y,"",function(B){return B})):T!=null&&(V(T)&&(T=U(T,y+(T.key==null||s&&s.key===T.key?"":(""+T.key).replace(F,"$&/")+"/")+k)),f.push(T)),1;k=0;var Y=N===""?".":N+":";if(C(s))for(var A=0;A<s.length;A++)N=s[A],D=Y+G(N,A),k+=ue(N,f,y,D,T);else if(A=_(s),typeof A=="function")for(s=A.call(s),A=0;!(N=s.next()).done;)N=N.value,D=Y+G(N,A++),k+=ue(N,f,y,D,T);else if(D==="object"){if(typeof s.then=="function")return ue(X(s),f,y,N,T);throw f=String(s),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return k}function se(s,f,y){if(s==null)return s;var N=[],T=0;return ue(s,N,"","",function(D){return f.call(y,D,T++)}),N}function de(s){if(s._status===-1){var f=s._result;f=f(),f.then(function(y){(s._status===0||s._status===-1)&&(s._status=1,s._result=y)},function(y){(s._status===0||s._status===-1)&&(s._status=2,s._result=y)}),s._status===-1&&(s._status=0,s._result=f)}if(s._status===1)return s._result.default;throw s._result}var pe=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function me(){}return Z.Children={map:se,forEach:function(s,f,y){se(s,function(){f.apply(this,arguments)},y)},count:function(s){var f=0;return se(s,function(){f++}),f},toArray:function(s){return se(s,function(f){return f})||[]},only:function(s){if(!V(s))throw Error("React.Children.only expected to receive a single React element child.");return s}},Z.Component=w,Z.Fragment=r,Z.Profiler=i,Z.PureComponent=O,Z.StrictMode=o,Z.Suspense=p,Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,Z.__COMPILER_RUNTIME={__proto__:null,c:function(s){return b.H.useMemoCache(s)}},Z.cache=function(s){return function(){return s.apply(null,arguments)}},Z.cloneElement=function(s,f,y){if(s==null)throw Error("The argument must be a React element, but you passed "+s+".");var N=j({},s.props),T=s.key,D=void 0;if(f!=null)for(k in f.ref!==void 0&&(D=void 0),f.key!==void 0&&(T=""+f.key),f)!q.call(f,k)||k==="key"||k==="__self"||k==="__source"||k==="ref"&&f.ref===void 0||(N[k]=f[k]);var k=arguments.length-2;if(k===1)N.children=y;else if(1<k){for(var Y=Array(k),A=0;A<k;A++)Y[A]=arguments[A+2];N.children=Y}return z(s.type,T,void 0,void 0,D,N)},Z.createContext=function(s){return s={$$typeof:l,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null},s.Provider=s,s.Consumer={$$typeof:c,_context:s},s},Z.createElement=function(s,f,y){var N,T={},D=null;if(f!=null)for(N in f.key!==void 0&&(D=""+f.key),f)q.call(f,N)&&N!=="key"&&N!=="__self"&&N!=="__source"&&(T[N]=f[N]);var k=arguments.length-2;if(k===1)T.children=y;else if(1<k){for(var Y=Array(k),A=0;A<k;A++)Y[A]=arguments[A+2];T.children=Y}if(s&&s.defaultProps)for(N in k=s.defaultProps,k)T[N]===void 0&&(T[N]=k[N]);return z(s,D,void 0,void 0,null,T)},Z.createRef=function(){return{current:null}},Z.forwardRef=function(s){return{$$typeof:u,render:s}},Z.isValidElement=V,Z.lazy=function(s){return{$$typeof:m,_payload:{_status:-1,_result:s},_init:de}},Z.memo=function(s,f){return{$$typeof:d,type:s,compare:f===void 0?null:f}},Z.startTransition=function(s){var f=b.T,y={};b.T=y;try{var N=s(),T=b.S;T!==null&&T(y,N),typeof N=="object"&&N!==null&&typeof N.then=="function"&&N.then(me,pe)}catch(D){pe(D)}finally{b.T=f}},Z.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},Z.use=function(s){return b.H.use(s)},Z.useActionState=function(s,f,y){return b.H.useActionState(s,f,y)},Z.useCallback=function(s,f){return b.H.useCallback(s,f)},Z.useContext=function(s){return b.H.useContext(s)},Z.useDebugValue=function(){},Z.useDeferredValue=function(s,f){return b.H.useDeferredValue(s,f)},Z.useEffect=function(s,f,y){var N=b.H;if(typeof y=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return N.useEffect(s,f)},Z.useId=function(){return b.H.useId()},Z.useImperativeHandle=function(s,f,y){return b.H.useImperativeHandle(s,f,y)},Z.useInsertionEffect=function(s,f){return b.H.useInsertionEffect(s,f)},Z.useLayoutEffect=function(s,f){return b.H.useLayoutEffect(s,f)},Z.useMemo=function(s,f){return b.H.useMemo(s,f)},Z.useOptimistic=function(s,f){return b.H.useOptimistic(s,f)},Z.useReducer=function(s,f,y){return b.H.useReducer(s,f,y)},Z.useRef=function(s){return b.H.useRef(s)},Z.useState=function(s){return b.H.useState(s)},Z.useSyncExternalStore=function(s,f,y){return b.H.useSyncExternalStore(s,f,y)},Z.useTransition=function(){return b.H.useTransition()},Z.version="19.1.0",Z}var Ae={exports:{}};/**
|
|
41
|
+
* @license React
|
|
42
|
+
* react.development.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/Ae.exports;var Zt;function qr(){return Zt||(Zt=1,function(e,n){process.env.NODE_ENV!=="production"&&function(){function r(a,v){Object.defineProperty(c.prototype,a,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",v[0],v[1])}})}function o(a){return a===null||typeof a!="object"?null:(a=fe&&a[fe]||a["@@iterator"],typeof a=="function"?a:null)}function i(a,v){a=(a=a.constructor)&&(a.displayName||a.name)||"ReactClass";var R=a+"."+v;M[R]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",v,a),M[R]=!0)}function c(a,v,R){this.props=a,this.context=v,this.refs=Te,this.updater=R||ge}function l(){}function u(a,v,R){this.props=a,this.context=v,this.refs=Te,this.updater=R||ge}function p(a){return""+a}function d(a){try{p(a);var v=!1}catch{v=!0}if(v){v=console;var R=v.error,I=typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object";return R.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I),p(a)}}function m(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===gr?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case s:return"Fragment";case y:return"Profiler";case f:return"StrictMode";case k:return"Suspense";case Y:return"SuspenseList";case Q:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case me:return"Portal";case T:return(a.displayName||"Context")+".Provider";case N:return(a._context.displayName||"Context")+".Consumer";case D:var v=a.render;return a=a.displayName,a||(a=v.displayName||v.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case A:return v=a.displayName||null,v!==null?v:m(a.type)||"Memo";case B:v=a._payload,a=a._init;try{return m(a(v))}catch{}}return null}function h(a){if(a===s)return"<>";if(typeof a=="object"&&a!==null&&a.$$typeof===B)return"<...>";try{var v=m(a);return v?"<"+v+">":"<...>"}catch{return"<...>"}}function _(){var a=ne.A;return a===null?null:a.getOwner()}function x(){return Error("react-stack-top-frame")}function j(a){if(Le.call(a,"key")){var v=Object.getOwnPropertyDescriptor(a,"key").get;if(v&&v.isReactWarning)return!1}return a.key!==void 0}function g(a,v){function R(){Mt||(Mt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",v))}R.isReactWarning=!0,Object.defineProperty(a,"key",{get:R,configurable:!0})}function w(){var a=m(this.type);return Lt[a]||(Lt[a]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),a=this.props.ref,a!==void 0?a:null}function S(a,v,R,I,H,re,J,le){return R=re.ref,a={$$typeof:pe,type:a,key:v,props:re,_owner:H},(R!==void 0?R:null)!==null?Object.defineProperty(a,"ref",{enumerable:!1,get:w}):Object.defineProperty(a,"ref",{enumerable:!1,value:null}),a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(a,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(a,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty(a,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a}function O(a,v){return v=S(a.type,v,void 0,void 0,a._owner,a.props,a._debugStack,a._debugTask),a._store&&(v._store.validated=a._store.validated),v}function P(a){return typeof a=="object"&&a!==null&&a.$$typeof===pe}function C(a){var v={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(R){return v[R]})}function b(a,v){return typeof a=="object"&&a!==null&&a.key!=null?(d(a.key),C(""+a.key)):v.toString(36)}function q(){}function z(a){switch(a.status){case"fulfilled":return a.value;case"rejected":throw a.reason;default:switch(typeof a.status=="string"?a.then(q,q):(a.status="pending",a.then(function(v){a.status==="pending"&&(a.status="fulfilled",a.value=v)},function(v){a.status==="pending"&&(a.status="rejected",a.reason=v)})),a.status){case"fulfilled":return a.value;case"rejected":throw a.reason}}throw a}function U(a,v,R,I,H){var re=typeof a;(re==="undefined"||re==="boolean")&&(a=null);var J=!1;if(a===null)J=!0;else switch(re){case"bigint":case"string":case"number":J=!0;break;case"object":switch(a.$$typeof){case pe:case me:J=!0;break;case B:return J=a._init,U(J(a._payload),v,R,I,H)}}if(J){J=a,H=H(J);var le=I===""?"."+b(J,0):I;return At(H)?(R="",le!=null&&(R=le.replace(Ft,"$&/")+"/"),U(H,v,R,"",function(je){return je})):H!=null&&(P(H)&&(H.key!=null&&(J&&J.key===H.key||d(H.key)),R=O(H,R+(H.key==null||J&&J.key===H.key?"":(""+H.key).replace(Ft,"$&/")+"/")+le),I!==""&&J!=null&&P(J)&&J.key==null&&J._store&&!J._store.validated&&(R._store.validated=2),H=R),v.push(H)),1}if(J=0,le=I===""?".":I+":",At(a))for(var te=0;te<a.length;te++)I=a[te],re=le+b(I,te),J+=U(I,v,R,re,H);else if(te=o(a),typeof te=="function")for(te===a.entries&&(qt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),qt=!0),a=te.call(a),te=0;!(I=a.next()).done;)I=I.value,re=le+b(I,te++),J+=U(I,v,R,re,H);else if(re==="object"){if(typeof a.then=="function")return U(z(a),v,R,I,H);throw v=String(a),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return J}function V(a,v,R){if(a==null)return a;var I=[],H=0;return U(a,I,"","",function(re){return v.call(R,re,H++)}),I}function ee(a){if(a._status===-1){var v=a._result;v=v(),v.then(function(R){(a._status===0||a._status===-1)&&(a._status=1,a._result=R)},function(R){(a._status===0||a._status===-1)&&(a._status=2,a._result=R)}),a._status===-1&&(a._status=0,a._result=v)}if(a._status===1)return v=a._result,v===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
49
|
+
|
|
50
|
+
Your code should look like:
|
|
51
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
52
|
+
|
|
53
|
+
Did you accidentally put curly braces around the import?`,v),"default"in v||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
54
|
+
|
|
55
|
+
Your code should look like:
|
|
56
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,v),v.default;throw a._result}function F(){var a=ne.H;return a===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
57
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
58
|
+
2. You might be breaking the Rules of Hooks
|
|
59
|
+
3. You might have more than one copy of React in the same app
|
|
60
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}function G(){}function oe(a){if(qe===null)try{var v=("require"+Math.random()).slice(0,7);qe=(e&&e[v]).call(e,"timers").setImmediate}catch{qe=function(I){Wt===!1&&(Wt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var H=new MessageChannel;H.port1.onmessage=I,H.port2.postMessage(void 0)}}return qe(a)}function X(a){return 1<a.length&&typeof AggregateError=="function"?new AggregateError(a):a[0]}function ue(a,v){v!==Fe-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Fe=v}function se(a,v,R){var I=ne.actQueue;if(I!==null)if(I.length!==0)try{de(I),oe(function(){return se(a,v,R)});return}catch(H){ne.thrownErrors.push(H)}else ne.actQueue=null;0<ne.thrownErrors.length?(I=X(ne.thrownErrors),ne.thrownErrors.length=0,R(I)):v(a)}function de(a){if(!tt){tt=!0;var v=0;try{for(;v<a.length;v++){var R=a[v];do{ne.didUsePromise=!1;var I=R(!1);if(I!==null){if(ne.didUsePromise){a[v]=R,a.splice(0,v);return}R=I}else break}while(!0)}a.length=0}catch(H){a.splice(0,v+1),ne.thrownErrors.push(H)}finally{tt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var pe=Symbol.for("react.transitional.element"),me=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),T=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),fe=Symbol.iterator,M={},ge={isMounted:function(){return!1},enqueueForceUpdate:function(a){i(a,"forceUpdate")},enqueueReplaceState:function(a){i(a,"replaceState")},enqueueSetState:function(a){i(a,"setState")}},Ee=Object.assign,Te={};Object.freeze(Te),c.prototype.isReactComponent={},c.prototype.setState=function(a,v){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,v,"setState")},c.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};var ve={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},De;for(De in ve)ve.hasOwnProperty(De)&&r(De,ve[De]);l.prototype=c.prototype,ve=u.prototype=new l,ve.constructor=u,Ee(ve,c.prototype),ve.isPureReactComponent=!0;var At=Array.isArray,gr=Symbol.for("react.client.reference"),ne={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Le=Object.prototype.hasOwnProperty,It=console.createTask?console.createTask:function(){return null};ve={"react-stack-bottom-frame":function(a){return a()}};var Mt,Dt,Lt={},vr=ve["react-stack-bottom-frame"].bind(ve,x)(),_r=It(h(x)),qt=!1,Ft=/\/+/g,Bt=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Wt=!1,qe=null,Fe=0,Be=!1,tt=!1,zt=typeof queueMicrotask=="function"?function(a){queueMicrotask(function(){return queueMicrotask(a)})}:oe;ve=Object.freeze({__proto__:null,c:function(a){return F().useMemoCache(a)}}),n.Children={map:V,forEach:function(a,v,R){V(a,function(){v.apply(this,arguments)},R)},count:function(a){var v=0;return V(a,function(){v++}),v},toArray:function(a){return V(a,function(v){return v})||[]},only:function(a){if(!P(a))throw Error("React.Children.only expected to receive a single React element child.");return a}},n.Component=c,n.Fragment=s,n.Profiler=y,n.PureComponent=u,n.StrictMode=f,n.Suspense=k,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,n.__COMPILER_RUNTIME=ve,n.act=function(a){var v=ne.actQueue,R=Fe;Fe++;var I=ne.actQueue=v!==null?v:[],H=!1;try{var re=a()}catch(te){ne.thrownErrors.push(te)}if(0<ne.thrownErrors.length)throw ue(v,R),a=X(ne.thrownErrors),ne.thrownErrors.length=0,a;if(re!==null&&typeof re=="object"&&typeof re.then=="function"){var J=re;return zt(function(){H||Be||(Be=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(te,je){H=!0,J.then(function(Se){if(ue(v,R),R===0){try{de(I),oe(function(){return se(Se,te,je)})}catch(br){ne.thrownErrors.push(br)}if(0<ne.thrownErrors.length){var xr=X(ne.thrownErrors);ne.thrownErrors.length=0,je(xr)}}else te(Se)},function(Se){ue(v,R),0<ne.thrownErrors.length&&(Se=X(ne.thrownErrors),ne.thrownErrors.length=0),je(Se)})}}}var le=re;if(ue(v,R),R===0&&(de(I),I.length!==0&&zt(function(){H||Be||(Be=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),ne.actQueue=null),0<ne.thrownErrors.length)throw a=X(ne.thrownErrors),ne.thrownErrors.length=0,a;return{then:function(te,je){H=!0,R===0?(ne.actQueue=I,oe(function(){return se(le,te,je)})):te(le)}}},n.cache=function(a){return function(){return a.apply(null,arguments)}},n.captureOwnerStack=function(){var a=ne.getCurrentStack;return a===null?null:a()},n.cloneElement=function(a,v,R){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var I=Ee({},a.props),H=a.key,re=a._owner;if(v!=null){var J;e:{if(Le.call(v,"ref")&&(J=Object.getOwnPropertyDescriptor(v,"ref").get)&&J.isReactWarning){J=!1;break e}J=v.ref!==void 0}J&&(re=_()),j(v)&&(d(v.key),H=""+v.key);for(le in v)!Le.call(v,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&v.ref===void 0||(I[le]=v[le])}var le=arguments.length-2;if(le===1)I.children=R;else if(1<le){J=Array(le);for(var te=0;te<le;te++)J[te]=arguments[te+2];I.children=J}for(I=S(a.type,H,void 0,void 0,re,I,a._debugStack,a._debugTask),H=2;H<arguments.length;H++)re=arguments[H],P(re)&&re._store&&(re._store.validated=1);return I},n.createContext=function(a){return a={$$typeof:T,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:N,_context:a},a._currentRenderer=null,a._currentRenderer2=null,a},n.createElement=function(a,v,R){for(var I=2;I<arguments.length;I++){var H=arguments[I];P(H)&&H._store&&(H._store.validated=1)}if(I={},H=null,v!=null)for(te in Dt||!("__self"in v)||"key"in v||(Dt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),j(v)&&(d(v.key),H=""+v.key),v)Le.call(v,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(I[te]=v[te]);var re=arguments.length-2;if(re===1)I.children=R;else if(1<re){for(var J=Array(re),le=0;le<re;le++)J[le]=arguments[le+2];Object.freeze&&Object.freeze(J),I.children=J}if(a&&a.defaultProps)for(te in re=a.defaultProps,re)I[te]===void 0&&(I[te]=re[te]);H&&g(I,typeof a=="function"?a.displayName||a.name||"Unknown":a);var te=1e4>ne.recentlyCreatedOwnerStacks++;return S(a,H,void 0,void 0,_(),I,te?Error("react-stack-top-frame"):vr,te?It(h(a)):_r)},n.createRef=function(){var a={current:null};return Object.seal(a),a},n.forwardRef=function(a){a!=null&&a.$$typeof===A?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof a!="function"?console.error("forwardRef requires a render function but was given %s.",a===null?"null":typeof a):a.length!==0&&a.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",a.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),a!=null&&a.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var v={$$typeof:D,render:a},R;return Object.defineProperty(v,"displayName",{enumerable:!1,configurable:!0,get:function(){return R},set:function(I){R=I,a.name||a.displayName||(Object.defineProperty(a,"name",{value:I}),a.displayName=I)}}),v},n.isValidElement=P,n.lazy=function(a){return{$$typeof:B,_payload:{_status:-1,_result:a},_init:ee}},n.memo=function(a,v){a==null&&console.error("memo: The first argument must be a component. Instead received: %s",a===null?"null":typeof a),v={$$typeof:A,type:a,compare:v===void 0?null:v};var R;return Object.defineProperty(v,"displayName",{enumerable:!1,configurable:!0,get:function(){return R},set:function(I){R=I,a.name||a.displayName||(Object.defineProperty(a,"name",{value:I}),a.displayName=I)}}),v},n.startTransition=function(a){var v=ne.T,R={};ne.T=R,R._updatedFibers=new Set;try{var I=a(),H=ne.S;H!==null&&H(R,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(G,Bt)}catch(re){Bt(re)}finally{v===null&&R._updatedFibers&&(a=R._updatedFibers.size,R._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),ne.T=v}},n.unstable_useCacheRefresh=function(){return F().useCacheRefresh()},n.use=function(a){return F().use(a)},n.useActionState=function(a,v,R){return F().useActionState(a,v,R)},n.useCallback=function(a,v){return F().useCallback(a,v)},n.useContext=function(a){var v=F();return a.$$typeof===N&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),v.useContext(a)},n.useDebugValue=function(a,v){return F().useDebugValue(a,v)},n.useDeferredValue=function(a,v){return F().useDeferredValue(a,v)},n.useEffect=function(a,v,R){a==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var I=F();if(typeof R=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return I.useEffect(a,v)},n.useId=function(){return F().useId()},n.useImperativeHandle=function(a,v,R){return F().useImperativeHandle(a,v,R)},n.useInsertionEffect=function(a,v){return a==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useInsertionEffect(a,v)},n.useLayoutEffect=function(a,v){return a==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useLayoutEffect(a,v)},n.useMemo=function(a,v){return F().useMemo(a,v)},n.useOptimistic=function(a,v){return F().useOptimistic(a,v)},n.useReducer=function(a,v,R){return F().useReducer(a,v,R)},n.useRef=function(a){return F().useRef(a)},n.useState=function(a){return F().useState(a)},n.useSyncExternalStore=function(a,v,R){return F().useSyncExternalStore(a,v,R)},n.useTransition=function(){return F().useTransition()},n.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(Ae,Ae.exports)),Ae.exports}process.env.NODE_ENV==="production"?pt.exports=Lr():pt.exports=qr();var L=pt.exports;const Fr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 14"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1,d:"M11.95 5.997 7.86 2.092 9.233.639l6.763 6.356-6.763 6.366L7.86 11.91l4.092-3.912H-.003v-2z"}));var Br=Fr;const Wr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",className:"svg-inline--fa fa-calendar-alt fa-w-14",viewBox:"0 0 448 512",width:"1em",height:"1em"},e),L.createElement("path",{fill:"currentColor",d:"M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12m108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12m96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12m-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12m-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12m192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12m96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48m-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6"}));var mt=Wr;const zr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"1em",height:"1em"},e),L.createElement("path",{fill:"currentColor",d:"M320 240 160 384 0 240v-48h320z"}));var Hr=zr;const Yr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 10 5"},e),L.createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",strokeWidth:1,d:"M0 5 5 .002 10 5z"}));var Ur=Yr;const Vr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"m447.9 142.5-23.2 22L181 395.3l-22 20.8-22-20.8L23.2 287.6 0 265.6l44-46.5 23.2 22L159 328l221.7-210 23.2-22z"}));var Gr=Vr;const Kr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 10 8"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1,d:"M8.498 0 10 1.502 3.672 7.83 0 4.158l1.502-1.502 2.17 2.17z"}));var Qr=Kr;const Xr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{fill:"currentColor",d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8M6.7 11.5 3.4 8.1l1.4-1.4 1.9 1.9 4.1-4.1 1.4 1.4z"}));var Zr=Xr;const Jr=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em"},e),L.createElement("path",{fill:"currentColor",d:"m256 429.3 22.6-22.6 192-192 22.7-22.7-45.3-45.3-22.6 22.6L256 338.7 86.6 169.4 64 146.7 18.7 192l22.6 22.6 192 192z"}));var vt=Jr;const es=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 7 12"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1,d:"M1.45 6.002 7 11.27l-.685.726L0 6.003 6.315 0 7 .726z"}));var _n=es;const ts=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 7 12"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1,d:"M5.569 5.994 0 .726.687 0l6.336 5.994-6.335 6.002L0 11.27z"}));var xn=ts;const ns=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 7"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1,d:"M5.994 1.45.726 7 0 6.315 5.994 0l6.002 6.315L11.27 7z"}));var rs=ns;const ss=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",width:"1em",height:"1em"},e),L.createElement("path",{fill:"currentColor",d:"m326.6 166.6 22.7-22.6L304 98.7l-22.6 22.6-89.4 89.4-89.4-89.4L80 98.7 34.7 144l22.6 22.6 89.4 89.4-89.3 89.4L34.7 368 80 413.3l22.6-22.6 89.4-89.4 89.4 89.4 22.6 22.6 45.3-45.3-22.6-22.6-89.4-89.4 89.4-89.4z"}));var Qe=ss;const os=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",width:"1em",height:"1em"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"m326.6 166.6 22.7-22.6L304 98.7l-22.6 22.6-89.4 89.4-89.4-89.4L80 98.7 34.7 144l22.6 22.6 89.4 89.4-89.3 89.4L34.7 368 80 413.3l22.6-22.6 89.4-89.4 89.4 89.4 22.6 22.6 45.3-45.3-22.6-22.6-89.4-89.4 89.4-89.4z"}));var as=os;const is=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{d:"M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-13 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"}));var cs=is;const ls=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",strokeWidth:1,d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16M4 4.65 11.35 12l.65-.65L4.65 4z"}));var bn=ls;const us=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"1em",height:"1em"},e),L.createElement("path",{d:"m279.14 288 14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}));var ds=us;const fs=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 576 512"},e),L.createElement("path",{fill:"currentColor",d:"M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40h-16c-1.1 0-2.2 0-3.3-.1-1.4.1-2.8.1-4.2.1H392c-22.1 0-40-17.9-40-40v-88c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v88c0 22.1-17.9 40-40 40h-55.9c-1.5 0-3-.1-4.5-.2-1.2.1-2.4.2-3.6.2h-16c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9.1-2.8v-69.6H32c-18 0-32-14-32-32.1 0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7l255.4 224.5c8 7 12 15 11 24"}));var ps=fs;const ms=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{fill:"currentColor",d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8m0 4c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1m2 8H6v-1h1V8H6V7h3v4h1z"}));var hs=ms;const gs=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",strokeWidth:1,d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16m1-3V7H7v6zM8 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2"}));var vs=gs;const _s=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},e),L.createElement("path",{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141m0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7m146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8m76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8M398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1"}));var xs=_s;const bs=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},e),L.createElement("path",{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3M447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}));var ys=bs;const ws=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1,d:"M4.5 7V3.5a3.5 3.5 0 0 1 7 0V7h1A1.5 1.5 0 0 1 14 8.5v6a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 14.5v-6A1.5 1.5 0 0 1 3.5 7zm1 0h5V3.5a2.5 2.5 0 0 0-5 0zm-2 1a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5z"}));var $s=ws;const js=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 14"},e),L.createElement("path",{fill:"currentColor",d:"M0 0h20v2H0zM0 6h20v2H0zM0 12h20v2H0z"}));var Ns=js;const Es=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 3 15"},e),L.createElement("g",{fill:"currentColor",fillRule:"evenodd",stroke:"none",strokeWidth:1},L.createElement("circle",{cx:1.5,cy:1.5,r:1.5}),L.createElement("circle",{cx:1.5,cy:7.5,r:1.5}),L.createElement("circle",{cx:1.5,cy:13.5,r:1.5})));var Cs=Es;const Ts=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",strokeWidth:1,d:"M11.435 10.063h-.728l-.251-.252a5.9 5.9 0 0 0 1.437-3.865 5.946 5.946 0 1 0-5.947 5.947 5.9 5.9 0 0 0 3.865-1.432l.252.251v.723L14.637 16 16 14.637zm-5.489 0a4.117 4.117 0 1 1 0-8.234 4.117 4.117 0 0 1 0 8.234"}));var Ss=Ts;const ks=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},e),L.createElement("path",{d:"M448 209.91a210.06 210.06 0 0 1-122.77-39.25v178.72A162.55 162.55 0 1 1 185 188.31v89.89a74.62 74.62 0 1 0 52.23 71.18V0h88a121 121 0 0 0 1.86 22.17A122.18 122.18 0 0 0 381 102.39a121.43 121.43 0 0 0 67 20.14Z"}));var Rs=ks;const Ps=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em"},e),L.createElement("path",{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253"}));var Os=Ps;const As=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 448 512"},e),L.createElement("path",{fill:"currentColor",d:"M224 256a128 128 0 1 0 0-256 128 128 0 1 0 0 256m-45.7 48C79.8 304 0 383.8 0 482.3 0 498.7 13.3 512 29.7 512h388.6c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3z",opacity:1}));var Is=As;const Ms=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("g",{fill:"currentColor",fillRule:"evenodd",stroke:"none",strokeWidth:1},L.createElement("path",{d:"M7.25 6h1.5v5h-1.5z"}),L.createElement("circle",{cx:8,cy:12.75,r:1}),L.createElement("path",{fillRule:"nonzero",d:"M.75 16a.75.75 0 0 1-.67-1.085L7.33.415a.75.75 0 0 1 1.34 0l7.25 14.5A.75.75 0 0 1 15.25 16zm1.214-1.5h12.072L8 2.427z"})));var Ds=Ms;const Ls=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),L.createElement("path",{fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1,d:"M.75 16a.75.75 0 0 1-.67-1.085L7.33.415a.75.75 0 0 1 1.34 0l7.25 14.5A.75.75 0 0 1 15.25 16zm6.5-10v5h1.5V6zM8 13.5A.75.75 0 1 0 8 12a.75.75 0 0 0 0 1.5"}));var yn=Ls;const qs=e=>L.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",width:"1em",height:"1em"},e),L.createElement("path",{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305m-317.51 213.508V175.185l142.739 81.205z"}));var Fs=qs;const Bs=(e,n,r)=>{const{stateMap:o,mountOnEnter:i,initialEntered:c}=e,l=r??c;return o.get(n)||{status:l?"entered":i?"unmounted":"exited",isMounted:!i,isEnter:l,isResolved:!0}},Ws=()=>{const e=W.useContext(hn);if(process.env.NODE_ENV!=="production"&&!e.stateMap)throw new Error("[React-Accordion] Cannot find a <AccordionProvider/> above this AccordionItem.");return e},zs=({itemKey:e,initialEntered:n,disabled:r}={})=>{const o=W.useRef(null),i=Ws(),c=e??o.current,l=Bs(i,c,n),{setItem:u,deleteItem:p,toggle:d}=i;return W.useEffect(()=>{if(r)return;const m=e??o.current;return u(m,{initialEntered:n}),()=>void p(m)},[u,p,e,n,r]),{itemRef:o,state:l,toggle:W.useCallback(m=>d(c,m),[d,c])}},wn=e=>{const n=K.forwardRef(({itemKey:r,initialEntered:o,...i},c)=>t.jsx(e,{forwardedRef:c,...i,...zs({itemKey:r,initialEntered:o,disabled:i.disabled})}));return n.displayName="withAccordionItem",n};wn.displayName="withAccordionItem";const Jt=(e,n)=>typeof e=="function"?e(n):e,$n=K.memo(({forwardedRef:e,itemRef:n,state:r,toggle:o,className:i,disabled:c,header:l,headingTag:u="h3",headingProps:p,buttonProps:d,contentProps:m,panelProps:h,children:_,...x})=>{const j={state:r,toggle:o,disabled:c},{buttonProps:g,panelProps:w}=Ir(j),[S,O]=Dr(r),P=Qt(h&&h.ref,O),{status:C,isMounted:b,isEnter:q}=r,{prefix:z}=E(),U=$(`${z}--accordion--button`,{[`${z}--accordion--button__expanded`]:q});return t.jsxs("div",{...x,ref:Qt(e,n),className:Re(ke,"item",{status:C,expanded:q})(i,r),children:[t.jsx(u,{...p,style:{margin:0,...p&&p.style},className:Re(ke,"item-heading")(p&&p.className,r),children:t.jsxs("button",{...ft(g,d),type:"button",className:Re(ke,"item-btn")(d&&d.className,r),children:[t.jsx(vt,{description:"open",className:U}),Jt(l,j)]})}),b&&t.jsx("div",{...m,style:{display:C==="exited"?"none":void 0,...S,...m&&m.style},className:Re(ke,"item-content")(m&&m.className,r),children:t.jsx("div",{...ft(w,h),ref:P,className:Re(ke,"item-panel")(h&&h.className,r),children:Jt(_,j)})})]})});$n.displayName="AccordionItem";const _t=wn($n);_t.displayName="AccordionItem";const Hs=({image:e,backgroundContent:n,children:r,className:o,...i})=>{const{prefix:c}=E(),l=e?{backgroundImage:`url(${e})`}:{},u=$(`${c}--auth-background-wrapper`,{[`${c}--auth-background-image`]:e,[`${o}`]:o});return t.jsxs("div",{className:`${c}--auth-wrapper`,...i,children:[t.jsx("div",{className:u,style:l,children:n}),t.jsx("div",{className:`${c}--auth-content-wrapper`,children:r})]})},Ys=({children:e,...n})=>{const{prefix:r}=E();return t.jsx("div",{...n,className:`${r}--auth-background-content`,children:e})},Us=["sm","md","lg","full"],$e=e=>{const{prefix:n}=E(),{background:r,backgroundClassName:o,backgroundStyle:i,children:c,className:l,pageWidth:u,mobilePageWidth:p,spacing:d,...m}=e,h=$({[`${n}--wrapper`]:!0,[`${n}--wrapper--width-lg`]:u==="narrow",[`${n}--wrapper--width-md`]:u==="narrower",[`${n}--wrapper--width-sm`]:u==="narrowest",[`${n}--wrapper--width-xs`]:u==="narrowest",[`${n}--wrapper--width-${u}`]:u,[`${n}--wrapper--width-mobile-full`]:p==="full",[`${n}--wrapper--spacing-md`]:d==="md",[`${n}--wrapper--spacing-xl`]:d==="xl",[`${l}`]:l});if(r||i||o){const _=$(o,{[`${n}--wrapper--background-${r}`]:r});return t.jsx("div",{className:_,style:i,children:t.jsx("div",{className:h,...m,children:c})})}return t.jsx("div",{className:h,...m,children:c})},_e=({className:e,children:n})=>{const{prefix:r}=E(),o=$(`${r}--banner-navigation__item`,e);return t.jsx("li",{className:o,children:n})},jn=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--banner-navigation`,n);return t.jsx("div",{className:i,children:t.jsx($e,{...r,children:t.jsx("ul",{className:`${o}--banner-navigation__list`,children:e})})})},Nn=({className:e,children:n,invalid:r,inline:o,...i})=>{const{prefix:c}=E(),l=$(`${c}--form-item`,{[`${c}--form-item--inline`]:o,[`${c}--form-item--invalid`]:r},e);return t.jsx("div",{className:l,...i,children:n})};function En({addonBefore:e,prefix:n}){return e?t.jsx("div",{className:`${n}--input-addon-before`,children:e}):null}function Cn({addonAfter:e,prefix:n}){return e?t.jsx("div",{className:`${n}--input-addon-after`,children:e}):null}function xt({errorId:e,errorClasses:n,invalid:r,invalidText:o}){if(r){const i=t.jsx(yn,{fill:"#c5192d"});return t.jsxs("div",{className:n,id:e,children:[i," ",t.jsx("span",{children:typeof r=="object"&&r.message?r.message:typeof r=="string"?r:o||"required"})]})}return null}function Tn({labelClasses:e,calculatedId:n,labelText:r,required:o,hideLabel:i}){return i?null:t.jsxs("label",{htmlFor:n,className:e,children:[r&&r,o&&"*"]})}function Sn({helperTextClasses:e,helperText:n}){return n?t.jsx("div",{className:e,children:n}):null}const xe=({additional:e,addonBefore:n,addonAfter:r,labelText:o,children:i,components:c={},id:l,className:u,inputWrapperClassName:p,hideLabel:d,name:m,invalid:h,invalidText:_,helperText:x,required:j,...g})=>{const{prefix:w}=E(),S=l||m,O=S+"-error-msg",P=$(`${w}--label`,{[`${w}--visually-hidden`]:d||!o,[`${w}--label--disabled`]:g.disabled}),C=$(`${w}--input-wrapper`,{[`${w}--form-item--invalid`]:h},p),b=$(`${w}--form__helper-text`,{[`${w}--form__helper-text--disabled`]:g.disabled}),q=`${w}--form-requirement`,z={AddonAfter:Cn,AddonBefore:En,Label:Tn,Helper:Sn,InlineErrorMessage:xt,...c},U=z.AddonAfter,V=z.AddonBefore,ee=z.Label,F=z.Helper,G=z.InlineErrorMessage,oe={labelText:o,labelClasses:P,calculatedId:S,required:j,helperTextClasses:b,helperText:x,errorClasses:q,errorId:O,invalid:h,invalidText:_,addonAfter:r,addonBefore:n,hideLabel:d,prefix:w};return t.jsxs(Nn,{className:u,inline:g.inline,children:[t.jsx(ee,{...oe}),t.jsx(F,{...oe}),e,t.jsxs("div",{className:C,children:[t.jsx(V,{...oe}),i,t.jsx(U,{...oe})]}),t.jsx(G,{...oe})]})};xe.displayName="Input";const ye=({addonAfter:e,className:n,inputClassName:r="wfp--input",id:o,placeholder:i,type:c="text",onChange:l=()=>{},onClick:u=()=>{},hideLabel:p,name:d,invalid:m,invalidText:h,labelText:_,helperText:x,light:j,value:g=void 0,...w})=>{const{prefix:S}=E(),O=o||d,P=$(`${S}--input`,r,{[`${S}--input--light`]:j,[`${S}--input--invalid`]:m}),C={id:O,name:d,className:P,...w,onChange:z=>{!w.disabled&&!w.readOnly&&l(z)},onClick:z=>{!w.disabled&&!w.readOnly&&u(z)},placeholder:i,value:g,type:c},b={calculatedId:O,id:o,name:d,className:n,addonAfter:e,labelText:_,helperText:x,hideLabel:p,invalid:m,invalidText:h},q=O+"-error-msg";return m&&(C["data-invalid"]=!0,C["aria-invalid"]=!0,C["aria-describedby"]=q),{inputProps:C,wrapperProps:b}},bt=K.forwardRef((e,n)=>{const{prefix:r}=E(),{className:o,closeButtonLabelText:i,disabled:c,hideLabel:l,hideControls:u,labelText:p,kind:d="large",onChange:m=()=>{},onSearchIconClick:h=()=>{},helperText:_,light:x,rounded:j}=e,g=e.value,[w,S]=K.useState(g);K.useEffect(()=>{S(e.value)},[e.value]);const O=K.useRef(null),P=n||O,C=G=>{c||(G.persist(),G.imaginaryTarget=P,S(G.target.value),m(G,G.target.value))},b=G=>{S(""),m(G,"")},q=$(`${r}--number`,o,{[`${r}--number--light`]:x,[`${r}--number--helpertext`]:_,[`${r}--number--nolabel`]:l,[`${r}--number--nocontrols`]:u,"wfp--search":!0,"wfp--search--lg":d==="large","wfp--search--sm":d==="small","wfp--search--main":d==="main","wfp--search--banner":d==="banner","wfp--search--light":d==="light"}),z=$({"wfp--search-close":!0,"wfp--search-close--hidden":!w}),U=$(`${r}--search-input`,o,{[`${r}--search-input--rounded`]:j}),V=e,{wrapperProps:ee,inputProps:F}=ye({...V,onChange:C,className:`${r}--search-input__wrapper`,inputClassName:U});return t.jsxs(xe,{...ee,inputWrapperClassName:q,children:[t.jsx(Ss,{description:p,className:`${r}--search-magnifier-icon`,onClick:h}),t.jsx("input",{...F,ref:P,value:w}),t.jsx("button",{className:z,onClick:b,type:"button","aria-label":i,children:t.jsx(Qe,{description:i})})]})});bt.displayName="Search";const he=K.forwardRef(function(n,r){const{children:o,className:i,href:c,disabled:l,inline:u,visited:p,icon:d,size:m,linkSolid:h,..._}=n,{prefix:x}=E(),j=$(`${x}--link`,i,{[`${x}--link--disabled`]:l,[`${x}--link--inline`]:u,[`${x}--link--visited`]:p,[`${x}--link--${m}`]:m,[`${x}--link--icon`]:d,[`${x}--link--solid`]:h}),g=_.target==="_blank"?"noopener":void 0,w=d;return t.jsxs("a",{href:l?void 0:c,className:j,rel:g,ref:r,"aria-disabled":l,..._,children:[o,d&&K.isValidElement(d)?t.jsx("span",{className:`${x}--link__icon`,children:d}):d?t.jsx(w,{}):null]})});he.displayName="Link";const Vs=({searchOnChange:e,search:n,...r})=>t.jsxs(jn,{...r,children:[t.jsx(_e,{children:t.jsx(he,{href:"http://communities.wfp.org",target:"_blank",children:"Communities"})}),t.jsx(_e,{children:t.jsx(he,{href:"http://manuals.wfp.org",target:"_blank",children:"Manuals"})}),t.jsx(_e,{children:t.jsx(he,{href:"https://newgo.docs.wfp.org",target:"_blank",children:"GoDocs"})}),t.jsx(_e,{children:t.jsx(he,{href:"https://welearn.wfp.org",target:"_blank",children:"WeLearn"})}),t.jsx(_e,{children:t.jsx(he,{href:"https://dashboard.wfp.org",target:"_blank",children:"Dashboard"})}),t.jsx(_e,{children:t.jsx(he,{href:"http://opweb.wfp.org",target:"_blank",children:"OPweb"})}),t.jsx(_e,{children:t.jsx(he,{href:"https://selfservice.go.wfp.org",target:"_blank",children:"Self-Service"})}),t.jsx(_e,{children:t.jsx(he,{href:"https://erpapps.wfp.org/fiori",target:"_blank",children:"WeTravel"})}),t.jsx(_e,{children:t.jsx(he,{href:"https://unbooking.org/",target:"_blank",children:"UN Booking Hub"})}),t.jsx(_e,{children:t.jsx(he,{href:"https://wfp.org",target:"_blank",children:"WFP.org"})}),n&&t.jsx(_e,{children:t.jsx("form",{action:"http://gtd.wfp.org",method:"GET",acceptCharset:"UTF-8",target:"_blank",children:t.jsx(bt,{kind:"banner",id:"search-2",labelText:"Find People",name:"q",placeholder:"Find People",onChange:e})})})]});function yt({alt:e,className:n,image:r,missingImage:o="avatar",name:i,userIconProps:c,...l}){const{prefix:u}=E();if(!r&&o==="avatar"){const p=$(`${u}--avatar`,`${u}--avatar--empty`,`${u}--avatar--missing`,n);return t.jsx(Is,{fill:"#ffffff",description:e,className:p,...c,...l})}else if(r===void 0&&o==="letter"){const p=$(`${u}--avatar`,`${u}--avatar--empty`,`${u}--avatar--letter`,n);return t.jsx("svg",{id:"avatar-layer",className:p,x:"0px",y:"0px",viewBox:"0 0 25 25",height:"25px",width:"25px",children:t.jsx("text",{x:"50%",y:"57%",dominantBaseline:"middle",textAnchor:"middle",children:i&&i.toUpperCase()[0]})})}else{const p=$(`${u}--avatar`,n);return t.jsx("div",{...l,className:p,children:t.jsx("img",{alt:e,src:r})})}}yt.displayName="Avatar";const Gs=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(n,{[`${o}--breadcrumb`]:!0,[`${o}--breadcrumb--no-trailing-slash`]:!0});return t.jsx("div",{className:i,...r,children:e})},Ks=(e,n,r)=>{const{prefix:o}=E();return n===!0?t.jsx("span",{children:e}):typeof e=="string"&&r!==void 0?t.jsx(he,{href:r,children:e}):W.cloneElement(W.Children.only(e),{className:`${o}--link`})},Qs=({children:e,className:n,disableLink:r,href:o,...i})=>{const{prefix:c}=E(),l=$(`${c}--breadcrumb-item`,n);return t.jsx("div",{className:l,...i,children:Ks(e,r,o)})},Xs=({className:e,hometext:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--breadcrumb-home`,e);return t.jsx(ps,{fill:"#0b77c2",width:"14",height:"14",description:n,className:i,...r})},Ne=K.forwardRef((e,n)=>{const{children:r,className:o,disabled:i,small:c,large:l,btnSolid:u,kind:p="primary",iconReverse:d,tabIndex:m,useFlexbox:h,type:_="button",icon:x,iconDescription:j,onClick:g,id:w,...S}=e,{prefix:O}=E(),[P,C]=W.useState(!1);W.useEffect(()=>{const F=setTimeout(()=>U(),500);return()=>{clearTimeout(F)}},[P]);const b=$(o,{[`${O}--btn`]:!0,[`${O}--btn--sm`]:c,[`${O}--btn--lg`]:l,[`${O}--btn--icon-reverse`]:d,[`${O}--btn--flexbox`]:h,[`${O}--btn--icon-only`]:x&&r===void 0,[`${O}--btn--${p}`]:p,[`${O}--btn--${p}-solid`]:u,[`${O}--btn--animating`]:P}),q={tabIndex:m,className:b};let z=null;if(x&&K.isValidElement(x))z=t.jsx("span",{className:`${O}--btn__icon`,children:x});else if(x){const F=x;z=t.jsx(F,{description:j,className:`${O}--btn__icon`})}const U=()=>{C(!1)},V=F=>{g&&g(F),C(!0)};if(S.href){const F={...S,href:S.href};return t.jsxs("a",{...F,...q,role:"button",onClick:V,ref:n,id:w,children:[d&&z,r,!d&&z]})}const ee={...S,disabled:i};return t.jsxs("button",{...ee,...q,disabled:i,type:_,onClick:V,ref:n,id:w,children:[d&&z,r,!d&&z]})});Ne.displayName="Button";var He={exports:{}},Ye={exports:{}},ie={};/** @license React v16.13.1
|
|
61
|
+
* react-is.production.min.js
|
|
62
|
+
*
|
|
63
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/var en;function Zs(){if(en)return ie;en=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function P(b){if(typeof b=="object"&&b!==null){var q=b.$$typeof;switch(q){case n:switch(b=b.type,b){case p:case d:case o:case c:case i:case h:return b;default:switch(b=b&&b.$$typeof,b){case u:case m:case j:case x:case l:return b;default:return q}}case r:return q}}}function C(b){return P(b)===d}return ie.AsyncMode=p,ie.ConcurrentMode=d,ie.ContextConsumer=u,ie.ContextProvider=l,ie.Element=n,ie.ForwardRef=m,ie.Fragment=o,ie.Lazy=j,ie.Memo=x,ie.Portal=r,ie.Profiler=c,ie.StrictMode=i,ie.Suspense=h,ie.isAsyncMode=function(b){return C(b)||P(b)===p},ie.isConcurrentMode=C,ie.isContextConsumer=function(b){return P(b)===u},ie.isContextProvider=function(b){return P(b)===l},ie.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===n},ie.isForwardRef=function(b){return P(b)===m},ie.isFragment=function(b){return P(b)===o},ie.isLazy=function(b){return P(b)===j},ie.isMemo=function(b){return P(b)===x},ie.isPortal=function(b){return P(b)===r},ie.isProfiler=function(b){return P(b)===c},ie.isStrictMode=function(b){return P(b)===i},ie.isSuspense=function(b){return P(b)===h},ie.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===d||b===c||b===i||b===h||b===_||typeof b=="object"&&b!==null&&(b.$$typeof===j||b.$$typeof===x||b.$$typeof===l||b.$$typeof===u||b.$$typeof===m||b.$$typeof===w||b.$$typeof===S||b.$$typeof===O||b.$$typeof===g)},ie.typeOf=P,ie}var ce={};/** @license React v16.13.1
|
|
68
|
+
* react-is.development.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var tn;function Js(){return tn||(tn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function P(M){return typeof M=="string"||typeof M=="function"||M===o||M===d||M===c||M===i||M===h||M===_||typeof M=="object"&&M!==null&&(M.$$typeof===j||M.$$typeof===x||M.$$typeof===l||M.$$typeof===u||M.$$typeof===m||M.$$typeof===w||M.$$typeof===S||M.$$typeof===O||M.$$typeof===g)}function C(M){if(typeof M=="object"&&M!==null){var ge=M.$$typeof;switch(ge){case n:var Ee=M.type;switch(Ee){case p:case d:case o:case c:case i:case h:return Ee;default:var Te=Ee&&Ee.$$typeof;switch(Te){case u:case m:case j:case x:case l:return Te;default:return ge}}case r:return ge}}}var b=p,q=d,z=u,U=l,V=n,ee=m,F=o,G=j,oe=x,X=r,ue=c,se=i,de=h,pe=!1;function me(M){return pe||(pe=!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(M)||C(M)===p}function s(M){return C(M)===d}function f(M){return C(M)===u}function y(M){return C(M)===l}function N(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function T(M){return C(M)===m}function D(M){return C(M)===o}function k(M){return C(M)===j}function Y(M){return C(M)===x}function A(M){return C(M)===r}function B(M){return C(M)===c}function Q(M){return C(M)===i}function fe(M){return C(M)===h}ce.AsyncMode=b,ce.ConcurrentMode=q,ce.ContextConsumer=z,ce.ContextProvider=U,ce.Element=V,ce.ForwardRef=ee,ce.Fragment=F,ce.Lazy=G,ce.Memo=oe,ce.Portal=X,ce.Profiler=ue,ce.StrictMode=se,ce.Suspense=de,ce.isAsyncMode=me,ce.isConcurrentMode=s,ce.isContextConsumer=f,ce.isContextProvider=y,ce.isElement=N,ce.isForwardRef=T,ce.isFragment=D,ce.isLazy=k,ce.isMemo=Y,ce.isPortal=A,ce.isProfiler=B,ce.isStrictMode=Q,ce.isSuspense=fe,ce.isValidElementType=P,ce.typeOf=C}()),ce}var nn;function kn(){return nn||(nn=1,process.env.NODE_ENV==="production"?Ye.exports=Zs():Ye.exports=Js()),Ye.exports}/*
|
|
75
|
+
object-assign
|
|
76
|
+
(c) Sindre Sorhus
|
|
77
|
+
@license MIT
|
|
78
|
+
*/var st,rn;function eo(){if(rn)return st;rn=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function i(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;var p=Object.getOwnPropertyNames(l).map(function(m){return l[m]});if(p.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return st=i()?Object.assign:function(c,l){for(var u,p=o(c),d,m=1;m<arguments.length;m++){u=Object(arguments[m]);for(var h in u)n.call(u,h)&&(p[h]=u[h]);if(e){d=e(u);for(var _=0;_<d.length;_++)r.call(u,d[_])&&(p[d[_]]=u[d[_]])}}return p},st}var ot,sn;function wt(){if(sn)return ot;sn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ot=e,ot}var at,on;function Rn(){return on||(on=1,at=Function.call.bind(Object.prototype.hasOwnProperty)),at}var it,an;function to(){if(an)return it;an=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=wt(),r={},o=Rn();e=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(c,l,u,p,d){if(process.env.NODE_ENV!=="production"){for(var m in c)if(o(c,m)){var h;try{if(typeof c[m]!="function"){var _=Error((p||"React class")+": "+u+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}h=c[m](l,m,p,u,null,n)}catch(j){h=j}if(h&&!(h instanceof Error)&&e((p||"React class")+": type specification of "+u+" `"+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 x=d?d():"";e("Failed "+u+" type: "+h.message+(x??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},it=i,it}var ct,cn;function no(){if(cn)return ct;cn=1;var e=kn(),n=eo(),r=wt(),o=Rn(),i=to(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(u){var p="Warning: "+u;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function l(){return null}return ct=function(u,p){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function h(s){var f=s&&(d&&s[d]||s[m]);if(typeof f=="function")return f}var _="<<anonymous>>",x={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:O(),arrayOf:P,element:C(),elementType:b(),instanceOf:q,node:ee(),objectOf:U,oneOf:z,oneOfType:V,shape:G,exact:oe};function j(s,f){return s===f?s!==0||1/s===1/f:s!==s&&f!==f}function g(s,f){this.message=s,this.data=f&&typeof f=="object"?f:{},this.stack=""}g.prototype=Error.prototype;function w(s){if(process.env.NODE_ENV!=="production")var f={},y=0;function N(D,k,Y,A,B,Q,fe){if(A=A||_,Q=Q||Y,fe!==r){if(p){var M=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 M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=A+":"+Y;!f[ge]&&y<3&&(c("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+A+"`. 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."),f[ge]=!0,y++)}}return k[Y]==null?D?k[Y]===null?new g("The "+B+" `"+Q+"` is marked as required "+("in `"+A+"`, but its value is `null`.")):new g("The "+B+" `"+Q+"` is marked as required in "+("`"+A+"`, but its value is `undefined`.")):null:s(k,Y,A,B,Q)}var T=N.bind(null,!1);return T.isRequired=N.bind(null,!0),T}function S(s){function f(y,N,T,D,k,Y){var A=y[N],B=se(A);if(B!==s){var Q=de(A);return new g("Invalid "+D+" `"+k+"` of type "+("`"+Q+"` supplied to `"+T+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return w(f)}function O(){return w(l)}function P(s){function f(y,N,T,D,k){if(typeof s!="function")return new g("Property `"+k+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var Y=y[N];if(!Array.isArray(Y)){var A=se(Y);return new g("Invalid "+D+" `"+k+"` of type "+("`"+A+"` supplied to `"+T+"`, expected an array."))}for(var B=0;B<Y.length;B++){var Q=s(Y,B,T,D,k+"["+B+"]",r);if(Q instanceof Error)return Q}return null}return w(f)}function C(){function s(f,y,N,T,D){var k=f[y];if(!u(k)){var Y=se(k);return new g("Invalid "+T+" `"+D+"` of type "+("`"+Y+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return w(s)}function b(){function s(f,y,N,T,D){var k=f[y];if(!e.isValidElementType(k)){var Y=se(k);return new g("Invalid "+T+" `"+D+"` of type "+("`"+Y+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return w(s)}function q(s){function f(y,N,T,D,k){if(!(y[N]instanceof s)){var Y=s.name||_,A=me(y[N]);return new g("Invalid "+D+" `"+k+"` of type "+("`"+A+"` supplied to `"+T+"`, expected ")+("instance of `"+Y+"`."))}return null}return w(f)}function z(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("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])."):c("Invalid argument supplied to oneOf, expected an array.")),l;function f(y,N,T,D,k){for(var Y=y[N],A=0;A<s.length;A++)if(j(Y,s[A]))return null;var B=JSON.stringify(s,function(fe,M){var ge=de(M);return ge==="symbol"?String(M):M});return new g("Invalid "+D+" `"+k+"` of value `"+String(Y)+"` "+("supplied to `"+T+"`, expected one of "+B+"."))}return w(f)}function U(s){function f(y,N,T,D,k){if(typeof s!="function")return new g("Property `"+k+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var Y=y[N],A=se(Y);if(A!=="object")return new g("Invalid "+D+" `"+k+"` of type "+("`"+A+"` supplied to `"+T+"`, expected an object."));for(var B in Y)if(o(Y,B)){var Q=s(Y,B,T,D,k+"."+B,r);if(Q instanceof Error)return Q}return null}return w(f)}function V(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var f=0;f<s.length;f++){var y=s[f];if(typeof y!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+pe(y)+" at index "+f+"."),l}function N(T,D,k,Y,A){for(var B=[],Q=0;Q<s.length;Q++){var fe=s[Q],M=fe(T,D,k,Y,A,r);if(M==null)return null;M.data&&o(M.data,"expectedType")&&B.push(M.data.expectedType)}var ge=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new g("Invalid "+Y+" `"+A+"` supplied to "+("`"+k+"`"+ge+"."))}return w(N)}function ee(){function s(f,y,N,T,D){return X(f[y])?null:new g("Invalid "+T+" `"+D+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return w(s)}function F(s,f,y,N,T){return new g((s||"React class")+": "+f+" type `"+y+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function G(s){function f(y,N,T,D,k){var Y=y[N],A=se(Y);if(A!=="object")return new g("Invalid "+D+" `"+k+"` of type `"+A+"` "+("supplied to `"+T+"`, expected `object`."));for(var B in s){var Q=s[B];if(typeof Q!="function")return F(T,D,k,B,de(Q));var fe=Q(Y,B,T,D,k+"."+B,r);if(fe)return fe}return null}return w(f)}function oe(s){function f(y,N,T,D,k){var Y=y[N],A=se(Y);if(A!=="object")return new g("Invalid "+D+" `"+k+"` of type `"+A+"` "+("supplied to `"+T+"`, expected `object`."));var B=n({},y[N],s);for(var Q in B){var fe=s[Q];if(o(s,Q)&&typeof fe!="function")return F(T,D,k,Q,de(fe));if(!fe)return new g("Invalid "+D+" `"+k+"` key `"+Q+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(y[N],null," ")+`
|
|
79
|
+
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var M=fe(Y,Q,T,D,k+"."+Q,r);if(M)return M}return null}return w(f)}function X(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(X);if(s===null||u(s))return!0;var f=h(s);if(f){var y=f.call(s),N;if(f!==s.entries){for(;!(N=y.next()).done;)if(!X(N.value))return!1}else for(;!(N=y.next()).done;){var T=N.value;if(T&&!X(T[1]))return!1}}else return!1;return!0;default:return!1}}function ue(s,f){return s==="symbol"?!0:f?f["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&f instanceof Symbol:!1}function se(s){var f=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":ue(f,s)?"symbol":f}function de(s){if(typeof s>"u"||s===null)return""+s;var f=se(s);if(f==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return f}function pe(s){var f=de(s);switch(f){case"array":case"object":return"an "+f;case"boolean":case"date":case"regexp":return"a "+f;default:return f}}function me(s){return!s.constructor||!s.constructor.name?_:s.constructor.name}return x.checkPropTypes=i,x.resetWarningCache=i.resetWarningCache,x.PropTypes=x,x},ct}var lt,ln;function ro(){if(ln)return lt;ln=1;var e=wt();function n(){}function r(){}return r.resetWarningCache=n,lt=function(){function o(l,u,p,d,m,h){if(h!==e){var _=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 _.name="Invariant Violation",_}}o.isRequired=o;function i(){return o}var c={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:n};return c.PropTypes=c,c},lt}var un;function so(){if(un)return He.exports;if(un=1,process.env.NODE_ENV!=="production"){var e=kn(),n=!0;He.exports=no()(e.isElement,n)}else He.exports=ro()();return He.exports}var Pn=so();const be=jr(Pn);Pn.oneOf(["primary","secondary","accent","danger","ghost","inverse--primary","inverse","danger--primary","tertiary","navigation"]);const oo=["primary","secondary","tertiary","accent","danger--primary","danger","ghost","inverse--primary","inverse","navigation"],ao=["info","success","warning","error"],io=({icon:e})=>{const{prefix:n}=E();return e?t.jsx("div",{className:`${n}--empty__icon`,children:e}):null},co=({title:e,children:n})=>{const{prefix:r}=E();return t.jsxs("div",{className:`${r}--empty__text`,children:[e&&t.jsx("h2",{children:e}),t.jsx("div",{children:n})]})},On=({button:e,children:n,className:r,components:o,icon:i,title:c,kind:l="large",...u})=>{const{prefix:p}=E(),d=$({[`${p}--empty`]:!0,[`${p}--empty--${l}`]:l},r),h={...{Icon:io,Text:co},...o},_=h.Icon,x=h.Text;return t.jsxs("div",{className:d,...u,children:[t.jsx(_,{icon:i}),t.jsx(x,{title:c,children:n}),t.jsx("div",{className:`${p}--empty__button`,children:e})]})};On.displayName="Empty";const An=({children:e,className:n,image:r,isExternal:o,isLink:i,metadata:c,more:l,subTitle:u,title:p,kind:d,url:m,...h})=>{const{prefix:_}=E(),x=d!=="related"?{backgroundImage:`url(${r})`}:{},j=$(`${_}--photo-card`,{[`${_}--photo-card--${d}`]:d,[`${_}--photo-card--no-background`]:!r,[`${_}--photo-card--link`]:i,[`${n}`]:n}),g=t.jsxs(K.Fragment,{children:[t.jsx("div",{className:`${_}--photo-card__background`,style:x}),r&&d==="related"&&t.jsx("img",{src:r}),t.jsxs("div",{className:`${_}--photo-card__info`,children:[t.jsxs("div",{children:[(d==="landscape"||d==="hero")&&t.jsx("div",{className:`${_}--photo-card__info__background`,style:x}),c&&t.jsx("p",{className:`${_}--photo-card__info__metadata`,children:c}),p&&(d==="hero"||d==="splash-compact")&&t.jsx("h2",{className:`${_}--photo-card__info__title`,children:p}),p&&d!=="hero"&&d!=="splash-compact"&&t.jsx("h3",{className:`${_}--photo-card__info__title`,children:p}),u&&t.jsx("p",{className:`${_}--photo-card__info__subtitle`,children:u})]}),d==="hero"||d==="splash-image"||d==="splash-compact"&&t.jsx("div",{className:`${_}--photo-card__info__more`,children:l})]}),e]});return i?t.jsx("a",{href:m,target:o?"_blank":"",className:j,...h,children:g}):t.jsx("div",{className:j,...h,children:g})};An.displayName="Hero";const lo=({title:e,subTitle:n,image:r,children:o,className:i})=>{const{prefix:c}=E(),l=$(`${c}--hero-ext`,{[`${i}`]:i});return t.jsx("div",{className:l,style:{backgroundImage:`linear-gradient(rgba(26, 66, 98, 0.8), rgba(26, 66, 98, 0.8)), url(${r})`,backgroundPosition:"center right"},children:t.jsxs($e,{pageWidth:"md",children:[t.jsxs("div",{className:`${c}--hero-ext__content`,children:[e&&t.jsx("h1",{className:`${c}--hero-ext__heading`,children:e}),n&&t.jsx("p",{className:`${c}--hero-ext__body-copy`,children:n})]}),o]})})},In=({children:e,className:n,image:r,isExternal:o,isLink:i,metadata:c,subTitle:l,title:u,alt:p,kind:d,url:m,cardWidth:h,cardHeight:_,...x})=>{const{prefix:j}=E(),g=d=="overlay"?{backgroundImage:`url(${r})`}:{},w=h||"300px",S=_||"260px",O=$([`${j}--card-box`],{[`${j}--photo-cardnew--${d}`]:d,[`${j}--photo-cardnew--link`]:i,[`${n}`]:n}),P=t.jsxs(t.Fragment,{children:[d==="overlay"?t.jsx("div",{className:`${j}--photo-cardnew__background`,style:g}):null,r&&d==="simple-card"?t.jsx("img",{src:r,alt:p,className:`${j}--header-photo`}):null,t.jsx("div",{className:`${j}--photo-cardnew__info`,children:t.jsxs("div",{children:[d==="overlay"&&t.jsx("div",{className:`${j}--photo-cardnew__info__background`,style:g}),c&&t.jsx("p",{className:`${j}--photo-cardnew__info__metadata`,children:c}),u&&t.jsx("h3",{className:`${j}--photo-cardnew__info__title`,children:u}),l&&t.jsx("p",{className:`${j}--photo-cardnew__info__subtitle`,children:l})]})}),e]});return i?t.jsx("div",{className:O,style:{width:w,minHeight:S},children:t.jsx("a",{href:m,target:o?"_blank":"",style:{width:w,minHeight:S},...x,children:P})}):t.jsx("div",{className:O,...x,style:{width:w,minHeight:S},children:P})};In.displayName="Card";const uo={info:"Info",error:"error",success:"Success",warning:"Warning",custom:"Custom"},$t=({children:e,className:n,type:r="info",...o})=>{const{prefix:i}=E(),c=`${i}--tag--${r}`,l=$(`${i}--tag`,c,n);return t.jsx("span",{className:l,...o,children:e||uo[r]})};$t.displayName="Tag";const Mn=({label:e,labelStatus:n,interactive:r,image:o,heading:i,subHeading:c,caption:l,tag:u,children:p,className:d,...m})=>{const{prefix:h}=E(),_=W.useRef(null),x=14,j=1.5,[g,w]=W.useState(x*j*3),S=n?"success":"neutral",O=$(`${h}--card-ext`,{[`${h}--card-ext--interactive`]:r,[`${d}`]:d});return W.useEffect(()=>{_.current&&w(_.current.offsetHeight)},[_]),t.jsxs("div",{className:O,children:[e&&t.jsx("div",{className:`${h}--card-ext__label ${h}--card-ext__label--${S}`,children:e}),t.jsx("figure",{className:`${h}--card-ext__media`,children:t.jsx("img",{className:`${h}--card-ext__image`,src:o,alt:"Card picture"})}),t.jsxs("div",{className:`${h}--card-ext__info-wrapper ${h}--card-ext__info-wrapper--with-divider`,children:[t.jsxs("div",{className:`${h}--card-ext__primary-title`,children:[c&&t.jsx("p",{className:`${h}--card-ext__subheading`,children:c}),i&&t.jsx("p",{className:`${h}--card-ext__heading`,children:i})]}),t.jsx("div",{className:m.truncated?`${h}--card-ext__supportive-text ${h}--card-ext__supportive-text--truncated`:`${h}--card-ext__supportive-text`,ref:_,children:t.jsx("p",{style:{WebkitLineClamp:Math.floor(g/j/x)},children:l})}),u&&t.jsx("div",{className:`${h}--card-ext__tags`,children:t.jsx($t,{className:`${h}--card-ext__tag`,type:"custom",children:u})})]}),p]})};Mn.propTypes={label:be.string,labelStatus:be.bool,image:be.string,heading:be.string,subHeading:be.string,caption:be.string,tag:be.string,children:be.node,interactive:be.bool,className:be.string};const jt=K.forwardRef(({startDate:e,endDate:n,setStartDate:r,datePicker:o,datePickerProps:i={}},c)=>{const{prefix:l}=E(),u=o;return u?t.jsx("div",{className:`${l}--date-picker`,children:t.jsxs("div",{className:`${l}--date-picker__input`,children:[t.jsx(u,{selected:e,className:`${l}--input ${l}--date__input__start-date`,onChange:r,selectsStart:!0,startDate:e,endDate:n,wrapperClassName:`${l}--date-picker__wrapper`,...i,ref:c}),t.jsx(mt,{className:`${l}--date-picker__icon`})]})}):t.jsx("div",{children:"Add a datepicker component"})});jt.displayName="DatePickerInput";const Dn=K.forwardRef((e,n)=>{const{datePickerProps:r,hideLabel:o,helperText:i,required:c}=e,{prefix:l}=E(),u=$(`${l}--input`,`${l}--date-picker`,{[`${l}--date-picker--helpertext`]:i,[`${l}--date-picker--nolabel`]:o,[`${l}--date-picker--required`]:c}),p=e,{inputProps:d,wrapperProps:m}=ye({...p,inputClassName:u});return t.jsx(xe,{...m,children:t.jsx(jt,{...d,ref:n,datePickerProps:r})})});Dn.displayName="DatePicker";const Nt=K.forwardRef(({startDate:e,endDate:n,setStartDate:r,setEndDate:o,datePicker:i,fromProps:c={},toProps:l={}},u)=>{const{prefix:p}=E(),d=i;return d?t.jsxs("div",{className:`${p}--date-ranger-picker`,children:[t.jsxs("div",{className:`${p}--date-ranger-picker__input`,children:[t.jsx(d,{selected:e,className:`${p}--input ${p}--date-ranger__input__start-date`,onChange:r,selectsStart:!0,startDate:e,endDate:n,wrapperClassName:`${p}--date-picker__wrapper`,...c,ref:u}),t.jsx(mt,{className:`${p}--date-ranger-picker__icon`})]}),t.jsx(Br,{className:`${p}--date-ranger-picker__arrow`}),t.jsxs("div",{className:`${p}--date-ranger-picker__input`,children:[t.jsx(d,{selected:n,className:`${p}--input ${p}--date-ranger__input__start-date`,onChange:o,selectsEnd:!0,startDate:e,endDate:n,minDate:e,wrapperClassName:`${p}--date-picker__wrapper`,...l}),t.jsx(mt,{className:`${p}--date-ranger-picker__icon`})]})]}):t.jsx("div",{children:"Add a datepicker component"})});Nt.displayName="DateRangePickerInput";const Ln=K.forwardRef((e,n)=>{const{fromProps:r,toProps:o,hideLabel:i,helperText:c,required:l}=e,{prefix:u}=E(),p=$(`${u}--input`,`${u}--date-range-picker`,{[`${u}--date-range-picker--helpertext`]:c,[`${u}--date-range-picker--nolabel`]:i,[`${u}--date-range-picker--required`]:l}),d=e,{inputProps:m,wrapperProps:h}=ye({...d,inputClassName:p});return t.jsx(xe,{...h,children:t.jsx(Nt,{...m,ref:n,fromProps:r,toProps:o})})});Ln.displayName="DateRangePicker";const qn=K.forwardRef(({className:e,id:n,labelText:r,onChange:o=()=>{},indeterminate:i,invalid:c,invalidText:l,hideLabel:u,wrapperClassName:p,title:d="",...m},h)=>{const{prefix:_}=E(),x=$(`${_}--checkbox-label`,e),j=$(`${_}--checkbox-label-text`,{[`${_}--visually-hidden`]:u}),g=$(`${_}--form-item`,`${_}--checkbox-wrapper`,{[`${_}--checkbox-wrapper--invalid`]:c},p);return t.jsxs("div",{className:g,children:[t.jsx("input",{...m,"aria-invalid":c,"data-invalid":c,type:"checkbox",onChange:w=>{o(w,w.target.checked,n)},className:`${_}--checkbox`,id:n||m.name,ref:w=>{w&&i&&(w.indeterminate=i),typeof h=="function"?h(w):Object(h)===h&&h&&(h.current=w)}}),t.jsx("label",{htmlFor:n||m.name,className:x,title:d||void 0,children:t.jsx("span",{className:j,children:r})}),t.jsx(xt,{errorClasses:`${_}--form-requirement`,invalid:c,invalidText:l})]})});qn.displayName="Checkbox";const Fn=({children:e,className:n,info:r,...o})=>{const{prefix:i}=E(),c=$(`${i}--credits`,n);return t.jsxs("div",{className:c,...o,children:[t.jsx("div",{className:`${i}--credits__info`,children:r}),e]})};Fn.displayName="Credits";const fo=({children:e,className:n,selectedIndex:r,small:o,onChange:i,...c})=>{const{prefix:l}=E(),[u,p]=W.useState(r),d=_=>W.Children.map(_,(x,j)=>W.cloneElement(x,{index:j,onClick:m,onKeyDown:m,selected:j===u})),m=_=>{const{index:x}=_;u!==x&&(p(x),i(_))},h=$(`${l}--content-switcher`,n,{[`${l}--content-switcher--sm`]:o});return t.jsx("div",{...c,className:h,children:d(e)})},po={duration:100,animation:"fade",theme:"light",arrow:!0},mo={duration:100,animation:"fade",theme:"dark",arrow:!0},Et=({className:e,dark:n,noPadding:r,children:o,content:i,trigger:c="hover",placement:l="top",createRefWrapper:u,closeOnOutsideClick:p,closeOnTriggerHidden:d,defaultVisible:m,delayHide:h,delayShow:_,followCursor:x,interactive:j,mutationObserverOptions:g,offset:w,onVisibleChange:S,usePortal:O})=>{const{prefix:P}=E(),[C,b]=K.useState(!1),q=$(e,{[`${P}--tooltip`]:!0,[`${P}--tooltip--disable-padding`]:r,[`${P}--tooltip--visible`]:C,[`${P}--tooltip--${c}`]:c,[`${P}--tooltip--dark`]:n}),{getArrowProps:z,getTooltipProps:U,setTooltipRef:V,setTriggerRef:ee,visible:F}=wr.usePopperTooltip({closeOnOutsideClick:p,closeOnTriggerHidden:d,defaultVisible:m,delayHide:h,delayShow:_,followCursor:x,interactive:j,mutationObserverOptions:g,offset:w,onVisibleChange:S,placement:l,trigger:c}),G=$({[`${P}--tooltip--trigger`]:!0}),oe=$(e,{[`${P}--tooltip--trigger`]:!0}),X=!u&&typeof o!="string"?K.cloneElement(o,{ref:ee,className:G}):t.jsx("span",{ref:ee,className:oe,children:o}),ue=de=>{b(de),S&&S(de)},se=t.jsxs("div",{ref:V,...U({className:q}),children:[typeof i=="function"?i({setVisibility:b,visibilityChange:ue}):i,t.jsx("div",{...z({className:`${P}--tooltip__arrow`})})]});return t.jsxs(t.Fragment,{children:[X,F&&O&&t.jsx(ho,{children:se}),F&&!O&&se]})};function ho({children:e}){return mn.createPortal(e,document.body)}const go=({children:e,className:n,content:r})=>{const{prefix:o}=E(),i=$({[`${o}--context-menu`]:!0},n);return t.jsx(Et,{className:i,content:r,noPadding:!0,trigger:"click",children:e})},vo=({className:e,...n})=>{const{prefix:r}=E(),o=$({[`${r}--context-menu__group`]:!0},e);return t.jsx("div",{className:o,...n})},_o=({className:e,...n})=>{const{prefix:r}=E(),o=$({[`${r}--context-menu__item`]:!0},e);return t.jsx("div",{className:o,...n})},Bn=({className:e,children:n,labelOne:r,linkTextOne:o,linkHrefOne:i,labelTwo:c,linkTextTwo:l,linkHrefTwo:u,logo:p,metaContent:d,metaLinks:m,secondary:h,pageWidth:_="lg"})=>{const{prefix:x}=E(),j=$(`${x}--footer`,e);return t.jsxs("footer",{className:j,children:[t.jsx($e,{pageWidth:_,children:t.jsxs("div",{className:`${x}--footer__content`,children:[n?t.jsx("div",{className:`${x}--footer__info`,children:n}):t.jsxs("div",{className:`${x}--footer__info`,children:[t.jsxs("div",{className:`${x}--footer__info__item`,children:[t.jsx("p",{className:`${x}--footer__label`,children:r}),t.jsx("ul",{className:`${x}--footer__list`,children:t.jsx("li",{children:t.jsx(he,{href:i,children:o})})})]}),t.jsxs("div",{className:`${x}--footer__info__item`,children:[t.jsx("p",{className:`${x}--footer__label`,children:c}),t.jsx("ul",{className:`${x}--footer__list`,children:t.jsx("li",{children:t.jsx(he,{href:u,children:l})})})]})]}),t.jsxs("div",{className:`${x}--footer__cta`,children:[p,h&&t.jsx("div",{className:`${x}--footer__secondary`,children:h})]})]})}),t.jsxs($e,{className:`${x}--footer__meta`,pageWidth:_,children:[m&&t.jsx("div",{className:`${x}--footer__meta__links`,children:m}),d&&t.jsx("div",{className:`${x}--footer__meta__content`,children:d})]})]})};Bn.displayName="Footer";const xo=({className:e,productName:n,children:r,metaContent:o,pageWidth:i="lg",metaLinks:c})=>{const{prefix:l}=E(),u=$(`${l}--footer-ext`,e);return t.jsx("footer",{className:u,children:t.jsxs($e,{pageWidth:i,children:[t.jsxs("div",{className:`${l}--footer-ext__content`,children:[t.jsxs("div",{className:`${l}--footer-ext__info`,children:[t.jsx("div",{className:`${l}--footer-ext__branding`,children:t.jsx("div",{className:`${l}--footer-ext__product-name`,children:n})}),t.jsx("div",{className:`${l}--footer-ext__address`,children:o}),t.jsxs("div",{className:`${l}--footer-ext__social-wrapper`,children:[t.jsx("p",{children:"Follow WFP on:"}),t.jsxs("ul",{className:`${l}--footer-ext__social-icons-list`,children:[t.jsx("li",{className:`${l}--footer-ext__social-icon`,children:t.jsx("a",{href:"https://twitter.com/WFP",target:"_blank",rel:"noopener",children:t.jsx(Os,{})})}),t.jsx("li",{className:`${l}--footer-ext__social-icon`,children:t.jsx("a",{href:"https://www.facebook.com/WorldFoodProgramme",target:"_blank",rel:"noopener",children:t.jsx(ds,{})})}),t.jsx("li",{className:`${l}--footer-ext__social-icon`,children:t.jsx("a",{href:"https://www.instagram.com/Worldfoodprogramme/",target:"_blank",rel:"noopener",children:t.jsx(xs,{})})}),t.jsx("li",{className:`${l}--footer-ext__social-icon`,children:t.jsx("a",{href:"https://www.linkedin.com/company/world-food-programme",target:"_blank",rel:"noopener",children:t.jsx(ys,{})})}),t.jsx("li",{className:`${l}--footer-ext__social-icon`,children:t.jsx("a",{href:"https://www.youtube.com/user/WORLDFOODPROGRAM",target:"_blank",rel:"noopener",children:t.jsx(Fs,{})})}),t.jsx("li",{className:`${l}--footer-ext__social-icon`,children:t.jsx("a",{href:"https://www.tiktok.com/@worldfoodprogramme",target:"_blank",rel:"noopener",children:t.jsx(Rs,{})})})]})]})]}),t.jsx("div",{className:`${l}--footer-ext__nav-wrapper`,children:r})]}),t.jsxs("div",{className:`${l}--footer-ext__legal`,children:[t.jsxs("span",{children:[new Date().getFullYear()," © World Food Programme"]}),t.jsx("nav",{className:`${l}--footer-ext__nav-legal`,children:t.jsx("ul",{className:`${l}--footer-ext__legal-links`,children:c})})]})]})})},bo=({title:e,children:n})=>{const{prefix:r}=E();return t.jsxs("div",{className:`${r}--links-column`,children:[e&&t.jsxs("p",{className:`${r}--links-column__title`,children:[" ",e," "]}),t.jsx("nav",{children:t.jsx("ul",{className:`${r}--links-column__nav-list`,children:n})})]})},yo=({className:e,href:n,children:r})=>{const{prefix:o}=E(),i=$(`${o}--footer-ext__legal-link`,e);return t.jsx("li",{className:i,children:t.jsx("a",{href:n,children:r})})},Wn=({className:e,children:n,longForm:r=!0,...o})=>{const{prefix:i}=E(),c=$(`${i}--form`,{[`${i}--form-long`]:r===!0},e);return t.jsx("form",{className:c,...o,children:n})};Wn.displayName="Form";const wo=({align:e,breakpoint:n,legendText:r,inline:o,children:i,className:c,inputSpacing:l,message:u,messageText:p})=>{const{prefix:d}=E(),m=$(`${d}--form-group__title`,c),h=$(`${d}--fieldset`,{[`${d}--fieldset__inline`]:o,[`${d}--fieldset__align-${e}`]:e,[`${d}--fieldset__breakpoint-${n}`]:n,[`${d}--fieldset__input-spacing-${l}`]:l},c);return t.jsxs("div",{className:h,children:[t.jsx("legend",{className:m,children:r}),t.jsx("div",{className:`${d}--fieldset__content`,children:i}),u?t.jsx("div",{className:`${d}--form__requirements`,children:p}):null]})},$o=({className:e,children:n,description:r})=>{const{prefix:o}=E(),i=$(`${o}--form-hint`,e);return t.jsx(Et,{content:n,children:t.jsx("div",{className:i,children:t.jsx(vs,{width:"15",height:"15",description:r})})})},jo=({className:e,children:n,id:r,...o})=>{const{prefix:i}=E(),c=$(`${i}--label`,e);return t.jsx("label",{htmlFor:r,className:c,...o,children:n})},zn=({children:e,className:n,id:r,pageWidth:o})=>{const{prefix:i}=E(),c=$(`${i}--info-bar`,n);return t.jsx("div",{id:r,className:c,children:t.jsx($e,{pageWidth:o,children:e})})};zn.displayName="InfoBar";const Ct=e=>{const{active:n=!0,className:r,withOverlay:o=!0,small:i=!1,...c}=e,{prefix:l}=E(),u=$(`${l}--loading`,r,{[`${l}--loading--small`]:i,[`${l}--loading--stop`]:!n}),p=$(`${l}--loading-overlay`,{[`${l}--loading-overlay--stop`]:!n}),d=t.jsx("div",{...c,"aria-live":n?"assertive":"off",className:u,children:t.jsxs("svg",{className:`${l}--loading__svg`,viewBox:"-75 -75 150 150",children:[t.jsx("title",{children:"Loading"}),null,t.jsx("circle",{className:void 0,cx:"0",cy:"0",r:"37.5"})]})});return o?t.jsx("div",{className:p,children:d}):d};Ct.displayName="Loading";const Hn=e=>{const{className:n,success:r,description:o,onSuccess:i,successDelay:c,...l}=e,{prefix:u}=E(),p=$(`${u}--inline-loading`,n),d=()=>r?(setTimeout(()=>{i&&i()},c),t.jsx("svg",{className:`${u}--inline-loading__checkmark-container ${u}--inline-loading__svg`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:t.jsx("polyline",{className:`${u}--inline-loading__checkmark`,points:"0.74 3.4 3.67 6.34 9.24 0.74"})})):t.jsx(Ct,{small:!0,withOverlay:!1}),m=t.jsx("p",{className:`${u}--inline-loading__text`,children:o});return t.jsxs("div",{className:p,...l,children:[t.jsx("div",{className:`${u}--inline-loading__animation`,children:d()}),o&&m]})};Hn.displayName="InlineLoading";const Xe=K.forwardRef(({children:e,className:n,colon:r,kind:o,small:i,...c},l)=>{const{prefix:u}=E(),p=$(`${u}--list`,n,{[`${u}--list--${o}`]:o,[`${u}--list--small`]:i,[`${u}--list--colon`]:r}),d={...c};return t.jsx("ul",{className:p,...d,ref:l,children:e})});Xe.displayName="List";const Yn=({children:e,className:n,title:r,kind:o,icon:i,...c})=>{const l=$("wfp--list__element",n,{"wfp--list-item--checkmark":o==="checkmark","wfp--list-item--cross":o==="cross"});return t.jsxs("li",{className:l,...c,children:[o==="cross"&&t.jsx(as,{className:"wfp--list-item__icon"}),o==="checkmark"&&t.jsx(Gr,{className:"wfp--list-item__icon"}),i&&t.jsx("span",{className:"wfp--list__element__icon",children:i}),r&&t.jsx("span",{className:"wfp--list__element__title",children:r}),t.jsx("span",{className:"wfp--list__element__content",children:e})]})},Tt=W.createContext({onChangeSub:e=>e,activeMenuItem:null,openMobileMenu:!1,toggleMenu:()=>{},setOpenMobileMenu:()=>{}}),No=({toggleMenu:e,prefix:n})=>t.jsx(Ne,{className:`${n}--main-navigation__button`,onClick:e,children:"Menu"}),Un=({children:e,components:n={},className:r,id:o,logo:i,line:c=!1,logoRibbon:l="default",mobilePageWidth:u,pageWidth:p})=>{const{prefix:d}=E(),[m,h]=W.useState(!1),[_,x]=W.useState(null),j=(b,q,z)=>{if(z&&z.preventDefault(),b==="close")x(null);else if(b==="toggle"){const U=_===null||_!==q?q:null;U!==void 0&&x(U)}},g=()=>{h(!m)},w=$(`${d}--main-navigation`,{[`${d}--main-navigation--line`]:c},r),S=$(`${d}--main-navigation__list`,{[`${d}--main-navigation__list--open`]:m}),O={Wrapper:$e,MobileButton:No,...n},P=O.Wrapper,C=O.MobileButton;return t.jsx("nav",{id:o,className:w,children:t.jsx(Tt.Provider,{value:{activeMenuItem:_,openMobileMenu:m,toggleMenu:g,onChangeSub:j,setOpenMobileMenu:h},children:t.jsxs(P,{pageWidth:p,mobilePageWidth:u,className:`${d}--main-navigation__wrapper`,children:[t.jsxs("div",{className:`${d}--main-navigation__logo-wrapper`,children:[t.jsx(C,{toggleMenu:g,prefix:d,openMobileMenu:m,children:"Menu"}),t.jsx("div",{className:`${d}--main-navigation__logo`,children:i})]}),t.jsx("ul",{className:S,children:e})]})})})};Un.displayName="MainNavigation";function St(){return W.useContext(Tt)}St.displayName="useMainNavigation";const Eo=({className:e,children:n,kind:r,subNavigation:o,subNavWideAsContent:i})=>{const{prefix:c}=E(),{onChangeSub:l,activeMenuItem:u}=St(),[p]=W.useState(Math.random().toString(36)),d=W.useRef(null);W.useEffect(()=>(p===u?document.addEventListener("mousedown",m):document.removeEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}),[u]);const m=g=>{d?.current&&!d.current.contains(g.target)&&l("close")},h=$(e,{[`${c}--main-navigation__item`]:!0,[`${c}--main-navigation__item--open`]:p===u,[`${c}--content-width`]:o&&i}),_=$({[`${c}--main-navigation__trigger`]:!0,[`${c}--main-navigation__trigger--has-sub`]:o,[`${c}--main-navigation__trigger--open`]:p===u}),x=p===u?Qe:vt,j=$({[`${c}--main-navigation__sub`]:!0,[`${c}--main-navigation__sub--${r}`]:r,[`${c}--main-navigation__sub--open`]:p===u});return t.jsxs("li",{className:h,ref:d,children:[t.jsxs("div",{className:_,onClick:()=>l("toggle",p),children:[n,o&&t.jsx(x,{className:`${c}--main-navigation__trigger__icon`,description:p===u?"close icon":"expand icon"})]}),o&&t.jsx("div",{className:j,children:o})]})},Co=({children:e,...n})=>t.jsx("div",{...n,children:e}),To=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sub-navigation__item`,n);return t.jsx("div",{className:i,...r,children:e})},So=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sub-navigation__header`,n);return t.jsx("div",{className:i,...r,children:e})},ko=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sub-navigation__title`,n);return t.jsx("div",{className:i,...r,children:e})},Ro=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sub-navigation__link`,n);return t.jsx("div",{className:i,...r,children:e})},Po=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sub-navigation__filter`,n);return t.jsx("div",{className:i,...r,children:e})},Oo=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sub-navigation__content`,n);return t.jsx("div",{className:i,...r,children:e})},Ao=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sub-navigation__list`,n);return t.jsx("div",{className:i,...r,children:e})},Io=({children:e,columns:n,className:r,title:o,...i})=>{const{prefix:c}=E(),l=$(`${c}--sub-navigation__group`,{className:r},{[`${c}--sub-navigation__group--columns`]:n,[`${c}--sub-navigation__group--columns--${n}`]:n});return t.jsxs("div",{className:l,...i,children:[o&&t.jsx("h3",{className:`${c}--sub-navigation__group__title`,children:o}),t.jsx("div",{children:e})]})},Vn=({children:e,className:n,...r})=>{const{prefix:o}=E(),i=$({[`${o}--story`]:!0,[`${n}`]:n});return t.jsx("div",{className:i,...r,children:e})},Gn=({ariaLabel:e="close notification",className:n,iconDescription:r="close icon",type:o="button",renderIcon:i=Qe,name:c,notificationType:l="toast",...u})=>{const{prefix:p}=E(),d=$(n,{[`${p}--${l}-notification__close-button`]:l}),m=$({[`${p}--${l}-notification__close-icon`]:l});return t.jsx("button",{...u,type:o,"aria-label":r,title:r,className:d,children:i&&t.jsx(i,{"aria-label":e,className:m,name:c})})},Mo=({children:e,className:n,onClick:r,...o})=>{const{prefix:i}=E(),c=$(n,`${i}--inline-notification__action-button`);return t.jsx(Ne,{className:c,kind:"ghost",onClick:r,small:!0,...o,children:e})},kt=({title:e,subtitle:n,caption:r,notificationType:o="toast",children:i,...c})=>{const{prefix:l}=E();return o==="toast"?t.jsxs("div",{...c,className:`${l}--toast-notification__details`,children:[e&&t.jsx("h3",{className:`${l}--toast-notification__title`,children:e}),t.jsx("div",{className:`${l}--toast-notification__subtitle`,children:n}),t.jsx("div",{className:`${l}--toast-notification__caption`,children:r}),i]}):t.jsxs("div",{...c,className:`${l}--inline-notification__text-wrapper`,children:[e&&t.jsx("p",{className:`${l}--inline-notification__title`,children:e}),t.jsx("div",{className:`${l}--inline-notification__subtitle`,children:i||n})]})},Do={error:bn,success:Zr,warning:yn,info:hs},Kn=({iconDescription:e,kind:n="info",notificationType:r="toast"})=>{const{prefix:o}=E(),i=n?Do[n]:void 0;return i?t.jsx(i,{className:`${o}--${r}-notification__icon`,children:t.jsx("title",{children:e})}):null},Lo=({role:e="alert",notificationType:n="toast",onClose:r=()=>{},onCloseButtonClick:o=()=>{},iconDescription:i="closes notification",statusIconDescription:c,className:l,subtitle:u,title:p="provide a title",kind:d="error",lowContrast:m=!0,hideCloseButton:h=!1,children:_,timeout:x=0,...j})=>{const{prefix:g}=E(),[w,S]=K.useState(!0),O=$(l,{[`${g}--toast-notification`]:!0,[`${g}--toast-notification--low-contrast`]:m,[`${g}--toast-notification--${d}`]:d}),P=q=>{(!r||r(q)!==!1)&&S(!1)};function C(q){o(q),P(q)}const b=K.useRef(r);return K.useEffect(()=>{b.current=r}),K.useEffect(()=>{if(!x)return;const q=window.setTimeout(z=>{S(!1),b.current&&b.current(z)},x);return()=>{window.clearTimeout(q)}},[x]),w?t.jsxs("div",{...j,role:e,className:O,children:[t.jsx(Kn,{kind:d,iconDescription:c||`${d} icon`,notificationType:n}),t.jsx(kt,{title:p,subtitle:u,notificationType:n,children:_}),!h&&t.jsx(Gn,{iconDescription:i,notificationType:n,onClick:C})]}):null},Me=K.forwardRef((e,n)=>{const{actions:r,role:o="alert",notificationType:i="inline",icon:c,statusIconDescription:l,className:u,subtitle:p,title:d,kind:m="info",lowContrast:h=!0,hideCloseButton:_=!1,children:x,...j}=e,{prefix:g}=E(),w=$(u,{[`${g}--inline-notification`]:!0,[`${g}--block-notification`]:!0,[`${g}--inline-notification--low-contrast`]:h,[`${g}--inline-notification--${m}`]:m,[`${g}--inline-notification--hide-close-button`]:_});return t.jsx("div",{...j,ref:n,role:o,className:w,children:t.jsxs("div",{className:`${g}--inline-notification__details`,children:[c===void 0&&t.jsx(Kn,{notificationType:i,kind:m,iconDescription:l||`${m} icon`}),c&&t.jsx("div",{className:`${g}--${i}-notification__icon`,children:c}),t.jsx(kt,{title:d,subtitle:p,notificationType:i,children:x}),r&&t.jsx("div",{className:`${g}--inline-notification__actions-wrapper`,children:r})]})})});Me.displayName="Callout";const Qn=({className:e,children:n,responsive:r,withBorder:o,...i})=>{const{prefix:c}=E(),l=$(`${c}--table`,{[`${c}--table--responsive`]:r,[`${c}--table--with-border`]:o},e);return t.jsx("table",{...i,className:l,children:n})},qo=({className:e,isSorted:n,isSortedDesc:r,sortType:o})=>{const i=$(e,"wfp--table--sorting",{"wfp--table--is-sorted":n,"wfp--table--is-sortable":o});return t.jsx("span",{className:i,children:n?r?t.jsx(Hr,{}):t.jsx(Ur,{}):""})},Fo=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),Bo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",title:"h1",subtitle:"h3",p:"p",caption:"div",code:"code",i:"i",bold:"b",strong:"strong",a:"a","inline-highlight":"code"},Ce=({as:e,children:n,className:r,kind:o,spacingTop:i,spacingBottom:c})=>{const{prefix:l}=E(),u=o?Bo[o]:"div",p=$({[`${l}--text`]:!0,[`${l}--text__${o}`]:o,[`${l}--text__spacing-top-${i}`]:i,[`${l}--text__spacing-bottom-${c}`]:c},r);return K.createElement(u,{className:p},n)};Ce.displayName="Text";const Wo=e=>t.jsx(Vn,{...e}),zo=e=>{const n=typeof e.children=="string"?e.children.substring(0,1):"";return n==="✓"||n==="✗"?t.jsx(Yn,{kind:n==="✓"?"checkmark":"cross",...e,children:e.children.substring(1,e.children.length)}):t.jsx("li",{...e,children:e.children})},Ho=({children:e,...n})=>t.jsx(Xe,{...n,kind:"bullets",children:e}),Yo=({children:e,...n})=>t.jsx(Xe,{...n,kind:"ordered",children:e}),Uo=e=>t.jsx(Ce,{kind:"h1",...e,children:e.children}),Vo=e=>t.jsx(Ce,{kind:"h2",...e,children:e.children}),Go=e=>t.jsx(Ce,{kind:"h3",...e,children:e.children}),Ko=e=>t.jsx(Ce,{kind:"h4",...e,children:e.children}),Qo=e=>t.jsx(Ce,{kind:"h5",...e,children:e.children}),Xo=e=>t.jsx("p",{...e,children:e.children}),Zo=e=>t.jsx(Qn,{...e,children:e.children}),Jo=e=>t.jsx(he,{inline:!0,...e,children:e.children}),ea=e=>{const n=E();return t.jsx("code",{className:`${n.prefix}--story__code`,...e,children:e.children})},ta=e=>{const n=E();return t.jsx("pre",{className:`${n.prefix}--story__pre`,...e,children:e.children})},na=({children:e,...n})=>Array.isArray(e)&&e.length>=2&&e[0].props?t.jsx(Me,{kind:"info",...n,subtitle:e.map((r,o)=>{if(o>0)return r}),title:e[0].props.children}):t.jsx(Me,{kind:"info",...n,subtitle:e}),ra={wrapper:Wo,h1:Uo,h2:Vo,h3:Go,h4:Ko,h5:Qo,p:Xo,li:zo,a:Jo,ul:Ho,ol:Yo,code:ea,pre:ta,table:Zo,blockquote:na,Button:Ne,Accordion:gt,AccordionItem:_t},Xn=({passiveModal:e,secondaryButtonText:n,onSecondaryButtonClick:r,primaryButtonText:o,onRequestSubmit:i,primaryButtonDisabled:c,secondaryButtonDisabled:l,danger:u,primaryButtonRef:p,secondaryButtonRef:d})=>{const{prefix:m}=E();return e?null:t.jsx("div",{className:`${m}--modal-footer`,children:t.jsxs("div",{className:`${m}--modal__buttons-container`,children:[n&&t.jsx(Ne,{kind:"secondary",disabled:l,id:"secondaryButton",onClick:h=>{r&&r(h,"button")},ref:d,children:n}),t.jsx(Ne,{kind:u?"danger":"primary",disabled:c,onClick:i,id:"primaryButton",ref:p,children:o})]})})},ut=typeof Element<"u"&&["matches","webkitMatchesSelector","msMatchesSelector"].filter(e=>typeof Element.prototype[e]=="function")[0];function Rt(e){const{modalHeading:n,modalLabel:r,className:o,components:i={},modalSecondaryAction:c,modalAriaLabel:l,passiveModal:u,children:p,elementToAppend:d,backgroundImage:m,open:h,lazyLoad:_,onRequestClose:x=()=>{},onSecondarySubmit:j,iconDescription:g,inPortal:w=!0,hideClose:S,handleBlur:O=()=>{},wide:P,type:C,selectorPrimaryFocus:b,primaryButtonRef:q,secondaryButtonRef:z,...U}=e,{prefix:V}=E(),ee=W.useRef(null),F=W.useRef(null),G=W.useRef(null),oe=d||(typeof document<"u"?document.body:void 0),[X,ue]=W.useState(!1),se=B=>{const{selectorsFloatingMenus:Q=[`.${V}--overflow-menu-options`,`.${V}--tooltip`,".flatpickr-calendar"]}=e;if(B&&typeof B.closest=="function")return Q.some(fe=>B.closest(fe));for(;B;){if(ut&&typeof B[ut]=="function"&&Q.some(fe=>B[ut](fe)))return!0;B=B.parentNode}return!1},de=B=>{x(B,"button")},pe=()=>{F.current&&F.current.focus()},me=B=>{O?O({evt:B,innerModal:G,open:h,elementOrParentIsFloatingMenu:se,focusModal:pe}):G.current&&h&&B.relatedTarget&&!G.current.contains(B.relatedTarget)&&!se(B.relatedTarget)&&pe()},s=B=>{if(b===!1)return;const Q=B.querySelector(b);if(Q){Q.focus();return}ee?.current&&ee.current.focus()},f=B=>{F.current&&F.current.offsetWidth&&F.current.offsetHeight&&X&&(s(B.currentTarget),ue(!1))};if(h===!1&&_)return null;const N={ModalFooter:Xn,...i}.ModalFooter,T=j||x,D=$({[`${V}--modal`]:!0,[`${V}--modal--wide`]:P,[`${V}--modal--tall`]:!u,[`${V}--modal--background-image`]:m,"is-visible":h,[`${V}--modal--warning`]:C==="warning"||e.warning,[`${V}--modal--danger`]:C==="danger"||e.danger},o),k=S?null:t.jsx("button",{className:`${V}--modal-close`,type:"button",id:"closeButton",onClick:de,ref:ee,children:t.jsx(Qe,{className:`${V}--modal-close__icon`,description:g})}),Y=t.jsxs("div",{ref:G,role:"dialog",className:`${V}--modal-container`,"aria-label":l,children:[t.jsxs("div",{className:`${V}--modal-header`,children:[u&&k,t.jsxs("div",{children:[r&&t.jsx("h4",{className:`${V}--modal-header__label`,children:r}),t.jsx("h2",{className:`${V}--modal-header__heading`,children:n})]}),c&&t.jsx(t.Fragment,{children:c}),!u&&k]}),t.jsx("div",{className:`${V}--modal-content`,children:p}),t.jsx(N,{...e,prefix:V,onSecondaryButtonClick:T,primaryButtonRef:q,secondaryButtonRef:z})]}),A=t.jsx("div",{...U,onBlur:me,className:D,style:m?{backgroundImage:`url(${m})`}:void 0,role:"presentation",tabIndex:-1,onTransitionEnd:h?f:void 0,ref:F,children:t.jsx("div",{className:`${V}--modal-inner`,children:Y})});return w&&oe?mn.createPortal(A,oe):A}Rt.displayName="Modal";const Zn=({children:e,customButton:n,id:r,onKeyDown:o,buttonTriggerText:i,buttonTriggerClassName:c,triggerButtonKind:l,disabled:u,handleSubmit:p=()=>{},shouldCloseAfterSubmit:d=!0,...m})=>{const{prefix:h}=E(),_=K.createRef(),[x,j]=K.useState(!1),g=()=>{j(!0)},w=()=>{j(!1),x||(_.current&&_.current.focus(),w&&w())},O={...m,open:x,onRequestClose:w,onRequestSubmit:()=>{p&&(p(w),d&&w())}},P=n?K.cloneElement(n,{disabled:u,onClick:g,inputref:_}):void 0;return t.jsxs("div",{role:"presentation",className:`${h}--modal__wrapper`,onKeyDown:C=>{C.which===27&&(w(),o&&o(C))},children:[n?t.jsx(K.Fragment,{children:P}):t.jsx(Ne,{id:r,className:c,disabled:u,kind:l,onClick:g,ref:_,children:i}),t.jsx(Rt,{...O,children:e})]})};Zn.displayName="ModalWrapper";const sa=({dark:e,light:n,children:r,className:o,margin:i,fullHeight:c,noMargin:l,withHover:u,...p})=>{const{prefix:d}=E(),m=$({[`${d}--module--dark`]:e,[`${d}--module--no-margin`]:l||i===void 0,[`${d}--module--full-height`]:c,[`${d}--module--margin-xs`]:i==="xs",[`${d}--module--margin-md`]:i==="md",[`${d}--module--margin-lg`]:i==="lg",[`${d}--module--light`]:n,[`${d}--module--with-hover`]:u},o,[`${d}--module`]);return t.jsx("div",{className:m,...p,children:t.jsx("div",{className:`${d}--module__inner`,children:r})})},oa=({children:e,className:n,centered:r,noPadding:o,...i})=>{const c=$("wfp--module__content",n,{"wfp--module__content--centered":r,"wfp--module__content--no-padding":o});return t.jsx("div",{className:c,...i,children:e})},aa=({filter:e,children:n,className:r,...o})=>{const i=$("wfp--module__header",r);return t.jsxs("div",{className:i,...o,children:[t.jsx("h1",{className:"wfp--module__title",children:n}),e&&t.jsx("div",{className:"wfp--module__filter",children:e})]})},ia=({children:e,className:n,...r})=>{const o=$("wfp--module__footer",n);return t.jsx("div",{className:o,...r,children:e})},ca=e=>{const n=parseFloat(e);return Math.floor(n)===n?0:e.split(".")[1].length||0},dn=(e,n)=>isNaN(e)||!e&&e!==0||isNaN(n)||!n&&n!==0?n:Math.max(e,n),fn=(e,n)=>isNaN(e)||!e&&e!==0||isNaN(n)||!n&&n!==0?n:Math.min(e,n),Jn=K.forwardRef((e,n)=>{const{className:r,disabled:o,id:i,hideLabel:c,hideControls:l,max:u,min:p,step:d=1,onChange:m=()=>{},onClick:h=()=>{},helperText:_,light:x,pattern:j="[0-9]*"}=e,{prefix:g}=E(),w=fn(u,dn(p,e.value)),[S,O]=W.useState(w);W.useEffect(()=>{O(e.value)},[e.value]);const P=W.useRef(null),C=n||P,b=G=>{o||(G.persist(),G.imaginaryTarget=C,O(G.target.value),m(G,parseFloat(G.target.value)))},q=(G,oe)=>{let X=typeof S=="string"?Number(S):S;X=isNaN(X)?0:X;const ue=oe==="down"?p!==void 0&&X>p||p===void 0:u!==void 0&&X<u||u===void 0,se=d.toString();X=oe==="down"?X-d:X+parseFloat(se),X=fn(u,dn(p,X)),X=parseFloat(X.toFixed(ca(se))),!o&&ue&&(G.persist(),G.imaginaryTarget=C,G.target.value=parseFloat(X),h(G,oe),O(X),m(G,X,oe))},z=$(`${g}--number`,r,{[`${g}--number--light`]:x,[`${g}--number--helpertext`]:_,[`${g}--number--nolabel`]:c,[`${g}--number--nocontrols`]:l}),U={disabled:o,id:i,max:u,min:p,step:d,onChange:b,value:S},V=e,{inputProps:ee,wrapperProps:F}=ye({...V,type:"number"});return t.jsx(xe,{...F,inputWrapperClassName:z,children:t.jsxs("div",{className:`${g}--number__controls`,children:[t.jsx("button",{className:`${g}--number__control-btn up-icon`,type:"button",disabled:o,onClick:G=>q(G,"up"),children:"+"}),t.jsx("button",{className:`${g}--number__control-btn down-icon`,type:"button",disabled:o,onClick:G=>q(G,"down"),children:"−"}),t.jsx("input",{pattern:j,...ee,...U,ref:n})]})})});Jn.displayName="NumberInput";const Ue=K.forwardRef((e,n)=>{const{className:r,inline:o,disabled:i,children:c,iconDescription:l,light:u,hideLabel:p}=e,{prefix:d}=E(),m=$({[`${d}--select-input`]:!0,[`${d}--select--inline`]:o,[`${d}--select--light`]:u,[`${d}--select--disabled`]:i},r),h=e,{inputProps:_,wrapperProps:x}=ye({...h,inputClassName:m});return t.jsxs(xe,{...x,inputWrapperClassName:`${d}--select`,hideLabel:p,children:[t.jsx("select",{..._,ref:n,children:c}),t.jsx(vt,{className:`${d}--select__arrow`,description:l})]})});Ue.displayName="Select";function Ve({className:e,value:n,disabled:r,hidden:o,text:i,...c}){const{prefix:l}=E(),u=$({[`${l}--select-option`]:!0,[`${e}`]:e});return t.jsx("option",{...c,className:u,value:n,disabled:r,hidden:o,children:i})}Ve.displayName="SelectItem";let la=0;const Pt=e=>{const{backwardText:n="Backward",className:r,forwardText:o="Forward",id:i,itemsPerPageText:c="Items per page:",itemsPerPageFollowsText:l,itemRangeText:u=(f,y,N)=>`${f}-${y} of ${N} items`,pageRangeText:p=(f,y)=>`${f} of ${y} pages`,pageSize:d,pageSizesDisabled:m,pageSizes:h,itemText:_=(f,y)=>`${f}-${y} items`,pageText:x=f=>`page ${f}`,pageNumberText:j="Page Number",pagesUnknown:g=!1,isLastPage:w=!1,pageInputDisabled:S=!1,totalItems:O,onChange:P,page:C=1,...b}=e,[q,z]=W.useState(C),[U,V]=W.useState(e.pageSize?e.pageSize:h[0]),ee=W.useState(()=>++la)[0],F=f=>{const y=Number(f.target.value);z(1),V(y),P?.({page:1,pageSize:y})},G=f=>{const y=Number(f.target.value);y>0&&y<=Math.max(Math.ceil(O/U),1)&&(z(y),P?.({page:y,pageSize:U}))},oe=()=>{const f=q+1;z(f),P?.({page:f,pageSize:U})},X=()=>{const f=q-1;z(f),P?.({page:f,pageSize:U})},ue=f=>{let y=1;const N=[];for(;y<=f;)N.push(t.jsx(Ve,{value:y,text:String(y)},y)),y++;return N},se=$("wfp--pagination",r),de=$("wfp--pagination__button","wfp--pagination__button--backward",{"wfp--pagination__button--no-index":S}),pe=i||ee,me=Math.max(Math.ceil(O/U),1),s=ue(me);return t.jsxs("div",{className:se,...b,children:[t.jsxs("div",{className:"wfp--pagination__left",children:[!m&&t.jsxs(W.Fragment,{children:[t.jsx("span",{className:"wfp--pagination__text",children:l||c}),t.jsx(Ue,{id:`wfp-pagination-select-${pe}`,labelText:c,hideLabel:!0,inline:!0,onChange:F,value:U,children:h.map(f=>t.jsx(Ve,{value:f,text:String(f)},f))}),t.jsxs("span",{className:"wfp--pagination__text",children:[" "," | "]})]}),t.jsx("span",{className:"wfp--pagination__text",children:g?_(U*(q-1)+1,q*U):u(Math.min(U*(q-1)+1,O),Math.min(q*U,O),O)})]}),t.jsxs("div",{className:"wfp--pagination__right wfp--pagination--inline",children:[t.jsx("span",{className:"wfp--pagination__text",children:g?x(q):p(q,me)}),t.jsx("button",{className:de,onClick:X,disabled:e.disabled||q===1,children:t.jsx(_n,{className:"wfp--pagination__button-icon",description:n})}),S?null:t.jsx(Ue,{id:`wfp-pagination-select-${+pe+2}`,labelText:c,hideLabel:!0,inline:!0,onChange:G,value:q,children:s}),t.jsx("button",{className:"wfp--pagination__button wfp--pagination__button--forward",onClick:oe,disabled:e.disabled||q===me||w,children:t.jsx(xn,{className:"wfp--pagination__button-icon",description:o})})]})]})};Pt.displayName="Pagination";let pn=0;function er(e="id"){return pn++,`${e}${pn}`}const tr=K.forwardRef((e,n)=>{const{labelText:r,id:o,className:i,value:c,name:l,onChange:u,...p}=e,[d]=W.useState(o||er()),{prefix:m}=E(),h=$("radioButtonWrapper",i),x=u?{onChange:j=>{u?.(j,c,l)}}:{};return t.jsxs("div",{className:h,children:[t.jsx("input",{...p,ref:n,type:"radio",className:`${m}--radio-button`,...x,id:d,value:c,name:l,checked:e.checked,defaultChecked:e.defaultChecked,disabled:e.disabled}),t.jsxs("label",{htmlFor:d,className:`${m}--radio-button__label`,children:[t.jsx("span",{className:`${m}--radio-button__appearance`}),r]})]})});tr.displayName="RadioButton";const nr=e=>{const{prefix:n}=E(),{children:r,labelText:o,helperText:i,vertical:c,hideLabel:l,className:u=`${n}--input-group`,wrapperClassName:p,valueSelected:d,defaultSelected:m}=e,[h,_]=W.useState(d||m);W.useEffect(()=>{d!==h&&_(d)},[d,m]);const x=$(`${n}--label`,{[`${n}--visually-hidden`]:l}),j=$(`${n}--form-item`,{[`${n}--input-group__vertical`]:c,wrapperClassName:p}),g=o?t.jsx("span",{className:x,children:o}):null,w=i?t.jsx("div",{className:`${n}--form__helper-text`,children:i}):null;return t.jsx("div",{className:j,children:t.jsxs("div",{className:u,children:[g,w,t.jsx("div",{className:`${n}--input-group-inside`,children:r})]})})};nr.displayName="InputGroup";const ua=({handleToggleClick:e,link:n,text:r,showMore:o,contentId:i})=>{const{prefix:c}=E(),l={"aria-expanded":o,"aria-controls":i};if(n)return W.cloneElement(n,{onClick:e,...l});{const u=rs,p=$({[`${c}--read-more__trigger`]:!0,[`${c}--read-more__trigger--expanded`]:o});return t.jsxs(he,{className:p,size:"sm",onClick:e,...l,children:[r,t.jsx(u,{width:"10",height:"10",description:o?"icon up":"icon down"})]})}};function rr({collapseLink:e,collapseText:n="Show less",children:r,collapsed:o,className:i,disableAutoscroll:c,expandLink:l,expandText:u="Show more",fade:p,maxHeight:d}){const{prefix:m}=E(),[h,_]=W.useState(!1),[x,j]=W.useState(0),g=W.useRef(null),w=W.useRef(null),O=`${vn()}-read-more-content`,P=z=>{z.preventDefault();const U=g?.current?.clientHeight;!h&&!c&&setTimeout(()=>{w?.current&&w.current.scrollIntoView({behavior:"smooth",block:"end"})},50),_(!h),U&&j(U)},C=$(i,{[`${m}--read-more`]:!0,[`${m}--read-more--expanded`]:h,[`${m}--read-more--fade`]:p,[`${m}--read-more--max-height`]:d}),b=d?d&&!h?{maxHeight:d}:{maxHeight:x+20}:{undefined:void 0},q=h?{display:"none"}:{display:"block"};return t.jsxs("div",{className:C,children:[t.jsxs("div",{className:`${m}--read-more__content`,style:b,id:O,children:[t.jsx("div",{className:`${m}--read-more__fake-height`,ref:w,style:{height:`${x+30}px`}}),t.jsxs("div",{ref:g,children:[(h||!o)&&r,o&&t.jsx("div",{style:q,children:o})]})]}),t.jsx(ua,{handleToggleClick:P,showMore:h,link:h?e:l,text:h?n:u,contentId:O})]})}rr.displayName="ReadMore";function sr({additional:e,children:n,className:r,id:o,pageWidth:i,...c}){const{prefix:l}=E(),u=$(`${l}--secondary-navigation`,r);return t.jsx("div",{id:o,className:u,...c,children:t.jsxs($e,{pageWidth:i,className:`${l}--secondary-navigation__wrapper`,children:[t.jsx("div",{className:`${l}--secondary-navigation__list`,children:n}),e&&t.jsx("div",{className:`${l}--secondary-navigation__additional`,children:e})]})})}sr.displayName="SecondaryNavigation";function or({className:e,children:n}){const{prefix:r}=E(),o=$(`${r}--secondary-navigation__title`,e);return t.jsx("h1",{className:o,children:n})}or.displayName="SecondaryNavigationTitle";function da({inline:e,small:n,vertical:r,className:o,role:i,children:c}){const{prefix:l}=E(),[u]=W.useState(!0),d=W.Children.map(c,h=>h),m={tabs:$(o,{[`${l}--step-navigation`]:!0,[`${l}--step-navigation--vertical`]:r,[`${l}--step-navigation--small`]:n,[`${l}--step-navigation--regular`]:!n}),tablist:$(`${l}--step-navigation__nav`,{[`${l}--step-navigation__nav--hidden`]:u,[`${l}--step-navigation__nav--inline`]:e})};return t.jsx(t.Fragment,{children:t.jsx("nav",{className:m.tabs,role:i,children:t.jsx("ul",{role:"tablist",className:m.tablist,children:d})})})}const fa=({className:e,handleTabClick:n=()=>{},index:r,label:o,status:i,helperText:c,selectedPage:l=0,onClick:u=()=>{},page:p=0,renderAnchor:d})=>{const{prefix:m}=E(),h=$(`${m}--step-navigation__nav-item`,{[`${m}--step-navigation__nav-item--before`]:p<l},{[`${m}--step-navigation__nav-item--selected`]:p===l},{[`${m}--step-navigation__nav-item--${i}`]:i},e),_={className:`${m}--step-navigation__nav-link`},j=i?{"not-started":{icon:cs},warning:{icon:Ds},locked:{icon:$s},skip:{icon:Cs},disabled:{icon:bn},complete:{icon:Qr},summary:{icon:Ns}}[i]?.icon:null;return t.jsx("li",{tabIndex:-1,className:h,onClick:g=>{i!=="locked"&&(n(g,r,o),u(g))},role:"presentation",children:t.jsx(t.Fragment,{children:d?d(_):t.jsxs(K.Fragment,{children:[t.jsx("div",{className:`${m}--step-navigation__nav-item__indicator`,children:i&&p!==l?t.jsx(j,{width:"14",height:"14",description:"Step Item"}):t.jsx("span",{children:p+1})}),t.jsxs("div",{children:[t.jsx("span",{className:`${m}--step-navigation__nav-item__text`,children:o}),c&&t.jsx("span",{className:`${m}--step-navigation__nav-item__helper-text`,children:c})]})]})})})};function pa({children:e,className:n,disabled:r,label:o,...i}){const{prefix:c}=E(),l=$(`${c}--select-optgroup`,n);return t.jsx("optgroup",{className:l,label:o,disabled:r,...i,children:e})}const ma=({active:e,children:n,className:r,sidebar:o,...i})=>{const{prefix:c}=E(),l=$(`${c}--sidebar-content__container`,r,{[`${c}--sidebar-content__container--active`]:e});return t.jsxs("div",{className:l,...i,children:[t.jsx("div",{className:`${c}--sidebar-item-content`,children:o}),t.jsx("div",{className:`${c}--content-section`,children:n})]})},ha=({className:e,children:n,noPadding:r,...o})=>{const{prefix:i}=E(),c=$(`${i}--sidebar-content__header`,e,{[`${i}--sidebar-content__header--no-padding`]:r});return t.jsx("div",{className:c,...o,children:n})},ga=({className:e,children:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sidebar-content-mobile-header`,e,{});return t.jsx("div",{className:i,...r,children:n})},va=({className:e,children:n,...r})=>{const{prefix:o}=E(),i=$(`${o}--sidebar-content__children`,e,{});return t.jsx("div",{id:"scroll-container",className:i,...r,children:n})},_a=({children:e,...n})=>{const{prefix:r}=E();return t.jsx("div",{className:`${r}--sidebar-content__scroll`,...n,children:e})},xa=({children:e,...n})=>{const{prefix:r}=E();return t.jsxs("div",{className:`${r}--sidebar-content__back-button`,...n,children:[t.jsx(_n,{}),e]})},Ot=K.forwardRef((e,n)=>{const{hideLabel:r,helperText:o,pattern:i,required:c}=e,{prefix:l}=E(),u=$(`${l}--input`,`${l}--text-input`,{[`${l}--text--helpertext`]:o,[`${l}--text--nolabel`]:r,[`${l}--text--required`]:c}),p=e,{inputProps:d,wrapperProps:m}=ye({...p,inputClassName:u});return t.jsx(xe,{...m,children:t.jsx("input",{pattern:i,...d,ref:n})})});Ot.displayName="TextInput";const ba=(e,n)=>typeof n=="function"?n(e):`${e}${n||""}`;function ya(e,n,r){if(!(r<=n))return e<n&&(e=n),e>r&&(e=r),(e-n)/(r-n)*100}const ar=K.forwardRef((e,n)=>{const{ariaLabelInput:r,className:o,disabled:i,formatLabel:c=ba,fullWidth:l,id:u,inputType:p,hideLabel:d,hideControls:m,hideTextInput:h,min:_,minLabel:x,max:j,maxLabel:g,step:w=1,onChange:S=()=>{},helperText:O,...P}=e,{prefix:C}=E(),b=e.value,[q,z]=K.useState(b);K.useEffect(()=>{z(e.value)},[e.value]);const U=K.useRef(null),V=n||U,ee=s=>{i||(s.persist(),s.imaginaryTarget=V,s.target.value>j?(z(j),S(s)):(z(s.target.value),S(s)))},F=$(`${C}--slider--wrapper`,o,{[`${C}--slider--helpertext`]:O,[`${C}--slider--nolabel`]:d,[`${C}--slider--nocontrols`]:m}),G=$(`${C}--slider-container`,{[`${C}--slider-container--full-width`]:l}),oe={disabled:i,id:u,max:j,min:_,step:w,onChange:ee,value:q},X=$(`${C}--input`,`${C}--slider-text-input`),ue=$(`${C}--slider`,{[`${C}--slider--disabled`]:i},o),se=$(`${C}--slider__range-wrapper`,{[`${C}--slider__range-wrapper--disabled`]:i},o),de=q&&q<_?_:q,me=ye(e);return console.log("valueMinimal",de),t.jsx(xe,{...me.wrapperProps,formItemClassName:F,children:t.jsxs("div",{className:G,children:[t.jsx("span",{className:`${C}--slider__range-label`,children:c(_,x)}),t.jsxs("div",{className:se,children:[t.jsx("div",{className:`${C}--slider__range-before`,style:{width:`${ya(de,_,j)}%`}}),t.jsx("input",{className:ue,type:"range",...P,...oe,ref:V})]}),t.jsx("span",{className:`${C}--slider__range-label`,children:c(j,g)}),!h&&t.jsx(Ot,{disabled:i,type:p,id:"input-for-slider",className:X,value:q,onChange:ee,"aria-label":r})]})})});ar.displayName="Slider";const ir=K.forwardRef(({active:e,additional:n,children:r,className:o,subContent:i,image:c,hint:l,noImage:u,unread:p,showAdditionalIcon:d,title:m,kind:h="large",wrapper:_="none",...x},j)=>{const{prefix:g}=E(),w=$({[`${g}--item`]:!0,[`${g}--item--${h}`]:h,[`${g}--item--${_}`]:_,[`${g}--item--active`]:e,[`${g}--item--unread`]:p},o);return t.jsxs("div",{className:w,...x,ref:j,children:[c?t.jsx("div",{className:`${g}--item__image`,children:c}):u?t.jsx("div",{className:`${g}--item__image ${g}--item__image-empty`}):null,m&&t.jsx("div",{className:`${g}--item__title-wrapper`,children:t.jsx("h2",{className:`${g}--item__title`,children:m})}),n&&t.jsxs("div",{className:`${g}--item__additional`,children:[n,d&&t.jsx(xn,{className:`${g}--item__additional-icon`})]}),r&&t.jsx("div",{className:`${g}--item__text`,children:r}),i&&t.jsx("div",{className:`${g}--item__sub-content`,children:i}),l&&t.jsx("div",{className:`${g}--item__hint`,children:l}),p&&t.jsx("div",{className:`${g}--item__unread`})]})});ir.displayName="Item";const cr=({data:e,page:n,pageSizeOptions:r,paginationClassName:o,totalItems:i,style:c,onPageChange:l,onPageSizeChange:u,isLastPage:p,pages:d,pageInputDisabled:m,pageSize:h,pagesUnknown:_,backwardText:x,forwardText:j,itemsPerPageText:g,itemsPerPageFollowsText:w,itemRangeText:S,pageRangeText:O,pageSizesDisabled:P,itemText:C,pageNumberText:b})=>{const{prefix:q}=E(),z=ee=>(isNaN(ee)&&(ee=n),ee),U=ee=>{const F=z(ee.page-1);ee!==F&&l(F),h!==ee.pageSize&&u(ee.pageSize)},V={isLastPage:p,pages:d,pageInputDisabled:m,pageSize:h,pagesUnknown:_,backwardText:x,forwardText:j,itemsPerPageText:g,itemsPerPageFollowsText:w,itemRangeText:S,pageRangeText:O,pageSizesDisabled:P,itemText:C,pageNumberText:b};return t.jsx("div",{className:$(o,"-pagination"),style:c,children:t.jsx("div",{className:`${q}-pagination`,children:t.jsx(Pt,{onChange:U,pageSizes:r,page:n,totalItems:i||(e?e.length:void 0),...V})})})};cr.displayName="ReactTablePagination";function lr(e){const{prefix:n}=E(),{className:r,disabled:o,handleTabClick:i=()=>{},handleTabAnchorFocus:c=()=>{},handleTabKeyDown:l=()=>{},href:u,index:p=0,label:d,selected:m,tabIndex:h,onClick:_=()=>{},onKeyDown:x=()=>{},...j}=e,g=C=>{if(C.which===37&&c)c(p-1);else if(C.which===39&&c)c(p+1);else return},w=$(`${n}--tabs__nav-item`,{[`${n}--tabs__nav-item--disabled`]:o},{[`${n}--tabs__nav-item--selected`]:m},r),S=$(`${n}--tabs__nav-item`,`${n}--tabs__nav-item--selected`,r),O={className:"wfp--tabs__nav-link",href:o?void 0:u,label:d,role:"tab",tabIndex:h,"aria-selected":m};return{liProps:{tabIndex:-1,className:w,onClick:C=>{o||(i(p,d,C),_(C))},onKeyDown:C=>{o||(g(C),l(p,d,C),x(C))},role:"presentation",selected:m,...j},anchorProps:O,selectedClasses:S}}const wa=e=>{const{disabled:n,label:r,renderAnchor:o,renderListElement:i}=e,{anchorProps:c,liProps:l,selectedClasses:u}=lr(e);return t.jsx(K.Fragment,{children:i?typeof i=="function"?i({...e,...l,anchor:c,selectedClasses:u}):t.jsx(t.Fragment,{children:i}):t.jsx("li",{...l,children:o?o(c):n?t.jsx("span",{...c,children:r}):t.jsx("a",{...c,children:r})})})},ur=e=>{const{selected:n=!1,children:r,...o}=e;return t.jsx("div",{...o,"data-selected":n,hidden:!n,children:r})};ur.displayName="TabContent";const $a=W.createContext({handleTabClick:()=>{},handleTabKeyDown:()=>{},handleTabAnchorFocus:()=>{}}),dr=e=>{const{disableAnimation:n,inline:r,className:o,role:i="navigation",selected:c=null,...l}=e,{prefix:u}=E(),[p,d]=K.useState(c),m=K.useRef(null);K.useEffect(()=>{c!==p&&d(c)},[c]);const h={tabs:$(`${u}--tabs`,{[`${u}--tabs--no-animation`]:n},o),tablist:$(`${u}--tabs__nav`,{[`${u}--tabs__nav--inline`]:r})},_=()=>(g,w,S)=>{S&&S.preventDefault()},x=()=>(g,w,S)=>{S.key||S.which},j=()=>{};return t.jsx($a.Provider,{value:{handleTabClick:_,handleTabKeyDown:x,handleTabAnchorFocus:j},children:t.jsxs("nav",{...l,className:h.tabs,role:i,children:[t.jsx("div",{className:`${u}--tabs__nav__bar`}),t.jsx("ul",{ref:m,role:"tablist",className:h.tablist,children:e.children})]})})};dr.displayName="Tabs";const fr=K.forwardRef((e,n)=>{const{className:r,fullWidth:o}=e,{prefix:i}=E(),c=$(`${i}--text-area`,r,{[`${i}--textarea-fullwidth`]:o}),u=ye({...e,inputClassName:c});return t.jsx(xe,{...u.wrapperProps,children:t.jsx("textarea",{...u.inputProps,ref:n})})});fr.displayName="TextArea";const pr=K.forwardRef((e,n)=>{const{className:r,defaultToggled:o=!1,id:i,labelA:c="Off",labelB:l="On",...u}=e,{prefix:p}=E(),d=$({[`${p}--form-item`]:!0},r),m=i||u.name,_=ye(e),x=u;return t.jsxs(xe,{className:d,...e,children:[t.jsx("input",{...x,..._.inputProps,defaultChecked:o,type:"checkbox",id:m,className:`${p}--toggle`,ref:n}),t.jsxs("label",{className:`${p}--toggle__label`,htmlFor:m,children:[t.jsx("span",{className:`${p}--toggle__text--left`,children:c}),t.jsx("span",{className:`${p}--toggle__appearance`}),t.jsx("span",{className:`${p}--toggle__text--right`,children:l})]})]})});pr.displayName="Toggle";const ja=e=>{const{className:n,children:r,components:o={},description:i,ellipsis:c,extendedDescription:l,showName:u,small:p,name:d,missingImage:m,...h}=e,{prefix:_}=E(),j={...{Avatar:yt},...o},g=$(`${_}--user`,n,{[`${_}--user--has-description`]:i,[`${_}--user--has-extended-description`]:l}),w=$({[`${_}--user__title`]:!0,[`${_}--user__title--ellipsis`]:c,[`${_}--user__title--small`]:p});return t.jsxs("div",{className:g,...h,children:[t.jsx(j.Avatar,{...e,missingImage:m}),u&&t.jsxs("span",{className:w,children:[t.jsx("span",{children:d}),i&&t.jsx("div",{className:`${_}--user__description`,children:i})]}),r,l&&t.jsx("div",{className:`${_}--user__extended-description`,children:l})]})},Ie={thousand:{pow:1e3,defaultmaximumFractionDigits:2,default:{after:"T"}},million:{pow:1e6,defaultmaximumFractionDigits:1,default:{after:"M"}},billion:{pow:1e9,defaultmaximumFractionDigits:2,default:{after:"B"}}},mr=e=>t.jsx("span",{className:e.className+" invalid",children:"–"}),Na=e=>t.jsx("tspan",{className:e.className+" invalid",children:"–"}),Ze=e=>{if(e){const n=e.before?e.before+" ":"",r=e.output&&e.output.default?e.output.default.after+"":"",o=e.after?" "+e.after:"";return n+e.value+r+o}else return""},Je=(e,n)=>{const{style:r,...o}=n;return e?t.jsxs("text",{className:n.className,...o,children:[t.jsxs("tspan",{style:r,children:[e.before," "]}),t.jsx("tspan",{style:r,children:e.value}),t.jsxs("tspan",{style:r,children:[" ",e.output?e.output.default.after+"":"",e.after]})]}):t.jsx(Na,{className:n.className})},we=(e,n,r,o,i)=>{const{children:c,input:l,output:u,minimumFractionDigits:p,maximumFractionDigits:d,localeStringLanguage:m="en-EN",calcOnly:h,string:_,svg:x,hideZero:j}=e;var g=typeof c=="string"?c.replace(/,/g,""):c;g=parseFloat(g),g=g!==0&&l&&Ie[l]?Ie[l].pow*g:g;const w=u&&Ie[u]?Ie[u]:void 0;g=g!==0&&u?g/w.pow:g;const S=i===!0&&u===void 0?p===0:typeof p=="number"?p:w&&w.defaultmaximumFractionDigits?w.defaultmaximumFractionDigits:2,O=i===!0&&u===void 0?d===0:g<=.005?4:g<=.05?3:g<=.5?2:d===0?0:typeof d=="number"?d:w&&w.defaultmaximumFractionDigits?w.defaultmaximumFractionDigits:2,P={minimumFractionDigits:S,maximumFractionDigits:O>S?O:S};g=g.toLocaleString(m,P);const C={value:g,before:r,after:n,output:w};let b=e.className;return g==="1"&&o&&(b=b+" wfp--unit--singular"),(!g||g==="NaN"||parseFloat(g)===0)&&j?!1:h?C:x?Je(C,e):_?Ze(C):g!==!1?t.jsx("span",{className:b,children:g}):t.jsx(mr,{className:e.className})},Ea=(e,n,r)=>{const{calcOnly:o,children:i,from:c,string:l,svg:u,hideZero:p,maximumSignificantDigits:d,maximumFractionDigits:m}=e;var h=typeof i=="string"?i.replace(/,/g,""):i;h=parseFloat(h),parseFloat(c)===0?h=!1:c&&(h=h/parseFloat(c)*100),h=h.toLocaleString("en-EN",{minimumFractionDigits:d||0,maximumSignificantDigits:d,maximumFractionDigits:h<=.5?5:m||1});const _={value:h,before:r,after:n,output:void 0};return(!h||h==="NaN"||parseFloat(h)===0)&&p?!1:o?_:u?Je(_,e):l?Ze(_):h!==!1?t.jsx("span",{className:e.className,children:h}):t.jsx(mr,{className:e.className})},et=(e,n,r)=>{const{calcOnly:o,className:i,children:c,string:l,svg:u,hideUnit:p}=e,d=c,m=n||"",h=p?"":r+c+m,_={value:d,before:r,after:n,output:d+h};if(o)return _;if(u)return Je({value:d+h,before:r,after:n},e);if(l)return Ze(_);if(d!==!1)return t.jsx("span",{className:i,children:d})},Ca=e=>{const{children:n}=e,r=n;let o;if(typeof r=="number"&&r.toString().length>=7)o=new Date(r,e);else if(r.getMonth)o=r;else{const l=r.toString().substring(0,4),u=parseInt(r.toString().substring(4,7),10)-1;o=new Date(l,u,1)}const i=o.toLocaleString("en-us",{month:"short"}),c=o.toLocaleString("en-us",{month:"long"});return{monthName:i,monthNameFull:c,year:o.getFullYear(),date:o}},Ta=e=>{const{className:n,string:r,svg:o,calcOnly:i}=e,c=Ca(e),l={value:c.monthName+" "+c.year,before:"",after:"",output:void 0};if(i)return l;if(o)return Je(l,e);if(r)return Ze(l);if(l?.value)return t.jsx("span",{className:n,children:l.value})},Sa=e=>we(e,"","US$"),ka=e=>we(e,"People",void 0,!0,!0),Ra=e=>we(e,"Partners",void 0,!0,!0),Pa=e=>we(e,"MT",void 0,!0),Oa=e=>we(e,"MetricTons",void 0,!0),Aa=e=>we(e,"Months",void 0,!0,"Month"),Ia=e=>we(e,""),Ma=e=>we(e,"Beneficaries",void 0,!0,!0),Da=e=>we(e,"Households",void 0,!0,!0),La=e=>we(e,"Trips",void 0,!0,!0),qa=e=>et(e,"kg"),Fa=e=>et(e,""),Ba=e=>et(e,"Countries"),Wa=e=>et(e,""),za=e=>Ea(e,"%"),Ha=e=>Ta(e),Ya={Usd:Sa,Partners:Ra,Beneficiaries:Ma,Households:Da,Months:Aa,Mt:Pa,Kg:qa,MetricTons:Oa,Num:Ia,Level:Fa,None:Wa,Trips:La,Countries:Ba,People:ka,Percentage:za,YearMonth:Ha},Ua=e=>{const{prefix:n}=E(),{className:r,output:o,string:i,textAnchor:c,localeStringLanguage:l="en-EN",type:u="none",setup:p}=e,d=e.type.charAt(0).toUpperCase()+e.type.slice(1),m=Ya[d],h=c||"start",_=u?`${n}--unit--${u.toLowerCase()}`:"",x=o&&Ie[o]?`${n}--unit--${o}`:"",j=p?`${n}--unit--${p}`:"",g=`${n}--unit ${r} ${_} ${x} ${j}`;return i?m(e):m===void 0?null:t.jsx(m,{...e,className:g,textAnchor:h,localeStringLanguage:l})},Va=({value:e,secondaryValue:n,className:r,title:o,...i})=>{const{prefix:c}=E(),l=$(`${c}--value`,r);return t.jsxs("div",{className:l,...i,children:[t.jsx("h4",{className:`${c}--value__title`,children:o}),t.jsx("div",{className:`${c}--value__primary-value`,children:e}),t.jsx("div",{className:`${c}--value__secondary-value`,children:n})]})},Ga=e=>n=>{const o={...E(),...n};return t.jsx(e,{...o})};function Ka(){return W.useContext(Ke)}const Qa={main:{name:"main",hex:"#007DBC",scss:"$color__main",type:"communications"},"sequential-default-07":{name:"sequential-default-07",hex:"#9DEAFF",scss:"$color__sequential-default-07",type:"sequential-default",shortDescription:"sequential default 07"},"sequential-default-06":{name:"sequential-default-06",hex:"#73C3FE",scss:"$color__sequential-default-06",type:"sequential-default",shortDescription:"sequential default 06"},"sequential-default-05":{name:"sequential-default-05",hex:"#4AA1E2",scss:"$color__sequential-default-05",type:"sequential-default",shortDescription:"sequential default 05"},"sequential-default-04":{name:"sequential-default-04",hex:"#0780C0",scss:"$color__sequential-default-04",type:"sequential-default",shortDescription:"sequential default 04"},"sequential-default-03":{name:"sequential-default-03",hex:"#005F9B",scss:"$color__sequential-default-03",type:"sequential-default",shortDescription:"sequential default 03"},"sequential-default-02":{name:"sequential-default-02",hex:"#003F76",scss:"$color__sequential-default-02",type:"sequential-default",shortDescription:"sequential default 02"},"sequential-default-01":{name:"sequential-default-01",hex:"#002153",scss:"$color__sequential-default-01",type:"sequential-default",shortDescription:"sequential default 01"},"sequential-secondary-07":{name:"sequential-secondary-07",hex:"#bdf9c4",scss:"$color__sequential-secondary-07",type:"sequential-secondary",shortDescription:"sequential secondary 07"},"sequential-secondary-06":{name:"sequential-secondary-06",hex:"#89eaa8",scss:"$color__sequential-secondary-06",type:"sequential-secondary",shortDescription:"sequential secondary 06"},"sequential-secondary-05":{name:"sequential-secondary-05",hex:"#5fd79a",scss:"$color__sequential-secondary-05",type:"sequential-secondary",shortDescription:"sequential secondary 05"},"sequential-secondary-04":{name:"sequential-secondary-04",hex:"#41c196",scss:"$color__sequential-secondary-04",type:"sequential-secondary",shortDescription:"sequential secondary 04"},"sequential-secondary-03":{name:"sequential-secondary-03",hex:"#33aa96",scss:"$color__sequential-secondary-03",type:"sequential-secondary",shortDescription:"sequential secondary 03"},"sequential-secondary-02":{name:"sequential-secondary-02",hex:"#319298",scss:"$color__sequential-secondary-02",type:"sequential-secondary",shortDescription:"sequential secondary 02"},"sequential-secondary-01":{name:"sequential-secondary-01",hex:"#367a96",scss:"$color__sequential-secondary-01",type:"sequential-secondary",shortDescription:"sequential secondary 01"},"categorical-corporate-01":{name:"categorical-01",hex:"#007DBC",scss:"$color__categorical-corporate-01",type:"categorical",shortDescription:"categorical-01"},"categorical-corporate-02":{name:"categorical-02",hex:"#36B5C5",scss:"$color__categorical-corporate-02",type:"categorical",shortDescription:"categorical-02"},"categorical-corporate-03":{name:"categorical-03",hex:"#00B485",scss:"$color__categorical-corporate-03",type:"categorical",shortDescription:"categorical-03"},"categorical-corporate-04":{name:"categorical-04",hex:"#008868",scss:"$color__categorical-corporate-04",type:"categorical",shortDescription:"categorical-04"},"categorical-corporate-05":{name:"categorical-05",hex:"#1A4262",scss:"$color__categorical-corporate-05",type:"categorical",shortDescription:"categorical-05"},"categorical-corporate-06":{name:"categorical-06",hex:"#982B56",scss:"$color__categorical-corporate-06",type:"categorical",shortDescription:"categorical-06"},"categorical-corporate-07":{name:"categorical-07",hex:"#EF404C",scss:"$color__categorical-corporate-07",type:"categorical",shortDescription:"categorical-07"},"categorical-corporate-08":{name:"categorical-08",hex:"#F47847",scss:"$color__categorical-corporate-08",type:"categorical",shortDescription:"categorical-08"},"categorical-corporate-09":{name:"categorical-09",hex:"#B79F8D",scss:"$color__categorical-corporate-09",type:"categorical",shortDescription:"categorical-09"},"categorical-corporate-10":{name:"categorical-10",hex:"#ECDFBB",scss:"$color__categorical-corporate-10",type:"categorical",shortDescription:"categorical-10"},female:{name:"female",hex:"#3f7e44",scss:"$color__female",type:"symbolic",shortDescription:"Indicate female"},male:{name:"male",hex:"#26bde2",scss:"$color__male",type:"symbolic",shortDescription:"Indicate male"},national:{name:"national",hex:"#3C5979",scss:"$color__national",type:"symbolic",shortDescription:"Indicate national staff"},international:{name:"international",hex:"#fcc30b",scss:"$color__international",type:"symbolic",shortDescription:"Indicate international staff"},"brand-01":{name:"brand-01",hex:"#007DBC",scss:"var(--brand-01)",css:"color__brand-01",type:"brand",shortDescription:"WFP brand color"},"interactive-01":{name:"interactive-01",hex:"#0b77c2",scss:"var(--interactive-01)",css:"color__interactive-01",type:"brand",shortDescription:"Primary interactive color, Primary buttons"},"interactive-02":{name:"interactive-02",hex:"#085387",scss:"$action-default-fill-primary-default-02",css:"color__interactive-02",type:"brand",shortDescription:"BannerNavigation"},"accent-01":{name:"accent-01",hex:"#f7b825",scss:"$accent-01",css:"color__accent-01",type:"brand-accent",shortDescription:"Accent colour (recommended)"},"brand-01-20":{name:"brand-01-20",hex:"#c2dbec",scss:"$brand-01-20",css:"color__brand-01-20",type:"brand-extended"},"brand-01-30":{name:"brand-01-30",hex:"#85b7da",scss:"$brand-01-30",css:"color__brand-01-30",type:"brand-extended"},"brand-01-40":{name:"brand-01-40",hex:"#4792c7",scss:"$brand-01-40",css:"color__brand-01-40",type:"brand-extended"},"brand-01-60":{name:"brand-01-60",hex:"#085387",scss:"$brand-01-60",css:"color__brand-01-60",type:"brand-extended"},"brand-01-70":{name:"brand-01-70",hex:"#05375a",scss:"$brand-01-70",css:"color__brand-01-70",type:"brand-extended"},"brand-01-80":{name:"brand-01-80",hex:"#031c2d",scss:"$brand-01-80",css:"color__brand-01-80",type:"brand-extended"},"ui-01":{name:"ui-01",hex:"#ffffff",scss:"$ui-01",css:"color__ui-01",type:"ui",shortDescription:"Primary container background; Secondary page background",description:"This colour is used as the page background if there are no Modules on top of it."},"ui-02":{name:"ui-02",hex:"#eff2f5",scss:"var(--ui-02)",css:"color__ui-02",type:"ui",shortDescription:"Primary page background; Secondary container background",description:"Use this colour as page background if there are modules on top of it to increase the contrast between the modules."},"ui-03":{name:"ui-03",hex:"#f0f3f6",scss:"$ui-03",css:"color__ui-03",type:"ui",shortDescription:"Subtle border, Tertiary background color"},"ui-04":{name:"ui-04",hex:"#dfe3e6",scss:"$ui-04",css:"color__ui-04",type:"ui",shortDescription:"3:1 AA element contrast; Medium contrast border"},"ui-05":{name:"ui-05",hex:"#8c9ba5",scss:"$ui-03",css:"color__ui-05",type:"ui",shortDescription:"4.5:1 AA element contrast; High contrast border; Emphasis elements"},"ui-06":{name:"ui-06",hex:"#0b1923",scss:"$ui-06",css:"color__ui-06",type:"ui",shortDescription:""},"text-01":{name:"text-01",hex:"#031c2d",scss:"$text-01",css:"color__text-01",type:"ui",shortDescription:"Primary text colour; Input labels;"},"text-02":{name:"text-02",hex:"#5a6872",scss:"$text-02",css:"color__text-02",type:"ui",shortDescription:"Secondary text; Help text"},"text-03":{name:"text-03",hex:"#dfe6eb",scss:"$text-03",css:"color__text-03",type:"ui",shortDescription:"Placeholder text"},"text-04":{name:"text-04",hex:"#ffffff",scss:"$text-04",css:"color__text-04",type:"ui",shortDescription:""},"inverse-01":{name:"inverse-01",hex:"#ffffff",scss:"$inverse-01",css:"color__inverse-01",type:"ui",shortDescription:"Inverse text color; Inverse icon color"},"field-01":{name:"field-01",hex:"#ffffff",scss:"$field-02",css:"color__field-01",type:"ui",shortDescription:"Default input fields; Fields on $ui-backgrounds"},"field-border-01":{name:"field-border-01",hex:"#d4d7d9",scss:"$field-border-01",css:"color__field-border-01",type:"ui",shortDescription:""},"disabled-01":{name:"disabled-01",hex:"#f9fbfc",scss:"$disabled-01",css:"color__disabled-01",type:"ui",shortDescription:""},"disabled-02":{name:"disabled-02",hex:"#dfe6eb",scss:"$disabled-02",css:"color__disabled-02",type:"ui",shortDescription:""},"sdg-01":{name:"sdg-01",hex:"#E5243B",scss:"$sdg-01",css:"color__sdg-01",type:"sdg",shortDescription:"No poverty, red"},"sdg-02":{name:"sdg-02",hex:"#DDA63A",scss:"$sdg-02",css:"color__sdg-02",type:"sdg",shortDescription:"Zero hunger, mustard"},"sdg-03":{name:"sdg-03",hex:"#4C9F38",scss:"$sdg-03",css:"color__sdg-03",type:"sdg",shortDescription:"Good health and well-being, kelly green"},"sdg-04":{name:"sdg-04",hex:"#C5192D",scss:"$sdg-04",css:"color__sdg-04",type:"sdg",shortDescription:"Quality education, dark red"},"sdg-05":{name:"sdg-05",hex:"#FF3A21",scss:"$sdg-05",css:"color__sdg-05",type:"sdg",shortDescription:"Gender equality, red orange"},"sdg-06":{name:"sdg-06",hex:"#26BDE2",scss:"$sdg-06",css:"color__sdg-06",type:"sdg",shortDescription:"Clean water and sanitation, bright blue"},"sdg-07":{name:"sdg-07",hex:"#FCC30B",scss:"$sdg-07",css:"color__sdg-07",type:"sdg",shortDescription:"Affordable and clean energy, yellow"},"sdg-08":{name:"sdg-08",hex:"#A21942",scss:"$sdg-08",css:"color__sdg-08",type:"sdg",shortDescription:"Decent work and economic growth, burgundy red"},"sdg-09":{name:"sdg-09",hex:"#FD6925",scss:"$sdg-09",css:"color__sdg-09",type:"sdg",shortDescription:"Industry, innovation and infrastructure, orange"},"sdg-10":{name:"sdg-10",hex:"#DD1367",scss:"$sdg-10",css:"color__sdg-10",type:"sdg",shortDescription:"Reduced inequalities, magentas"},"sdg-11":{name:"sdg-11",hex:"#FD9D24",scss:"$sdg-11",css:"color__sdg-11",type:"sdg",shortDescription:"Sustainable cities and communities, golden yellow"},"sdg-12":{name:"sdg-12",hex:"#BF8B2E",scss:"$sdg-12",css:"color__sdg-12",type:"sdg",shortDescription:"Responsible consumption and production, dark mustard"},"sdg-13":{name:"sdg-13",hex:"#3F7E44",scss:"$sdg-10",css:"color__sdg-13",type:"sdg",shortDescription:"Climate action, dark green"},"sdg-14":{name:"sdg-14",hex:"#0A97D9",scss:"$sdg-14",css:"color__sdg-14",type:"sdg",shortDescription:"Life below water, blue"},"sdg-15":{name:"sdg-15",hex:"#56C02B",scss:"$sdg-15",css:"color__sdg-15",type:"sdg",shortDescription:"Life on land, lime green"},"sdg-16":{name:"sdg-16",hex:"#00689D",scss:"$sdg-16",css:"color__sdg-16",type:"sdg",shortDescription:"Peace, justice and stron institutions, royal blue"},"sdg-17":{name:"sdg-17",hex:"#19486A",scss:"$sdg-17",css:"color__sdg-17",type:"sdg",shortDescription:"Partnership for the goals, navy blue"},"support-01":{name:"support-01",hex:"#c5192d",scss:"$support-01",css:"color__support-01",type:"support",shortDescription:"Error (same as color__red)",description:"Use the error color to indicate an error or to focus the attention on something which is crucial to see. Paired with a cross icon, red delivers the message that something went wrong."},"support-light-01":{name:"support-light-01",hex:"#f1c6cb",scss:"$support-light-01",css:"color__support-light-01",type:"support",shortDescription:"Lighter version of color-red",description:""},"support-02":{name:"support-02",hex:"#689e18",scss:"$support-02",css:"color__support-02",type:"support",shortDescription:"Success",description:"Use green to indicate success state. Paired with a checkmark icon the user knows that the operation was successfully completed."},"support-light-02":{name:"support-light-02",hex:"#ccdbcd",scss:"$support-light-02",css:"color__support-light-02",type:"support",shortDescription:"Lighter version of green",description:""},"support-03":{name:"support-03",hex:"#f7b825",scss:"$support-03",css:"color__support-03",type:"support",shortDescription:"Warning (same as color__yellow)",description:"Use yellow to indicate a transient warning which is less important than an error message. Yellow typically consists of items which require the user’s immediate attention, or indicate a waiting period. Although this overlaps with the use of red, yellow is more transient in nature."},"support-light-03":{name:"support-light-03",hex:"#fdedc9",scss:"$support-light-03",css:"color__support-light-03",type:"support",shortDescription:"Lighter version of yellow",description:""},"support-04":{name:"support-04",hex:"#85b7da",scss:"$support-04",css:"color__support-04",type:"support",shortDescription:"Info",description:""},"support-light-04":{name:"support-light-04",hex:"#c2dbec",scss:"$support-light-04",css:"color__support-light-04",type:"support",shortDescription:"",description:""}},hr=typeof window<"u"?W.useLayoutEffect:W.useEffect,Xa=typeof window>"u";function Za(e,n){const r=typeof n=="boolean"?n:n?.defaultValue??!1,o=typeof n=="boolean"?void 0:n?.initializeWithValue??void 0,i=p=>Xa?r:window.matchMedia(p).matches,[c,l]=W.useState(()=>o?i(e):r);function u(){l(i(e))}return hr(()=>{const p=window.matchMedia(e);return u(),p.addListener?p.addListener(u):p.addEventListener("change",u),()=>{p.removeListener?p.removeListener(u):p.removeEventListener("change",u)}},[e]),c}exports.Accordion=gt;exports.AccordionItem=_t;exports.AddonAfter=Cn;exports.AddonBefore=En;exports.AuthLayout=Hs;exports.Avatar=yt;exports.BackgroundContent=Ys;exports.BannerNavigation=jn;exports.BannerNavigationItem=_e;exports.BannerNavigationWithContent=Vs;exports.BlockNotification=Me;exports.Breadcrumb=Gs;exports.BreadcrumbHome=Xs;exports.BreadcrumbItem=Qs;exports.Button=Ne;exports.Callout=Me;exports.Card=In;exports.CardExternal=Mn;exports.Checkbox=qn;exports.ContentSwitcher=fo;exports.ContextMenu=go;exports.ContextMenuGroup=vo;exports.ContextMenuItem=_o;exports.Credits=Fn;exports.DatePicker=Dn;exports.DatePickerInput=jt;exports.DateRangePicker=Ln;exports.DateRangePickerInput=Nt;exports.Empty=On;exports.Footer=Bn;exports.FooterExternal=xo;exports.FooterMetaLink=yo;exports.Form=Wn;exports.FormGroup=wo;exports.FormHint=$o;exports.FormItem=Nn;exports.FormLabel=jo;exports.Helper=Sn;exports.Hero=An;exports.HeroExternal=lo;exports.InfoBar=zn;exports.InlineErrorMessage=xt;exports.InlineLoading=Hn;exports.Input=xe;exports.InputGroup=nr;exports.Item=ir;exports.Label=Tn;exports.Link=he;exports.LinksColumn=bo;exports.List=Xe;exports.ListItem=Yn;exports.Loading=Ct;exports.MainNavigation=Un;exports.MainNavigationContext=Tt;exports.MainNavigationItem=Eo;exports.Modal=Rt;exports.ModalFooter=Xn;exports.ModalWrapper=Zn;exports.Module=sa;exports.ModuleBody=oa;exports.ModuleFooter=ia;exports.ModuleHeader=aa;exports.NotificationActionButton=Mo;exports.NotificationButton=Gn;exports.NotificationTextDetails=kt;exports.NumberInput=Jn;exports.Pagination=Pt;exports.RadioButton=tr;exports.ReadMore=rr;exports.Search=bt;exports.SecondaryNavigation=sr;exports.SecondaryNavigationTitle=or;exports.Select=Ue;exports.SelectItem=Ve;exports.SelectItemGroup=pa;exports.Sidebar=ma;exports.SidebarBackButton=xa;exports.SidebarContentBody=va;exports.SidebarContentHeader=ga;exports.SidebarHeader=ha;exports.SidebarScroll=_a;exports.Slider=ar;exports.StepNavigation=da;exports.StepNavigationItem=fa;exports.Story=Vn;exports.SubNavigation=Co;exports.SubNavigationContent=Oo;exports.SubNavigationFilter=Po;exports.SubNavigationGroup=Io;exports.SubNavigationHeader=So;exports.SubNavigationItem=To;exports.SubNavigationLink=Ro;exports.SubNavigationList=Ao;exports.SubNavigationTitle=ko;exports.Tab=wa;exports.TabContent=ur;exports.Table=Qn;exports.TablePagination=cr;exports.TableSorting=Fo;exports.Tabs=dr;exports.Tag=$t;exports.Text=Ce;exports.TextArea=fr;exports.TextInput=Ot;exports.ToastNotification=Lo;exports.Toggle=pr;exports.Tooltip=Et;exports.Unit=Ua;exports.User=ja;exports.Value=Va;exports.WFPCoreContext=Ke;exports.WFPCoreProvider=Pr;exports.Wrapper=$e;exports.buttonKinds=oo;exports.colors=Qa;exports.defaultWFPContext=Ge;exports.mdxComponents=ra;exports.notificationtypes=ao;exports.pageWidths=Us;exports.tooltipStyle=po;exports.tooltipStyleDark=mo;exports.uniqueId=er;exports.useInput=ye;exports.useIsomorphicLayoutEffect=hr;exports.useMainNavigation=St;exports.useMediaQuery=Za;exports.useTab=lr;exports.useTheme=Ka;exports.withWFPCoreSettings=Ga;
|
|
80
|
+
//# sourceMappingURL=index.cjs.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progressiveui/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "WFP UI Kit",
|
|
5
5
|
"license": "Apache-2",
|
|
6
|
-
"main": "
|
|
7
|
-
"module": "
|
|
8
|
-
"
|
|
9
|
-
"types": "es/dist/index.d.ts",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"module": "dist/index.es.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
10
9
|
"scripts": {
|
|
11
|
-
"build": "yarn rollup -c && yarn build:demos && yarn generate:types",
|
|
10
|
+
"build": "yarn rollup -c ./rollup.config.js && yarn build:demos && yarn generate:types",
|
|
12
11
|
"clean": "rimraf es lib umd storybook-static build react-docgen.json",
|
|
13
12
|
"build:rollup": "rollup -c --bundleConfigAsCjs",
|
|
14
13
|
"build:demos": "rollup -c rollupDemos.config.js --bundleConfigAsCjs",
|
|
@@ -17,7 +16,8 @@
|
|
|
17
16
|
"dev": "npm run storybook",
|
|
18
17
|
"storybook": "STORYBOOK_ASSETS=https://cdn.wfp.org/guides/ui/assets/v0.0.1/ STORYBOOK_NPM_VERSION=10.10.3 storybook dev -p 9000",
|
|
19
18
|
"test": "jest",
|
|
20
|
-
"jest-w": "jest --watch"
|
|
19
|
+
"jest-w": "jest --watch",
|
|
20
|
+
"build:vite": "vite build"
|
|
21
21
|
},
|
|
22
22
|
"sass": {
|
|
23
23
|
"includePaths": [
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
"url": "https://github.com/wfp/ui.git"
|
|
157
157
|
},
|
|
158
158
|
"bundleSizeThreshold": 80000,
|
|
159
|
-
"gitHead": "
|
|
159
|
+
"gitHead": "c443e7a9ef3b6e536cf33749def9a7be33c18c70"
|
|
160
160
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import classNames from
|
|
3
|
-
import useSettings from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import useSettings from "../../hooks/useSettings";
|
|
4
4
|
|
|
5
5
|
export interface SkeletonTextProps {
|
|
6
6
|
/**
|
|
@@ -25,7 +25,7 @@ export interface SkeletonTextProps {
|
|
|
25
25
|
const SkeletonText: React.FC<SkeletonTextProps> = ({
|
|
26
26
|
paragraph = false,
|
|
27
27
|
lineCount = 3,
|
|
28
|
-
width =
|
|
28
|
+
width = "100%",
|
|
29
29
|
heading = false,
|
|
30
30
|
className,
|
|
31
31
|
...other
|
|
@@ -37,45 +37,45 @@ const SkeletonText: React.FC<SkeletonTextProps> = ({
|
|
|
37
37
|
[`${prefix}--skeleton__text`]: true,
|
|
38
38
|
[`${prefix}--skeleton__heading`]: heading,
|
|
39
39
|
},
|
|
40
|
-
className
|
|
40
|
+
className,
|
|
41
41
|
);
|
|
42
42
|
|
|
43
|
-
const widthNum = typeof width ===
|
|
43
|
+
const widthNum = typeof width === "string" ? parseInt(width, 10) : width;
|
|
44
44
|
|
|
45
|
-
const widthPx = typeof width ===
|
|
46
|
-
const widthPercent = typeof width ===
|
|
45
|
+
const widthPx = typeof width === "string" && width.includes("px");
|
|
46
|
+
const widthPercent = typeof width === "string" && width.includes("%");
|
|
47
47
|
|
|
48
48
|
function getRandomInt(min, max) {
|
|
49
49
|
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
if (widthPercent && paragraph) {
|
|
53
|
-
const lines:
|
|
53
|
+
const lines: React.ReactElement[] = [];
|
|
54
54
|
for (let i = 0; i < lineCount; i++) {
|
|
55
|
-
const randomWidth = getRandomInt(0, 75) +
|
|
55
|
+
const randomWidth = getRandomInt(0, 75) + "px";
|
|
56
56
|
lines.push(
|
|
57
57
|
<p
|
|
58
58
|
className={skeletonTextClasses}
|
|
59
59
|
style={{ width: `calc(${width} - ${randomWidth})` }}
|
|
60
60
|
key={i}
|
|
61
61
|
{...other}
|
|
62
|
-
|
|
62
|
+
/>,
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
return <div>{lines}</div>;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
if (widthPx && paragraph) {
|
|
69
|
-
const lines:
|
|
69
|
+
const lines: React.ReactElement[] = [];
|
|
70
70
|
for (let j = 0; j < lineCount; j++) {
|
|
71
|
-
const randomWidth = getRandomInt(widthNum - 75, widthNum) +
|
|
71
|
+
const randomWidth = getRandomInt(widthNum - 75, widthNum) + "px";
|
|
72
72
|
lines.push(
|
|
73
73
|
<p
|
|
74
74
|
className={skeletonTextClasses}
|
|
75
75
|
style={{ width: randomWidth }}
|
|
76
76
|
key={j}
|
|
77
77
|
{...other}
|
|
78
|
-
|
|
78
|
+
/>,
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
return <div>{lines}</div>;
|
|
@@ -85,6 +85,6 @@ const SkeletonText: React.FC<SkeletonTextProps> = ({
|
|
|
85
85
|
);
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
SkeletonText.displayName =
|
|
88
|
+
SkeletonText.displayName = "SkeletonText";
|
|
89
89
|
|
|
90
90
|
export default SkeletonText;
|
package/src/index.ts
CHANGED
|
@@ -176,7 +176,7 @@ export {
|
|
|
176
176
|
defaultWFPContext,
|
|
177
177
|
} from "./components/WFPCoreSettings";
|
|
178
178
|
|
|
179
|
-
export { default as SkeletonText } from "./components/SkeletonText";
|
|
179
|
+
//export { default as SkeletonText } from "./components/SkeletonText";
|
|
180
180
|
|
|
181
181
|
export { default as colors } from "./globals/data/colors";
|
|
182
182
|
|