@alphakits/ui 1.19.9 → 1.19.10
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/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +2 -2
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/component-f55ec756.js +1 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/formik.esm-26c52e2d.js +1 -0
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-gallery/utils/split-filename.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/{index-4c130f69.js → index-a91ddf37.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/parse-query-params-fd497b7c.js +1 -0
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/component-2ffe6fb1.js +0 -1
- package/dist/formik.esm-854341ed.js +0 -1
- package/dist/parse-query-params-ef94c1b7.js +0 -1
- /package/dist/{_commonjsHelpers-827a0f01.js → _commonjsHelpers-e52c9674.js} +0 -0
- /package/dist/{colors.module-d55defff.js → colors.module-30d06e1b.js} +0 -0
- /package/dist/{common.module-a42ae4fc.js → common.module-d5e49a2e.js} +0 -0
- /package/dist/{component-7b55b05f.d.ts → component-210476fd.d.ts} +0 -0
- /package/dist/{component-7b55b05f.js → component-210476fd.js} +0 -0
- /package/dist/{component-2ffe6fb1.d.ts → component-f55ec756.d.ts} +0 -0
- /package/dist/{contact-block-7f66c8b7.d.ts → contact-block-bdc97baa.d.ts} +0 -0
- /package/dist/{contact-block-7f66c8b7.js → contact-block-bdc97baa.js} +0 -0
- /package/dist/{gutters.module-ec34204c.js → gutters.module-41167db6.js} +0 -0
- /package/dist/{intersection-observer-47517290.js → intersection-observer-93973030.js} +0 -0
- /package/dist/{parse-query-params-ef94c1b7.d.ts → parse-query-params-fd497b7c.d.ts} +0 -0
- /package/dist/{slide-14d76883.d.ts → slide-a8ff16ea.d.ts} +0 -0
- /package/dist/{slide-14d76883.js → slide-a8ff16ea.js} +0 -0
- /package/dist/{tslib.es6-fe1f3b81.js → tslib.es6-763015ce.js} +0 -0
- /package/dist/{use-image-render-component-076f45c0.d.ts → use-image-render-component-2281d809.d.ts} +0 -0
- /package/dist/{use-image-render-component-076f45c0.js → use-image-render-component-2281d809.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as parseQueryParams}from"../../parse-query-params-
|
|
1
|
+
export{p as parseQueryParams}from"../../parse-query-params-fd497b7c.js";import"../../_commonjsHelpers-e52c9674.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"../../image/component.js";import"../../image/typings.js";import"../../image/constants.js";export{p as prepareRows}from"../../component-
|
|
1
|
+
import"react";import"../../image/component.js";import"../../image/typings.js";import"../../image/constants.js";export{p as prepareRows}from"../../component-f55ec756.js";import"classnames";import"../../cell/pure/component.js";import"../../skeleton/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-763015ce.js";import"../../typography/title/component.js";import"../../colors.module-30d06e1b.js";import"../../common.module-d5e49a2e.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../use-image-render-component-2281d809.js";import"alpha-cli-icons";import"../../spinner/component.js";import"../../image/utils.js";import"../components/cell/component.js";import"../../component-210476fd.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../components/cells/index.js";import"../components/empty-list/index.js";import"../languages/index.js";import"../components/error/index.js";import"../components/loading/index.js";import"../components/pagination/index.js";import"../../button/component.js";import"react-merge-refs";import"../../loader/component.js";import"../components/table-header/index.js";import"rooks";import"../../header-search/component.js";import"../hooks/use-table-data.js";import"../../parse-query-params-fd497b7c.js";import"../../_commonjsHelpers-e52c9674.js";import"./get-query-from-url.js";import"./serialize-data.js";import"./sort-array.js";import"./is-object.js";import"./add-query-param.js";import"./set-query-to-url.js";import"./get-tags.js";import"./remove-query-param.js";import"./reset-query-param.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-763015ce.js";var e={dev:{limit:"_limit",page:"_page",sort:"_sort",order:"_order",searchText:"q"},prod:{limit:"limit",page:"page",sort:"sort",order:"order",searchText:"searchText"}};function t(t,o){return Object.entries(t).reduce((function(t,i){var s,a=i[0],c=i[1],d=e[o][a]||a;return r(((s={})[d]=c,s),t)}),{})}export{t as queryAdapter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,q as e}from"../../parse-query-params-
|
|
1
|
+
import{p as r,q as e}from"../../parse-query-params-fd497b7c.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-e52c9674.js";function s(s,t){var a=r();Array.isArray(a[s])&&t?a[s]=a[s].filter((function(r){return r!==t})):delete a[s],o(e(a))}export{s as removeQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-763015ce.js";import{p as e,q as t}from"../../parse-query-params-fd497b7c.js";import{setQueryToUrl as s}from"./set-query-to-url.js";import"../../_commonjsHelpers-e52c9674.js";function o(o){var i=Object.fromEntries(Object.entries(o).filter((function(r){return""!==r[1]}))),m=e(),a=m.searchText,c=m.order,p=m.sort;s(t(r({limit:10,page:1,searchText:a,order:c,sort:p},i)))}export{o as resetQueryParam};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{CloseMarkM as t,CheckmarkRoudedM as o,ClockRoundM as r,AlertCircleM as m}from"alpha-cli-icons";import n from"classnames";import{Typography as a}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{CloseMarkM as t,CheckmarkRoudedM as o,ClockRoundM as r,AlertCircleM as m}from"alpha-cli-icons";import n from"classnames";import{Typography as a}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-763015ce.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_icon__xCdQr",l="index-module_text__0SHQw",p={negative:e.createElement(t,null),positive:e.createElement(o,null),secondary:e.createElement(r,null),accent:e.createElement(t,null),attention:e.createElement(m,null)},c=function(t){var o=t.text,r=t.view,m=void 0===r?"secondary":r,c=t.className;return e.createElement(a.Text,{className:n(l,c),tag:"div",view:"caps",weight:"medium",color:m},e.createElement("span",{className:i},p[m])," ",o)};export{c as TableStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TableStatus}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{TableStatus}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-763015ce.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{CrossCompactM as t}from"alpha-cli-icons";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{CrossCompactM as t}from"alpha-cli-icons";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-763015ce.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r={tag:"index-module_tag__ePuZ7",s:"index-module_s__JQOAw",m:"index-module_m__6q9L4",show_cross:"index-module_show_cross__J7Jc0",text:"index-module_text__cc9CM",primary:"index-module_primary__nTVdF","primary-inverted":"index-module_primary-inverted__G6REX"},m=function(m){var a,s=m.text,n=m.onClick,p=m.onCloseClick,l=m.view,c=void 0===l?"primary":l,d=m.dataTestId,_=m.size,u=void 0===_?"m":_,y=m.className;return e.createElement("button",{type:"button","data-test-id":d,onClick:n,disabled:!n&&!p,className:o(r.tag,r[c],r[u],(a={},a[r.show_cross]=!!p,a),y)},e.createElement(i.Text,{className:r.text,view:"caps",weight:"medium",color:c},s),!!p&&e.createElement("button",{"data-test-id":d+"_close",type:"button","aria-label":"close-tag",onClick:function(e){e.stopPropagation(),p()}},e.createElement(t,null)))};export{m as Tag};
|
package/dist/tag/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tag}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Tag}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-763015ce.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{Tag as t}from"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
import o from"react";import{Tag as t}from"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-763015ce.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var e="index-module_tags__C28AJ",i=function(i){var r=i.tags,p=i.view,m=void 0===p?"primary":p,n=i.onClick,s=i.onCloseClick;return o.createElement("div",{className:e},(null==r?void 0:r.length)&&r.map((function(e){return o.createElement(t,{key:e,text:e,onClick:n,onCloseClick:s,view:m})})))};export{i as TagsList};
|
package/dist/tags-list/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-
|
|
1
|
+
export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-763015ce.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"../tslib.es6-
|
|
1
|
+
import{a as t}from"../tslib.es6-763015ce.js";import e,{useState as o}from"react";import{AmountInput as r}from"../amount-input/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{ListAllert as i}from"../list-allert/component.js";import{Select as m}from"../select/component.js";import"classnames";import"../select/components/base-select/component.js";import"../form-control/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"../intersection-observer-93973030.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../amount-input/utils/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../select/utils.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";var s="index-module_allert__8-UXh",p=function(p){var c=p.price,l=p.onChange,a=p.error,u=p.minLabel,j=void 0===u?"Minimal players":u,d=p.maxLabel,f=void 0===d?"Maximum players":d,y=p.inputPrefix,v=void 0===y?"чел.":y,b=p.suffix,g=void 0===b?"€":b,x=p.t,h=Object.entries(c||{}),k=o(h[0]&&h[0][0]||2),N=k[0],P=k[1],_=o(h[h.length-1]&&h[h.length-1][0]||6),E=_[0],w=_[1],C=function(t){for(var e=t.minPlayers,o=t.maxPlayers,r=t.totalPrice,n={},i=+e;i<=+o;i++)n[i]=r[i]||0;return n},I=Array.from({length:Number(E)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})),T=Array.from({length:Number(50)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})).filter((function(t){return Number(t.key)>=Number(N)}));return e.createElement(n,{columns:1,gr:16,gc:0},e.createElement(m,{dataTestId:"min_players",label:j,block:!0,options:I,selected:N,onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(P(o),Number(o)<=Number(E)&&l(C({minPlayers:o,maxPlayers:E,totalPrice:c})))},required:!0}),e.createElement(m,{dataTestId:"max_players",label:f,options:T,selected:E,onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(w(o),Number(o)>=Number(N)&&l(C({minPlayers:N,maxPlayers:o,totalPrice:c})))},required:!0}),Number(N)<=Number(E)&&e.createElement(n,{columns:3,gr:16,gc:16},h.map((function(o){return e.createElement(r,{dataTestId:"price_"+o[0],key:o[0],label:o[0]+" "+v,value:Number(o[1]),suffix:g,onChange:function(e,r){var n,i=r.value,m=1*Number(i)||0,s=o[0];l(t(t({},c),((n={})[s]=null==m?void 0:m.toString(),n)))},required:!0,block:!0})}))),a&&e.createElement(i,{className:s,text:a,view:"negative"}))};export{p as TariffBuilder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TariffBuilder}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{TariffBuilder}from"./component.js";import"../tslib.es6-763015ce.js";import"react";import"../amount-input/component.js";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../amount-input/utils/index.js";import"../flex-columns/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../intersection-observer-93973030.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-763015ce.js";import*as o from"react";import n,{useLayoutEffect as r,useEffect as i,useRef as a,useCallback as d,forwardRef as s,createElement as l,useState as u}from"react";import c from"react-merge-refs";import m from"classnames";import{FormControl as f}from"../form-control/component.js";import{useFocus as h}from"../hooks/useFocus/index.js";function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g.apply(this,arguments)}var p="undefined"!=typeof document?r:i,b=function(e,t){"function"!=typeof e?e.current=t:e(t)},x={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},v=function(e){Object.keys(x).forEach((function(t){e.style.setProperty(t,x[t],"important")}))},w=null,y=function(e,t){var o=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?o+t.borderSize:o-t.paddingSize};var z=function(){},_=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],C="undefined"!=typeof document&&!!document.documentElement.currentStyle,R=function(e){var t,n,i=(t=e,n=o.useRef(t),p((function(){n.current=t})),n);r((function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},S=s((function(e,t){var o=e.cacheMeasurements,n=e.maxRows,i=e.minRows,s=e.onChange,u=void 0===s?z:s,c=e.onHeightChange,m=void 0===c?z:c,f=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);if("production"!==process.env.NODE_ENV&&f.style){if("maxHeight"in f.style)throw new Error("Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.");if("minHeight"in f.style)throw new Error("Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.")}var h=void 0!==f.value,p=a(null),x=function(e,t){var o=a();return d((function(n){e.current=n,o.current&&b(o.current,null),o.current=t,t&&b(t,n)}),[t])}(p,t),S=a(0),H=a(),A=function(){var e=p.current,t=o&&H.current?H.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var o,n=(o=t,_.reduce((function(e,t){return e[t]=o[t],e}),{})),r=n.boxSizing;return""===r?null:(C&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){H.current=t;var r=function(e,t,o,n){void 0===o&&(o=1),void 0===n&&(n=1/0),w||((w=document.createElement("textarea")).setAttribute("tabindex","-1"),w.setAttribute("aria-hidden","true"),v(w)),null===w.parentNode&&document.body.appendChild(w);var r=e.paddingSize,i=e.borderSize,a=e.sizingStyle,d=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;w.style[t]=a[t]})),v(w),w.value=t;var s=y(w,e);w.value="x";var l=w.scrollHeight-r,u=l*o;"border-box"===d&&(u=u+r+i),s=Math.max(u,s);var c=l*n;return"border-box"===d&&(c=c+r+i),[s=Math.min(c,s),l]}(t,e.value||e.placeholder||"x",i,n),a=r[0],d=r[1];S.current!==a&&(S.current=a,e.style.setProperty("height",a+"px","important"),m(a,{rowHeight:d}))}};return"undefined"!=typeof document&&(r(A),R(A)),l("textarea",g({},f,{onChange:function(e){h||A(),u(e)},ref:x}))})),H={textarea:"index-module_textarea__91cCo",s:"index-module_s__EnuHV",m:"index-module_m__etAWo",l:"index-module_l__pP38o",hasLabel:"index-module_hasLabel__sk25A",resizeVertical:"index-module_resizeVertical__kct5e",focusVisible:"index-module_focusVisible__bLwRO",filled:"index-module_filled__t8LRd",counter:"index-module_counter__psEqA"},A=n.forwardRef((function(o,r){var s,l,g=o.autoComplete,p=void 0===g?"on":g,b=o.autosize,x=void 0===b||b,v=o.size,w=void 0===v?"s":v,y=o.block,z=void 0!==y&&y,_=o.bottomAddons,C=o.fieldClassName,R=o.className,A=o.dataTestId,E=o.disabled,L=o.error,F=o.hint,N=o.textareaClassName,k=o.label,O=o.leftAddons,V=o.onFocus,W=o.required,j=o.onBlur,B=o.onChange,T=o.onHeightChange,P=o.rightAddons,q=o.maxRows,M=o.minRows,I=o.maxHeight,U=o.resize,D=void 0===U?"none":U,G=o.value,J=o.defaultValue,K=o.maxLength,Q=o.counter,X=o.rows,Y=void 0===X?x?1:3:X,Z=e(o,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),$=void 0===G,ee=a(null),te=u(!1),oe=te[0],ne=te[1],re=u(J||""),ie=re[0],ae=re[1],de=h(ee,"keyboard")[0],se=Boolean($?ie:G);i((function(){x&&I&&ee.current&&ee.current.style&&(ee.current.style.maxHeight=I+"px")}),[ee,x,I]);var le=d((function(e){ne(!0),V&&V(e)}),[V]),ue=d((function(e){ne(!1),j&&j(e)}),[j]),ce=d((function(e){B&&B(e,{value:e.target.value}),$&&ae(e.target.value)}),[B,$]),me=t(t({},Z),{className:m(H.textarea,H[w],(s={},s[H.hasLabel]=k,s[H.filled]=se,s[H.resizeVertical]="vertical"===D,s),N),autoComplete:p,disabled:E,onBlur:ue,onFocus:le,onChange:ce,value:$?ie:G,rows:Y,ref:c([r,ee]),"data-test-id":A});return n.createElement(f,{className:m(R),fieldClassName:m(C,(l={},l[H.focusVisible]=de,l)),size:w,block:z,required:W,disabled:E,filled:se||oe,focused:oe,error:L,label:k,hint:F,leftAddons:O,rightAddons:P,bottomAddons:_},x?n.createElement(S,t({},me,{maxLength:K,maxRows:q,minRows:M,onHeightChange:T})):n.createElement("textarea",t({maxLength:K},me,{style:{maxHeight:I}})),Q&&n.createElement("span",{className:H.counter},($?ie.length:null==G?void 0:G.length)+" / "+(K||"-")))}));A.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{A as Textarea};
|
package/dist/textarea/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Textarea}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Textarea}from"./component.js";import"../tslib.es6-763015ce.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.js";import"../hooks/useFocus/index.js";
|
package/dist/toast/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as o}from"../tslib.es6-763015ce.js";import t,{forwardRef as n,useRef as r,useCallback as i,useEffect as s}from"react";import m from"react-merge-refs";import{CSSTransition as a}from"react-transition-group";import l from"classnames";import{useClickOutside as c}from"../hooks/useClickOutside/index.js";import{usePrevious as u}from"../hooks/usePrevious/index.js";import{Popover as p}from"../popover/component.js";import{Portal as f}from"../portal/component.js";import{ToastPlate as d}from"../toast-plate/component.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var _="index-module_toastPlate__QcyxC",x="index-module_popover__CzEm-",v="index-module_block__qnPJw",E="index-module_fixed__U9hsM",C={enter:"index-module_enter__mfllY",enterActive:"index-module_enterActive__iRE6x",exit:"index-module_exit__lf3xl",exitActive:"index-module_exitActive__qssLn"},j=n((function(n,j){var h,k=n.anchorElement,b=n.position,y=n.offset,M=n.open,P=n.autoCloseDelay,g=void 0===P?3e3:P,N=n.className,T=n.bottomOffset,A=n.style,L=void 0===A?{}:A,O=n.block,w=n.onMouseEnter,S=n.onMouseLeave,q=n.onTouchStart,D=n.onClose,z=n.getPortalContainer,F=e(n,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),J=r(null),Q=r(0),R=u(M),U=i((function(){clearTimeout(Q.current),Q.current=window.setTimeout(D,g)}),[g,D]),Y=i((function(){clearTimeout(Q.current)}),[]),B=i((function(e){Y(),w&&w(e)}),[w,Y]),G=i((function(e){U(),S&&S(e)}),[S,U]),H=i((function(e){Y(),q&&q(e)}),[q,Y]),I=i((function(){D(),Y()}),[D,Y]);c(J,I),s((function(){return M!==R&&M&&U(),function(){Y()}}),[M,R,U,Y]);var K={block:O,onClose:D,onMouseEnter:B,onMouseLeave:G,onTouchStart:H,ref:m([j,J])};return k?t.createElement(p,{open:M,anchorElement:k,position:b,offset:y,popperClassName:l(x,(h={},h[v]=O,h)),transition:{timeout:150},getPortalContainer:z},t.createElement(d,o({},F,{style:L,className:N},K))):t.createElement(f,{getPortalContainer:z},t.createElement(a,{unmountOnExit:!0,in:M,timeout:150,classNames:C},t.createElement(d,o({},F,{className:l(E,_,N),style:o(o({},L),{bottom:T&&T+"px"})},K))))}));export{j as Toast};
|
package/dist/toast/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Toast}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Toast}from"./component.js";import"../tslib.es6-763015ce.js";import"react";import"react-merge-refs";import"react-transition-group";import"classnames";import"../hooks/useClickOutside/index.js";import"../hooks/usePrevious/index.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-763015ce.js";import o from"react";import i from"react-dom";import n from"classnames";import{ToastPlate as s}from"../toast-plate/component.js";import{useTimer as r}from"./use-timer.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,l="index-module_isVisible__kvaxX",d="index-module_mobile__ARgiW",m="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var u=function(u){var c,f=u.className;u.children;var v=u.offset,x=void 0===v?108:v,h=u.hasCloser,_=void 0===h||h;u.onClose;var C=u.text;u.onMouseEnter,u.onMouseLeave;var b=u.style,y=u.position,g=void 0===y?"bottom":y,w=u.delay,E=void 0===w?3e3:w,L=e(u,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var j,M=window.innerWidth>600;a.setAttribute("style",(j="position: fixed; z-index: 99999999;",M?j+" "+g+": "+x+"px; right: 30px":j+" top: "+x+"px; right: 30px; left: 30px"));var A=document.createElement("div");A.classList.remove(m),A.setAttribute("id","toast_wrap-"+Math.random()),A.setAttribute("style","margin-bottom: 18px"),a.appendChild(A);var N=function(){A.classList.add(m),setTimeout((function(){null==a||a.removeChild(A)}),300)},W=r(N,E),k=W.pause,z=W.resume;return A.addEventListener("mouseenter",(function(){k()})),A.addEventListener("mouseleave",(function(){z()})),i.render(o.createElement(s,t({hasCloser:_,className:n((c={},c[l]=!0,c[d]=!M,c),f),contentClassName:p,style:t({right:0,position:"relative"},b),role:"alert",onClose:N},L),C),A),null};export{u as ToastNotifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastNotifier}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastNotifier}from"./component.js";import"../tslib.es6-763015ce.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-763015ce.js";import o,{forwardRef as n,useCallback as a}from"react";import{CloseS as i}from"alpha-cli-icons";import l from"classnames";import{Button as d}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var s={component:"index-module_component__2FCoC",hasCloser:"index-module_hasCloser__ig0bb",contentWrap:"index-module_contentWrap__-P3Jg",block:"index-module_block__aZI2E",content:"index-module_content__ING2J",actionSection:"index-module_actionSection__pEbKj",leftAddons:"index-module_leftAddons__Odkdf",title:"index-module_title__QZFUh",children:"index-module_children__tKSv7",closeButton:"index-module_closeButton__mFhAC",negative:"index-module_negative__rdTB6",positive:"index-module_positive__k8leE",toast_enter:"index-module_toast_enter__gcrK7",toast_active_enter:"index-module_toast_active_enter__1PLY6",toast_done_enter:"index-module_toast_done_enter__encRe",toast_exit:"index-module_toast_exit__qTOb8",toast_active_exit:"index-module_toast_active_exit__dUE9W",toast_done_exit:"index-module_toast_done_exit__tGXNW"},_=n((function(n,_){var c,m=n.dataTestId,r=n.className,u=n.contentClassName,x=n.hasCloser;n.leftAddons;var v=n.view,p=void 0===v?"default":v,f=n.title,h=n.children;n.actionButton;var C=n.block,b=n.onClose;n.getBadgeIcons;var N=e(n,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),g=a((function(e){b&&b(e)}),[b]);return o.createElement("div",t({className:l(s.component,(c={},c[s.block]=C,c[s.hasCloser]=x,c),s[p],r),ref:_,"data-test-id":m},N),o.createElement("div",{className:s.contentWrap},o.createElement("div",{className:l(u,s.content)},f&&o.createElement("div",{className:s.title},f),h&&o.createElement("div",{className:s.children},h)),x&&o.createElement(d,t({className:l(s.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(i,null)}))))}));export{_ as ToastPlate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ToastPlate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{ToastPlate}from"./component.js";import"../tslib.es6-763015ce.js";import"react";import"alpha-cli-icons";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-763015ce.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__KCXt7",m="index-module_popper__M9HfK",l="index-module_target__nVe99",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,M=f.getPortalContainer,j=f.offset,x=void 0===j?[0,10]:j,y=f.position,b=f.contentClassName,P=f.arrowClassName,R=f.popoverClassName,S=f.updatePopover,D=t(!!E),K=D[0],L=D[1],A=t(null),F=A[0],H=A[1],I=o.useRef(null),V=o.useRef(null),X=r(0),q=function(){K||(L(!0),O&&O())},z=n((function(){K&&(L(!1),N&&N())}),[N,K]),B=function(e){return(!I.current||!I.current.contains(e))&&(!V.current||!V.current.contains(e))};c((function(){var e=function(e){var o=e.target;B(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(X.current)}}),[z]);var G,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),K?z():q()}},Q={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(X.current),X.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(X.current),X.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(X.current),B(o)?X.current=window.setTimeout((function(){z()}),h):q()}},U=void 0===E?K:E,W=n((function(e){I.current=e,H(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:W},(G=function(o){var t={className:u(l,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),Q);default:return{}}}(d.props),a(d,G))),F&&o.createElement(s,{anchorElement:F,open:U,getPortalContainer:M,arrowClassName:P,popperClassName:u(m,R),offset:x,withArrow:!0,position:y,update:S},function(){var t=function(){var o={ref:V,"data-test-id":k,className:u(p,b)};return"hover"===w?e(e({},o),Q):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Tooltip}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Tooltip}from"./component.js";import"../tslib.es6-763015ce.js";import"react";import"react-node-resolver";import"classnames";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-
|
|
1
|
+
import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-763015ce.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";var m={Title:o,Text:t,TitleResponsive:e};export{m as Typography};
|
package/dist/typography/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-
|
|
1
|
+
export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-763015ce.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-30d06e1b.js";import"../common.module-d5e49a2e.js";import"./text/component.js";import"./title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import m from"classnames";import{c as a}from"../../colors.module-
|
|
1
|
+
import e from"react";import m from"classnames";import{c as a}from"../../colors.module-30d06e1b.js";var r={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",component:"index-module_component__MPBKM",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,t=void 0===_?"span":_,p=d.weight,u=void 0===p?"regular":p,n=d.color,s=d.className,c=d.dataTestId,x=d.children;return e.createElement(t,{className:m((i={},i[r.paragraph]="p"===t,i),s,n&&a[n],r[l],r[u]),"data-test-id":c},x)};export{d as Text};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-
|
|
1
|
+
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-30d06e1b.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{c as a}from"../../colors.module-
|
|
1
|
+
import e from"react";import t from"classnames";import{c as a}from"../../colors.module-30d06e1b.js";var o=function(o){var r=o.tag,m=void 0===r?"div":r,i=o.view,s=void 0===i?"medium":i,d=o.weight,c=void 0===d?"medium":d,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,u=o.className,f=o.dataTestId,p=o.children,g=o.styles;return e.createElement(m,{className:t(g.component,u,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&a[v]),"data-test-id":f},p)};export{o as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-763015ce.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-d5e49a2e.js";import"classnames";import"../../colors.module-30d06e1b.js";var s={"montserrat-xlarge":"index-module_montserrat-xlarge__hdgbt","montserrat-large":"index-module_montserrat-large__Go4Ju","montserrat-medium":"index-module_montserrat-medium__KJdm0","montserrat-small":"index-module_montserrat-small__T0UeA","montserrat-xsmall":"index-module_montserrat-xsmall__9757S","margins-xlarge":"index-module_margins-xlarge__o0X6K","margins-large":"index-module_margins-large__njSHO","margins-medium":"index-module_margins-medium__ir-Bn","margins-small":"index-module_margins-small__F4y4n","margins-xsmall":"index-module_margins-xsmall__69GSc"},l=function(l){return e.createElement(r,m({},l,{styles:m(m({},a),s)}))};export{l as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../tslib.es6-
|
|
1
|
+
import{a as m}from"../../tslib.es6-763015ce.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-d5e49a2e.js";import"classnames";import"../../colors.module-30d06e1b.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__J-ZiR","montserrat-large":"index-module_montserrat-large__kI1Kn","montserrat-medium":"index-module_montserrat-medium__MxBIN","montserrat-small":"index-module_montserrat-small__PuaHc","montserrat-xsmall":"index-module_montserrat-xsmall__5IiBT","margins-xlarge":"index-module_margins-xlarge__fJPKA","margins-large":"index-module_margins-large__9EEcc","margins-medium":"index-module_margins-medium__fgO21","margins-small":"index-module_margins-small__6biA7","margins-xsmall":"index-module_margins-xsmall__qLu13"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as TitleResponsive};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TitleResponsive}from"./component.js";import"../../tslib.es6-
|
|
1
|
+
export{TitleResponsive}from"./component.js";import"../../tslib.es6-763015ce.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-30d06e1b.js";import"../../common.module-d5e49a2e.js";
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-
|
|
1
|
+
export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-763015ce.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-
|
|
1
|
+
import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-763015ce.js";import"react";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var o=function(o,e,i){void 0===e&&(e="Success"),void 0===i&&(i=30),t({view:"positive",title:e,text:o,offset:i})},e=function(o,e,i){void 0===e&&(e="Error"),void 0===i&&(i=30),t({view:"negative",title:e,text:o,offset:i})};export{e as showError,o as showSuccess};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a}from"../tslib.es6-763015ce.js";import l,{forwardRef as n,useRef as r,useState as t,useCallback as o,Fragment as i}from"react";import s from"react-merge-refs";import m from"classnames";import{Portal as d}from"../portal/component.js";import"react-dom";import"../portal/utils.js";var u="index-module_suffixContainer__L2XY5",c="index-module_suffixVisible__Yc0TG",f="index-module_hasSuffix__k5IuB",_="index-module_spacer__ylEiI",p="index-module_suffix__rQNLe",x="index-module_disabled__tntct",C="index-module_readOnly__tm8U3",v=function(v){return n((function(n,N){var E,h,b=n.value,g=n.defaultValue,y=n.onChange,O=n.onClear,j=n.suffix,V=void 0===j?"":j,B=n.placeholder,I=n.className,L=n.disabled,Y=n.readOnly,k=n.suffixContainerClassName,G=e(n,["value","defaultValue","onChange","onClear","suffix","placeholder","className","disabled","readOnly","suffixContainerClassName"]),P=void 0===b,Q=r(null),S=t(g||""),T=S[0],U=S[1],X=o((function(e,a){y&&y(e,a),P&&U(a.value)}),[y,P]),q=o((function(e){P&&U(""),O&&O(e)}),[O,P]),w=o((function(){return Q.current.parentElement}),[]),z=P?T:b;return l.createElement(i,null,l.createElement(v,a({ref:s([N,Q]),value:z,disabled:L,readOnly:Y,onChange:X,onClear:q,placeholder:B,className:m(I,(E={},E[c]=Boolean(z),E[f]=V,E))},G)),l.createElement(d,{getPortalContainer:w},l.createElement("div",{className:m(u,k)},l.createElement("span",{className:_},z),V&&l.createElement("div",{className:m(p,(h={},h[x]=L,h[C]=Y,h))},V))))}))};export{v as withSuffix};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{withSuffix}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{withSuffix}from"./component.js";import"../tslib.es6-763015ce.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as o,useMemo as n}from"react";import l from"classnames";import{Cells as r}from"./table/components/cells/index.js";import{EmptyList as a}from"./table/components/empty-list/index.js";import{Error as i}from"./table/components/error/index.js";import{Loading as c}from"./table/components/loading/index.js";import{Pagination as s}from"./table/components/pagination/index.js";import{TableHeader as m}from"./table/components/table-header/index.js";import{useTableData as u}from"./table/hooks/use-table-data.js";import{addQueryParam as d}from"./table/utils/add-query-param.js";import{getTags as p}from"./table/utils/get-tags.js";import{Image as f}from"./image/component.js";import"./image/typings.js";import"./image/constants.js";import"./cell/pure/component.js";import{removeQueryParam as g}from"./table/utils/remove-query-param.js";import{resetQueryParam as v}from"./table/utils/reset-query-param.js";function b(e,t,o){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:o}):null:null}function h(e,t,o){return e&&"string"!=typeof e?"function"==typeof e?e({row:t,refetch:o}):null:t[e]}function w(e){var o=e.columns,n=e.data,l=e.refetch,r=n.map((function(e){return{row:e,cells:o.map((function(o){var n,r,a,i,c,s,m,u=h((null===(n=o.row)||void 0===n?void 0:n.title)||o.accessor,e,l),d=b(null===(r=o.row)||void 0===r?void 0:r.image,e,l),p=(null===(a=o.row)||void 0===a?void 0:a.image)?t.createElement(f,{src:d,text:null==u?void 0:u.toString(),view:"ellipse"}):null,g=b(null===(i=o.row)||void 0===i?void 0:i.icon,e,l),v=g&&t.createElement(f,{icon:g,text:null==u?void 0:u.toString(),view:"ellipse"}),w=b(null===(c=o.row)||void 0===c?void 0:c.customAddon,e,l);return t.createElement(k.Cell,{title:u,subtitle:(null===(s=o.row)||void 0===s?void 0:s.subtitle)&&h(null===(m=o.row)||void 0===m?void 0:m.subtitle,e,l),addon:w||v||p||null})}))}}));return r}var C="index-module_table_wrapper__SeB5n",j="index-module_table__9sbda",x="index-module_clickable__k4S8g";function E(e){var f=e.columns,b=e.searchPlaceholder,h=void 0===b?"Поиск по таблице":b,E=e.records,k=e.tagsBuilder,y=e.promise,_=e.onRowClick,P=e.onCreateClick,S=e.onFiltersClick,B=e.onDownloadClick,D=e.refetch,T=e.language,q=u({promise:y,records:E}),F=q.loading,N=q.error,A=q.data,L=q.total,R=q.params,V=q.pagesCount,z=q.updateData,G=P?function(){return P(z)}:void 0,H=o((function(e){v(e),z()}),[]),I=function(){return S?S({submitCallback:function(e){return H(e)},initialValues:R}):null},J=function(e){d(e),z()},K=p({params:(null==R?void 0:R.where)||{},onDelete:function(e,t){g(e,t),z()},tagsBuilder:k,onClick:I}),M=n((function(){return w({columns:f,data:A,refetch:D||z})}),[A[0],A.length]);return t.createElement("div",{className:C},t.createElement(m,{language:T,searchText:(null==R?void 0:R.searchText)||"",addParam:J,searchPlaceholder:h,tags:K,onCreateClick:G,onDownloadClick:B,onFiltersClick:I,showFiltersButton:!!S}),t.createElement("div",{className:j},t.createElement("table",{cellSpacing:"0",cellPadding:"0"},t.createElement(r,{sort:null==R?void 0:R.sort,order:null==R?void 0:R.order,addParam:J,columns:f}),t.createElement("tbody",null,N&&t.createElement(i,{language:T}),!M.length&&!F&&t.createElement(a,{language:T}),F&&t.createElement(c,{columnsLength:f.length}),M.map((function(e){var o,n=e.row,r=e.cells;return t.createElement("tr",{onClick:function(){return e=n,null==_?void 0:_(e,z);var e},className:l((o={},o[x]=!!_,o)),style:{visibility:F?"collapse":"visible"}},r.map((function(e){return e})))}))))),!!y&&t.createElement(s,{language:T,currentPage:R?+R.page:1,recordsPerPage:R?+R.limit:10,pagesCount:+V,addParam:J,total:+L}))}var k={Cell:e,TableComponent:E};export{k as T,E as a,w as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createContext as t,forwardRef as e,createElement as r,useContext as n,useImperativeHandle as o,useEffect as a,Children as i,useRef as u,useReducer as c,useCallback as l,useMemo as s,Component as f,useLayoutEffect as p}from"react";import{r as d}from"./index-4c130f69.js";var v=Array.isArray,y=Object.keys,h=Object.prototype.hasOwnProperty,b="undefined"!=typeof Element;function m(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var r,n,o,a=v(t),i=v(e);if(a&&i){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!m(t[r],e[r]))return!1;return!0}if(a!=i)return!1;var u=t instanceof Date,c=e instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==e.getTime();var l=t instanceof RegExp,s=e instanceof RegExp;if(l!=s)return!1;if(l&&s)return t.toString()==e.toString();var f=y(t);if((n=f.length)!==y(e).length)return!1;for(r=n;0!=r--;)if(!h.call(e,f[r]))return!1;if(b&&t instanceof Element&&e instanceof Element)return t===e;for(r=n;0!=r--;)if(!("_owner"===(o=f[r])&&t.$$typeof||m(t[o],e[o])))return!1;return!0}return t!=t&&e!=e}var _=function(t,e){try{return m(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},g=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===j}(t)}(t)};var j="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function E(t,e){return!1!==e.clone&&e.isMergeableObject(t)?O((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function S(t,e,r){return t.concat(e).map((function(t){return E(t,r)}))}function O(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||S,r.isMergeableObject=r.isMergeableObject||g;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(t,e,r){var n={};return r.isMergeableObject(t)&&Object.keys(t).forEach((function(e){n[e]=E(t[e],r)})),Object.keys(e).forEach((function(o){r.isMergeableObject(e[o])&&t[o]?n[o]=O(t[o],e[o],r):n[o]=E(e[o],r)})),n}(t,e,r):E(e,r)}O.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return O(t,r,e)}),{})};var A=O,T="object"==typeof global&&global&&global.Object===Object&&global,w="object"==typeof self&&self&&self.Object===Object&&self,F=T||w||Function("return this")(),I=F.Symbol,R=Object.prototype,k=R.hasOwnProperty,D=R.toString,P=I?I.toStringTag:void 0;var M=Object.prototype.toString;var N=I?I.toStringTag:void 0;function V(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":N&&N in Object(t)?function(t){var e=k.call(t,P),r=t[P];try{t[P]=void 0;var n=!0}catch(t){}var o=D.call(t);return n&&(e?t[P]=r:delete t[P]),o}(t):function(t){return M.call(t)}(t)}function U(t,e){return function(r){return t(e(r))}}var x=U(Object.getPrototypeOf,Object);function C(t){return null!=t&&"object"==typeof t}var L=Function.prototype,B=Object.prototype,z=L.toString,$=B.hasOwnProperty,W=z.call(Object);function G(t){if(!C(t)||"[object Object]"!=V(t))return!1;var e=x(t);if(null===e)return!0;var r=$.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&z.call(r)==W}function H(t,e){return t===e||t!=t&&e!=e}function K(t,e){for(var r=t.length;r--;)if(H(t[r][0],e))return r;return-1}var Y=Array.prototype.splice;function q(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function J(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}q.prototype.clear=function(){this.__data__=[],this.size=0},q.prototype.delete=function(t){var e=this.__data__,r=K(e,t);return!(r<0)&&(r==e.length-1?e.pop():Y.call(e,r,1),--this.size,!0)},q.prototype.get=function(t){var e=this.__data__,r=K(e,t);return r<0?void 0:e[r][1]},q.prototype.has=function(t){return K(this.__data__,t)>-1},q.prototype.set=function(t,e){var r=this.__data__,n=K(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Q(t){if(!J(t))return!1;var e=V(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var X,Z=F["__core-js_shared__"],tt=(X=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"";var et=Function.prototype.toString;function rt(t){if(null!=t){try{return et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var nt=/^\[object .+?Constructor\]$/,ot=Function.prototype,at=Object.prototype,it=ot.toString,ut=at.hasOwnProperty,ct=RegExp("^"+it.call(ut).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lt(t){return!(!J(t)||(e=t,tt&&tt in e))&&(Q(t)?ct:nt).test(rt(t));var e}function st(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return lt(r)?r:void 0}var ft=st(F,"Map"),pt=st(Object,"create");var dt=Object.prototype.hasOwnProperty;var vt=Object.prototype.hasOwnProperty;function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ht(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}yt.prototype.clear=function(){this.__data__=pt?pt(null):{},this.size=0},yt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},yt.prototype.get=function(t){var e=this.__data__;if(pt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return dt.call(e,t)?e[t]:void 0},yt.prototype.has=function(t){var e=this.__data__;return pt?void 0!==e[t]:vt.call(e,t)},yt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=pt&&void 0===e?"__lodash_hash_undefined__":e,this},bt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(ft||q),string:new yt}},bt.prototype.delete=function(t){var e=ht(this,t).delete(t);return this.size-=e?1:0,e},bt.prototype.get=function(t){return ht(this,t).get(t)},bt.prototype.has=function(t){return ht(this,t).has(t)},bt.prototype.set=function(t,e){var r=ht(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function mt(t){var e=this.__data__=new q(t);this.size=e.size}mt.prototype.clear=function(){this.__data__=new q,this.size=0},mt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},mt.prototype.get=function(t){return this.__data__.get(t)},mt.prototype.has=function(t){return this.__data__.has(t)},mt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof q){var n=r.__data__;if(!ft||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new bt(n)}return r.set(t,e),this.size=r.size,this};var _t=function(){try{var t=st(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function gt(t,e,r){"__proto__"==e&&_t?_t(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var jt=Object.prototype.hasOwnProperty;function Et(t,e,r){var n=t[e];jt.call(t,e)&&H(n,r)&&(void 0!==r||e in t)||gt(t,e,r)}function St(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a<i;){var u=e[a],c=n?n(r[u],t[u],u,r,t):void 0;void 0===c&&(c=t[u]),o?gt(r,u,c):Et(r,u,c)}return r}function Ot(t){return C(t)&&"[object Arguments]"==V(t)}var At=Object.prototype,Tt=At.hasOwnProperty,wt=At.propertyIsEnumerable,Ft=Ot(function(){return arguments}())?Ot:function(t){return C(t)&&Tt.call(t,"callee")&&!wt.call(t,"callee")},It=Array.isArray;var Rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,kt=Rt&&"object"==typeof module&&module&&!module.nodeType&&module,Dt=kt&&kt.exports===Rt?F.Buffer:void 0,Pt=(Dt?Dt.isBuffer:void 0)||function(){return!1},Mt=/^(?:0|[1-9]\d*)$/;function Nt(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Mt.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var Ut={};function xt(t){return function(e){return t(e)}}Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Arguments]"]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object Boolean]"]=Ut["[object DataView]"]=Ut["[object Date]"]=Ut["[object Error]"]=Ut["[object Function]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut["[object Object]"]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object WeakMap]"]=!1;var Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,Lt=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,Bt=Lt&&Lt.exports===Ct&&T.process,zt=function(){try{var t=Lt&&Lt.require&&Lt.require("util").types;return t||Bt&&Bt.binding&&Bt.binding("util")}catch(t){}}(),$t=zt&&zt.isTypedArray,Wt=$t?xt($t):function(t){return C(t)&&Vt(t.length)&&!!Ut[V(t)]},Gt=Object.prototype.hasOwnProperty;function Ht(t,e){var r=It(t),n=!r&&Ft(t),o=!r&&!n&&Pt(t),a=!r&&!n&&!o&&Wt(t),i=r||n||o||a,u=i?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=u.length;for(var l in t)!e&&!Gt.call(t,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Nt(l,c))||u.push(l);return u}var Kt=Object.prototype;function Yt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Kt)}var qt=U(Object.keys,Object),Jt=Object.prototype.hasOwnProperty;function Qt(t){return null!=t&&Vt(t.length)&&!Q(t)}function Xt(t){return Qt(t)?Ht(t):function(t){if(!Yt(t))return qt(t);var e=[];for(var r in Object(t))Jt.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var Zt=Object.prototype.hasOwnProperty;function te(t){if(!J(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Yt(t),r=[];for(var n in t)("constructor"!=n||!e&&Zt.call(t,n))&&r.push(n);return r}function ee(t){return Qt(t)?Ht(t,!0):te(t)}var re="object"==typeof exports&&exports&&!exports.nodeType&&exports,ne=re&&"object"==typeof module&&module&&!module.nodeType&&module,oe=ne&&ne.exports===re?F.Buffer:void 0,ae=oe?oe.allocUnsafe:void 0;function ie(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function ue(){return[]}var ce=Object.prototype.propertyIsEnumerable,le=Object.getOwnPropertySymbols,se=le?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}(le(t),(function(e){return ce.call(t,e)})))}:ue;function fe(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var pe=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)fe(e,se(t)),t=x(t);return e}:ue;function de(t,e,r){var n=e(t);return It(t)?n:fe(n,r(t))}function ve(t){return de(t,Xt,se)}function ye(t){return de(t,ee,pe)}var he=st(F,"DataView"),be=st(F,"Promise"),me=st(F,"Set"),_e=st(F,"WeakMap"),ge="[object Map]",je="[object Promise]",Ee="[object Set]",Se="[object WeakMap]",Oe="[object DataView]",Ae=rt(he),Te=rt(ft),we=rt(be),Fe=rt(me),Ie=rt(_e),Re=V;(he&&Re(new he(new ArrayBuffer(1)))!=Oe||ft&&Re(new ft)!=ge||be&&Re(be.resolve())!=je||me&&Re(new me)!=Ee||_e&&Re(new _e)!=Se)&&(Re=function(t){var e=V(t),r="[object Object]"==e?t.constructor:void 0,n=r?rt(r):"";if(n)switch(n){case Ae:return Oe;case Te:return ge;case we:return je;case Fe:return Ee;case Ie:return Se}return e});var ke=Re,De=Object.prototype.hasOwnProperty;var Pe=F.Uint8Array;function Me(t){var e=new t.constructor(t.byteLength);return new Pe(e).set(new Pe(t)),e}var Ne=/\w*$/;var Ve=I?I.prototype:void 0,Ue=Ve?Ve.valueOf:void 0;function xe(t,e,r){var n,o,a,i=t.constructor;switch(e){case"[object ArrayBuffer]":return Me(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?Me(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?Me(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return(a=new(o=t).constructor(o.source,Ne.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=t,Ue?Object(Ue.call(n)):{}}}var Ce=Object.create,Le=function(){function t(){}return function(e){if(!J(e))return{};if(Ce)return Ce(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var Be=zt&&zt.isMap,ze=Be?xt(Be):function(t){return C(t)&&"[object Map]"==ke(t)};var $e=zt&&zt.isSet,We=$e?xt($e):function(t){return C(t)&&"[object Set]"==ke(t)},Ge="[object Arguments]",He="[object Function]",Ke="[object Object]",Ye={};function qe(t,e,r,n,o,a){var i,u=1&e,c=2&e,l=4&e;if(r&&(i=o?r(t,n,o,a):r(t)),void 0!==i)return i;if(!J(t))return t;var s=It(t);if(s){if(i=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&De.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!u)return ie(t,i)}else{var f=ke(t),p=f==He||"[object GeneratorFunction]"==f;if(Pt(t))return function(t,e){if(e)return t.slice();var r=t.length,n=ae?ae(r):new t.constructor(r);return t.copy(n),n}(t,u);if(f==Ke||f==Ge||p&&!o){if(i=c||p?{}:function(t){return"function"!=typeof t.constructor||Yt(t)?{}:Le(x(t))}(t),!u)return c?function(t,e){return St(t,pe(t),e)}(t,function(t,e){return t&&St(e,ee(e),t)}(i,t)):function(t,e){return St(t,se(t),e)}(t,function(t,e){return t&&St(e,Xt(e),t)}(i,t))}else{if(!Ye[f])return o?t:{};i=xe(t,f,u)}}a||(a=new mt);var d=a.get(t);if(d)return d;a.set(t,i),We(t)?t.forEach((function(n){i.add(qe(n,e,r,n,t,a))})):ze(t)&&t.forEach((function(n,o){i.set(o,qe(n,e,r,o,t,a))}));var v=s?void 0:(l?c?ye:ve:c?ee:Xt)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(v||t,(function(n,o){v&&(n=t[o=n]),Et(i,o,qe(n,e,r,o,t,a))})),i}Ye[Ge]=Ye["[object Array]"]=Ye["[object ArrayBuffer]"]=Ye["[object DataView]"]=Ye["[object Boolean]"]=Ye["[object Date]"]=Ye["[object Float32Array]"]=Ye["[object Float64Array]"]=Ye["[object Int8Array]"]=Ye["[object Int16Array]"]=Ye["[object Int32Array]"]=Ye["[object Map]"]=Ye["[object Number]"]=Ye[Ke]=Ye["[object RegExp]"]=Ye["[object Set]"]=Ye["[object String]"]=Ye["[object Symbol]"]=Ye["[object Uint8Array]"]=Ye["[object Uint8ClampedArray]"]=Ye["[object Uint16Array]"]=Ye["[object Uint32Array]"]=!0,Ye["[object Error]"]=Ye[He]=Ye["[object WeakMap]"]=!1;function Je(t){return qe(t,4)}function Qe(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function Xe(t){return"symbol"==typeof t||C(t)&&"[object Symbol]"==V(t)}function Ze(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ze.Cache||bt),r}Ze.Cache=bt;var tr,er,rr,nr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/\\(\\)?/g,ar=(tr=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nr,(function(t,r,n,o){e.push(n?o.replace(or,"$1"):r||t)})),e},er=Ze(tr,(function(t){return 500===rr.size&&rr.clear(),t})),rr=er.cache,er);function ir(t){if("string"==typeof t||Xe(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}var ur=I?I.prototype:void 0,cr=ur?ur.toString:void 0;function lr(t){if("string"==typeof t)return t;if(It(t))return Qe(t,lr)+"";if(Xe(t))return cr?cr.call(t):"";var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function sr(t){return It(t)?Qe(t,ir):Xe(t)?[t]:ie(ar(function(t){return null==t?"":lr(t)}(t)))}var fr="production"===process.env.NODE_ENV;function pr(t,e){if(!fr){if(t)return;var r="Warning: "+e;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(t){}}}var dr={};dr[d.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dr[d.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function vr(t){return qe(t,5)}function yr(){return yr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yr.apply(this,arguments)}function hr(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}function br(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var mr=function(t){return Array.isArray(t)&&0===t.length},_r=function(t){return"function"==typeof t},gr=function(t){return null!==t&&"object"==typeof t},jr=function(t){return String(Math.floor(Number(t)))===t},Er=function(t){return"[object String]"===Object.prototype.toString.call(t)},Sr=function(t){return 0===i.count(t)},Or=function(t){return gr(t)&&_r(t.then)};function Ar(t,e,r,n){void 0===n&&(n=0);for(var o=sr(e);t&&n<o.length;)t=t[o[n++]];return void 0===t?r:t}function Tr(t,e,r){for(var n=Je(t),o=n,a=0,i=sr(e);a<i.length-1;a++){var u=i[a],c=Ar(t,i.slice(0,a+1));if(c&&(gr(c)||Array.isArray(c)))o=o[u]=Je(c);else{var l=i[a+1];o=o[u]=jr(l)&&Number(l)>=0?[]:{}}}return(0===a?t:o)[i[a]]===r?t:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function wr(t,e,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(t);o<a.length;o++){var i=a[o],u=t[i];gr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},wr(u,e,r,n[i])):n[i]=e}return n}var Fr=t(void 0);Fr.displayName="FormikContext";var Ir=Fr.Provider;function Rr(t,e){switch(e.type){case"SET_VALUES":return yr({},t,{values:e.payload});case"SET_TOUCHED":return yr({},t,{touched:e.payload});case"SET_ERRORS":return _(t.errors,e.payload)?t:yr({},t,{errors:e.payload});case"SET_STATUS":return yr({},t,{status:e.payload});case"SET_ISSUBMITTING":return yr({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return yr({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return yr({},t,{values:Tr(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return yr({},t,{touched:Tr(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return yr({},t,{errors:Tr(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return yr({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return yr({},t,{touched:wr(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return yr({},t,{isSubmitting:!1});default:return t}}Fr.Consumer;var kr={},Dr={};function Pr(t){var e=t.validateOnChange,r=void 0===e||e,n=t.validateOnBlur,o=void 0===n||n,i=t.validateOnMount,f=void 0!==i&&i,p=t.isInitialValid,d=t.enableReinitialize,v=void 0!==d&&d,y=t.onSubmit,h=hr(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),b=yr({validateOnChange:r,validateOnBlur:o,validateOnMount:f,onSubmit:y},h),m=u(b.initialValues),g=u(b.initialErrors||kr),j=u(b.initialTouched||Dr),E=u(b.initialStatus),S=u(!1),O=u({});"production"!==process.env.NODE_ENV&&a((function(){void 0!==p&&("production"!==process.env.NODE_ENV?pr(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):pr(!1))}),[]),a((function(){return S.current=!0,function(){S.current=!1}}),[]);var T=c(Rr,{values:b.initialValues,errors:b.initialErrors||kr,touched:b.initialTouched||Dr,status:b.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=T[0],F=T[1],I=l((function(t,e){return new Promise((function(r,n){var o=b.validate(t,e);null==o?r(kr):Or(o)?o.then((function(t){r(t||kr)}),(function(t){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",t),n(t)})):r(o)}))}),[b.validate]),R=l((function(t,e){var r=b.validationSchema,n=_r(r)?r(e):r,o=e&&n.validateAt?n.validateAt(e,t):function(t,e,r,n){void 0===r&&(r=!1);void 0===n&&(n={});var o=Vr(t);return e[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(t,n);return new Promise((function(t,e){o.then((function(){t(kr)}),(function(r){"ValidationError"===r.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return Tr(e,t.path,t.message);var r=t.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;Ar(e,i.path)||(e=Tr(e,i.path,i.message))}}return e}(r)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",r),e(r))}))}))}),[b.validationSchema]),k=l((function(t,e){return new Promise((function(r){return r(O.current[t].validate(e))}))}),[]),D=l((function(t){var e=Object.keys(O.current).filter((function(t){return _r(O.current[t].validate)})),r=e.length>0?e.map((function(e){return k(e,Ar(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(t){return t.reduce((function(t,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(t=Tr(t,e[n],r)),t}),{})}))}),[k]),P=l((function(t){return Promise.all([D(t),b.validationSchema?R(t):{},b.validate?I(t):{}]).then((function(t){var e=t[0],r=t[1],n=t[2];return A.all([e,r,n],{arrayMerge:Ur})}))}),[b.validate,b.validationSchema,D,I,R]),M=Cr((function(t){return void 0===t&&(t=w.values),F({type:"SET_ISVALIDATING",payload:!0}),P(t).then((function(t){return S.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:t})),t}))}));a((function(){f&&!0===S.current&&_(m.current,b.initialValues)&&M(m.current)}),[f,M]);var N=l((function(t){var e=t&&t.values?t.values:m.current,r=t&&t.errors?t.errors:g.current?g.current:b.initialErrors||{},n=t&&t.touched?t.touched:j.current?j.current:b.initialTouched||{},o=t&&t.status?t.status:E.current?E.current:b.initialStatus;m.current=e,g.current=r,j.current=n,E.current=o;var a=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:r,touched:n,status:o,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(b.onReset){var i=b.onReset(w.values,tt);Or(i)?i.then(a):a()}else a()}),[b.initialErrors,b.initialStatus,b.initialTouched]);a((function(){!0!==S.current||_(m.current,b.initialValues)||(v&&(m.current=b.initialValues,N()),f&&M(m.current))}),[v,b.initialValues,N,f,M]),a((function(){v&&!0===S.current&&!_(g.current,b.initialErrors)&&(g.current=b.initialErrors||kr,F({type:"SET_ERRORS",payload:b.initialErrors||kr}))}),[v,b.initialErrors]),a((function(){v&&!0===S.current&&!_(j.current,b.initialTouched)&&(j.current=b.initialTouched||Dr,F({type:"SET_TOUCHED",payload:b.initialTouched||Dr}))}),[v,b.initialTouched]),a((function(){v&&!0===S.current&&!_(E.current,b.initialStatus)&&(E.current=b.initialStatus,F({type:"SET_STATUS",payload:b.initialStatus}))}),[v,b.initialStatus,b.initialTouched]);var V=Cr((function(t){if(O.current[t]&&_r(O.current[t].validate)){var e=Ar(w.values,t),r=O.current[t].validate(e);return Or(r)?(F({type:"SET_ISVALIDATING",payload:!0}),r.then((function(t){return t})).then((function(e){F({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),F({type:"SET_ISVALIDATING",payload:!1})}))):(F({type:"SET_FIELD_ERROR",payload:{field:t,value:r}}),Promise.resolve(r))}return b.validationSchema?(F({type:"SET_ISVALIDATING",payload:!0}),R(w.values,t).then((function(t){return t})).then((function(e){F({type:"SET_FIELD_ERROR",payload:{field:t,value:e[t]}}),F({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),U=l((function(t,e){var r=e.validate;O.current[t]={validate:r}}),[]),x=l((function(t){delete O.current[t]}),[]),C=Cr((function(t,e){return F({type:"SET_TOUCHED",payload:t}),(void 0===e?o:e)?M(w.values):Promise.resolve()})),L=l((function(t){F({type:"SET_ERRORS",payload:t})}),[]),B=Cr((function(t,e){var n=_r(t)?t(w.values):t;return F({type:"SET_VALUES",payload:n}),(void 0===e?r:e)?M(n):Promise.resolve()})),z=l((function(t,e){F({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),$=Cr((function(t,e,n){return F({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===n?r:n)?M(Tr(w.values,t,e)):Promise.resolve()})),W=l((function(t,e){var r,n=e,o=t;if(!Er(t)){t.persist&&t.persist();var a=t.target?t.target:t.currentTarget,i=a.type,u=a.name,c=a.id,l=a.value,s=a.checked,f=a.outerHTML,p=a.options,d=a.multiple;(n=e||(u||c))||"production"===process.env.NODE_ENV||Nr({htmlContent:f,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(t,e,r){if("boolean"==typeof t)return Boolean(e);var n=[],o=!1,a=-1;if(Array.isArray(t))n=t,o=(a=t.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(e);if(e&&r&&!o)return n.concat(r);if(!o)return n;return n.slice(0,a).concat(n.slice(a+1))}(Ar(w.values,n),s,l):p&&d?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(p):l}n&&$(n,o)}),[$,w.values]),G=Cr((function(t){if(Er(t))return function(e){return W(e,t)};W(t)})),H=Cr((function(t,e,r){return void 0===e&&(e=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===r?o:r)?M(w.values):Promise.resolve()})),K=l((function(t,e){t.persist&&t.persist();var r=t.target,n=r.name,o=r.id,a=r.outerHTML,i=e||(n||o);i||"production"===process.env.NODE_ENV||Nr({htmlContent:a,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),H(i,!0)}),[H]),Y=Cr((function(t){if(Er(t))return function(e){return K(e,t)};K(t)})),q=l((function(t){_r(t)?F({type:"SET_FORMIK_STATE",payload:t}):F({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),J=l((function(t){F({type:"SET_STATUS",payload:t})}),[]),Q=l((function(t){F({type:"SET_ISSUBMITTING",payload:t})}),[]),X=Cr((function(){return F({type:"SUBMIT_ATTEMPT"}),M().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var r;try{if(void 0===(r=et()))return}catch(t){throw t}return Promise.resolve(r).then((function(t){return S.current&&F({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(S.current)throw F({type:"SUBMIT_FAILURE"}),t}))}if(S.current&&(F({type:"SUBMIT_FAILURE"}),e))throw t}))})),Z=Cr((function(t){if(t&&t.preventDefault&&_r(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&_r(t.stopPropagation)&&t.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var e=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==e&&e instanceof HTMLButtonElement&&(e.attributes&&e.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?pr(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):pr(!1)))}X().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),tt={resetForm:N,validateForm:M,validateField:V,setErrors:L,setFieldError:z,setFieldTouched:H,setFieldValue:$,setStatus:J,setSubmitting:Q,setTouched:C,setValues:B,setFormikState:q,submitForm:X},et=Cr((function(){return y(w.values,tt)})),rt=Cr((function(t){t&&t.preventDefault&&_r(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&_r(t.stopPropagation)&&t.stopPropagation(),N()})),nt=l((function(t){return{value:Ar(w.values,t),error:Ar(w.errors,t),touched:!!Ar(w.touched,t),initialValue:Ar(m.current,t),initialTouched:!!Ar(j.current,t),initialError:Ar(g.current,t)}}),[w.errors,w.touched,w.values]),ot=l((function(t){return{setValue:function(e,r){return $(t,e,r)},setTouched:function(e,r){return H(t,e,r)},setError:function(e){return z(t,e)}}}),[$,H,z]),at=l((function(t){var e=gr(t),r=e?t.name:t,n=Ar(w.values,r),o={name:r,value:n,onChange:G,onBlur:Y};if(e){var a=t.type,i=t.value,u=t.as,c=t.multiple;"checkbox"===a?void 0===i?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(i)),o.value=i):"radio"===a?(o.checked=n===i,o.value=i):"select"===u&&c&&(o.value=o.value||[],o.multiple=!0)}return o}),[Y,G,w.values]),it=s((function(){return!_(m.current,w.values)}),[m.current,w.values]),ut=s((function(){return void 0!==p?it?w.errors&&0===Object.keys(w.errors).length:!1!==p&&_r(p)?p(b):p:w.errors&&0===Object.keys(w.errors).length}),[p,it,w.errors,b]);return yr({},w,{initialValues:m.current,initialErrors:g.current,initialTouched:j.current,initialStatus:E.current,handleBlur:Y,handleChange:G,handleReset:rt,handleSubmit:Z,resetForm:N,setErrors:L,setFormikState:q,setFieldTouched:H,setFieldValue:$,setFieldError:z,setStatus:J,setSubmitting:Q,setTouched:C,setValues:B,submitForm:X,validateForm:M,validateField:V,isValid:ut,dirty:it,unregisterField:x,registerField:U,getFieldProps:at,getFieldMeta:nt,getFieldHelpers:ot,validateOnBlur:o,validateOnChange:r,validateOnMount:f})}function Mr(t){var e=Pr(t),n=t.component,u=t.children,c=t.render,l=t.innerRef;return o(l,(function(){return e})),"production"!==process.env.NODE_ENV&&a((function(){t.render&&("production"!==process.env.NODE_ENV?pr(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):pr(!1))}),[]),r(Ir,{value:e},n?r(n,e):c?c(e):u?_r(u)?u(e):Sr(u)?null:i.only(u):null)}function Nr(t){var e=t.htmlContent,r=t.documentationAnchorLink,n=t.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+r+"\n ")}function Vr(t){var e=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=String(r);!0===Array.isArray(t[n])?e[n]=t[n].map((function(t){return!0===Array.isArray(t)||G(t)?Vr(t):""!==t?t:void 0})):G(t[n])?e[n]=Vr(t[n]):e[n]=""!==t[n]?t[n]:void 0}return e}function Ur(t,e,r){var n=t.slice();return e.forEach((function(e,o){if(void 0===n[o]){var a=!1!==r.clone&&r.isMergeableObject(e);n[o]=a?A(Array.isArray(e)?[]:{},e,r):e}else r.isMergeableObject(e)?n[o]=A(t[o],e,r):-1===t.indexOf(e)&&n.push(e)})),n}var xr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?p:a;function Cr(t){var e=u(t);return xr((function(){e.current=t})),l((function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.current.apply(void 0,r)}),[])}e((function(t,e){var o,a=t.action,i=hr(t,["action"]),u=null!=a?a:"#",c=((o=n(Fr))||("production"!==process.env.NODE_ENV?pr(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):pr(!1)),o),l=c.handleReset,s=c.handleSubmit;return r("form",Object.assign({onSubmit:s,ref:e,onReset:l,action:u},i))})).displayName="Form";var Lr=function(t,e,r){var n=Br(t);return n.splice(e,0,r),n},Br=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(yr({},t,{length:e+1}))}return[]},zr=function(t){var e,n;function o(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(t,e,n){var o=r.props,a=o.name;(0,o.formik.setFormikState)((function(r){var o="function"==typeof n?n:t,i="function"==typeof e?e:t,u=Tr(r.values,a,t(Ar(r.values,a))),c=n?o(Ar(r.errors,a)):void 0,l=e?i(Ar(r.touched,a)):void 0;return mr(c)&&(c=void 0),mr(l)&&(l=void 0),yr({},r,{values:u,errors:n?Tr(r.errors,a,c):r.errors,touched:e?Tr(r.touched,a,l):r.touched})}))},r.push=function(t){return r.updateArrayField((function(e){return[].concat(Br(e),[vr(t)])}),!1,!1)},r.handlePush=function(t){return function(){return r.push(t)}},r.swap=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Br(t),o=n[e];return n[e]=n[r],n[r]=o,n}(r,t,e)}),!0,!0)},r.handleSwap=function(t,e){return function(){return r.swap(t,e)}},r.move=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Br(t),o=n[e];return n.splice(e,1),n.splice(r,0,o),n}(r,t,e)}),!0,!0)},r.handleMove=function(t,e){return function(){return r.move(t,e)}},r.insert=function(t,e){return r.updateArrayField((function(r){return Lr(r,t,e)}),(function(e){return Lr(e,t,null)}),(function(e){return Lr(e,t,null)}))},r.handleInsert=function(t,e){return function(){return r.insert(t,e)}},r.replace=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Br(t);return n[e]=r,n}(r,t,e)}),!1,!1)},r.handleReplace=function(t,e){return function(){return r.replace(t,e)}},r.unshift=function(t){var e=-1;return r.updateArrayField((function(r){var n=r?[t].concat(r):[t];return e<0&&(e=n.length),n}),(function(t){var r=t?[null].concat(t):[null];return e<0&&(e=r.length),r}),(function(t){var r=t?[null].concat(t):[null];return e<0&&(e=r.length),r})),e},r.handleUnshift=function(t){return function(){return r.unshift(t)}},r.handleRemove=function(t){return function(){return r.remove(t)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(br(r)),r.pop=r.pop.bind(br(r)),r}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=o.prototype;return a.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!_(Ar(t.formik.values,t.name),Ar(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},a.remove=function(t){var e;return this.updateArrayField((function(r){var n=r?Br(r):[];return e||(e=n[t]),_r(n.splice)&&n.splice(t,1),n}),!0,!0),e},a.pop=function(){var t;return this.updateArrayField((function(e){var r=e;return t||(t=r&&r.pop&&r.pop()),r}),!0,!0),t},a.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,n=e.component,o=e.render,a=e.children,u=e.name,c=yr({},t,{form:hr(e.formik,["validate","validationSchema"]),name:u});return n?r(n,c):o?o(c):a?"function"==typeof a?a(c):Sr(a)?null:i.only(a):null},o}(f);zr.defaultProps={validateOnChange:!0};export{Mr as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r}from"./_commonjsHelpers-827a0f01.js";var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function o(r,e){try{return[decodeURIComponent(r.join(""))]}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],o(t),o(n))}function a(r){try{return decodeURIComponent(r)}catch(a){for(var e=r.match(t)||[],n=1;n<e.length;n++)e=(r=o(e,n).join("")).match(t)||[];return r}}var s=function(r){if("string"!=typeof r)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch(e){return function(r){for(var e={"%FE%FF":"��","%FF%FE":"��"},t=n.exec(r);t;){try{e[t[0]]=decodeURIComponent(t[0])}catch(r){var o=a(t[0]);o!==t[0]&&(e[t[0]]=o)}t=n.exec(r)}e["%C2"]="�";for(var s=Object.keys(e),c=0;c<s.length;c++){var i=s[c];r=r.replace(new RegExp(i,"g"),e[i])}return r}(r)}},c=(r,e)=>{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]},i=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a<n.length;a++){var s=n[a],c=r[s];(o?-1!==e.indexOf(s):e(s,c,r))&&(t[s]=c)}return t},l=r((function(r,e){const t=Symbol("encodeFragmentIdentifier");function n(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(r,e){return e.encode?e.strict?encodeURIComponent(r).replace(/[!'()*]/g,(r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)):encodeURIComponent(r):r}function a(r,e){return e.decode?s(r):r}function l(r){return Array.isArray(r)?r.sort():"object"==typeof r?l(Object.keys(r)).sort(((r,e)=>Number(r)-Number(e))).map((e=>r[e])):r}function u(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function p(r){const e=(r=u(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function f(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function y(r,e){n((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"colon-list-separator":return(r,t,n)=>{e=/(:list)$/.exec(r),r=r.replace(/:list$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),s="string"==typeof t&&!o&&a(t,r).includes(r.arrayFormatSeparator);t=s?a(t,r):t;const c=o||s?t.split(r.arrayFormatSeparator).map((e=>a(e,r))):null===t?t:a(t,r);n[e]=c};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?a(t,r):t);const s=null===t?[]:t.split(r.arrayFormatSeparator).map((e=>a(e,r)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),o=Object.create(null);if("string"!=typeof r)return o;if(!(r=r.trim().replace(/^[?#&]/,"")))return o;for(const n of r.split("&")){if(""===n)continue;let[r,s]=c(e.decode?n.replace(/\+/g," "):n,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:a(s,e),t(a(r,e),s,o)}for(const r of Object.keys(o)){const t=o[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=f(t[r],e);else o[r]=f(t,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce(((r,e)=>{const t=o[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=l(t):r[e]=t,r}),Object.create(null))}e.extract=p,e.parse=y,e.stringify=(r,e)=>{if(!r)return"";n((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],a=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const a=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[",a,"]"].join("")]:[...t,[o(e,r),"[",o(a,r),"]=",o(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[]"].join("")]:[...t,[o(e,r),"[]=",o(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),":list="].join("")]:[...t,[o(e,r),":list=",o(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,a)=>void 0===a||r.skipNull&&null===a||r.skipEmptyString&&""===a?n:(a=null===a?"":a,0===n.length?[[o(t,r),e,o(a,r)].join("")]:[[n,o(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,o(e,r)]:[...t,[o(e,r),"=",o(n,r)].join("")]}}(e),s={};for(const e of Object.keys(r))t(e)||(s[e]=r[e]);const c=Object.keys(s);return!1!==e.sort&&c.sort(e.sort),c.map((t=>{const n=r[t];return void 0===n?"":null===n?o(t,e):Array.isArray(n)?0===n.length&&"bracket-separator"===e.arrayFormat?o(t,e)+"[]":n.reduce(a(t),[]).join("&"):o(t,e)+"="+o(n,e)})).filter((r=>r.length>0)).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=c(r,"#");return Object.assign({url:t.split("?")[0]||"",query:y(p(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:a(n,e)}:{})},e.stringifyUrl=(r,n)=>{n=Object.assign({encode:!0,strict:!0,[t]:!0},n);const a=u(r.url).split("?")[0]||"",s=e.extract(r.url),c=e.parse(s,{sort:!1}),i=Object.assign(c,r.query);let l=e.stringify(i,n);l&&(l=`?${l}`);let p=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(p=`#${n[t]?o(r.fragmentIdentifier,n):r.fragmentIdentifier}`),`${a}${l}${p}`},e.pick=(r,n,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[t]:!1},o);const{url:a,query:s,fragmentIdentifier:c}=e.parseUrl(r,o);return e.stringifyUrl({url:a,query:i(s,n),fragmentIdentifier:c},o)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}}));l.extract;var u=l.parse,p=l.stringify;function f(){return u(window.location.search)}l.parseUrl,l.stringifyUrl,l.pick,l.exclude;export{f as p,p as q};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{use-image-render-component-076f45c0.d.ts → use-image-render-component-2281d809.d.ts}
RENAMED
|
File without changes
|
/package/dist/{use-image-render-component-076f45c0.js → use-image-render-component-2281d809.js}
RENAMED
|
File without changes
|