@adyen/adyen-platform-experience-web 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -13
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-DoWVn5wu.cjs → angle-right-C1JIrQTg.cjs} +2 -2
- package/dist/{angle-right-DoWVn5wu.cjs.map → angle-right-C1JIrQTg.cjs.map} +1 -1
- package/dist/{checkmark-CJGA8ZP3.cjs → checkmark-B8DhX3p1.cjs} +2 -2
- package/dist/{checkmark-CJGA8ZP3.cjs.map → checkmark-B8DhX3p1.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-CAB5gukT.cjs → checkmark-circle-fill-CMpIlMCC.cjs} +2 -2
- package/dist/{checkmark-circle-fill-CAB5gukT.cjs.map → checkmark-circle-fill-CMpIlMCC.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-CiZmFh_I.cjs → checkmark-square-fill-Cy8Hzt9P.cjs} +2 -2
- package/dist/{checkmark-square-fill-CiZmFh_I.cjs.map → checkmark-square-fill-Cy8Hzt9P.cjs.map} +1 -1
- package/dist/{chevron-down-Dta7QXOA.cjs → chevron-down-CB77LxQY.cjs} +2 -2
- package/dist/{chevron-down-Dta7QXOA.cjs.map → chevron-down-CB77LxQY.cjs.map} +1 -1
- package/dist/{chevron-left-B5Al1d4a.cjs → chevron-left-DMAmIvLF.cjs} +2 -2
- package/dist/{chevron-left-B5Al1d4a.cjs.map → chevron-left-DMAmIvLF.cjs.map} +1 -1
- package/dist/{chevron-right-D4tgeCRD.cjs → chevron-right-BxLJu7Zf.cjs} +2 -2
- package/dist/{chevron-right-D4tgeCRD.cjs.map → chevron-right-BxLJu7Zf.cjs.map} +1 -1
- package/dist/{chevron-up-BnS-kgE5.cjs → chevron-up-CT79XJdh.cjs} +2 -2
- package/dist/{chevron-up-BnS-kgE5.cjs.map → chevron-up-CT79XJdh.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-Cw-eOhqB.cjs → copy-7UpFtMvt.cjs} +2 -2
- package/dist/{copy-Cw-eOhqB.cjs.map → copy-7UpFtMvt.cjs.map} +1 -1
- package/dist/{cross-L2Paef-M.cjs → cross-DtVirgrN.cjs} +2 -2
- package/dist/{cross-L2Paef-M.cjs.map → cross-DtVirgrN.cjs.map} +1 -1
- package/dist/{cross-circle-fill-DJTPa1qC.cjs → cross-circle-fill-C47yImD2.cjs} +2 -2
- package/dist/{cross-circle-fill-DJTPa1qC.cjs.map → cross-circle-fill-C47yImD2.cjs.map} +1 -1
- package/dist/{download-m1Wy-73V.cjs → download-A1m1wB_K.cjs} +2 -2
- package/dist/{download-m1Wy-73V.cjs.map → download-A1m1wB_K.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +28 -28
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +54 -43
- package/dist/es/components/internal/Icon/Icon.js +2 -0
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +55 -0
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/constants.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/utils.js +12 -12
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/dist/preact.module.js +5 -5
- package/dist/es/hooks/useTabbedControl.js +66 -0
- package/dist/es/images/icons/trash-can.svg.js +9 -0
- package/dist/es/images/icons/upload.svg.js +9 -0
- package/dist/es/translations/en-US.json.js +47 -41
- package/dist/{external-link-DnmxrmjV.cjs → external-link-Ct-WlQoY.cjs} +2 -2
- package/dist/{external-link-DnmxrmjV.cjs.map → external-link-Ct-WlQoY.cjs.map} +1 -1
- package/dist/{filter-CyAjNvvu.cjs → filter-DwSaMAG7.cjs} +2 -2
- package/dist/{filter-CyAjNvvu.cjs.map → filter-DwSaMAG7.cjs.map} +1 -1
- package/dist/index-CpBGZ2AH.cjs +12 -0
- package/dist/index-CpBGZ2AH.cjs.map +1 -0
- package/dist/{info-filled-DNy-1YG1.cjs → info-filled-bhD2VGA2.cjs} +2 -2
- package/dist/{info-filled-DNy-1YG1.cjs.map → info-filled-bhD2VGA2.cjs.map} +1 -1
- package/dist/{minus-circle-outline-BRBYMsfi.cjs → minus-circle-outline-pNXlRjce.cjs} +2 -2
- package/dist/{minus-circle-outline-BRBYMsfi.cjs.map → minus-circle-outline-pNXlRjce.cjs.map} +1 -1
- package/dist/{plus-circle-outline-C077N1t1.cjs → plus-circle-outline-B3Ttq6A2.cjs} +2 -2
- package/dist/{plus-circle-outline-C077N1t1.cjs.map → plus-circle-outline-B3Ttq6A2.cjs.map} +1 -1
- package/dist/{square-B8n_Cd4N.cjs → square-C3hb1Bxz.cjs} +2 -2
- package/dist/{square-B8n_Cd4N.cjs.map → square-C3hb1Bxz.cjs.map} +1 -1
- package/dist/trash-can-D2GRVBnJ.cjs +2 -0
- package/dist/trash-can-D2GRVBnJ.cjs.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/utils.d.ts +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +2 -0
- package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -1
- package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts +5 -0
- package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts +14 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/utils/getLabel.d.ts +1 -1
- package/dist/types/core/Localization/datetime/restamper/constants.d.ts.map +1 -1
- package/dist/types/hooks/useTabbedControl.d.ts +19 -0
- package/dist/types/hooks/useTabbedControl.d.ts.map +1 -0
- package/dist/types/translations/index.d.ts +6 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/utils/file/read.d.ts +5 -0
- package/dist/types/utils/file/read.d.ts.map +1 -0
- package/dist/types/utils/file/size.d.ts +45 -0
- package/dist/types/utils/file/size.d.ts.map +1 -0
- package/dist/types/utils/file/upload.d.ts +17 -0
- package/dist/types/utils/file/upload.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/upload-CeUcEWmW.cjs +2 -0
- package/dist/upload-CeUcEWmW.cjs.map +1 -0
- package/dist/{warning-6iewnkkK.cjs → warning-C2NpcmL8.cjs} +2 -2
- package/dist/{warning-6iewnkkK.cjs.map → warning-C2NpcmL8.cjs.map} +1 -1
- package/dist/{warning-filled-DbbyNMim.cjs → warning-filled-Bo82QPPc.cjs} +2 -2
- package/dist/{warning-filled-DbbyNMim.cjs.map → warning-filled-Bo82QPPc.cjs.map} +1 -1
- package/package.json +5 -5
- package/dist/es/components/internal/Tabs/Tabs.js +0 -69
- package/dist/index-LzoB__Hj.cjs +0 -12
- package/dist/index-LzoB__Hj.cjs.map +0 -1
- package/dist/types/components/internal/Tabs/Tabs.d.ts +0 -5
- package/dist/types/components/internal/Tabs/Tabs.d.ts.map +0 -1
- package/dist/types/components/internal/Tabs/types.d.ts +0 -15
- package/dist/types/components/internal/Tabs/types.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-
|
|
2
|
-
//# sourceMappingURL=copy-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CpBGZ2AH.cjs"),t=e=>c.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...e,children:c.u("path",{fill:"currentColor",d:"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75"})});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=copy-7UpFtMvt.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-
|
|
1
|
+
{"version":3,"file":"copy-7UpFtMvt.cjs","sources":["../src/images/icons/copy.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCopy = (props) => /* @__PURE__ */ jsx(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M3.5 1.25c-1.24 0-2.25 1-2.25 2.25v5c0 1.24 1 2.25 2.25 2.25h1.75v1.75c0 1.24 1 2.25 2.25 2.25h5c1.24 0 2.25-1 2.25-2.25v-5c0-1.24-1-2.25-2.25-2.25h-1.75V3.5c0-1.24-1-2.25-2.25-2.25zm5.75 4H7.5c-1.24 0-2.25 1-2.25 2.25v1.75H3.5a.75.75 0 0 1-.75-.75v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75zm-2.5 7.25v-5c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75h-5a.75.75 0 0 1-.75-.75\" }) });\nexport default SvgCopy;\n"],"names":["SvgCopy","props","jsx"],"mappings":"wHACMA,EAAWC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,2YAA2Y,CAAE,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=cross-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),t=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:e.u("path",{fill:"currentColor",d:"m8 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z"})});exports.default=t;
|
|
2
|
+
//# sourceMappingURL=cross-DtVirgrN.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-
|
|
1
|
+
{"version":3,"file":"cross-DtVirgrN.cjs","sources":["../src/images/icons/cross.svg?component"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nconst SvgCross = (props) => /* @__PURE__ */ jsx(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"m8 9.06 4 4L13.06 12l-4-4 4-4L12 2.94l-4 4-4-4L2.94 4l4 4-4 4L4 13.06z\" }) });\nexport default SvgCross;\n"],"names":["SvgCross","props","jsx"],"mappings":"wHACMA,EAAYC,GAA0BC,EAAAA,EAAI,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAA0BC,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,wEAAwE,CAAE,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-
|
|
2
|
-
//# sourceMappingURL=cross-circle-fill-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CpBGZ2AH.cjs"),e=r=>l.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...r,children:[l.u("g",{clipPath:"url(#cross-circle-fill_svg__a)",children:l.u("path",{fill:"currentColor",d:"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z"})}),l.u("defs",{children:l.u("clipPath",{id:"cross-circle-fill_svg__a",children:l.u("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]});exports.default=e;
|
|
2
|
+
//# sourceMappingURL=cross-circle-fill-C47yImD2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-circle-fill-
|
|
1
|
+
{"version":3,"file":"cross-circle-fill-C47yImD2.cjs","sources":["../src/images/icons/cross-circle-fill.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgCrossCircleFill = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"g\", { clipPath: \"url(#cross-circle-fill_svg__a)\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M.25 8a7.75 7.75 0 1 1 15.5 0A7.75 7.75 0 0 1 .25 8M6 4.94 4.94 6l2 2-2 2L6 11.06l2-2 2 2L11.06 10l-2-2 2-2L10 4.94l-2 2z\" }) }),\n /* @__PURE__ */ jsx(\"defs\", { children: /* @__PURE__ */ jsx(\"clipPath\", { id: \"cross-circle-fill_svg__a\", children: /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M0 0h16v16H0z\" }) }) })\n] });\nexport default SvgCrossCircleFill;\n"],"names":["SvgCrossCircleFill","props","jsxs","jsx"],"mappings":"wHACMA,EAAsBC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CAC/IE,EAAAA,EAAI,IAAK,CAAE,SAAU,iCAAkC,SAA0BA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,2HAA2H,CAAE,CAAC,CAAE,EACxPA,EAAG,EAAC,OAAQ,CAAE,SAA0BA,EAAG,EAAC,WAAY,CAAE,GAAI,2BAA4B,SAA0BA,EAAAA,EAAI,OAAQ,CAAE,KAAM,eAAgB,EAAG,eAAe,CAAE,CAAC,CAAE,CAAG,CAAA,CACpM,CAAG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
2
|
-
//# sourceMappingURL=download-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CpBGZ2AH.cjs"),o=l=>e.u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",...l,children:[e.u("path",{fill:"currentColor",d:"M8.75 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z"}),e.u("path",{fill:"currentColor",d:"M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75"})]});exports.default=o;
|
|
2
|
+
//# sourceMappingURL=download-A1m1wB_K.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-
|
|
1
|
+
{"version":3,"file":"download-A1m1wB_K.cjs","sources":["../src/images/icons/download.svg?component"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst SvgDownload = (props) => /* @__PURE__ */ jsxs(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", fill: \"none\", viewBox: \"0 0 16 16\", ...props, children: [\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M8.75 1.25v7.94L11 6.94 12.06 8 8 12.06 3.94 8 5 6.94l2.25 2.25V1.25z\" }),\n /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: \"M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75\" })\n] });\nexport default SvgDownload;\n"],"names":["SvgDownload","props","jsxs","jsx"],"mappings":"wHACMA,EAAeC,GAA0BC,EAAI,EAAC,MAAO,CAAE,MAAO,6BAA8B,KAAM,OAAQ,QAAS,YAAa,GAAGD,EAAO,SAAU,CACxIE,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,wEAAyE,EAChHA,EAAG,EAAC,OAAQ,CAAE,KAAM,eAAgB,EAAG,8IAAgJ,CAAA,CACzM,CAAG,CAAA"}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { BaseList as
|
|
3
|
-
import { GrantItem as
|
|
4
|
-
import { getGrantConfig as
|
|
5
|
-
import { GRANT_ADJUSTMENT_DETAILS as
|
|
6
|
-
import { GrantRepaymentDetails as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { CapitalHeader as
|
|
13
|
-
const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(
|
|
14
|
-
const [v, h] =
|
|
15
|
-
const
|
|
2
|
+
import { BaseList as C } from "../../../../internal/BaseList/BaseList.js";
|
|
3
|
+
import { GrantItem as _ } from "../GrantItem/GrantItem.js";
|
|
4
|
+
import { getGrantConfig as b } from "../GrantItem/utils.js";
|
|
5
|
+
import { GRANT_ADJUSTMENT_DETAILS as R } from "../GrantAdjustmentDetails/constants.js";
|
|
6
|
+
import { GrantRepaymentDetails as T } from "../GrantRepaymentDetails/GrantRepaymentDetails.js";
|
|
7
|
+
import A from "../../../../internal/SegmentedControl/SegmentedControl.js";
|
|
8
|
+
import B from "../../../../../core/Context/useCoreContext.js";
|
|
9
|
+
import { useState as G, useMemo as l, useCallback as D } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
10
|
+
import E from "../../../../internal/Button/Button.js";
|
|
11
|
+
import { ButtonVariant as U } from "../../../../internal/Button/types.js";
|
|
12
|
+
import { CapitalHeader as k } from "../../../../internal/CapitalHeader/CapitalHeader.js";
|
|
13
|
+
const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(C, { classNames: "adyen-pe-grant-list__items", children: t.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(_, { grant: n, showDetails: c.bind(null, n) }) }, n.id)) }), Y = ({ grantList: t, hideTitle: c, newOfferAvailable: n, onNewOfferRequest: g }) => {
|
|
14
|
+
const [v, h] = G(), [a, y] = G(), { i18n: N } = B(), [i, m] = l(() => {
|
|
15
|
+
const s = [], r = [];
|
|
16
16
|
return t == null || t.forEach((o) => {
|
|
17
|
-
o.status === "Active" || o.status === "Pending" ?
|
|
18
|
-
}), [
|
|
19
|
-
}, [t]), f = l(() => t.length > 1 && i.length && m.length ? "
|
|
20
|
-
h(r), y(
|
|
17
|
+
o.status === "Active" || o.status === "Pending" ? s.push(o) : r.push(o);
|
|
18
|
+
}), [s, r];
|
|
19
|
+
}, [t]), f = l(() => t.length > 1 && i.length && m.length ? "SegmentedGrants" : "UnifiedGrants", [i.length, t.length, m.length]), S = l(() => n && !i.some((s) => s.status === "Pending"), [i, n]), d = l(() => a && b(a), [a]), w = D(() => h(void 0), []), p = D((s, r) => {
|
|
20
|
+
h(r), y(s);
|
|
21
21
|
}, []);
|
|
22
|
-
if (
|
|
22
|
+
if (a)
|
|
23
23
|
switch (v) {
|
|
24
|
-
case
|
|
24
|
+
case R.unscheduledRepayment: {
|
|
25
25
|
if (d != null && d.hasUnscheduledRepaymentDetails)
|
|
26
|
-
return /* @__PURE__ */ e(
|
|
26
|
+
return /* @__PURE__ */ e(T, { grant: a, onDetailsClose: w });
|
|
27
27
|
break;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
return /* @__PURE__ */ e("div", { className: "adyen-pe-grant-list", children: [
|
|
31
31
|
/* @__PURE__ */ e("div", { className: "adyen-pe-grant-list__header-container", children: [
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
|
|
32
|
+
/* @__PURE__ */ e(k, { hideTitle: c, titleKey: "capital.businessFinancing" }),
|
|
33
|
+
S ? /* @__PURE__ */ e(E, { onClick: g, className: "adyen-pe-grant-list__offer-button", variant: U.SECONDARY, children: N.get("capital.seeNewOffer") }) : null
|
|
34
34
|
] }),
|
|
35
|
-
f === "
|
|
36
|
-
f === "
|
|
37
|
-
|
|
35
|
+
f === "UnifiedGrants" && /* @__PURE__ */ e(u, { grants: t, showDetails: p }),
|
|
36
|
+
f === "SegmentedGrants" && /* @__PURE__ */ e(
|
|
37
|
+
A,
|
|
38
38
|
{
|
|
39
|
-
|
|
39
|
+
items: [
|
|
40
40
|
{
|
|
41
41
|
label: "capital.inProgress",
|
|
42
42
|
content: /* @__PURE__ */ e(u, { grants: i, showDetails: p }),
|
|
@@ -48,7 +48,7 @@ const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(w, { classNames:
|
|
|
48
48
|
id: "inactive"
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
|
-
|
|
51
|
+
defaultItem: "active"
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
] });
|
|
@@ -1,78 +1,89 @@
|
|
|
1
1
|
import { jsx as r } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import n from "classnames";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useClickOutside as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import { useState as x, useMemo as F, useCallback as I, useRef as i, useLayoutEffect as V, useEffect as b } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { useClickOutside as Y } from "../../../hooks/element/useClickOutside.js";
|
|
5
|
+
import w from "../../../core/Context/useCoreContext.js";
|
|
6
|
+
import z from "../SVGIcons/ChevronUp.js";
|
|
7
|
+
import U from "../SVGIcons/ChevronDown.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { BASE_CLASS as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
const { i18n:
|
|
9
|
+
import { CARD_HEIGHT_PROPERTY as y, BASE_CLASS as j, CONTAINER_CLASS as p, CONTAINER_BUTTON_CLASS as g, CONTAINER_FILLED_CLASS as C, CONTAINER_OVERLAY_ID as N, CONTENT_CLASS as A, CONTENT_EXPANDABLE_CLASS as D, CHEVRON_CLASS as k, CONTAINER_OVERLAY_CLASS as q, CONTAINER_HIDDEN_CLASS as G, CONTAINER_IN_FLOW_CLASS as M } from "./constants.js";
|
|
10
|
+
import { Fragment as X } from "../../../external/preact/dist/preact.module.js";
|
|
11
|
+
import B from "../BaseButton/BaseButton.js";
|
|
12
|
+
const ne = ({ renderHeader: c, children: O, filled: d, fullWidth: E, inFlow: S, ...l }) => {
|
|
13
|
+
const { i18n: _ } = w(), [e, h] = x(!1), [R, v] = x(0), a = F(() => S === !0, [S]), o = I(() => h((s) => !s), [h]), u = i(null), L = i(null), f = i(!1), T = i(e), m = Y(
|
|
14
14
|
void 0,
|
|
15
|
-
|
|
16
|
-
e && (o(),
|
|
15
|
+
I(() => {
|
|
16
|
+
e && (o(), f.current = !0);
|
|
17
17
|
}, [e, o])
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
);
|
|
19
|
+
return V(() => {
|
|
20
|
+
const s = L.current;
|
|
21
|
+
s && (a ? s.style.setProperty(y, `${R}px`) : e || s.style.removeProperty(y));
|
|
22
|
+
}, [R, a, e]), b(() => {
|
|
23
|
+
if (!a) return void v(0);
|
|
24
|
+
const s = u.current;
|
|
25
|
+
if (!s) return;
|
|
26
|
+
const t = new ResizeObserver((H) => {
|
|
27
|
+
for (const P of H)
|
|
28
|
+
P.target === s && v(s.offsetHeight || 0);
|
|
29
|
+
});
|
|
30
|
+
return t.observe(s), () => {
|
|
31
|
+
t.unobserve(s), t.disconnect();
|
|
32
|
+
};
|
|
33
|
+
}, [a]), b(() => {
|
|
23
34
|
var s, t;
|
|
24
|
-
e ? (s =
|
|
25
|
-
}, [e,
|
|
35
|
+
e ? (s = m.current) == null || s.focus() : (T.current !== e && !f.current && ((t = u.current) == null || t.focus()), f.current = !1), T.current = e;
|
|
36
|
+
}, [e, m]), /* @__PURE__ */ r("div", { ref: L, className: j, children: O ? /* @__PURE__ */ r(X, { children: [
|
|
26
37
|
/* @__PURE__ */ r(
|
|
27
|
-
|
|
38
|
+
B,
|
|
28
39
|
{
|
|
29
|
-
className: n(
|
|
40
|
+
className: n(p, g, { [C]: d }),
|
|
30
41
|
disabled: e,
|
|
31
|
-
fullWidth:
|
|
32
|
-
"aria-controls":
|
|
42
|
+
fullWidth: E,
|
|
43
|
+
"aria-controls": N,
|
|
33
44
|
"aria-expanded": e,
|
|
34
45
|
"aria-hidden": e,
|
|
35
46
|
onClick: o,
|
|
36
|
-
ref:
|
|
47
|
+
ref: u,
|
|
37
48
|
"data-testid": "expand-button",
|
|
38
|
-
...
|
|
49
|
+
...l,
|
|
39
50
|
children: [
|
|
40
|
-
/* @__PURE__ */ r("span", { className: "adyen-pe-
|
|
41
|
-
/* @__PURE__ */ r("div", { className: n(A,
|
|
42
|
-
/* @__PURE__ */ r("div", { className:
|
|
51
|
+
/* @__PURE__ */ r("span", { className: "adyen-pe-visually-hidden", children: _.get("expandableCard.expand") }),
|
|
52
|
+
/* @__PURE__ */ r("div", { className: n(A, D), children: c }),
|
|
53
|
+
/* @__PURE__ */ r("div", { className: k, children: /* @__PURE__ */ r(U, { role: "presentation" }) })
|
|
43
54
|
]
|
|
44
55
|
}
|
|
45
56
|
),
|
|
46
57
|
/* @__PURE__ */ r(
|
|
47
|
-
|
|
58
|
+
B,
|
|
48
59
|
{
|
|
49
|
-
id:
|
|
50
|
-
className: n(
|
|
51
|
-
[C]:
|
|
52
|
-
[
|
|
53
|
-
[
|
|
60
|
+
id: N,
|
|
61
|
+
className: n(p, g, q, {
|
|
62
|
+
[C]: d,
|
|
63
|
+
[G]: !e,
|
|
64
|
+
[M]: a
|
|
54
65
|
}),
|
|
55
66
|
disabled: !e,
|
|
56
|
-
fullWidth:
|
|
57
|
-
"aria-controls":
|
|
67
|
+
fullWidth: E,
|
|
68
|
+
"aria-controls": N,
|
|
58
69
|
"aria-expanded": e,
|
|
59
70
|
"aria-hidden": !e,
|
|
60
71
|
onClick: o,
|
|
61
|
-
ref:
|
|
72
|
+
ref: m,
|
|
62
73
|
"data-testid": "collapse-button",
|
|
63
|
-
...
|
|
74
|
+
...l,
|
|
64
75
|
children: [
|
|
65
|
-
/* @__PURE__ */ r("span", { className: "adyen-pe-
|
|
66
|
-
/* @__PURE__ */ r("div", { className: n(A,
|
|
76
|
+
/* @__PURE__ */ r("span", { className: "adyen-pe-visually-hidden", children: _.get("expandableCard.collapse") }),
|
|
77
|
+
/* @__PURE__ */ r("div", { className: n(A, D), children: [
|
|
67
78
|
c,
|
|
68
79
|
/* @__PURE__ */ r("div", { children: O })
|
|
69
80
|
] }),
|
|
70
|
-
/* @__PURE__ */ r("div", { className:
|
|
81
|
+
/* @__PURE__ */ r("div", { className: k, children: /* @__PURE__ */ r(z, { role: "presentation" }) })
|
|
71
82
|
]
|
|
72
83
|
}
|
|
73
84
|
)
|
|
74
|
-
] }) : /* @__PURE__ */ r("div", { className: n(
|
|
85
|
+
] }) : /* @__PURE__ */ r("div", { className: n(p, { [C]: d }), ...l, children: /* @__PURE__ */ r("div", { className: A, children: c }) }) });
|
|
75
86
|
};
|
|
76
87
|
export {
|
|
77
|
-
|
|
88
|
+
ne as default
|
|
78
89
|
};
|
|
@@ -21,6 +21,8 @@ const e = {
|
|
|
21
21
|
"minus-circle-outline": () => import("../../../images/icons/minus-circle-outline.svg.js"),
|
|
22
22
|
"plus-circle-outline": () => import("../../../images/icons/plus-circle-outline.svg.js"),
|
|
23
23
|
square: () => import("../../../images/icons/square.svg.js"),
|
|
24
|
+
"trash-can": () => import("../../../images/icons/trash-can.svg.js"),
|
|
25
|
+
upload: () => import("../../../images/icons/upload.svg.js"),
|
|
24
26
|
"warning-filled": () => import("../../../images/icons/warning-filled.svg.js"),
|
|
25
27
|
warning: () => import("../../../images/icons/warning.svg.js")
|
|
26
28
|
}, d = ({ className: n, name: o, ...c }) => {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as o } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { TypographyElement as p, TypographyVariant as f } from "../Typography/types.js";
|
|
3
|
+
import g from "../../../core/Context/useCoreContext.js";
|
|
4
|
+
import { useTabbedControl as u } from "../../../hooks/useTabbedControl.js";
|
|
5
|
+
import y from "../Typography/Typography.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
function x({ defaultItem: i, items: a }) {
|
|
8
|
+
const { activeIndex: t, onClick: l, onKeyDown: s, refs: c, uniqueId: n } = u(a, i), { i18n: m } = g();
|
|
9
|
+
return /* @__PURE__ */ o("div", { children: [
|
|
10
|
+
/* @__PURE__ */ o("div", { role: "radiogroup", className: "adyen-fp-segmented-control", children: a.map((e, r) => {
|
|
11
|
+
const d = t === r;
|
|
12
|
+
return /* @__PURE__ */ o(
|
|
13
|
+
"button",
|
|
14
|
+
{
|
|
15
|
+
role: "radio",
|
|
16
|
+
name: e.id,
|
|
17
|
+
ref: c[r],
|
|
18
|
+
id: `item:${n}-${e.id}`,
|
|
19
|
+
className: "adyen-fp-segmented-control__item",
|
|
20
|
+
"aria-checked": d,
|
|
21
|
+
"aria-controls": `segment:${n}-${e.id}`,
|
|
22
|
+
onClick: d ? void 0 : l,
|
|
23
|
+
onKeyDown: s,
|
|
24
|
+
disabled: e.disabled,
|
|
25
|
+
tabIndex: d ? 0 : -1,
|
|
26
|
+
children: /* @__PURE__ */ o(
|
|
27
|
+
y,
|
|
28
|
+
{
|
|
29
|
+
el: p.SPAN,
|
|
30
|
+
variant: f.BODY,
|
|
31
|
+
className: "adyen-fp-segmented-control__item-label",
|
|
32
|
+
stronger: !0,
|
|
33
|
+
children: m.get(e.label)
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
},
|
|
37
|
+
`item:${n}-${e.id}`
|
|
38
|
+
);
|
|
39
|
+
}) }),
|
|
40
|
+
/* @__PURE__ */ o("div", { className: "adyen-fp-segmented-content-container", children: a.map((e, r) => /* @__PURE__ */ o(
|
|
41
|
+
"section",
|
|
42
|
+
{
|
|
43
|
+
id: `segment:${n}-${e.id}`,
|
|
44
|
+
className: "adyen-fp-segmented-content",
|
|
45
|
+
"aria-labelledby": `item:${n}-${e.id}`,
|
|
46
|
+
hidden: t !== r,
|
|
47
|
+
children: e.content
|
|
48
|
+
},
|
|
49
|
+
`segment:${n}-${e.id}`
|
|
50
|
+
)) })
|
|
51
|
+
] });
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
x as default
|
|
55
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const A =
|
|
1
|
+
const A = /GMT(?:[-+](?:0?\d|1[0-4])(?::?[0-5]\d)?)?$/, { BASE_FORMAT_OPTIONS: I, BASE_LOCALE: N, SYSTEM_TIMEZONE: c, SYSTEM_TIMEZONE_FORMATTER: s } = (() => {
|
|
2
2
|
const S = "en-US", T = "2-digit", t = "numeric", e = Object.freeze({
|
|
3
3
|
year: t,
|
|
4
4
|
month: "short",
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { SYSTEM_TIMEZONE_FORMATTER as n, REGEX_TZ_OFFSET as m } from "./constants.js";
|
|
2
2
|
import { EMPTY_ARRAY as r } from "../../../../utils/value/constants.js";
|
|
3
3
|
import { mod as i } from "../../../../utils/value/number.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /\+(?=-)|([+-]00:00)/g, E = /(^\D?)(\d)$/, O = ([t, e]) => (Math.abs(t * 60) + e) * (t < 0 ? -1 : 1), S = (t) => Object.freeze([
|
|
5
5
|
Math.floor(t / 60),
|
|
6
6
|
// offset hours
|
|
7
7
|
i(t, 60)
|
|
8
8
|
// offset minutes
|
|
9
|
-
]), _ = (t) => parseInt(t, 10) || 0, F = (t) => `GMT+${S(t).map((o) => `${o}`.replace(
|
|
10
|
-
var
|
|
11
|
-
const
|
|
12
|
-
return O(
|
|
13
|
-
}, R = (t,
|
|
9
|
+
]), _ = (t) => parseInt(t, 10) || 0, F = (t) => `GMT+${S(t).map((o) => `${o}`.replace(E, "$10$2")).join(":")}`.replace(p, ""), c = (t) => {
|
|
10
|
+
var s;
|
|
11
|
+
const e = ((s = t == null ? void 0 : t.match(m)) == null ? void 0 : s[0].replace("GMT", "").split(":", 2).map(_)) ?? r;
|
|
12
|
+
return O(e.concat(0, 0).slice(0, 2));
|
|
13
|
+
}, R = (t, e = n) => {
|
|
14
14
|
var f;
|
|
15
|
-
const
|
|
16
|
-
return c(
|
|
17
|
-
}, T = (t,
|
|
18
|
-
const { offset: o, timestamp: f } = t(
|
|
19
|
-
return f - o *
|
|
20
|
-
}, g = (t,
|
|
15
|
+
const s = c((f = n) == null ? void 0 : f.format(t));
|
|
16
|
+
return c(e == null ? void 0 : e.format(t)) - s;
|
|
17
|
+
}, T = (t, e, s = 1) => {
|
|
18
|
+
const { offset: o, timestamp: f } = t(e);
|
|
19
|
+
return f - o * s * 6e4;
|
|
20
|
+
}, g = (t, e) => T(t, e, 1), u = (t, e) => T(t, e, -1);
|
|
21
21
|
export {
|
|
22
22
|
O as computeTimezoneOffsetInMinutes,
|
|
23
23
|
S as computeTimezoneOffsetsFromMinutes,
|
package/dist/es/core/core.js
CHANGED
|
@@ -56,7 +56,7 @@ function re(t, e, n, l, o, r, i, s, c, u, p) {
|
|
|
56
56
|
function ce(t, e, n, l, o) {
|
|
57
57
|
var r, i, s, c, u, p = n.length, _ = p, m = 0;
|
|
58
58
|
for (t.__k = new Array(o), r = 0; r < o; r++) (i = e[r]) != null && typeof i != "boolean" && typeof i != "function" ? (c = r + m, (i = t.__k[r] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? T(null, i, null, null, null) : N(i) ? T(H, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? T(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = t, i.__b = t.__b + 1, s = null, (u = i.__i = ae(i, n, c, _)) !== -1 && (_--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v === null ? (u == -1 && m--, typeof i.type != "function" && (i.__u |= 4)) : u != c && (u == c - 1 ? m-- : u == c + 1 ? m++ : (u > c ? m-- : m++, i.__u |= 4))) : t.__k[r] = null;
|
|
59
|
-
if (_) for (r = 0; r < p; r++) (s = n[r]) != null &&
|
|
59
|
+
if (_) for (r = 0; r < p; r++) (s = n[r]) != null && (2 & s.__u) == 0 && (s.__e == l && (l = C(s)), ie(s, s));
|
|
60
60
|
return l;
|
|
61
61
|
}
|
|
62
62
|
function oe(t, e, n) {
|
|
@@ -78,14 +78,14 @@ function pe(t, e) {
|
|
|
78
78
|
}
|
|
79
79
|
function ae(t, e, n, l) {
|
|
80
80
|
var o, r, i = t.key, s = t.type, c = e[n];
|
|
81
|
-
if (c === null || c && i == c.key && s === c.type &&
|
|
82
|
-
if (l > (c != null &&
|
|
81
|
+
if (c === null || c && i == c.key && s === c.type && (2 & c.__u) == 0) return n;
|
|
82
|
+
if (l > (c != null && (2 & c.__u) == 0 ? 1 : 0)) for (o = n - 1, r = n + 1; o >= 0 || r < e.length; ) {
|
|
83
83
|
if (o >= 0) {
|
|
84
|
-
if ((c = e[o]) &&
|
|
84
|
+
if ((c = e[o]) && (2 & c.__u) == 0 && i == c.key && s === c.type) return o;
|
|
85
85
|
o--;
|
|
86
86
|
}
|
|
87
87
|
if (r < e.length) {
|
|
88
|
-
if ((c = e[r]) &&
|
|
88
|
+
if ((c = e[r]) && (2 & c.__u) == 0 && i == c.key && s === c.type) return r;
|
|
89
89
|
r++;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useState as x, useRef as b, useMemo as O, useCallback as R, useEffect as A } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { InteractionKeyCode as l } from "../components/types.js";
|
|
3
|
+
import { uniqueId as D } from "../utils/random/uniqueId.js";
|
|
4
|
+
const T = (f, o) => {
|
|
5
|
+
if (!o) return 0;
|
|
6
|
+
const s = f.findIndex((i) => i.id === o);
|
|
7
|
+
return s === -1 ? 0 : s;
|
|
8
|
+
}, h = (f, o) => {
|
|
9
|
+
const [s, i] = x(!1), [I, c] = x(T(f, o)), u = b([]), m = b(D().replace(/.*?(?=\d+$)/, "")).current, r = f.length, p = O(() => {
|
|
10
|
+
const e = [];
|
|
11
|
+
for (let n = 0; n < r; n++)
|
|
12
|
+
e[n] = (t) => u.current[n] = t;
|
|
13
|
+
return e;
|
|
14
|
+
}, [r]), d = R(
|
|
15
|
+
(e, n) => {
|
|
16
|
+
var a;
|
|
17
|
+
let t = e;
|
|
18
|
+
do
|
|
19
|
+
if (t < 0 && (t += r), t >= r && (t %= r), ((a = u.current[t]) == null ? void 0 : a.disabled) === !1) break;
|
|
20
|
+
while ((t += n) !== e);
|
|
21
|
+
return t;
|
|
22
|
+
},
|
|
23
|
+
[r]
|
|
24
|
+
), g = R((e) => {
|
|
25
|
+
var t;
|
|
26
|
+
const n = u.current.findIndex((a) => a === e.currentTarget);
|
|
27
|
+
((t = u.current[n]) == null ? void 0 : t.disabled) === !1 && (e.preventDefault(), c(n));
|
|
28
|
+
}, []), k = O(() => {
|
|
29
|
+
const e = {
|
|
30
|
+
[l.ARROW_LEFT]: () => c((n) => d(
|
|
31
|
+
n - 1,
|
|
32
|
+
-1
|
|
33
|
+
/* BACKWARD */
|
|
34
|
+
)),
|
|
35
|
+
[l.ARROW_RIGHT]: () => c((n) => d(
|
|
36
|
+
n + 1,
|
|
37
|
+
1
|
|
38
|
+
/* FORWARD */
|
|
39
|
+
)),
|
|
40
|
+
[l.HOME]: () => c(d(
|
|
41
|
+
0,
|
|
42
|
+
1
|
|
43
|
+
/* FORWARD */
|
|
44
|
+
)),
|
|
45
|
+
[l.END]: () => c(d(
|
|
46
|
+
r - 1,
|
|
47
|
+
-1
|
|
48
|
+
/* BACKWARD */
|
|
49
|
+
))
|
|
50
|
+
};
|
|
51
|
+
return (n) => {
|
|
52
|
+
var t;
|
|
53
|
+
e[n.key] && (n.preventDefault(), (t = e[n.key]) == null || t.call(e), i(!0));
|
|
54
|
+
};
|
|
55
|
+
}, [r]);
|
|
56
|
+
return A(() => {
|
|
57
|
+
if (s) {
|
|
58
|
+
const e = u.current[I];
|
|
59
|
+
(e == null ? void 0 : e.disabled) === !1 && (e == null || e.focus()), i(!1);
|
|
60
|
+
}
|
|
61
|
+
}, [I, s]), { activeIndex: I, onClick: g, onKeyDown: k, refs: p, uniqueId: m };
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
h as default,
|
|
65
|
+
h as useTabbedControl
|
|
66
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../external/preact/compat/dist/compat.module.js";
|
|
2
|
+
import { jsx as l } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
3
|
+
const o = (h) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", ...h, children: [
|
|
4
|
+
/* @__PURE__ */ l("path", { fill: "currentColor", d: "M7.25 6.25h-1.5v6.5h1.5v-6.5ZM8.75 6.25h1.5v6.5h-1.5v-6.5Z" }),
|
|
5
|
+
/* @__PURE__ */ l("path", { fill: "currentColor", d: "M14.75 3.25h-2.21l-.49-1.5a2.2 2.2 0 0 0-.83-1.1c-.39-.27-.88-.4-1.3-.41H6.09c-.45 0-.92.14-1.31.41a2.2 2.2 0 0 0-.83 1.11l-.49 1.48H1.25v1.5h1.07l.82 8.96c.05.56.31 1.08.72 1.46.41.38.95.59 1.51.59h5.27c.56 0 1.1-.21 1.51-.59.42-.38.67-.9.72-1.46l.82-8.96h1.07v-1.5l-.01.01Zm-9.38-1a.75.75 0 0 1 .27-.36.7.7 0 0 1 .44-.13h3.85c.15 0 .3.05.42.13.13.09.22.21.27.35l.33 1.02H5.02l.33-1 .02-.01Zm6 11.33a.72.72 0 0 1-.24.48.73.73 0 0 1-.5.19H5.36a.76.76 0 0 1-.5-.19.76.76 0 0 1-.24-.49l-.81-8.82h8.36l-.81 8.82.01.01Z" })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
o as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../external/preact/compat/dist/compat.module.js";
|
|
2
|
+
import { jsx as o } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
3
|
+
const a = (l) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", ...l, children: [
|
|
4
|
+
/* @__PURE__ */ o("path", { fill: "currentColor", d: "M8 .94 12.06 5 11 6.06 8.75 3.81v7.94h-1.5V3.81L5 6.06 3.94 5 8 .94Z" }),
|
|
5
|
+
/* @__PURE__ */ o("path", { fill: "currentColor", d: "M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75Z" })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
a as default
|
|
9
|
+
};
|