@hortiview/shared-components 0.0.4723 → 0.0.4724

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.
Files changed (58) hide show
  1. package/dist/_getTag-DyrzUAbj.js +494 -0
  2. package/dist/components/BaseView/BaseView.js +43 -297
  3. package/dist/components/BasicHeading/BasicHeading.js +24 -25
  4. package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
  5. package/dist/components/BlockView/BlockView.js +14 -14
  6. package/dist/components/DeleteModal/DeleteModal.js +49 -4687
  7. package/dist/components/Disclaimer/Disclaimer.js +8 -10
  8. package/dist/components/EmptyView/EmptyView.js +8 -247
  9. package/dist/components/HashTabView/HashTabView.js +52 -1838
  10. package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
  11. package/dist/components/Iconify/Iconify.js +1 -1
  12. package/dist/components/ListArea/ListArea.js +316 -261
  13. package/dist/components/ListArea/ListArea.test.js +1 -1
  14. package/dist/components/ListArea/ListAreaService.js +34 -35
  15. package/dist/components/SearchBar/SearchBar.js +21 -2043
  16. package/package.json +1 -1
  17. package/dist/BlockView.module-ypKp14Lt.cjs +0 -1
  18. package/dist/HashTabView.module-B20c3S70.cjs +0 -1
  19. package/dist/HeaderFilter.module-DSCJz6-s.cjs +0 -1
  20. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +0 -1
  21. package/dist/_getTag-DNUtgXkb.js +0 -136
  22. package/dist/_getTag-DSIzMwlx.cjs +0 -1
  23. package/dist/_stringToPath-B-GSTJ2e.cjs +0 -1
  24. package/dist/_stringToPath-BfzwTbL6.js +0 -54
  25. package/dist/baseView.module--VUY4h_X.cjs +0 -1
  26. package/dist/basicHeading.module-BbcVMp42.cjs +0 -1
  27. package/dist/component-DJvMx3oL.cjs +0 -148
  28. package/dist/component-Rx4bNsGO.js +0 -680
  29. package/dist/disclaimer.module-BfrBh-Rf.cjs +0 -1
  30. package/dist/index.es-80RhGkCD.cjs +0 -1
  31. package/dist/index.es-Ba9oZK_n.js +0 -769
  32. package/dist/index.es-C1ojb4Lq.js +0 -106
  33. package/dist/index.es-CEydmFbW.cjs +0 -23
  34. package/dist/index.es-CKdjg72r.cjs +0 -64
  35. package/dist/index.es-CNBieliG.js +0 -151
  36. package/dist/index.es-CPRODq-I.cjs +0 -127
  37. package/dist/index.es-CQ3ep412.js +0 -305
  38. package/dist/index.es-CSD_u-fK.cjs +0 -1
  39. package/dist/index.es-CVCp4d0C.js +0 -45
  40. package/dist/index.es-Cct4Uapb.js +0 -1776
  41. package/dist/index.es-Cj9DW-2T.js +0 -430
  42. package/dist/index.es-Cm4X20_S.js +0 -673
  43. package/dist/index.es-Cqx46S1V.cjs +0 -540
  44. package/dist/index.es-DiO-sp-V.cjs +0 -1
  45. package/dist/index.es-DyXn5zZ8.cjs +0 -1
  46. package/dist/index.es-InSNsV4f.js +0 -1067
  47. package/dist/index.es-J3ub0jmR.cjs +0 -1
  48. package/dist/index.es-L0ZCcbUf.js +0 -4939
  49. package/dist/index.es-gvcK6-6t.cjs +0 -1
  50. package/dist/listArea.module-CMO-yRdf.cjs +0 -1
  51. package/dist/magic-string.es-EQkD18No.cjs +0 -10
  52. package/dist/react.esm-CMNZXU0t.cjs +0 -93
  53. package/dist/searchBar.module-CFi8D8zn.cjs +0 -1
  54. package/dist/tslib.es6-CIXEwqhg.js +0 -72
  55. package/dist/tslib.es6-D1TYK0An.cjs +0 -1
  56. package/dist/useBreakpoint-PUopk3AO.cjs +0 -1
  57. package/dist/verticalDivider.module-Ciw9Fnt1.cjs +0 -1
  58. package/dist/vi.JYQecGiw-M1q0RI3O.cjs +0 -512
@@ -1,106 +0,0 @@
1
- import { P as e, c as N, e as O, _ } from "./index.es-Cct4Uapb.js";
2
- import n, { forwardRef as h, useRef as x, useImperativeHandle as R, useMemo as o } from "react";
3
- const W = {
4
- /**
5
- * Content to be rendered inside the elevation.
6
- *
7
- * Defaults to **null**.
8
- */
9
- children: e.node,
10
- /**
11
- * Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
12
- *
13
- * Defaults to **null**.
14
- */
15
- customPadding: e.string,
16
- /**
17
- * Sets the distance of the elevation. Value must be between 0-24.
18
- *
19
- * Defaults to **0**.
20
- */
21
- elevation: e.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]),
22
- /**
23
- * Avoids adding an extra element to the DOM and applies proper classes directly to the child element.
24
- *
25
- * Defaults to **null**.
26
- */
27
- noWrap: e.bool,
28
- /**
29
- * The elevation element will have a visible border.
30
- *
31
- * Defaults to **false**.
32
- */
33
- outlined: e.bool,
34
- /**
35
- * Adds a universal padding around the child content. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
36
- *
37
- * Defaults to **undefined**.
38
- */
39
- padding: e.oneOf(["standard", "dense", "airy"]),
40
- /**
41
- * The elevation element will have a border radius of 8px.
42
- *
43
- * Defaults to **false**.
44
- */
45
- rounded: e.bool,
46
- /**
47
- * HTML tag to render the contents in.
48
- *
49
- * Defaults to **'div'**.
50
- */
51
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(n.Component)]),
52
- /**
53
- * Adds animation when elevation is changed.
54
- *
55
- * Defaults to **null**.
56
- */
57
- transition: e.bool
58
- }, $ = {
59
- children: null,
60
- customPadding: null,
61
- elevation: 0,
62
- noWrap: null,
63
- outlined: !1,
64
- padding: void 0,
65
- rounded: !1,
66
- tag: "div",
67
- transition: null
68
- }, a = /* @__PURE__ */ h((y, P) => {
69
- const {
70
- children: l,
71
- className: d,
72
- customPadding: s,
73
- elevation: i,
74
- noWrap: E,
75
- padding: t,
76
- rounded: r,
77
- tag: m,
78
- outlined: p,
79
- style: c,
80
- transition: u,
81
- ...v
82
- } = y, f = x();
83
- R(P, () => f.current, []);
84
- const g = o(() => N("lmnt", `mdc-elevation--z${i}`, t === "standard" && "lmnt-elevation--padding-standard", t === "dense" && "lmnt-elevation--padding-dense", t === "airy" && "lmnt-elevation--padding-airy", u && "mdc-elevation-transition", r && "lmnt-elevation--rounded", p && "lmnt-elevation--outlined", d), [i, t, u, r, p, d]), T = o(() => ({
85
- ...c,
86
- padding: s
87
- }), [c, s]), b = o(() => m, [m]);
88
- return (
89
- // eslint-disable-next-line react/jsx-no-useless-fragment
90
- /* @__PURE__ */ n.createElement(n.Fragment, null, E ? O(l, {
91
- className: g,
92
- ...v
93
- }) : /* @__PURE__ */ n.createElement(b, _({
94
- ref: f,
95
- className: g,
96
- style: T
97
- }, v), l))
98
- );
99
- });
100
- a.displayName = "Elevation";
101
- a.propTypes = W;
102
- a.defaultProps = $;
103
- var C = /* @__PURE__ */ n.memo(a);
104
- export {
105
- C as E
106
- };
@@ -1,23 +0,0 @@
1
- "use strict";const L=require("./_commonjsHelpers-DwTZ_eVU.cjs"),rr=require("react");var ur=function(r){return r&&r.Math===Math&&r},q=ur(typeof globalThis=="object"&&globalThis)||ur(typeof window=="object"&&window)||ur(typeof self=="object"&&self)||ur(typeof L.commonjsGlobal=="object"&&L.commonjsGlobal)||ur(typeof L.commonjsGlobal=="object"&&L.commonjsGlobal)||function(){return this}()||Function("return this")(),Y=function(r){try{return!!r()}catch{return!0}},qn=Y,lr=!qn(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),Vn=lr,Yt=Function.prototype,Ne=Yt.apply,Ue=Yt.call,Yn=typeof Reflect=="object"&&Reflect.apply||(Vn?Ue.bind(Ne):function(){return Ue.apply(Ne,arguments)}),zt=lr,Wt=Function.prototype,be=Wt.call,zn=zt&&Wt.bind.bind(be,be),U=zt?zn:function(r){return function(){return be.apply(r,arguments)}},Kt=U,Wn=Kt({}.toString),Kn=Kt("".slice),Ht=function(r){return Kn(Wn(r),8,-1)},Hn=Ht,kn=U,kt=function(r){if(Hn(r)==="Function")return kn(r)},Wr=typeof document=="object"&&document.all,H=typeof Wr>"u"&&Wr!==void 0?function(r){return typeof r=="function"||r===Wr}:function(r){return typeof r=="function"},Jt={},Jn=Y,tr=!Jn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Xn=lr,mr=Function.prototype.call,Cr=Xn?mr.bind(mr):function(){return mr.apply(mr,arguments)},me={},Xt={}.propertyIsEnumerable,Qt=Object.getOwnPropertyDescriptor,Qn=Qt&&!Xt.call({1:2},1);me.f=Qn?function(e){var t=Qt(this,e);return!!t&&t.enumerable}:Xt;var Zt=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},Zn=U,ra=Y,ea=Ht,Kr=Object,ta=Zn("".split),rn=ra(function(){return!Kr("z").propertyIsEnumerable(0)})?function(r){return ea(r)==="String"?ta(r,""):Kr(r)}:Kr,en=function(r){return r==null},na=en,aa=TypeError,tn=function(r){if(na(r))throw new aa("Can't call method on "+r);return r},oa=rn,ia=tn,Oe=function(r){return oa(ia(r))},sa=H,pr=function(r){return typeof r=="object"?r!==null:sa(r)},Ir={},Hr=Ir,kr=q,ca=H,qe=function(r){return ca(r)?r:void 0},ua=function(r,e){return arguments.length<2?qe(Hr[r])||qe(kr[r]):Hr[r]&&Hr[r][e]||kr[r]&&kr[r][e]},fa=U,nn=fa({}.isPrototypeOf),va=typeof navigator<"u"&&String(navigator.userAgent)||"",an=q,Jr=va,Ve=an.process,Ye=an.Deno,ze=Ve&&Ve.versions||Ye&&Ye.version,We=ze&&ze.v8,B,Er;We&&(B=We.split("."),Er=B[0]>0&&B[0]<4?1:+(B[0]+B[1]));!Er&&Jr&&(B=Jr.match(/Edge\/(\d+)/),(!B||B[1]>=74)&&(B=Jr.match(/Chrome\/(\d+)/),B&&(Er=+B[1])));var la=Er,Ke=la,pa=Y,da=q,ya=da.String,on=!!Object.getOwnPropertySymbols&&!pa(function(){var r=Symbol("symbol detection");return!ya(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Ke&&Ke<41}),ba=on,sn=ba&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ha=ua,ga=H,$a=nn,_a=sn,ma=Object,cn=_a?function(r){return typeof r=="symbol"}:function(r){var e=ha("Symbol");return ga(e)&&$a(e.prototype,ma(r))},Oa=String,Ta=function(r){try{return Oa(r)}catch{return"Object"}},Ea=H,Sa=Ta,Pa=TypeError,Te=function(r){if(Ea(r))return r;throw new Pa(Sa(r)+" is not a function")},wa=Te,ja=en,Ca=function(r,e){var t=r[e];return ja(t)?void 0:wa(t)},Xr=Cr,Qr=H,Zr=pr,Ia=TypeError,xa=function(r,e){var t,n;if(e==="string"&&Qr(t=r.toString)&&!Zr(n=Xr(t,r))||Qr(t=r.valueOf)&&!Zr(n=Xr(t,r))||e!=="string"&&Qr(t=r.toString)&&!Zr(n=Xr(t,r)))return n;throw new Ia("Can't convert object to primitive value")},un={exports:{}},He=q,Aa=Object.defineProperty,Ra=function(r,e){try{Aa(He,r,{value:e,configurable:!0,writable:!0})}catch{He[r]=e}return e},Ma=q,Da=Ra,ke="__core-js_shared__",Je=un.exports=Ma[ke]||Da(ke,{});(Je.versions||(Je.versions=[])).push({version:"3.36.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Fa=un.exports,Xe=Fa,La=function(r,e){return Xe[r]||(Xe[r]=e||{})},Ba=tn,Ga=Object,fn=function(r){return Ga(Ba(r))},Na=U,Ua=fn,qa=Na({}.hasOwnProperty),dr=Object.hasOwn||function(e,t){return qa(Ua(e),t)},Va=U,Ya=0,za=Math.random(),Wa=Va(1 .toString),Ka=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Wa(++Ya+za,36)},Ha=q,ka=La,Qe=dr,Ja=Ka,Xa=on,Qa=sn,er=Ha.Symbol,re=ka("wks"),Za=Qa?er.for||er:er&&er.withoutSetter||Ja,ro=function(r){return Qe(re,r)||(re[r]=Xa&&Qe(er,r)?er[r]:Za("Symbol."+r)),re[r]},eo=Cr,Ze=pr,rt=cn,to=Ca,no=xa,ao=ro,oo=TypeError,io=ao("toPrimitive"),so=function(r,e){if(!Ze(r)||rt(r))return r;var t=to(r,io),n;if(t){if(e===void 0&&(e="default"),n=eo(t,r,e),!Ze(n)||rt(n))return n;throw new oo("Can't convert object to primitive value")}return e===void 0&&(e="number"),no(r,e)},co=so,uo=cn,vn=function(r){var e=co(r,"string");return uo(e)?e:e+""},fo=q,et=pr,he=fo.document,vo=et(he)&&et(he.createElement),lo=function(r){return vo?he.createElement(r):{}},po=tr,yo=Y,bo=lo,ln=!po&&!yo(function(){return Object.defineProperty(bo("div"),"a",{get:function(){return 7}}).a!==7}),ho=tr,go=Cr,$o=me,_o=Zt,mo=Oe,Oo=vn,To=dr,Eo=ln,tt=Object.getOwnPropertyDescriptor;Jt.f=ho?tt:function(e,t){if(e=mo(e),t=Oo(t),Eo)try{return tt(e,t)}catch{}if(To(e,t))return _o(!go($o.f,e,t),e[t])};var So=Y,Po=H,wo=/#|\.prototype\./,yr=function(r,e){var t=Co[jo(r)];return t===xo?!0:t===Io?!1:Po(e)?So(e):!!e},jo=yr.normalize=function(r){return String(r).replace(wo,".").toLowerCase()},Co=yr.data={},Io=yr.NATIVE="N",xo=yr.POLYFILL="P",Ao=yr,nt=kt,Ro=Te,Mo=lr,Do=nt(nt.bind),Fo=function(r,e){return Ro(r),e===void 0?r:Mo?Do(r,e):function(){return r.apply(e,arguments)}},pn={},Lo=tr,Bo=Y,Go=Lo&&Bo(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),No=pr,Uo=String,qo=TypeError,Vo=function(r){if(No(r))return r;throw new qo(Uo(r)+" is not an object")},Yo=tr,zo=ln,Wo=Go,Or=Vo,at=vn,Ko=TypeError,ee=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,te="enumerable",ne="configurable",ae="writable";pn.f=Yo?Wo?function(e,t,n){if(Or(e),t=at(t),Or(n),typeof e=="function"&&t==="prototype"&&"value"in n&&ae in n&&!n[ae]){var a=Ho(e,t);a&&a[ae]&&(e[t]=n.value,n={configurable:ne in n?n[ne]:a[ne],enumerable:te in n?n[te]:a[te],writable:!1})}return ee(e,t,n)}:ee:function(e,t,n){if(Or(e),t=at(t),Or(n),zo)try{return ee(e,t,n)}catch{}if("get"in n||"set"in n)throw new Ko("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ko=tr,Jo=pn,Xo=Zt,Qo=ko?function(r,e,t){return Jo.f(r,e,Xo(1,t))}:function(r,e,t){return r[e]=t,r},fr=q,Zo=Yn,ri=kt,ei=H,ti=Jt.f,ni=Ao,X=Ir,ai=Fo,Q=Qo,ot=dr,oi=function(r){var e=function(t,n,a){if(this instanceof e){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,n)}return new r(t,n,a)}return Zo(r,this,arguments)};return e.prototype=r.prototype,e},dn=function(r,e){var t=r.target,n=r.global,a=r.stat,o=r.proto,s=n?fr:a?fr[t]:fr[t]&&fr[t].prototype,i=n?X:X[t]||Q(X,t,{})[t],u=i.prototype,v,p,y,b,O,A,C,x,D;for(b in e)v=ni(n?b:t+(a?".":"#")+b,r.forced),p=!v&&s&&ot(s,b),A=i[b],p&&(r.dontCallGetSet?(D=ti(s,b),C=D&&D.value):C=s[b]),O=p&&C?C:e[b],!(!v&&!o&&typeof A==typeof O)&&(r.bind&&p?x=ai(O,fr):r.wrap&&p?x=oi(O):o&&ei(O)?x=ri(O):x=O,(r.sham||O&&O.sham||A&&A.sham)&&Q(x,"sham",!0),Q(i,b,x),o&&(y=t+"Prototype",ot(X,y)||Q(X,y,{}),Q(X[y],b,O),r.real&&u&&(v||!u[b])&&Q(u,b,O)))},ii=Math.ceil,si=Math.floor,ci=Math.trunc||function(e){var t=+e;return(t>0?si:ii)(t)},ui=ci,yn=function(r){var e=+r;return e!==e||e===0?0:ui(e)},fi=yn,vi=Math.max,li=Math.min,pi=function(r,e){var t=fi(r);return t<0?vi(t+e,0):li(t,e)},di=yn,yi=Math.min,bi=function(r){var e=di(r);return e>0?yi(e,9007199254740991):0},hi=bi,gi=function(r){return hi(r.length)},$i=Oe,_i=pi,mi=gi,it=function(r){return function(e,t,n){var a=$i(e),o=mi(a);if(o===0)return!r&&-1;var s=_i(n,o),i;if(r&&t!==t){for(;o>s;)if(i=a[s++],i!==i)return!0}else for(;o>s;s++)if((r||s in a)&&a[s]===t)return r||s||0;return!r&&-1}},Oi={includes:it(!0),indexOf:it(!1)},Ti={},Ei=U,oe=dr,Si=Oe,Pi=Oi.indexOf,wi=Ti,st=Ei([].push),ji=function(r,e){var t=Si(r),n=0,a=[],o;for(o in t)!oe(wi,o)&&oe(t,o)&&st(a,o);for(;e.length>n;)oe(t,o=e[n++])&&(~Pi(a,o)||st(a,o));return a},Ci=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ii=ji,xi=Ci,Ai=Object.keys||function(e){return Ii(e,xi)},bn={};bn.f=Object.getOwnPropertySymbols;var ct=tr,Ri=U,Mi=Cr,Di=Y,ie=Ai,Fi=bn,Li=me,Bi=fn,Gi=rn,Z=Object.assign,ut=Object.defineProperty,Ni=Ri([].concat),Ui=!Z||Di(function(){if(ct&&Z({b:1},Z(ut({},"a",{enumerable:!0,get:function(){ut(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var r={},e={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return r[t]=7,n.split("").forEach(function(a){e[a]=a}),Z({},r)[t]!==7||ie(Z({},e)).join("")!==n})?function(e,t){for(var n=Bi(e),a=arguments.length,o=1,s=Fi.f,i=Li.f;a>o;)for(var u=Gi(arguments[o++]),v=s?Ni(ie(u),s(u)):ie(u),p=v.length,y=0,b;p>y;)b=v[y++],(!ct||Mi(i,u,b))&&(n[b]=u[b]);return n}:Z,qi=dn,ft=Ui;qi({target:"Object",stat:!0,arity:2,forced:Object.assign!==ft},{assign:ft});var Vi=Ir,Yi=Vi.Object.assign,zi=Yi,Wi=zi,Ki=Wi,Hi=Ki,ki=Hi,Ji=ki,Xi=Ji;const vt=L.getDefaultExportFromCjs(Xi);var Qi=U,Zi=Qi([].slice),hn=U,rs=Te,es=pr,ts=dr,lt=Zi,ns=lr,gn=Function,as=hn([].concat),os=hn([].join),se={},is=function(r,e,t){if(!ts(se,e)){for(var n=[],a=0;a<e;a++)n[a]="a["+a+"]";se[e]=gn("C,a","return new C("+os(n,",")+")")}return se[e](r,t)},ss=ns?gn.bind:function(e){var t=rs(this),n=t.prototype,a=lt(arguments,1),o=function(){var i=as(a,lt(arguments));return this instanceof o?is(t,i.length,i):t.apply(e,i)};return es(n)&&(o.prototype=n),o},cs=dn,pt=ss;cs({target:"Function",proto:!0,forced:Function.bind!==pt},{bind:pt});var us=q,fs=Ir,vs=function(r,e){var t=fs[r+"Prototype"],n=t&&t[e];if(n)return n;var a=us[r],o=a&&a.prototype;return o&&o[e]},ls=vs,ps=ls("Function","bind"),ds=nn,ys=ps,ce=Function.prototype,bs=function(r){var e=r.bind;return r===ce||ds(ce,r)&&e===ce.bind?ys:e},hs=bs,gs=hs,$s=gs,_s=$s,ms=_s,Os=ms,Ts=Os;const Es=L.getDefaultExportFromCjs(Ts);function ge(){var r;return ge=vt?Es(r=vt).call(r):function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ge.apply(this,arguments)}function $n(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=$n(r[e]))&&(n&&(n+=" "),n+=t);else for(e in r)r[e]&&(n&&(n+=" "),n+=e);return n}function Ss(){for(var r,e,t=0,n="";t<arguments.length;)(r=arguments[t++])&&(e=$n(r))&&(n&&(n+=" "),n+=e);return n}var $e={exports:{}},Tr={exports:{}},P={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var dt;function Ps(){if(dt)return P;dt=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,i=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,v=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,O=r?Symbol.for("react.memo"):60115,A=r?Symbol.for("react.lazy"):60116,C=r?Symbol.for("react.block"):60121,x=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,cr=r?Symbol.for("react.scope"):60119;function M(l){if(typeof l=="object"&&l!==null){var W=l.$$typeof;switch(W){case e:switch(l=l.type,l){case u:case v:case n:case o:case a:case y:return l;default:switch(l=l&&l.$$typeof,l){case i:case p:case A:case O:case s:return l;default:return W}}case t:return W}}}function R(l){return M(l)===v}return P.AsyncMode=u,P.ConcurrentMode=v,P.ContextConsumer=i,P.ContextProvider=s,P.Element=e,P.ForwardRef=p,P.Fragment=n,P.Lazy=A,P.Memo=O,P.Portal=t,P.Profiler=o,P.StrictMode=a,P.Suspense=y,P.isAsyncMode=function(l){return R(l)||M(l)===u},P.isConcurrentMode=R,P.isContextConsumer=function(l){return M(l)===i},P.isContextProvider=function(l){return M(l)===s},P.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},P.isForwardRef=function(l){return M(l)===p},P.isFragment=function(l){return M(l)===n},P.isLazy=function(l){return M(l)===A},P.isMemo=function(l){return M(l)===O},P.isPortal=function(l){return M(l)===t},P.isProfiler=function(l){return M(l)===o},P.isStrictMode=function(l){return M(l)===a},P.isSuspense=function(l){return M(l)===y},P.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===v||l===o||l===a||l===y||l===b||typeof l=="object"&&l!==null&&(l.$$typeof===A||l.$$typeof===O||l.$$typeof===s||l.$$typeof===i||l.$$typeof===p||l.$$typeof===x||l.$$typeof===D||l.$$typeof===cr||l.$$typeof===C)},P.typeOf=M,P}var w={};/** @license React v16.13.1
9
- * react-is.development.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */var yt;function ws(){return yt||(yt=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,i=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,v=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,O=r?Symbol.for("react.memo"):60115,A=r?Symbol.for("react.lazy"):60116,C=r?Symbol.for("react.block"):60121,x=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,cr=r?Symbol.for("react.scope"):60119;function M(f){return typeof f=="string"||typeof f=="function"||f===n||f===v||f===o||f===a||f===y||f===b||typeof f=="object"&&f!==null&&(f.$$typeof===A||f.$$typeof===O||f.$$typeof===s||f.$$typeof===i||f.$$typeof===p||f.$$typeof===x||f.$$typeof===D||f.$$typeof===cr||f.$$typeof===C)}function R(f){if(typeof f=="object"&&f!==null){var N=f.$$typeof;switch(N){case e:var _r=f.type;switch(_r){case u:case v:case n:case o:case a:case y:return _r;default:var Ge=_r&&_r.$$typeof;switch(Ge){case i:case p:case A:case O:case s:return Ge;default:return N}}case t:return N}}}var l=u,W=v,Br=i,Gr=s,Nr=e,Ur=p,gr=n,qr=A,Vr=O,J=t,Yr=o,G=a,K=y,$r=!1;function zr(f){return $r||($r=!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.")),c(f)||R(f)===u}function c(f){return R(f)===v}function d(f){return R(f)===i}function m(f){return R(f)===s}function $(f){return typeof f=="object"&&f!==null&&f.$$typeof===e}function h(f){return R(f)===p}function T(f){return R(f)===n}function g(f){return R(f)===A}function _(f){return R(f)===O}function E(f){return R(f)===t}function j(f){return R(f)===o}function S(f){return R(f)===a}function F(f){return R(f)===y}w.AsyncMode=l,w.ConcurrentMode=W,w.ContextConsumer=Br,w.ContextProvider=Gr,w.Element=Nr,w.ForwardRef=Ur,w.Fragment=gr,w.Lazy=qr,w.Memo=Vr,w.Portal=J,w.Profiler=Yr,w.StrictMode=G,w.Suspense=K,w.isAsyncMode=zr,w.isConcurrentMode=c,w.isContextConsumer=d,w.isContextProvider=m,w.isElement=$,w.isForwardRef=h,w.isFragment=T,w.isLazy=g,w.isMemo=_,w.isPortal=E,w.isProfiler=j,w.isStrictMode=S,w.isSuspense=F,w.isValidElementType=M,w.typeOf=R}()),w}var bt;function Ee(){return bt||(bt=1,process.env.NODE_ENV==="production"?Tr.exports=Ps():Tr.exports=ws()),Tr.exports}/*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var ue,ht;function js(){if(ht)return ue;ht=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},i=0;i<10;i++)s["_"+String.fromCharCode(i)]=i;var u=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(u.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(p){v[p]=p}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ue=a()?Object.assign:function(o,s){for(var i,u=n(o),v,p=1;p<arguments.length;p++){i=Object(arguments[p]);for(var y in i)e.call(i,y)&&(u[y]=i[y]);if(r){v=r(i);for(var b=0;b<v.length;b++)t.call(i,v[b])&&(u[v[b]]=i[v[b]])}}return u},ue}var fe,gt;function Se(){if(gt)return fe;gt=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fe=r,fe}var ve,$t;function _n(){return $t||($t=1,ve=Function.call.bind(Object.prototype.hasOwnProperty)),ve}var le,_t;function Cs(){if(_t)return le;_t=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=Se(),t={},n=_n();r=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(o,s,i,u,v){if(process.env.NODE_ENV!=="production"){for(var p in o)if(n(o,p)){var y;try{if(typeof o[p]!="function"){var b=Error((u||"React class")+": "+i+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}y=o[p](s,p,u,i,null,e)}catch(A){y=A}if(y&&!(y instanceof Error)&&r((u||"React class")+": type specification of "+i+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in t)){t[y.message]=!0;var O=v?v():"";r("Failed "+i+" type: "+y.message+(O??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},le=a,le}var pe,mt;function Is(){if(mt)return pe;mt=1;var r=Ee(),e=js(),t=Se(),n=_n(),a=Cs(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(i){var u="Warning: "+i;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return pe=function(i,u){var v=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function y(c){var d=c&&(v&&c[v]||c[p]);if(typeof d=="function")return d}var b="<<anonymous>>",O={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:cr(),arrayOf:M,element:R(),elementType:l(),instanceOf:W,node:Ur(),objectOf:Gr,oneOf:Br,oneOfType:Nr,shape:qr,exact:Vr};function A(c,d){return c===d?c!==0||1/c===1/d:c!==c&&d!==d}function C(c,d){this.message=c,this.data=d&&typeof d=="object"?d:{},this.stack=""}C.prototype=Error.prototype;function x(c){if(process.env.NODE_ENV!=="production")var d={},m=0;function $(T,g,_,E,j,S,F){if(E=E||b,S=S||_,F!==t){if(u){var f=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 f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var N=E+":"+_;!d[N]&&m<3&&(o("You are manually calling a React.PropTypes validation function for the `"+S+"` prop on `"+E+"`. 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."),d[N]=!0,m++)}}return g[_]==null?T?g[_]===null?new C("The "+j+" `"+S+"` is marked as required "+("in `"+E+"`, but its value is `null`.")):new C("The "+j+" `"+S+"` is marked as required in "+("`"+E+"`, but its value is `undefined`.")):null:c(g,_,E,j,S)}var h=$.bind(null,!1);return h.isRequired=$.bind(null,!0),h}function D(c){function d(m,$,h,T,g,_){var E=m[$],j=G(E);if(j!==c){var S=K(E);return new C("Invalid "+T+" `"+g+"` of type "+("`"+S+"` supplied to `"+h+"`, expected ")+("`"+c+"`."),{expectedType:c})}return null}return x(d)}function cr(){return x(s)}function M(c){function d(m,$,h,T,g){if(typeof c!="function")return new C("Property `"+g+"` of component `"+h+"` has invalid PropType notation inside arrayOf.");var _=m[$];if(!Array.isArray(_)){var E=G(_);return new C("Invalid "+T+" `"+g+"` of type "+("`"+E+"` supplied to `"+h+"`, expected an array."))}for(var j=0;j<_.length;j++){var S=c(_,j,h,T,g+"["+j+"]",t);if(S instanceof Error)return S}return null}return x(d)}function R(){function c(d,m,$,h,T){var g=d[m];if(!i(g)){var _=G(g);return new C("Invalid "+h+" `"+T+"` of type "+("`"+_+"` supplied to `"+$+"`, expected a single ReactElement."))}return null}return x(c)}function l(){function c(d,m,$,h,T){var g=d[m];if(!r.isValidElementType(g)){var _=G(g);return new C("Invalid "+h+" `"+T+"` of type "+("`"+_+"` supplied to `"+$+"`, expected a single ReactElement type."))}return null}return x(c)}function W(c){function d(m,$,h,T,g){if(!(m[$]instanceof c)){var _=c.name||b,E=zr(m[$]);return new C("Invalid "+T+" `"+g+"` of type "+("`"+E+"` supplied to `"+h+"`, expected ")+("instance of `"+_+"`."))}return null}return x(d)}function Br(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function d(m,$,h,T,g){for(var _=m[$],E=0;E<c.length;E++)if(A(_,c[E]))return null;var j=JSON.stringify(c,function(F,f){var N=K(f);return N==="symbol"?String(f):f});return new C("Invalid "+T+" `"+g+"` of value `"+String(_)+"` "+("supplied to `"+h+"`, expected one of "+j+"."))}return x(d)}function Gr(c){function d(m,$,h,T,g){if(typeof c!="function")return new C("Property `"+g+"` of component `"+h+"` has invalid PropType notation inside objectOf.");var _=m[$],E=G(_);if(E!=="object")return new C("Invalid "+T+" `"+g+"` of type "+("`"+E+"` supplied to `"+h+"`, expected an object."));for(var j in _)if(n(_,j)){var S=c(_,j,h,T,g+"."+j,t);if(S instanceof Error)return S}return null}return x(d)}function Nr(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var d=0;d<c.length;d++){var m=c[d];if(typeof m!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$r(m)+" at index "+d+"."),s}function $(h,T,g,_,E){for(var j=[],S=0;S<c.length;S++){var F=c[S],f=F(h,T,g,_,E,t);if(f==null)return null;f.data&&n(f.data,"expectedType")&&j.push(f.data.expectedType)}var N=j.length>0?", expected one of type ["+j.join(", ")+"]":"";return new C("Invalid "+_+" `"+E+"` supplied to "+("`"+g+"`"+N+"."))}return x($)}function Ur(){function c(d,m,$,h,T){return J(d[m])?null:new C("Invalid "+h+" `"+T+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return x(c)}function gr(c,d,m,$,h){return new C((c||"React class")+": "+d+" type `"+m+"."+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+h+"`.")}function qr(c){function d(m,$,h,T,g){var _=m[$],E=G(_);if(E!=="object")return new C("Invalid "+T+" `"+g+"` of type `"+E+"` "+("supplied to `"+h+"`, expected `object`."));for(var j in c){var S=c[j];if(typeof S!="function")return gr(h,T,g,j,K(S));var F=S(_,j,h,T,g+"."+j,t);if(F)return F}return null}return x(d)}function Vr(c){function d(m,$,h,T,g){var _=m[$],E=G(_);if(E!=="object")return new C("Invalid "+T+" `"+g+"` of type `"+E+"` "+("supplied to `"+h+"`, expected `object`."));var j=e({},m[$],c);for(var S in j){var F=c[S];if(n(c,S)&&typeof F!="function")return gr(h,T,g,S,K(F));if(!F)return new C("Invalid "+T+" `"+g+"` key `"+S+"` supplied to `"+h+"`.\nBad object: "+JSON.stringify(m[$],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(c),null," "));var f=F(_,S,h,T,g+"."+S,t);if(f)return f}return null}return x(d)}function J(c){switch(typeof c){case"number":case"string":case"undefined":return!0;case"boolean":return!c;case"object":if(Array.isArray(c))return c.every(J);if(c===null||i(c))return!0;var d=y(c);if(d){var m=d.call(c),$;if(d!==c.entries){for(;!($=m.next()).done;)if(!J($.value))return!1}else for(;!($=m.next()).done;){var h=$.value;if(h&&!J(h[1]))return!1}}else return!1;return!0;default:return!1}}function Yr(c,d){return c==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function G(c){var d=typeof c;return Array.isArray(c)?"array":c instanceof RegExp?"object":Yr(d,c)?"symbol":d}function K(c){if(typeof c>"u"||c===null)return""+c;var d=G(c);if(d==="object"){if(c instanceof Date)return"date";if(c instanceof RegExp)return"regexp"}return d}function $r(c){var d=K(c);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function zr(c){return!c.constructor||!c.constructor.name?b:c.constructor.name}return O.checkPropTypes=a,O.resetWarningCache=a.resetWarningCache,O.PropTypes=O,O},pe}var de,Ot;function xs(){if(Ot)return de;Ot=1;var r=Se();function e(){}function t(){}return t.resetWarningCache=e,de=function(){function n(s,i,u,v,p,y){if(y!==r){var b=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 b.name="Invariant Violation",b}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:e};return o.PropTypes=o,o},de}if(process.env.NODE_ENV!=="production"){var As=Ee(),Rs=!0;$e.exports=Is()(As.isElement,Rs)}else $e.exports=xs()();var Ms=$e.exports;const Ds=L.getDefaultExportFromCjs(Ms);var Fs=process.env.NODE_ENV!=="production",mn=function(){};if(Fs){var Ls=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var a=1;a<n;a++)t[a-1]=arguments[a];var o=0,s="Warning: "+e.replace(/%s/g,function(){return t[o++]});typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}};mn=function(r,e,t){var n=arguments.length;t=new Array(n>2?n-2:0);for(var a=2;a<n;a++)t[a-2]=arguments[a];if(e===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||Ls.apply(null,[e].concat(t))}}var Bs=mn;const xr=L.getDefaultExportFromCjs(Bs);if(process.env.NODE_ENV!=="production"){if(typeof navigator<"u"&&navigator.product==="ReactNative")throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs, you can use `nanoid/non-secure`. For secure ID install `expo-random` locally and use `nanoid/async`.");if(typeof self>"u"||!self.crypto&&!self.msCrypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.")}var Gs=self.crypto||self.msCrypto,Pe="-_",V=36;for(;V--;)Pe+=V.toString(36);V=36;for(;V---10;)Pe+=V.toString(36).toUpperCase();var Ns=function(r){var e="",t=Gs.getRandomValues(new Uint8Array(r||21));for(V=r||21;V--;)e+=Pe[t[V]&63];return e};const Tt=L.getDefaultExportFromCjs(Ns);function Us(){this.__data__=[],this.size=0}var qs=Us;function Vs(r,e){return r===e||r!==r&&e!==e}var br=Vs,Ys=br;function zs(r,e){for(var t=r.length;t--;)if(Ys(r[t][0],e))return t;return-1}var Ar=zs,Ws=Ar,Ks=Array.prototype,Hs=Ks.splice;function ks(r){var e=this.__data__,t=Ws(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Hs.call(e,t,1),--this.size,!0}var Js=ks,Xs=Ar;function Qs(r){var e=this.__data__,t=Xs(e,r);return t<0?void 0:e[t][1]}var Zs=Qs,rc=Ar;function ec(r){return rc(this.__data__,r)>-1}var tc=ec,nc=Ar;function ac(r,e){var t=this.__data__,n=nc(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}var oc=ac,ic=qs,sc=Js,cc=Zs,uc=tc,fc=oc;function nr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}nr.prototype.clear=ic;nr.prototype.delete=sc;nr.prototype.get=cc;nr.prototype.has=uc;nr.prototype.set=fc;var Rr=nr,vc=Rr;function lc(){this.__data__=new vc,this.size=0}var pc=lc;function dc(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}var yc=dc;function bc(r){return this.__data__.get(r)}var hc=bc;function gc(r){return this.__data__.has(r)}var $c=gc,_c=typeof L.commonjsGlobal=="object"&&L.commonjsGlobal&&L.commonjsGlobal.Object===Object&&L.commonjsGlobal,On=_c,mc=On,Oc=typeof self=="object"&&self&&self.Object===Object&&self,Tc=mc||Oc||Function("return this")(),k=Tc,Ec=k,Sc=Ec.Symbol,we=Sc,Et=we,Tn=Object.prototype,Pc=Tn.hasOwnProperty,wc=Tn.toString,vr=Et?Et.toStringTag:void 0;function jc(r){var e=Pc.call(r,vr),t=r[vr];try{r[vr]=void 0;var n=!0}catch{}var a=wc.call(r);return n&&(e?r[vr]=t:delete r[vr]),a}var Cc=jc,Ic=Object.prototype,xc=Ic.toString;function Ac(r){return xc.call(r)}var Rc=Ac,St=we,Mc=Cc,Dc=Rc,Fc="[object Null]",Lc="[object Undefined]",Pt=St?St.toStringTag:void 0;function Bc(r){return r==null?r===void 0?Lc:Fc:Pt&&Pt in Object(r)?Mc(r):Dc(r)}var hr=Bc;function Gc(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var z=Gc,Nc=hr,Uc=z,qc="[object AsyncFunction]",Vc="[object Function]",Yc="[object GeneratorFunction]",zc="[object Proxy]";function Wc(r){if(!Uc(r))return!1;var e=Nc(r);return e==Vc||e==Yc||e==qc||e==zc}var je=Wc,Kc=k,Hc=Kc["__core-js_shared__"],kc=Hc,ye=kc,wt=function(){var r=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Jc(r){return!!wt&&wt in r}var Xc=Jc,Qc=Function.prototype,Zc=Qc.toString;function ru(r){if(r!=null){try{return Zc.call(r)}catch{}try{return r+""}catch{}}return""}var En=ru,eu=je,tu=Xc,nu=z,au=En,ou=/[\\^$.*+?()[\]{}|]/g,iu=/^\[object .+?Constructor\]$/,su=Function.prototype,cu=Object.prototype,uu=su.toString,fu=cu.hasOwnProperty,vu=RegExp("^"+uu.call(fu).replace(ou,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lu(r){if(!nu(r)||tu(r))return!1;var e=eu(r)?vu:iu;return e.test(au(r))}var pu=lu;function du(r,e){return r?.[e]}var yu=du,bu=pu,hu=yu;function gu(r,e){var t=hu(r,e);return bu(t)?t:void 0}var Mr=gu,$u=Mr,_u=k,mu=$u(_u,"Map"),Ce=mu,Ou=Mr,Tu=Ou(Object,"create"),Dr=Tu,jt=Dr;function Eu(){this.__data__=jt?jt(null):{},this.size=0}var Su=Eu;function Pu(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var wu=Pu,ju=Dr,Cu="__lodash_hash_undefined__",Iu=Object.prototype,xu=Iu.hasOwnProperty;function Au(r){var e=this.__data__;if(ju){var t=e[r];return t===Cu?void 0:t}return xu.call(e,r)?e[r]:void 0}var Ru=Au,Mu=Dr,Du=Object.prototype,Fu=Du.hasOwnProperty;function Lu(r){var e=this.__data__;return Mu?e[r]!==void 0:Fu.call(e,r)}var Bu=Lu,Gu=Dr,Nu="__lodash_hash_undefined__";function Uu(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Gu&&e===void 0?Nu:e,this}var qu=Uu,Vu=Su,Yu=wu,zu=Ru,Wu=Bu,Ku=qu;function ar(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ar.prototype.clear=Vu;ar.prototype.delete=Yu;ar.prototype.get=zu;ar.prototype.has=Wu;ar.prototype.set=Ku;var Hu=ar,Ct=Hu,ku=Rr,Ju=Ce;function Xu(){this.size=0,this.__data__={hash:new Ct,map:new(Ju||ku),string:new Ct}}var Qu=Xu;function Zu(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}var rf=Zu,ef=rf;function tf(r,e){var t=r.__data__;return ef(e)?t[typeof e=="string"?"string":"hash"]:t.map}var Fr=tf,nf=Fr;function af(r){var e=nf(this,r).delete(r);return this.size-=e?1:0,e}var of=af,sf=Fr;function cf(r){return sf(this,r).get(r)}var uf=cf,ff=Fr;function vf(r){return ff(this,r).has(r)}var lf=vf,pf=Fr;function df(r,e){var t=pf(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}var yf=df,bf=Qu,hf=of,gf=uf,$f=lf,_f=yf;function or(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}or.prototype.clear=bf;or.prototype.delete=hf;or.prototype.get=gf;or.prototype.has=$f;or.prototype.set=_f;var Sn=or,mf=Rr,Of=Ce,Tf=Sn,Ef=200;function Sf(r,e){var t=this.__data__;if(t instanceof mf){var n=t.__data__;if(!Of||n.length<Ef-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Tf(n)}return t.set(r,e),this.size=t.size,this}var Pf=Sf,wf=Rr,jf=pc,Cf=yc,If=hc,xf=$c,Af=Pf;function ir(r){var e=this.__data__=new wf(r);this.size=e.size}ir.prototype.clear=jf;ir.prototype.delete=Cf;ir.prototype.get=If;ir.prototype.has=xf;ir.prototype.set=Af;var Pn=ir,Rf=Mr,Mf=function(){try{var r=Rf(Object,"defineProperty");return r({},"",{}),r}catch{}}(),wn=Mf,It=wn;function Df(r,e,t){e=="__proto__"&&It?It(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}var Ie=Df,Ff=Ie,Lf=br;function Bf(r,e,t){(t!==void 0&&!Lf(r[e],t)||t===void 0&&!(e in r))&&Ff(r,e,t)}var jn=Bf;function Gf(r){return function(e,t,n){for(var a=-1,o=Object(e),s=n(e),i=s.length;i--;){var u=s[r?i:++a];if(t(o[u],u,o)===!1)break}return e}}var Nf=Gf,Uf=Nf,qf=Uf(),Cn=qf,Sr={exports:{}};Sr.exports;(function(r,e){var t=k,n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,o=a&&a.exports===n,s=o?t.Buffer:void 0,i=s?s.allocUnsafe:void 0;function u(v,p){if(p)return v.slice();var y=v.length,b=i?i(y):new v.constructor(y);return v.copy(b),b}r.exports=u})(Sr,Sr.exports);var Vf=Sr.exports,Yf=k,zf=Yf.Uint8Array,In=zf,xt=In;function Wf(r){var e=new r.constructor(r.byteLength);return new xt(e).set(new xt(r)),e}var Kf=Wf,Hf=Kf;function kf(r,e){var t=e?Hf(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var Jf=kf;function Xf(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var Qf=Xf,Zf=z,At=Object.create,rv=function(){function r(){}return function(e){if(!Zf(e))return{};if(At)return At(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}(),ev=rv;function tv(r,e){return function(t){return r(e(t))}}var xn=tv,nv=xn,av=nv(Object.getPrototypeOf,Object),An=av,ov=Object.prototype;function iv(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||ov;return r===t}var xe=iv,sv=ev,cv=An,uv=xe;function fv(r){return typeof r.constructor=="function"&&!uv(r)?sv(cv(r)):{}}var vv=fv;function lv(r){return r!=null&&typeof r=="object"}var sr=lv,pv=hr,dv=sr,yv="[object Arguments]";function bv(r){return dv(r)&&pv(r)==yv}var hv=bv,Rt=hv,gv=sr,Rn=Object.prototype,$v=Rn.hasOwnProperty,_v=Rn.propertyIsEnumerable,mv=Rt(function(){return arguments}())?Rt:function(r){return gv(r)&&$v.call(r,"callee")&&!_v.call(r,"callee")},Ae=mv,Ov=Array.isArray,Re=Ov,Tv=9007199254740991;function Ev(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Tv}var Me=Ev,Sv=je,Pv=Me;function wv(r){return r!=null&&Pv(r.length)&&!Sv(r)}var Lr=wv,jv=Lr,Cv=sr;function Iv(r){return Cv(r)&&jv(r)}var xv=Iv,Pr={exports:{}};function Av(){return!1}var Rv=Av;Pr.exports;(function(r,e){var t=k,n=Rv,a=e&&!e.nodeType&&e,o=a&&!0&&r&&!r.nodeType&&r,s=o&&o.exports===a,i=s?t.Buffer:void 0,u=i?i.isBuffer:void 0,v=u||n;r.exports=v})(Pr,Pr.exports);var De=Pr.exports,Mv=hr,Dv=An,Fv=sr,Lv="[object Object]",Bv=Function.prototype,Gv=Object.prototype,Mn=Bv.toString,Nv=Gv.hasOwnProperty,Uv=Mn.call(Object);function qv(r){if(!Fv(r)||Mv(r)!=Lv)return!1;var e=Dv(r);if(e===null)return!0;var t=Nv.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Mn.call(t)==Uv}var Vv=qv,Yv=hr,zv=Me,Wv=sr,Kv="[object Arguments]",Hv="[object Array]",kv="[object Boolean]",Jv="[object Date]",Xv="[object Error]",Qv="[object Function]",Zv="[object Map]",rl="[object Number]",el="[object Object]",tl="[object RegExp]",nl="[object Set]",al="[object String]",ol="[object WeakMap]",il="[object ArrayBuffer]",sl="[object DataView]",cl="[object Float32Array]",ul="[object Float64Array]",fl="[object Int8Array]",vl="[object Int16Array]",ll="[object Int32Array]",pl="[object Uint8Array]",dl="[object Uint8ClampedArray]",yl="[object Uint16Array]",bl="[object Uint32Array]",I={};I[cl]=I[ul]=I[fl]=I[vl]=I[ll]=I[pl]=I[dl]=I[yl]=I[bl]=!0;I[Kv]=I[Hv]=I[il]=I[kv]=I[sl]=I[Jv]=I[Xv]=I[Qv]=I[Zv]=I[rl]=I[el]=I[tl]=I[nl]=I[al]=I[ol]=!1;function hl(r){return Wv(r)&&zv(r.length)&&!!I[Yv(r)]}var gl=hl;function $l(r){return function(e){return r(e)}}var Dn=$l,wr={exports:{}};wr.exports;(function(r,e){var t=On,n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,o=a&&a.exports===n,s=o&&t.process,i=function(){try{var u=a&&a.require&&a.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();r.exports=i})(wr,wr.exports);var _l=wr.exports,ml=gl,Ol=Dn,Mt=_l,Dt=Mt&&Mt.isTypedArray,Tl=Dt?Ol(Dt):ml,Fe=Tl;function El(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}var Fn=El,Sl=Ie,Pl=br,wl=Object.prototype,jl=wl.hasOwnProperty;function Cl(r,e,t){var n=r[e];(!(jl.call(r,e)&&Pl(n,t))||t===void 0&&!(e in r))&&Sl(r,e,t)}var Il=Cl,xl=Il,Al=Ie;function Rl(r,e,t,n){var a=!t;t||(t={});for(var o=-1,s=e.length;++o<s;){var i=e[o],u=n?n(t[i],r[i],i,t,r):void 0;u===void 0&&(u=r[i]),a?Al(t,i,u):xl(t,i,u)}return t}var Ml=Rl;function Dl(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var Fl=Dl,Ll=9007199254740991,Bl=/^(?:0|[1-9]\d*)$/;function Gl(r,e){var t=typeof r;return e=e??Ll,!!e&&(t=="number"||t!="symbol"&&Bl.test(r))&&r>-1&&r%1==0&&r<e}var Le=Gl,Nl=Fl,Ul=Ae,ql=Re,Vl=De,Yl=Le,zl=Fe,Wl=Object.prototype,Kl=Wl.hasOwnProperty;function Hl(r,e){var t=ql(r),n=!t&&Ul(r),a=!t&&!n&&Vl(r),o=!t&&!n&&!a&&zl(r),s=t||n||a||o,i=s?Nl(r.length,String):[],u=i.length;for(var v in r)(e||Kl.call(r,v))&&!(s&&(v=="length"||a&&(v=="offset"||v=="parent")||o&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||Yl(v,u)))&&i.push(v);return i}var Ln=Hl;function kl(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var Jl=kl,Xl=z,Ql=xe,Zl=Jl,rp=Object.prototype,ep=rp.hasOwnProperty;function tp(r){if(!Xl(r))return Zl(r);var e=Ql(r),t=[];for(var n in r)n=="constructor"&&(e||!ep.call(r,n))||t.push(n);return t}var np=tp,ap=Ln,op=np,ip=Lr;function sp(r){return ip(r)?ap(r,!0):op(r)}var Bn=sp,cp=Ml,up=Bn;function fp(r){return cp(r,up(r))}var vp=fp,Ft=jn,lp=Vf,pp=Jf,dp=Qf,yp=vv,Lt=Ae,Bt=Re,bp=xv,hp=De,gp=je,$p=z,_p=Vv,mp=Fe,Gt=Fn,Op=vp;function Tp(r,e,t,n,a,o,s){var i=Gt(r,t),u=Gt(e,t),v=s.get(u);if(v){Ft(r,t,v);return}var p=o?o(i,u,t+"",r,e,s):void 0,y=p===void 0;if(y){var b=Bt(u),O=!b&&hp(u),A=!b&&!O&&mp(u);p=u,b||O||A?Bt(i)?p=i:bp(i)?p=dp(i):O?(y=!1,p=lp(u,!0)):A?(y=!1,p=pp(u,!0)):p=[]:_p(u)||Lt(u)?(p=i,Lt(i)?p=Op(i):(!$p(i)||gp(i))&&(p=yp(u))):y=!1}y&&(s.set(u,p),a(p,u,n,o,s),s.delete(u)),Ft(r,t,p)}var Ep=Tp,Sp=Pn,Pp=jn,wp=Cn,jp=Ep,Cp=z,Ip=Bn,xp=Fn;function Gn(r,e,t,n,a){r!==e&&wp(e,function(o,s){if(a||(a=new Sp),Cp(o))jp(r,e,s,t,Gn,n,a);else{var i=n?n(xp(r,s),o,s+"",r,e,a):void 0;i===void 0&&(i=o),Pp(r,s,i)}},Ip)}var Ap=Gn;function Rp(r){return r}var Be=Rp;function Mp(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}var Dp=Mp,Fp=Dp,Nt=Math.max;function Lp(r,e,t){return e=Nt(e===void 0?r.length-1:e,0),function(){for(var n=arguments,a=-1,o=Nt(n.length-e,0),s=Array(o);++a<o;)s[a]=n[e+a];a=-1;for(var i=Array(e+1);++a<e;)i[a]=n[a];return i[e]=t(s),Fp(r,this,i)}}var Bp=Lp;function Gp(r){return function(){return r}}var Np=Gp,Up=Np,Ut=wn,qp=Be,Vp=Ut?function(r,e){return Ut(r,"toString",{configurable:!0,enumerable:!1,value:Up(e),writable:!0})}:qp,Yp=Vp,zp=800,Wp=16,Kp=Date.now;function Hp(r){var e=0,t=0;return function(){var n=Kp(),a=Wp-(n-t);if(t=n,a>0){if(++e>=zp)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}var kp=Hp,Jp=Yp,Xp=kp,Qp=Xp(Jp),Zp=Qp,rd=Be,ed=Bp,td=Zp;function nd(r,e){return td(ed(r,e,rd),r+"")}var ad=nd,od=br,id=Lr,sd=Le,cd=z;function ud(r,e,t){if(!cd(t))return!1;var n=typeof e;return(n=="number"?id(t)&&sd(e,t.length):n=="string"&&e in t)?od(t[e],r):!1}var fd=ud,vd=ad,ld=fd;function pd(r){return vd(function(e,t){var n=-1,a=t.length,o=a>1?t[a-1]:void 0,s=a>2?t[2]:void 0;for(o=r.length>3&&typeof o=="function"?(a--,o):void 0,s&&ld(t[0],t[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++n<a;){var i=t[n];i&&r(e,i,n,o)}return e})}var dd=pd,yd=Ap,bd=dd;bd(function(r,e,t){yd(r,e,t)});const hd=r=>{let{condition:e,wrapper:t,children:n}=r;return e?t(n):n},gd=r=>`${r} element was not found in the DOM.`,$d=r=>`${r} is not a valid selector.`,qt={},_e=r=>{qt[r]||(xr(!1,r),qt[r]=!0)},_d=r=>document.createDocumentFragment().querySelector(r),md=r=>{try{_d(r)}catch{return!1}return!0},Nn=r=>md(r)?document.querySelector(r)||_e(gd(r)):(_e($d(r)),!1),Un=(r,e)=>r?rr.Children.map(r,(t,n)=>{let a;return typeof e=="function"?a=e(t,n):(a={},Object.keys(e).forEach(o=>{a[o]=e[o]})),rr.isValidElement(t)?rr.cloneElement(t,a):rr.createElement("div",a,t)}):null,Od=(r,e)=>Un(r,{className:e}),Td=r=>{setTimeout(()=>{const e=Nn(r);e&&e.focus()},0)},Ed=(r,e,t)=>r[e]?"group":r[t]?"category":"standard",Sd=r=>{let{nonInteractive:e,leadingBlockType:t,trailingBlockType:n,role:a}=r;if(!(e&&!a))return t==="checkbox"||n==="checkbox"||t==="switch"||n==="switch"?"group":t==="radio"||n==="radio"?"radiogroup":a},Pd=(r,e,t,n,a)=>{if(t==="group"||Array.isArray(n)){const o=[];return n?.forEach(s=>{s.selectedCategoryIndex||s.selectedCategoryIndex===0?s.selectedCategoryIndex===e&&s.selectedGroupIndex===r&&o.push(s.selectedIndex):s.selectedGroupIndex===r&&o.push(s.selectedIndex)}),o}return n!=null&&n.selectedCategoryIndex||n?.selectedCategoryIndex===0?n?.selectedCategoryIndex===e&&n?.selectedGroupIndex===r?n?.selectedIndex:-1:a&&n?.selectedGroupIndex===r||!a&&n?.selectedGroupIndex===r?n?.selectedIndex:-1},Vt={},wd=(r,e)=>{const t=`"${r}" has been deprecated.
21
- ${e}`;Vt[t]||(xr(!1,t),Vt[t]=!0)},jr={},jd=(r,e,t)=>function(a,o){if(a[o]!=null){const v=`"${o}" property of "${e}" has been deprecated.
22
- ${t}`;jr[v]||(xr(!1,v),jr[v]=!0)}for(var s=arguments.length,i=new Array(s>2?s-2:0),u=2;u<s;u++)i[u-2]=arguments[u];return r(a,o,...i)},Cd=(r,e,t,n)=>function(o,s){if(e.some(p=>p===o[s])){const p=`Some "${s}" options have been deprecated in "${t}".
23
- ${n}`;jr[p]||(xr(!1,p),jr[p]=!0)}for(var i=arguments.length,u=new Array(i>2?i-2:0),v=2;v<i;v++)u[v-2]=arguments[v];return r(o,s,...u)},Id=r=>r?`eds-${`${r}-`}${Tt(5)}`:`eds-${Tt(5)}`,xd=(r,e,t)=>function(a,o){for(var s=arguments.length,i=new Array(s>2?s-2:0),u=2;u<s;u++)i[u-2]=arguments[u];const v=r(a,o,...i);if(a[t]&&!a[o]){const p=`\`${e}\`: \`${t}\` requires \`${o}\` to be set.`;return new Error(p)}return v},Ad=typeof window<"u"?rr.useLayoutEffect:rr.useEffect;exports.ConditionalWrapper=hd;exports.PropTypes=Ds;exports._Map=Ce;exports._MapCache=Sn;exports._Stack=Pn;exports._Symbol=we;exports._Uint8Array=In;exports._arrayLikeKeys=Ln;exports._baseFor=Cn;exports._baseGetTag=hr;exports._baseUnary=Dn;exports._extends=ge;exports._getNative=Mr;exports._isIndex=Le;exports._isPrototype=xe;exports._overArg=xn;exports._root=k;exports._toSource=En;exports.addClass=Od;exports.addProps=Un;exports.clsx=Ss;exports.deprecatedComponent=wd;exports.deprecatedOneOf=Cd;exports.deprecatedProp=jd;exports.edsQuerySelector=Nn;exports.edsRandomId=Id;exports.edsWarning=_e;exports.eq_1=br;exports.getListVariant=Ed;exports.getRole=Sd;exports.getSelectedItemIndex=Pd;exports.identity_1=Be;exports.isArguments_1=Ae;exports.isArrayLike_1=Lr;exports.isArray_1=Re;exports.isBufferExports=De;exports.isLength_1=Me;exports.isObjectLike_1=sr;exports.isObject_1=z;exports.isTypedArray_1=Fe;exports.requireReactIs=Ee;exports.requiredIfPropType=xd;exports.returnFocusAfterClosing=Td;exports.useIsomorphicLayoutEffect=Ad;
@@ -1,64 +0,0 @@
1
- "use strict";const t=require("./index.es-CEydmFbW.cjs"),z=require("./index.es-CSD_u-fK.cjs"),c=require("react"),A=require("./tslib.es6-D1TYK0An.cjs"),_=require("./component-DJvMx3oL.cjs");/**
2
- * @license
3
- * Copyright 2018 Google Inc.
4
- *
5
- * Permission is hereby granted, free of charge, to any person obtaining a copy
6
- * of this software and associated documentation files (the "Software"), to deal
7
- * in the Software without restriction, including without limitation the rights
8
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- * copies of the Software, and to permit persons to whom the Software is
10
- * furnished to do so, subject to the following conditions:
11
- *
12
- * The above copyright notice and this permission notice shall be included in
13
- * all copies or substantial portions of the Software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- * THE SOFTWARE.
22
- */var m={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},u={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"};/**
23
- * @license
24
- * Copyright 2018 Google Inc.
25
- *
26
- * Permission is hereby granted, free of charge, to any person obtaining a copy
27
- * of this software and associated documentation files (the "Software"), to deal
28
- * in the Software without restriction, including without limitation the rights
29
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30
- * copies of the Software, and to permit persons to whom the Software is
31
- * furnished to do so, subject to the following conditions:
32
- *
33
- * The above copyright notice and this permission notice shall be included in
34
- * all copies or substantial portions of the Software.
35
- *
36
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
42
- * THE SOFTWARE.
43
- */var R=function(d){A.__extends(o,d);function o(e){var a=d.call(this,A.__assign(A.__assign({},o.defaultAdapter),e))||this;return a.hasToggledAriaLabel=!1,a}return Object.defineProperty(o,"cssClasses",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),o.prototype.init=function(){var e=this.adapter.getAttr(u.DATA_ARIA_LABEL_ON),a=this.adapter.getAttr(u.DATA_ARIA_LABEL_OFF);if(e&&a){if(this.adapter.getAttr(u.ARIA_PRESSED)!==null)throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(u.ARIA_PRESSED,String(this.isOn()))},o.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},o.prototype.isOn=function(){return this.adapter.hasClass(m.ICON_BUTTON_ON)},o.prototype.toggle=function(e){if(e===void 0&&(e=!this.isOn()),e?this.adapter.addClass(m.ICON_BUTTON_ON):this.adapter.removeClass(m.ICON_BUTTON_ON),this.hasToggledAriaLabel){var a=e?this.adapter.getAttr(u.DATA_ARIA_LABEL_ON):this.adapter.getAttr(u.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(u.ARIA_LABEL,a||"")}else this.adapter.setAttr(u.ARIA_PRESSED,""+e)},o}(_.MDCFoundation);/**
44
- * @license
45
- * Copyright 2018 Google Inc.
46
- *
47
- * Permission is hereby granted, free of charge, to any person obtaining a copy
48
- * of this software and associated documentation files (the "Software"), to deal
49
- * in the Software without restriction, including without limitation the rights
50
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
- * copies of the Software, and to permit persons to whom the Software is
52
- * furnished to do so, subject to the following conditions:
53
- *
54
- * The above copyright notice and this permission notice shall be included in
55
- * all copies or substantial portions of the Software.
56
- *
57
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
- * THE SOFTWARE.
64
- */var U=R.strings,H=function(d){A.__extends(o,d);function o(){var e=d!==null&&d.apply(this,arguments)||this;return e.rippleComponent=e.createRipple(),e}return o.attachTo=function(e){return new o(e)},o.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},o.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),d.prototype.destroy.call(this)},o.prototype.getDefaultFoundation=function(){var e=this,a={addClass:function(l){return e.root.classList.add(l)},hasClass:function(l){return e.root.classList.contains(l)},notifyChange:function(l){e.emit(U.CHANGE_EVENT,l)},removeClass:function(l){return e.root.classList.remove(l)},getAttr:function(l){return e.root.getAttribute(l)},setAttr:function(l,v){return e.root.setAttribute(l,v)}};return new R(a)},Object.defineProperty(o.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!1,configurable:!0}),o.prototype.createRipple=function(){var e=new _.MDCRipple(this.root);return e.unbounded=!0,e},o}(_.MDCComponent);const G={active:t.PropTypes.bool,ariaLabel:t.PropTypes.string,ariaLabelledBy:t.PropTypes.string,badge:t.PropTypes.node,badgePlacement:t.PropTypes.oneOf(["right-start","left-start"]),children:t.PropTypes.node,className:t.PropTypes.string,dense:t.PropTypes.bool,disabled:t.PropTypes.bool,icon:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.node]),iconSize:t.PropTypes.oneOf(["xsmall","small","medium","large","xlarge"]),iconType:t.PropTypes.oneOf(["filled","outlined","rounded","two-tone","sharp"]),onClick:t.PropTypes.func,tabIndex:t.PropTypes.number,toggleOff:t.PropTypes.node,toggleOffAriaLabel:t.PropTypes.string,toggleOffAriaLabelledBy:t.PropTypes.string,toggleOn:t.PropTypes.node,toggleOnAriaLabel:t.PropTypes.string,toggleOnAriaLabelledBy:t.PropTypes.string,variant:t.deprecatedOneOf(t.PropTypes.oneOf(["","filled-danger-alt","filled-danger","filled-primary","filled-secondary","color-primary","color-secondary","color-on-dark","color-on-unknown-black"]),["primary-alt","secondary-alt","primary","danger-alt","danger"],"IconButton","Please use one of '','filled-danger-alt','filled-danger','filled-primary','filled-secondary','color-primary','color-secondary','color-on-dark','color-on-unknown-black'.")},V={active:!1,ariaLabel:null,ariaLabelledBy:null,badge:void 0,badgePlacement:"right-start",children:null,className:void 0,dense:!1,disabled:!1,icon:null,iconSize:"medium",iconType:"filled",tabIndex:0,toggleOff:null,toggleOffAriaLabel:null,toggleOffAriaLabelledBy:null,toggleOn:null,toggleOnAriaLabel:null,toggleOnAriaLabelledBy:null,variant:""},h=c.forwardRef((d,o)=>{const{active:e,ariaLabel:a,ariaLabelledBy:l,badge:v,badgePlacement:k,children:L,className:D,dense:x,disabled:S,icon:B,iconSize:w,iconType:F,onClick:I,tabIndex:M,toggleOff:N,toggleOffAriaLabel:T,toggleOffAriaLabelledBy:O,toggleOn:E,toggleOnAriaLabel:P,toggleOnAriaLabelledBy:C,variant:r,...$}=d,b=c.useRef(),y=c.useRef(),g=c.useRef(),p=E&&N;c.useImperativeHandle(o,()=>b.current,[]);const j=t.clsx("lmnt","lmnt-icon-button","mdc-icon-button",x&&"lmnt-icon-button--dense",(r==="primary"||r==="primary-alt"||r==="secondary"||r==="danger"||r==="danger-alt"||r==="filled-primary"||r==="filled-primary-alt"||r==="filled-secondary"||r==="filled-danger"||r==="filled-danger-alt")&&"lmnt-icon-button--fill",(r==="danger-alt"||r==="filled-danger-alt")&&"lmnt-icon-button--fill-danger-alt",(r==="danger"||r==="filled-danger")&&"lmnt-icon-button--fill-danger",(r==="primary"||r==="filled-primary")&&"lmnt-icon-button--fill-primary",(r==="primary-alt"||r==="filled-secondary")&&"lmnt-icon-button--fill-secondary",(r==="secondary-alt"||r==="color-on-dark")&&"lmnt-icon-button--color-on-dark",r==="color-primary"&&"lmnt-icon-button--color-primary",r==="color-secondary"&&"lmnt-icon-button--color-secondary",r==="color-on-unknown-black"&&"lmnt-icon-button--on-unknown-black",D);c.useEffect(()=>(p?g.current=H.attachTo(b.current):(y.current=_.MDCRipple.attachTo(b.current),y.current.unbounded=!0),()=>{p?g.current.destroy():y.current.destroy()}),[g,p,y]),c.useEffect(()=>{p&&(g.current.on=e)},[e,p,g]);const q=n=>{I&&I(p?g.current.on:n)};return c.createElement("button",t._extends({"aria-label":a,"aria-labelledby":l,"data-aria-label-on":P||C||a,"data-aria-label-off":T||O||a,onClick:q,ref:b,className:j,disabled:S,tabIndex:M},$),B&&c.createElement(z.Icon,{badge:v,badgePlacement:k,icon:B,iconSize:w,iconType:F}),L&&t.addProps(L,n=>{var i,s;return{className:t.clsx("mdc-icon-button__icon",n==null||(i=n.props)===null||i===void 0?void 0:i.className),"aria-hidden":(n==null||(s=n.props)===null||s===void 0?void 0:s["aria-hidden"])||a||l}}),p&&t.addProps(E,n=>{var i,s,f;return{className:t.clsx("mdc-icon-button__icon mdc-icon-button__icon--on",n==null||(i=n.props)===null||i===void 0?void 0:i.className),"aria-label":(n==null||(s=n.props)===null||s===void 0?void 0:s["aria-label"])||P||C||a,"aria-hidden":(n==null||(f=n.props)===null||f===void 0?void 0:f["aria-hidden"])||P||C||a}}),p&&t.addProps(N,n=>{var i,s,f;return{className:t.clsx("mdc-icon-button__icon",n==null||(i=n.props)===null||i===void 0?void 0:i.className),"aria-label":(n==null||(s=n.props)===null||s===void 0?void 0:s["aria-label"])||T||O||a,"aria-hidden":(n==null||(f=n.props)===null||f===void 0?void 0:f["aria-hidden"])||T||O||a}}))});h.displayName="IconButton";h.propTypes=G;h.defaultProps=V;exports.IconButton=h;
@@ -1,151 +0,0 @@
1
- import { P as r, d as m, _ as h, c as v } from "./index.es-Cct4Uapb.js";
2
- import x, { forwardRef as w, useRef as A, useImperativeHandle as P } from "react";
3
- const b = {
4
- /**
5
- * Children to be rendered. Expects multiple components of a similar type.
6
- *
7
- * Defaults to **null**.
8
- */
9
- children: r.node,
10
- /**
11
- * The grouping direction.
12
- *
13
- * Defaults to **'horizontal'**.
14
- */
15
- direction: r.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
16
- /**
17
- * Sets the Group width to be 100%.
18
- *
19
- * Defaults to **false**.
20
- */
21
- fullWidth: r.bool,
22
- /**
23
- * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
24
- *
25
- * Defaults to **'standard'**.
26
- */
27
- gap: r.oneOf(["dense", "standard", "airy", "none"]),
28
- /**
29
- * @deprecated _Renamed for improved clarity. See `gap`._
30
- *
31
- * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
32
- *
33
- * Defaults to **undefined**.
34
- */
35
- padding: m(r.oneOf(["dense", "standard", "airy", "none"]), "Group", "Renamed for improved clarity. See `gap`."),
36
- /**
37
- * Alignment along the primary axis. 'For `horizontal` grouping this means the x-axis positioning, for `vertical`, this means the y-axis positioning.Equivalent to flexbox 'justify-content.
38
- *
39
- * Defaults to **'start'**.
40
- */
41
- primaryAlign: r.oneOf(["start", "end", "center", "space-evenly", "space-between", "space-around"]),
42
- /**
43
- * Alignment along the secondary axis. For horizontal grouping this means the y-axis positioning, for vertical, this means the x-axis positioning.Equivalent to flexbox 'align-items.
44
- *
45
- * Defaults to **'baseline'**.
46
- */
47
- secondaryAlign: r.oneOf(["start", "end", "center", "stretch", "baseline"])
48
- }, G = {
49
- children: null,
50
- direction: "horizontal",
51
- fullWidth: !1,
52
- gap: "standard",
53
- padding: void 0,
54
- primaryAlign: "start",
55
- secondaryAlign: "baseline"
56
- }, z = (e) => {
57
- switch (e) {
58
- case "end":
59
- return "flex-end";
60
- case "start":
61
- return "flex-start";
62
- case "center":
63
- return "center";
64
- case "stretch":
65
- return "stretch";
66
- case "baseline":
67
- default:
68
- return "baseline";
69
- }
70
- }, O = (e) => {
71
- switch (e) {
72
- case "end":
73
- return "flex-end";
74
- case "center":
75
- return "center";
76
- case "space-evenly":
77
- return "space-evenly";
78
- case "space-between":
79
- return "space-between";
80
- case "space-around":
81
- return "space-around";
82
- case "start":
83
- default:
84
- return "flex-start";
85
- }
86
- }, R = (e) => {
87
- switch (e) {
88
- case "dense":
89
- return "8px";
90
- case "airy":
91
- return "24px";
92
- case "standard":
93
- return "16px";
94
- case "none":
95
- default:
96
- return "0px";
97
- }
98
- }, _ = (e) => {
99
- switch (e) {
100
- case "horizontal":
101
- return "row";
102
- case "vertical":
103
- return "column";
104
- case "horizontal-reverse":
105
- return "row-reverse";
106
- case "vertical-reverse":
107
- return "column-reverse";
108
- default:
109
- return "row";
110
- }
111
- }, n = /* @__PURE__ */ w((e, a) => {
112
- const {
113
- children: s,
114
- className: c,
115
- direction: o,
116
- fullWidth: l,
117
- gap: i,
118
- padding: d,
119
- primaryAlign: u,
120
- secondaryAlign: p,
121
- style: f,
122
- variant: D,
123
- ...y
124
- } = e, g = {
125
- display: "flex",
126
- flexDirection: _(o),
127
- justifyContent: O(u),
128
- alignItems: z(p),
129
- gap: R(d || i),
130
- width: l ? "100%" : "",
131
- ...f
132
- }, t = A();
133
- return P(a, () => t.current, []), /* @__PURE__ */ x.createElement("div", h({
134
- ref: t,
135
- className: v(
136
- "lmnt",
137
- "lmnt-group",
138
- // variant === 'dense' && 'lmnt-button-group--dense',
139
- // variant === 'standard' && 'lmnt-button-group--standard',
140
- // variant === 'airy' && 'lmnt-button-group--airy',
141
- c
142
- ),
143
- style: g
144
- }, y), s);
145
- });
146
- n.displayName = "Group";
147
- n.propTypes = b;
148
- n.defaultProps = G;
149
- export {
150
- n as G
151
- };
@@ -1,127 +0,0 @@
1
- "use strict";const n=require("./index.es-CEydmFbW.cjs"),o=require("react"),j=require("react-dom"),G=require("./index.es-CSD_u-fK.cjs"),h=require("./tslib.es6-D1TYK0An.cjs"),g=require("./component-DJvMx3oL.cjs");/**
2
- * @license
3
- * Copyright 2016 Google Inc.
4
- *
5
- * Permission is hereby granted, free of charge, to any person obtaining a copy
6
- * of this software and associated documentation files (the "Software"), to deal
7
- * in the Software without restriction, including without limitation the rights
8
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- * copies of the Software, and to permit persons to whom the Software is
10
- * furnished to do so, subject to the following conditions:
11
- *
12
- * The above copyright notice and this permission notice shall be included in
13
- * all copies or substantial portions of the Software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- * THE SOFTWARE.
22
- */var Q={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"};/**
23
- * @license
24
- * Copyright 2016 Google Inc.
25
- *
26
- * Permission is hereby granted, free of charge, to any person obtaining a copy
27
- * of this software and associated documentation files (the "Software"), to deal
28
- * in the Software without restriction, including without limitation the rights
29
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30
- * copies of the Software, and to permit persons to whom the Software is
31
- * furnished to do so, subject to the following conditions:
32
- *
33
- * The above copyright notice and this permission notice shall be included in
34
- * all copies or substantial portions of the Software.
35
- *
36
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
42
- * THE SOFTWARE.
43
- */var k=function(a){h.__extends(t,a);function t(e){var r=a.call(this,h.__assign(h.__assign({},t.defaultAdapter),e))||this;return r.shakeAnimationEndHandler_=function(){return r.handleShakeAnimationEnd_()},r}return Object.defineProperty(t,"cssClasses",{get:function(){return Q},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var r=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(r):this.adapter.removeClass(r)},t.prototype.float=function(e){var r=t.cssClasses,s=r.LABEL_FLOAT_ABOVE,i=r.LABEL_SHAKE;e?this.adapter.addClass(s):(this.adapter.removeClass(s),this.adapter.removeClass(i))},t.prototype.setRequired=function(e){var r=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(r):this.adapter.removeClass(r)},t.prototype.handleShakeAnimationEnd_=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(g.MDCFoundation);/**
44
- * @license
45
- * Copyright 2016 Google Inc.
46
- *
47
- * Permission is hereby granted, free of charge, to any person obtaining a copy
48
- * of this software and associated documentation files (the "Software"), to deal
49
- * in the Software without restriction, including without limitation the rights
50
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
- * copies of the Software, and to permit persons to whom the Software is
52
- * furnished to do so, subject to the following conditions:
53
- *
54
- * The above copyright notice and this permission notice shall be included in
55
- * all copies or substantial portions of the Software.
56
- *
57
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
- * THE SOFTWARE.
64
- */var I=function(a){h.__extends(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function(){return this.foundation.getWidth()},t.prototype.getDefaultFoundation=function(){var e=this,r={addClass:function(s){return e.root.classList.add(s)},removeClass:function(s){return e.root.classList.remove(s)},getWidth:function(){return g.estimateScrollWidth(e.root)},registerInteractionHandler:function(s,i){return e.listen(s,i)},deregisterInteractionHandler:function(s,i){return e.unlisten(s,i)}};return new k(r)},t}(g.MDCComponent);/**
65
- * @license
66
- * Copyright 2018 Google Inc.
67
- *
68
- * Permission is hereby granted, free of charge, to any person obtaining a copy
69
- * of this software and associated documentation files (the "Software"), to deal
70
- * in the Software without restriction, including without limitation the rights
71
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72
- * copies of the Software, and to permit persons to whom the Software is
73
- * furnished to do so, subject to the following conditions:
74
- *
75
- * The above copyright notice and this permission notice shall be included in
76
- * all copies or substantial portions of the Software.
77
- *
78
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
84
- * THE SOFTWARE.
85
- */var M={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},H={NOTCH_ELEMENT_PADDING:8},O={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"};/**
86
- * @license
87
- * Copyright 2017 Google Inc.
88
- *
89
- * Permission is hereby granted, free of charge, to any person obtaining a copy
90
- * of this software and associated documentation files (the "Software"), to deal
91
- * in the Software without restriction, including without limitation the rights
92
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
93
- * copies of the Software, and to permit persons to whom the Software is
94
- * furnished to do so, subject to the following conditions:
95
- *
96
- * The above copyright notice and this permission notice shall be included in
97
- * all copies or substantial portions of the Software.
98
- *
99
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
100
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
101
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
102
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
103
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
104
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
105
- * THE SOFTWARE.
106
- */var V=function(a){h.__extends(t,a);function t(e){return a.call(this,h.__assign(h.__assign({},t.defaultAdapter),e))||this}return Object.defineProperty(t,"strings",{get:function(){return M},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return O},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return H},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.notch=function(e){var r=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=H.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(r)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(g.MDCFoundation);/**
107
- * @license
108
- * Copyright 2017 Google Inc.
109
- *
110
- * Permission is hereby granted, free of charge, to any person obtaining a copy
111
- * of this software and associated documentation files (the "Software"), to deal
112
- * in the Software without restriction, including without limitation the rights
113
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
114
- * copies of the Software, and to permit persons to whom the Software is
115
- * furnished to do so, subject to the following conditions:
116
- *
117
- * The above copyright notice and this permission notice shall be included in
118
- * all copies or substantial portions of the Software.
119
- *
120
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
121
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
122
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
123
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
124
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
126
- * THE SOFTWARE.
127
- */var S=function(a){h.__extends(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root.querySelector(M.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+k.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(O.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(O.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function(){this.foundation.closeNotch()},t.prototype.getDefaultFoundation=function(){var e=this,r={addClass:function(s){return e.root.classList.add(s)},removeClass:function(s){return e.root.classList.remove(s)},setNotchWidthProperty:function(s){return e.notchElement_.style.setProperty("width",s+"px")},removeNotchWidthProperty:function(){return e.notchElement_.style.removeProperty("width")}};return new V(r)},t}(g.MDCComponent);const z={children:n.PropTypes.node,disabled:n.PropTypes.bool,portalContainer:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.node])},J={children:null,disabled:!1,portalContainer:"document.body"},C=o.forwardRef((a,t)=>{const[e,r]=o.useState(document.body),{children:s,container:i,disabled:p}=a,l=o.useRef();return o.useImperativeHandle(t,()=>l.current,[]),o.useEffect(()=>{if(typeof i=="string")if(i==="document.body")r(document.body);else{const d=n.edsQuerySelector(i);r(d||document.body)}else r(i||document.body)},[i]),o.createElement(o.Fragment,null,p?s:j.createPortal(s,e))});C.displayName="Portal";C.propTypes=z;C.defaultProps=J;var B=o.memo(C);const X={children:n.PropTypes.node.isRequired,className:n.PropTypes.string,containerType:n.PropTypes.oneOf(["inline","block"]),hoisted:n.PropTypes.bool,id:n.PropTypes.string,onClick:n.PropTypes.func,portalContainer:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.node]),position:n.PropTypes.oneOf(["bottom","top","left","right"]),text:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func,n.PropTypes.node]).isRequired,tooltipProps:n.PropTypes.object,triggerProps:n.PropTypes.object},Y={children:void 0,className:void 0,containerType:"inline",hoisted:!1,id:void 0,portalContainer:"document.body",position:"bottom",text:null,tooltipProps:null,triggerProps:null},Z={className:n.PropTypes.string,hoisted:n.PropTypes.bool,id:n.PropTypes.string,portalContainer:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.node]),text:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func,n.PropTypes.node]).isRequired},ee={className:void 0,hoisted:!1,id:void 0,portalContainer:"document.body",text:null},_=o.forwardRef((a,t)=>{const{className:e,hoisted:r,id:s,portalContainer:i,text:p,...l}=a,[d]=o.useState(()=>s||n.edsRandomId()),f=o.useRef();o.useImperativeHandle(t,()=>f.current,[]);const m=o.useMemo(()=>n.clsx(["lmnt",e,"lmnt-tooltip__text-content","mdc-typography--caption"]),[e]);return o.createElement(B,{disabled:!r,container:i},o.createElement("div",n._extends({role:"tooltip",id:d,className:m},l,{ref:f}),p))});_.displayName="TooltipText";_.propTypes=Z;_.defaultProps=ee;const R=o.forwardRef((a,t)=>{const{children:e,className:r,containerType:s,hoisted:i,id:p,onClick:l,portalContainer:d,position:f,text:m,tooltipProps:E,triggerProps:q,...w}=a,L=o.useRef(),y=o.useRef(),b=o.useRef();o.useImperativeHandle(t,()=>y.current,[]);const[T]=o.useState(()=>p||n.edsRandomId()),W=o.useCallback(()=>{l?.()},[l]),U=o.useCallback(c=>{c.key==="Enter"&&l?.()},[l]);n.useIsomorphicLayoutEffect(()=>{const c=[{name:"flip",options:{enabled:!0,padding:{bottom:32,top:32}}}];return i?c.push({name:"offset",options:{offset:[0,6]}}):c.push({name:"offset",options:{offset:[0,12]}}),L.current&&y.current&&(b.current=G.createPopper(L.current,y.current,{placement:f,modifiers:c})),()=>{var u;(u=b.current)===null||u===void 0||u.destroy()}},[f,i]);const A=o.useCallback(()=>{var c,u,P;(c=y.current)===null||c===void 0||c.setAttribute("data-show",""),(u=b.current)===null||u===void 0||u.setOptions(F=>({...F,modifiers:[...F.modifiers,{name:"eventListeners",enabled:!0}]})),(P=b.current)===null||P===void 0||P.update()},[]),D=o.useCallback(()=>{var c,u;(c=y.current)===null||c===void 0||c.removeAttribute("data-show"),(u=b.current)===null||u===void 0||u.setOptions(P=>({...P,modifiers:[...P.modifiers,{name:"eventListeners",enabled:!1}]}))},[]),x=o.useCallback(()=>{const c=e;return c.type?c.type===o.Fragment:c===o.Fragment},[e]);o.useEffect(()=>{const c=`Tooltips should only include short text for additional context and should not exceed three lines visually. (Toolitip ID ${T}).`;m&&m.length>100&&n.edsWarning(c)},[m,T]);const $=o.useMemo(()=>()=>e?typeof e=="string"||x(e)?o.createElement("span",{"aria-describedby":T},e):n.addProps(e,{"aria-describedby":T}):null,[e,T,x]),K=l?{tabIndex:0,role:l?"button":"note",onKeyPress:U,onClick:W}:{};return o.createElement("span",n._extends({className:n.clsx("lmnt lmnt-tooltip",s==="block"?"lmnt-tooltip--block":"lmnt-tooltip--inline")},K,w),o.createElement("span",n._extends({className:n.clsx("lmnt-tooltip__content",s==="block"?"lmnt-tooltip--block":"lmnt-tooltip--inline")},q,{ref:L,onMouseEnter:A,onFocus:A,onMouseLeave:D,onBlur:D}),o.createElement($,null)),m&&o.createElement(_,n._extends({hoisted:i,portalContainer:d,role:"tooltip",id:T,className:r},E,{ref:y,text:m})))});R.displayName="Tooltip";R.propTypes=X;R.defaultProps=Y;const te={children:n.PropTypes.node.isRequired,className:n.PropTypes.string,float:n.PropTypes.bool,htmlFor:n.PropTypes.string,shake:n.PropTypes.bool},ne={children:null,className:void 0,float:!1,htmlFor:"",shake:!1},v=o.forwardRef((a,t)=>{const{children:e,htmlFor:r="",shake:s=!1,float:i=!1,className:p,style:l,...d}=a,f=o.useRef(),m=e,E=o.useRef();return o.useImperativeHandle(t,()=>E.current,[]),o.useEffect(()=>(f.current=I.attachTo(E.current),()=>{f.current.destroy()})),o.useEffect(()=>{f.current.float(i)},[i]),o.createElement("label",n._extends({ref:E,htmlFor:r,className:n.clsx("lmnt","mdc-floating-label",i&&"mdc-floating-label--float-above",s&&"mdc-floating-label--shake",p)},d,{style:l}),m)});v.displayName="FloatingLabel";v.propTypes=te;v.defaultProps=ne;const oe={children:n.PropTypes.node,className:n.PropTypes.string,closed:n.PropTypes.bool,width:n.PropTypes.number},re={children:null,className:void 0,closed:void 0,width:null},N=o.forwardRef((a,t)=>{const{closed:e,className:r,children:s,width:i,...p}=a,l=o.useRef(),d=o.useRef();return o.useImperativeHandle(t,()=>l.current,[]),o.useEffect(()=>(d.current=S.attachTo(l.current),()=>{d.current.destroy()}),[]),o.useEffect(()=>{e!==void 0&&(e?d.current.closeNotch():d.current.notch())},[e]),o.useEffect(()=>{i?d.current.foundation.adapter.setNotchWidthProperty(i):d.current.foundation.adapter.removeNotchWidthProperty()},[i]),o.createElement("div",n._extends({className:n.clsx("lmnt","mdc-notched-outline",r),ref:l},p),o.createElement("div",{className:"mdc-notched-outline__leading"}),o.createElement("div",{className:"mdc-notched-outline__notch"},s),o.createElement("div",{className:"mdc-notched-outline__trailing"}))});N.displayName="NotchedOutline";N.propTypes=oe;N.defaultProps=re;exports.FloatingLabel=v;exports.MDCFloatingLabel=I;exports.MDCNotchedOutline=S;exports.NotchedOutline=N;exports.Portal$1=B;exports.TooltipText=_;