@fluidattacks/design 3.1.10 → 3.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/assets/{design.css → index.css} +1 -1
- package/dist/assets/index2.css +1 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +9 -1
- package/dist/components/accordion/index.js +21 -1
- package/dist/components/alert/index.js +111 -4
- package/dist/components/button/index.js +18 -1
- package/dist/components/card/card-header/index.js +14 -1
- package/dist/components/card/card-with-image/index.js +18 -1
- package/dist/components/card/card-with-input/index.js +57 -3
- package/dist/components/card/card-with-selector/index.js +16 -1
- package/dist/components/card/card-with-switch/index.js +12 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +36 -10
- package/dist/components/checkbox/index.js +84 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +27 -1
- package/dist/components/code-snippet/location-code/index.js +125 -1
- package/dist/components/colors/index.js +9 -1
- package/dist/components/confirm-dialog/index.js +23 -1
- package/dist/components/container/index.js +27 -3
- package/dist/components/content-card/category-tag/index.js +13 -1
- package/dist/components/content-card/event-date/index.js +18 -1
- package/dist/components/content-card/index.js +63 -3
- package/dist/components/content-card-carousel/index.js +15 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +10 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +21 -8
- package/dist/components/file-preview/index.js +15 -3
- package/dist/components/form/index.js +26 -3
- package/dist/components/grid-container/index.js +26 -5
- package/dist/components/group-selector/index.js +26 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +42 -4
- package/dist/components/icon-button/index.js +27 -3
- package/dist/components/indicator-card/index.js +15 -1
- package/dist/components/info-sidebar/index.js +16 -1
- package/dist/components/inputs/fields/combobox/index.js +26 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/index.js +15 -1
- package/dist/components/inputs/fields/date/index.js +18 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
- package/dist/components/inputs/fields/date-range/index.js +28 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
- package/dist/components/inputs/fields/date-time/index.js +18 -1
- package/dist/components/inputs/fields/editable/index.js +16 -1
- package/dist/components/inputs/fields/input/index.js +13 -1
- package/dist/components/inputs/fields/input-file/index.js +24 -4
- package/dist/components/inputs/fields/input-tags/index.js +14 -2
- package/dist/components/inputs/fields/number/index.js +10 -1
- package/dist/components/inputs/fields/number-range/index.js +11 -1
- package/dist/components/inputs/fields/phone/index.js +414 -11
- package/dist/components/inputs/fields/text-area/index.js +13 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +12 -1
- package/dist/components/inputs/outline-container/index.js +18 -1
- package/dist/components/inputs/utils/action-button/index.js +10 -1
- package/dist/components/inputs/utils/calendar-button/index.js +13 -1
- package/dist/components/inputs/utils/date-selector/index.js +8 -1
- package/dist/components/inputs/utils/date-time-field/index.js +32 -1
- package/dist/components/inputs/utils/dialog/index.js +11 -1
- package/dist/components/inputs/utils/number-field/index.js +13 -1
- package/dist/components/inputs/utils/popover/index.js +13 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +15 -1
- package/dist/components/language-selector/index.js +13 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +52 -7
- package/dist/components/list-item/index.js +16 -1
- package/dist/components/little-flag/index.js +15 -3
- package/dist/components/loading/index.js +28 -14
- package/dist/components/logo/index.js +7 -1
- package/dist/components/logo-carousel/index.js +10 -4
- package/dist/components/lottie/index.js +15 -3
- package/dist/components/menu/index.js +23 -1
- package/dist/components/message-banner/index.js +21 -4
- package/dist/components/modal/index.js +19 -1
- package/dist/components/modal/modal-confirm/index.js +10 -1
- package/dist/components/modal/modal-footer/index.js +16 -1
- package/dist/components/modal/modal-header/index.js +25 -1
- package/dist/components/notification/index.js +68 -5
- package/dist/components/notification-sign/index.js +26 -6
- package/dist/components/number-input/index.js +25 -7
- package/dist/components/oauth-selector/index.js +26 -1
- package/dist/components/oauth-selector/option-container/index.js +15 -1
- package/dist/components/plan-card/index.js +84 -5
- package/dist/components/plan-card/recommended-tag/index.js +10 -1
- package/dist/components/pop-up/description/index.js +13 -1
- package/dist/components/pop-up/index.js +23 -1
- package/dist/components/premium-feature/index.js +45 -3
- package/dist/components/priority-score/index.js +14 -1
- package/dist/components/progress/index.js +23 -3
- package/dist/components/progress-bar/index.js +95 -5
- package/dist/components/radio-button/index.js +88 -3
- package/dist/components/scroll-button/index.js +20 -2
- package/dist/components/search/index.js +63 -7
- package/dist/components/search-bar/index.js +32 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +14 -1
- package/dist/components/severity-overview/badge/index.js +18 -1
- package/dist/components/severity-overview/index.js +7 -1
- package/dist/components/show-on-hover/index.js +25 -3
- package/dist/components/slide-out-menu/index.js +2009 -3
- package/dist/components/slide-out-menu/menu-item/index.js +15 -1
- package/dist/components/slider/index.js +93 -7
- package/dist/components/slider/thumb/index.js +10 -1
- package/dist/components/step-lapse/index.js +95 -9
- package/dist/components/table-button/index.js +56 -3
- package/dist/components/tabs/fixed-tabs/index.js +9 -1
- package/dist/components/tabs/index.js +14 -1
- package/dist/components/tabs/tab/index.js +8 -1
- package/dist/components/tag/index.js +116 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +7 -1
- package/dist/components/toggle/index.js +45 -14
- package/dist/components/toggle-buttons/index.js +74 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +2481 -4
- package/dist/components/typography/heading/index.js +9 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +9 -1
- package/dist/components/typography/text/index.js +9 -1
- package/dist/components/web-form/index.js +59 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-38JqtnAI.mjs +122 -0
- package/dist/index-B5yoGFs6.mjs +54 -0
- package/dist/index-BLbKylyw.mjs +209 -0
- package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
- package/dist/index-BwFnfaRh.mjs +2310 -0
- package/dist/index-Co_k0WFk.mjs +75 -0
- package/dist/index-Cu7uUMlx.mjs +82 -0
- package/dist/index-D-lcuEHY.mjs +1018 -0
- package/dist/index-DrfjITyT.mjs +61 -0
- package/dist/index.js +206 -1
- package/dist/styles-7_q7nHce.mjs +110 -0
- package/dist/styles-BA0WIQL-.mjs +74 -0
- package/dist/styles-C3cZmKVJ.mjs +131 -0
- package/dist/styles-CI-I6joH.mjs +144 -0
- package/dist/styles-Cx93EcVo.mjs +76 -0
- package/dist/styles-D85YYIjM.mjs +131 -0
- package/dist/styles-EIbGRPlk.mjs +106 -0
- package/dist/styles-Q1VXuWI7.mjs +65 -0
- package/dist/styles-fH2c4cfc.mjs +77 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
- package/dist/use-carousel-CvRxi2FI.mjs +17 -0
- package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
- package/dist/use-modal-CkrZ-_-M.mjs +14 -0
- package/dist/use-search-DpLNvt7Q.mjs +12 -0
- package/dist/utils-CQvBF-wY.mjs +4 -0
- package/package.json +3 -2
- package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
- package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
- package/dist/index-BH27NQKA.mjs +0 -2311
- package/dist/index-Bcw2vW_n.mjs +0 -75
- package/dist/index-C8zdgAVH.mjs +0 -82
- package/dist/index-CA_9DXWd.js +0 -5
- package/dist/index-CmylnDrF.js +0 -14
- package/dist/index-DUMgwAbO.js +0 -26
- package/dist/index-DpQYiwGu.js +0 -5
- package/dist/index-Dy8ZUIYs.js +0 -5
- package/dist/index-JPf5Yzg6.js +0 -17
- package/dist/index-OBZtKZuT.mjs +0 -1021
- package/dist/index-SsXlDjK4.mjs +0 -122
- package/dist/index-TKLFHcRp.js +0 -18
- package/dist/index-TnyKqJHo.mjs +0 -61
- package/dist/index-Yr95Cb7Z.mjs +0 -54
- package/dist/index-h9-U5wxq.mjs +0 -209
- package/dist/index-qCiUU4sZ.js +0 -9
- package/dist/index-qe0nJwzl.js +0 -15
- package/dist/styles--Elze-LV.js +0 -3
- package/dist/styles-3pR4Xdvy.js +0 -33
- package/dist/styles-59h91S9m.mjs +0 -65
- package/dist/styles-BCwLWpC3.mjs +0 -126
- package/dist/styles-BJ7-0I5X.mjs +0 -74
- package/dist/styles-BKObp9bh.mjs +0 -76
- package/dist/styles-BWVdbvFu.js +0 -5
- package/dist/styles-Bl-CstrT.js +0 -5
- package/dist/styles-Bn42XCW5.js +0 -7
- package/dist/styles-C2CoGJl7.js +0 -33
- package/dist/styles-CNzziAXG.js +0 -5
- package/dist/styles-CdD9waPD.js +0 -29
- package/dist/styles-CnKTwnFk.mjs +0 -110
- package/dist/styles-D4R-eerv.mjs +0 -77
- package/dist/styles-DNIIhyRC.mjs +0 -144
- package/dist/styles-DV8yOaqV.mjs +0 -131
- package/dist/styles-DYoftbd3.js +0 -42
- package/dist/styles-DlmKLhPh.js +0 -7
- package/dist/styles-be8gOdgy.mjs +0 -106
- package/dist/use-carousel-64dKFW4E.js +0 -1
- package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
- package/dist/use-click-outside-BqkLISED.js +0 -1
- package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
- package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
- package/dist/use-cloudinary-image-YMMafagv.js +0 -1
- package/dist/use-modal-CNbLSSQb.mjs +0 -14
- package/dist/use-modal-_bYY6M_n.js +0 -1
- package/dist/use-search-75ip5xR-.mjs +0 -12
- package/dist/use-search-DeL4UDMh.js +0 -1
- package/dist/utils-C2whpEd3.js +0 -1
- package/dist/utils-Da0qL35u.mjs +0 -4
package/dist/index-SsXlDjK4.mjs
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { styled as e } from "styled-components";
|
|
3
|
-
import "./components/typography/heading/index.js";
|
|
4
|
-
import "./components/typography/span/index.js";
|
|
5
|
-
import { Text as t } from "./components/typography/text/index.js";
|
|
6
|
-
const o = e.button`
|
|
7
|
-
${({ theme: n2 }) => `
|
|
8
|
-
align-items: center;
|
|
9
|
-
border-left: 3px solid transparent;
|
|
10
|
-
display: flex;
|
|
11
|
-
gap: ${n2.spacing[0.625]};
|
|
12
|
-
height: 42px;
|
|
13
|
-
min-width: 50px;
|
|
14
|
-
padding: ${n2.spacing[0.625]} ${n2.spacing[1]};
|
|
15
|
-
|
|
16
|
-
&.dark {
|
|
17
|
-
background-color: ${n2.palette.gray[800]};
|
|
18
|
-
color: ${n2.palette.gray[25]};
|
|
19
|
-
|
|
20
|
-
&.disabled {
|
|
21
|
-
border-color: ${n2.palette.gray[500]};
|
|
22
|
-
color: ${n2.palette.gray[500]};
|
|
23
|
-
cursor: not-allowed;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover:not(.disabled) {
|
|
27
|
-
background-color: ${n2.palette.gray[700]};
|
|
28
|
-
border-color: ${n2.palette.primary[400]};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.light {
|
|
33
|
-
background-color: ${n2.palette.gray[50]};
|
|
34
|
-
color: ${n2.palette.gray[800]};
|
|
35
|
-
|
|
36
|
-
&.disabled {
|
|
37
|
-
background-color: ${n2.palette.white};
|
|
38
|
-
border-color: ${n2.palette.gray[300]};
|
|
39
|
-
color: ${n2.palette.gray[300]};
|
|
40
|
-
cursor: not-allowed;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:hover:not(.disabled) {
|
|
44
|
-
background-color: ${n2.palette.gray[100]};
|
|
45
|
-
border-color: ${n2.palette.primary[400]};
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
`}
|
|
49
|
-
`, r = e.div`
|
|
50
|
-
${({ theme: n2 }) => `
|
|
51
|
-
align-items: center;
|
|
52
|
-
background-color: transparent;
|
|
53
|
-
border-bottom: 2px solid transparent;
|
|
54
|
-
display: flex;
|
|
55
|
-
font-family: ${n2.typography.type.primary};
|
|
56
|
-
font-size: ${n2.typography.text.sm};
|
|
57
|
-
font-weight: ${n2.typography.weight.regular};
|
|
58
|
-
gap: ${n2.spacing[0.5]};
|
|
59
|
-
height: 30px;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
padding: ${n2.spacing[0.25]};
|
|
62
|
-
margin-bottom: ${n2.spacing[0.25]};
|
|
63
|
-
min-width: 50px;
|
|
64
|
-
width: max-content;
|
|
65
|
-
z-index: 11;
|
|
66
|
-
|
|
67
|
-
&:hover {
|
|
68
|
-
border-color: ${n2.palette.primary[400]};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.dark {
|
|
72
|
-
color: ${n2.palette.gray[25]};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&.light {
|
|
76
|
-
color: ${n2.palette.gray[800]};
|
|
77
|
-
}
|
|
78
|
-
`}
|
|
79
|
-
`, a = e.div`
|
|
80
|
-
${({ theme: n2 }) => `
|
|
81
|
-
background-color: ${n2.palette.white};
|
|
82
|
-
border-radius: 0 0 ${n2.spacing[0.25]} ${n2.spacing[0.25]};
|
|
83
|
-
box-shadow: ${n2.shadows.lg};
|
|
84
|
-
display: none;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
position: absolute;
|
|
87
|
-
top: 100%;
|
|
88
|
-
z-index: 11;
|
|
89
|
-
|
|
90
|
-
> button:last-child {
|
|
91
|
-
border-radius: 0 0 ${n2.spacing[0.25]} ${n2.spacing[0.25]};
|
|
92
|
-
}
|
|
93
|
-
`}
|
|
94
|
-
`, i = e.div`
|
|
95
|
-
${({ theme: n2 }) => `
|
|
96
|
-
align-items: flex-start;
|
|
97
|
-
cursor: pointer;
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
gap: ${n2.spacing[0.25]};
|
|
101
|
-
height: max-content;
|
|
102
|
-
position: relative;
|
|
103
|
-
width: max-content;
|
|
104
|
-
z-index: 10;
|
|
105
|
-
|
|
106
|
-
&:hover {
|
|
107
|
-
> div:first-child {
|
|
108
|
-
border-color: ${n2.palette.primary[400]};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
> div:last-child {
|
|
112
|
-
display: flex;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
`}
|
|
116
|
-
`, l = ({ disabled: e2 = false, mode: r2, onClick: a2, text: i2 }) => n(o, { className: `${e2 && "disabled"} ${r2}`, disabled: e2, onClick: a2, children: n(t, { color: "inherit", size: "sm", sizeSm: "xs", children: i2 }) });
|
|
117
|
-
export {
|
|
118
|
-
l as I,
|
|
119
|
-
i as S,
|
|
120
|
-
r as a,
|
|
121
|
-
a as b
|
|
122
|
-
};
|
package/dist/index-TKLFHcRp.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),t=require("react"),r=require("./use-cloudinary-image-YMMafagv.js");require("lodash");var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",h="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",x="[object Int8Array]",j="[object Int16Array]",O="[object Int32Array]",k="[object Uint8Array]",$="[object Uint8ClampedArray]",C="[object Uint16Array]",A="[object Uint32Array]",E=/\w*$/,R=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[_]=P[b]=P[a]=P[s]=P[w]=P[S]=P[x]=P[j]=P[O]=P[l]=P[f]=P[p]=P[h]=P[y]=P[g]=P[v]=P[k]=P[$]=P[C]=P[A]=!0,P["[object Error]"]=P[u]=P[m]=!1;var M="object"==typeof n&&n&&n.Object===Object&&n,L="object"==typeof self&&self&&self.Object===Object&&self,V=M||L||Function("return this")(),I=t&&!t.nodeType&&t,F=I&&e&&!e.nodeType&&e,q=F&&F.exports===I;function D(e,t){return e.set(t[0],t[1]),e}function Q(e,t){return e.add(t),e}function z(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;)r=t(r,e[o],o,e);return r}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function N(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function J(e,t){return function(r){return e(t(r))}}function W(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var B,H=Array.prototype,G=Function.prototype,Y=Object.prototype,X=V["__core-js_shared__"],K=(B=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",Z=G.toString,ee=Y.hasOwnProperty,te=Y.toString,re=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=q?V.Buffer:void 0,oe=V.Symbol,ie=V.Uint8Array,ae=J(Object.getPrototypeOf,Object),se=Object.create,ue=Y.propertyIsEnumerable,ce=H.splice,le=Object.getOwnPropertySymbols,fe=ne?ne.isBuffer:void 0,pe=J(Object.keys,Object),de=Ve(V,"DataView"),he=Ve(V,"Map"),ye=Ve(V,"Promise"),ge=Ve(V,"Set"),ve=Ve(V,"WeakMap"),me=Ve(Object,"create"),_e=Qe(de),be=Qe(he),we=Qe(ye),Se=Qe(ge),xe=Qe(ve),je=oe?oe.prototype:void 0,Oe=je?je.valueOf:void 0;function ke(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $e(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ce(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ae(e){this.__data__=new $e(e)}function Ee(e,t,r){var n=e[t];ee.call(e,t)&&ze(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Re(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1}function Te(e,t,r,n,o,d,m){var R;if(n&&(R=d?n(e,o,d,m):n(e)),void 0!==R)return R;if(!Be(e))return e;var T,M,L,V=Ue(e);if(V){if(M=(T=e).length,L=T.constructor(M),M&&"string"==typeof T[0]&&ee.call(T,"index")&&(L.index=T.index,L.input=T.input),R=L,!t)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,R)}else{var I=Fe(e),F=I==u||I==c;if(Je(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(I==p||I==i||F&&!d){if(U(e))return d?e:{};if(R=function(e){return"function"!=typeof e.constructor||De(e)?{}:Be(t=ae(e))?se(t):{};var t}(F?{}:e),!t)return function(e,t){return Me(e,Ie(e),t)}(e,function(e,t){return e&&Me(t,He(t),e)}(R,e))}else{if(!P[I])return d?e:{};R=function(e,t,r,n){var o,i,u,c=e.constructor;switch(t){case _:return Pe(e);case a:case s:return new c(+e);case b:return o=e,i=n?Pe(o.buffer):o.buffer,new o.constructor(i,o.byteOffset,o.byteLength);case w:case S:case x:case j:case O:case k:case $:case C:case A:return function(e,t){var r=t?Pe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case l:return function(e,t,r){return z(t?r(N(e),!0):N(e),D,new e.constructor)}(e,n,r);case f:case g:return new c(e);case h:return function(e){var t=new e.constructor(e.source,E.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return function(e,t,r){return z(t?r(W(e),!0):W(e),Q,new e.constructor)}(e,n,r);case v:return u=e,Oe?Object(Oe.call(u)):{}}}(e,I,Te,t)}}m||(m=new Ae);var q=m.get(e);if(q)return q;if(m.set(e,R),!V)var J=r?function(e){return function(e,t,r){var n=t(e);return Ue(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,He,Ie)}(e):He(e);return function(o){for(var i=-1,a=o?o.length:0;++i<a&&!1!==(s=o[i],u=i,J&&(s=e[u=s]),void Ee(R,u,Te(s,t,r,n,u,e,m))););var s,u}(J||e),R}function Pe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Me(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Ee(r,a,e[a])}return r}function Le(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Ve(e,t){var r,n,o=(n=t,null==(r=e)?void 0:r[n]);return function(e){return!(!Be(e)||(t=e,K&&K in t))&&(We(e)||U(e)?re:R).test(Qe(e));var t}(o)?o:void 0}ke.prototype.clear=function(){this.__data__=me?me(null):{}},ke.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ke.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},ke.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ee.call(t,e)},ke.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?r:t,this},$e.prototype.clear=function(){this.__data__=[]},$e.prototype.delete=function(e){var t=this.__data__,r=Re(t,e);return!(r<0||(r==t.length-1?t.pop():ce.call(t,r,1),0))},$e.prototype.get=function(e){var t=this.__data__,r=Re(t,e);return r<0?void 0:t[r][1]},$e.prototype.has=function(e){return Re(this.__data__,e)>-1},$e.prototype.set=function(e,t){var r=this.__data__,n=Re(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new ke,map:new(he||$e),string:new ke}},Ce.prototype.delete=function(e){return Le(this,e).delete(e)},Ce.prototype.get=function(e){return Le(this,e).get(e)},Ce.prototype.has=function(e){return Le(this,e).has(e)},Ce.prototype.set=function(e,t){return Le(this,e).set(e,t),this},Ae.prototype.clear=function(){this.__data__=new $e},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $e){var n=r.__data__;if(!he||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ce(n)}return r.set(e,t),this};var Ie=le?J(le,Object):function(){return[]},Fe=function(e){return te.call(e)};function qe(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function De(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Qe(e){if(null!=e){try{return Z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(de&&Fe(new de(new ArrayBuffer(1)))!=b||he&&Fe(new he)!=l||ye&&Fe(ye.resolve())!=d||ge&&Fe(new ge)!=y||ve&&Fe(new ve)!=m)&&(Fe=function(e){var t=te.call(e),r=t==p?e.constructor:void 0,n=r?Qe(r):void 0;if(n)switch(n){case _e:return b;case be:return l;case we:return d;case Se:return y;case xe:return m}return t});var Ue=Array.isArray;function Ne(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=o)&&!We(e);var t}var Je=fe||function(){return!1};function We(e){var t=Be(e)?te.call(e):"";return t==u||t==c}function Be(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function He(e){return Ne(e)?function(e){var t,r,n=Ue(e)||function(e){return!!e&&"object"==typeof e}(r=t=e)&&Ne(r)&&ee.call(t,"callee")&&(!ue.call(t,"callee")||te.call(t)==i)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],o=n.length,a=!!o;for(var s in e)!ee.call(e,s)||a&&("length"==s||qe(s,o))||n.push(s);return n}(e):function(e){if(!De(e))return pe(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}(o,o.exports);var i=o.exports,a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function s(e,t,r,n,o){return function(e,t,r,n){return new(r||(r=Promise))((function(t,o){function i(e){try{s(n.next(e))}catch(t){o(t)}}function a(e){try{s(n.throw(e))}catch(t){o(t)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}s((n=n.apply(e,[])).next())}))}(this,0,void 0,(function(){var i,a;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(u){s=[6,u],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,(function(s){switch(s.label){case 0:if(void 0===r)return[2];a=0,s.label=1;case 1:return a<r.length?[4,r[a](e,t,n,o,r)]:[3,4];case 2:if("canceled"===(i=s.sent()))return[3,4];s.label=3;case 3:return a++,[3,1];case 4:return"canceled"!==i?[2,i]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var u=function(e,t){return void 0===t&&(t={}),e?{trackedAnalytics:a({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},c=function(){function e(e,t,r,n){var o=this;this.isMounted=!0,this.imgElement=e,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=i(t);s(e,a,r,this.htmlPluginState,n).then((function(e){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach((function(e){e()}));var t=u(n,e);o.imgElement.setAttribute("src",a.toURL(t))}}))}return e.prototype.update=function(e,t,r){var n=this,o=i(e);s(this.imgElement,o,t,this.htmlPluginState).then((function(e){if(n.isMounted){var t=u(r,e);n.imgElement.setAttribute("src",o.toURL(t))}}))},e.prototype.unmount=function(){this.isMounted=!1},e}();class l{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}}class f extends Error{constructor(e="Unsupported"){super(e)}}function p(e){return new f(e)}function d(){return this._qualifierModel||{error:p(`unsupported qualifier ${this.constructor.name}`)}}class h{constructor(){this._qualifierModel={}}toJson(){return d.apply(this)}}class y extends h{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof l?this.qualifierValue=t:(this.qualifierValue=new l,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:r}=this;return`${e}${t}${r.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class g extends y{constructor(e,t){let r;r=t?new l([e,`${t}`]).setDelimiter(":"):e,super("fl",r),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function v(){var e,t,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=null===(r=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===r?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:p(`unsupported action ${this.constructor.name}`)}}class m{constructor(){this._actionModel={}}toJson(){return v.apply(this)}}class _ extends m{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const r=Array.from(e.entries());return t.forEach((e=>{r.push(["fl",e])})),r.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){const[t,r]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new g(r)):this.qualifiers.set(t,new y(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new g(e)):e instanceof g&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class b extends _{constructor(e){super(),this.regionType=e,this._actionModel.regionType=e}}class w extends b{constructor(){super("custom")}x(e){return this._actionModel.x=e,this.addQualifier(new y("x",e)),this}y(e){return this._actionModel.y=e,this.addQualifier(new y("y",e)),this}width(e){return this._actionModel.width=e,this.addQualifier(new y("w",e)),this}height(e){return this._actionModel.height=e,this.addQualifier(new y("h",e)),this}static fromJson(e){const t=new w;return e.width&&t.width(e.width),e.height&&t.height(e.height),e.x&&t.x(e.x),e.y&&t.y(e.y),t}}function S(){return new b("faces")}function x(e){const t={};return Object.keys(e).forEach((r=>{t[e[r]]=r})),t}const j={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},O={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},k={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},$={444:"CHROMA_444",420:"CHROMA_420"},C=x($);x({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const A=x(j),E=x({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),R=x(O);x(k),x({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class T extends _{constructor(e,t){super(),this._actionModel={},this._actionModel.actionType=R[e]||e;const r=this.createEffectQualifier(e,t);this.addQualifier(r)}createEffectQualifier(e,t){let r;return r=t?new l([e,`${t}`]).setDelimiter(":"):new l(e),new y("e",r)}static fromJson(e){const{actionType:t,level:r,strength:n}=e;return new this(O[t]||t,r||n)}}class P extends T{constructor(e,t){super(e,t),this.LEVEL_NAME="level",this._actionModel={},this.effectType=e,this._actionModel.actionType=R[e]||e,t&&this.setLevel(t)}setLevel(e){this._actionModel[this.LEVEL_NAME]=e;const t=this.createEffectQualifier(this.effectType,e);return this.addQualifier(t),this}}function M(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}class L extends P{level(e){return this._actionModel.level=e,this.setLevel(e)}}class V extends L{color(e){return this._actionModel.color=e,this.addQualifier(new y("co",new l(M(e))))}static fromJson(e){const{actionType:t,level:r,color:n}=e,o=new this(t,r);return n&&o.color(n),o}}function I(e){return new V("colorize",e)}class F extends _{constructor(e){super(),this._actionModel={},this.addQualifier(new y("b",new l(M(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}}class q{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:p(`unsupported action ${this.constructor.name}`)}}}class D extends l{constructor(e){super(e),this.val=e}getValue(){return this.val}}class Q extends _{constructor(e,t,r){let n;super(),this._actionModel={},n=t instanceof D?t.getValue():t,this._actionModel.actionType=E[e],this._actionModel[r]=n,this.addQualifier(new y(e,t))}}class z extends g{constructor(e){super("progressive",e)}}class U extends Q{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new g("lossy")),this}progressive(e){return e instanceof z?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new g("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new g("preserve_transparency")),this}static fromJson(e){const{formatType:t,lossy:r,progressive:n,preserveTransparency:o}=e;let i;return i=t?new this("f",t):new this("f"),n&&(n.mode?i.progressive(n.mode):i.progressive()),r&&i.lossy(),o&&i.preserveTransparency(),i}}class N{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new q(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof N?this.actions=this.actions.concat(e.actions):this.actions.push(new q(e)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new U("q",e)),this}format(e){return this.addAction(new U("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new F(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new _;let r=e;return"string"==typeof e&&(r=new g(e)),t.addQualifier(r),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if("error"in(t=n)&&t.error)return n;e.push(n)}var t;return{actions:e}}}function J(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&"0"===t[0]||isNaN(parseFloat(t))||-1!==t.indexOf(":")||-1!==t.indexOf(".")?t:`${t}.0`}class W extends l{}class B extends _{constructor(e,t,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=A[e]||e,this.addQualifier(new y("c",e)),t&&this.width(t),r&&this.height(r)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new y("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new y("w",e))}aspectRatio(e){return e instanceof W?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new y("ar",e))):"number"==typeof e||"string"==typeof e?(this._actionModel.dimensions.aspectRatio=J(e),this.addQualifier(new y("ar",J(e)))):e instanceof g?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new g("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new g("region_relative"))}static fromJson(e){const{actionType:t,dimensions:r,relative:n,regionRelative:o}=e,{aspectRatio:i,width:a,height:s}=r,u=new this(j[t]||t,a,s);return i&&u.aspectRatio("ignore_aspect_ratio"===i?new g("ignore_aspect_ratio"):i),n&&u.relative(),o&&u.regionRelative(),u}}class H extends y{constructor(e){super("g",new l(e))}}class G extends H{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class Y extends H{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class X extends H{constructor(e){super(e)}}function K(...e){const t=[...e];return new Y(t)}function Z(){return new G}class ee extends l{constructor(e){super(),this.name=e}toString(){return this.name}}function te(e){return`${e}`.replace("g_","")}function re(e){const t=e.toString().split("_"),r={object:t[0]};return t.length>1&&("avoid"===t[1]?r.avoid=!0:r.weight=+t[1]),r}function ne(e){let t;const r="auto"===e?new G:e;return t=`${e}`.startsWith("auto:")?`${e}`.split(":").filter((e=>"auto"!==e)):r.qualifierValue.values.filter((e=>"auto"!==e)),{gravityType:"auto",autoFocus:t.map(re)}}class oe extends l{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){const r=e instanceof ee?e:new ee(e);return new oe(r,t)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class ie extends l{constructor(e){super(),this.val=e}toString(){return this.val}}function ae(e){const{object:t,weight:r,avoid:n}=e,o=new oe(new ee(t));return(r||0===r)&&o.weight(r),n&&o.avoid(),o}function se(e){const t=(e.autoFocus||[]).map(ae);return Z().autoFocus(...t)}class ue extends B{gravity(e){this._actionModel.gravity=function(e){return function(e){const t=te(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}(e)?{compass:te(e),gravityType:"direction"}:(t=e,"ocr_text"===te(t)?{gravityType:"ocr"}:function(e){return e&&"auto"===`${e}`.split(":")[0]}(e)||function(e){return"auto"===`${e.qualifierValue}`.split(":")[0]}(e)?ne(e):function(e){const t=`${e}`.split(":").includes("auto"),r=e.qualifierValue.values,n={gravityType:"object",focusOnObjects:(t?r.slice(0,r.length-1):r).map((e=>`${e}`))};if(t){const e=r[r.length-1].values.slice(1),t=Z().autoFocus(...e);n.fallbackGravity=ne(t)}return n}("string"==typeof e?function(e){const t=e.split(":").map((e=>new ee(e)));return new Y(t)}(e):e));var t}(e);const t="string"==typeof e?new y("g",e):e;return this.addQualifier(t)}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.gravity&&t.gravity(function(e){return"direction"===e.gravityType?new X(new ie(e.compass)):(t=e,"ocr"===t.gravityType?K(new ee("ocr_text")):function(e){return"auto"===e.gravityType}(e)?se(e):function(e){const t=K(...(e.focusOnObjects||[]).map((e=>new ee(e))));if(e.fallbackGravity){const r=se(e.fallbackGravity);t.fallbackGravity(r)}return t}(e));var t}(e.gravity)),t}}class ce extends y{constructor(e){super("b"),e&&this.addValue(e)}}var le=class extends ce{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class fe extends ce{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map((e=>M(e))),this}}class pe extends fe{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class de extends fe{gradientColors(e){return this._gradientColors=e,this}gradientDirection(e){return this._gradientDirection=e,this}}class he extends de{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class ye extends de{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class ge extends fe{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class ve extends ce{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){return this._prompt=e,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function me(e){return`${e}`.replace("b_","")}function _e(e){const t=e._contrast,r=e._palette,n={backgroundType:""};return t&&(n.contrast=!0),r&&(n.palette=r),n}function be(e){const t=e._gradientColors,r=`${e._gradientDirection}`,n=_e(e);return t&&(n.gradientColors=t),r&&(n.gradientDirection=r),n}function we(){return new D("auto")}function Se(){return new pe}function xe(){return new ce("auto")}function je(){return new he}function Oe(){return new ye}function ke(){return new ge}function $e(e){return new ce(M(e))}function Ce(){return new ve}const Ae={auto:xe,border:Se,borderGradient:je,predominantGradient:Oe,predominant:ke,color:$e,blurred:function(){return new le},generativeFill:Ce};function Ee(e,t){const{gradientColors:r,gradientDirection:n,contrast:o,palette:i}=t;return o&&e.contrast(),i&&e.palette(...i),r&&e.gradientColors(+r),n&&e.gradientDirection(n),e}function Re(e,t){const{contrast:r,palette:n}=t;return r&&e.contrast(),n&&e.palette(...n),e}class Te extends ue{x(e){return this._actionModel.x=e,this.addQualifier(new y("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new y("y",e))}zoom(e){return this._actionModel.zoom=e,this.addQualifier(new y("z",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),e.zoom&&t.zoom(e.zoom),t}}class Pe extends ue{x(e){return this._actionModel.x=e,this.addQualifier(new y("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new y("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),t}}class Me extends Q{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=$[e];const t=new l([this._actionModel.level,e]);return t.setDelimiter(":"),this.addQualifier(new y("q",t))}quantization(e){this._actionModel.quantization=e;const t=new l([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new y("q",t))}static fromJson(e){const{level:t,chromaSubSampling:r,quantization:n}=e,o=new this(k[t]||t);if(r){const e=C[r.toUpperCase()];e&&o.chromaSubSampling(+e)}return n&&o.quantization(n),o}}function Le(e){return new U("f",e)}function Ve(e){return new Me(e)}I(70).color("black"),I(40).color("white"),new T("grayscale"),new class extends _{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new y("e",new l("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new y("e",new l(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(e){return this._actionModel.type="stripes",this._actionModel.stripesStrength=e,this.addQualifier(new y("e",new l(["assist_colorblind",e]).setDelimiter(":")))}static fromJson(e){const{actionType:t,type:r,stripesStrength:n}=e,o=new this;return"xray"===r&&o.xray(),"stripes"===r&&n&&o.stripesStrength(n),o}};var Ie,Fe={vectorize:(new N).effect(new class extends _{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(e){return this._actionModel.numOfColors=e,this._numOfColors=e,this}detailsLevel(e){return this._actionModel.detailLevel=e,this._detailsLevel=e,this}despeckleLevel(e){return this._actionModel.despeckleLevel=e,this._despeckleLevel=e,this}cornersLevel(e){return this._actionModel.cornersLevel=e,this._cornersLevel=e,this}paths(e){return this._actionModel.paths=e,this._paths=e,this}prepareQualifiers(){let e="vectorize";this._numOfColors&&(e+=`:${new l(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(e+=`:${new l(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(e+=`:${new l(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(e+=`:${new l(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(e+=`:${new l(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new y("e",e))}static fromJson(e){const{actionType:t,paths:r,cornersLevel:n,despeckleLevel:o,detailLevel:i,numOfColors:a}=e,s=new this;return r&&s.paths(r),n&&s.cornersLevel(n),o&&s.despeckleLevel(o),i&&s.detailsLevel(i),a&&s.numOfColors(a),s}}).delivery(Ve("auto")).delivery(Le(new D("svg"))),pixelate:(new N).effect(new class extends _{constructor(e){super(),this._actionModel={},this._squareSize=e,this._actionModel.actionType="pixelate",this._actionModel.squareSize=e}region(e){return this._region=e,this._actionModel.region={regionType:this._region.regionType},this}squareSize(e){return this._squareSize=e,this._actionModel.squareSize=e,this}prepareQualifiers(){const e=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new y("e",`pixelate_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new y("e",`pixelate_region${e}`)),this.addQualifier(new y("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new y("e",`pixelate_faces${e}`))):this.addQualifier(new y("e",`pixelate${e}`))}static fromJson(e){const{region:t,squareSize:r}=e,n=new this(r);return r&&n.squareSize(r),t&&"faces"===t.regionType&&n.region(S()),t&&"custom"===t.regionType&&n.region(new w),n}}(undefined)).delivery(Ve("auto")).delivery(Le(we())),blur:(new N).effect(new class extends _{constructor(e){super(),this._actionModel={},this._strength=e,this._actionModel.actionType="blur",this._actionModel.strength=e}region(e){return this._region=e,this._actionModel.region=e.toJson(),this}strength(e){return this._strength=e,this._actionModel.strength=e,this}prepareQualifiers(){const e=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new y("e",`blur_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new y("e",`blur_region${e}`)),this.addQualifier(new y("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new y("e",`blur_faces${e}`))):this.addQualifier(new y("e",`blur${e}`))}static fromJson(e){const{strength:t,region:r}=e,n=new this(t);return t&&n.strength(t),r&&"faces"===r.regionType&&n.region(S()),r&&"ocr_text"===r.regionType&&n.region(new b("ocr_text")),r&&"custom"===r.regionType&&n.region(w.fromJson(r)),n}}(2e3)).delivery(Ve("auto")).delivery(Le(we())),"predominant-color":(new N).resize(new class extends ue{background(e){return this._actionModel.background=function(e){return"auto"===me(e)?{backgroundType:"auto"}:e instanceof le?function(e){const{intensityLevel:t,brightnessLevel:r}=e,n={backgroundType:"blurred"};return(t||0===t)&&(n.intensity=t),(r||0===r)&&(n.brightness=r),n}(e):e instanceof pe?(t=e,Object.assign(Object.assign({},_e(t)),{backgroundType:"border"})):e instanceof he?function(e){return Object.assign(Object.assign({},be(e)),{backgroundType:"borderGradient"})}(e):e instanceof ge?function(e){return Object.assign(Object.assign({},_e(e)),{backgroundType:"predominant"})}(e):e instanceof ye?function(e){return Object.assign(Object.assign({},be(e)),{backgroundType:"predominantGradient"})}(e):e instanceof ve?function(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}(e):function(e){return{backgroundType:"color",color:me(e)}}(e);var t}(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new y("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new y("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.background&&t.background(function(e){const{backgroundType:t}=e;switch(t){case"auto":return xe();case"blurred":return function(e){const{brightness:t,intensity:r}=e,n=Ae.blurred();return n.brightness(null!=t?t:0),n.intensity(null!=r?r:100),n}(e);case"border":return Re(Se(),e);case"borderGradient":return Ee(je(),e);case"predominant":return Re(ke(),e);case"predominantGradient":return Ee(Oe(),e);case"generativeFill":return function(e,t){const{prompt:r}=t;return r&&e.prompt(r),e}(Ce(),e);default:return $e(e.color)}}(e.background)),e.x&&t.offsetX(e.x),e.y&&t.offsetY(e.y),e.zoom&&t.zoom(e.zoom),t}}("pad","iw_div_2",undefined).aspectRatio(1).background(Ae.auto())).resize(new Te("crop",1,1).gravity((Ie=new ie("north_east"),new X(Ie)))).resize(new Pe("fill",void 0,void 0).height("ih").width("iw")).delivery(Ve("auto")).delivery(Le(we()))},qe="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",De={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Qe="?_a=",ze=function(){function e(e,t,r,n,o,a,u){var c=this;this.mimeType="video",this.mimeSubTypes=De,this.videoElement=e,this.originalVideo=t,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var l=i(t);s(e,t,n,this.htmlPluginState).then((function(){c.htmlPluginState.pluginEventSubscription.forEach((function(e){e()})),c.setVideoAttributes(o,a),c.handleSourceToVideo(l,r)}))}return e.prototype.handleSourceToVideo=function(e,t){var r=this;t?this.generateUserSources(e,t):["webm","mp4","ogv"].forEach((function(t){r.appendSourceTag(i(e),t)}))},e.prototype.generateUserSources=function(e,t){var r=this;t.map((function(t){var n=t.type,o=t.codecs,a=t.transcode;return r.appendSourceTag(i(e).transcode(a),n,r.buildMimeType(n,o))}))},e.prototype.appendSourceTag=function(e,t,r){var n,o=document.createElement("source"),i=null===(n=this.videoOptions)||void 0===n?void 0:n.useFetchFormat;i&&e.format(t);var a=e.toURL().split(Qe),s=a[1]?"".concat(Qe).concat(a[1]):"",u=i?"":".".concat(t);o.src="".concat(a[0]).concat(u).concat(s),o.type=r||"video/".concat(De[t]||t),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(e,t){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[e]||e);return t&&(r+="; codecs="+(Array.isArray(t)?t.join(", "):t)),r},e.prototype.setVideoAttributes=function(e,t){var r;if(void 0===e&&(e={}),"auto"===t){var n=i(this.originalVideo);e.poster=n.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else t&&(e.poster=null===(r=t.toURL)||void 0===r?void 0:r.call(t));for(var o=0,a=Object.entries(e);o<a.length;o++){var s=a[o],u=s[0],c=s[1];c&&this.videoElement.setAttribute(u,"poster"===u?c:"")}},e.prototype.update=function(e,t,r,n,o){var i=this;if(e!==this.originalVideo){for(var a=this.videoElement.getElementsByTagName("SOURCE");a[0];)a[0].parentNode.removeChild(a[0]);s(this.videoElement,e,r,this.htmlPluginState).then((function(){i.setVideoAttributes(n,o),i.handleSourceToVideo(e,t),i.videoElement.load()}))}},e}(),Ue="object"==typeof n&&n&&n.Object===Object&&n,Ne="object"==typeof self&&self&&self.Object===Object&&self;function Je(){return"undefined"!=typeof window}function We(e){var t={},r=t.rootMargin,n=void 0===r?"0px":r,o=t.threshold,i=void 0===o?.1:o;return Be.bind(null,n,i)}function Be(e,t,r,n,o,i){return void 0===e&&(e="0px"),void 0===t&&(t=.1),!!Je()&&new Promise((function(n){var i=function(e,t,r,n){try{if(!window||!("IntersectionObserver"in window))return t(),function(){};var o=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(o.unobserve(e.target),t())}))}),{rootMargin:r,threshold:n});return o.observe(e),function(){e&&o.observe(e)}}catch(i){t()}}(r,(function(){return n({lazyload:!0})}),e,t);o.cleanupCallbacks.push((function(){i(),n("canceled")}))}))}function He(e){var t={}.mode,r=void 0===t?"vectorize":t;return Ge.bind(null,r)}function Ge(e,t,r,n,o,a){Fe[e]||(e="vectorize");var s=Fe[e].actions,c=i(r);if(s.forEach((function(e){c.addAction(e)})),!Je())return r.transformation=c.transformation,!0;if(t instanceof HTMLImageElement){c.transformation.actions.forEach((function(e,t){e instanceof _&&"responsive"===e.getActionTag()&&delete c.transformation.actions[t]}));var l=u(o,{placeholder:!0});return t.src=c.toURL(l),t.onerror=function(){t.src=qe},new Promise((function(e){t.onload=function(){e()}})).then((function(){return new Promise((function(e){n.cleanupCallbacks.push((function(){t.src=qe,e("canceled")}));var o=new Image;o.src=r.toURL(l),o.onload=function(){e({placeholder:!0})},o.onerror=function(){e({placeholder:!0})}}))}))}}function Ye(e){e.cleanupCallbacks.forEach((function(e){e()}))}Ue||Ne||Function("return this")();var Xe=function(e,t){return(Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ze=function(){return Ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ze.apply(this,arguments)};function et(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}"function"==typeof SuppressedError&&SuppressedError;var tt={exports:{}},rt={},nt=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,at=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var r,n,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))ot.call(r,a)&&(o[a]=r[a]);if(nt){n=nt(r);for(var s=0;s<n.length;s++)it.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},st=at,ut="function"==typeof Symbol&&Symbol.for,ct=ut?Symbol.for("react.element"):60103,lt=ut?Symbol.for("react.portal"):60106,ft=ut?Symbol.for("react.fragment"):60107,pt=ut?Symbol.for("react.strict_mode"):60108,dt=ut?Symbol.for("react.profiler"):60114,ht=ut?Symbol.for("react.provider"):60109,yt=ut?Symbol.for("react.context"):60110,gt=ut?Symbol.for("react.forward_ref"):60112,vt=ut?Symbol.for("react.suspense"):60113,mt=ut?Symbol.for("react.memo"):60115,_t=ut?Symbol.for("react.lazy"):60116,bt="function"==typeof Symbol&&Symbol.iterator;
|
|
2
|
-
/** @license React v16.14.0
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
function wt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var St={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xt={};function jt(e,t,r){this.props=e,this.context=t,this.refs=xt,this.updater=r||St}function Ot(){}function kt(e,t,r){this.props=e,this.context=t,this.refs=xt,this.updater=r||St}jt.prototype.isReactComponent={},jt.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(wt(85));this.updater.enqueueSetState(this,e,t,"setState")},jt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Ot.prototype=jt.prototype;var $t=kt.prototype=new Ot;$t.constructor=kt,st($t,jt.prototype),$t.isPureReactComponent=!0;var Ct={current:null},At=Object.prototype.hasOwnProperty,Et={key:!0,ref:!0,__self:!0,__source:!0};function Rt(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)At.call(t,n)&&!Et.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:ct,type:e,key:i,ref:a,props:o,_owner:Ct.current}}function Tt(e){return"object"==typeof e&&null!==e&&e.$$typeof===ct}var Pt=/\/+/g,Mt=[];function Lt(e,t,r,n){if(Mt.length){var o=Mt.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function Vt(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Mt.length&&Mt.push(e)}function It(e,t,r,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ct:case lt:i=!0}}if(i)return r(n,e,""===t?"."+qt(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var s=t+qt(o=e[a],a);i+=It(o,s,r,n)}else if("function"==typeof(s=null===e||"object"!=typeof e?null:"function"==typeof(s=bt&&e[bt]||e["@@iterator"])?s:null))for(e=s.call(e),a=0;!(o=e.next()).done;)i+=It(o=o.value,s=t+qt(o,a++),r,n);else if("object"===o)throw r=""+e,Error(wt(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return i}function Ft(e,t,r){return null==e?0:It(e,"",t,r)}function qt(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function Dt(e,t){e.func.call(e.context,t,e.count++)}function Qt(e,t,r){var n,o,i=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?zt(e,i,r,(function(e){return e})):null!=e&&(Tt(e)&&(n=e,o=a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(Pt,"$&/")+"/")+r,e={$$typeof:ct,type:n.type,key:o,ref:n.ref,props:n.props,_owner:n._owner}),i.push(e))}function zt(e,t,r,n,o){var i="";null!=r&&(i=(""+r).replace(Pt,"$&/")+"/"),Ft(e,Qt,t=Lt(t,i,n,o)),Vt(t)}var Ut={current:null};function Nt(){var e=Ut.current;if(null===e)throw Error(wt(321));return e}var Jt={ReactCurrentDispatcher:Ut,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Ct,IsSomeRendererActing:{current:!1},assign:st};rt.Children={map:function(e,t,r){if(null==e)return e;var n=[];return zt(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Ft(e,Dt,t=Lt(null,null,t,r)),Vt(t)},count:function(e){return Ft(e,(function(){return null}),null)},toArray:function(e){var t=[];return zt(e,t,null,(function(e){return e})),t},only:function(e){if(!Tt(e))throw Error(wt(143));return e}},rt.Component=jt,rt.Fragment=ft,rt.Profiler=dt,rt.PureComponent=kt,rt.StrictMode=pt,rt.Suspense=vt,rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jt,rt.cloneElement=function(e,t,r){if(null==e)throw Error(wt(267,e));var n=st({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Ct.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)At.call(t,u)&&!Et.hasOwnProperty(u)&&(n[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:ct,type:e.type,key:o,ref:i,props:n,_owner:a}},rt.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:yt,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:ht,_context:e},e.Consumer=e},rt.createElement=Rt,rt.createFactory=function(e){var t=Rt.bind(null,e);return t.type=e,t},rt.createRef=function(){return{current:null}},rt.forwardRef=function(e){return{$$typeof:gt,render:e}},rt.isValidElement=Tt,rt.lazy=function(e){return{$$typeof:_t,_ctor:e,_status:-1,_result:null}},rt.memo=function(e,t){return{$$typeof:mt,type:e,compare:void 0===t?null:t}},rt.useCallback=function(e,t){return Nt().useCallback(e,t)},rt.useContext=function(e,t){return Nt().useContext(e,t)},rt.useDebugValue=function(){},rt.useEffect=function(e,t){return Nt().useEffect(e,t)},rt.useImperativeHandle=function(e,t,r){return Nt().useImperativeHandle(e,t,r)},rt.useLayoutEffect=function(e,t){return Nt().useLayoutEffect(e,t)},rt.useMemo=function(e,t){return Nt().useMemo(e,t)},rt.useReducer=function(e,t,r){return Nt().useReducer(e,t,r)},rt.useRef=function(e){return Nt().useRef(e)},rt.useState=function(e){return Nt().useState(e)},rt.version="16.14.0";var Wt={},Bt=Function.call.bind(Object.prototype.hasOwnProperty),Ht=function(){};if("production"!==process.env.NODE_ENV){var Gt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Yt={},Xt=Bt;Ht=function(e){var t="Warning: "+e;try{throw new Error(t)}catch(r){}}}function Kt(e,t,r,n,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(Xt(e,i)){var a;try{if("function"!=typeof e[i]){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[i](t,i,n,r,null,Gt)}catch(c){a=c}if(!a||a instanceof Error||Ht((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in Yt)){Yt[a.message]=!0;var u=o?o():"";Ht("Failed "+r+" type: "+a.message+(null!=u?u:""))}}}Kt.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(Yt={})};var Zt=Kt;
|
|
11
|
-
/** @license React v16.14.0
|
|
12
|
-
* react.development.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/"production"!==process.env.NODE_ENV&&function(){var e=at,t=Zt,r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,m=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119,b="function"==typeof Symbol&&Symbol.iterator;function w(e){if(null===e||"object"!=typeof e)return null;var t=b&&e[b]||e["@@iterator"];return"function"==typeof t?t:null}var S={current:null},x={current:null},j=/^(.*)[\\\/]/;function O(e){if(null==e)return null;if("number"==typeof e.tag&&R("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return"Context.Consumer";case u:return"Context.Provider";case f:return n=e,v="ForwardRef",m=(l=e.render).displayName||l.name||"",n.displayName||(""!==m?v+"("+m+")":v);case h:return O(e.type);case g:return O(e.render);case y:var t=1===(r=e)._status?r._result:null;if(t)return O(t)}var r,n,l,v,m;return null}var k={},$=null;function C(e){$=e}k.getCurrentStack=null,k.getStackAddendum=function(){var e="";if($){var t=O($.type),r=$._owner;e+=function(e,t,r){var n="";if(t){var o=t.fileName,i=o.replace(j,"");if(/^index\./.test(i)){var a=o.match(j);if(a){var s=a[1];s&&(i=s.replace(j,"")+"/"+i)}}n=" (at "+i+":"+t.lineNumber+")"}else r&&(n=" (created by "+r+")");return"\n in "+(e||"Unknown")+n}(t,$._source,r&&O(r.type))}var n=k.getCurrentStack;return n&&(e+=n()||""),e};var A={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:e};function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("warn",e,r)}function R(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("error",e,r)}function T(e,t,r){if(!(r.length>0&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in"))){var n=A.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]))}var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o);try{var i=0,a="Warning: "+t.replace(/%s/g,(function(){return r[i++]}));throw new Error(a)}catch(s){}}e(A,{ReactDebugCurrentFrame:k,ReactComponentTreeHook:{}});var P={};function M(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;P[o]||(R("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),P[o]=!0)}var L={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){M(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){M(e,"replaceState")},enqueueSetState:function(e,t,r,n){M(e,"setState")}},V={};function I(e,t,r){this.props=e,this.context=t,this.refs=V,this.updater=r||L}Object.freeze(V),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},q=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var D in F)F.hasOwnProperty(D)&&q(D,F[D]);function Q(){}function z(e,t,r){this.props=e,this.context=t,this.refs=V,this.updater=r||L}Q.prototype=I.prototype;var U=z.prototype=new Q;U.constructor=z,e(U,I.prototype),U.isPureReactComponent=!0;var N,J,W,B=Object.prototype.hasOwnProperty,H={key:!0,ref:!0,__self:!0,__source:!0};function G(e){if(B.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Y(e){if(B.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}W={};var X=function(e,t,r,o,i,a,s){var u={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function K(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in G(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var t=O(x.current.type);W[t]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',O(x.current.type),e.ref),W[t]=!0)}}(t)),Y(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)B.call(t,n)&&!H.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p=arguments.length-2;if(1===p)o.children=r;else if(p>1){for(var d=Array(p),h=0;h<p;h++)d[h]=arguments[h+2];Object.freeze&&Object.freeze(d),o.children=d}if(e&&e.defaultProps){var y=e.defaultProps;for(n in y)void 0===o[n]&&(o[n]=y[n])}if(i||a){var g="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&(c=o,l=g,(f=function(){N||(N=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}).isReactWarning=!0,Object.defineProperty(c,"key",{get:f,configurable:!0})),a&&function(e,t){var r=function(){J||(J=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,g)}return X(e,i,a,s,u,x.current,o)}function Z(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o,i,a=e({},t.props),s=t.key,u=t.ref,c=t._self,l=t._source,f=t._owner;if(null!=r)for(o in G(r)&&(u=r.ref,f=x.current),Y(r)&&(s=""+r.key),t.type&&t.type.defaultProps&&(i=t.type.defaultProps),r)B.call(r,o)&&!H.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),h=0;h<p;h++)d[h]=arguments[h+2];a.children=d}return X(t.type,s,u,c,l,f,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var te=!1,re=/\/+/g;function ne(e){return(""+e).replace(re,"$&/")}var oe,ie=[];function ae(e,t,r,n){if(ie.length){var o=ie.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function se(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ie.length<10&&ie.push(e)}function ue(e,t,r,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var s,u=!1;if(null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case o:u=!0}}if(u)return r(i,e,""===t?"."+le(e,0):t),1;var c=0,l=""===t?".":t+":";if(Array.isArray(e))for(var f=0;f<e.length;f++)c+=ue(s=e[f],l+le(s,f),r,i);else{var p=w(e);if("function"==typeof p){p===e.entries&&(te||E("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),te=!0);for(var d,h=p.call(e),y=0;!(d=h.next()).done;)c+=ue(s=d.value,l+le(s,y++),r,i)}else if("object"===a){var g;g=" If you meant to render a collection of children, use an array instead."+k.getStackAddendum();var v=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v)+")."+g)}}return c}function ce(e,t,r){return null==e?0:ue(e,"",t,r)}function le(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function fe(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function pe(e,t,r){var n,o,i=e.result,a=e.keyPrefix,s=e.func,u=e.context,c=s.call(u,t,e.count++);Array.isArray(c)?de(c,i,r,(function(e){return e})):null!=c&&(ee(c)&&(n=c,o=a+(!c.key||t&&t.key===c.key?"":ne(c.key)+"/")+r,c=X(n.type,o,n.ref,n._self,n._source,n._owner,n.props)),i.push(c))}function de(e,t,r,n,o){var i="";null!=r&&(i=ne(r)+"/");var a=ae(t,i,n,o);ce(e,pe,a),se(a)}function he(e){return"string"==typeof e||"function"==typeof e||e===i||e===l||e===s||e===a||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===m||e.$$typeof===_||e.$$typeof===g)}function ye(){var e=S.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function ge(){if(x.current){var e=O(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}oe=!1;var ve={};function me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ge();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!ve[r]){ve[r]=!0;var n="";e&&e._owner&&e._owner!==x.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),C(e),R('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',r,n),C(null)}}}function _e(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&me(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=w(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&me(i.value,t)}}function be(e){var r=e.type;if(null!=r&&"string"!=typeof r){var n,o=O(r);if("function"==typeof r)n=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==f&&r.$$typeof!==h)return;n=r.propTypes}n?(C(e),t(n,e.props,"prop",o,k.getStackAddendum),C(null)):void 0===r.PropTypes||oe||(oe=!0,R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")),"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function we(e,t,r){var o,a,s=he(e);if(!s){var u,c="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(o=t)&&void 0!==(a=o.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"")||ge(),null===e?u="null":Array.isArray(e)?u="array":void 0!==e&&e.$$typeof===n?(u="<"+(O(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,R("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,c)}var l=K.apply(this,arguments);if(null==l)return l;if(s)for(var f=2;f<arguments.length;f++)_e(arguments[f],e);return e===i?function(e){C(e);for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n);break}}null!==e.ref&&R("Invalid attribute `ref` supplied to `React.Fragment`."),C(null)}(l):be(l),l}var Se=!1;try{var xe=Object.freeze({}),je=new Map([[xe,null]]),Oe=new Set([xe]);je.set(0,0),Oe.add(0)}catch(Ce){}var ke=we,$e={map:function(e,t,r){if(null==e)return e;var n=[];return de(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;var n=ae(null,null,t,r);ce(e,fe,n),se(n)},count:function(e){return ce(e,(function(){return null}),null)},toArray:function(e){var t=[];return de(e,t,null,(function(e){return e})),t},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Wt.Children=$e,Wt.Component=I,Wt.Fragment=i,Wt.Profiler=s,Wt.PureComponent=z,Wt.StrictMode=a,Wt.Suspense=p,Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,Wt.cloneElement=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)_e(arguments[o],n.type);return be(n),n},Wt.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&R("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:c,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:u,_context:r};var n=!1,o=!1,i={$$typeof:c,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(i,{Provider:{get:function(){return o||(o=!0,R("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,R("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=i,r._currentRenderer=null,r._currentRenderer2=null,r},Wt.createElement=ke,Wt.createFactory=function(e){var t=we.bind(null,e);return t.type=e,Se||(Se=!0,E("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return E("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Wt.createRef=function(){var e={current:null};return Object.seal(e),e},Wt.forwardRef=function(e){return null!=e&&e.$$typeof===h?R("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?R("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&R("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||R("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:f,render:e}},Wt.isValidElement=ee,Wt.lazy=function(e){var t,r,n={$$typeof:y,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){R("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){R("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},Wt.memo=function(e,t){return he(e)||R("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:h,type:e,compare:void 0===t?null:t}},Wt.useCallback=function(e,t){return ye().useCallback(e,t)},Wt.useContext=function(e,t){var r=ye();if(void 0!==t&&R("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?R("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&R("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},Wt.useDebugValue=function(e,t){return ye().useDebugValue(e,t)},Wt.useEffect=function(e,t){return ye().useEffect(e,t)},Wt.useImperativeHandle=function(e,t,r){return ye().useImperativeHandle(e,t,r)},Wt.useLayoutEffect=function(e,t){return ye().useLayoutEffect(e,t)},Wt.useMemo=function(e,t){return ye().useMemo(e,t)},Wt.useReducer=function(e,t,r){return ye().useReducer(e,t,r)},Wt.useRef=function(e){return ye().useRef(e)},Wt.useState=function(e){return ye().useState(e)},Wt.version="16.14.0"}(),"production"===process.env.NODE_ENV?tt.exports=rt:tt.exports=Wt;var er=tt.exports,tr={sdkSemver:"1.13.1",techVersion:er.version,sdkCode:"J"},rr=function(e){function t(t){var r=e.call(this,t)||this;return r.imageRef=er.createRef(),r}return Ke(t,e),t.prototype.componentDidMount=function(){this.htmlLayerInstance=new c(this.imageRef.current,this.props.cldImg,this.props.plugins,tr)},t.prototype.componentDidUpdate=function(){Ye(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,tr)},t.prototype.componentWillUnmount=function(){Ye(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var e=this.props;e.cldImg,e.plugins;var t=et(e,["cldImg","plugins"]);if(Je())return er.createElement("img",Ze({suppressHydrationWarning:!0},t,{ref:this.imageRef}));var r=function(e,t,r){var n=i(t);if(e)for(var o=0;o<e.length&&e[o](null,n);o++);return n.toURL({trackedAnalytics:r})}(this.props.plugins,this.props.cldImg,tr);return er.createElement("img",Ze({},t,{src:r}))},t}(er.Component),nr=["controls","loop","muted","poster","preload","autoplay","playsinline"];!function(e){function t(t){var r=e.call(this,t)||this;return r.videoRef=tt.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}Ke(t,e),t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new ze(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){Ye(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Ye(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var e=this,t={};return nr.forEach((function(r){r in e.props&&(t[r]=e.props[r])})),t},t.prototype.attachRef=function(e){this.videoRef.current=e;var t=this.props.innerRef;t&&(t instanceof Function?t(e):t.current=e)},t.prototype.render=function(){var e=this.props;e.cldVid,e.cldPoster,e.plugins,e.sources,e.innerRef,e.useFetchFormat;var t=et(e,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return er.createElement("video",Ze({},t,{ref:this.attachRef}))}}(tt.exports.Component);const or=t.memo((({alt:t="img",height:n="",width:o="",plugins:i=[We(),He()],publicId:a})=>{const s=r.useCloudinaryImage({publicId:a});return e.jsx(rr,{alt:t,cldImg:s,height:n,plugins:i,width:o})}));exports.MemoizedImage=or,exports.placeholder=He;
|
package/dist/index-TnyKqJHo.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { jsxs as e, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as t } from "react";
|
|
3
|
-
import { useOption as o } from "react-aria";
|
|
4
|
-
import { styled as a } from "styled-components";
|
|
5
|
-
import { Icon as r } from "./components/icon/index.js";
|
|
6
|
-
const i = a.ul`
|
|
7
|
-
${({ theme: e2 }) => `
|
|
8
|
-
align-self: center;
|
|
9
|
-
background: ${e2.palette.white};
|
|
10
|
-
border: 1px solid ${e2.palette.gray[200]};
|
|
11
|
-
border-radius: ${e2.spacing[0.25]};
|
|
12
|
-
box-shadow: ${e2.shadows.md};
|
|
13
|
-
list-style: none;
|
|
14
|
-
max-height: 200px;
|
|
15
|
-
min-width: 240px;
|
|
16
|
-
overflow: hidden auto;
|
|
17
|
-
scrollbar-color: ${e2.palette.gray[600]} ${e2.palette.gray[100]};
|
|
18
|
-
scroll-padding: ${e2.spacing[0.5]};
|
|
19
|
-
width: 95%;
|
|
20
|
-
`}
|
|
21
|
-
`, s = a.li`
|
|
22
|
-
${({ theme: e2 }) => `
|
|
23
|
-
align-items: center;
|
|
24
|
-
color: ${e2.palette.gray[800]};
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
display: flex;
|
|
27
|
-
font-family: ${e2.typography.type.primary};
|
|
28
|
-
font-size: ${e2.typography.text.sm};
|
|
29
|
-
gap: ${e2.spacing[0.5]};
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
line-height: ${e2.spacing[1.25]};
|
|
32
|
-
padding: ${e2.spacing[0.25]} ${e2.spacing[1]};
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
text-overflow: ellipsis;
|
|
35
|
-
white-space: nowrap;
|
|
36
|
-
|
|
37
|
-
span {
|
|
38
|
-
color: ${e2.palette.gray[700]};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
background: ${e2.palette.gray[100]};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.selected {
|
|
46
|
-
background: ${e2.palette.gray[200]};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.disabled {
|
|
50
|
-
color: ${e2.palette.gray[400]};
|
|
51
|
-
cursor: not-allowed;
|
|
52
|
-
}
|
|
53
|
-
`}
|
|
54
|
-
`, l = ({ item: a2, state: i2 }) => {
|
|
55
|
-
const l2 = t(null), { optionProps: p, isSelected: c, isFocused: d, isDisabled: g } = o({ key: a2.value }, i2, l2), m = [c ? "selected" : "", d ? "focused" : "", g ? "disabled" : ""].join(" ");
|
|
56
|
-
return e(s, { ...p, className: m, ref: l2, children: [a2.name, c ? n(r, { icon: "check", iconSize: "xxs", iconType: "fa-light" }) : void 0] });
|
|
57
|
-
};
|
|
58
|
-
export {
|
|
59
|
-
l as O,
|
|
60
|
-
i as S
|
|
61
|
-
};
|
package/dist/index-Yr95Cb7Z.mjs
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as t } from "react";
|
|
3
|
-
import { styled as o, useTheme as i } from "styled-components";
|
|
4
|
-
import { Icon as r } from "./components/icon/index.js";
|
|
5
|
-
import "./components/typography/heading/index.js";
|
|
6
|
-
import "./components/typography/span/index.js";
|
|
7
|
-
import { Text as a } from "./components/typography/text/index.js";
|
|
8
|
-
const p = o.div`
|
|
9
|
-
${({ theme: n2, $itemsLength: e2 }) => `
|
|
10
|
-
display: flex;
|
|
11
|
-
background-color: ${n2.palette.white};
|
|
12
|
-
border: 1px solid ${n2.palette.gray[200]};
|
|
13
|
-
border-radius: ${n2.spacing[0.25]};
|
|
14
|
-
box-shadow: ${n2.shadows.lg};
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
min-width: 507px;
|
|
17
|
-
max-width: ${e2 <= 4 ? "507px" : "980px"};
|
|
18
|
-
padding: ${n2.spacing[1.5]};
|
|
19
|
-
|
|
20
|
-
@media screen and (max-width: 980px) and (min-width: 742px) {
|
|
21
|
-
width: 742px;
|
|
22
|
-
}
|
|
23
|
-
@media screen and (max-width: 742px) {
|
|
24
|
-
width: 507px;
|
|
25
|
-
}
|
|
26
|
-
`}
|
|
27
|
-
`, d = o.div`
|
|
28
|
-
${({ theme: n2, $isSelected: e2 }) => `
|
|
29
|
-
align-items: center;
|
|
30
|
-
background-color: ${e2 ? n2.palette.gray[100] : n2.palette.white};
|
|
31
|
-
border: 1px solid ${n2.palette.gray[200]};
|
|
32
|
-
border-radius: ${n2.spacing[0.25]};
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: ${e2 ? "row-reverse" : "row"};
|
|
36
|
-
min-height: 50px;
|
|
37
|
-
padding: ${n2.spacing[1]} ${n2.spacing[0.625]};
|
|
38
|
-
width: 215px;
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
background-color: ${n2.palette.gray[100]};
|
|
42
|
-
}
|
|
43
|
-
`}
|
|
44
|
-
`, s = ({ isSelected: o2 = false, label: p2, onSelect: s2 }) => {
|
|
45
|
-
const c = i(), l = t(() => {
|
|
46
|
-
s2 && s2(p2);
|
|
47
|
-
}, [s2, p2]);
|
|
48
|
-
return n(d, { $isSelected: o2, onClick: l, children: [o2 ? e(r, { icon: "check", iconColor: c.palette.gray[800], iconSize: "md" }) : null, e(a, { color: c.palette.gray[800], fontWeight: "bold", size: "sm", children: p2 })] });
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
d as O,
|
|
52
|
-
p as S,
|
|
53
|
-
s as a
|
|
54
|
-
};
|
package/dist/index-h9-U5wxq.mjs
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { styled as a } from "styled-components";
|
|
3
|
-
import { theme as i } from "./components/colors/index.js";
|
|
4
|
-
import { Icon as t } from "./components/icon/index.js";
|
|
5
|
-
import "./components/typography/heading/index.js";
|
|
6
|
-
import "./components/typography/span/index.js";
|
|
7
|
-
import { Text as r } from "./components/typography/text/index.js";
|
|
8
|
-
const s = a.a`
|
|
9
|
-
${({ theme: n2 }) => `
|
|
10
|
-
align-items: center;
|
|
11
|
-
display: flex;
|
|
12
|
-
background: ${n2.palette.white};
|
|
13
|
-
border-radius: ${n2.spacing[0.5]};
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
gap: ${n2.spacing[1]};
|
|
16
|
-
padding:
|
|
17
|
-
${n2.spacing[0.5]}
|
|
18
|
-
${n2.spacing[1]}
|
|
19
|
-
${n2.spacing[0.5]}
|
|
20
|
-
${n2.spacing[0.5]};
|
|
21
|
-
width: 1143px;
|
|
22
|
-
|
|
23
|
-
&:hover {
|
|
24
|
-
background: ${n2.palette.gray[100]};
|
|
25
|
-
|
|
26
|
-
> div.icon-wrap {
|
|
27
|
-
background: ${n2.palette.gradients["01"]};
|
|
28
|
-
|
|
29
|
-
path {
|
|
30
|
-
fill: ${n2.palette.white};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@media screen
|
|
36
|
-
and (min-width: ${n2.breakpoints.sm})
|
|
37
|
-
and (max-width: ${n2.breakpoints.md})
|
|
38
|
-
{
|
|
39
|
-
width: 905px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media screen
|
|
43
|
-
and (min-width: 40em)
|
|
44
|
-
and (max-width: ${n2.breakpoints.sm})
|
|
45
|
-
{
|
|
46
|
-
width: 475px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media screen and (max-width: 40em) {
|
|
50
|
-
width: 270px;
|
|
51
|
-
}
|
|
52
|
-
`}
|
|
53
|
-
`, o = a.div.attrs({ className: "icon-wrap" })`
|
|
54
|
-
${({ theme: n2 }) => `
|
|
55
|
-
align-items: center;
|
|
56
|
-
background: ${n2.palette.primary[25]};
|
|
57
|
-
border-radius: ${n2.spacing[0.25]};
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
min-width: ${n2.spacing[2.5]};
|
|
61
|
-
height: ${n2.spacing[2.5]};
|
|
62
|
-
padding: ${n2.spacing[0.5]};
|
|
63
|
-
|
|
64
|
-
span {
|
|
65
|
-
font-size: 20px;
|
|
66
|
-
}
|
|
67
|
-
`}
|
|
68
|
-
`, p = a.div`
|
|
69
|
-
${({ theme: n2 }) => `
|
|
70
|
-
align-items: flex-start;
|
|
71
|
-
display: flex;
|
|
72
|
-
flex-direction: column;
|
|
73
|
-
gap: ${n2.spacing[1.5]};
|
|
74
|
-
width: 1193px;
|
|
75
|
-
|
|
76
|
-
> :is(form, .dropdown) {
|
|
77
|
-
border-radius: ${n2.spacing[0.5]};
|
|
78
|
-
border: 1px solid ${n2.palette.gray[200]};
|
|
79
|
-
background-color: ${n2.palette.white};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media screen
|
|
83
|
-
and (min-width: ${n2.breakpoints.sm})
|
|
84
|
-
and (max-width: ${n2.breakpoints.md})
|
|
85
|
-
{
|
|
86
|
-
width: 954px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@media screen
|
|
90
|
-
and (min-width: 40em)
|
|
91
|
-
and (max-width: ${n2.breakpoints.sm})
|
|
92
|
-
{
|
|
93
|
-
width: 526px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@media screen and (max-width: 40em) {
|
|
97
|
-
width: 320px;
|
|
98
|
-
}
|
|
99
|
-
`}
|
|
100
|
-
`, d = a.form`
|
|
101
|
-
${({ theme: n2 }) => `
|
|
102
|
-
align-items: center;
|
|
103
|
-
display: flex;
|
|
104
|
-
gap: ${n2.spacing[0.5]};
|
|
105
|
-
justify-content: space-between;
|
|
106
|
-
padding: ${n2.spacing[1]} ${n2.spacing[1.5]};
|
|
107
|
-
width: 100%;
|
|
108
|
-
`}
|
|
109
|
-
`, c = a.input`
|
|
110
|
-
${({ theme: n2 }) => `
|
|
111
|
-
flex: 1 0 0;
|
|
112
|
-
border: none;
|
|
113
|
-
color: ${n2.palette.gray[600]};
|
|
114
|
-
font-family: ${n2.typography.type.primary};
|
|
115
|
-
font-size: ${n2.typography.text.md};
|
|
116
|
-
font-weight: ${n2.typography.weight.regular};
|
|
117
|
-
line-height: ${n2.spacing[1.5]};
|
|
118
|
-
outline: none;
|
|
119
|
-
|
|
120
|
-
&::placeholder {
|
|
121
|
-
color: ${n2.palette.gray[400]};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&::-webkit-search-decoration,
|
|
125
|
-
&::-webkit-search-cancel-button,
|
|
126
|
-
&::-webkit-search-results-button,
|
|
127
|
-
&::-webkit-search-results-decoration {
|
|
128
|
-
-webkit-appearance:none;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@media screen and (max-width: ${n2.breakpoints.mobile}) {
|
|
132
|
-
font-size: ${n2.typography.text.sm};
|
|
133
|
-
}
|
|
134
|
-
`}
|
|
135
|
-
`, l = a.button`
|
|
136
|
-
${({ theme: n2 }) => `
|
|
137
|
-
align-items: center;
|
|
138
|
-
border-radius: ${n2.spacing[0.5]};
|
|
139
|
-
display: flex;
|
|
140
|
-
width: ${n2.spacing[2.5]};
|
|
141
|
-
height: ${n2.spacing[2.5]};
|
|
142
|
-
padding: ${n2.spacing[0.625]} ${n2.spacing[1]};
|
|
143
|
-
justify-content: center;
|
|
144
|
-
gap: ${n2.spacing[0.5]};
|
|
145
|
-
flex-shrink: 0;
|
|
146
|
-
|
|
147
|
-
span {
|
|
148
|
-
color: ${n2.palette.gray[400]};
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:hover {
|
|
152
|
-
background-color: ${n2.palette.gray[100]};
|
|
153
|
-
}
|
|
154
|
-
`}
|
|
155
|
-
`, g = a.div.attrs({ className: "dropdown" })`
|
|
156
|
-
${({ theme: n2, $empty: e2 = false, $showHits: a2 = false }) => `
|
|
157
|
-
align-items: flex-start;
|
|
158
|
-
align-self: stretch;
|
|
159
|
-
background-repeat: no-repeat;
|
|
160
|
-
background-size: 100% 100%;
|
|
161
|
-
display: flex;
|
|
162
|
-
flex-direction: column;
|
|
163
|
-
gap: ${n2.spacing[0.5]};
|
|
164
|
-
max-height: ${a2 ? "270px" : "500px"};
|
|
165
|
-
overflow: hidden auto;
|
|
166
|
-
padding: ${n2.spacing[1.5]};
|
|
167
|
-
scrollbar-color: ${n2.palette.gray[600]} ${n2.palette.gray[100]};
|
|
168
|
-
scroll-padding: ${n2.spacing[0.5]};
|
|
169
|
-
scrollbar-width: thin;
|
|
170
|
-
|
|
171
|
-
@media screen and (max-width: ${n2.breakpoints.sm}) and (${!e2}) {
|
|
172
|
-
max-height: 410px;
|
|
173
|
-
}
|
|
174
|
-
${e2 && `
|
|
175
|
-
@media screen and (min-width: ${n2.breakpoints.mobile}) {
|
|
176
|
-
border: none !important;
|
|
177
|
-
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);
|
|
178
|
-
}
|
|
179
|
-
@media screen and (max-width: ${n2.breakpoints.mobile}) {
|
|
180
|
-
border: none !important;
|
|
181
|
-
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);
|
|
182
|
-
}
|
|
183
|
-
`}
|
|
184
|
-
|
|
185
|
-
&::-webkit-scrollbar {
|
|
186
|
-
height: ${n2.spacing[0.5]};
|
|
187
|
-
width: ${n2.spacing[0.5]};
|
|
188
|
-
}
|
|
189
|
-
&::-webkit-scrollbar-track {
|
|
190
|
-
background: ${n2.palette.gray[100]};
|
|
191
|
-
}
|
|
192
|
-
&::-webkit-scrollbar-thumb {
|
|
193
|
-
background-color: ${n2.palette.gray[600]};
|
|
194
|
-
border-radius: ${n2.spacing[5]};
|
|
195
|
-
height: ${n2.spacing[0.5]};
|
|
196
|
-
}
|
|
197
|
-
`}
|
|
198
|
-
`, m = ({ hit: a2, icon: p2 = "infinity", showIcon: d2 = false }) => {
|
|
199
|
-
const { slug: c2, title: l2 } = a2, g2 = String(c2).startsWith("/pages/") ? String(c2).replace("/pages/", "/") : String(c2);
|
|
200
|
-
return n(s, { href: g2, rel: "nofollow noopener noreferrer", children: [d2 && e(o, { children: e(t, { icon: p2, iconClass: "fill-gradient-01", iconSize: "sm", iconType: "fa-light" }) }), e(r, { color: i.palette.gray[800], lineSpacing: 1.5, size: "md", sizeSm: "sm", whiteSpace: "wrap", children: String(l2) })] });
|
|
201
|
-
};
|
|
202
|
-
export {
|
|
203
|
-
m as I,
|
|
204
|
-
p as S,
|
|
205
|
-
d as a,
|
|
206
|
-
c as b,
|
|
207
|
-
l as c,
|
|
208
|
-
g as d
|
|
209
|
-
};
|
package/dist/index-qCiUU4sZ.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),e=require("styled-components");require("./components/typography/heading/index.js"),require("./components/typography/span/index.js");const t=require("./components/typography/text/index.js"),r=e.styled.button`
|
|
2
|
-
${({theme:n})=>`\n align-items: center;\n border-left: 3px solid transparent;\n display: flex;\n gap: ${n.spacing[.625]};\n height: 42px;\n min-width: 50px;\n padding: ${n.spacing[.625]} ${n.spacing[1]};\n\n &.dark {\n background-color: ${n.palette.gray[800]};\n color: ${n.palette.gray[25]};\n\n &.disabled {\n border-color: ${n.palette.gray[500]};\n color: ${n.palette.gray[500]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${n.palette.gray[700]};\n border-color: ${n.palette.primary[400]};\n }\n }\n\n &.light {\n background-color: ${n.palette.gray[50]};\n color: ${n.palette.gray[800]};\n\n &.disabled {\n background-color: ${n.palette.white};\n border-color: ${n.palette.gray[300]};\n color: ${n.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${n.palette.gray[100]};\n border-color: ${n.palette.primary[400]};\n }\n }\n `}
|
|
3
|
-
`,o=e.styled.div`
|
|
4
|
-
${({theme:n})=>`\n align-items: center;\n background-color: transparent;\n border-bottom: 2px solid transparent;\n display: flex;\n font-family: ${n.typography.type.primary};\n font-size: ${n.typography.text.sm};\n font-weight: ${n.typography.weight.regular};\n gap: ${n.spacing[.5]};\n height: 30px;\n justify-content: center;\n padding: ${n.spacing[.25]};\n margin-bottom: ${n.spacing[.25]};\n min-width: 50px;\n width: max-content;\n z-index: 11;\n\n &:hover {\n border-color: ${n.palette.primary[400]};\n }\n\n &.dark {\n color: ${n.palette.gray[25]};\n }\n\n &.light {\n color: ${n.palette.gray[800]};\n }\n `}
|
|
5
|
-
`,a=e.styled.div`
|
|
6
|
-
${({theme:n})=>`\n background-color: ${n.palette.white};\n border-radius: 0 0 ${n.spacing[.25]} ${n.spacing[.25]};\n box-shadow: ${n.shadows.lg};\n display: none;\n flex-direction: column;\n position: absolute;\n top: 100%;\n z-index: 11;\n\n > button:last-child {\n border-radius: 0 0 ${n.spacing[.25]} ${n.spacing[.25]};\n }\n `}
|
|
7
|
-
`,i=e.styled.div`
|
|
8
|
-
${({theme:n})=>`\n align-items: flex-start;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n gap: ${n.spacing[.25]};\n height: max-content;\n position: relative;\n width: max-content;\n z-index: 10;\n\n &:hover {\n > div:first-child {\n border-color: ${n.palette.primary[400]};\n }\n\n > div:last-child {\n display: flex;\n }\n }\n `}
|
|
9
|
-
`;exports.ItemList=({disabled:e=!1,mode:o,onClick:a,text:i})=>n.jsx(r,{className:`${e&&"disabled"} ${o}`,disabled:e,onClick:a,children:n.jsx(t.Text,{color:"inherit",size:"sm",sizeSm:"xs",children:i})}),exports.StyledDropdown=a,exports.StyledLangSelector=i,exports.StyledSelector=o;
|