@telia-ace/knowledge-widget-ui 1.1.1-rc.0 → 1.1.1-rc.2
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/index.js +363 -396
- package/index.mjs +3202 -7078
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,47 +1,19 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!s}if(this.isSpeedy){var i=Oi(o);try{i.insertRule(r,i.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),de="-ms-",Ht="-moz-",K="-webkit-",tr="comm",nr="rule",rr="decl",Ri="@import",ns="@keyframes",Pi="@layer",_i=Math.abs,Kt=String.fromCharCode,Ai=Object.assign;function Li(e,t){return fe(e,0)^45?(((t<<2^fe(e,0))<<2^fe(e,1))<<2^fe(e,2))<<2^fe(e,3):0}function rs(e){return e.trim()}function Di(e,t){return(e=t.exec(e))?e[0]:e}function G(e,t,n){return e.replace(t,n)}function In(e,t){return e.indexOf(t)}function fe(e,t){return e.charCodeAt(t)|0}function vt(e,t,n){return e.slice(t,n)}function je(e){return e.length}function or(e){return e.length}function Ot(e,t){return t.push(e),e}function Mi(e,t){return e.map(t).join("")}var Gt=1,Xe=1,os=0,ge=0,ce=0,st="";function Xt(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Gt,column:Xe,length:i,return:""}}function ft(e,t){return Ai(Xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ii(){return ce}function Vi(){return ce=ge>0?fe(st,--ge):0,Xe--,ce===10&&(Xe=1,Gt--),ce}function be(){return ce=ge<os?fe(st,ge++):0,Xe++,ce===10&&(Xe=1,Gt++),ce}function Te(){return fe(st,ge)}function Dt(){return ge}function wt(e,t){return vt(st,e,t)}function yt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ss(e){return Gt=Xe=1,os=je(st=e),ge=0,[]}function is(e){return st="",e}function Mt(e){return rs(wt(ge-1,Vn(e===91?e+2:e===40?e+1:e)))}function zi(e){for(;(ce=Te())&&ce<33;)be();return yt(e)>2||yt(ce)>3?"":" "}function Hi(e,t){for(;--t&&be()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return wt(e,Dt()+(t<6&&Te()==32&&be()==32))}function Vn(e){for(;be();)switch(ce){case e:return ge;case 34:case 39:e!==34&&e!==39&&Vn(ce);break;case 40:e===41&&Vn(e);break;case 92:be();break}return ge}function Wi(e,t){for(;be()&&e+ce!==47+10;)if(e+ce===42+42&&Te()===47)break;return"/*"+wt(t,ge-1)+"*"+Kt(e===47?e:be())}function Bi(e){for(;!yt(Te());)be();return wt(e,ge)}function Fi(e){return is(It("",null,null,null,[""],e=ss(e),0,[0],e))}function It(e,t,n,r,o,s,i,a,c){for(var u=0,l=0,f=i,h=0,g=0,v=0,m=1,y=1,$=1,O=0,R="",j=o,b=s,M=r,T=R;y;)switch(v=O,O=be()){case 40:if(v!=108&&fe(T,f-1)==58){In(T+=G(Mt(O),"&","&\f"),"&\f")!=-1&&($=-1);break}case 34:case 39:case 91:T+=Mt(O);break;case 9:case 10:case 13:case 32:T+=zi(v);break;case 92:T+=Hi(Dt()-1,7);continue;case 47:switch(Te()){case 42:case 47:Ot(Ui(Wi(be(),Dt()),t,n),c);break;default:T+="/"}break;case 123*m:a[u++]=je(T)*$;case 125*m:case 59:case 0:switch(O){case 0:case 125:y=0;case 59+l:$==-1&&(T=G(T,/\f/g,"")),g>0&&je(T)-f&&Ot(g>32?Gr(T+";",r,n,f-1):Gr(G(T," ","")+";",r,n,f-2),c);break;case 59:T+=";";default:if(Ot(M=Kr(T,t,n,u,l,o,a,R,j=[],b=[],f),s),O===123)if(l===0)It(T,t,M,M,j,s,f,a,b);else switch(h===99&&fe(T,3)===110?100:h){case 100:case 108:case 109:case 115:It(e,M,M,r&&Ot(Kr(e,M,M,0,0,o,a,R,o,j=[],f),b),o,b,f,a,r?j:b);break;default:It(T,M,M,M,[""],b,0,a,b)}}u=l=g=0,m=$=1,R=T="",f=i;break;case 58:f=1+je(T),g=v;default:if(m<1){if(O==123)--m;else if(O==125&&m++==0&&Vi()==125)continue}switch(T+=Kt(O),O*m){case 38:$=l>0?1:(T+="\f",-1);break;case 44:a[u++]=(je(T)-1)*$,$=1;break;case 64:Te()===45&&(T+=Mt(be())),h=Te(),l=f=je(R=T+=Bi(Dt())),O++;break;case 45:v===45&&je(T)==2&&(m=0)}}return s}function Kr(e,t,n,r,o,s,i,a,c,u,l){for(var f=o-1,h=o===0?s:[""],g=or(h),v=0,m=0,y=0;v<r;++v)for(var $=0,O=vt(e,f+1,f=_i(m=i[v])),R=e;$<g;++$)(R=rs(m>0?h[$]+" "+O:G(O,/&\f/g,h[$])))&&(c[y++]=R);return Xt(e,t,n,o===0?nr:a,c,u,l)}function Ui(e,t,n){return Xt(e,t,n,tr,Kt(Ii()),vt(e,2,-2),0)}function Gr(e,t,n,r){return Xt(e,t,n,rr,vt(e,0,r),vt(e,r+1,-1),r)}function Ke(e,t){for(var n="",r=or(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Yi(e,t,n,r){switch(e.type){case Pi:if(e.children.length)break;case Ri:case rr:return e.return=e.return||e.value;case tr:return"";case ns:return e.return=e.value+"{"+Ke(e.children,r)+"}";case nr:e.value=e.props.join(",")}return je(n=Ke(e.children,r))?e.return=e.value+"{"+n+"}":""}function qi(e){var t=or(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function Zi(e){return function(t){t.root||(t=t.return)&&e(t)}}function as(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ki=function(t,n,r){for(var o=0,s=0;o=s,s=Te(),o===38&&s===12&&(n[r]=1),!yt(s);)be();return wt(t,ge)},Gi=function(t,n){var r=-1,o=44;do switch(yt(o)){case 0:o===38&&Te()===12&&(n[r]=1),t[r]+=Ki(ge-1,n,r);break;case 2:t[r]+=Mt(o);break;case 4:if(o===44){t[++r]=Te()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Kt(o)}while(o=be());return t},Xi=function(t,n){return is(Gi(ss(t),n))},Xr=new WeakMap,Ji=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Xr.get(r))&&!o){Xr.set(t,!0);for(var s=[],i=Xi(n,s),a=r.props,c=0,u=0;c<i.length;c++)for(var l=0;l<a.length;l++,u++)t.props[u]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},Qi=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},ea="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ta=function(t){return t.type==="comm"&&t.children.indexOf(ea)>-1},na=function(t){return function(n,r,o){if(!(n.type!=="rule"||t.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var i=!!n.parent,a=i?n.parent.children:o,c=a.length-1;c>=0;c--){var u=a[c];if(u.line<n.line)break;if(u.column<n.column){if(ta(u))return;break}}s.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},cs=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},ra=function(t,n){for(var r=t-1;r>=0;r--)if(!cs(n[r]))return!0;return!1},Jr=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},oa=function(t,n,r){cs(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Jr(t)):ra(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Jr(t)))};function ls(e,t){switch(Li(e,t)){case 5103:return K+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+Ht+e+de+e+e;case 6828:case 4268:return K+e+de+e+e;case 6165:return K+e+de+"flex-"+e+e;case 5187:return K+e+G(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+de+"flex-$1$2")+e;case 5443:return K+e+de+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return K+e+de+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+de+G(e,"shrink","negative")+e;case 5292:return K+e+de+G(e,"basis","preferred-size")+e;case 6060:return K+"box-"+G(e,"-grow","")+K+e+de+G(e,"grow","positive")+e;case 4554:return K+G(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+de+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,K+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(je(e)-1-t>6)switch(fe(e,t+1)){case 109:if(fe(e,t+4)!==45)break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Ht+(fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~In(e,"stretch")?ls(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fe(e,t+1)!==115)break;case 6444:switch(fe(e,je(e)-3-(~In(e,"!important")&&10))){case 107:return G(e,":",":"+K)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(fe(e,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+de+"$2box$3")+e}break;case 5936:switch(fe(e,t+11)){case 114:return K+e+de+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+de+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+de+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+de+e+e}return e}var sa=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case rr:t.return=ls(t.value,t.length);break;case ns:return Ke([ft(t,{value:G(t.value,"@","@"+K)})],o);case nr:if(t.length)return Mi(t.props,function(s){switch(Di(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ke([ft(t,{props:[G(s,/:(read-\w+)/,":"+Ht+"$1")]})],o);case"::placeholder":return Ke([ft(t,{props:[G(s,/:(plac\w+)/,":"+K+"input-$1")]}),ft(t,{props:[G(s,/:(plac\w+)/,":"+Ht+"$1")]}),ft(t,{props:[G(s,/:(plac\w+)/,de+"input-$1")]})],o)}return""})}},ia=[sa],aa=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Qr;function la(){if(Qr)return J;Qr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function R(b){if(typeof b=="object"&&b!==null){var M=b.$$typeof;switch(M){case t:switch(b=b.type,b){case c:case u:case r:case s:case o:case f:return b;default:switch(b=b&&b.$$typeof,b){case a:case l:case v:case g:case i:return b;default:return M}}case n:return M}}}function j(b){return R(b)===u}return J.AsyncMode=c,J.ConcurrentMode=u,J.ContextConsumer=a,J.ContextProvider=i,J.Element=t,J.ForwardRef=l,J.Fragment=r,J.Lazy=v,J.Memo=g,J.Portal=n,J.Profiler=s,J.StrictMode=o,J.Suspense=f,J.isAsyncMode=function(b){return j(b)||R(b)===c},J.isConcurrentMode=j,J.isContextConsumer=function(b){return R(b)===a},J.isContextProvider=function(b){return R(b)===i},J.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},J.isForwardRef=function(b){return R(b)===l},J.isFragment=function(b){return R(b)===r},J.isLazy=function(b){return R(b)===v},J.isMemo=function(b){return R(b)===g},J.isPortal=function(b){return R(b)===n},J.isProfiler=function(b){return R(b)===s},J.isStrictMode=function(b){return R(b)===o},J.isSuspense=function(b){return R(b)===f},J.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===u||b===s||b===o||b===f||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===g||b.$$typeof===i||b.$$typeof===a||b.$$typeof===l||b.$$typeof===y||b.$$typeof===$||b.$$typeof===O||b.$$typeof===m)},J.typeOf=R,J}var Q={};/** @license React v16.13.1
|
|
11
|
-
* react-is.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its 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 eo;function ua(){return eo||(eo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function R(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===s||P===o||P===f||P===h||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===g||P.$$typeof===i||P.$$typeof===a||P.$$typeof===l||P.$$typeof===y||P.$$typeof===$||P.$$typeof===O||P.$$typeof===m)}function j(P){if(typeof P=="object"&&P!==null){var Oe=P.$$typeof;switch(Oe){case t:var Nt=P.type;switch(Nt){case c:case u:case r:case s:case o:case f:return Nt;default:var Zr=Nt&&Nt.$$typeof;switch(Zr){case a:case l:case v:case g:case i:return Zr;default:return Oe}}case n:return Oe}}}var b=c,M=u,T=a,A=i,B=t,W=l,Y=r,Z=v,oe=g,te=n,ne=s,re=o,se=f,X=!1;function I(P){return X||(X=!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.")),w(P)||j(P)===c}function w(P){return j(P)===u}function C(P){return j(P)===a}function x(P){return j(P)===i}function S(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function k(P){return j(P)===l}function D(P){return j(P)===r}function _(P){return j(P)===v}function L(P){return j(P)===g}function V(P){return j(P)===n}function F(P){return j(P)===s}function U(P){return j(P)===o}function pe(P){return j(P)===f}Q.AsyncMode=b,Q.ConcurrentMode=M,Q.ContextConsumer=T,Q.ContextProvider=A,Q.Element=B,Q.ForwardRef=W,Q.Fragment=Y,Q.Lazy=Z,Q.Memo=oe,Q.Portal=te,Q.Profiler=ne,Q.StrictMode=re,Q.Suspense=se,Q.isAsyncMode=I,Q.isConcurrentMode=w,Q.isContextConsumer=C,Q.isContextProvider=x,Q.isElement=S,Q.isForwardRef=k,Q.isFragment=D,Q.isLazy=_,Q.isMemo=L,Q.isPortal=V,Q.isProfiler=F,Q.isStrictMode=U,Q.isSuspense=pe,Q.isValidElementType=R,Q.typeOf=j}()),Q}process.env.NODE_ENV==="production"?zn.exports=la():zn.exports=ua();var Jt=zn.exports,fs=Jt,fa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},da={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ds={};ds[fs.ForwardRef]=fa;ds[fs.Memo]=da;var ha=!0;function ir(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Qt=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ha===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},en=function(t,n,r){Qt(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function pa(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ma={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},to=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
18
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
19
|
-
You can read more about this here:
|
|
20
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,ga="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",va=/[A-Z]|^ms/g,hs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ar=function(t){return t.charCodeAt(1)===45},no=function(t){return t!=null&&typeof t!="boolean"},gn=as(function(e){return ar(e)?e:e.replace(va,"-$&").toLowerCase()}),Wt=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hs,function(r,o,s){return ke={name:o,styles:s,next:ke},o})}return ma[t]!==1&&!ar(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var ya=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,xa=["normal","none","initial","inherit","unset"],ba=Wt,wa=/^-ms-/,Ca=/-(.)/g,ro={};Wt=function(t,n){if(t==="content"&&(typeof n!="string"||xa.indexOf(n)===-1&&!ya.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=ba(t,n);return r!==""&&!ar(t)&&t.indexOf("-")!==-1&&ro[t]===void 0&&(ro[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(wa,"ms-").replace(Ca,function(o,s){return s.toUpperCase()})+"?")),r}}var ps="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xt(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(ps);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ke={name:n.name,styles:n.styles,next:ke},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ke={name:r.name,styles:r.styles,next:ke},r=r.next;var o=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(o+=n.map),o}return Ea(e,t,n)}case"function":{if(e!==void 0){var s=ke,i=n(e);return ke=s,xt(e,t,i)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],c=n.replace(hs,function(l,f,h){var g="animation"+a.length;return a.push("const "+g+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+c+"`"]).join(`
|
|
21
|
-
`)+`
|
|
22
|
-
|
|
23
|
-
You should wrap it with \`css\` like this:
|
|
24
|
-
|
|
25
|
-
`+("css`"+c+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function Ea(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xt(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=s+"{"+t[i]+"}":no(i)&&(r+=gn(s)+":"+Wt(s,i)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(ps);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var a=0;a<i.length;a++)no(i[a])&&(r+=gn(s)+":"+Wt(s,i[a])+";");else{var c=xt(e,t,i);switch(s){case"animation":case"animationName":{r+=gn(s)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(ga),r+=s+"{"+c+"}"}}}}return r}var oo=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ms;process.env.NODE_ENV!=="production"&&(ms=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ke,Je=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,s="";ke=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=xt(r,n,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error(to),s+=i[0]);for(var a=1;a<t.length;a++)s+=xt(r,n,t[a]),o&&(process.env.NODE_ENV!=="production"&&i[a]===void 0&&console.error(to),s+=i[a]);var c;process.env.NODE_ENV!=="production"&&(s=s.replace(ms,function(h){return c=h,""})),oo.lastIndex=0;for(var u="",l;(l=oo.exec(s))!==null;)u+="-"+l[1];var f=pa(s)+u;return process.env.NODE_ENV!=="production"?{name:f,styles:s,map:c,next:ke,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:f,styles:s,next:ke}},Sa=function(t){return t()},gs=ie["useInsertionEffect"]?ie["useInsertionEffect"]:!1,cr=gs||Sa,so=gs||ie.useLayoutEffect,$a={}.hasOwnProperty,lr=ie.createContext(typeof HTMLElement<"u"?aa({key:"css"}):null);process.env.NODE_ENV!=="production"&&(lr.displayName="EmotionCacheContext");lr.Provider;var tn=function(t){return p.forwardRef(function(n,r){var o=p.useContext(lr);return t(n,o,r)})},Ct=ie.createContext({});process.env.NODE_ENV!=="production"&&(Ct.displayName="EmotionThemeContext");var io="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ao="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ka=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Qt(n,r,o),cr(function(){return en(n,r,o)}),null},Na=tn(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[io],s=[r],i="";typeof e.className=="string"?i=ir(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var a=Je(s,void 0,ie.useContext(Ct));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var c=e[ao];c&&(a=Je([a,"label:"+c+";"]))}i+=t.key+"-"+a.name;var u={};for(var l in e)$a.call(e,l)&&l!=="css"&&l!==io&&(process.env.NODE_ENV==="production"||l!==ao)&&(u[l]=e[l]);return u.ref=n,u.className=i,ie.createElement(ie.Fragment,null,ie.createElement(ka,{cache:t,serialized:a,isStringTag:typeof o=="string"}),ie.createElement(o,u))});process.env.NODE_ENV!=="production"&&(Na.displayName="EmotionCssPropInternal");var Oa={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},co=!1,ja=tn(function(e,t){process.env.NODE_ENV!=="production"&&!co&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),co=!0);var n=e.styles,r=Je([n],void 0,ie.useContext(Ct)),o=ie.useRef();return so(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",s),i.hydrate([c])),o.current=[i,a],function(){i.flush()}},[t]),so(function(){var s=o.current,i=s[0],a=s[1];if(a){s[1]=!1;return}if(r.next!==void 0&&en(t,r.next,!0),i.tags.length){var c=i.tags[i.tags.length-1].nextElementSibling;i.before=c,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(ja.displayName="EmotionGlobal");function H(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Je(t)}var nn=function(){var t=H.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Ta=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var s=t[r];if(s!=null){var i=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))i=e(s);else{process.env.NODE_ENV!=="production"&&s.styles!==void 0&&s.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(var a in s)s[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=s}i&&(o&&(o+=" "),o+=i)}}return o};function Ra(e,t,n){var r=[],o=ir(e,r,n);return r.length<2?n:o+t(r)}var Pa=function(t){var n=t.cache,r=t.serializedArr;return cr(function(){for(var o=0;o<r.length;o++)en(n,r[o],!1)}),null},_a=tn(function(e,t){var n=!1,r=[],o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];var h=Je(l,t.registered);return r.push(h),Qt(t,h,!1),t.key+"-"+h.name},s=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return Ra(t.registered,o,Ta(l))},i={css:o,cx:s,theme:ie.useContext(Ct)},a=e.children(i);return n=!0,ie.createElement(ie.Fragment,null,ie.createElement(Pa,{cache:t,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(_a.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var lo=!0,Aa=typeof jest<"u"||typeof vi<"u";if(lo&&!Aa){var uo=typeof globalThis<"u"?globalThis:lo?window:global,fo="__EMOTION_REACT_"+Oa.version.split(".")[0]+"__";uo[fo]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),uo[fo]=!0}}const La=e=>e==="entering"||e==="entered",Da=e=>e==="exiting"||e==="exited",Ve={fade:{in:"opacity: 1;",out:"opacity: 0;"},"slide-left":{in:"transform: translateX(0);",out:"transform: translateX(-100%);"},"slide-right":{in:"transform: translateX(0);",out:"transform: translateX(100%);"},"slide-up":{in:"transform: translateY(0);",out:"transform: translateY(100%);"},"slide-down":{in:"transform: translateY(0);",out:"transform: translateY(-100%);"},scale:{in:"transform: scale(1);",out:"transform: scale(0);"}},Ma=["slide-up","slide-down","slide-left","slide-right","scale"],Bt={compose:(e="exited",t)=>{const{enter:n,exit:r}=t,o=n.transitionKeys.split(" "),s=Ma.indexOf(o[0])>-1?"transform":"opacity";if(La(e))return o&&o.length>0?H`
|
|
26
|
-
${o&&o.length>0&&o.map(a=>Ve[a]?Ve[a].in:"")}
|
|
27
|
-
transition: ${s} ${n.duration}ms ${n.easing};
|
|
28
|
-
`:"";const i=o&&o.length>0&&H`
|
|
29
|
-
${o.map(a=>Ve[a]?Ve[a].out:"")}
|
|
30
|
-
`;if(Da(e)){const a=r.transitionKeys.split(" ");return a&&a.length>0&&e==="exiting"?H`
|
|
1
|
+
"use strict";var Qn=Object.defineProperty;var Gn=(t,e,n)=>e in t?Qn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>(Gn(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),C=require("@emotion/react"),f=require("react"),x=require("@emotion/styled"),gt=require("react-transition-group"),es=require("react-dom"),Qe=require("react-router-dom"),ts=t=>t==="entering"||t==="entered",ns=t=>t==="exiting"||t==="exited",le={fade:{in:"opacity: 1;",out:"opacity: 0;"},"slide-left":{in:"transform: translateX(0);",out:"transform: translateX(-100%);"},"slide-right":{in:"transform: translateX(0);",out:"transform: translateX(100%);"},"slide-up":{in:"transform: translateY(0);",out:"transform: translateY(100%);"},"slide-down":{in:"transform: translateY(0);",out:"transform: translateY(-100%);"},scale:{in:"transform: scale(1);",out:"transform: scale(0);"}},ss=["slide-up","slide-down","slide-left","slide-right","scale"],Ae={compose:(t="exited",e)=>{const{enter:n,exit:s}=e,r=n.transitionKeys.split(" "),o=ss.indexOf(r[0])>-1?"transform":"opacity";if(ts(t))return r&&r.length>0?C.css`
|
|
2
|
+
${r&&r.length>0&&r.map(u=>le[u]?le[u].in:"")}
|
|
3
|
+
transition: ${o} ${n.duration}ms ${n.easing};
|
|
4
|
+
`:"";const i=r&&r.length>0&&C.css`
|
|
5
|
+
${r.map(u=>le[u]?le[u].out:"")}
|
|
6
|
+
`;if(ns(t)){const u=s.transitionKeys.split(" ");return u&&u.length>0&&t==="exiting"?C.css`
|
|
31
7
|
${i};
|
|
32
|
-
${
|
|
33
|
-
transition: ${
|
|
34
|
-
`:i}},composeViewTransition:(e,
|
|
35
|
-
${
|
|
36
|
-
`},
|
|
8
|
+
${u.map(c=>le[c]?le[c].out:"")}
|
|
9
|
+
transition: ${o} ${s.duration}ms ${s.easing};
|
|
10
|
+
`:i}},composeViewTransition:(t,e,n)=>{if(e==="slide")return Ae.compose(t,{enter:{transitionKeys:n==="forth"?"slide-right":"slide-left",duration:500},exit:{transitionKeys:n==="forth"?"slide-left":"slide-right",duration:500}});if(e==="fade")return Ae.compose(t,{enter:{transitionKeys:"fade",duration:500},exit:{transitionKeys:"fade",duration:500}})},get:t=>le[t]};var ct=(t=>(t.Opera="opera",t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Edge="edge",t.EdgeChromium="edge-chromium",t.Blink="blink",t.IE="internet-explorer",t))(ct||{});const lt=()=>{const{opr:t,opera:e,InstallTrigger:n,HTMLElement:s,safari:r,documentMode:o,StyleMedia:i,chrome:u,CSS:c}=window,d=!!t&&!!t.addons||!!e||navigator.userAgent.indexOf(" OPR/")>=0;if(d)return"opera";if(n)return"firefox";const l=(g=>g.toString()==="[object SafariRemoteNotification]")(!r||typeof r<"u"&&r.pushNotification);if(/constructor/i.test(s)||l)return"safari";const h=!!o;if(h)return"internet-explorer";if(!h&&i)return"edge";const m=!!u&&(!!u.webstore||!!u.runtime);if(m)return"chrome";if(m&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((m||d)&&c)return"blink"};function rs(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function ut(t="",e=""){const n=t.split(" ").concat(e.split(" "));return rs(n).join(" ").trim()}function os(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(s=>n=ut(n,s)),n}}}function k(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=ut(e,n):Array.isArray(n)?e=ut(e,os(...n)):typeof n<"u"&&n!==null&&process.env.NODE_ENV!=="production"&&O.warn("appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",...t)}),e}function ze(t={}){const{phrase:e="",category:n,guideCategory:s,contactCategory:r,take:o,connectionKey:i,accordion:u,id:c,uriName:d,sorting:l,tag:h,tagId:m,tagTitle:g,...y}=t,p={};return Object.keys(y).forEach(v=>{typeof t[v]=="string"&&(p[v]=t[v])}),typeof e=="string"&&e.length&&(p.phrase=e),e===null&&(p.phrase=e),typeof s=="string"&&s!=="0"&&(p.guideCategory=s),typeof s=="number"&&s!==0&&(p.guideCategory=s),typeof s=="object"&&s!==null&&(typeof s.id=="string"&&s.id!=="0"&&(p.guideCategory=s.id),typeof s.id=="number"&&s.id!==0&&(p.guideCategory=s.id)),typeof r=="string"&&r!=="0"&&(p.contactCategory=r),typeof r=="number"&&r!==0&&(p.contactCategory=r),typeof r=="object"&&r!==null&&(typeof r.id=="string"&&r.id!=="0"&&(p.contactCategory=r.id),typeof r.id=="number"&&r.id!==0&&(p.contactCategory=r.id)),typeof n=="string"&&n!=="0"&&(p.category=n),typeof n=="number"&&n!==0&&(p.category=n),typeof n=="object"&&n!==null&&(typeof n.id=="string"&&n.id!=="0"&&(p.category=n.id),typeof n.id=="number"&&n.id!==0&&(p.category=n.id)),c&&(p.id=c),d&&(+p.category||+p.guideCategory||+p.guide||+p.contactCategory||+p.contactMethod)&&(p.uriName=d),i&&(p.connectionKey=i),o&&(p.take=o),l&&(p.sorting=l),typeof u=="string"&&u.length>0&&(p.accordion=u),typeof h=="string"&&h!=="0"&&(p.tag=h),typeof h=="number"&&h!==0&&(p.tag=h),Array.isArray(h)&&h.length&&(p.tag=h),(typeof m=="string"||typeof m=="number")&&(p.tagId=m),typeof g=="string"&&(p.tagTitle=g),typeof p.tag=="string"&&(p.tag=p.tag.split(",")),p}const Ft=t=>{if(!t)return"";const e=[{from:/[äæǽ]+/gi,to:"ae"},{from:/[öœ]+/gi,to:"oe"},{from:/[ü]+/gi,to:"ue"},{from:/[Ä]+/gi,to:"Ae"},{from:/[Ü]+/gi,to:"Ue"},{from:/[Ö]+/gi,to:"Oe"},{from:/[ÀÁÂÃÄÅǺĀĂĄǍΑΆẢẠẦẪẨẬẰẮẴẲẶА]+/gi,to:"A"},{from:/[àáâãåǻāăąǎªαάảạầấẫẩậằắẵẳặа]+/gi,to:"a"},{from:/[Б]+/gi,to:"B"},{from:/[б]+/gi,to:"b"},{from:/[ÇĆĈĊČ]+/gi,to:"C"},{from:/[çćĉċč]+/gi,to:"c"},{from:/[Д]+/gi,to:"D"},{from:/[д]+/gi,to:"d"},{from:/[ÐĎĐΔ]+/gi,to:"Dj"},{from:/[ðďđδ]+/gi,to:"dj"},{from:/[ÈÉÊËĒĔĖĘĚΕΈẼẺẸỀẾỄỂỆЕЭ]+/gi,to:"E"},{from:/[èéêëēĕėęěέεẽẻẹềếễểệеэ]+/gi,to:"e"},{from:/[Ф]+/gi,to:"F"},{from:/[ф]+/gi,to:"f"},{from:/[ĜĞĠĢΓГҐ]+/gi,to:"G"},{from:/[ĝğġģγгґ]+/gi,to:"g"},{from:/[ĤĦ]+/gi,to:"H"},{from:/[ĥħ]+/gi,to:"h"},{from:/[ÌÍÎÏĨĪĬǏĮİΗΉΊΙΪỈỊИЫ]+/gi,to:"I"},{from:/[ìíîïĩīĭǐįıηήίιϊỉịиыї]+/gi,to:"i"},{from:/[Ĵ]+/gi,to:"J"},{from:/[ĵ]+/gi,to:"j"},{from:/[ĶΚК]+/gi,to:"K"},{from:/[ķκк]+/gi,to:"k"},{from:/[ĹĻĽĿŁΛЛ]+/gi,to:"L"},{from:/[ĺļľŀłλл]+/gi,to:"l"},{from:/[М]+/gi,to:"M"},{from:/[м]+/gi,to:"m"},{from:/[ÑŃŅŇΝН]+/gi,to:"N"},{from:/[ñńņňʼnνн]+/gi,to:"n"},{from:/[ÒÓÔÕŌŎǑŐƠØǾΟΌΩΏỎỌỒỐỖỔỘỜỚỠỞỢО]+/gi,to:"O"},{from:/[òóôõōŏǒőơøǿºοόωώỏọồốỗổộờớỡởợо]+/gi,to:"o"},{from:/[П]+/gi,to:"P"},{from:/[п]+/gi,to:"p"},{from:/[ŔŖŘΡР]+/gi,to:"R"},{from:/[ŕŗřρр]+/gi,to:"r"},{from:/[ŚŜŞȘŠΣС]+/gi,to:"S"},{from:/[śŝşșšſσςс]+/gi,to:"s"},{from:/[ȚŢŤŦτТ]+/gi,to:"T"},{from:/[țţťŧт]+/gi,to:"t"},{from:/[ÙÚÛŨŪŬŮŰŲƯǓǕǗǙǛŨỦỤỪỨỮỬỰУ]+/gi,to:"U"},{from:/[ùúûũūŭůűųưǔǖǘǚǜυύϋủụừứữửựу]+/gi,to:"u"},{from:/[ÝŸŶΥΎΫỲỸỶỴЙ]+/gi,to:"Y"},{from:/[ýÿŷỳỹỷỵй]+/gi,to:"y"},{from:/[В]+/gi,to:"V"},{from:/[в]+/gi,to:"v"},{from:/[Ŵ]+/gi,to:"W"},{from:/[ŵ]+/gi,to:"w"},{from:/[ŹŻŽΖЗ]+/gi,to:"Z"},{from:/[źżžζз]+/gi,to:"z"},{from:/[ÆǼ]+/gi,to:"AE"},{from:/[ß]+/gi,to:"ss"},{from:/[IJ]+/gi,to:"IJ"},{from:/[ij]+/gi,to:"ij"},{from:/[Œ]+/gi,to:"OE"},{from:/[ƒ]+/gi,to:"f"},{from:/[ξ]+/gi,to:"ks"},{from:/[π]+/gi,to:"p"},{from:/[β]+/gi,to:"v"},{from:/[μ]+/gi,to:"m"},{from:/[ψ]+/gi,to:"ps"},{from:/[Ё]+/gi,to:"Yo"},{from:/[ё]+/gi,to:"yo"},{from:/[Є]+/gi,to:"Ye"},{from:/[є]+/gi,to:"ye"},{from:/[Ї]+/gi,to:"Yi"},{from:/[Ж]+/gi,to:"Zh"},{from:/[ж]+/gi,to:"zh"},{from:/[Х]+/gi,to:"Kh"},{from:/[х]+/gi,to:"kh"},{from:/[Ц]+/gi,to:"Ts"},{from:/[ц]+/gi,to:"ts"},{from:/[Ч]+/gi,to:"Ch"},{from:/[ч]+/gi,to:"ch"},{from:/[Ш]+/gi,to:"Sh"},{from:/[ш]+/gi,to:"sh"},{from:/[Щ]+/gi,to:"Shch"},{from:/[щ]+/gi,to:"shch"},{from:/[ЪъЬь]+/gi,to:""},{from:/[Ю]+/gi,to:"Yu"},{from:/[ю]+/gi,to:"yu"},{from:/[Я]+/gi,to:"Ya"},{from:/[я]+/gi,to:"ya"}],n=/[^a-zA-Z0-9]+/g,s=/[-]$/;let r=t;for(const o in e)e.hasOwnProperty(o)&&e[o].from.test(t)&&(r=r.replace(e[o].from,e[o].to));return r=r.replace(n,"-"),r=r.replace(s,""),r=r.toLowerCase(),r||"humany"},Me=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),ge=class{constructor(){w(this,"keys",[]);w(this,"log",(e,...n)=>this.lookup(e,()=>ge.log(...n)));w(this,"warn",(e,...n)=>this.lookup(e,()=>ge.warn(...n)));w(this,"error",(e,...n)=>this.lookup(e,()=>ge.error(...n)));w(this,"info",(e,...n)=>this.lookup(e,()=>ge.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let O=ge;w(O,"log",(...e)=>Me(console.log,...e)),w(O,"warn",(...e)=>Me(console.warn,...e)),w(O,"error",(...e)=>Me(console.error,...e)),w(O,"info",(...e)=>Me(console.info,...e));const sn=t=>{let e={},n,s;if(typeof t!="object"||t===null)return t;e=Array.isArray(t)?[]:{};for(s in t)n=t[s],e[s]=typeof n=="object"&&n!==null?sn(n):n;return e};function Zt(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);e=(e<<5)-e+s,e=e&e}return e.toString()}const is=(t,e)=>{if(!t||!e)return!0;let n=e.parentNode,s=!1;for(;n!==null;)n===t&&(s=!0),n=n.parentNode;return s};function as(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class cs{constructor(e,n){w(this,"tasks",[]);w(this,"current",Promise.resolve());this.lockWarningTime=e,this.lockErrorTime=n,this.next=this.next.bind(this)}add(e,n,s,r){this.tasks.push({task:e,resolve:n,reject:s,done:r}),this.next()}next(){this.current=this.current.then(()=>{const e=this.tasks.shift();if(e){let n;const s=setTimeout(()=>{process.env.NODE_ENV!=="production"&&O.warn(`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,e),n=setTimeout(()=>{e.reject("lock timeout exceeded")},this.lockErrorTime)},this.lockWarningTime),r=Promise.resolve(e.task()).then(o=>(clearTimeout(s),clearTimeout(n),o));return Promise.resolve(r).then(this.next).then(()=>r.then(o=>{e.done(),e.resolve(o)})).catch(o=>(e.done(),e.reject(o),this.next()))}return Promise.resolve()})}}const Oe=new WeakMap;function Ie(t,e=5e3,n=1e3){return Oe.has(t)||Oe.set(t,new cs(e,n)),s=>new Promise((r,o)=>{const i=Oe.get(t);i.add(s,r,o,()=>{i.tasks.length||Oe.delete(t)})})}const Kt=(t={})=>(Object.keys(t).forEach(e=>{(t[e]===null||typeof t[e]>"u")&&delete t[e]}),t),se=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function oe(){return se()+se()+"-"+se()+"-"+se()+"-"+se()+"-"+se()+se()+se()}const ls=["string","number"],D=t=>Object.keys(t).reduce((e,n)=>{const s=typeof t[n]>"u"?"":t[n],r=typeof s;if(ls.indexOf(r)>-1){const o=n.substring(0,5);o==="data-"||o==="aria-"?e[as(n)]=s.toString():n.substring(0,4)!=="css-"&&(e[n]=s.toString())}else e[n]=s;return e},{}),us=(t,e)=>t.get("seoConfiguration")?a.jsx(On,{...e}):null,ds=t=>new RegExp("^#","i").test(t),rn=t=>({children:e,...n})=>{const{implementation:s,name:r}=t.get("$widget"),{href:o=""}=n;if(ds(o))return a.jsx(xt,{smooth:!0,to:o,children:e});const i=s.bindings.map(d=>d.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${i})/([^\\s]+)`).exec(o);if(c&&c.length>=4){const d=c[4];if(s.widgets.get(d)&&!d.startsWith("blob?")&&!d.startsWith(r))return a.jsx(Wt,{widgetName:d,children:e})}return a.jsx("a",{...n,children:e})},yt=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},on=t=>{let e="";return Object.keys(yt(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),C.css`
|
|
11
|
+
${e}
|
|
12
|
+
`},an=(t,e)=>{let n="";const s=()=>{n=""},r=l=>{const h=document.getElementById(n);return h!==null?(l(h),s(),!0):!1},o=l=>(l.preventDefault(),s(),t.onClick&&t.onClick(l),typeof t.to=="string"&&(n=t.to.split("#").slice(1).join("#")),n!==""&&r(t.scroll||(h=>t.smooth?h.scrollIntoView({behavior:"smooth"}):h.scrollIntoView())),!1),{scroll:i,smooth:u,to:c,...d}=t;return e==="a"&&(d.href="javascript:;"),a.jsx(e,{...d,onClick:o,children:t.children})},re=t=>(e,n)=>{let s=e,r="";if(["h1","h2","h3","h4","h5","h6"].includes(e))s=e;else{const u=e.match(/h1|h2|h3|h4|h5|h6/);if(u!=null&&u[0]){s=u[0];const[c]=e.split(s);r=c}}const i=((u,c,d)=>d[u]?`${c}${d[u]}`:`${c}${u}`)(s,r,t.theme.typographyVariantMapping||{});return C.css`
|
|
37
13
|
${i} {
|
|
38
14
|
${n}
|
|
39
15
|
}
|
|
40
|
-
`};var
|
|
41
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
42
|
-
You can read more about this here:
|
|
43
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Xa=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Qt(n,r,o),cr(function(){return en(n,r,o)}),null},Ja=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
44
|
-
You may have forgotten to import it.`);var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var a=yo(t,n,r),c=a||vo(o),u=!c("as");return function(){var l=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),l[0]==null||l[0].raw===void 0)f.push.apply(f,l);else{process.env.NODE_ENV!=="production"&&l[0][0]===void 0&&console.error(xo),f.push(l[0][0]);for(var h=l.length,g=1;g<h;g++)process.env.NODE_ENV!=="production"&&l[0][g]===void 0&&console.error(xo),f.push(l[g],l[0][g])}var v=tn(function(m,y,$){var O=u&&m.as||o,R="",j=[],b=m;if(m.theme==null){b={};for(var M in m)b[M]=m[M];b.theme=ie.useContext(Ct)}typeof m.className=="string"?R=ir(y.registered,j,m.className):m.className!=null&&(R=m.className+" ");var T=Je(f.concat(j),y.registered,b);R+=y.key+"-"+T.name,i!==void 0&&(R+=" "+i);var A=u&&a===void 0?vo(O):c,B={};for(var W in m)u&&W==="as"||A(W)&&(B[W]=m[W]);return B.className=R,B.ref=$,ie.createElement(ie.Fragment,null,ie.createElement(Xa,{cache:y,serialized:T,isStringTag:typeof O=="string"}),ie.createElement(O,B))});return v.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=f,v.__emotion_forwardProp=a,Object.defineProperty(v,"toString",{value:function(){return i===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+i}}),v.withComponent=function(m,y){return e(m,le({},n,y,{shouldForwardProp:yo(v,y,!0)})).apply(void 0,f)},v}},Qa=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],N=Ja.bind();Qa.forEach(function(e){N[e]=N(e)});const Ie=p.forwardRef(({className:e,children:t,...n},r)=>d.jsx(ec,{type:"button",className:q(e,"humany-button"),...he(n),ref:r,children:t})),ec=N.button`
|
|
16
|
+
`};var hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function s(){if(this instanceof s){var r=[null];r.push.apply(r,arguments);var o=Function.bind.apply(e,r);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return t[s]}})}),n}var ln={exports:{}};(function(t,e){(function(n,s){t.exports=s(f)})(hs,function(n){function s(h,m,g,y){return m===void 0&&(m={}),Object.keys(m).reduce(function(p,v){if(/^on.*/.test(v))return p;var j=v;/^(data|aria)-/.test(v)||g.filter(function(I){return I instanceof RegExp?I.test(v):I===v}).length===0&&(j=r(v));var S,N,$=y(h,j);if($.name==="style")p[$.name]=(S=m.style,N={},S.split(";").filter(function(I){return I.trim()!==""}).forEach(function(I){var T,W=I.split(":");if(W.length>1){var B=function(A){return/^-ms-/.test(A)&&(A=A.substr(1)),A.startsWith("--")?A:r(A)}(W[0].trim()),P=(T=W.slice(1).join(":").trim(),/^\d+$/.test(T)?Number(T):T.replace(/'/g,'"'));N[B]=P}}),N);else{var L=m[v],Y=L===""||String(L).toLowerCase()===j.toLowerCase();p[$.name]=$.isBoolean?Y:L}return p},{})}function r(h){return h.replace(/(-|:)(.)/g,function(m,g,y){return y.toUpperCase()})}n=n&&n.hasOwnProperty("default")?n.default:n;var o=["table","tbody","thead","tfoot","tr"],i={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function u(h,m){var g=i[m],y=document.createElement(h);if(g)return{name:Array.isArray(g)?g[0]:g,isBoolean:c(y,Array.isArray(g)?g[1]||m:g)};for(var p in y)if(p.toLowerCase()===m.toLowerCase())return{name:p,isBoolean:c(y,p)};return{name:m,isBoolean:c(y,m)}}function c(h,m){return h.setAttribute(m,""),h[m]===!0||d.indexOf(m)>-1}var d=["itemScope"];function l(h,m,g,y){y===void 0&&(y=null);var p=g[h],v=g._;return p?n.createElement(p,m,y):v?v(h,m,y):n.createElement(h,m,y)}return function(h,m){if(m===void 0&&(m={}),typeof h!="string")throw new TypeError("Expected HTML string");var g=document.createElement("div");g.innerHTML=h.trim();var y=Array.from(g.childNodes).map(function(p,v){return function j(S,N,$){var L=$.transform||{},Y=$.preserveAttributes||[],I=$.dangerouslySetChildren||["style"],T=L._;if(S.nodeType===8)return null;if(S.nodeType===3){var W=S.textContent;return T?T(W):W}for(var B={},P=S.attributes,A=0;A<P.length;A++)B[P[A].name]=P[A].value;B.key=N.toString();var q=S.tagName.toLowerCase(),ae=s(q,B,Y,u),ce=Array.from(S.childNodes).map(function(_,te){return o.indexOf(q)>-1&&_.nodeType===3&&(_.textContent=_.textContent.trim(),_.textContent==="")?null:j(_,N+"."+te,$)}).filter(Boolean);if(I.indexOf(q)>-1){var ee=S.innerHTML;return ee&&(q!=="style"&&q!=="script"&&(ee=ee.replace(/"/g,""")),ae.dangerouslySetInnerHTML={__html:ee.trim()}),l(q,ae,L)}var he=ce.length===0?null:ce;return l(q,ae,L,he)}(p,String(v),m)}).filter(Boolean);return y.length===1?y[0]:y}})})(ln);var ms=ln.exports;const Yt=fs(ms);function un(t,e){return e?Yt(t,e):Yt(t)}const dn=t=>e=>a.jsx(In,{attrs:e,htmlBody:t}),hn=(t,e)=>({transform:{a:rn(t),img:dn(e)}}),xt=t=>an(t,"a"),ie=f.forwardRef(({className:t,children:e,...n},s)=>a.jsx(ps,{type:"button",className:k(t,"humany-button"),...D(n),ref:s,children:e})),ps=x.button`
|
|
45
17
|
-webkit-appearance: button;
|
|
46
18
|
text-transform: none;
|
|
47
19
|
overflow: visible;
|
|
@@ -54,15 +26,10 @@ You may have forgotten to import it.`);var r=t.__emotion_real===t,o=r&&t.__emoti
|
|
|
54
26
|
line-height: normal;
|
|
55
27
|
margin: 0;
|
|
56
28
|
padding: 0;
|
|
57
|
-
`,tc=({onChange:e=()=>{},onEnter:t=()=>{},className:n,...r})=>d.jsx("input",{className:q(n,"humany-checkbox"),onKeyDown:o=>{o.key==="Enter"&&t(o)},onChange:o=>e(o.target.value,o.currentTarget.checked),...he(r)});function it(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Fn(e,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fn(e,t)}function Se(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fn(e,t)}var Un={exports:{}};/*
|
|
58
|
-
|
|
59
|
-
(c)
|
|
60
|
-
|
|
61
|
-
*/var vn,bo;function nc(){if(bo)return vn;bo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(i).map(function(l){return i[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vn=o()?Object.assign:function(s,i){for(var a,c=r(s),u,l=1;l<arguments.length;l++){a=Object(arguments[l]);for(var f in a)t.call(a,f)&&(c[f]=a[f]);if(e){u=e(a);for(var h=0;h<u.length;h++)n.call(a,u[h])&&(c[u[h]]=a[u[h]])}}return c},vn}var yn,wo;function dr(){if(wo)return yn;wo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yn=e,yn}var xn,Co;function $s(){return Co||(Co=1,xn=Function.call.bind(Object.prototype.hasOwnProperty)),xn}var bn,Eo;function rc(){if(Eo)return bn;Eo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=dr(),n={},r=$s();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,a,c,u){if(process.env.NODE_ENV!=="production"){for(var l in s)if(r(s,l)){var f;try{if(typeof s[l]!="function"){var h=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[l](i,l,c,a,null,t)}catch(v){f=v}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var g=u?u():"";e("Failed "+a+" type: "+f.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},bn=o,bn}var wn,So;function oc(){if(So)return wn;So=1;var e=Jt,t=nc(),n=dr(),r=$s(),o=rc(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return wn=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(w){var C=w&&(u&&w[u]||w[l]);if(typeof C=="function")return C}var h="<<anonymous>>",g={array:$("array"),bigint:$("bigint"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:O(),arrayOf:R,element:j(),elementType:b(),instanceOf:M,node:W(),objectOf:A,oneOf:T,oneOfType:B,shape:Z,exact:oe};function v(w,C){return w===C?w!==0||1/w===1/C:w!==w&&C!==C}function m(w,C){this.message=w,this.data=C&&typeof C=="object"?C:{},this.stack=""}m.prototype=Error.prototype;function y(w){if(process.env.NODE_ENV!=="production")var C={},x=0;function S(D,_,L,V,F,U,pe){if(V=V||h,U=U||L,pe!==n){if(c){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=V+":"+L;!C[Oe]&&x<3&&(s("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+V+"`. 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."),C[Oe]=!0,x++)}}return _[L]==null?D?_[L]===null?new m("The "+F+" `"+U+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new m("The "+F+" `"+U+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:w(_,L,V,F,U)}var k=S.bind(null,!1);return k.isRequired=S.bind(null,!0),k}function $(w){function C(x,S,k,D,_,L){var V=x[S],F=re(V);if(F!==w){var U=se(V);return new m("Invalid "+D+" `"+_+"` of type "+("`"+U+"` supplied to `"+k+"`, expected ")+("`"+w+"`."),{expectedType:w})}return null}return y(C)}function O(){return y(i)}function R(w){function C(x,S,k,D,_){if(typeof w!="function")return new m("Property `"+_+"` of component `"+k+"` has invalid PropType notation inside arrayOf.");var L=x[S];if(!Array.isArray(L)){var V=re(L);return new m("Invalid "+D+" `"+_+"` of type "+("`"+V+"` supplied to `"+k+"`, expected an array."))}for(var F=0;F<L.length;F++){var U=w(L,F,k,D,_+"["+F+"]",n);if(U instanceof Error)return U}return null}return y(C)}function j(){function w(C,x,S,k,D){var _=C[x];if(!a(_)){var L=re(_);return new m("Invalid "+k+" `"+D+"` of type "+("`"+L+"` supplied to `"+S+"`, expected a single ReactElement."))}return null}return y(w)}function b(){function w(C,x,S,k,D){var _=C[x];if(!e.isValidElementType(_)){var L=re(_);return new m("Invalid "+k+" `"+D+"` of type "+("`"+L+"` supplied to `"+S+"`, expected a single ReactElement type."))}return null}return y(w)}function M(w){function C(x,S,k,D,_){if(!(x[S]instanceof w)){var L=w.name||h,V=I(x[S]);return new m("Invalid "+D+" `"+_+"` of type "+("`"+V+"` supplied to `"+k+"`, expected ")+("instance of `"+L+"`."))}return null}return y(C)}function T(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function C(x,S,k,D,_){for(var L=x[S],V=0;V<w.length;V++)if(v(L,w[V]))return null;var F=JSON.stringify(w,function(pe,P){var Oe=se(P);return Oe==="symbol"?String(P):P});return new m("Invalid "+D+" `"+_+"` of value `"+String(L)+"` "+("supplied to `"+k+"`, expected one of "+F+"."))}return y(C)}function A(w){function C(x,S,k,D,_){if(typeof w!="function")return new m("Property `"+_+"` of component `"+k+"` has invalid PropType notation inside objectOf.");var L=x[S],V=re(L);if(V!=="object")return new m("Invalid "+D+" `"+_+"` of type "+("`"+V+"` supplied to `"+k+"`, expected an object."));for(var F in L)if(r(L,F)){var U=w(L,F,k,D,_+"."+F,n);if(U instanceof Error)return U}return null}return y(C)}function B(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var C=0;C<w.length;C++){var x=w[C];if(typeof x!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(x)+" at index "+C+"."),i}function S(k,D,_,L,V){for(var F=[],U=0;U<w.length;U++){var pe=w[U],P=pe(k,D,_,L,V,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&F.push(P.data.expectedType)}var Oe=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+L+" `"+V+"` supplied to "+("`"+_+"`"+Oe+"."))}return y(S)}function W(){function w(C,x,S,k,D){return te(C[x])?null:new m("Invalid "+k+" `"+D+"` supplied to "+("`"+S+"`, expected a ReactNode."))}return y(w)}function Y(w,C,x,S,k){return new m((w||"React class")+": "+C+" type `"+x+"."+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function Z(w){function C(x,S,k,D,_){var L=x[S],V=re(L);if(V!=="object")return new m("Invalid "+D+" `"+_+"` of type `"+V+"` "+("supplied to `"+k+"`, expected `object`."));for(var F in w){var U=w[F];if(typeof U!="function")return Y(k,D,_,F,se(U));var pe=U(L,F,k,D,_+"."+F,n);if(pe)return pe}return null}return y(C)}function oe(w){function C(x,S,k,D,_){var L=x[S],V=re(L);if(V!=="object")return new m("Invalid "+D+" `"+_+"` of type `"+V+"` "+("supplied to `"+k+"`, expected `object`."));var F=t({},x[S],w);for(var U in F){var pe=w[U];if(r(w,U)&&typeof pe!="function")return Y(k,D,_,U,se(pe));if(!pe)return new m("Invalid "+D+" `"+_+"` key `"+U+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(x[S],null," ")+`
|
|
62
|
-
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var P=pe(L,U,k,D,_+"."+U,n);if(P)return P}return null}return y(C)}function te(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(te);if(w===null||a(w))return!0;var C=f(w);if(C){var x=C.call(w),S;if(C!==w.entries){for(;!(S=x.next()).done;)if(!te(S.value))return!1}else for(;!(S=x.next()).done;){var k=S.value;if(k&&!te(k[1]))return!1}}else return!1;return!0;default:return!1}}function ne(w,C){return w==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function re(w){var C=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":ne(C,w)?"symbol":C}function se(w){if(typeof w>"u"||w===null)return""+w;var C=re(w);if(C==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return C}function X(w){var C=se(w);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function I(w){return!w.constructor||!w.constructor.name?h:w.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},wn}var Cn,$o;function sc(){if($o)return Cn;$o=1;var e=dr();function t(){}function n(){}return n.resetWarningCache=t,Cn=function(){function r(i,a,c,u,l,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Cn}if(process.env.NODE_ENV!=="production"){var ic=Jt,ac=!0;Un.exports=oc()(ic.isElement,ac)}else Un.exports=sc()();var cc=Un.exports;const E=sr(cc);function lc(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function uc(e,t){e.classList?e.classList.add(t):lc(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ko(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function fc(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ko(e.className,t):e.setAttribute("class",ko(e.className&&e.className.baseVal||"",t))}const No={disabled:!1};var dc=process.env.NODE_ENV!=="production"?E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]):null,hc=process.env.NODE_ENV!=="production"?E.oneOfType([E.string,E.shape({enter:E.string,exit:E.string,active:E.string}),E.shape({enter:E.string,enterDone:E.string,enterActive:E.string,exit:E.string,exitDone:E.string,exitActive:E.string})]):null;const ks=p.createContext(null);var Ns=function(t){return t.scrollTop},pt="unmounted",ze="exited",He="entering",Ye="entered",Yn="exiting",Ae=function(e){Se(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?a?(c=ze,s.appearStatus=He):c=Ye:r.unmountOnExit||r.mountOnEnter?c=pt:c=ze,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===pt?{status:ze}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==He&&i!==Ye&&(s=He):(i===He||i===Ye)&&(s=Yn)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===He){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ht.findDOMNode(this);i&&Ns(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ze&&this.setState({status:pt})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[ht.findDOMNode(this),a],u=c[0],l=c[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!o&&!i||No.disabled){this.safeSetState({status:Ye},function(){s.props.onEntered(u)});return}this.props.onEnter(u,l),this.safeSetState({status:He},function(){s.props.onEntering(u,l),s.onTransitionEnd(h,function(){s.safeSetState({status:Ye},function(){s.props.onEntered(u,l)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:ht.findDOMNode(this);if(!s||No.disabled){this.safeSetState({status:ze},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yn},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:ze},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:ht.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],l=c[1];this.props.addEndListener(u,l)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===pt)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=it(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(ks.Provider,{value:null},typeof i=="function"?i(o,a):p.cloneElement(p.Children.only(i),a))},t}(p.Component);Ae.contextType=ks;Ae.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:E.shape({current:typeof Element>"u"?E.any:function(e,t,n,r,o,s){var i=e[t];return E.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:E.oneOfType([E.func.isRequired,E.element.isRequired]).isRequired,in:E.bool,mountOnEnter:E.bool,unmountOnExit:E.bool,appear:E.bool,enter:E.bool,exit:E.bool,timeout:function(t){var n=dc;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:E.func,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}:{};function Ue(){}Ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ue,onEntering:Ue,onEntered:Ue,onExit:Ue,onExiting:Ue,onExited:Ue};Ae.UNMOUNTED=pt;Ae.EXITED=ze;Ae.ENTERING=He;Ae.ENTERED=Ye;Ae.EXITING=Yn;const hr=Ae;var pc=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return uc(t,r)})},En=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return fc(t,r)})},pr=function(e){Se(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,c){var u=r.resolveArguments(a,c),l=u[0],f=u[1];r.removeClasses(l,"exit"),r.addClass(l,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,c)},r.onEntering=function(a,c){var u=r.resolveArguments(a,c),l=u[0],f=u[1],h=f?"appear":"enter";r.addClass(l,h,"active"),r.props.onEntering&&r.props.onEntering(a,c)},r.onEntered=function(a,c){var u=r.resolveArguments(a,c),l=u[0],f=u[1],h=f?"appear":"enter";r.removeClasses(l,h),r.addClass(l,h,"done"),r.props.onEntered&&r.props.onEntered(a,c)},r.onExit=function(a){var c=r.resolveArguments(a),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var c=r.resolveArguments(a),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var c=r.resolveArguments(a),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,c){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,c]},r.getClassNames=function(a){var c=r.props.classNames,u=typeof c=="string",l=u&&c?c+"-":"",f=u?""+l+a:c[a],h=u?f+"-active":c[a+"Active"],g=u?f+"-done":c[a+"Done"];return{baseClassName:f,activeClassName:h,doneClassName:g}},r}var n=t.prototype;return n.addClass=function(o,s,i){var a=this.getClassNames(s)[i+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;s==="appear"&&i==="done"&&u&&(a+=" "+u),i==="active"&&o&&Ns(o),a&&(this.appliedClasses[s][i]=a,pc(o,a))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],a=i.base,c=i.active,u=i.done;this.appliedClasses[s]={},a&&En(o,a),c&&En(o,c),u&&En(o,u)},n.render=function(){var o=this.props;o.classNames;var s=it(o,["classNames"]);return p.createElement(hr,le({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(p.Component);pr.defaultProps={classNames:""};pr.propTypes=process.env.NODE_ENV!=="production"?le({},hr.propTypes,{classNames:hc,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}):{};const Os=pr,Sn=new WeakMap;function mc(){return e=>(Sn.has(e)||Sn.set(e,{}),Sn.get(e))}const $n=(e,t,n,...r)=>{const o=`[${e.get("$environment").name||"webprovisions"}] ${n}`;switch(t){case"info":console.info(o,...r);break;case"warning":console.warn(o,...r);break;case"error":console.error(o,...r);break}},qe=e=>{const t=e.container||e;return{info:(n,...r)=>$n(t,"info",n,...r),warn:(n,...r)=>$n(t,"warning",n,...r),error:(n,...r)=>$n(t,"error",n,...r)}},ae=mc(),mr=(()=>{let e=0;return()=>++e})(),gr=(e,t,n)=>{const r=ae(e).touchQueue.get(t);r&&r.forEach(o=>{o(n,e)})};class gc{constructor(t,n,r,o){this.key=t,this.factory=n,this.parent=r,this.container=o,this.id=mr(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const t=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(t).then(n=>(this.resolved=!0,gr(this.container,this.key,n),n))}return this.value}}class vc{constructor(t,n,r,o){this.key=t,this.value=n,this.parent=r,this.container=o,this.id=mr(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,gr(this.container,this.key,this.value),this.value)}}class yc{constructor(t,n,r,o){this.key=t,this.value=n,this.parent=r,this.container=o,this.id=mr(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const s=this.value(this.parent,this.container);return gr(this.container,this.key,this.value),s}}}class vr{constructor(t,n,r){this.owner=t,this.name=n,this.parent=r,ae(this).resolvers=new Map,ae(this).touchQueue=new Map,ae(this).children=[]}delete(t){const n=ae(this).resolvers,r=Array.from(n.values()).find(o=>o.id===t);return r?(ae(this).touchQueue.delete(r.key),Promise.resolve(n.delete(r.key))):this.parent?this.parent.delete(t):Promise.resolve(!1)}clear(){const t=ae(this).resolvers,n=Array.from(t.values());return Promise.all(n.map(r=>{if(r.constructed)return Promise.resolve(r.resolve()).then(o=>{if(o!==null&&typeof o=="object"&&typeof o.dispose=="function")return o.dispose.call(o,this,r)})})).then(()=>{n.forEach(r=>this.delete(r.id)),ae(this).children.forEach(r=>r.clear())})}detach(){if(this.parent){const t=ae(this.parent).children,n=t.indexOf(this);n>-1&&(t.splice(n,1),delete this.parent)}}touch(t,n){const r=ae(this).resolvers.get(t);if(r&&r.constructed)Promise.resolve(r.resolve()).then(o=>{n(o,this)});else{const o=ae(this).touchQueue;let s=o.get(t);s||(s=[],o.set(t,s)),s.push(n)}return this.parent&&!r?this.parent.touch(t,n):Promise.resolve()}registerAsync(t,n){const r=ae(this).resolvers.get(t);r&&!r.async&&process.env.NODE_ENV!=="production"&&qe(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${t}') previously used by a non-async resolver.`);const o=new gc(t,n,r,this);return ae(this).resolvers.set(t,o),o.id}registerFactory(t,n){const r=ae(this).resolvers.get(t);r&&r.async&&process.env.NODE_ENV!=="production"&&qe(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);const o=new yc(t,n,r,this);return ae(this).resolvers.set(t,o),o.id}register(t,n){const r=ae(this).resolvers.get(t);r&&r.async&&process.env.NODE_ENV!=="production"&&qe(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);const o=new vc(t,n,r,this);return ae(this).resolvers.set(t,o),o.id}get(t){const n=ae(this).resolvers.get(t);if(n)return n.async&&process.env.NODE_ENV!=="production"&&qe(this).warn(`You are retrieving an async value (with key '${t}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),n.resolve();if(this.parent)return this.parent.get(t)}getAsync(t){const n=ae(this).resolvers.get(t);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&qe(this).warn(`You are retrieving a non-async value (with key '${t}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return n.resolve()}return this.parent?this.parent.getAsync(t):Promise.resolve(void 0)}getMany(...t){const n={};return t.forEach(r=>n[r]=this.get(r)),n}getManyAsync(...t){const n={};return Promise.all(t.map(r=>this.getAsync(r).then(o=>n[r]=o))).then(()=>n)}createChild(t,n){const r=new vr(t,n,this);return ae(this).children.push(r),r}}var Ut=(e=>(e.Implementation="implementation",e.Widget="widget",e))(Ut||{}),We=(e=>(e.Pre="pre",e.Post="post",e))(We||{});const xc=(e,t,n,r)=>{try{const o=new t(n,r);return{name:e,invoke:(s,i)=>{let a;return o[s]&&(a=o[s].call(o,i)),Promise.resolve(a)},getInstance:()=>o}}catch(o){if(o.message&&o.message.indexOf("is not a constructor")>=0)return{name:e,invoke:s=>{let i;return s==="initialize"&&(i=t(n,r)),Promise.resolve(i)},getInstance:()=>t};throw o}};function Oo(e,t){return typeof e>"u"?t:e}class bc{constructor(t={}){this.part=t}createCommand(t,n,r){let o;typeof n=="function"?o={scope:Ut.Widget,stage:We.Post,defaultArgs:void 0,handlerResolver:n}:o={scope:Oo(n.scope,Ut.Widget),stage:Oo(n.stage,We.Post),defaultArgs:n.defaultArgs,handlerResolver:r};let s=this.part;const i=t.split(".");return i.forEach((a,c)=>{c===i.length-1?s[a]||(s[a]=()=>o):s=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const on=e=>{const t=new bc({});return e(t),t.get()};on(e=>{e.createCommand("types.register",{scope:Ut.Implementation,stage:We.Pre},t=>(n,r)=>{t.container.get("$types")[n]=r}).createCommand("type",{stage:We.Pre},t=>n=>{t.container.register("$type",n)}).createCommand("settings",{stage:We.Pre,defaultArgs:[null]},t=>n=>{t.events.dispatch("settings:change",n,{bubbles:!0}),t.container.register("$settings",n)}).createCommand("plugin",{stage:We.Pre},t=>(n,r,o)=>{const{container:s}=t;let i=null,a=n,c=r;typeof n=="string"&&(i=n,a=r,c=o);const u=l=>{const{transformPluginSettings:f}=t.container.get("$environmentOptions"),h=f?f(c||{},i,t.container,a):r;try{const g=xc(i,a,s,h);s.get("$plugins").push(g),l&&g.invoke("initialize",null)}catch(g){qe(t).warn("Error when initializing plugin",g)}};t.container.get("$instance")?u(!0):t.events.subscribeOnce("widget:instance-created",()=>u(!1))}).createCommand("container.register",t=>(n,r)=>{t.container.register(n,r)}).createCommand("container.registerAsync",t=>(n,r)=>{t.container.registerAsync(n,r)}).createCommand("container.registerFactory",t=>(n,r)=>{t.container.registerFactory(n,r)}).createCommand("container.touch",t=>(n,r)=>{t.container.touch(n,r)}).createCommand("csp",{},t=>n=>{t.container.register("csp",n)})});var js=(e=>(e.Activating="activating",e.Loading="loading",e.Activated="activated",e.Deactivating="deactivating",e.Deactivated="deactivated",e))(js||{});const Ts=p.createContext(new vr),Rs=p.createContext(1),yr=p.createContext({id:"",type:"",name:"",branch:""}),Ps=p.createContext({}),_s=p.createContext(null),As=p.createContext(null),sn=()=>p.useContext(yr),ye=()=>p.useContext(Ts),wc=(e,t)=>{const n=sn().id,r=ye();return(o,s)=>{(t||r).getAsync("actionResolver").then(i=>{i.action(e||n,o,s)})}},Ls=e=>{const t=[];return[(r,o)=>{t.push(e.subscribe(r,o))},()=>{t.forEach(r=>{r()})}]};class an{constructor(t,n=[]){this.platform=t,this.rules=n}match(t){return this.rules.every(n=>!(n.id&&n.id!==t.id||n.type&&n.type!==t.type))}ofType(t){return this.rules.push({type:t}),this}withId(t){return this.rules.push({id:t}),this}select(){return new Cc(this.platform,this)}}class Ds{constructor(t,n,r){z(this,"actions");z(this,"subscribe");z(this,"unsubscribe");this.platform=t,this.node=n,this.actions=new xr(t,new an(t).withId(n.id),r);const[o,s]=Ls(this.platform.events);this.subscribe=o,this.unsubscribe=s}properties(t){return t&&this.node.touchProperties(n=>t(n)),this.node.attributes.properties}context(t){return t&&this.subscribe("components:context-changed",(n,{node:r})=>{r===this.node&&t(this.node.attributes.context)}),this.node.attributes.context}layout(t){return t&&this.subscribe("components:layout-changed",(n,{node:r})=>{r===this.node&&t(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(t,n){this.node.writeProperties(t,n)}writeContext(t,n){this.node.writeProperties(t,n)}writeLayout(t,n){this.node.writeLayout(t,n)}dispose(){this.unsubscribe(),this.actions.dispose()}}class Cc{constructor(t,n,r=!0){z(this,"actions");z(this,"removes",[]);this.platform=t,this.target=n,this.clearOnDispose=r,this.actions=new xr(this.platform,this.target)}writeProperties(t,n){this.removes.push(this.platform.write({options:n,attributes:{properties:t},target:this.target,removable:this.clearOnDispose}))}writeContext(t,n){this.removes.push(this.platform.write({options:n,attributes:{context:t},target:this.target,removable:this.clearOnDispose}))}writeLayout(t,n){this.removes.push(this.platform.write({options:n,attributes:{layout:t},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(t=>{t()}),this.actions.dispose()}}const Ec=(e,t,n)=>{const r=e.concat(),o=(s,i,a)=>{let c=!0;if(r.length){const u=r.shift(),l=(f,h)=>(c=!1,o(f,Object.assign({},i,h),a));return Promise.resolve(u(s,l,a)).then(f=>({...f,cancelled:c}))}return Promise.resolve({data:s,cancelled:!1,options:i})};return o(t,{},n)};class xr{constructor(t,n,r){z(this,"subscriptions",[]);this.platform=t,this.target=n,this.ns=r,this.create=this.create.bind(this)}create(t,n=()=>{}){const r={key:t,fn:n,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(r);const o=()=>{const s=this.platform.actionsState.handlers.indexOf(r);s>-1&&this.platform.actionsState.handlers.splice(s,1)};return this.subscriptions.push(o),o}dispatch(t,n){const r=this.platform.nodes.all.concat(this.platform.nodes.detached),o={},s=this.platform.actionsState.handlers.filter(i=>i.key===t&&(!i.ns||!this.ns||i.ns===this.ns));return Promise.all(s.map(i=>{const a=r.filter(u=>i.target.match(u)&&this.target.match(u)),c=this.platform.actionsState.watchers.filter(u=>u.key===t&&(!u.ns||!this.ns||u.ns===this.ns)&&a.some(l=>u.target.match(l))).map(u=>u.fn);return Promise.all(a.map(u=>{const l=new Ds(this.platform,u,this.ns);return Ec(c,n,l).then(f=>{const{data:h={},options:g,cancelled:v}=f;return Promise.resolve(v?{}:i.fn(h,g,l)).then(m=>{o[u.id]=m})})}))})).then(()=>o)}watch(t,n){let r=t,o=this.ns;const s=t.split(".");s.length>1&&(o=s[0],r=s.splice(1).join("."));const i={fn:n,target:this.target,key:r,ns:o};this.platform.actionsState.watchers.push(i);const a=()=>{const c=this.platform.actionsState.watchers.indexOf(i);c>-1&&this.platform.actionsState.watchers.splice(c,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(t=>t())}}on(e=>{e.createCommand("components",t=>n=>{t.events.subscribeOnce("components:platform-created",(r,{platform:o})=>{n.handlers&&n.handlers.forEach(([s,i])=>{o.addComponentHandler(s,i)})})})});class jo{constructor(t,n){z(this,"id");z(this,"type");z(this,"name");z(this,"parent");z(this,"tags",[]);z(this,"children",{});z(this,"changesets",[]);z(this,"attributes");z(this,"mountCount",0);this.events=t,this.id=Me(),this.type=n,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(t,n){let r=t.get("mounted-nodes");return r||(r=new Map,t.register("mounted-nodes",r)),r.has(this)?(process.env.NODE_ENV!=="production"&&ue.error("Trying to mount an already mounted component node.",this),()=>{}):(this.events.dispatch("components:node-mounted",{node:this}),this.mountCount===0&&(this.mountCount=this.mountCount+1,this.events.dispatch("components:node-enter",{node:this})),()=>{r.delete(this),this.events.dispatch("components:node-unmounted",{node:this}),this.mountCount=this.mountCount-1,this.mountCount===0&&this.events.dispatch("components:node-exit",{node:this})})}appendChild(t,n="default"){if(t.parent){if(t.parent===this)return;t.parent.removeChild(t)}t.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].push(t),this.events.dispatch("components:node-appended",{node:t})}prependChild(t,n="default"){if(t.parent){if(t.parent===this)return;t.parent.removeChild(t)}t.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].unshift(t),this.events.dispatch("components:node-appended",{node:t})}touchProperties(t,n={},r){const s=[{properties:t},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(t,n={},r){const s=[{properties:t},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(t,n={},r){const s=[{layout:t},n];return this.changesets.push(s),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!r)return;const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(t,n={},r){const s=[{context:t},n];return this.changesets.push(s),this.events.dispatch("components:set-context",{node:this}),()=>{if(!r)return;const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(t="default"){const n=this.children[t]||[];return n.reduce((r,o,s)=>{const{order:i=s}=o.attributes.layout;return r[i]?r.splice(i,0,o):r[i]=o,r},Array(n.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(t){Object.keys(this.children).forEach(n=>{const r=this.children[n],o=r.indexOf(t);o>-1&&(r.splice(o,1),this.events.dispatch("components:node-removed",{node:t,parentNode:this}))}),delete t.parent}}const Ms=(e,t,n)=>{for(let r=0,o=e.length;r<o&&n(e[r])!==!0;r++){const s=t[e[r].id]||"default",i=e[r].getChildren(s);Ms(i,t,n)}},br=(e,t,n)=>{if(n(e)!==!0){const r=t[e.id]||"default",o=e.children[r];Ms(o,t,n)}},kn=(e,t)=>{const n=[];return br(e,t,r=>{n.push(r)}),n},Sc=(e,t,n)=>{let r;return br(e,t,o=>{if(n(o))return r=o,!0}),r};class $c{constructor(t,n,r){z(this,"all",[]);z(this,"visible",[]);z(this,"detached",[]);this.root=t,this.switches=n,r.subscribe("components:node-appended",(o,s)=>{this.all.push(s.node),this.visible=kn(t,n)}),r.subscribe("components:node-removed",(o,s)=>{let i=this.all.indexOf(s.node);i>-1&&this.all.splice(i,1),i=this.visible.indexOf(s.node),i>-1&&this.visible.splice(i,1),this.visible=kn(t,n)}),r.subscribe("components:node-switched",(o,s)=>{this.visible=kn(t,n)})}query(t={}){const n=[];return br(this.root,this.switches,r=>{Object.keys(t).every(s=>t[s]===r[s])&&n.push(r)}),n}get(t){return Sc(this.root,this.switches,n=>n.id===t)||this.detached.find(n=>n.id===t)}}class kc{constructor(){z(this,"handlers",new Map)}add(t,n){this.handlers.set(t,n)}get(t){return this.handlers.get(t)}}const Nc=e=>{let t=e,n=0;for(;t.parent;)n=n+1,t=t.parent;return n},Oc=e=>e.map(([n,r])=>[Nc(n),n,r]).sort(([n],[r])=>n-r).map(([,n,r])=>[n,r]),Nn=e=>e instanceof Date?!1:e&&typeof e=="object"&&!Array.isArray(e),Pe=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(Nn(e)&&Nn(n))for(const r in n)Nn(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Pe(e[r],n[r])):Object.assign(e,{[r]:n[r]});return Pe(e,...t)},jc=(e,t)=>!e||e==="all"?!0:e.some(n=>t.indexOf(n)>-1),Tc=(e,t)=>{let n=[],r=[],o;const s=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,c=Oc(n.map((l,f)=>[l,r[f]])),u=(l,f)=>{var R;const h=a.get(l)||{},g=f.context&&!h.context,v=f.properties&&!h.properties,m=f.layout&&!h.layout;a.set(l,{context:h.context||g,properties:h.properties||v,layout:h.layout||m}),v&&(l.attributes.properties={}),m&&(l.attributes.layout={}),g&&(l.attributes.context=Pe({},(R=l.parent)==null?void 0:R.attributes.context));const y=[],$=[],O=[];if(l.changesets.forEach(j=>{const[b,M]=j;jc(M.breakpoints,e.breakpoints)&&(v&&(typeof b.properties=="function"?y.push(b.properties):Pe(l.attributes.properties,b.properties)),m&&(typeof b.layout=="function"?$.push(b.layout):Pe(l.attributes.layout,b.layout)),g&&(typeof b.context=="function"?O.push(b.context):Pe(l.attributes.context,b.context)))}),y.forEach(j=>{Pe(l.attributes.properties,j(l.attributes.properties))}),$.forEach(j=>{Pe(l.attributes.layout,j(l.attributes.layout))}),O.forEach(j=>{Pe(l.attributes.context,j(l.attributes.context))}),g||f.recursive){const j=e.getBranch(l),b=f.recursive?f:{context:!!g};l.getChildren(j).forEach(M=>{u(M,b)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),c.forEach(([l,f])=>{u(l,f)}),n=[],r=[],t(a)},i=()=>{clearTimeout(o),o=setTimeout(s,0)};return(a,c)=>{const u=n.indexOf(a);if(u>-1){const l=r[u];return c.context&&(l.context=!0),c.properties&&(l.properties=!0),c.layout&&(l.layout=!0),c.recursive&&(l.recursive=!0),i()}return n.push(a),r.push(c),i()}};class Is{constructor(t,n={}){z(this,"events");z(this,"breakpoints",[]);z(this,"nodes");z(this,"actionsState",{handlers:[],watchers:[]});z(this,"switches",{});z(this,"changesets",[]);z(this,"subscriptions",[]);z(this,"processNode");z(this,"customComponentHandler",new kc);this.providers=n,this.events=t.events.createChild(this);const r=new jo(this.events,"root");r.name=`root-${t.name}`,this.nodes=new $c(r,this.switches,this.events);const o=this.processNode=Tc(this,s=>{const i=Array.from(s.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${i.length} node(s) processed:
|
|
63
|
-
${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
64
|
-
`)}`),i.forEach(a=>{const c=s.get(a);a.parent&&a.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:a}),c!=null&&c.context&&this.events.dispatch("components:context-changed",{node:a}),c!=null&&c.properties&&this.events.dispatch("components:properties-changed",{node:a}),c!=null&&c.layout&&this.events.dispatch("components:layout-changed",{node:a})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(s=>n[s].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(s,i)=>{const{node:a}=i;this.changesets.forEach(c=>{const{changeset:u,target:l,removes:f}=c,[h,g]=u;l.match(i.node)&&(h.properties&&f.push(a.writeProperties(h.properties,g)),h.context&&f.push(a.writeContext(h.context,g)),h.layout&&f.push(a.writeLayout(h.layout,g)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(s,i)=>{o(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(s,i)=>{o(i.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(s,i)=>{o(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(s,i)=>{o(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(s,i)=>{o(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(s,{node:i,branch:a})=>{o(i,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(s,{parentNode:i})=>{o(i,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(t){return t.getAsync("components")}addBreakpoint(t){this.breakpoints.indexOf(t)===-1&&(this.breakpoints.push(t),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(t){const n=this.breakpoints.indexOf(t);n>-1&&(this.breakpoints.splice(n,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(t,n){this.switches[t.id]=n,this.events.dispatch("components:node-switched",{node:t,branch:n})}getBranch(t){return this.switches[t.id]}createNode(t,n={}){const r=new jo(this.events,t);return n.detached&&this.nodes.detached.push(r),r}components(){return new an(this)}actions(t,n){return new xr(this,t,n)}write(t){const{provider:n,target:r,attributes:o,options:s={},removable:i}=t,a=t.key||Me(),u={changeset:[o,s],target:r,removes:[]};if(n){const l=this.providers[n];l.write(a,r,o,s),u.removes.push(()=>{l.remove(a)})}return this.changesets.push(u),this.nodes.all.forEach(l=>{if(r.match(l)){let f=()=>{};o.properties&&(f=l.writeProperties(o.properties,s,i)),o.context&&(f=l.writeContext(o.context,s,i)),o.layout&&(f=l.writeContext(o.layout,s,i)),u.removes.push(f)}}),()=>{if(i){u.removes.forEach(f=>f());const l=this.changesets.indexOf(u);l>-1&&this.changesets.splice(l,1)}}}addComponentHandler(t,n){this.customComponentHandler.add(t,n)}getComponentHandler(t){return this.customComponentHandler.get(t)}dispose(){this.subscriptions.forEach(t=>t())}}const Rc=(e,t)=>({id:e.id,type:e.type,name:e.name,branch:t||"default"}),Pc=(e,t,n,r=Me(),o={})=>e.getAsync("components").then(s=>{let i;if(typeof t=="string"){const u=new an(s);u.ofType(t),i=u}else i=t;const a={},c=u=>{const l=a[u.id];return l?Promise.resolve(l.controller):Is.getInstance(e).then(f=>new Ds(f,u,r))};s.events.subscribe("components:node-enter",(u,{node:l})=>{i.match(l)&&c(l).then(f=>{Promise.resolve(n(f)).then(h=>{a[l.id]={dispose:h,controller:f}})})}),s.events.subscribe("components:node-exit",(u,{node:l})=>{const f=a[l.id];f&&(f.dispose&&f.dispose(),o.reuseController||(f.controller.dispose(),delete a[l.id]))})});var mt=(e=>(e.open="open",e.closed="closed",e.hidden="hidden",e))(mt||{});const cn=e=>{const t=p.useContext(yr),n=Fe(),[r,o]=p.useState();return p.useEffect(()=>{if((e||t.id)&&n){const s=n.nodes.get(e||t.id);o(s)}},[e,t.id,n]),r},Re=()=>{const e=p.useRef(!1);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e},Fe=e=>{const t=ye(),[n,r]=p.useState(null),o=Re();return p.useEffect(()=>{Is.getInstance(e||t).then(s=>{o.current&&r(s)})},[o]),n},_c=()=>{const e=cn(),t=Fe(),[n,r]=p.useState([]),o=Re(),s=p.useCallback(i=>{if(t&&o.current&&i){const a=t.getBranch(i),c=i.getChildren(a).map(u=>Rc(u));r(c)}},[o,t,r,e]);return p.useEffect(()=>{e&&s(e)},[e,t]),p.useEffect(()=>{if(t){const[i,a]=Ls(t.events);return i("components:set-layout",(c,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&s(u.node.parent)}),i("components:node-appended",(c,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&s(u.node.parent)}),i("components:node-removed",(c,{parentNode:u})=>{(u===e||u===t.nodes.root)&&s(u)}),()=>{a()}}},[e,t,s]),n},Ac=()=>p.useContext(Rs),Lc=(e,t)=>{const n=sn(),r=ye(),[o,s]=p.useState(void 0),i=Re(),a=e||n.type||"";return p.useEffect(()=>{if(a){let c;return(t||r).getAsync("componentResolver").then(u=>{if(i.current){const l=u.getComponent(a);s(l)}c=u.registerResolver(a,l=>{i.current&&s(l)})}),()=>{c&&c()}}},[i,a,t,r]),o},Vs=e=>{const t=cn(e),n=Fe(),[r,o]=p.useState({}),s=Re();return p.useEffect(()=>{t&&s.current&&o(t.attributes.context)},[s,t]),p.useEffect(()=>{if(n){const i=n.events.subscribe("components:context-changed",(a,c)=>{t===c.node&&s.current&&o(c.node.attributes.context)});return()=>{i()}}},[s,n,t]),r},Dc=()=>p.useContext(As),Mc=()=>{const e=Fe(),t=sn(),[n,r]=p.useState([]),[o,s]=p.useState();return p.useEffect(()=>{if(e&&t){const i=new an(e).withId(t.id),a=e.actions(i,t.type||Me());s(a),n!==null&&(n.forEach(c=>{a.dispatch(c.key,c.data).then(u=>c.resolve(u)).catch(u=>c.reject(u))}),r(null))}},[e,t.id]),(i,a)=>n!==null?new Promise((c,u)=>{n.push({key:i,data:a,resolve:c,reject:u})}):o.dispatch(i,a)},Ee=(e,t,n=window,r=()=>!0)=>{const o=p.useRef(()=>{});p.useEffect(()=>{o.current=t},[t]),p.useEffect(()=>{if(!(n&&r()))return;const i=a=>o.current(a);return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}},[e,n])},zs=e=>{const t=ye(),{events:n}=(e||t).get("$widget");return n},Hs=()=>{const[e,t]=p.useState(!1);return p.useEffect(()=>{const n=()=>{t(!1)},r=o=>{o.keyCode===9&&t(!0)};return window.addEventListener("keydown",r),window.addEventListener("click",n),()=>{window.removeEventListener("keydown",r),window.removeEventListener("click",n)}},[]),e},Ne=(e,t)=>{const[n,r]=p.useState(!1),o=p.useCallback(i=>{const{key:a}=i;a===e&&(r(!0),t&&t(i))},[r,t]),s=p.useCallback(({key:i})=>{i===e&&r(!1)},[r]);return Ee("keydown",o,window),Ee("keyup",s,window),n},Ic=e=>{const t=cn(e),n=Fe(),[r,o]=p.useState({}),s=Re();return p.useEffect(()=>{t&&s.current&&o(t.attributes.layout)},[t,s]),p.useEffect(()=>{if(n){const i=n.events.subscribe("components:layout-changed",(a,c)=>{t===c.node&&s.current&&o(c.node.attributes.layout)});return()=>{i()}}},[n,s,t]),r},ln=e=>{const t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current},Vc=()=>p.useContext(Ps),zc=e=>{const[t,n]=p.useState(),r=ye(),o=Re();return p.useEffect(()=>{let s;const i=(e||r).get("$widget");if(!i)return;const{name:a,invoke:c}=i;return c("renderState").then(u=>{o.current&&n(u)}),(e||r).getAsync("actionResolver").then(u=>{s=u.subscribe(a,(l,f)=>{switch(f){case"close":case"open":o.current&&n(f==="open"?mt.open:mt.closed);break;case"hide":o.current&&n(mt.hidden)}})}),()=>{s&&s()}},[o]),t},wr=()=>p.useContext(_s),Cr=e=>{const t=ye(),n=wr(),[r,o]=p.useState({name:"",params:{}}),s=Re();return p.useEffect(()=>{const i=(e||t).get("$widget");if(!i)return;const{events:a}=i;return a.subscribe("router:change",(u,{next:{routeData:l}})=>{if(s.current){const{name:f,params:h}=l;mo(h),o({name:f,params:h})}})},[s,e,t]),p.useEffect(()=>{if(n&&n.history&&s.current){const i=n.getRouteData(),{name:a,params:c}=i;mo(c),o({name:a,params:c})}},[n,s]),r},Er=e=>{const t=p.useRef(),n=p.useRef(0);let r;const o=p.useCallback(()=>{var u;(u=t.current)==null||u.classList.add("humany-scrolling"),clearTimeout(r),r=setTimeout(()=>{var l;(l=t.current)==null||l.classList.remove("humany-scrolling")},500)},[t]),s=p.useCallback(u=>{n.current=u.touches[0].clientY},[t]),i=u=>a(u)?u===t.current?u:null:u.parentElement?i(u.parentElement):null,a=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,c=p.useCallback(u=>{if(!u.cancelable)return;const l=u.touches[0].clientY,f=i(u.target);if(!f)return;const h=f.scrollTop,g=n.current-l<0?"up":"down",v=h<=0&&g==="up",m=h>=f.scrollHeight-f.offsetHeight&&g==="down";(v||m)&&u.preventDefault(),n.current=l},[t,n]);return Ee("scroll",o,t.current,()=>t.current&&e),Ee("touchstart",s,t.current,()=>t.current&&e),Ee("touchmove",c,t.current,()=>t.current&&e),e?[Hc,t]:["",t]},Hc=`
|
|
65
|
-
overflow-y: ${Wn()===Hn.Chrome||Wn()===Hn.EdgeChromium?"overlay":"auto"};
|
|
29
|
+
`,gs=({onChange:t=()=>{},onEnter:e=()=>{},className:n,...s})=>a.jsx("input",{className:k(n,"humany-checkbox"),onKeyDown:r=>{r.key==="Enter"&&e(r)},onChange:r=>t(r.target.value,r.currentTarget.checked),...D(s)}),Ge=new WeakMap;function ys(){return t=>(Ge.has(t)||Ge.set(t,{}),Ge.get(t))}const et=(t,e,n,...s)=>{const r=`[${t.get("$environment").name||"webprovisions"}] ${n}`;switch(e){case"info":console.info(r,...s);break;case"warning":console.warn(r,...s);break;case"error":console.error(r,...s);break}},pe=t=>{const e=t.container||t;return{info:(n,...s)=>et(e,"info",n,...s),warn:(n,...s)=>et(e,"warning",n,...s),error:(n,...s)=>et(e,"error",n,...s)}},M=ys(),vt=(()=>{let t=0;return()=>++t})(),bt=(t,e,n)=>{const s=M(t).touchQueue.get(e);s&&s.forEach(r=>{r(n,t)})};class xs{constructor(e,n,s,r){this.key=e,this.factory=n,this.parent=s,this.container=r,this.id=vt(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const e=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(e).then(n=>(this.resolved=!0,bt(this.container,this.key,n),n))}return this.value}}class vs{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=vt(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,bt(this.container,this.key,this.value),this.value)}}class bs{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=vt(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const o=this.value(this.parent,this.container);return bt(this.container,this.key,this.value),o}}}class Ct{constructor(e,n,s){this.owner=e,this.name=n,this.parent=s,M(this).resolvers=new Map,M(this).touchQueue=new Map,M(this).children=[]}delete(e){const n=M(this).resolvers,s=Array.from(n.values()).find(r=>r.id===e);return s?(M(this).touchQueue.delete(s.key),Promise.resolve(n.delete(s.key))):this.parent?this.parent.delete(e):Promise.resolve(!1)}clear(){const e=M(this).resolvers,n=Array.from(e.values());return Promise.all(n.map(s=>{if(s.constructed)return Promise.resolve(s.resolve()).then(r=>{if(r!==null&&typeof r=="object"&&typeof r.dispose=="function")return r.dispose.call(r,this,s)})})).then(()=>{n.forEach(s=>this.delete(s.id)),M(this).children.forEach(s=>s.clear())})}detach(){if(this.parent){const e=M(this.parent).children,n=e.indexOf(this);n>-1&&(e.splice(n,1),delete this.parent)}}touch(e,n){const s=M(this).resolvers.get(e);if(s&&s.constructed)Promise.resolve(s.resolve()).then(r=>{n(r,this)});else{const r=M(this).touchQueue;let o=r.get(e);o||(o=[],r.set(e,o)),o.push(n)}return this.parent&&!s?this.parent.touch(e,n):Promise.resolve()}registerAsync(e,n){const s=M(this).resolvers.get(e);s&&!s.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${e}') previously used by a non-async resolver.`);const r=new xs(e,n,s,this);return M(this).resolvers.set(e,r),r.id}registerFactory(e,n){const s=M(this).resolvers.get(e);s&&s.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const r=new bs(e,n,s,this);return M(this).resolvers.set(e,r),r.id}register(e,n){const s=M(this).resolvers.get(e);s&&s.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const r=new vs(e,n,s,this);return M(this).resolvers.set(e,r),r.id}get(e){const n=M(this).resolvers.get(e);if(n)return n.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`You are retrieving an async value (with key '${e}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),n.resolve();if(this.parent)return this.parent.get(e)}getAsync(e){const n=M(this).resolvers.get(e);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&pe(this).warn(`You are retrieving a non-async value (with key '${e}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return n.resolve()}return this.parent?this.parent.getAsync(e):Promise.resolve(void 0)}getMany(...e){const n={};return e.forEach(s=>n[s]=this.get(s)),n}getManyAsync(...e){const n={};return Promise.all(e.map(s=>this.getAsync(s).then(r=>n[s]=r))).then(()=>n)}createChild(e,n){const s=new Ct(e,n,this);return M(this).children.push(s),s}}var Pe=(t=>(t.Implementation="implementation",t.Widget="widget",t))(Pe||{}),ue=(t=>(t.Pre="pre",t.Post="post",t))(ue||{});const Cs=(t,e,n,s)=>{try{const r=new e(n,s);return{name:t,invoke:(o,i)=>{let u;return r[o]&&(u=r[o].call(r,i)),Promise.resolve(u)},getInstance:()=>r}}catch(r){if(r.message&&r.message.indexOf("is not a constructor")>=0)return{name:t,invoke:o=>{let i;return o==="initialize"&&(i=e(n,s)),Promise.resolve(i)},getInstance:()=>e};throw r}};function qt(t,e){return typeof t>"u"?e:t}class ws{constructor(e={}){this.part=e}createCommand(e,n,s){let r;typeof n=="function"?r={scope:Pe.Widget,stage:ue.Post,defaultArgs:void 0,handlerResolver:n}:r={scope:qt(n.scope,Pe.Widget),stage:qt(n.stage,ue.Post),defaultArgs:n.defaultArgs,handlerResolver:s};let o=this.part;const i=e.split(".");return i.forEach((u,c)=>{c===i.length-1?o[u]||(o[u]=()=>r):o=this.part[u]=this.part[u]||{}}),this}get(){return this.part}}const Be=t=>{const e=new ws({});return t(e),e.get()};Be(t=>{t.createCommand("types.register",{scope:Pe.Implementation,stage:ue.Pre},e=>(n,s)=>{e.container.get("$types")[n]=s}).createCommand("type",{stage:ue.Pre},e=>n=>{e.container.register("$type",n)}).createCommand("settings",{stage:ue.Pre,defaultArgs:[null]},e=>n=>{e.events.dispatch("settings:change",n,{bubbles:!0}),e.container.register("$settings",n)}).createCommand("plugin",{stage:ue.Pre},e=>(n,s,r)=>{const{container:o}=e;let i=null,u=n,c=s;typeof n=="string"&&(i=n,u=s,c=r);const d=l=>{const{transformPluginSettings:h}=e.container.get("$environmentOptions"),m=h?h(c||{},i,e.container,u):s;try{const g=Cs(i,u,o,m);o.get("$plugins").push(g),l&&g.invoke("initialize",null)}catch(g){pe(e).warn("Error when initializing plugin",g)}};e.container.get("$instance")?d(!0):e.events.subscribeOnce("widget:instance-created",()=>d(!1))}).createCommand("container.register",e=>(n,s)=>{e.container.register(n,s)}).createCommand("container.registerAsync",e=>(n,s)=>{e.container.registerAsync(n,s)}).createCommand("container.registerFactory",e=>(n,s)=>{e.container.registerFactory(n,s)}).createCommand("container.touch",e=>(n,s)=>{e.container.touch(n,s)}).createCommand("csp",{},e=>n=>{e.container.register("csp",n)})});var fn=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(fn||{});const mn=f.createContext(new Ct),pn=f.createContext(1),wt=f.createContext({id:"",type:"",name:"",branch:""}),gn=f.createContext({}),yn=f.createContext(null),xn=f.createContext(null),Ve=()=>f.useContext(wt),H=()=>f.useContext(mn),$s=(t,e)=>{const n=Ve().id,s=H();return(r,o)=>{(e||s).getAsync("actionResolver").then(i=>{i.action(t||n,r,o)})}},vn=t=>{const e=[];return[(s,r)=>{e.push(t.subscribe(s,r))},()=>{e.forEach(s=>{s()})}]};class We{constructor(e,n=[]){this.platform=e,this.rules=n}match(e){return this.rules.every(n=>!(n.id&&n.id!==e.id||n.type&&n.type!==e.type))}ofType(e){return this.rules.push({type:e}),this}withId(e){return this.rules.push({id:e}),this}select(){return new ks(this.platform,this)}}class bn{constructor(e,n,s){w(this,"actions");w(this,"subscribe");w(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new $t(e,new We(e).withId(n.id),s);const[r,o]=vn(this.platform.events);this.subscribe=r,this.unsubscribe=o}properties(e){return e&&this.node.touchProperties(n=>e(n)),this.node.attributes.properties}context(e){return e&&this.subscribe("components:context-changed",(n,{node:s})=>{s===this.node&&e(this.node.attributes.context)}),this.node.attributes.context}layout(e){return e&&this.subscribe("components:layout-changed",(n,{node:s})=>{s===this.node&&e(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(e,n){this.node.writeProperties(e,n)}writeContext(e,n){this.node.writeProperties(e,n)}writeLayout(e,n){this.node.writeLayout(e,n)}dispose(){this.unsubscribe(),this.actions.dispose()}}class ks{constructor(e,n,s=!0){w(this,"actions");w(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=s,this.actions=new $t(this.platform,this.target)}writeProperties(e,n){this.removes.push(this.platform.write({options:n,attributes:{properties:e},target:this.target,removable:this.clearOnDispose}))}writeContext(e,n){this.removes.push(this.platform.write({options:n,attributes:{context:e},target:this.target,removable:this.clearOnDispose}))}writeLayout(e,n){this.removes.push(this.platform.write({options:n,attributes:{layout:e},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(e=>{e()}),this.actions.dispose()}}const js=(t,e,n)=>{const s=t.concat(),r=(o,i,u)=>{let c=!0;if(s.length){const d=s.shift(),l=(h,m)=>(c=!1,r(h,Object.assign({},i,m),u));return Promise.resolve(d(o,l,u)).then(h=>({...h,cancelled:c}))}return Promise.resolve({data:o,cancelled:!1,options:i})};return r(e,{},n)};class $t{constructor(e,n,s){w(this,"subscriptions",[]);this.platform=e,this.target=n,this.ns=s,this.create=this.create.bind(this)}create(e,n=()=>{}){const s={key:e,fn:n,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(s);const r=()=>{const o=this.platform.actionsState.handlers.indexOf(s);o>-1&&this.platform.actionsState.handlers.splice(o,1)};return this.subscriptions.push(r),r}dispatch(e,n){const s=this.platform.nodes.all.concat(this.platform.nodes.detached),r={},o=this.platform.actionsState.handlers.filter(i=>i.key===e&&(!i.ns||!this.ns||i.ns===this.ns));return Promise.all(o.map(i=>{const u=s.filter(d=>i.target.match(d)&&this.target.match(d)),c=this.platform.actionsState.watchers.filter(d=>d.key===e&&(!d.ns||!this.ns||d.ns===this.ns)&&u.some(l=>d.target.match(l))).map(d=>d.fn);return Promise.all(u.map(d=>{const l=new bn(this.platform,d,this.ns);return js(c,n,l).then(h=>{const{data:m={},options:g,cancelled:y}=h;return Promise.resolve(y?{}:i.fn(m,g,l)).then(p=>{r[d.id]=p})})}))})).then(()=>r)}watch(e,n){let s=e,r=this.ns;const o=e.split(".");o.length>1&&(r=o[0],s=o.splice(1).join("."));const i={fn:n,target:this.target,key:s,ns:r};this.platform.actionsState.watchers.push(i);const u=()=>{const c=this.platform.actionsState.watchers.indexOf(i);c>-1&&this.platform.actionsState.watchers.splice(c,1)};return this.subscriptions.push(u),u}dispose(){this.subscriptions.forEach(e=>e())}}Be(t=>{t.createCommand("components",e=>n=>{e.events.subscribeOnce("components:platform-created",(s,{platform:r})=>{n.handlers&&n.handlers.forEach(([o,i])=>{r.addComponentHandler(o,i)})})})});class Ut{constructor(e,n){w(this,"id");w(this,"type");w(this,"name");w(this,"parent");w(this,"tags",[]);w(this,"children",{});w(this,"changesets",[]);w(this,"attributes");w(this,"mountCount",0);this.events=e,this.id=oe(),this.type=n,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(e,n){let s=e.get("mounted-nodes");return s||(s=new Map,e.register("mounted-nodes",s)),s.has(this)?(process.env.NODE_ENV!=="production"&&O.error("Trying to mount an already mounted component node.",this),()=>{}):(this.events.dispatch("components:node-mounted",{node:this}),this.mountCount===0&&(this.mountCount=this.mountCount+1,this.events.dispatch("components:node-enter",{node:this})),()=>{s.delete(this),this.events.dispatch("components:node-unmounted",{node:this}),this.mountCount=this.mountCount-1,this.mountCount===0&&this.events.dispatch("components:node-exit",{node:this})})}appendChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].push(e),this.events.dispatch("components:node-appended",{node:e})}prependChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].unshift(e),this.events.dispatch("components:node-appended",{node:e})}touchProperties(e,n={},s){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(e,n={},s){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(e,n={},s){const o=[{layout:e},n];return this.changesets.push(o),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!s)return;const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(e,n={},s){const o=[{context:e},n];return this.changesets.push(o),this.events.dispatch("components:set-context",{node:this}),()=>{if(!s)return;const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(e="default"){const n=this.children[e]||[];return n.reduce((s,r,o)=>{const{order:i=o}=r.attributes.layout;return s[i]?s.splice(i,0,r):s[i]=r,s},Array(n.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(e){Object.keys(this.children).forEach(n=>{const s=this.children[n],r=s.indexOf(e);r>-1&&(s.splice(r,1),this.events.dispatch("components:node-removed",{node:e,parentNode:this}))}),delete e.parent}}const Cn=(t,e,n)=>{for(let s=0,r=t.length;s<r&&n(t[s])!==!0;s++){const o=e[t[s].id]||"default",i=t[s].getChildren(o);Cn(i,e,n)}},kt=(t,e,n)=>{if(n(t)!==!0){const s=e[t.id]||"default",r=t.children[s];Cn(r,e,n)}},tt=(t,e)=>{const n=[];return kt(t,e,s=>{n.push(s)}),n},Ss=(t,e,n)=>{let s;return kt(t,e,r=>{if(n(r))return s=r,!0}),s};class Es{constructor(e,n,s){w(this,"all",[]);w(this,"visible",[]);w(this,"detached",[]);this.root=e,this.switches=n,s.subscribe("components:node-appended",(r,o)=>{this.all.push(o.node),this.visible=tt(e,n)}),s.subscribe("components:node-removed",(r,o)=>{let i=this.all.indexOf(o.node);i>-1&&this.all.splice(i,1),i=this.visible.indexOf(o.node),i>-1&&this.visible.splice(i,1),this.visible=tt(e,n)}),s.subscribe("components:node-switched",(r,o)=>{this.visible=tt(e,n)})}query(e={}){const n=[];return kt(this.root,this.switches,s=>{Object.keys(e).every(o=>e[o]===s[o])&&n.push(s)}),n}get(e){return Ss(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class Ls{constructor(){w(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const Ns=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},Rs=t=>t.map(([n,s])=>[Ns(n),n,s]).sort(([n],[s])=>n-s).map(([,n,s])=>[n,s]),nt=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),Q=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(nt(t)&&nt(n))for(const s in n)nt(n[s])?(t[s]||Object.assign(t,{[s]:{}}),Q(t[s],n[s])):Object.assign(t,{[s]:n[s]});return Q(t,...e)},Ms=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),Os=(t,e)=>{let n=[],s=[],r;const o=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const u=new Map,c=Rs(n.map((l,h)=>[l,s[h]])),d=(l,h)=>{var N;const m=u.get(l)||{},g=h.context&&!m.context,y=h.properties&&!m.properties,p=h.layout&&!m.layout;u.set(l,{context:m.context||g,properties:m.properties||y,layout:m.layout||p}),y&&(l.attributes.properties={}),p&&(l.attributes.layout={}),g&&(l.attributes.context=Q({},(N=l.parent)==null?void 0:N.attributes.context));const v=[],j=[],S=[];if(l.changesets.forEach($=>{const[L,Y]=$;Ms(Y.breakpoints,t.breakpoints)&&(y&&(typeof L.properties=="function"?v.push(L.properties):Q(l.attributes.properties,L.properties)),p&&(typeof L.layout=="function"?j.push(L.layout):Q(l.attributes.layout,L.layout)),g&&(typeof L.context=="function"?S.push(L.context):Q(l.attributes.context,L.context)))}),v.forEach($=>{Q(l.attributes.properties,$(l.attributes.properties))}),j.forEach($=>{Q(l.attributes.layout,$(l.attributes.layout))}),S.forEach($=>{Q(l.attributes.context,$(l.attributes.context))}),g||h.recursive){const $=t.getBranch(l),L=h.recursive?h:{context:!!g};l.getChildren($).forEach(Y=>{d(Y,L)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),c.forEach(([l,h])=>{d(l,h)}),n=[],s=[],e(u)},i=()=>{clearTimeout(r),r=setTimeout(o,0)};return(u,c)=>{const d=n.indexOf(u);if(d>-1){const l=s[d];return c.context&&(l.context=!0),c.properties&&(l.properties=!0),c.layout&&(l.layout=!0),c.recursive&&(l.recursive=!0),i()}return n.push(u),s.push(c),i()}};class wn{constructor(e,n={}){w(this,"events");w(this,"breakpoints",[]);w(this,"nodes");w(this,"actionsState",{handlers:[],watchers:[]});w(this,"switches",{});w(this,"changesets",[]);w(this,"subscriptions",[]);w(this,"processNode");w(this,"customComponentHandler",new Ls);this.providers=n,this.events=e.events.createChild(this);const s=new Ut(this.events,"root");s.name=`root-${e.name}`,this.nodes=new Es(s,this.switches,this.events);const r=this.processNode=Os(this,o=>{const i=Array.from(o.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${i.length} node(s) processed:
|
|
30
|
+
${i.map(u=>`${u.name||"<no name>"} (${u.id})
|
|
31
|
+
`)}`),i.forEach(u=>{const c=o.get(u);u.parent&&u.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:u}),c!=null&&c.context&&this.events.dispatch("components:context-changed",{node:u}),c!=null&&c.properties&&this.events.dispatch("components:properties-changed",{node:u}),c!=null&&c.layout&&this.events.dispatch("components:layout-changed",{node:u})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(o=>n[o].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,i)=>{const{node:u}=i;this.changesets.forEach(c=>{const{changeset:d,target:l,removes:h}=c,[m,g]=d;l.match(i.node)&&(m.properties&&h.push(u.writeProperties(m.properties,g)),m.context&&h.push(u.writeContext(m.context,g)),m.layout&&h.push(u.writeLayout(m.layout,g)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,i)=>{r(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(o,i)=>{r(i.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(o,i)=>{r(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(o,i)=>{r(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(o,i)=>{r(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(o,{node:i,branch:u})=>{r(i,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(o,{parentNode:i})=>{r(i,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(e){return e.getAsync("components")}addBreakpoint(e){this.breakpoints.indexOf(e)===-1&&(this.breakpoints.push(e),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(e){const n=this.breakpoints.indexOf(e);n>-1&&(this.breakpoints.splice(n,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(e,n){this.switches[e.id]=n,this.events.dispatch("components:node-switched",{node:e,branch:n})}getBranch(e){return this.switches[e.id]}createNode(e,n={}){const s=new Ut(this.events,e);return n.detached&&this.nodes.detached.push(s),s}components(){return new We(this)}actions(e,n){return new $t(this,e,n)}write(e){const{provider:n,target:s,attributes:r,options:o={},removable:i}=e,u=e.key||oe(),d={changeset:[r,o],target:s,removes:[]};if(n){const l=this.providers[n];l.write(u,s,r,o),d.removes.push(()=>{l.remove(u)})}return this.changesets.push(d),this.nodes.all.forEach(l=>{if(s.match(l)){let h=()=>{};r.properties&&(h=l.writeProperties(r.properties,o,i)),r.context&&(h=l.writeContext(r.context,o,i)),r.layout&&(h=l.writeContext(r.layout,o,i)),d.removes.push(h)}}),()=>{if(i){d.removes.forEach(h=>h());const l=this.changesets.indexOf(d);l>-1&&this.changesets.splice(l,1)}}}addComponentHandler(e,n){this.customComponentHandler.add(e,n)}getComponentHandler(e){return this.customComponentHandler.get(e)}dispose(){this.subscriptions.forEach(e=>e())}}const Ts=(t,e)=>({id:t.id,type:t.type,name:t.name,branch:e||"default"}),Ds=(t,e,n,s=oe(),r={})=>t.getAsync("components").then(o=>{let i;if(typeof e=="string"){const d=new We(o);d.ofType(e),i=d}else i=e;const u={},c=d=>{const l=u[d.id];return l?Promise.resolve(l.controller):wn.getInstance(t).then(h=>new bn(h,d,s))};o.events.subscribe("components:node-enter",(d,{node:l})=>{i.match(l)&&c(l).then(h=>{Promise.resolve(n(h)).then(m=>{u[l.id]={dispose:m,controller:h}})})}),o.events.subscribe("components:node-exit",(d,{node:l})=>{const h=u[l.id];h&&(h.dispose&&h.dispose(),r.reuseController||(h.controller.dispose(),delete u[l.id]))})});var ke=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(ke||{});const _e=t=>{const e=f.useContext(wt),n=de(),[s,r]=f.useState();return f.useEffect(()=>{if((t||e.id)&&n){const o=n.nodes.get(t||e.id);r(o)}},[t,e.id,n]),s},J=()=>{const t=f.useRef(!1);return f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},de=t=>{const e=H(),[n,s]=f.useState(null),r=J();return f.useEffect(()=>{wn.getInstance(t||e).then(o=>{r.current&&s(o)})},[r]),n},As=()=>{const t=_e(),e=de(),[n,s]=f.useState([]),r=J(),o=f.useCallback(i=>{if(e&&r.current&&i){const u=e.getBranch(i),c=i.getChildren(u).map(d=>Ts(d));s(c)}},[r,e,s,t]);return f.useEffect(()=>{t&&o(t)},[t,e]),f.useEffect(()=>{if(e){const[i,u]=vn(e.events);return i("components:set-layout",(c,d)=>{(t===d.node.parent||d.node.parent===e.nodes.root)&&o(d.node.parent)}),i("components:node-appended",(c,d)=>{(t===d.node.parent||d.node.parent===e.nodes.root)&&o(d.node.parent)}),i("components:node-removed",(c,{parentNode:d})=>{(d===t||d===e.nodes.root)&&o(d)}),()=>{u()}}},[t,e,o]),n},zs=()=>f.useContext(pn),Ps=(t,e)=>{const n=Ve(),s=H(),[r,o]=f.useState(void 0),i=J(),u=t||n.type||"";return f.useEffect(()=>{if(u){let c;return(e||s).getAsync("componentResolver").then(d=>{if(i.current){const l=d.getComponent(u);o(l)}c=d.registerResolver(u,l=>{i.current&&o(l)})}),()=>{c&&c()}}},[i,u,e,s]),r},$n=t=>{const e=_e(t),n=de(),[s,r]=f.useState({}),o=J();return f.useEffect(()=>{e&&o.current&&r(e.attributes.context)},[o,e]),f.useEffect(()=>{if(n){const i=n.events.subscribe("components:context-changed",(u,c)=>{e===c.node&&o.current&&r(c.node.attributes.context)});return()=>{i()}}},[o,n,e]),s},Hs=()=>f.useContext(xn),Is=()=>{const t=de(),e=Ve(),[n,s]=f.useState([]),[r,o]=f.useState();return f.useEffect(()=>{if(t&&e){const i=new We(t).withId(e.id),u=t.actions(i,e.type||oe());o(u),n!==null&&(n.forEach(c=>{u.dispatch(c.key,c.data).then(d=>c.resolve(d)).catch(d=>c.reject(d))}),s(null))}},[t,e.id]),(i,u)=>n!==null?new Promise((c,d)=>{n.push({key:i,data:u,resolve:c,reject:d})}):r.dispatch(i,u)},Z=(t,e,n=window,s=()=>!0)=>{const r=f.useRef(()=>{});f.useEffect(()=>{r.current=e},[e]),f.useEffect(()=>{if(!(n&&s()))return;const i=u=>r.current(u);return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}},[t,n])},kn=t=>{const e=H(),{events:n}=(t||e).get("$widget");return n},jn=()=>{const[t,e]=f.useState(!1);return f.useEffect(()=>{const n=()=>{e(!1)},s=r=>{r.keyCode===9&&e(!0)};return window.addEventListener("keydown",s),window.addEventListener("click",n),()=>{window.removeEventListener("keydown",s),window.removeEventListener("click",n)}},[]),t},U=(t,e)=>{const[n,s]=f.useState(!1),r=f.useCallback(i=>{const{key:u}=i;u===t&&(s(!0),e&&e(i))},[s,e]),o=f.useCallback(({key:i})=>{i===t&&s(!1)},[s]);return Z("keydown",r,window),Z("keyup",o,window),n},Bs=t=>{const e=_e(t),n=de(),[s,r]=f.useState({}),o=J();return f.useEffect(()=>{e&&o.current&&r(e.attributes.layout)},[e,o]),f.useEffect(()=>{if(n){const i=n.events.subscribe("components:layout-changed",(u,c)=>{e===c.node&&o.current&&r(c.node.attributes.layout)});return()=>{i()}}},[n,o,e]),s},Fe=t=>{const e=f.useRef();return f.useEffect(()=>{e.current=t}),e.current},Vs=()=>f.useContext(gn),Ws=t=>{const[e,n]=f.useState(),s=H(),r=J();return f.useEffect(()=>{let o;const i=(t||s).get("$widget");if(!i)return;const{name:u,invoke:c}=i;return c("renderState").then(d=>{r.current&&n(d)}),(t||s).getAsync("actionResolver").then(d=>{o=d.subscribe(u,(l,h)=>{switch(h){case"close":case"open":r.current&&n(h==="open"?ke.open:ke.closed);break;case"hide":r.current&&n(ke.hidden)}})}),()=>{o&&o()}},[r]),e},jt=()=>f.useContext(yn),St=t=>{const e=H(),n=jt(),[s,r]=f.useState({name:"",params:{}}),o=J();return f.useEffect(()=>{const i=(t||e).get("$widget");if(!i)return;const{events:u}=i;return u.subscribe("router:change",(d,{next:{routeData:l}})=>{if(o.current){const{name:h,params:m}=l;Kt(m),r({name:h,params:m})}})},[o,t,e]),f.useEffect(()=>{if(n&&n.history&&o.current){const i=n.getRouteData(),{name:u,params:c}=i;Kt(c),r({name:u,params:c})}},[n,o]),s},Et=t=>{const e=f.useRef(),n=f.useRef(0);let s;const r=f.useCallback(()=>{var d;(d=e.current)==null||d.classList.add("humany-scrolling"),clearTimeout(s),s=setTimeout(()=>{var l;(l=e.current)==null||l.classList.remove("humany-scrolling")},500)},[e]),o=f.useCallback(d=>{n.current=d.touches[0].clientY},[e]),i=d=>u(d)?d===e.current?d:null:d.parentElement?i(d.parentElement):null,u=d=>d.scrollWidth>d.clientWidth||d.scrollHeight>d.clientHeight,c=f.useCallback(d=>{if(!d.cancelable)return;const l=d.touches[0].clientY,h=i(d.target);if(!h)return;const m=h.scrollTop,g=n.current-l<0?"up":"down",y=m<=0&&g==="up",p=m>=h.scrollHeight-h.offsetHeight&&g==="down";(y||p)&&d.preventDefault(),n.current=l},[e,n]);return Z("scroll",r,e.current,()=>e.current&&t),Z("touchstart",o,e.current,()=>e.current&&t),Z("touchmove",c,e.current,()=>e.current&&t),t?[_s,e]:["",e]},_s=`
|
|
32
|
+
overflow-y: ${lt()===ct.Chrome||lt()===ct.EdgeChromium?"overlay":"auto"};
|
|
66
33
|
overflow-x: hidden;
|
|
67
34
|
-ms-overflow-style: none; /* IE 10+ */
|
|
68
35
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -89,30 +56,30 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
89
56
|
background-color: #7F7F7F;
|
|
90
57
|
}
|
|
91
58
|
}
|
|
92
|
-
`,
|
|
59
|
+
`,Fs=()=>{const[t,e]=f.useState(null),n=H(),s=J();return f.useEffect(()=>{n.get("settings").then(r=>{s.current&&e(r)})},[s]),t},Lt=(t=!1)=>{const[e,n]=f.useState(t),s=f.useCallback(r=>{n(typeof r=="boolean"?r:o=>!o)},[]);return[e,s]},Zs=t=>{const e=H(),n=de(),s=e.get("widgetDOMElement"),[r,o]=f.useState(null),[i,u]=f.useState(null),c=J();f.useEffect(()=>{if(n&&c.current){const l=n.nodes.all.find(m=>m.name==="root-area"),h=n.nodes.all.find(m=>m.type==="view");if(!(h!=null&&h.attributes.properties.animation)&&!(l!=null&&l.attributes.properties.animation))t();else{const m=(p="")=>s==null?void 0:s.querySelector(`[data-node-id="${p}"]`),g=m(h==null?void 0:h.id);g&&o(g);const y=m(l==null?void 0:l.id);y&&u(y)}}},[n,e,c]);const d=f.useCallback(l=>{c.current&&(l.target===r||l.target===i)&&t()},[t,c,r,i]);Z("transitionend",d,r),Z("transitionend",d,i)},Se=(t,e,n=[],s)=>{const r=kn(s);return f.useEffect(()=>{if(r){const o=r.subscribe(t,e);return()=>{o()}}},[r].concat(n)),o=>r==null?void 0:r.dispatch(t,o)},Ze=(t,e)=>{const n=Se("widget:menu-toggled",(s,r)=>{r!==t&&e()});return()=>n(t)},Ce=f.forwardRef(({className:t,children:e,...n},s)=>a.jsx("span",{ref:s,className:k(t,"humany-text"),...D(n),children:e})),Nt=t=>C.css`
|
|
93
60
|
display: flex;
|
|
94
61
|
justify-content: center;
|
|
95
62
|
flex-direction: column;
|
|
96
63
|
background: #ffffff;
|
|
97
|
-
border-radius: ${
|
|
98
|
-
border: ${
|
|
99
|
-
box-shadow: ${
|
|
100
|
-
${
|
|
101
|
-
`,
|
|
64
|
+
border-radius: ${t.theme.borderRadius};
|
|
65
|
+
border: ${t.theme.border};
|
|
66
|
+
box-shadow: ${t.theme.boxShadow||"none"};
|
|
67
|
+
${t["data-loading"]&&"min-height: 150px;"}
|
|
68
|
+
`,Sn=t=>{var e,n,s;return C.css`
|
|
102
69
|
cursor: pointer;
|
|
103
70
|
text-align: center;
|
|
104
71
|
border: none;
|
|
105
72
|
font-weight: 300;
|
|
106
|
-
padding: ${(t
|
|
107
|
-
border-radius: ${
|
|
108
|
-
font-family: ${(n=
|
|
109
|
-
font-size: ${(
|
|
110
|
-
`},
|
|
111
|
-
${
|
|
112
|
-
border: 1px solid ${
|
|
113
|
-
background-color: ${
|
|
114
|
-
|
|
115
|
-
color: ${
|
|
73
|
+
padding: ${(e=t.theme.sizes)==null?void 0:e.normal};
|
|
74
|
+
border-radius: ${t.theme.borderRadius};
|
|
75
|
+
font-family: ${(n=t.theme.fonts)==null?void 0:n.type};
|
|
76
|
+
font-size: ${(s=t.theme.fonts)==null?void 0:s.normal};
|
|
77
|
+
`},Rt=t=>{var i;const{primaryColor:e,secondaryColor:n,active:s,theme:r,disabled:o}=t;return C.css`
|
|
78
|
+
${Sn(t)}
|
|
79
|
+
border: 1px solid ${s?n:e};
|
|
80
|
+
background-color: ${s?e:n};
|
|
81
|
+
|
|
82
|
+
color: ${s?n:e};
|
|
116
83
|
transition: background-color 200ms ease-out, color 200ms ease-out;
|
|
117
84
|
|
|
118
85
|
span,
|
|
@@ -120,13 +87,13 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
120
87
|
p,
|
|
121
88
|
a {
|
|
122
89
|
transition: color 200ms ease-out;
|
|
123
|
-
color: ${
|
|
124
|
-
font-size: ${(i=
|
|
90
|
+
color: ${s?n:e};
|
|
91
|
+
font-size: ${(i=r.fonts)==null?void 0:i.normal};
|
|
125
92
|
}
|
|
126
93
|
|
|
127
|
-
${!
|
|
94
|
+
${!o&&C.css`
|
|
128
95
|
&:hover {
|
|
129
|
-
background-color: ${
|
|
96
|
+
background-color: ${e};
|
|
130
97
|
color: ${n};
|
|
131
98
|
|
|
132
99
|
span,
|
|
@@ -138,46 +105,46 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
138
105
|
}
|
|
139
106
|
|
|
140
107
|
&:focus-visible {
|
|
141
|
-
${
|
|
108
|
+
${K(t)};
|
|
142
109
|
}
|
|
143
110
|
`}
|
|
144
|
-
`}
|
|
145
|
-
outline: ${(t
|
|
146
|
-
color: ${(
|
|
111
|
+
`},K=t=>{var e,n,s;return C.css`
|
|
112
|
+
outline: ${(e=t.theme.accessibility)==null?void 0:e.border};
|
|
113
|
+
color: ${(s=(n=t.theme.accessibility)==null?void 0:n.colors)==null?void 0:s.inactiveText};
|
|
147
114
|
border-color: transparent;
|
|
148
|
-
`},
|
|
149
|
-
${
|
|
115
|
+
`},En=t=>C.css`
|
|
116
|
+
${K(t)}
|
|
150
117
|
text-decoration: underline;
|
|
151
|
-
`,
|
|
152
|
-
${
|
|
153
|
-
outline-offset: ${(t
|
|
154
|
-
`},
|
|
118
|
+
`,dt=t=>{var e;return C.css`
|
|
119
|
+
${K(t)}
|
|
120
|
+
outline-offset: ${(e=t.theme.sizes)==null?void 0:e.small};
|
|
121
|
+
`},Mt=x(ie)`
|
|
155
122
|
position: absolute;
|
|
156
|
-
top: ${
|
|
157
|
-
right: ${
|
|
123
|
+
top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
|
|
124
|
+
right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
|
|
158
125
|
z-index: 1;
|
|
159
126
|
|
|
160
127
|
svg {
|
|
161
|
-
stroke: ${
|
|
128
|
+
stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
162
129
|
}
|
|
163
130
|
|
|
164
131
|
&:focus-visible {
|
|
165
|
-
${
|
|
166
|
-
padding: ${
|
|
132
|
+
${K}
|
|
133
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
|
|
167
134
|
height: 15px;
|
|
168
135
|
box-sizing: content-box;
|
|
169
136
|
}
|
|
170
|
-
`,
|
|
171
|
-
font-size: ${
|
|
137
|
+
`,xe=x(Ce)`
|
|
138
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
172
139
|
font-weight: normal;
|
|
173
140
|
line-height: 1.2em;
|
|
174
|
-
color: ${
|
|
175
|
-
`,
|
|
141
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
142
|
+
`,Ke=t=>{var e;return C.css`
|
|
176
143
|
padding: 0;
|
|
177
144
|
margin: 0;
|
|
178
145
|
list-style: none;
|
|
179
146
|
> li {
|
|
180
|
-
margin: 0 0 ${(t
|
|
147
|
+
margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal};
|
|
181
148
|
white-space: nowrap;
|
|
182
149
|
text-overflow: ellipsis;
|
|
183
150
|
min-width: 0;
|
|
@@ -191,24 +158,24 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
191
158
|
> li:last-of-type {
|
|
192
159
|
margin: 0;
|
|
193
160
|
}
|
|
194
|
-
`},
|
|
161
|
+
`},Ee=t=>{var e,n,s,r;return C.css`
|
|
195
162
|
> div {
|
|
196
|
-
${
|
|
197
|
-
margin: 0 0 ${(t
|
|
198
|
-
font-size: ${(n=
|
|
163
|
+
${re(t)("> h1",C.css`
|
|
164
|
+
margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal};
|
|
165
|
+
font-size: ${(n=t.theme.fonts)==null?void 0:n.medium};
|
|
199
166
|
font-weight: normal;
|
|
200
167
|
line-height: 1.8em;
|
|
201
|
-
color: ${(
|
|
168
|
+
color: ${(s=t.theme.colors)==null?void 0:s.text};
|
|
202
169
|
`)}
|
|
203
170
|
}
|
|
204
171
|
> ul {
|
|
205
|
-
${
|
|
172
|
+
${Ke(t)}
|
|
206
173
|
}
|
|
207
|
-
${
|
|
174
|
+
${re(t)("h1",C.css`
|
|
208
175
|
display: flex;
|
|
209
176
|
align-items: center;
|
|
210
177
|
i {
|
|
211
|
-
margin: 7px ${(
|
|
178
|
+
margin: 7px ${(r=t.theme.sizes)==null?void 0:r.normal} 0 0;
|
|
212
179
|
width: 24px;
|
|
213
180
|
display: inline-block;
|
|
214
181
|
vertical-align: text-bottom;
|
|
@@ -218,11 +185,11 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
218
185
|
text-align: center;
|
|
219
186
|
}
|
|
220
187
|
`)}
|
|
221
|
-
`},
|
|
222
|
-
font-size: ${(t
|
|
188
|
+
`},Ln=t=>{var e,n,s,r,o,i;return C.css`
|
|
189
|
+
font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
|
|
223
190
|
font-weight: 300;
|
|
224
191
|
line-height: 1.5em;
|
|
225
|
-
color: ${(n=
|
|
192
|
+
color: ${(n=t.theme.colors)==null?void 0:n.text};
|
|
226
193
|
|
|
227
194
|
h1,
|
|
228
195
|
h2,
|
|
@@ -243,9 +210,9 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
243
210
|
}
|
|
244
211
|
|
|
245
212
|
a {
|
|
246
|
-
color: ${(
|
|
213
|
+
color: ${(s=t.theme.colors)==null?void 0:s.link};
|
|
247
214
|
&:focus-visible {
|
|
248
|
-
${
|
|
215
|
+
${En(t)};
|
|
249
216
|
}
|
|
250
217
|
}
|
|
251
218
|
|
|
@@ -256,35 +223,35 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
256
223
|
|
|
257
224
|
p {
|
|
258
225
|
word-break: break-word;
|
|
259
|
-
margin: ${(
|
|
226
|
+
margin: ${(r=t.theme.sizes)==null?void 0:r.normal} 0;
|
|
260
227
|
}
|
|
261
228
|
|
|
262
229
|
p:first-child {
|
|
263
|
-
margin: 0 0 ${(
|
|
230
|
+
margin: 0 0 ${(o=t.theme.sizes)==null?void 0:o.normal};
|
|
264
231
|
}
|
|
265
232
|
|
|
266
233
|
p:last-child {
|
|
267
|
-
margin: ${(i=
|
|
234
|
+
margin: ${(i=t.theme.sizes)==null?void 0:i.normal} 0 0;
|
|
268
235
|
}
|
|
269
236
|
|
|
270
237
|
p:only-child {
|
|
271
238
|
margin: 0;
|
|
272
239
|
}
|
|
273
|
-
`},ct=({elementId:e="humany-portal-elements",parent:t=document.body,children:n})=>{const[r]=p.useState(()=>{const o=document.getElementById(e)||document.createElement("div");return o.id=e,o});return p.useEffect(()=>(t.appendChild(r),()=>{r.childElementCount<=1&&r.remove()}),[r]),ht.createPortal(n,r)},we=({text:e="",backgroundSize:t="contain",size:n=12,symbol:r={content:"",type:""},elementStyle:o={},className:s,...i})=>{const{type:a,content:c}=r,u={"aria-label":e,role:"presentation"};switch(a){case"Uri":{const l={backgroundSize:t,backgroundImage:`url('${c}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return d.jsx("i",{className:q(s,"humany-icon","humany-custom-icon"),title:e,style:{...l,...o},...u,...i})}case"Svg":{const l={className:q(s,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,ref:null},f={minWidth:`${n}`};switch(c){case"search":return d.jsxs("svg",{viewBox:"0 0 32 30",...l,children:[d.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),d.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return d.jsxs("svg",{viewBox:"0 0 27 27",...l,children:[d.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),d.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),d.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return d.jsxs("svg",{viewBox:"0 0 13 13",...l,children:[d.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),d.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return d.jsxs("svg",{viewBox:"0 0 14 14",style:f,...l,children:[d.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),d.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return d.jsxs("svg",{viewBox:"0 0 14 14",style:f,...l,children:[d.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),d.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return d.jsxs(Fc,{viewBox:"0 0 14 14",style:f,...l,children:[d.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),d.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return d.jsxs("svg",{viewBox:"0 0 14 14",style:f,...l,children:[d.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),d.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return d.jsxs("svg",{viewBox:"0 0 18 18",...l,children:[d.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),d.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return d.jsxs("svg",{viewBox:"0 0 19 19",...l,children:[d.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),d.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return d.jsx("svg",{viewBox:"0 0 20 17",...l,children:d.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return d.jsxs("svg",{viewBox:"-2 -3 40 40",...l,children:[d.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),d.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),d.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),d.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return d.jsxs("svg",{viewBox:"0 0 26 24",...l,children:[d.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),d.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return d.jsxs("svg",{viewBox:"0 0 36 30",...l,children:[d.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),d.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),d.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),d.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),d.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return d.jsx("svg",{viewBox:"0 -10 22 22",...l,children:d.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return d.jsx("svg",{viewBox:"0 0 18 14",...l,children:d.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return d.jsxs("svg",{viewBox:"0 0 19 17",...l,children:[d.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),d.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return d.jsxs("svg",{viewBox:"0 0 16 17",...l,children:[d.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),d.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),d.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),d.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),d.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),d.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return d.jsx("svg",{viewBox:"0 0 19 19",...l,children:d.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return d.jsxs("svg",{viewBox:"0 0 17 17",...l,children:[d.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),d.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return d.jsxs("svg",{viewBox:"0 0 16 2",...l,children:[d.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),d.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),d.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return d.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[d.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return f.minWidth&&typeof f.minWidth=="number"&&(f.minWidth=`${f.minWidth}px`),d.jsxs("svg",{viewBox:"0 0 25 25",...l,style:f,children:[d.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return d.jsx("svg",{viewBox:"0 0 13 12",...l,children:d.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return d.jsx("svg",{viewBox:"0 0 13 12",...l,children:d.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return d.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return d.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return d.jsx(tt,{className:s,faIcon:c,title:e,...i});default:case"Text":return e?d.jsx("i",{className:q(s,"humany-letter-symbol"),title:e,...u,...i,children:e.substring(0,2)}):null}},Fc=N.svg`
|
|
240
|
+
`},we=({elementId:t="humany-portal-elements",parent:e=document.body,children:n})=>{const[s]=f.useState(()=>{const r=document.getElementById(t)||document.createElement("div");return r.id=t,r});return f.useEffect(()=>(e.appendChild(s),()=>{s.childElementCount<=1&&s.remove()}),[s]),es.createPortal(n,s)},V=({text:t="",backgroundSize:e="contain",size:n=12,symbol:s={content:"",type:""},elementStyle:r={},className:o,...i})=>{const{type:u,content:c}=s,d={"aria-label":t,role:"presentation"};switch(u){case"Uri":{const l={backgroundSize:e,backgroundImage:`url('${c}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return a.jsx("i",{className:k(o,"humany-icon","humany-custom-icon"),title:t,style:{...l,...r},...d,...i})}case"Svg":{const l={className:k(o,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,ref:null},h={minWidth:`${n}`};switch(c){case"search":return a.jsxs("svg",{viewBox:"0 0 32 30",...l,children:[a.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),a.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return a.jsxs("svg",{viewBox:"0 0 27 27",...l,children:[a.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),a.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),a.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return a.jsxs("svg",{viewBox:"0 0 13 13",...l,children:[a.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),a.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return a.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),a.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return a.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),a.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return a.jsxs(Ks,{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),a.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return a.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),a.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return a.jsxs("svg",{viewBox:"0 0 18 18",...l,children:[a.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),a.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return a.jsxs("svg",{viewBox:"0 0 19 19",...l,children:[a.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),a.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return a.jsx("svg",{viewBox:"0 0 20 17",...l,children:a.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return a.jsxs("svg",{viewBox:"-2 -3 40 40",...l,children:[a.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),a.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),a.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),a.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return a.jsxs("svg",{viewBox:"0 0 26 24",...l,children:[a.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),a.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return a.jsxs("svg",{viewBox:"0 0 36 30",...l,children:[a.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),a.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),a.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),a.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),a.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return a.jsx("svg",{viewBox:"0 -10 22 22",...l,children:a.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return a.jsx("svg",{viewBox:"0 0 18 14",...l,children:a.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return a.jsxs("svg",{viewBox:"0 0 19 17",...l,children:[a.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),a.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return a.jsxs("svg",{viewBox:"0 0 16 17",...l,children:[a.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),a.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),a.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),a.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),a.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),a.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return a.jsx("svg",{viewBox:"0 0 19 19",...l,children:a.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return a.jsxs("svg",{viewBox:"0 0 17 17",...l,children:[a.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),a.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return a.jsxs("svg",{viewBox:"0 0 16 2",...l,children:[a.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),a.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),a.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return a.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[a.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return h.minWidth&&typeof h.minWidth=="number"&&(h.minWidth=`${h.minWidth}px`),a.jsxs("svg",{viewBox:"0 0 25 25",...l,style:h,children:[a.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return a.jsx("svg",{viewBox:"0 0 13 12",...l,children:a.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return a.jsx("svg",{viewBox:"0 0 13 12",...l,children:a.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return a.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return a.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return a.jsx(be,{className:o,faIcon:c,title:t,...i});default:case"Text":return t?a.jsx("i",{className:k(o,"humany-letter-symbol"),title:t,...d,...i,children:t.substring(0,2)}):null}},Ks=x.svg`
|
|
274
241
|
transform: rotate(180deg);
|
|
275
|
-
`,
|
|
276
|
-
font-family: ${
|
|
277
|
-
font-size: ${
|
|
242
|
+
`,Ys={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},ve=({variant:t,component:e,className:n,children:s})=>{const{typographyVariantMapping:r={}}=$n(),o={...Ys,...r},i=e||o[t]||"span";return a.jsx(qs,{className:n,as:i,children:s})},qs=x.span``;var Nn=(t=>(t.SlideInLeft="slide-in-left",t.SlideInRight="slide-in-right",t.SlideInBottom="slide-in-bottom",t.SlideInTop="slide-in-top",t))(Nn||{});const Us=300,Rn=({className:t,children:e,header:n,onToggle:s,trigger:r,fullScreen:o=!1,closeButtonAriaLabel:i,animation:u={type:"slide-in-bottom"}})=>{const{duration:c=Us}=u,d=f.useRef(),l=f.useRef(),[h,m]=Et(!0),[g,y]=Lt(),p=Fe(g),v=f.useRef(oe());f.useEffect(()=>{s&&s(g)},[g]);const j=U("Escape");f.useEffect(()=>{j&&y(!1)},[j]),Z("click",$=>{const{target:L}=$;!l.current||!m.current||!L||l.current!==L&&m.current!==L&&!m.current.contains(L)&&!l.current.contains(L)&&y(!1)},window);const S=Ze(v.current,()=>{y(!1)});Se("router:changed",()=>{y(!1)}),f.useEffect(()=>{g&&d.current?d.current.focus():!g&&l.current&&p&&l.current.focus()},[g,d.current,l.current]);const N=tr[u.type];return a.jsxs(a.Fragment,{children:[a.jsx(gt.CSSTransition,{in:g,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:c,children:a.jsx(we,{children:a.jsxs(N,{duration:c,fullScreen:o,className:k(t,"humany-drawer",`humany-drawer-${v.current}`),clientHeight:document.body.clientHeight,css:h,ref:m,children:[a.jsx(Mt,{onClick:()=>y(!1),tabIndex:0,ref:d,"aria-label":i,children:a.jsx(V,{symbol:{type:"Svg",content:"close"}})}),!!n&&a.jsx(Js,{variant:"h1",className:"humany-drawer-header",children:n}),e]})})}),f.cloneElement(r,{onClick:$=>{y(),S()},ref:l,"aria-label":r.props.title,"aria-expanded":g})]})},Ye=x.div`
|
|
243
|
+
font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
|
|
244
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
278
245
|
position: fixed;
|
|
279
246
|
bottom: 0;
|
|
280
247
|
left: 0;
|
|
281
|
-
border: ${
|
|
248
|
+
border: ${t=>t.theme.border};
|
|
282
249
|
width: 100%;
|
|
283
|
-
box-shadow: ${
|
|
250
|
+
box-shadow: ${t=>t.theme.boxShadow};
|
|
284
251
|
background: #ffffff;
|
|
285
|
-
${
|
|
286
|
-
`,
|
|
287
|
-
padding: ${
|
|
252
|
+
${t=>t.css&&t.css}
|
|
253
|
+
`,Js=x(ve)`
|
|
254
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
|
|
288
255
|
margin: 0;
|
|
289
256
|
text-align: center;
|
|
290
257
|
border-bottom: #eeeeee 1px solid;
|
|
@@ -294,14 +261,14 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
294
261
|
justify-content: center;
|
|
295
262
|
align-items: center;
|
|
296
263
|
font-weight: bold;
|
|
297
|
-
color: ${
|
|
298
|
-
font-size: ${
|
|
264
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
265
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
299
266
|
line-height: 1.2em;
|
|
300
|
-
`,
|
|
301
|
-
transition: ${
|
|
302
|
-
`,
|
|
267
|
+
`,qe=t=>C.css`
|
|
268
|
+
transition: ${t.duration}ms;
|
|
269
|
+
`,Xs=x(Ye)`
|
|
303
270
|
max-height: 0;
|
|
304
|
-
${
|
|
271
|
+
${qe}
|
|
305
272
|
|
|
306
273
|
&.humany-drawer-transition-enter {
|
|
307
274
|
max-height: 0;
|
|
@@ -309,17 +276,17 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
309
276
|
&.humany-drawer-transition-enter-active,
|
|
310
277
|
&.humany-drawer-transition-enter-done,
|
|
311
278
|
&.humany-drawer-transition-exit {
|
|
312
|
-
max-height: ${
|
|
279
|
+
max-height: ${t=>t.fullScreen?"100%":"400px"};
|
|
313
280
|
}
|
|
314
281
|
|
|
315
282
|
&.humany-drawer-transition-exit-active,
|
|
316
283
|
&.humany-drawer-transition-exit-done {
|
|
317
284
|
max-height: 0;
|
|
318
285
|
}
|
|
319
|
-
`,
|
|
320
|
-
${
|
|
286
|
+
`,Qs=x(Ye)`
|
|
287
|
+
${qe}
|
|
321
288
|
transform: translateX(100%);
|
|
322
|
-
height: ${
|
|
289
|
+
height: ${t=>t.fullScreen?"100%":"auto"};
|
|
323
290
|
|
|
324
291
|
&.humany-drawer-transition-enter {
|
|
325
292
|
transform: translateX(100%);
|
|
@@ -334,10 +301,10 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
334
301
|
&.humany-drawer-transition-exit-done {
|
|
335
302
|
transform: translateX(100%);
|
|
336
303
|
}
|
|
337
|
-
`,
|
|
338
|
-
${
|
|
304
|
+
`,Gs=x(Ye)`
|
|
305
|
+
${qe}
|
|
339
306
|
transform: translateX(-100%);
|
|
340
|
-
height: ${
|
|
307
|
+
height: ${t=>t.fullScreen?"100%":"auto"};
|
|
341
308
|
|
|
342
309
|
&.humany-drawer-transition-enter {
|
|
343
310
|
transform: translateX(-100%);
|
|
@@ -352,8 +319,8 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
352
319
|
&.humany-drawer-transition-exit-done {
|
|
353
320
|
transform: translateX(-100%);
|
|
354
321
|
}
|
|
355
|
-
`,
|
|
356
|
-
${
|
|
322
|
+
`,er=x(Ye)`
|
|
323
|
+
${qe}
|
|
357
324
|
bottom: unset;
|
|
358
325
|
top: 0;
|
|
359
326
|
height: 0;
|
|
@@ -364,51 +331,51 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
364
331
|
&.humany-drawer-transition-enter-active,
|
|
365
332
|
&.humany-drawer-transition-enter-done,
|
|
366
333
|
&.humany-drawer-transition-exit {
|
|
367
|
-
height: ${
|
|
334
|
+
height: ${t=>t.clientHeight}px;
|
|
368
335
|
}
|
|
369
336
|
|
|
370
337
|
&.humany-drawer-transition-exit-active,
|
|
371
338
|
&.humany-drawer-transition-exit-done {
|
|
372
339
|
height: 0;
|
|
373
340
|
}
|
|
374
|
-
`,
|
|
375
|
-
${
|
|
376
|
-
padding: ${
|
|
341
|
+
`,tr={["slide-in-bottom"]:Xs,["slide-in-right"]:Qs,["slide-in-left"]:Gs,["slide-in-top"]:er},Mn=(t,e,n)=>{const[s,r]=f.useState(0),[o,i]=f.useState(0),u=f.useCallback((c,d)=>{if(c.preventDefault(),d){const l=d.getBoundingClientRect();r(Math.max(document.body.clientWidth-l.right,1)),i(l.bottom+window.scrollY)}},[s,o,r,i]);return f.useEffect(()=>{if(!n||!t)return;const c=n.getBoundingClientRect(),d={x:s,y:o};c.left<0&&(d.x=0),c.bottom>window.innerHeight&&(d.y=0),d.x!==s&&r(d.x),d.y!==o&&i(d.y)},[n,t,e]),[{x:s,y:o},u]},Ot=f.forwardRef(({className:t="",children:e=null,trigger:n,closeButtonAriaLabel:s,...r},o)=>{const i=f.useRef(),u=f.useRef(),c=f.useRef();f.useImperativeHandle(o,()=>c.current,[c.current]);const d=f.useRef(oe()),[l,h]=f.useState(!1),m=Fe(l),[{x:g,y},p]=Mn(l,d.current,c.current),v=U("Escape");f.useEffect(()=>{v&&h(!1)},[v]),f.useEffect(()=>{l&&i.current?i.current.focus():!l&&u.current&&m&&u.current.focus()},[l,i.current,u.current]),Z("click",N=>{const{target:$}=N;!c.current||!$||c.current!==$&&!c.current.contains($)&&h(!1)},window),Se("router:changed",()=>{h(!1)});const j=Ze(d.current,()=>{h(!1)}),S=f.useCallback(N=>{N.stopPropagation(),p(N,u.current),h(!l),j()},[j,p,h]);return a.jsxs(a.Fragment,{children:[l&&a.jsx(we,{children:a.jsxs(nr,{className:k("humany-dropdown",`humany-dropdown-${d.current}`,t),...r,x:g,y,ref:c,children:[a.jsx(Mt,{onClick:()=>h(!1),tabIndex:0,ref:i,"aria-label":s,children:a.jsx(V,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:S,ref:u,"aria-label":n.props.title,"aria-expanded":l})]})}),nr=x.div`
|
|
342
|
+
${Nt}
|
|
343
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
|
|
377
344
|
min-width: 150px;
|
|
378
345
|
position: absolute;
|
|
379
|
-
box-shadow: ${
|
|
346
|
+
box-shadow: ${t=>t.theme.boxShadow};
|
|
380
347
|
|
|
381
|
-
${
|
|
382
|
-
`,
|
|
348
|
+
${t=>{var n,s,r;let e="";return t.y>0?e+=`top: calc(${((n=t.theme.sizes)==null?void 0:n.small)||"0px"} + ${t.y||"0"}px);`:e+=`bottom: ${((s=t.theme.sizes)==null?void 0:s.normal)||"0px"};`,t.x>0?e+=`right: ${t.x||"0"}px;`:e+=`left: ${((r=t.theme.sizes)==null?void 0:r.normal)||"0px"};`,e}};
|
|
349
|
+
`,On=({...t})=>a.jsx(sr,{...t}),sr=x.div`
|
|
383
350
|
display: none;
|
|
384
|
-
`,
|
|
351
|
+
`,rr=f.forwardRef(({children:t,columns:e,gap:n,className:s,...r},o)=>a.jsx(or,{className:k(s,"humany-grid"),"data-columns":e,"data-gap":n,...yt(r),...D(r),ref:o,children:t})),or=x.div`
|
|
385
352
|
display: grid;
|
|
386
|
-
grid-template-columns: repeat(${
|
|
387
|
-
grid-gap: ${
|
|
353
|
+
grid-template-columns: repeat(${t=>t["data-columns"]}, 1fr);
|
|
354
|
+
grid-gap: ${t=>t["data-gap"]};
|
|
388
355
|
justify-content: center;
|
|
389
356
|
grid-auto-rows: max-content;
|
|
390
|
-
${
|
|
391
|
-
`,
|
|
392
|
-
Key: ${
|
|
357
|
+
${on}
|
|
358
|
+
`,Tt=f.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...s},r)=>{const o=H(),[i,u]=f.useState();return f.useEffect(()=>{const c=hn(o,n),d={...c,...t,transform:{...c.transform,...t==null?void 0:t.transform}},l=un(n,d);u(l)},[n,t]),a.jsx("div",{className:k(e,"humany-html"),...D(s),ref:r,children:i})}),be=({faIcon:t,title:e,className:n="",role:s="presentation",...r})=>a.jsx("i",{className:k(n,`fa fa-${t}`),title:e,role:s,...D(r)}),ir=f.forwardRef(({className:t="",autoFocus:e=!1,onFocusChange:n=()=>{},onEnter:s=()=>{},onEscape:r=()=>{},selectAllOnFocus:o,onChange:i=()=>{},disabled:u=!1,type:c,...d},l)=>{const[h,m]=f.useState(e),g=f.useRef();f.useImperativeHandle(l,()=>g.current),f.useEffect(()=>{var v;e&&((v=g==null?void 0:g.current)==null||v.focus())},[e,l,g]);const y=(v,j)=>{m(v),n&&n(v),o&&v&&j.target.select()},p={...D(d),disabled:u,autoFocus:e,type:c,onKeyDown:v=>{v.key==="Enter"&&h&&s(v),v.key==="Escape"&&h&&r(v)},onFocus:v=>y(!0,v),onBlur:v=>y(!1,v),onChange:v=>i(v.target.value||""),className:k(t,"humany-input"),"data-type":c};return c!=="textarea"?a.jsx("input",{...p,ref:g}):a.jsx("textarea",{...p,ref:g})}),Le=f.forwardRef(({className:t,items:e,renderItem:n,renderLi:s=!1,...r},o)=>a.jsx("ul",{className:k(t,"humany-list"),"data-item-count":e.length,...D(r),ref:o,children:e.map((i,u,c)=>s?a.jsx("li",{className:"humany-list-item",children:n(i,u,c)},i.id||u):n(i,u,c))})),Dt=f.forwardRef(({text:t,html:e,header:n,className:s,htmlParseInstruction:r,symbol:o,...i},u)=>a.jsxs("div",{className:k(s,"humany-paragraph"),...D(i),ref:u,children:[n?a.jsxs(ve,{variant:"h1",children:[o?a.jsx(V,{symbol:o}):null,n]}):null,e?a.jsx(Tt,{html:e,htmlParseInstruction:r}):null,t?a.jsx(Ce,{children:t}):null]})),$e=f.forwardRef(({header:t,customHeader:e,text:n,html:s,className:r,children:o,symbol:i,items:u,renderItem:c,renderLi:d,ulProps:l,...h},m)=>a.jsxs("div",{className:k(r,"humany-item-list"),"data-item-count":u.length,...D(h),ref:m,children:[e||(t||n||s?a.jsx(Dt,{symbol:i,header:t,text:n,html:s}):null),u.length?a.jsx(Le,{items:u,renderItem:c,renderLi:d,...l}):null,o]})),ar=({className:t="",tree:e,renderItem:n,rootItem:s,renderUnselected:r=!0,renderEmpty:o=!0,ulProps:i,liProps:u})=>{const c=h=>!d(h),d=h=>!h||h.length<1?!0:!h.some(m=>!!m.selected),l=(h,m)=>a.jsx($e,{className:k(`humany-item-tree-level-${m}`),items:h,ulProps:i,renderItem:g=>{const{id:y,selected:p,items:v,matches:j}=g,S=p&&d(v);return!o&&!j?null:f.createElement("li",{...D(u),key:y,className:"humany-item-tree-item"},n&&n(g,m,S),v&&(r||S)&&l(v,m+1))}});return a.jsxs("div",{className:k(t,"humany-item-tree"),children:[s&&s(!c(e||[])),e&&l(e,1)]})};var Tn=function(){};process.env.NODE_ENV!=="production"&&(Tn=function(t,e,n){var s=arguments.length;n=new Array(s>2?s-2:0);for(var r=2;r<s;r++)n[r-2]=arguments[r];if(e===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}});var cr=Tn,lr=cr;ur(lr);function ur(t){return t&&t.__esModule?t:{default:t}}function Te(t){return t.charAt(0)==="/"}function st(t,e){for(var n=e,s=n+1,r=t.length;s<r;n+=1,s+=1)t[n]=t[s];t.pop()}function dr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],s=e&&e.split("/")||[],r=t&&Te(t),o=e&&Te(e),i=r||o;if(t&&Te(t)?s=n:n.length&&(s.pop(),s=s.concat(n)),!s.length)return"/";var u=void 0;if(s.length){var c=s[s.length-1];u=c==="."||c===".."||c===""}else u=!1;for(var d=0,l=s.length;l>=0;l--){var h=s[l];h==="."?st(s,l):h===".."?(st(s,l),d++):d&&(st(s,l),d--)}if(!i)for(;d--;d)s.unshift("..");i&&s[0]!==""&&(!s[0]||!Te(s[0]))&&s.unshift("");var m=s.join("/");return u&&m.substr(-1)!=="/"&&(m+="/"),m}const hr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),fr=cn(hr);var Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function De(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(c,d){return De(c,e[d])});var n=typeof t>"u"?"undefined":Jt(t),s=typeof e>"u"?"undefined":Jt(e);if(n!==s)return!1;if(n==="object"){var r=t.valueOf(),o=e.valueOf();if(r!==t||o!==e)return De(r,o);var i=Object.keys(t),u=Object.keys(e);return i.length!==u.length?!1:i.every(function(c){return De(t[c],e[c])})}return!1}const mr=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),pr=cn(mr);var gr=fr;Dn(gr);var yr=pr;Dn(yr);function Dn(t){return t&&t.__esModule?t:{default:t}}var ht=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(ht||{});const xr=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,s=new RegExp(n,"i"),r=t.match(s);return r&&r[1]||"/"};Be(t=>{t.createCommand("routing",e=>n=>{const s={mode:n.mode};n.basePath&&(s.basePath=n.basePath),e.container.register("routingSettings",s)})});var G=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(G||{}),At=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(At||{}),F=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(F||{});const vr=(t,e,n,s={})=>Xt(t,n).then(r=>(process.env.NODE_ENV!=="production"&&r&&O.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
|
|
359
|
+
Key: ${e}
|
|
393
360
|
Category: ${JSON.stringify(n)}
|
|
394
|
-
Options: ${JSON.stringify(
|
|
395
|
-
Key: ${
|
|
361
|
+
Options: ${JSON.stringify(s)}`),o=>(Pt(t),Xt(t,n).then(i=>{if(i){process.env.NODE_ENV!=="production"&&O.warn(`storageWriter: Attempted to write to storage using unallowed category.
|
|
362
|
+
Key: ${e}
|
|
396
363
|
Category: ${JSON.stringify(n)}
|
|
397
|
-
Value: ${JSON.stringify(
|
|
398
|
-
Options: ${JSON.stringify(
|
|
399
|
-
Passed consent: ${JSON.stringify(
|
|
400
|
-
Passed consent: ${JSON.stringify(
|
|
401
|
-
Passed consent: ${JSON.stringify(r)}`),o.unshift(Ce.Necessary)),vl(t.container,"storagePolicy",Ce.Necessary,{medium:_e.Cookie,scope:Rr.Tenant,duration:{days:365}}).then(s=>s(o)).then(()=>{_r(t.container),t.events.dispatch("storage:policy-changed",o)})}})});function Pt(e){return e.charAt(0)==="/"}function Pn(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function Ol(e,t){t===void 0&&(t="");var n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&Pt(e),s=t&&Pt(t),i=o||s;if(e&&Pt(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a;if(r.length){var c=r[r.length-1];a=c==="."||c===".."||c===""}else a=!1;for(var u=0,l=r.length;l>=0;l--){var f=r[l];f==="."?Pn(r,l):f===".."?(Pn(r,l),u++):u&&(Pn(r,l),u--)}if(!i)for(;u--;u)r.unshift("..");i&&r[0]!==""&&(!r[0]||!Pt(r[0]))&&r.unshift("");var h=r.join("/");return a&&h.substr(-1)!=="/"&&(h+="/"),h}var jl=process.env.NODE_ENV==="production";function ee(e,t){if(!jl){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Tl=process.env.NODE_ENV==="production",_n="Invariant failed";function ve(e,t){if(!e){if(Tl)throw new Error(_n);var n=typeof t=="function"?t():t,r=n?"".concat(_n,": ").concat(n):_n;throw new Error(r)}}function gt(e){return e.charAt(0)==="/"?e:"/"+e}function Po(e){return e.charAt(0)==="/"?e.substr(1):e}function Lr(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function ei(e,t){return Lr(e,t)?e.substr(t.length):e}function ti(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Rl(e){var t=e||"/",n="",r="",o=t.indexOf("#");o!==-1&&(r=t.substr(o),t=t.substr(0,o));var s=t.indexOf("?");return s!==-1&&(n=t.substr(s),t=t.substr(0,s)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function me(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&n!=="?"&&(o+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(o+=r.charAt(0)==="#"?r:"#"+r),o}function xe(e,t,n,r){var o;typeof e=="string"?(o=Rl(e),o.state=t):(o=le({},e),o.pathname===void 0&&(o.pathname=""),o.search?o.search.charAt(0)!=="?"&&(o.search="?"+o.search):o.search="",o.hash?o.hash.charAt(0)!=="#"&&(o.hash="#"+o.hash):o.hash="",t!==void 0&&o.state===void 0&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),r?o.pathname?o.pathname.charAt(0)!=="/"&&(o.pathname=Ol(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Dr(){var e=null;function t(i){return process.env.NODE_ENV!=="production"&&ee(e==null,"A history supports only one prompt at a time"),e=i,function(){e===i&&(e=null)}}function n(i,a,c,u){if(e!=null){var l=typeof e=="function"?e(i,a):e;typeof l=="string"?typeof c=="function"?c(l,u):(process.env.NODE_ENV!=="production"&&ee(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),u(!0)):u(l!==!1)}else u(!0)}var r=[];function o(i){var a=!0;function c(){a&&i.apply(void 0,arguments)}return r.push(c),function(){a=!1,r=r.filter(function(u){return u!==c})}}function s(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];r.forEach(function(u){return u.apply(void 0,a)})}return{setPrompt:t,confirmTransitionTo:n,appendListener:o,notifyListeners:s}}var ni=!!(typeof window<"u"&&window.document&&window.document.createElement);function ri(e,t){t(window.confirm(e))}function Pl(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function _l(){return window.navigator.userAgent.indexOf("Trident")===-1}function Al(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Ll(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var _o="popstate",Ao="hashchange";function Lo(){try{return window.history.state||{}}catch{return{}}}function Dl(e){e===void 0&&(e={}),ni||(process.env.NODE_ENV!=="production"?ve(!1,"Browser history needs a DOM"):ve(!1));var t=window.history,n=Pl(),r=!_l(),o=e,s=o.forceRefresh,i=s===void 0?!1:s,a=o.getUserConfirmation,c=a===void 0?ri:a,u=o.keyLength,l=u===void 0?6:u,f=e.basename?ti(gt(e.basename)):"";function h(I){var w=I||{},C=w.key,x=w.state,S=window.location,k=S.pathname,D=S.search,_=S.hash,L=k+D+_;return process.env.NODE_ENV!=="production"&&ee(!f||Lr(L,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+L+'" to begin with "'+f+'".'),f&&(L=ei(L,f)),xe(L,x,C)}function g(){return Math.random().toString(36).substr(2,l)}var v=Dr();function m(I){le(X,I),X.length=t.length,v.notifyListeners(X.location,X.action)}function y(I){Ll(I)||R(h(I.state))}function $(){R(h(Lo()))}var O=!1;function R(I){if(O)O=!1,m();else{var w="POP";v.confirmTransitionTo(I,w,c,function(C){C?m({action:w,location:I}):j(I)})}}function j(I){var w=X.location,C=M.indexOf(w.key);C===-1&&(C=0);var x=M.indexOf(I.key);x===-1&&(x=0);var S=C-x;S&&(O=!0,W(S))}var b=h(Lo()),M=[b.key];function T(I){return f+me(I)}function A(I,w){process.env.NODE_ENV!=="production"&&ee(!(typeof I=="object"&&I.state!==void 0&&w!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var C="PUSH",x=xe(I,w,g(),X.location);v.confirmTransitionTo(x,C,c,function(S){if(S){var k=T(x),D=x.key,_=x.state;if(n)if(t.pushState({key:D,state:_},null,k),i)window.location.href=k;else{var L=M.indexOf(X.location.key),V=M.slice(0,L+1);V.push(x.key),M=V,m({action:C,location:x})}else process.env.NODE_ENV!=="production"&&ee(_===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=k}})}function B(I,w){process.env.NODE_ENV!=="production"&&ee(!(typeof I=="object"&&I.state!==void 0&&w!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var C="REPLACE",x=xe(I,w,g(),X.location);v.confirmTransitionTo(x,C,c,function(S){if(S){var k=T(x),D=x.key,_=x.state;if(n)if(t.replaceState({key:D,state:_},null,k),i)window.location.replace(k);else{var L=M.indexOf(X.location.key);L!==-1&&(M[L]=x.key),m({action:C,location:x})}else process.env.NODE_ENV!=="production"&&ee(_===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(k)}})}function W(I){t.go(I)}function Y(){W(-1)}function Z(){W(1)}var oe=0;function te(I){oe+=I,oe===1&&I===1?(window.addEventListener(_o,y),r&&window.addEventListener(Ao,$)):oe===0&&(window.removeEventListener(_o,y),r&&window.removeEventListener(Ao,$))}var ne=!1;function re(I){I===void 0&&(I=!1);var w=v.setPrompt(I);return ne||(te(1),ne=!0),function(){return ne&&(ne=!1,te(-1)),w()}}function se(I){var w=v.appendListener(I);return te(1),function(){te(-1),w()}}var X={length:t.length,action:"POP",location:b,createHref:T,push:A,replace:B,go:W,goBack:Y,goForward:Z,block:re,listen:se};return X}var Do="hashchange",Ml={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+Po(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:Po,decodePath:gt},slash:{encodePath:gt,decodePath:gt}};function oi(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function dt(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function Il(e){window.location.hash=e}function An(e){window.location.replace(oi(window.location.href)+"#"+e)}function Vl(e){e===void 0&&(e={}),ni||(process.env.NODE_ENV!=="production"?ve(!1,"Hash history needs a DOM"):ve(!1));var t=window.history,n=Al(),r=e,o=r.getUserConfirmation,s=o===void 0?ri:o,i=r.hashType,a=i===void 0?"slash":i,c=e.basename?ti(gt(e.basename)):"",u=Ml[a],l=u.encodePath,f=u.decodePath;function h(){var C=f(dt());return process.env.NODE_ENV!=="production"&&ee(!c||Lr(C,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+C+'" to begin with "'+c+'".'),c&&(C=ei(C,c)),xe(C)}var g=Dr();function v(C){le(w,C),w.length=t.length,g.notifyListeners(w.location,w.action)}var m=!1,y=null;function $(C,x){return C.pathname===x.pathname&&C.search===x.search&&C.hash===x.hash}function O(){var C=dt(),x=l(C);if(C!==x)An(x);else{var S=h(),k=w.location;if(!m&&$(k,S)||y===me(S))return;y=null,R(S)}}function R(C){if(m)m=!1,v();else{var x="POP";g.confirmTransitionTo(C,x,s,function(S){S?v({action:x,location:C}):j(C)})}}function j(C){var x=w.location,S=A.lastIndexOf(me(x));S===-1&&(S=0);var k=A.lastIndexOf(me(C));k===-1&&(k=0);var D=S-k;D&&(m=!0,Z(D))}var b=dt(),M=l(b);b!==M&&An(M);var T=h(),A=[me(T)];function B(C){var x=document.querySelector("base"),S="";return x&&x.getAttribute("href")&&(S=oi(window.location.href)),S+"#"+l(c+me(C))}function W(C,x){process.env.NODE_ENV!=="production"&&ee(x===void 0,"Hash history cannot push state; it is ignored");var S="PUSH",k=xe(C,void 0,void 0,w.location);g.confirmTransitionTo(k,S,s,function(D){if(D){var _=me(k),L=l(c+_),V=dt()!==L;if(V){y=_,Il(L);var F=A.lastIndexOf(me(w.location)),U=A.slice(0,F+1);U.push(_),A=U,v({action:S,location:k})}else process.env.NODE_ENV!=="production"&&ee(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),v()}})}function Y(C,x){process.env.NODE_ENV!=="production"&&ee(x===void 0,"Hash history cannot replace state; it is ignored");var S="REPLACE",k=xe(C,void 0,void 0,w.location);g.confirmTransitionTo(k,S,s,function(D){if(D){var _=me(k),L=l(c+_),V=dt()!==L;V&&(y=_,An(L));var F=A.indexOf(me(w.location));F!==-1&&(A[F]=_),v({action:S,location:k})}})}function Z(C){process.env.NODE_ENV!=="production"&&ee(n,"Hash history go(n) causes a full page reload in this browser"),t.go(C)}function oe(){Z(-1)}function te(){Z(1)}var ne=0;function re(C){ne+=C,ne===1&&C===1?window.addEventListener(Do,O):ne===0&&window.removeEventListener(Do,O)}var se=!1;function X(C){C===void 0&&(C=!1);var x=g.setPrompt(C);return se||(re(1),se=!0),function(){return se&&(se=!1,re(-1)),x()}}function I(C){var x=g.appendListener(C);return re(1),function(){re(-1),x()}}var w={length:t.length,action:"POP",location:T,createHref:B,push:W,replace:Y,go:Z,goBack:oe,goForward:te,block:X,listen:I};return w}function Mo(e,t,n){return Math.min(Math.max(e,t),n)}function zl(e){e===void 0&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=r===void 0?["/"]:r,s=t.initialIndex,i=s===void 0?0:s,a=t.keyLength,c=a===void 0?6:a,u=Dr();function l(A){le(T,A),T.length=T.entries.length,u.notifyListeners(T.location,T.action)}function f(){return Math.random().toString(36).substr(2,c)}var h=Mo(i,0,o.length-1),g=o.map(function(A){return typeof A=="string"?xe(A,void 0,f()):xe(A,void 0,A.key||f())}),v=me;function m(A,B){process.env.NODE_ENV!=="production"&&ee(!(typeof A=="object"&&A.state!==void 0&&B!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var W="PUSH",Y=xe(A,B,f(),T.location);u.confirmTransitionTo(Y,W,n,function(Z){if(Z){var oe=T.index,te=oe+1,ne=T.entries.slice(0);ne.length>te?ne.splice(te,ne.length-te,Y):ne.push(Y),l({action:W,location:Y,index:te,entries:ne})}})}function y(A,B){process.env.NODE_ENV!=="production"&&ee(!(typeof A=="object"&&A.state!==void 0&&B!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var W="REPLACE",Y=xe(A,B,f(),T.location);u.confirmTransitionTo(Y,W,n,function(Z){Z&&(T.entries[T.index]=Y,l({action:W,location:Y}))})}function $(A){var B=Mo(T.index+A,0,T.entries.length-1),W="POP",Y=T.entries[B];u.confirmTransitionTo(Y,W,n,function(Z){Z?l({action:W,location:Y,index:B}):l()})}function O(){$(-1)}function R(){$(1)}function j(A){var B=T.index+A;return B>=0&&B<T.entries.length}function b(A){return A===void 0&&(A=!1),u.setPrompt(A)}function M(A){return u.appendListener(A)}var T={length:g.length,action:"POP",location:g[h],index:h,entries:g,createHref:v,push:m,replace:y,go:$,goBack:O,goForward:R,canGo:j,block:b,listen:M};return T}var ut={exports:{}},Hl=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},qt=Hl;ut.exports=ai;ut.exports.parse=Mr;ut.exports.compile=Bl;ut.exports.tokensToFunction=si;ut.exports.tokensToRegExp=ii;var Wl=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Mr(e,t){for(var n=[],r=0,o=0,s="",i=t&&t.delimiter||"/",a;(a=Wl.exec(e))!=null;){var c=a[0],u=a[1],l=a.index;if(s+=e.slice(o,l),o=l+c.length,u){s+=u[1];continue}var f=e[o],h=a[2],g=a[3],v=a[4],m=a[5],y=a[6],$=a[7];s&&(n.push(s),s="");var O=h!=null&&f!=null&&f!==h,R=y==="+"||y==="*",j=y==="?"||y==="*",b=a[2]||i,M=v||m;n.push({name:g||r++,prefix:h||"",delimiter:b,optional:j,repeat:R,partial:O,asterisk:!!$,pattern:M?Yl(M):$?".*":"[^"+zt(b)+"]+?"})}return o<e.length&&(s+=e.substr(o)),s&&n.push(s),n}function Bl(e,t){return si(Mr(e,t),t)}function Fl(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Ul(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function si(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",Vr(t)));return function(o,s){for(var i="",a=o||{},c=s||{},u=c.pretty?Fl:encodeURIComponent,l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){i+=f;continue}var h=a[f.name],g;if(h==null)if(f.optional){f.partial&&(i+=f.prefix);continue}else throw new TypeError('Expected "'+f.name+'" to be defined');if(qt(h)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(h.length===0){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var v=0;v<h.length;v++){if(g=u(h[v]),!n[l].test(g))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(g)+"`");i+=(v===0?f.prefix:f.delimiter)+g}continue}if(g=f.asterisk?Ul(h):u(h),!n[l].test(g))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+g+'"');i+=f.prefix+g}return i}}function zt(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Yl(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Ir(e,t){return e.keys=t,e}function Vr(e){return e&&e.sensitive?"":"i"}function ql(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ir(e,t)}function Zl(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(ai(e[o],t,n).source);var s=new RegExp("(?:"+r.join("|")+")",Vr(n));return Ir(s,t)}function Kl(e,t,n){return ii(Mr(e,n),t,n)}function ii(e,t,n){qt(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,s="",i=0;i<e.length;i++){var a=e[i];if(typeof a=="string")s+=zt(a);else{var c=zt(a.prefix),u="(?:"+a.pattern+")";t.push(a),a.repeat&&(u+="(?:"+c+u+")*"),a.optional?a.partial?u=c+"("+u+")?":u="(?:"+c+"("+u+"))?":u=c+"("+u+")",s+=u}}var l=zt(n.delimiter||"/"),f=s.slice(-l.length)===l;return r||(s=(f?s.slice(0,-l.length):s)+"(?:"+l+"(?=$))?"),o?s+="$":s+=r&&f?"":"(?="+l+"|$)",Ir(new RegExp("^"+s,Vr(n)),t)}function ai(e,t,n){return qt(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?ql(e,t):qt(e)?Zl(e,t,n):Kl(e,t,n)}var Gl=ut.exports;const Xl=sr(Gl);var _t=1073741823,Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function Jl(){var e="__global_unique_id__";return Io[e]=(Io[e]||0)+1}function Ql(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function eu(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(o){return o!==r})},get:function(){return e},set:function(r,o){e=r,t.forEach(function(s){return s(e,o)})}}}function tu(e){return Array.isArray(e)?e[0]:e}function nu(e,t){var n,r,o="__create-react-context-"+Jl()+"__",s=function(a){Se(c,a);function c(){for(var l,f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return l=a.call.apply(a,[this].concat(h))||this,l.emitter=eu(l.props.value),l}var u=c.prototype;return u.getChildContext=function(){var f;return f={},f[o]=this.emitter,f},u.componentWillReceiveProps=function(f){if(this.props.value!==f.value){var h=this.props.value,g=f.value,v;Ql(h,g)?v=0:(v=typeof t=="function"?t(h,g):_t,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&ee((v&_t)===v,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: "+v),v|=0,v!==0&&this.emitter.set(f.value,v))}},u.render=function(){return this.props.children},c}(p.Component);s.childContextTypes=(n={},n[o]=E.object.isRequired,n);var i=function(a){Se(c,a);function c(){for(var l,f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return l=a.call.apply(a,[this].concat(h))||this,l.observedBits=void 0,l.state={value:l.getValue()},l.onUpdate=function(v,m){var y=l.observedBits|0;y&m&&l.setState({value:l.getValue()})},l}var u=c.prototype;return u.componentWillReceiveProps=function(f){var h=f.observedBits;this.observedBits=h??_t},u.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var f=this.props.observedBits;this.observedBits=f??_t},u.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},u.getValue=function(){return this.context[o]?this.context[o].get():e},u.render=function(){return tu(this.props.children)(this.state.value)},c}(p.Component);return i.contextTypes=(r={},r[o]=E.object,r),{Provider:s,Consumer:i}}var ru=p.createContext||nu,ci=function(t){var n=ru();return n.displayName=t,n},ou=ci("Router-History"),nt=ci("Router"),rt=function(e){Se(t,e),t.computeRootMatch=function(o){return{path:"/",url:"/",params:{},isExact:o==="/"}};function t(r){var o;return o=e.call(this,r)||this,o.state={location:r.history.location},o._isMounted=!1,o._pendingLocation=null,r.staticContext||(o.unlisten=r.history.listen(function(s){o._pendingLocation=s})),o}var n=t.prototype;return n.componentDidMount=function(){var o=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(s){o._isMounted&&o.setState({location:s})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return p.createElement(nt.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},p.createElement(ou.Provider,{children:this.props.children||null,value:this.props.history}))},t}(p.Component);process.env.NODE_ENV!=="production"&&(rt.propTypes={children:E.node,history:E.object.isRequired,staticContext:E.object},rt.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&ee(e.history===this.props.history,"You cannot change <Router history>")});var Vo=function(e){Se(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.history=zl(r.props),r}var n=t.prototype;return n.render=function(){return p.createElement(rt,{history:this.history,children:this.props.children})},t}(p.Component);process.env.NODE_ENV!=="production"&&(Vo.propTypes={initialEntries:E.array,initialIndex:E.number,getUserConfirmation:E.func,keyLength:E.number,children:E.node},Vo.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&ee(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")});p.Component;if(process.env.NODE_ENV!=="production"){var su=E.oneOfType([E.func,E.string]);E.bool,su.isRequired}process.env.NODE_ENV!=="production"&&(E.bool,E.string,E.oneOfType([E.string,E.object]).isRequired);var zo={},iu=1e4,Ho=0;function au(e,t){var n=""+t.end+t.strict+t.sensitive,r=zo[n]||(zo[n]={});if(r[e])return r[e];var o=[],s=Xl(e,o,t),i={regexp:s,keys:o};return Ho<iu&&(r[e]=i,Ho++),i}function zr(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,s=o===void 0?!1:o,i=n.strict,a=i===void 0?!1:i,c=n.sensitive,u=c===void 0?!1:c,l=[].concat(r);return l.reduce(function(f,h){if(!h&&h!=="")return null;if(f)return f;var g=au(h,{end:s,strict:a,sensitive:u}),v=g.regexp,m=g.keys,y=v.exec(e);if(!y)return null;var $=y[0],O=y.slice(1),R=e===$;return s&&!R?null:{path:h,url:h==="/"&&$===""?"/":$,isExact:R,params:m.reduce(function(j,b,M){return j[b.name]=O[M],j},{})}},null)}function Xn(e){return p.Children.count(e)===0}function Wo(e,t,n){var r=e(t);return process.env.NODE_ENV!=="production"&&ee(r!==void 0,"You returned `undefined` from the `children` function of "+("<Route"+(n?' path="'+n+'"':"")+">, but you ")+"should have returned a React element or `null`"),r||null}var Ln=function(e){Se(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this;return p.createElement(nt.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <Route> outside a <Router>"):ve(!1));var i=o.props.location||s.location,a=o.props.computedMatch?o.props.computedMatch:o.props.path?zr(i.pathname,o.props):s.match,c=le({},s,{location:i,match:a}),u=o.props,l=u.children,f=u.component,h=u.render;return Array.isArray(l)&&Xn(l)&&(l=null),p.createElement(nt.Provider,{value:c},c.match?l?typeof l=="function"?process.env.NODE_ENV!=="production"?Wo(l,c,o.props.path):l(c):l:f?p.createElement(f,c):h?h(c):null:typeof l=="function"?process.env.NODE_ENV!=="production"?Wo(l,c,o.props.path):l(c):null)})},t}(p.Component);process.env.NODE_ENV!=="production"&&(Ln.propTypes={children:E.oneOfType([E.func,E.node]),component:function(t,n){if(t[n]&&!Jt.isValidElementType(t[n]))return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component")},exact:E.bool,location:E.object,path:E.oneOfType([E.string,E.arrayOf(E.string)]),render:E.func,sensitive:E.bool,strict:E.bool},Ln.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&ee(!(this.props.children&&!Xn(this.props.children)&&this.props.component),"You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"),process.env.NODE_ENV!=="production"&&ee(!(this.props.children&&!Xn(this.props.children)&&this.props.render),"You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"),process.env.NODE_ENV!=="production"&&ee(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},Ln.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&ee(!(this.props.location&&!e.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&ee(!(!this.props.location&&e.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});function Hr(e){return e.charAt(0)==="/"?e:"/"+e}function cu(e,t){return e?le({},t,{pathname:Hr(e)+t.pathname}):t}function lu(e,t){if(!e)return t;var n=Hr(e);return t.pathname.indexOf(n)!==0?t:le({},t,{pathname:t.pathname.substr(n.length)})}function Bo(e){return typeof e=="string"?e:me(e)}function Dn(e){return function(){process.env.NODE_ENV!=="production"?ve(!1,"You cannot %s with <StaticRouter>"):ve(!1)}}function Fo(){}var Uo=function(e){Se(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.handlePush=function(a){return r.navigateTo(a,"PUSH")},r.handleReplace=function(a){return r.navigateTo(a,"REPLACE")},r.handleListen=function(){return Fo},r.handleBlock=function(){return Fo},r}var n=t.prototype;return n.navigateTo=function(o,s){var i=this.props,a=i.basename,c=a===void 0?"":a,u=i.context,l=u===void 0?{}:u;l.action=s,l.location=cu(c,xe(o)),l.url=Bo(l.location)},n.render=function(){var o=this.props,s=o.basename,i=s===void 0?"":s,a=o.context,c=a===void 0?{}:a,u=o.location,l=u===void 0?"/":u,f=it(o,["basename","context","location"]),h={createHref:function(v){return Hr(i+Bo(v))},action:"POP",location:lu(i,xe(l)),push:this.handlePush,replace:this.handleReplace,go:Dn(),goBack:Dn(),goForward:Dn(),listen:this.handleListen,block:this.handleBlock};return p.createElement(rt,le({},f,{history:h,staticContext:c}))},t}(p.Component);process.env.NODE_ENV!=="production"&&(Uo.propTypes={basename:E.string,context:E.object,location:E.oneOfType([E.string,E.object])},Uo.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&ee(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var Yo=function(e){Se(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this;return p.createElement(nt.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <Switch> outside a <Router>"):ve(!1));var i=o.props.location||s.location,a,c;return p.Children.forEach(o.props.children,function(u){if(c==null&&p.isValidElement(u)){a=u;var l=u.props.path||u.props.from;c=l?zr(i.pathname,le({},u.props,{path:l})):s.match}}),c?p.cloneElement(a,{location:i,computedMatch:c}):null})},t}(p.Component);process.env.NODE_ENV!=="production"&&(Yo.propTypes={children:E.node,location:E.object},Yo.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&ee(!(this.props.location&&!e.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&ee(!(!this.props.location&&e.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});p.useContext;if(process.env.NODE_ENV!=="production"&&typeof window<"u"){var At=window,Lt="__react_router_build__",qo={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(At[Lt]&&At[Lt]!=="esm"){var uu=qo[At[Lt]],fu=qo.esm;throw new Error("You are loading the "+fu+" build of React Router "+("on a page that is already running the "+uu+" ")+"build, so things won't work right.")}At[Lt]="esm"}var Zo=function(e){Se(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.history=Dl(r.props),r}var n=t.prototype;return n.render=function(){return p.createElement(rt,{history:this.history,children:this.props.children})},t}(p.Component);process.env.NODE_ENV!=="production"&&(Zo.propTypes={basename:E.string,children:E.node,forceRefresh:E.bool,getUserConfirmation:E.func,keyLength:E.number},Zo.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&ee(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var Ko=function(e){Se(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.history=Vl(r.props),r}var n=t.prototype;return n.render=function(){return p.createElement(rt,{history:this.history,children:this.props.children})},t}(p.Component);process.env.NODE_ENV!=="production"&&(Ko.propTypes={basename:E.string,children:E.node,getUserConfirmation:E.func,hashType:E.oneOf(["hashbang","noslash","slash"])},Ko.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&ee(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var Jn=function(t,n){return typeof t=="function"?t(n):t},Qn=function(t,n){return typeof t=="string"?xe(t,null,null,n):t},Wr=function(t){return t},ot=p.forwardRef;typeof ot>"u"&&(ot=Wr);function du(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var li=ot(function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,s=it(e,["innerRef","navigate","onClick"]),i=s.target,a=le({},s,{onClick:function(u){try{o&&o(u)}catch(l){throw u.preventDefault(),l}!u.defaultPrevented&&u.button===0&&(!i||i==="_self")&&!du(u)&&(u.preventDefault(),r())}});return Wr!==ot?a.ref=t||n:a.ref=n,p.createElement("a",a)});process.env.NODE_ENV!=="production"&&(li.displayName="LinkAnchor");var Be=ot(function(e,t){var n=e.component,r=n===void 0?li:n,o=e.replace,s=e.to,i=e.innerRef,a=it(e,["component","replace","to","innerRef"]);return p.createElement(nt.Consumer,null,function(c){c||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <Link> outside a <Router>"):ve(!1));var u=c.history,l=Qn(Jn(s,c.location),c.location),f=l?u.createHref(l):"",h=le({},a,{href:f,navigate:function(){var v=Jn(s,c.location),m=me(c.location)===me(Qn(v)),y=o||m?u.replace:u.push;y(v)}});return Wr!==ot?h.ref=t||i:h.innerRef=i,p.createElement(r,h)})});if(process.env.NODE_ENV!=="production"){var hu=E.oneOfType([E.string,E.object,E.func]),pu=E.oneOfType([E.string,E.func,E.shape({current:E.any})]);Be.displayName="Link",Be.propTypes={innerRef:pu,onClick:E.func,replace:E.bool,target:E.string,to:hu.isRequired}}var ui=function(t){return t},Zt=p.forwardRef;typeof Zt>"u"&&(Zt=ui);function mu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r}).join(" ")}var Go=Zt(function(e,t){var n=e["aria-current"],r=n===void 0?"page":n,o=e.activeClassName,s=o===void 0?"active":o,i=e.activeStyle,a=e.className,c=e.exact,u=e.isActive,l=e.location,f=e.sensitive,h=e.strict,g=e.style,v=e.to,m=e.innerRef,y=it(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return p.createElement(nt.Consumer,null,function($){$||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <NavLink> outside a <Router>"):ve(!1));var O=l||$.location,R=Qn(Jn(v,O),O),j=R.pathname,b=j&&j.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),M=b?zr(O.pathname,{path:b,exact:c,sensitive:f,strict:h}):null,T=!!(u?u(M,O):M),A=typeof a=="function"?a(T):a,B=typeof g=="function"?g(T):g;T&&(A=mu(A,s),B=le({},B,i));var W=le({"aria-current":T&&r||null,className:A,style:B,to:R},y);return ui!==Zt?W.ref=t||m:W.innerRef=m,p.createElement(Be,W)})});if(process.env.NODE_ENV!=="production"){Go.displayName="NavLink";var gu=E.oneOf(["page","step","location","date","time","true","false"]);Go.propTypes=le({},Be.propTypes,{"aria-current":gu,activeClassName:E.string,activeStyle:E.object,className:E.oneOfType([E.string,E.func]),exact:E.bool,isActive:E.func,location:E.object,sensitive:E.bool,strict:E.bool,style:E.oneOfType([E.object,E.func])})}const fi=p.forwardRef(({className:e,onClick:t=()=>{},name:n="",to:r="",params:o={},children:s,...i},a)=>{const c=wr(),u=ye();if(!c)return null;let l="";const f={onClick:t,className:q(e,"humany-route-link"),to:l,innerRef:a,...i,ref:null};if(n){if(!(c.routes||[]).find(m=>m.name===n))return process.env.NODE_ENV!=="production"&&ue.warn(`Unable to create route. No route named "${n}" exist.`),d.jsx(Be,{...f,onClick:m=>{t(m),m.preventDefault(),process.env.NODE_ENV!=="production"&&ue.warn(`Unable to navigate. No route named "${n}" exist.`)},children:s});const v=Object.keys(o).reduce((m,y)=>{const $=o[y];if(Array.isArray($)){if($.length===0)return m;m[y]=$.map(O=>typeof O=="string"?encodeURIComponent(O):O).join(",")}else m[y]=typeof $=="string"?encodeURIComponent($):$;return m},{});try{l=c.generate(n,v||{})}catch{return d.jsx(Be,{...f,ref:f.innerRef,children:s})}l&&c.settings.mode&&c.settings.mode===Zn.browser&&l[0]!=="/"&&(l=`/${l}`)}else if(r&&c.history)l=c.history.createHref({hash:"",pathname:r,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&ue.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(c.settings&&c.settings.mode===Zn.scopedHash){const h=u.get("$widget").name;l=gl(l,h)}return f.as?d.jsx(vu,{...f,as:f.as,children:s}):d.jsx(Be,{...f,to:l,children:s})}),vu=N.span``,kt=p.forwardRef(({className:e,disabled:t=!1,role:n="link",tabIndex:r=0,onClick:o=()=>{},onKeyDown:s=()=>{},title:i,as:a,href:c,children:u,target:l,routeName:f,params:h,...g},v)=>{const m={title:i,disabled:t,role:n,as:a,tabIndex:r,className:q(e,"humany-link",[!!t,"humany-disabled"]),onClick:y=>{if(y.persist(),t){y.preventDefault();return}o(y)},onKeyDown:y=>{if(y.persist(),t){y.key!=="Tab"&&y.preventDefault();return}s(y)}};return f?d.jsx(yu,{name:f,params:h,...m,...he(g),ref:v,children:u}):d.jsx(xu,{href:c,target:l,...m,...he(g),ref:v,children:u})}),yu=N(fi)`
|
|
402
|
-
${
|
|
364
|
+
Value: ${JSON.stringify(o)}
|
|
365
|
+
Options: ${JSON.stringify(s)}`);return}const{scope:u=At.Widget,medium:c=G.Session,duration:d}=s,l=wr();return l[u][e]=Pn(o,n,d),c===G.Cookie?Er(t,l):Nr(t,c,l)})))),br=(t,e,n=G.Session)=>(Pt(t),typeof e>"u"?(process.env.NODE_ENV!=="production"&&O.warn("readStorage: Undefined key passed when reading storage. ",e,n),Promise.resolve(void 0)):n===G.Cookie?Sr(t).then(s=>mt(s,e)):Lr(t,n).then(s=>mt(s,e))),ye=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,rt=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),An=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return rt(n.tenant),rt(n.implementation),rt(n.widget),n},Cr=t=>Object.entries(t).reduce((n,s)=>{const[r,o]=s;return Object.entries(o).forEach(i=>{const[u,{expiration:c}]=i;c&&n.push(c)}),n},[]).slice().sort((n,s)=>new Date(s).valueOf()-new Date(n).valueOf()).shift()||Ht(),Ue=t=>{const{name:e,implementation:{name:n,tenant:s}}=t.get("$widget");return[`humany_${s}`,`humany_${Zt(s+n)}`,`humany_${Zt(s+n+e)}`]},ot=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},it=(t,e,n)=>{const s=`${t}=${JSON.stringify(e).trim()}`,r=`expires=${new Date(n).toUTCString()}`,o="path=/",i="SameSite=None;Secure";return document.cookie=`${s}; ${r}; ${o}; ${i}`},zt=t=>{const[e,n,s]=Ue(t),r=ot(e)||{},o=ot(n)||{},i=ot(s)||{};return{tenant:r,implementation:o,widget:i}},zn=(t,e)=>{const n=zt(t),s=An(n,e),[r,o,i]=Ue(t),{tenant:u,implementation:c,widget:d}=s,l=Cr(e),h=Ht({days:-1});it(r,u,ye(u)?l:h),it(o,c,ye(c)?l:h),it(i,d,ye(d)?l:h)},He=(t,e)=>{const[n,s,r]=Ue(t),o=e.getItem(n)||"{}",i=e.getItem(s)||"{}",u=e.getItem(r)||"{}";return{tenant:JSON.parse(o),implementation:JSON.parse(i),widget:JSON.parse(u)}},ft=(t,e,n)=>{const s=He(t,e),r=An(s,n),[o,i,u]=Ue(t),{tenant:c,implementation:d,widget:l}=r;ye(c)?e.setItem(o,JSON.stringify(c)):e.removeItem(o),ye(d)?e.setItem(i,JSON.stringify(d)):e.removeItem(i),ye(l)?e.setItem(u,JSON.stringify(l)):e.removeItem(u)},wr=()=>({tenant:{},implementation:{},widget:{}}),$r=t=>t?!!t&&new Date>new Date(t):!1,mt=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},Pn=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?Ht(n):n}:{value:t,category:e},kr=(t,e)=>{const n=sn(t);return Object.entries(n).forEach(([s,r])=>{Object.entries(r).forEach(([o,i])=>{const{expiration:u,category:c}=i;($r(u)||jr(e,c))&&(r[o]=Pn(void 0,c,u))})}),n},Xt=(t,e)=>br(t,"storagePolicy",G.Cookie).then((n=[F.Necessary])=>!!e&&n.indexOf(e)===-1),jr=(t=[F.Necessary],e)=>!!e&&t.indexOf(e)===-1,Pt=t=>{const e=zt(t),n=He(t,window.localStorage),s=He(t,sessionStorage),r=mt(e,"storagePolicy"),[o,i,u]=[e,n,s].map(c=>kr(c,r));zn(t,o),ft(t,window.localStorage,i),ft(t,window.sessionStorage,u)},Ht=(t={days:30})=>{const{days:e=0,hours:n=0,minutes:s=0,seconds:r=0}=t,o=new Date;return o.setTime(o.getTime()+n*60*60*1e3),o.setTime(o.getTime()+e*24*60*60*1e3),o.setTime(o.getTime()+s*60*1e3),o.setTime(o.getTime()+r*1e3),o.toISOString()},Sr=t=>Ie(document)(()=>zt(t)),Er=(t,e)=>Ie(document)(()=>zn(t,e)),Lr=(t,e)=>{const n=e===G.Local?window.localStorage:window.sessionStorage;return Ie(n)(()=>He(t,n))},Nr=(t,e,n)=>{const s=e===G.Local?window.localStorage:window.sessionStorage;return Ie(s)(()=>ft(t,s,n))};Be(t=>{t.createCommand("storage",e=>(n={})=>{const{consent:s}=n;if(typeof s<"u"){if(typeof s!="number"&&typeof s!="string"&&!Array.isArray(s)){process.env.NODE_ENV!=="production"&&O.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
|
366
|
+
Passed consent: ${JSON.stringify(s)}`);return}if(Array.isArray(s)&&!s.every(o=>typeof o=="number"||typeof o=="string")){process.env.NODE_ENV!=="production"&&O.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
|
367
|
+
Passed consent: ${JSON.stringify(s)}`);return}const r=[F.Necessary,F.Functional,F.Analytical,F.Marketing].filter((o,i,u)=>typeof s=="number"?s>i:typeof s=="string"?u.indexOf(s)+1>i:Array.isArray(s)?s.findIndex(c=>c===i+1||c===o)>-1:!0);return r.indexOf(F.Necessary)===-1&&(process.env.NODE_ENV!=="production"&&O.warn(`storagePolicyConfigurationApi: passed consent does not include category: '${F.Necessary}'. Consent has to atleast include the '${F.Necessary}' category.
|
|
368
|
+
Passed consent: ${JSON.stringify(s)}`),r.unshift(F.Necessary)),vr(e.container,"storagePolicy",F.Necessary,{medium:G.Cookie,scope:At.Tenant,duration:{days:365}}).then(o=>o(r)).then(()=>{Pt(e.container),e.events.dispatch("storage:policy-changed",r)})}})});const Hn=f.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:s="",params:r={},children:o,...i},u)=>{const c=jt(),d=H();if(!c)return null;let l="";const h={onClick:e,className:k(t,"humany-route-link"),to:l,innerRef:u,...i,ref:null};if(n){if(!(c.routes||[]).find(p=>p.name===n))return process.env.NODE_ENV!=="production"&&O.warn(`Unable to create route. No route named "${n}" exist.`),a.jsx(Qe.Link,{...h,onClick:p=>{e(p),p.preventDefault(),process.env.NODE_ENV!=="production"&&O.warn(`Unable to navigate. No route named "${n}" exist.`)},children:o});const y=Object.keys(r).reduce((p,v)=>{const j=r[v];if(Array.isArray(j)){if(j.length===0)return p;p[v]=j.map(S=>typeof S=="string"?encodeURIComponent(S):S).join(",")}else p[v]=typeof j=="string"?encodeURIComponent(j):j;return p},{});try{l=c.generate(n,y||{})}catch{return a.jsx(Qe.Link,{...h,ref:h.innerRef,children:o})}l&&c.settings.mode&&c.settings.mode===ht.browser&&l[0]!=="/"&&(l=`/${l}`)}else if(s&&c.history)l=c.history.createHref({hash:"",pathname:s,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&O.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(c.settings&&c.settings.mode===ht.scopedHash){const m=d.get("$widget").name;l=xr(l,m)}return h.as?a.jsx(Rr,{...h,as:h.as,children:o}):a.jsx(Qe.Link,{...h,to:l,children:o})}),Rr=x.span``,Ne=f.forwardRef(({className:t,disabled:e=!1,role:n="link",tabIndex:s=0,onClick:r=()=>{},onKeyDown:o=()=>{},title:i,as:u,href:c,children:d,target:l,routeName:h,params:m,...g},y)=>{const p={title:i,disabled:e,role:n,as:u,tabIndex:s,className:k(t,"humany-link",[!!e,"humany-disabled"]),onClick:v=>{if(v.persist(),e){v.preventDefault();return}r(v)},onKeyDown:v=>{if(v.persist(),e){v.key!=="Tab"&&v.preventDefault();return}o(v)}};return h?a.jsx(Mr,{name:h,params:m,...p,...D(g),ref:y,children:d}):a.jsx(Or,{href:c,target:l,...p,...D(g),ref:y,children:d})}),Mr=x(Hn)`
|
|
369
|
+
${t=>t.disabled?`
|
|
403
370
|
pointer-events: none;
|
|
404
371
|
opacity: .7;
|
|
405
372
|
`:"cursor: pointer;"}
|
|
406
|
-
`,
|
|
407
|
-
${
|
|
373
|
+
`,Or=x.a`
|
|
374
|
+
${t=>t.disabled?`
|
|
408
375
|
pointer-events: none;
|
|
409
376
|
opacity: .7;
|
|
410
377
|
`:"cursor: pointer;"}
|
|
411
|
-
`,
|
|
378
|
+
`,It=({visible:t,duration:e=500,children:n,onClick:s=()=>{},...r})=>{const o=f.useRef(),i=f.useCallback(u=>{u.target===o.current&&s(u)},[s]);return a.jsx(gt.CSSTransition,{in:t,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:e,children:a.jsx(we,{children:a.jsx(Tr,{className:"humany-overlay",duration:e,ref:o,onClick:i,...r,children:n})})})},Tr=x.div`
|
|
412
379
|
background: rgba(0, 0, 0, 0.6);
|
|
413
380
|
min-width: 100%;
|
|
414
381
|
min-height: 100%;
|
|
@@ -422,7 +389,7 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
422
389
|
align-items: center;
|
|
423
390
|
z-index: 7;
|
|
424
391
|
|
|
425
|
-
transition: ${
|
|
392
|
+
transition: ${t=>t.duration}ms;
|
|
426
393
|
opacity: 0;
|
|
427
394
|
|
|
428
395
|
&.humany-overlay-transition-enter {
|
|
@@ -438,11 +405,11 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
438
405
|
&.humany-overlay-transition-exit-done {
|
|
439
406
|
opacity: 0;
|
|
440
407
|
}
|
|
441
|
-
`,
|
|
408
|
+
`,Dr=C.keyframes`
|
|
442
409
|
100% {
|
|
443
410
|
transform: rotate(360deg);
|
|
444
411
|
}
|
|
445
|
-
`,
|
|
412
|
+
`,Ar=C.keyframes`
|
|
446
413
|
0% {
|
|
447
414
|
stroke-dasharray: 1, 200;
|
|
448
415
|
stroke-dashoffset: 0;
|
|
@@ -455,8 +422,8 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
455
422
|
stroke-dasharray: 89, 200;
|
|
456
423
|
stroke-dashoffset: -124px;
|
|
457
424
|
}
|
|
458
|
-
`,
|
|
459
|
-
animation: ${
|
|
425
|
+
`,zr=x.svg`
|
|
426
|
+
animation: ${Dr} 2s linear infinite;
|
|
460
427
|
height: 100%;
|
|
461
428
|
transform-origin: center center;
|
|
462
429
|
width: 100%;
|
|
@@ -467,7 +434,7 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
467
434
|
right: 0;
|
|
468
435
|
margin: auto;
|
|
469
436
|
transition: 200ms ease-out opacity;
|
|
470
|
-
`,
|
|
437
|
+
`,Pr=x.div`
|
|
471
438
|
position: absolute;
|
|
472
439
|
top: 0;
|
|
473
440
|
bottom: 0;
|
|
@@ -475,7 +442,7 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
475
442
|
right: 0;
|
|
476
443
|
height: 100%;
|
|
477
444
|
width: 100%;
|
|
478
|
-
pointer-events: ${
|
|
445
|
+
pointer-events: ${t=>t["data-loading"]?"all":"none"};
|
|
479
446
|
display: flex;
|
|
480
447
|
flex-direction: column;
|
|
481
448
|
justify-content: center;
|
|
@@ -483,9 +450,9 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
483
450
|
box-sizing: border-box;
|
|
484
451
|
overflow: hidden;
|
|
485
452
|
svg {
|
|
486
|
-
opacity: ${
|
|
453
|
+
opacity: ${t=>t["data-loading"]?"1":"0"};
|
|
487
454
|
}
|
|
488
|
-
|
|
455
|
+
`,Hr=x.div`
|
|
489
456
|
position: relative;
|
|
490
457
|
margin: 0 auto;
|
|
491
458
|
width: 100px;
|
|
@@ -494,76 +461,76 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
494
461
|
display: block;
|
|
495
462
|
padding-top: 100%;
|
|
496
463
|
}
|
|
497
|
-
`,
|
|
464
|
+
`,Ir=x.circle`
|
|
498
465
|
stroke-dasharray: 1, 200;
|
|
499
466
|
stroke-dashoffset: 0;
|
|
500
|
-
animation: ${
|
|
467
|
+
animation: ${Ar} 1.5s ease-in-out infinite;
|
|
501
468
|
stroke-linecap: round;
|
|
502
|
-
stroke: ${
|
|
469
|
+
stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
503
470
|
stroke-width: 2px;
|
|
504
|
-
`,
|
|
471
|
+
`,Br=({className:t,loading:e=!1})=>a.jsx(Pr,{className:k("humany-loader",t),"data-loading":e,children:a.jsx(Hr,{className:"humany-spinner",children:a.jsx(zr,{viewBox:"25 25 50 50",children:a.jsx(Ir,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),Vr=({zoomState:t,image:e,changeZoom:n,...s})=>{var y;const r=f.useRef(null),[o,i]=f.useState(!1),[u,c]=f.useState(!1),{width:d,height:l,...h}=s.style||{},m=f.useCallback(()=>{const p=r.current;if(p){const v=window.innerWidth/p.naturalWidth,j=window.innerHeight/p.naturalHeight,S=Math.min(v,j);return j>=1&&v>=1?1:S}return 1},[o,e.src]),g=f.useMemo(()=>{const p=r.current;if(p&&o){if(!u){c(!0);const v=m();n(v)}return p.naturalWidth>=p.naturalHeight?[`${t*p.naturalWidth}px`,"auto"]:["auto",`${t*p.naturalHeight}px`]}return null},[t,r,o,e.src]);return f.useEffect(()=>(i(!1),function(){c(!1)}),[e.src]),a.jsxs(a.Fragment,{children:[a.jsx(Wr,{loading:!o}),a.jsx(_r,{onLoad:()=>{i(!0)},ref:r,imageSize:g,draggable:"false",...s,alt:((y=s.alt)==null?void 0:y.toString())||"",style:h,src:e.src,loaded:o}),a.jsx(Fr,{})]})},Wr=x(Br)`
|
|
505
472
|
svg circle {
|
|
506
473
|
stroke: #ffffff;
|
|
507
474
|
}
|
|
508
|
-
`,
|
|
475
|
+
`,_r=x.img`
|
|
509
476
|
transform: none;
|
|
510
477
|
|
|
511
|
-
${
|
|
512
|
-
width: ${
|
|
513
|
-
height: ${
|
|
478
|
+
${t=>t.imageSize&&C.css`
|
|
479
|
+
width: ${t.imageSize[0]};
|
|
480
|
+
height: ${t.imageSize[1]};
|
|
514
481
|
display: inline-block;
|
|
515
482
|
`}
|
|
516
483
|
vertical-align: middle;
|
|
517
484
|
position: relative;
|
|
518
|
-
${
|
|
519
|
-
`,
|
|
485
|
+
${t=>!t.loaded&&"display:none;"}
|
|
486
|
+
`,Fr=x.div`
|
|
520
487
|
height: 100%;
|
|
521
488
|
display: inline-block;
|
|
522
489
|
vertical-align: middle;
|
|
523
|
-
`,
|
|
490
|
+
`,Zr=()=>{const t=f.useRef(),[e,n]=f.useState(!0),s=f.useCallback(()=>(e||n(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{n(!1)},3e3),()=>{t.current&&clearTimeout(t.current)}),[e,t]);return[e,s]},In=({attrs:t,htmlBody:e})=>{var Re;const n=U("Escape"),s=U("ArrowLeft"),r=U("ArrowRight"),[o,i]=f.useState(1),[u,c]=f.useState({top:0,left:0,x:0,y:0}),[d,l]=f.useState(!1),[h,m]=Zr(),[g,y]=f.useState(null),[p,v]=f.useState(null),j=f.useRef(null),S=f.useRef(null),N=f.useRef(null),$=f.useRef(null),L=f.useRef(null),[Y,I]=f.useState(null);f.useEffect(()=>{n&&y(null)},[n]),f.useEffect(()=>{i(1)},[g]),f.useEffect(()=>{var z,X;if(g===null||S.current===null)return;const b=S.current.firstElementChild,E=(z=N.current)==null?void 0:z.querySelector(".nav-left"),R=(X=N.current)==null?void 0:X.querySelector(".nav-right");if(p==="Right")fe&&R?R.focus():te&&E&&E.focus();else if(p==="Left")te&&E?E.focus():fe&&R&&R.focus();else{if(!b)return;b.focus()}},[g,S,N,p]),f.useEffect(()=>{if(s){if(te)return he()}else if(r&&fe)return _()},[s,r]),f.useEffect(()=>{var E,R;const b=((R=(E=L.current)==null?void 0:E.style)==null?void 0:R.float)||"";(b==="left"||b==="right")&&I(b)},[]);const T=f.useMemo(()=>{const b=document.createElement("div");b.innerHTML=e||"";const E=b.getElementsByTagName("img");return Array.from(E).reduce((z,X)=>{const ne=X.getAttribute("src");if(ne){const me={src:ne};z.push(me)}return z},[])},[e]),W=f.useCallback(()=>{const{src:b}=t;if(b){const E=T.findIndex((R,z)=>R.src===b);y(E)}},[T,t]),B=f.useCallback(b=>{y(null)},[]),P=f.useCallback(b=>{i(b?o+o*.25:o-o*.25)},[i,o]),A=f.useCallback(()=>{if(g!==null){const{src:b}=T[g];b&&window.open(b,"_self")}},[T,g]),q=f.useCallback(b=>{const E=$.current;E&&(c({top:E.scrollTop,left:E.scrollLeft,x:b.clientX,y:b.clientY}),l(!0))},[$]),ae=f.useCallback(b=>{const E=$.current;if(E&&d){const R=b.clientX-u.x,z=b.clientY-u.y;E.scrollTop=u.top-z,E.scrollLeft=u.left-R}},[d,u]),ce=b=>{b.preventDefault(),l(!1)},ee=f.useMemo(()=>{if($.current){const b=$.current.getElementsByTagName("img");if(b&&b.length){const E=b[0];return E.width>window.innerWidth||E.height>window.innerHeight}}return!1},[$,o]),he=()=>{g!==null&&(v("Left"),y(g-1))},_=()=>{g!==null&&(v("Right"),y(g+1))},te=g!==null&&g>0&&T.length>1,fe=g!==null&&T.length-1>g;return a.jsxs(a.Fragment,{children:[a.jsx(It,{visible:g!==null,onClick:B,children:a.jsxs(Gr,{onMouseDown:()=>m(),onMouseMove:()=>m(),onTouchStart:()=>m(),onKeyDown:()=>m(),children:[a.jsx(eo,{show:h.toString(),children:a.jsx(Ur,{ref:S,buttons:[{id:"download",onClick:A,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>y(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),a.jsx(no,{scrolling:d.toString(),isDraggable:ee.toString(),ref:$,onMouseMove:ae,onMouseDown:q,onMouseUp:ce,children:g!==null&&a.jsx(Vr,{changeZoom:b=>{i(b)},zoomState:o,...t,style:{...t.style||{},float:"none"},image:T[g]})}),a.jsx(Xr,{ref:N,show:h.toString(),buttons:[{id:"previous",onClick:he,icon:"caret-left",circle:!0,show:te,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:_,icon:"caret-right",circle:!0,show:fe,className:"nav-right",ariaLabel:"Navigate to next image"}]}),a.jsxs(to,{show:h.toString(),children:[a.jsx(Jr,{buttons:[{id:"zoom-out",onClick:()=>P(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>P(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),a.jsxs(Qr,{variant:"span",children:[Math.trunc(o*100),"%"]})]})]})}),a.jsx(Kr,{ref:j,onClick:W,onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),W())},alignment:Y,tabIndex:0,children:a.jsx(so,{...t,alt:((Re=t.alt)==null?void 0:Re.toString())||"",ref:L})})]})},Bt=f.forwardRef(({show:t="true",buttons:e,className:n},s)=>a.jsx(Yr,{ref:s,show:t,className:k("humany-button-set",n),children:e.map(({id:r,circle:o=!1,show:i=!0,ariaLabel:u,onClick:c,icon:d,className:l},h)=>a.jsx(qr,{circle:o.toString(),onClick:c,tabIndex:i?void 0:-1,show:i.toString(),icon:d,className:l,"aria-label":u,children:a.jsx(V,{size:24,symbol:{type:"Svg",content:d}})},r+h.toString()))})),Bn=x.div`
|
|
524
491
|
transition: opacity 0.3s ease 0s;
|
|
525
492
|
z-index: 5;
|
|
526
|
-
${
|
|
493
|
+
${t=>t.show==="true"?"opacity: 1;":C.css`
|
|
527
494
|
opacity: 0;
|
|
528
495
|
pointer-events: none;
|
|
529
496
|
`}
|
|
530
|
-
`,
|
|
497
|
+
`,Kr=x(Ne)`
|
|
531
498
|
display: inline-block !important;
|
|
532
499
|
|
|
533
|
-
${
|
|
534
|
-
float: ${
|
|
500
|
+
${t=>(t.alignment==="right"||t.alignment==="left")&&C.css`
|
|
501
|
+
float: ${t.alignment};
|
|
535
502
|
`}
|
|
536
|
-
`,
|
|
503
|
+
`,Yr=x(Bn)`
|
|
537
504
|
position: fixed;
|
|
538
505
|
display: flex;
|
|
539
|
-
gap: ${
|
|
540
|
-
`,
|
|
541
|
-
width: ${
|
|
542
|
-
height: ${
|
|
506
|
+
gap: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
|
|
507
|
+
`,pt="39px",qr=x(ie)`
|
|
508
|
+
width: ${pt};
|
|
509
|
+
height: ${pt};
|
|
543
510
|
display: flex;
|
|
544
511
|
justify-content: center;
|
|
545
512
|
align-items: center;
|
|
546
513
|
|
|
547
|
-
${
|
|
514
|
+
${t=>t.icon==="caret-left"&&C.css`
|
|
548
515
|
svg {
|
|
549
516
|
position: relative;
|
|
550
517
|
left: -2px;
|
|
551
518
|
}
|
|
552
519
|
`}
|
|
553
520
|
|
|
554
|
-
${
|
|
521
|
+
${t=>{var e;return t.circle==="true"?C.css`
|
|
555
522
|
background-color: #ffffff;
|
|
556
523
|
border-radius: 50%;
|
|
557
524
|
|
|
558
525
|
svg {
|
|
559
526
|
path,
|
|
560
527
|
line {
|
|
561
|
-
stroke: ${(t
|
|
528
|
+
stroke: ${(e=t.theme.colors)==null?void 0:e.text};
|
|
562
529
|
}
|
|
563
530
|
}
|
|
564
531
|
|
|
565
532
|
&:focus-visible {
|
|
566
|
-
${
|
|
533
|
+
${K(t)}
|
|
567
534
|
outline-color: #ffffff;
|
|
568
535
|
background-color: transparent;
|
|
569
536
|
|
|
@@ -574,7 +541,7 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
574
541
|
}
|
|
575
542
|
}
|
|
576
543
|
}
|
|
577
|
-
`:
|
|
544
|
+
`:C.css`
|
|
578
545
|
svg {
|
|
579
546
|
path,
|
|
580
547
|
line {
|
|
@@ -585,70 +552,70 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
585
552
|
outline-color: #ffffff;
|
|
586
553
|
}
|
|
587
554
|
&:focus-visible {
|
|
588
|
-
${
|
|
555
|
+
${K(t)}
|
|
589
556
|
}
|
|
590
557
|
`}}
|
|
591
558
|
|
|
592
|
-
${
|
|
559
|
+
${t=>t.show==="true"?C.css`
|
|
593
560
|
opacity: 0.8;
|
|
594
561
|
transition: opacity 0.3s ease 0s;
|
|
595
562
|
&:hover {
|
|
596
563
|
opacity: 1;
|
|
597
564
|
}
|
|
598
|
-
`:
|
|
565
|
+
`:C.css`
|
|
599
566
|
opacity: 0;
|
|
600
567
|
pointer-events: none;
|
|
601
568
|
`}
|
|
602
|
-
`,
|
|
603
|
-
top: ${
|
|
604
|
-
right: ${
|
|
605
|
-
`,
|
|
606
|
-
bottom: ${
|
|
569
|
+
`,Ur=x(Bt)`
|
|
570
|
+
top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
571
|
+
right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
572
|
+
`,Jr=x(Bt)`
|
|
573
|
+
bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
607
574
|
width: 100%;
|
|
608
575
|
align-items: center;
|
|
609
576
|
justify-content: center;
|
|
610
|
-
`,
|
|
577
|
+
`,Xr=x(Bt)`
|
|
611
578
|
display: block;
|
|
612
579
|
button {
|
|
613
580
|
position: fixed;
|
|
614
|
-
top: calc(50% - calc(${
|
|
581
|
+
top: calc(50% - calc(${pt} / 2));
|
|
615
582
|
&:first-child {
|
|
616
|
-
left: ${
|
|
583
|
+
left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
617
584
|
}
|
|
618
585
|
&:last-child {
|
|
619
|
-
right: ${
|
|
586
|
+
right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
620
587
|
}
|
|
621
588
|
}
|
|
622
|
-
`,
|
|
589
|
+
`,Qr=x(ve)`
|
|
623
590
|
position: fixed;
|
|
624
|
-
bottom: ${
|
|
625
|
-
right: ${
|
|
591
|
+
bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
592
|
+
right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
626
593
|
color: #ffffff;
|
|
627
|
-
font-size: ${
|
|
628
|
-
font-family: ${
|
|
629
|
-
`,
|
|
594
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.medium}};
|
|
595
|
+
font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
|
|
596
|
+
`,Vn=x(Bn)`
|
|
630
597
|
position: absolute;
|
|
631
598
|
width: 100vw;
|
|
632
599
|
height: 88px;
|
|
633
600
|
left: 0px;
|
|
634
601
|
z-index: 5;
|
|
635
|
-
`,
|
|
602
|
+
`,Gr=x.div`
|
|
636
603
|
width: 100%;
|
|
637
|
-
`,
|
|
604
|
+
`,eo=x(Vn)`
|
|
638
605
|
top: 0px;
|
|
639
606
|
background-image: linear-gradient(
|
|
640
607
|
to bottom,
|
|
641
608
|
rgb(34, 34, 34, 0.8),
|
|
642
609
|
rgba(34, 34, 34, 0)
|
|
643
610
|
);
|
|
644
|
-
`,
|
|
611
|
+
`,to=x(Vn)`
|
|
645
612
|
bottom: 0px;
|
|
646
613
|
background-image: linear-gradient(
|
|
647
614
|
to top,
|
|
648
615
|
rgb(34, 34, 34, 0.8),
|
|
649
616
|
rgba(34, 34, 34, 0)
|
|
650
617
|
);
|
|
651
|
-
`,
|
|
618
|
+
`,no=x.div`
|
|
652
619
|
width: 100%;
|
|
653
620
|
height: 100vh;
|
|
654
621
|
overflow: auto;
|
|
@@ -656,115 +623,115 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
656
623
|
vertical-align: middle;
|
|
657
624
|
white-space: nowrap;
|
|
658
625
|
justify-content: center;
|
|
659
|
-
cursor: ${
|
|
660
|
-
`,
|
|
626
|
+
cursor: ${t=>t.isDraggable==="true"?t.scrolling==="true"?"grabbing":"grab":"auto"};
|
|
627
|
+
`,so=x.img`
|
|
661
628
|
cursor: pointer;
|
|
662
|
-
`,
|
|
663
|
-
font-family: ${
|
|
664
|
-
font-size: ${
|
|
629
|
+
`,Wn=f.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:s=()=>{},close:r=!1,...o},i)=>{const[u,c]=Lt(),[d,l]=Et(!0),h=f.useRef(),m=f.useRef(oe()),g=U("Escape");f.useEffect(()=>{(g||r)&&c(!1)},[g,r]),f.useEffect(()=>{u&&h.current&&h.current.focus()},[u,h.current]),Se("router:changed",()=>{c(!1)});const y=f.useCallback(v=>{c(!1),s(v)},[s,c]);f.useImperativeHandle(i,()=>({close(){c(!1)}}));const p=f.useCallback(()=>Ze(m.current,()=>{c(!1)}),[m.current]);return a.jsxs(a.Fragment,{children:[a.jsx(It,{visible:u,onClick:y,children:a.jsxs(ro,{className:k(t,"humany-modal",`humany-modal-${m.current}`),css:d,tabIndex:-1,...o,ref:l,children:[a.jsx(Mt,{onClick:()=>c(!1),tabIndex:0,ref:h,children:a.jsx(V,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:v=>{c(),p()}})]})}),ro=x.div`
|
|
630
|
+
font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
|
|
631
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
665
632
|
position: relative;
|
|
666
633
|
max-width: 50%;
|
|
667
634
|
min-width: 200px;
|
|
668
|
-
padding: ${
|
|
669
|
-
${
|
|
670
|
-
${
|
|
635
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
|
|
636
|
+
${t=>Nt(t)}
|
|
637
|
+
${t=>t.css&&t.css}
|
|
671
638
|
outline: none;
|
|
672
|
-
`,
|
|
639
|
+
`,_n=({className:t,trigger:e,header:n="",text:s="",onCancel:r=()=>{},onConfirm:o=()=>{},cancelLabel:i="",confirmLabel:u=""})=>{const c=f.useRef(),d=f.useCallback(()=>{var h;r(),(h=c==null?void 0:c.current)==null||h.close()},[r]),l=f.useCallback(()=>{var h;o(),(h=c==null?void 0:c.current)==null||h.close()},[o]);return a.jsxs(oo,{className:t,trigger:e,ref:c,onOverlayClick:d,children:[n&&a.jsx(xe,{children:n}),s&&a.jsx(xe,{children:s}),u&&a.jsx(io,{onClick:l,children:u}),i&&a.jsx(ao,{onClick:d,children:i})]})},oo=x(Wn)`
|
|
673
640
|
display: block;
|
|
674
641
|
|
|
675
642
|
span {
|
|
676
643
|
display: block;
|
|
677
|
-
margin: 0 0 ${
|
|
644
|
+
margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
|
|
678
645
|
|
|
679
646
|
&:first-of-type:not(:only-of-type) {
|
|
680
647
|
font-weight: 700;
|
|
681
|
-
margin: 0 0 ${
|
|
648
|
+
margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
|
|
682
649
|
}
|
|
683
650
|
}
|
|
684
|
-
`,
|
|
651
|
+
`,io=x(ie)`
|
|
685
652
|
display: inline-block;
|
|
686
653
|
min-width: 50px;
|
|
687
|
-
${
|
|
688
|
-
${
|
|
654
|
+
${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
|
|
655
|
+
${t=>t.theme.borderRadius&&`border-radius: ${t.theme.borderRadius};`}
|
|
689
656
|
color: #FFFFFF;
|
|
690
|
-
background-color: ${
|
|
691
|
-
border: 1px solid ${
|
|
657
|
+
background-color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
658
|
+
border: 1px solid ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
692
659
|
|
|
693
|
-
margin: 0 ${
|
|
660
|
+
margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
|
|
694
661
|
|
|
695
662
|
&:focus {
|
|
696
663
|
background-color: transparent;
|
|
697
664
|
}
|
|
698
665
|
|
|
699
666
|
&:focus-visible {
|
|
700
|
-
${
|
|
667
|
+
${K}
|
|
701
668
|
}
|
|
702
|
-
`,
|
|
669
|
+
`,ao=x(ie)`
|
|
703
670
|
display: inline-block;
|
|
704
671
|
min-width: 50px;
|
|
705
|
-
${
|
|
706
|
-
${
|
|
672
|
+
${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
|
|
673
|
+
${t=>t.theme.borderRadius&&`border-radius: ${t.theme.borderRadius};`}
|
|
707
674
|
background-color: transparent;
|
|
708
|
-
color: ${
|
|
709
|
-
border: 1px solid ${
|
|
675
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
676
|
+
border: 1px solid ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
710
677
|
|
|
711
678
|
&:focus-visible {
|
|
712
|
-
${
|
|
679
|
+
${K};
|
|
713
680
|
}
|
|
714
|
-
`,
|
|
681
|
+
`,co=({header:t="",link:e="",suggestionHeader:n="",suggestion:s=""})=>a.jsxs(lo,{children:[a.jsx(uo,{children:a.jsx(ve,{variant:"h2",children:"404"})}),a.jsxs(ho,{children:[a.jsx(ve,{variant:"h3",children:t}),a.jsx(je,{routeName:"index","aria-label":e,text:e})]}),a.jsxs(fo,{children:[a.jsx("span",{children:n}),a.jsx("ul",{children:a.jsx("li",{children:s})})]})]}),lo=x.div`
|
|
715
682
|
display: flex;
|
|
716
683
|
flex-wrap: wrap;
|
|
717
|
-
`,
|
|
718
|
-
${
|
|
684
|
+
`,uo=x.div`
|
|
685
|
+
${t=>re(t)("h2",C.css`
|
|
719
686
|
padding: 0;
|
|
720
687
|
margin: 0;
|
|
721
688
|
color: gray;
|
|
722
689
|
font-size: 7em;
|
|
723
690
|
`)}
|
|
724
|
-
`,
|
|
725
|
-
margin-left: ${
|
|
691
|
+
`,ho=x.div`
|
|
692
|
+
margin-left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
|
|
726
693
|
|
|
727
|
-
${
|
|
694
|
+
${t=>{var e;return re(t)("h3",C.css`
|
|
728
695
|
text-transform: uppercase;
|
|
729
|
-
font-size: ${(t
|
|
696
|
+
font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
|
|
730
697
|
`)}}
|
|
731
698
|
|
|
732
699
|
a {
|
|
733
|
-
color: ${
|
|
734
|
-
font-size: ${
|
|
700
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.link}};
|
|
701
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
|
|
735
702
|
}
|
|
736
|
-
`,
|
|
737
|
-
margin-top: ${
|
|
703
|
+
`,fo=x.div`
|
|
704
|
+
margin-top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
|
|
738
705
|
min-width: 100%;
|
|
739
706
|
|
|
740
707
|
span {
|
|
741
708
|
font-weight: bold;
|
|
742
709
|
}
|
|
743
|
-
`;class
|
|
710
|
+
`;class mo extends f.Component{constructor(){super(...arguments);w(this,"node");w(this,"onFocusListener");w(this,"state",{boundFocus:!1})}componentWillMount(){const n=this.props.container.get("accessibilitySettings");n&&n.boundFocus&&this.setState({boundFocus:!0})}componentDidMount(){if(!this.state.boundFocus)return;const n=this.props.container.get("widgetDOMElement");this.node&&n&&(this.onFocusListener=this.node.addEventListener("focus",()=>{const s=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=[].filter.call(s,i=>typeof window>"u"?!0:!(window.getComputedStyle(i).display==="none"||i.offsetWidth<=0&&i.offsetHeight<=0))[0];o&&o.focus()}))}componentWillUnmount(){this.node&&this.node.removeEventListener("focus",this.onFocusListener)}render(){return this.state.boundFocus?a.jsx("div",{style:{opacity:0},tabIndex:0,ref:n=>{this.node=n}}):null}}const je=f.forwardRef(({className:t,description:e,text:n,children:s,...r},o)=>a.jsxs(Ne,{className:k(t,"humany-text-link"),...r,ref:o,children:[s,a.jsx(Ce,{children:n}),e?a.jsx(Tt,{html:e,className:"humany-description"}):null]}));var Je=(t=>(t.HH_MM="hh:mm",t.YYYY_MM_DD="yyyy-mm-dd",t.YYYY_MM_DD_HH_MM="yyyy-mm-dd hh:mm",t))(Je||{});const Vt=({className:t="",format:e="hh:mm",timestamp:n})=>a.jsx("span",{className:k(t,"humany-timestamp"),children:po(n,e)}),Qt=t=>`0${t}`.slice(-2);function po(t,e){const n=new Date(t),s=n.toTimeString().split(" ")[0].split(":"),r=s.length>1?`${s[0]}:${s[1]}`:s[0],o=n.getFullYear(),i=n.getMonth()+1,u=n.getDate(),c=`${o}-${Qt(i)}-${Qt(u)}`;return e==="yyyy-mm-dd"?c:e==="hh:mm"?r:`${c} ${r}`}const go=({className:t,children:e,content:n,sticky:s=!1,...r})=>{const[o,i]=f.useState(!1),u=f.useRef(oe()),c=f.useRef(),[{x:d,y:l},h]=Mn(o,u.current,c.current),m=y=>{const{target:p}=y;!c.current||!p||c.current!==p&&!c.current.contains(p)&&i(!1)};f.useEffect(()=>{if(s)return window.addEventListener("click",m),()=>{window.removeEventListener("click",m)}},[o,s]);const g=f.useCallback((y,p)=>{h(y,c.current),i(p)},[h,i]);return a.jsxs(yo,{ref:c,className:"humany-tooltip-trigger",onMouseEnter:s?void 0:y=>g(y,!0),onMouseLeave:s?void 0:y=>g(y,!1),onTouchEnd:s?y=>g(y,!o):void 0,onClick:s?y=>g(y,!o):void 0,children:[e,o&&a.jsx(we,{children:a.jsx(xo,{className:k(t,"humany-tooltip-container"),x:d,y:l,...r,children:n})})]})},yo=x.div`
|
|
744
711
|
display: flex;
|
|
745
712
|
align-items: center;
|
|
746
|
-
`,
|
|
713
|
+
`,xo=x.div`
|
|
747
714
|
color: #ffffff;
|
|
748
715
|
background: #161616;
|
|
749
|
-
border-radius: ${
|
|
750
|
-
padding: calc(${
|
|
751
|
-
font-size: ${
|
|
752
|
-
font-family: ${
|
|
716
|
+
border-radius: ${t=>t.theme.borderRadius};
|
|
717
|
+
padding: calc(${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} * 2);
|
|
718
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
719
|
+
font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
|
|
753
720
|
position: absolute;
|
|
754
721
|
z-index: 10;
|
|
755
722
|
|
|
756
723
|
a {
|
|
757
|
-
color: ${
|
|
724
|
+
color: ${t=>t.color?t.color:"inherit"};
|
|
758
725
|
text-decoration: none;
|
|
759
726
|
}
|
|
760
727
|
|
|
761
728
|
i,
|
|
762
729
|
svg {
|
|
763
|
-
margin-right: ${
|
|
730
|
+
margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
|
|
764
731
|
}
|
|
765
732
|
|
|
766
|
-
${
|
|
767
|
-
`,
|
|
733
|
+
${t=>{let e="";return t.y>0?e+=`top: calc(2px + ${t.y||"0"}px);`:e+="bottom: 2px;",t.x>0?e+=`right: calc(2px + ${t.x||"0"}px);`:e+="left: 2px;",e}};
|
|
734
|
+
`,vo=t=>{const{in:e,mountOnEnter:n=!0,unmountOnExit:s=!0,timeout:r,children:o,transitions:i}=t,c=(()=>{var d,l;if(!(!i||i==="none")){if(typeof i=="string")return{enter:{transitionKeys:i,duration:r?typeof r=="number"?r:r.enter:200,easing:"ease-in"},exit:{transitionKeys:i,duration:r?typeof r=="number"?r:r.exit:200,easing:"ease-out"}};if(typeof i=="object"){const{enter:h,exit:m}=i;return{enter:{transitionKeys:(d=i.enter)==null?void 0:d.type,duration:r?typeof r=="number"?r:r.enter:200,easing:h.easing?h.easing:"ease-in"},exit:{transitionKeys:(l=i.enter)==null?void 0:l.type,duration:r?typeof r=="number"?r:r.enter:200,easing:m.easing?m.easing:"ease-out"}}}}})();return a.jsx(gt.Transition,{timeout:{enter:c&&c.enter.duration||0,exit:c&&c.exit.duration||0},in:e,appear:!0,mountOnEnter:n,unmountOnExit:s,onEnter:d=>d.clientHeight,children:d=>o&&o(d,c&&Ae.compose(d,c))})},Wt=f.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:s,activationOptions:r,...o},i)=>{const u=H(),c=()=>{const{implementation:h}=u.get("$widget");return h.widgets.get(s)};f.useEffect(()=>{const h=c();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[s]);const d=h=>{const m=c(),g=h.currentTarget;if(m){const y=()=>{m.invoke("renderState").then(p=>p===ke.open?m.invoke("close"):m.invoke("open")).then(()=>{m.events.subscribeOnce("widget:area-rendered",(p,v)=>{u.get("widgetDOMElement")&&m.events.dispatch("widget:modal-opened",{name:m.name,ref:g})})})};m.state===fn.Deactivated?m.activate(r).then(()=>m.invoke("attach")).then(y):y()}},l=h=>{h.key==="Enter"&&(h.preventDefault(),d(h))};return a.jsx(Ne,{className:k(t,"humany-widget-link"),onKeyDown:l,onClick:h=>{n(h),d(h)},...o,ref:i,children:e})}),bo=f.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},s)=>{const r=H(),o=f.useMemo(()=>{if(!r)return null;const i=r.get("widgetDOMElement");return!i||!i.childElementCount?null:i.children[0]},[r]);return o?a.jsx(we,{elementId:t,parent:o,children:a.jsx(Co,{className:k("humany-widget-overlay-outlet",e),ref:s,children:n})}):null}),Co=x.div`
|
|
768
735
|
background-color: #ffffff;
|
|
769
736
|
position: absolute;
|
|
770
737
|
top: 0;
|
|
@@ -774,38 +741,38 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
774
741
|
z-index: 10;
|
|
775
742
|
width: 100%;
|
|
776
743
|
height: 100%;
|
|
777
|
-
`,
|
|
778
|
-
${
|
|
744
|
+
`,wo=(t,e,n,s,r)=>t.getAsync("componentResolver").then(o=>(o.registerComponent(e,f.lazy(()=>n)),Ds(t,e,s||(()=>{}),e,r))),_t=({title:t="",className:e,id:n,parent:s,connection:r,type:o,target:i,href:u,children:c,connectionKey:d})=>{const l={},{name:h,params:m}=St();switch(o){case"default":case"guide":const{id:g,title:y}=s;let p=d||r;g!==n&&!d&&(p=void 0),l.routeName=h,l.params=ze({...m,guide:n,connection:p,uriName:Ft(n===g?y:t)});break;case"link":l.href=u,l.target=i;break}return a.jsx(Ne,{className:k(e,"humany-dialog-link"),...l,children:c||a.jsxs(a.Fragment,{children:[o==="link"&&a.jsx(be,{faIcon:"link"}),a.jsx("span",{children:t})]})})},$o=f.forwardRef(({className:t,dialog:e,...n},s)=>e.length?a.jsx(ko,{className:k(t,"humany-dialog"),items:e,renderItem:r=>a.jsx("li",{"data-dialog":r.connection,children:a.jsx(_t,{...r})},r.connection),...n,ref:s}):null),ko=x(Le)`
|
|
745
|
+
${Ke}
|
|
779
746
|
a {
|
|
780
747
|
min-width: 150px;
|
|
781
748
|
max-width: 400px;
|
|
782
749
|
display: block;
|
|
783
750
|
white-space: normal;
|
|
784
|
-
${
|
|
751
|
+
${t=>{var e,n;return((e=t.theme.colors)==null?void 0:e.primary)&&Rt({primaryColor:(n=t.theme.colors)==null?void 0:n.primary,secondaryColor:"#FFFFFF",theme:t.theme})}}
|
|
785
752
|
}
|
|
786
753
|
|
|
787
754
|
i {
|
|
788
|
-
margin: 0 ${
|
|
755
|
+
margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
|
|
789
756
|
}
|
|
790
|
-
`,
|
|
791
|
-
${
|
|
792
|
-
font-family: ${
|
|
793
|
-
padding: ${
|
|
757
|
+
`,jo=({trigger:t,header:e,className:n,animation:s,fullScreen:r,onToggle:o,children:i,ref:u,closeButtonAriaLabel:c,...d})=>a.jsx(Rn,{className:k(n,"humany-drawer-list"),trigger:t,header:e,animation:s,fullScreen:r,onToggle:o,closeButtonAriaLabel:c,children:a.jsx(So,{...d,children:i})}),So=x($e)`
|
|
758
|
+
${Ee}
|
|
759
|
+
font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
|
|
760
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
|
|
794
761
|
> ul > li {
|
|
795
762
|
overflow: visible;
|
|
796
763
|
font-weight: 300;
|
|
797
|
-
font-size: ${
|
|
764
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
798
765
|
}
|
|
799
|
-
`,
|
|
766
|
+
`,Eo=({items:t,renderItem:e,trigger:n,header:s,children:r})=>a.jsx(Ot,{className:"humany-dropdown-actions",trigger:n,children:a.jsxs(Lo,{children:[!!s&&a.jsx(No,{children:s}),t&&e&&a.jsx(Ro,{items:t,renderItem:e}),r]})}),Lo=x.div`
|
|
800
767
|
background: #fff;
|
|
801
768
|
border: #ccc 1px solid;
|
|
802
769
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
803
|
-
font-family: ${
|
|
804
|
-
font-size: ${
|
|
805
|
-
`,
|
|
806
|
-
padding: ${
|
|
770
|
+
font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
|
|
771
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
772
|
+
`,No=x.div`
|
|
773
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
|
|
807
774
|
padding-bottom: 0;
|
|
808
|
-
font-size: ${
|
|
775
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
809
776
|
font-weight: normal;
|
|
810
777
|
white-space: nowrap;
|
|
811
778
|
display: flex;
|
|
@@ -824,44 +791,44 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
824
791
|
|
|
825
792
|
svg,
|
|
826
793
|
i {
|
|
827
|
-
margin-right: ${
|
|
794
|
+
margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
|
|
828
795
|
}
|
|
829
|
-
`,
|
|
796
|
+
`,Ro=x(Le)`
|
|
830
797
|
list-style: none;
|
|
831
798
|
padding: 0;
|
|
832
799
|
margin: 0;
|
|
833
|
-
padding: ${
|
|
800
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0;
|
|
834
801
|
|
|
835
802
|
li {
|
|
836
803
|
background: #fff;
|
|
837
804
|
|
|
838
805
|
a {
|
|
839
806
|
display: block;
|
|
840
|
-
font-size: ${
|
|
841
|
-
padding: ${
|
|
807
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
|
|
808
|
+
padding: ${t=>{var e,n;return`${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal}`}};
|
|
842
809
|
cursor: pointer;
|
|
843
810
|
color: #555;
|
|
844
811
|
text-decoration: none;
|
|
845
812
|
|
|
846
813
|
&:hover {
|
|
847
814
|
background: #f9f9f9;
|
|
848
|
-
color: ${
|
|
815
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
849
816
|
}
|
|
850
817
|
}
|
|
851
818
|
}
|
|
852
|
-
`,
|
|
853
|
-
${
|
|
854
|
-
font-family: ${
|
|
819
|
+
`,Mo=({trigger:t,className:e,children:n,closeButtonAriaLabel:s,...r})=>a.jsx(Ot,{className:k(e,"humany-dropdown-list"),closeButtonAriaLabel:s,trigger:t,children:a.jsx(Oo,{...r,children:n})}),Oo=x($e)`
|
|
820
|
+
${Ee}
|
|
821
|
+
font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
|
|
855
822
|
> div {
|
|
856
|
-
${
|
|
857
|
-
font-size: ${(t
|
|
823
|
+
${t=>{var e;return re(t)("> h1",C.css`
|
|
824
|
+
font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
|
|
858
825
|
line-height: 1.2em;
|
|
859
826
|
`)}}
|
|
860
827
|
}
|
|
861
828
|
> ul > li {
|
|
862
829
|
overflow: visible;
|
|
863
830
|
font-weight: 300;
|
|
864
|
-
font-size: ${
|
|
831
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
865
832
|
|
|
866
833
|
a {
|
|
867
834
|
display: inline-block;
|
|
@@ -873,42 +840,42 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
873
840
|
}
|
|
874
841
|
}
|
|
875
842
|
}
|
|
876
|
-
`,
|
|
877
|
-
${
|
|
878
|
-
${
|
|
843
|
+
`,Fn=t=>C.css`
|
|
844
|
+
${t["data-loading"]&&"position: relative;"};
|
|
845
|
+
${t["data-loading"]&&"min-height: 150px;"}
|
|
879
846
|
> * {
|
|
880
847
|
transition: 200ms ease-out opacity;
|
|
881
|
-
opacity: ${
|
|
848
|
+
opacity: ${t["data-loading"]?"0.5":"1"};
|
|
882
849
|
}
|
|
883
850
|
.humany-loader {
|
|
884
|
-
opacity: ${
|
|
851
|
+
opacity: ${t["data-loading"]?"1":"0"};
|
|
885
852
|
}
|
|
886
|
-
`,
|
|
853
|
+
`,To=x(be)`
|
|
887
854
|
&& {
|
|
888
|
-
font-size: ${
|
|
855
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
|
|
889
856
|
}
|
|
890
857
|
width: 1.2em;
|
|
891
|
-
`,
|
|
892
|
-
font-size: ${
|
|
858
|
+
`,Do=x(Ce)`
|
|
859
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.medium}};
|
|
893
860
|
font-weight: normal;
|
|
894
861
|
line-height: 1.2em;
|
|
895
|
-
color: ${
|
|
896
|
-
`,
|
|
862
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
863
|
+
`,Zn=x(ie)`
|
|
897
864
|
display: flex;
|
|
898
865
|
align-items: center;
|
|
899
866
|
|
|
900
|
-
${
|
|
867
|
+
${t=>{var e;return t["data-has-label"]==="true"&&t["data-has-symbol"]==="true"&&`
|
|
901
868
|
svg, i {
|
|
902
|
-
margin: 0 ${(t
|
|
869
|
+
margin: 0 ${(e=t.theme.sizes)==null?void 0:e.small} 0 0;
|
|
903
870
|
}
|
|
904
871
|
`}}
|
|
905
872
|
|
|
906
873
|
&:focus-visible {
|
|
907
|
-
${
|
|
874
|
+
${t=>t["data-has-label"]==="true"&&dt}
|
|
908
875
|
|
|
909
876
|
svg, i {
|
|
910
|
-
${
|
|
911
|
-
${
|
|
877
|
+
${t=>t["data-has-label"]==="false"&&t["data-has-symbol"]==="true"&&C.css`
|
|
878
|
+
${dt(t)}
|
|
912
879
|
box-sizing: content-box;
|
|
913
880
|
`}
|
|
914
881
|
}
|
|
@@ -918,120 +885,120 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
918
885
|
flex: 1;
|
|
919
886
|
font-weight: 300;
|
|
920
887
|
}
|
|
921
|
-
`,
|
|
888
|
+
`,Kn=({addFavoriteTooltip:t,removeFavoriteCancelLabel:e,removeFavoriteConfirmLabel:n,removeFavoriteHeader:s,removeFavoriteLabel:r,removeFavoriteTooltip:o,id:i,isFavorite:u,guideTitle:c,buttonLabel:d="",actions:{addFavorite:l,removeFavorite:h}})=>{const m=f.useCallback(()=>{h(i)},[i,h]),g=f.useCallback(()=>{l(i)},[i,l]),y=`${u?o:t}${c?`: "${c}"`:""}`;return u?a.jsx(_n,{trigger:a.jsxs(Gt,{className:"humany-favorite-button",title:y,"aria-label":y,"data-favorite":"true","data-has-label":d?"true":"false","data-has-symbol":"true",children:[a.jsx(V,{size:16,symbol:{type:"Svg",content:"star-empty"}}),d&&a.jsx(xe,{children:d})]}),onConfirm:m,cancelLabel:e,confirmLabel:n,header:s,text:r}):a.jsxs(Gt,{className:"humany-favorite-button",title:y,"aria-label":y,onClick:g,"data-favorite":"false","data-has-label":d?"true":"false","data-has-symbol":"true",children:[a.jsx(V,{size:16,symbol:{type:"Svg",content:"star-empty"}}),d&&a.jsx(xe,{children:d})]})},Gt=x(Zn)`
|
|
922
889
|
grid-area: favorite;
|
|
923
890
|
|
|
924
891
|
&:focus-visible {
|
|
925
892
|
svg {
|
|
926
|
-
${
|
|
893
|
+
${t=>{var e,n;return t["data-favorite"]==="true"?`
|
|
927
894
|
fill: transparent;
|
|
928
895
|
|
|
929
896
|
path {
|
|
930
897
|
fill: transparent;
|
|
931
898
|
}
|
|
932
899
|
`:`
|
|
933
|
-
fill: ${(t
|
|
900
|
+
fill: ${(e=t.theme.colors)==null?void 0:e.text};
|
|
934
901
|
|
|
935
902
|
path {
|
|
936
|
-
fill: ${(n=
|
|
903
|
+
fill: ${(n=t.theme.colors)==null?void 0:n.text};
|
|
937
904
|
}
|
|
938
905
|
`}}
|
|
939
906
|
}
|
|
940
907
|
}
|
|
941
908
|
|
|
942
|
-
${
|
|
909
|
+
${t=>{var e,n,s,r,o,i,u;return((e=t.theme.colors)==null?void 0:e.text)&&C.css`
|
|
943
910
|
svg {
|
|
944
|
-
stroke: ${(n=
|
|
911
|
+
stroke: ${(n=t.theme.colors)==null?void 0:n.text};
|
|
945
912
|
|
|
946
913
|
path {
|
|
947
|
-
stroke: ${(
|
|
914
|
+
stroke: ${(s=t.theme.colors)==null?void 0:s.text};
|
|
948
915
|
}
|
|
949
916
|
|
|
950
|
-
${
|
|
951
|
-
fill: ${(
|
|
917
|
+
${t["data-favorite"]==="true"&&`
|
|
918
|
+
fill: ${(r=t.theme.colors)==null?void 0:r.text};
|
|
952
919
|
|
|
953
920
|
path {
|
|
954
|
-
fill: ${(
|
|
921
|
+
fill: ${(o=t.theme.colors)==null?void 0:o.text};
|
|
955
922
|
}
|
|
956
923
|
`};
|
|
957
924
|
}
|
|
958
925
|
|
|
959
926
|
&:hover {
|
|
960
927
|
svg {
|
|
961
|
-
${
|
|
928
|
+
${t["data-favorite"]==="true"?`
|
|
962
929
|
fill: transparent;
|
|
963
930
|
|
|
964
931
|
path {
|
|
965
932
|
fill: transparent;
|
|
966
933
|
}
|
|
967
934
|
`:`
|
|
968
|
-
fill: ${(i=
|
|
935
|
+
fill: ${(i=t.theme.colors)==null?void 0:i.text};
|
|
969
936
|
|
|
970
937
|
path {
|
|
971
|
-
fill: ${(
|
|
938
|
+
fill: ${(u=t.theme.colors)==null?void 0:u.text};
|
|
972
939
|
}
|
|
973
940
|
`};
|
|
974
941
|
}
|
|
975
942
|
}
|
|
976
943
|
`}}
|
|
977
|
-
`,
|
|
944
|
+
`,Ao=f.forwardRef(({onFeedback:t=()=>{},direction:e="horizontal",className:n,header:s,positive:r,negative:o,selected:i,...u},c)=>a.jsxs(Po,{className:k(n,"humany-feedback"),"data-direction":e,...D(u),ref:c,children:[!!s&&a.jsx(zo,{children:s}),a.jsxs(en,{className:"humany-feedback-button",disabled:!!i,"data-selected":i==="positive","data-direction":e,onClick:()=>t("positive"),children:[a.jsx(be,{faIcon:"smile-o"}),a.jsx("span",{children:r})]}),a.jsxs(en,{className:"humany-feedback-button",disabled:!!i,"data-selected":i==="negative","data-direction":e,onClick:()=>t("negative"),children:[a.jsx(be,{faIcon:"frown-o"}),a.jsx("span",{children:o})]})]})),zo=x(xe)`
|
|
978
945
|
font-weight: normal;
|
|
979
|
-
margin: 0 0 ${
|
|
980
|
-
font-size: ${
|
|
946
|
+
margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
|
|
947
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
981
948
|
display: block;
|
|
982
|
-
`,
|
|
949
|
+
`,en=x(ie)`
|
|
983
950
|
display: inline-block;
|
|
984
|
-
font-size: ${
|
|
951
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
985
952
|
font-weight: 300;
|
|
986
953
|
&& {
|
|
987
|
-
margin-right: ${
|
|
954
|
+
margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
988
955
|
}
|
|
989
956
|
|
|
990
|
-
${
|
|
957
|
+
${t=>{var e,n;return t["data-direction"]==="horizontal"&&C.css`
|
|
991
958
|
width: 225px;
|
|
992
|
-
max-width: calc(50% - ${(t
|
|
959
|
+
max-width: calc(50% - ${(e=t.theme.sizes)==null?void 0:e.large} - ${(n=t.theme.sizes)==null?void 0:n.small});
|
|
993
960
|
`}}
|
|
994
961
|
|
|
995
|
-
${
|
|
962
|
+
${t=>t["data-direction"]==="vertical"&&C.css`
|
|
996
963
|
min-width: 190px;
|
|
997
964
|
`}
|
|
998
965
|
|
|
999
|
-
${
|
|
966
|
+
${t=>{var e,n;return((e=t.theme.colors)==null?void 0:e.primary)&&Rt({active:t["data-selected"],primaryColor:(n=t.theme.colors)==null?void 0:n.primary,secondaryColor:"#FFFFFF",theme:t.theme})}}
|
|
1000
967
|
|
|
1001
968
|
i {
|
|
1002
|
-
margin: 0 ${
|
|
969
|
+
margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
|
|
1003
970
|
}
|
|
1004
|
-
`,
|
|
1005
|
-
${
|
|
971
|
+
`,Po=x.div`
|
|
972
|
+
${t=>{var e;return t["data-direction"]==="vertical"&&C.css`
|
|
1006
973
|
> button {
|
|
1007
974
|
width: 100%;
|
|
1008
975
|
&:not(:last-child) {
|
|
1009
|
-
margin-bottom: ${(t
|
|
976
|
+
margin-bottom: ${(e=t.theme.sizes)==null?void 0:e.normal};
|
|
1010
977
|
}
|
|
1011
978
|
}
|
|
1012
979
|
`}}
|
|
1013
|
-
|
|
980
|
+
`,Ho=()=>{const[t,e]=f.useState(null),n=U("ArrowLeft"),s=U("ArrowRight"),r=U("ArrowUp"),o=U("ArrowDown"),i=()=>{e(n?"left":s?"right":r?"up":o?"down":null)};return f.useEffect(i,[n,s,r,o]),t},Io=(t,e)=>{const[n,s]=f.useState(t),r=f.useCallback(()=>setTimeout(()=>{s(t)},e),[e,s,t]);return f.useEffect(()=>{const o=r();return()=>{clearTimeout(o)}},[r]),n},Yn=()=>{const t=H(),[e,n]=f.useState([]),s=t.get("favorites");f.useEffect(()=>{if(s){n(s.get());const{events:c}=t.get("$widget");return c.subscribe("widget:favorites-updated",(l,{updated:h})=>{n([...h])})}},[]);const r=c=>s?s.add(c):Promise.resolve([]),o=c=>s?s.remove(c):Promise.resolve([]),i=()=>s?s.clear():Promise.resolve([]),u=f.useCallback(c=>e.indexOf(c)>-1?o(c):r(c),[e]);return[e,f.useMemo(()=>({addFavorite:r,removeFavorite:o,clearFavorites:i,toggleFavorite:u}),[e])]},Bo=()=>{const[t,e]=f.useState(!1),n=f.useRef(),s=f.useCallback(()=>e(!0),[e]),r=f.useCallback(()=>e(!1),[e]);return Z("mouseenter",s,n.current),Z("mouseleave",r,n.current),[t,n]},qn=({format:t=Je.YYYY_MM_DD_HH_MM,className:e="",byLabel:n="",modifiedLabel:s="",publishedLabel:r="",modifiedBy:o="",publishedBy:i="",showModified:u=!1,showPublished:c=!1,modified:d,published:l})=>{const h=c&&l?a.jsx(tn,{format:t,timestamp:l}):null,m=u&&d?a.jsx(tn,{format:t,timestamp:d}):null;return!h&&!m?null:a.jsxs(at,{className:k(e,"humany-metadata"),children:[h&&a.jsxs(at,{className:"humany-published",children:[r,h,n&&i&&` ${n.replace("{{editor}}",i)}`]}),m&&a.jsxs(at,{className:"humany-modified",children:[h&&", ",s,m,n&&o&&` ${n.replace("{{editor}}",o)}`]})]})},tn=x(Vt)`
|
|
1014
981
|
&:not(:first-child) {
|
|
1015
982
|
margin-left: 4px;
|
|
1016
983
|
}
|
|
1017
984
|
&:not(:last-child) {
|
|
1018
985
|
margin-right: 4px;
|
|
1019
986
|
}
|
|
1020
|
-
`,
|
|
987
|
+
`,at=x(Ce)`
|
|
1021
988
|
font-style: italic;
|
|
1022
|
-
`,
|
|
989
|
+
`,Vo=({tags:t})=>t.filter(e=>e.symbol).length?a.jsx(Ko,{className:"humany-guide-list-tags",items:t,renderItem:({id:e,symbol:n,title:s})=>n&&a.jsx("li",{"data-tag":e,children:a.jsx(Yo,{size:18,symbol:n,title:s})},e)}):null,Wo=f.forwardRef(({title:t,id:e,route:n,symbolSize:s,collapseUri:r,children:o},i)=>{const{params:u}=St();return a.jsxs(_o,{ref:i,"data-guide":e,children:[a.jsx(je,{title:t,"aria-label":t,routeName:n,params:ze({...u,uriName:r||void 0,id:void 0,guide:void 0,accordion:void 0}),text:t,children:a.jsx(V,{size:s,symbol:{type:"Svg",content:"caret-up"}})}),o]})}),_o=x.li`
|
|
1023
990
|
> a {
|
|
1024
991
|
grid-column: 1/-1;
|
|
1025
992
|
font-weight: bold;
|
|
1026
|
-
margin: 0 0 ${
|
|
993
|
+
margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}} 0;
|
|
1027
994
|
}
|
|
1028
995
|
|
|
1029
996
|
> div {
|
|
1030
997
|
grid-column: 1/-1;
|
|
1031
998
|
}
|
|
1032
|
-
`,
|
|
1033
|
-
${
|
|
1034
|
-
padding: ${
|
|
999
|
+
`,Fo=f.forwardRef(({expandable:t=!1,routing:e={},paramMappers:n={},symbolSize:s=11,pageRole:r="link",pageCaret:o="down",showTags:i=!1,showFavoriteToggle:u=!1,localPaging:c=!1,onItemClick:d=()=>{},dispatch:l=()=>{},metadata:h={},pageLabel:m,className:g,children:y,items:p,renderItem:v,addFavoriteTooltip:j,removeFavoriteCancelLabel:S,removeFavoriteConfirmLabel:N,removeFavoriteHeader:$,removeFavoriteLabel:L,removeFavoriteTooltip:Y,...I},T)=>{const W=jn(),B=f.useRef(),P=Fe(p),{guide:A="guide",page:q="index"}=e,{guide:ae=({id:b})=>ze({guide:b}),page:ce=()=>ze()}=n,[ee,he]=Yn();f.useImperativeHandle(T,()=>B.current);const _=b=>{const{id:E,title:R,tags:z,published:X,modified:ne,publishedBy:me,modifiedBy:Xe}=b;return a.jsxs("li",{"data-guide":E,"has-metadata":(!!(h!=null&&h.showPublished)&&!!X||!!(h!=null&&h.showModified)&&!!ne).toString(),children:[a.jsx(je,{className:"humany-guide-link",title:R,"aria-label":R,routeName:A,onClick:Xn=>d(Xn,b),params:ae(b),text:R,children:a.jsx(V,{size:s,symbol:{type:"Svg",content:t?"caret-down":"caret-right"}})}),u&&a.jsx(Kn,{guideTitle:R,addFavoriteTooltip:j,removeFavoriteCancelLabel:S,removeFavoriteConfirmLabel:N,removeFavoriteHeader:$,removeFavoriteLabel:L,removeFavoriteTooltip:Y,isFavorite:ee.indexOf(E)>-1,actions:he,id:E}),i&&a.jsx(Vo,{tags:z}),a.jsx(qo,{...h,indent:t?void 0:s,modified:ne,published:X,publishedBy:me,modifiedBy:Xe})]},E)},te=f.useCallback((b,E,R)=>v?v(b,E,R,_):_(b),[v,_]),fe=f.useCallback(b=>{c&&(b.preventDefault(),l("page",ce()))},[l,c]);f.useEffect(()=>{if(P&&P.length<p.length&&B.current){const b=B.current.querySelectorAll(".humany-guide-list > ul > li"),E=b[P.length];if(b.length===p.length&&P.length){const R=b[P.length];if(R){const z=R.querySelector(".humany-guide-link");z&&z.focus()}}else E&&new MutationObserver((z,X)=>{z.forEach(ne=>{if(ne.addedNodes){const me=Array.from(ne.addedNodes).find(Xe=>Xe.tagName==="A");me&&is(B.current,document.activeElement)&&(W&&me.focus(),X.disconnect())}})}).observe(E,{attributes:!1,characterData:!1,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1})}});const Re=!!Object.keys(h).filter(b=>typeof h[b]<"u").length;return a.jsxs(Zo,{className:k(g,"humany-guide-list"),"data-item-count":p.length,items:p,renderItem:te,isTabbing:W,expandable:t?"true":"false","grid-items":i||u||Re?"true":"false",...D(I),ref:B,children:[m?a.jsx(je,{text:m,title:m,"aria-label":m,routeName:q,role:r,params:ce(),onClick:fe,children:a.jsx(V,{size:s,symbol:{type:"Svg",content:`caret-${o}`}})}):null,y]})}),Zo=x($e)`
|
|
1000
|
+
${Ee}
|
|
1001
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
1035
1002
|
overflow: auto;
|
|
1036
1003
|
justify-content: flex-start;
|
|
1037
1004
|
white-space: nowrap;
|
|
@@ -1039,13 +1006,13 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1039
1006
|
text-decoration: none;
|
|
1040
1007
|
|
|
1041
1008
|
> div {
|
|
1042
|
-
${
|
|
1009
|
+
${t=>re(t)("> h1",C.css`
|
|
1043
1010
|
white-space: pre-wrap;
|
|
1044
1011
|
`)}
|
|
1045
1012
|
}
|
|
1046
1013
|
|
|
1047
1014
|
> ul > li {
|
|
1048
|
-
${
|
|
1015
|
+
${t=>{var e,n;return t["grid-items"]==="true"&&C.css`
|
|
1049
1016
|
display: grid;
|
|
1050
1017
|
grid-template-columns: auto 1fr 1fr;
|
|
1051
1018
|
gap: 0px 0px;
|
|
@@ -1053,10 +1020,10 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1053
1020
|
align-items: center;
|
|
1054
1021
|
|
|
1055
1022
|
> button {
|
|
1056
|
-
margin: 0 0 0 ${(t
|
|
1023
|
+
margin: 0 0 0 ${(e=t.theme.sizes)==null?void 0:e.small};
|
|
1057
1024
|
|
|
1058
1025
|
&[data-favorite='false'] {
|
|
1059
|
-
${
|
|
1026
|
+
${t.isTabbing?"opacity: 0;":"display: none;"};
|
|
1060
1027
|
&:focus {
|
|
1061
1028
|
opacity: 1;
|
|
1062
1029
|
}
|
|
@@ -1064,7 +1031,7 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1064
1031
|
}
|
|
1065
1032
|
|
|
1066
1033
|
> span {
|
|
1067
|
-
font-size: ${(n=
|
|
1034
|
+
font-size: ${(n=t.theme.fonts)==null?void 0:n.small};
|
|
1068
1035
|
}
|
|
1069
1036
|
|
|
1070
1037
|
&:hover {
|
|
@@ -1082,20 +1049,20 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1082
1049
|
}
|
|
1083
1050
|
`}}
|
|
1084
1051
|
> a {
|
|
1085
|
-
color: ${
|
|
1052
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
1086
1053
|
overflow: hidden;
|
|
1087
1054
|
text-overflow: ellipsis;
|
|
1088
1055
|
max-width: 100%;
|
|
1089
1056
|
display: inline-block;
|
|
1090
1057
|
|
|
1091
1058
|
svg {
|
|
1092
|
-
margin: 0 calc(${
|
|
1059
|
+
margin: 0 calc(${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}}*2) 0 0;
|
|
1093
1060
|
line {
|
|
1094
|
-
stroke: ${
|
|
1061
|
+
stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
1095
1062
|
}
|
|
1096
1063
|
}
|
|
1097
1064
|
|
|
1098
|
-
${
|
|
1065
|
+
${t=>{var e;return t.expandable==="true"&&C.css`
|
|
1099
1066
|
display: flex;
|
|
1100
1067
|
flex-direction: row-reverse;
|
|
1101
1068
|
justify-content: flex-end;
|
|
@@ -1107,12 +1074,12 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1107
1074
|
}
|
|
1108
1075
|
|
|
1109
1076
|
svg {
|
|
1110
|
-
margin: 0 0 0 ${(t
|
|
1077
|
+
margin: 0 0 0 ${(e=t.theme.sizes)==null?void 0:e.small};
|
|
1111
1078
|
}
|
|
1112
1079
|
`}}
|
|
1113
1080
|
|
|
1114
1081
|
&:focus-visible {
|
|
1115
|
-
${
|
|
1082
|
+
${K}
|
|
1116
1083
|
text-decoration: underline;
|
|
1117
1084
|
}
|
|
1118
1085
|
|
|
@@ -1125,8 +1092,8 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1125
1092
|
}
|
|
1126
1093
|
|
|
1127
1094
|
> a {
|
|
1128
|
-
color: ${
|
|
1129
|
-
margin: ${
|
|
1095
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
1096
|
+
margin: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}} 0 0;
|
|
1130
1097
|
align-self: flex-start;
|
|
1131
1098
|
align-items: center;
|
|
1132
1099
|
display: flex;
|
|
@@ -1136,50 +1103,50 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1136
1103
|
}
|
|
1137
1104
|
|
|
1138
1105
|
svg {
|
|
1139
|
-
margin: 0 calc(${
|
|
1106
|
+
margin: 0 calc(${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}}*2) 0 0;
|
|
1140
1107
|
line {
|
|
1141
|
-
stroke: ${
|
|
1108
|
+
stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
1142
1109
|
}
|
|
1143
1110
|
}
|
|
1144
1111
|
|
|
1145
1112
|
&:focus-visible {
|
|
1146
|
-
${
|
|
1113
|
+
${K}
|
|
1147
1114
|
text-decoration: underline;
|
|
1148
1115
|
}
|
|
1149
1116
|
}
|
|
1150
|
-
`,
|
|
1151
|
-
${
|
|
1117
|
+
`,Ko=x(Le)`
|
|
1118
|
+
${Ke}
|
|
1152
1119
|
display: flex;
|
|
1153
1120
|
margin: 0 0 0 auto;
|
|
1154
1121
|
grid-area: tags;
|
|
1155
1122
|
|
|
1156
1123
|
li,
|
|
1157
1124
|
li:last-child {
|
|
1158
|
-
margin: 0 0 0 ${
|
|
1125
|
+
margin: 0 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
|
|
1159
1126
|
display: flex;
|
|
1160
1127
|
align-items: center;
|
|
1161
1128
|
justify-content: space-between;
|
|
1162
1129
|
}
|
|
1163
|
-
`,
|
|
1130
|
+
`,Yo=x(V)`
|
|
1164
1131
|
display: block;
|
|
1165
|
-
color: ${
|
|
1166
|
-
${
|
|
1167
|
-
width: ${
|
|
1168
|
-
height: ${
|
|
1169
|
-
`;if(
|
|
1170
|
-
font-size: ${
|
|
1132
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
1133
|
+
${t=>{if(t.symbol.type==="Uri")return`
|
|
1134
|
+
width: ${t.size}px;
|
|
1135
|
+
height: ${t.size}px;
|
|
1136
|
+
`;if(t.symbol.type==="FontAwesome")return`
|
|
1137
|
+
font-size: ${t.size}px;
|
|
1171
1138
|
`}}
|
|
1172
|
-
`,
|
|
1139
|
+
`,qo=x(qn)`
|
|
1173
1140
|
grid-area: metadata;
|
|
1174
1141
|
text-overflow: ellipsis;
|
|
1175
1142
|
overflow: hidden;
|
|
1176
|
-
font-size: ${
|
|
1177
|
-
${
|
|
1178
|
-
`,
|
|
1143
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
|
|
1144
|
+
${t=>{var e;return typeof t.indent=="number"&&`text-indent: calc(${(e=t.theme.sizes)==null?void 0:e.small} * 2 + ${t.indent}px);`}}
|
|
1145
|
+
`,Uo=C.keyframes`
|
|
1179
1146
|
100% {
|
|
1180
1147
|
transform: rotate(360deg);
|
|
1181
1148
|
}
|
|
1182
|
-
`,
|
|
1149
|
+
`,Jo=C.keyframes`
|
|
1183
1150
|
0% {
|
|
1184
1151
|
stroke-dasharray: 1, 200;
|
|
1185
1152
|
stroke-dashoffset: 0;
|
|
@@ -1192,8 +1159,8 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1192
1159
|
stroke-dasharray: 89, 200;
|
|
1193
1160
|
stroke-dashoffset: -124px;
|
|
1194
1161
|
}
|
|
1195
|
-
`,
|
|
1196
|
-
animation: ${
|
|
1162
|
+
`,Xo=x.svg`
|
|
1163
|
+
animation: ${Uo} 2s linear infinite;
|
|
1197
1164
|
height: 100%;
|
|
1198
1165
|
transform-origin: center center;
|
|
1199
1166
|
width: 100%;
|
|
@@ -1204,7 +1171,7 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1204
1171
|
right: 0;
|
|
1205
1172
|
margin: auto;
|
|
1206
1173
|
transition: 200ms ease-out opacity;
|
|
1207
|
-
`,
|
|
1174
|
+
`,Un=x.div`
|
|
1208
1175
|
position: absolute;
|
|
1209
1176
|
top: 0;
|
|
1210
1177
|
bottom: 0;
|
|
@@ -1212,7 +1179,7 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1212
1179
|
right: 0;
|
|
1213
1180
|
height: 100%;
|
|
1214
1181
|
width: 100%;
|
|
1215
|
-
pointer-events: ${
|
|
1182
|
+
pointer-events: ${t=>t["data-loading"]?"all":"none"};
|
|
1216
1183
|
display: flex;
|
|
1217
1184
|
flex-direction: column;
|
|
1218
1185
|
justify-content: center;
|
|
@@ -1221,9 +1188,9 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1221
1188
|
overflow: hidden;
|
|
1222
1189
|
|
|
1223
1190
|
.humany-spinner-svg {
|
|
1224
|
-
opacity: ${
|
|
1191
|
+
opacity: ${t=>t["data-loading"]?"1":"0"};
|
|
1225
1192
|
}
|
|
1226
|
-
`,
|
|
1193
|
+
`,Qo=x.div`
|
|
1227
1194
|
position: relative;
|
|
1228
1195
|
margin: 0 auto;
|
|
1229
1196
|
width: 100px;
|
|
@@ -1232,14 +1199,14 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1232
1199
|
display: block;
|
|
1233
1200
|
padding-top: 100%;
|
|
1234
1201
|
}
|
|
1235
|
-
`,
|
|
1202
|
+
`,Go=x.circle`
|
|
1236
1203
|
stroke-dasharray: 1, 200;
|
|
1237
1204
|
stroke-dashoffset: 0;
|
|
1238
|
-
animation: ${
|
|
1205
|
+
animation: ${Jo} 1.5s ease-in-out infinite;
|
|
1239
1206
|
stroke-linecap: round;
|
|
1240
|
-
stroke: ${
|
|
1207
|
+
stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
1241
1208
|
stroke-width: 2px;
|
|
1242
|
-
`,
|
|
1209
|
+
`,Jn=({loading:t=!1})=>a.jsx(Un,{className:"humany-loader","data-loading":t,children:a.jsx(Qo,{className:"humany-spinner",children:a.jsx(Xo,{className:"humany-spinner-svg",viewBox:"25 25 50 50",children:a.jsx(Go,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),ei=({className:t,showHeader:e,notificationList:n,loading:s,...r})=>{const[o,i]=f.useState(null),{id:u,title:c,symbol:d,notifications:l=[],defaultHeaderOptions:h={visible:!0}}=n||{};return!l.length&&!s?null:a.jsx(ni,{...r,"data-loading":s,"data-show-header":typeof e=="boolean"?e:h.visible,className:k(t,"humany-notification-list"),"data-notification-category":u,header:c,symbol:d,items:l,renderItem:({id:m,title:g,body:y,modified:p,expandable:v})=>a.jsx(si,{"data-notification":m,"data-expanded":v?o===m:!0,children:v?a.jsxs(a.Fragment,{children:[a.jsxs(ti,{title:g,"aria-label":g,"aria-expanded":o===m,onClick:()=>i(o===m?null:m),children:[a.jsx("span",{children:g}),a.jsx(ri,{size:11,symbol:{type:"Svg",content:`caret-${o===m?"up":"down"}`}})]}),a.jsx(nn,{html:y}),p&&a.jsx(oi,{format:Je.YYYY_MM_DD,timestamp:p})]}):a.jsx(nn,{html:y})},m),children:a.jsx(Jn,{loading:s})})},ti=x(ie)`
|
|
1243
1210
|
display: flex;
|
|
1244
1211
|
justify-content: space-between;
|
|
1245
1212
|
align-items: center;
|
|
@@ -1247,32 +1214,32 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1247
1214
|
text-align: left;
|
|
1248
1215
|
svg,
|
|
1249
1216
|
i {
|
|
1250
|
-
color: ${
|
|
1217
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
1251
1218
|
}
|
|
1252
1219
|
span {
|
|
1253
|
-
color: ${
|
|
1254
|
-
font-size: ${
|
|
1220
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
|
|
1221
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
|
|
1255
1222
|
overflow: hidden;
|
|
1256
1223
|
text-overflow: ellipsis;
|
|
1257
1224
|
flex: 1;
|
|
1258
1225
|
white-space: nowrap;
|
|
1259
1226
|
}
|
|
1260
1227
|
&:focus-visible {
|
|
1261
|
-
${
|
|
1228
|
+
${K}
|
|
1262
1229
|
span {
|
|
1263
|
-
color: ${
|
|
1230
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
1264
1231
|
text-decoration: underline;
|
|
1265
1232
|
}
|
|
1266
1233
|
}
|
|
1267
|
-
`,
|
|
1268
|
-
${
|
|
1269
|
-
${
|
|
1234
|
+
`,ni=x($e)`
|
|
1235
|
+
${Fn}
|
|
1236
|
+
${Ee}
|
|
1270
1237
|
overflow: hidden;
|
|
1271
1238
|
justify-content: flex-start;
|
|
1272
|
-
padding: ${
|
|
1273
|
-
${
|
|
1239
|
+
padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
|
|
1240
|
+
${t=>!t["data-show-header"]&&C.css`
|
|
1274
1241
|
> div {
|
|
1275
|
-
${
|
|
1242
|
+
${re(t)("h1",C.css`
|
|
1276
1243
|
display: none;
|
|
1277
1244
|
`)}
|
|
1278
1245
|
}
|
|
@@ -1283,24 +1250,24 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1283
1250
|
text-decoration: underline;
|
|
1284
1251
|
}
|
|
1285
1252
|
}
|
|
1286
|
-
`,
|
|
1287
|
-
${
|
|
1253
|
+
`,nn=x(Dt)`
|
|
1254
|
+
${Ln}
|
|
1288
1255
|
font-weight: 300;
|
|
1289
1256
|
|
|
1290
1257
|
p {
|
|
1291
1258
|
white-space: normal;
|
|
1292
1259
|
}
|
|
1293
|
-
`,
|
|
1260
|
+
`,si=x.li`
|
|
1294
1261
|
.humany-paragraph {
|
|
1295
1262
|
display: none;
|
|
1296
1263
|
&:not(:only-child) {
|
|
1297
|
-
${
|
|
1298
|
-
margin: ${(
|
|
1264
|
+
${t=>{var e,n,s;return((e=t.theme.sizes)==null?void 0:e.cardinal)&&((n=t.theme.sizes)==null?void 0:n.normal)&&C.css`
|
|
1265
|
+
margin: ${(s=t.theme.sizes)==null?void 0:s.normal} 0;
|
|
1299
1266
|
`}}
|
|
1300
1267
|
}
|
|
1301
1268
|
}
|
|
1302
1269
|
|
|
1303
|
-
${
|
|
1270
|
+
${t=>t["data-expanded"]&&C.css`
|
|
1304
1271
|
.humany-paragraph {
|
|
1305
1272
|
display: block;
|
|
1306
1273
|
}
|
|
@@ -1309,14 +1276,14 @@ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
|
1309
1276
|
> span {
|
|
1310
1277
|
display: block;
|
|
1311
1278
|
font-weight: 300;
|
|
1312
|
-
color: ${
|
|
1279
|
+
color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.accent}};
|
|
1313
1280
|
}
|
|
1314
|
-
`,
|
|
1315
|
-
margin: 0 0 0 ${
|
|
1281
|
+
`,ri=x(V)`
|
|
1282
|
+
margin: 0 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
|
|
1316
1283
|
line {
|
|
1317
|
-
stroke: ${
|
|
1284
|
+
stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
|
|
1318
1285
|
}
|
|
1319
|
-
`,
|
|
1320
|
-
font-size: ${
|
|
1286
|
+
`,oi=x(Vt)`
|
|
1287
|
+
font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
|
|
1321
1288
|
font-weight: 300;
|
|
1322
|
-
`,
|
|
1289
|
+
`,ii=t=>new RegExp("^#","i").test(t),ai=t=>({children:e,...n})=>{const{implementation:s,name:r}=t.get("$widget"),{href:o=""}=n;if(ii(o))return a.jsx(xt,{smooth:!0,to:o,children:e});const i=s.bindings.map(d=>d.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${i})/([^\\s]+)`).exec(o);if(c&&c.length>=4){const d=c[4];if(s.widgets.get(d)&&!d.startsWith("blob?")&&!d.startsWith(r))return a.jsx(Wt,{widgetName:d,children:e})}return a.jsx("a",{...n,children:e})},ci=(t,e=[])=>({transform:{a:n=>{const{children:s,...r}=n,o=r["data-target"];if(o&&e.length){const u=e.find(({connection:c})=>c===o);if(u)return a.jsx(_t,{...u,children:s})}return ai(t)(n)}}});exports.AccordionListItem=Wo;exports.AnchorLink=xt;exports.Button=ie;exports.Checkbox=gs;exports.ColumnContext=pn;exports.ComponentNodeContext=wt;exports.ComponentPropertyContext=gn;exports.Confirm=_n;exports.ContainerContext=mn;exports.ConversationContext=xn;exports.DateFormats=Je;exports.DialogLink=_t;exports.DialogList=$o;exports.Drawer=Rn;exports.DrawerAnimationType=Nn;exports.DrawerList=jo;exports.Dropdown=Ot;exports.DropdownActions=Eo;exports.DropdownList=Mo;exports.Empty=On;exports.FavoriteButton=Kn;exports.Feedback=Ao;exports.Grid=rr;exports.GuideList=Fo;exports.Html=Tt;exports.Icon=be;exports.Input=ir;exports.ItemList=$e;exports.ItemTree=ar;exports.Lightbox=In;exports.Link=Ne;exports.List=Le;exports.Loader=Jn;exports.LoaderWrapper=Un;exports.Metadata=qn;exports.Modal=Wn;exports.NotFound=co;exports.NotificationList=ei;exports.Overlay=It;exports.Paragraph=Dt;exports.Portal=we;exports.RouteLink=Hn;exports.RoutingContext=yn;exports.SmallCaret=To;exports.StyledHeaderText=Do;exports.StyledListButton=Zn;exports.StyledText=xe;exports.SymbolBadge=V;exports.TabStop=mo;exports.Text=Ce;exports.TextLink=je;exports.Timestamp=Vt;exports.Tooltip=go;exports.TransitionComponent=vo;exports.Typography=ve;exports.WidgetLink=Wt;exports.WidgetOverlayOutlet=bo;exports.borderTabStyle=K;exports.browser=lt;exports.buttonCss=Sn;exports.contentBox=Nt;exports.convertToStringAttributes=D;exports.createEmptyComponent=us;exports.createReactComponent=wo;exports.defaultRenderInstructions=hn;exports.embeddedLinkMapper=rn;exports.filterCssProps=yt;exports.filterCssPropsStyle=on;exports.genericHashLink=an;exports.genericHtml=Ln;exports.guideRenderInstructions=ci;exports.headingElement=re;exports.imageLightboxRenderer=dn;exports.invertedHoverButton=Rt;exports.itemList=Ee;exports.linkTabStyle=En;exports.list=Ke;exports.loadingOpacity=Fn;exports.paddedBorderTabStyle=dt;exports.processHtmlString=un;exports.transitionComposer=Ae;exports.useAction=$s;exports.useArrowKeys=Ho;exports.useChildren=As;exports.useColumns=zs;exports.useComponent=Ps;exports.useComponentDescriptor=Ve;exports.useComponentNode=_e;exports.useComponentPlatform=de;exports.useContainer=H;exports.useContext=$n;exports.useConversation=Hs;exports.useDebounce=Io;exports.useDispatch=Is;exports.useEventListener=Z;exports.useEvents=kn;exports.useFavorites=Yn;exports.useHover=Bo;exports.useIsMounted=J;exports.useIsTabbing=jn;exports.useKeyPress=U;exports.useLayout=Bs;exports.usePrevious=Fe;exports.useProperties=Vs;exports.useRenderState=Ws;exports.useRouteData=St;exports.useRouter=jt;exports.useScroll=Et;exports.useSettings=Fs;exports.useToggle=Lt;exports.useTransitionEnd=Zs;exports.useUniqueMenu=Ze;exports.useWidgetEvent=Se;
|