@alphakits/ui 1.28.4 → 1.28.6
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/PhotoS-5a93e2b5.js +1 -0
- 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/back-button/component.js +1 -1
- package/dist/back-button/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 +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button-arrow/component.d.ts +5 -6
- package/dist/button-arrow/component.js +1 -1
- package/dist/button-arrow/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/use-calendar.js +1 -1
- package/dist/calendar/use-period.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/calendar-input/utils.js +1 -1
- package/dist/capitalize-3c943746.js +1 -0
- 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/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.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-5351b340.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-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/empty-page/component.js +1 -1
- package/dist/empty-page/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/index.d.ts +0 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.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-829e83d2.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/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-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index-09680f4f.js +1 -0
- package/dist/index-13b8bc9e.js +1 -0
- package/dist/{index-d3e15cd0.js → index-25d626ca.js} +1 -1
- package/dist/{index-75fccbac.js → index-2ff34580.js} +1 -1
- package/dist/index-3cc71f90.js +1 -0
- package/dist/index-43957127.js +1 -0
- package/dist/{index-46e55615.js → index-5936fda4.js} +1 -1
- package/dist/{index-111aa4af.js → index-66bee959.js} +1 -1
- package/dist/{index-a5623f27.js → index-706511da.js} +1 -1
- package/dist/{index-440f8866.js → index-7222347c.js} +1 -1
- package/dist/{index-7231cc09.js → index-758a1860.js} +1 -1
- package/dist/index-8a4ae4bb.js +1 -0
- package/dist/index.css +1 -1
- package/dist/index.ts +1 -0
- 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/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/{isSymbol-04f90ccb.js → isSymbol-a58f7659.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-back-button/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/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.d.ts +2 -2
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/types.d.ts +2 -4
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/page-with-controls/component.js +1 -1
- package/dist/page-with-controls/index.js +1 -1
- package/dist/{parse-query-params-0b109ed2.js → parse-query-params-87d08023.js} +1 -1
- 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/options-list/component.js +1 -1
- package/dist/select/components/options-list/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/component.d.ts +21 -0
- package/dist/sidepanel/component.js +1 -0
- package/dist/sidepanel/index.d.ts +1 -0
- package/dist/sidepanel/index.js +1 -0
- package/dist/sidepanel-header/component.d.ts +1 -2
- 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/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.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/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/theme-provider/default-themes.d.ts +74 -79
- package/dist/theme-provider/default-themes.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/use-image-render-component-fd804424.js +1 -0
- package/dist/utils/format-date/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/CloseM-02e1ef61.js +0 -1
- package/dist/WifiS-9d719f46.js +0 -1
- package/dist/capitalize-63cc8e8b.js +0 -1
- package/dist/component-2664400a.js +0 -1
- package/dist/form/components/form-footer/index.d.ts +0 -15
- package/dist/form/components/form-footer/index.js +0 -1
- package/dist/form/components/form-loading/index.d.ts +0 -5
- package/dist/form/components/form-loading/index.js +0 -1
- package/dist/form/components/form-outer/index.d.ts +0 -6
- package/dist/form/components/form-outer/index.js +0 -1
- package/dist/form/components/form-updating/index.d.ts +0 -4
- package/dist/form/components/form-updating/index.js +0 -1
- package/dist/form/components/form-wrapper/index.d.ts +0 -0
- package/dist/form/components/form-wrapper/index.js +0 -1
- package/dist/form/components/index.d.ts +0 -12
- package/dist/form/components/index.js +0 -1
- package/dist/form/templates/base-form/index.d.ts +0 -17
- package/dist/form/templates/base-form/index.js +0 -1
- package/dist/index-03401796.js +0 -1
- package/dist/index-5f400b4c.js +0 -1
- package/dist/index-63ee1d6d.d.ts +0 -7
- package/dist/index-63ee1d6d.js +0 -1
- package/dist/index-9b13cf5b.js +0 -1
- package/dist/index-c129ee92.js +0 -1
- package/dist/index-ce0a8fc4.js +0 -1
- package/dist/use-image-render-component-6ddcfd0f.js +0 -1
- /package/dist/{ActionCopyM-f60a1b2d.js → ActionCopyM-04b35f5a.js} +0 -0
- /package/dist/{CancelM-89f7046d.js → CancelM-56cf88b0.js} +0 -0
- /package/dist/{CheckmarkCircleM-aaeca129.js → CheckmarkCircleM-ecf02d2b.js} +0 -0
- /package/dist/{ChevronBackM-685b97f8.js → ChevronBackM-32ecba5b.js} +0 -0
- /package/dist/{ChevronBackS-5d669d38.js → ChevronBackS-657f8cb9.js} +0 -0
- /package/dist/{ChevronDownS-0c5ffd3a.js → ChevronDownS-fb54f781.js} +0 -0
- /package/dist/{ChevronForwardM-1b8b92c9.js → ChevronForwardM-3b78b654.js} +0 -0
- /package/dist/{ChevronForwardS-33d3233e.js → ChevronForwardS-9264e4ec.js} +0 -0
- /package/dist/{ClockCircleM-689a310f.js → ClockCircleM-cb744372.js} +0 -0
- /package/dist/{CloseS-1605e0f6.js → CloseS-18c78b5c.js} +0 -0
- /package/dist/{ControllerS-35ae4b78.js → ControllerS-c1b66d9a.js} +0 -0
- /package/dist/{EditS-dd87d07a.js → EditS-1be13bbe.js} +0 -0
- /package/dist/{MinusM-3be0a7a7.js → MinusM-44271789.js} +0 -0
- /package/dist/{MoverS-39219b1e.js → MoverS-08a51ea5.js} +0 -0
- /package/dist/{NextS-05128140.js → NextS-ff150baf.js} +0 -0
- /package/dist/{PlusS-3be69dfc.js → PlusS-1a0bc794.js} +0 -0
- /package/dist/{SearchM-604e7cdf.js → SearchM-2044edd2.js} +0 -0
- /package/dist/{TrashM-7273c9ec.js → TrashM-e441a74a.js} +0 -0
- /package/dist/{YoutubeM-2cc8c125.js → YoutubeM-c58d9a13.js} +0 -0
- /package/dist/{_commonjsHelpers-37d14a34.js → _commonjsHelpers-c241f4a8.js} +0 -0
- /package/dist/{colors.module-4c2140d8.js → colors.module-0c1bbe6b.js} +0 -0
- /package/dist/{component-7833cf30.d.ts → component-3e1068e6.d.ts} +0 -0
- /package/dist/{component-7833cf30.js → component-3e1068e6.js} +0 -0
- /package/dist/{component-2664400a.d.ts → component-5351b340.d.ts} +0 -0
- /package/dist/{contact-block-f2c4529d.d.ts → contact-block-b392ad3e.d.ts} +0 -0
- /package/dist/{contact-block-f2c4529d.js → contact-block-b392ad3e.js} +0 -0
- /package/dist/{gutters.module-2d4263aa.js → gutters.module-c09d6f0f.js} +0 -0
- /package/dist/{index-b1f9b0ba.js → index-24149fbe.js} +0 -0
- /package/dist/{index-f1535c32.js → index-710d8f0a.js} +0 -0
- /package/dist/{intersection-observer-454f4c83.js → intersection-observer-a8f60a0f.js} +0 -0
- /package/dist/{parse-query-params-0b109ed2.d.ts → parse-query-params-87d08023.d.ts} +0 -0
- /package/dist/{slide-f987ac86.d.ts → slide-b7ec37e4.d.ts} +0 -0
- /package/dist/{slide-f987ac86.js → slide-b7ec37e4.js} +0 -0
- /package/dist/{step-bar-ab6a6b61.d.ts → step-bar-ff155c12.d.ts} +0 -0
- /package/dist/{step-bar-ab6a6b61.js → step-bar-ff155c12.js} +0 -0
- /package/dist/{tslib.es6-7da799ff.js → tslib.es6-992290c9.js} +0 -0
- /package/dist/{use-image-render-component-6ddcfd0f.d.ts → use-image-render-component-fd804424.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-992290c9.js";import a,{forwardRef as d,useRef as t}from"react";import o from"react-merge-refs";import{C as l,M as m}from"../MinusM-44271789.js";import i from"classnames";import{useFocus as s}from"../hooks/useFocus/index.js";var c={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=d((function(d,r){var _,u=d.checked,b=d.label,x=d.hint,h=d.size,p=void 0===h?"m":h,k=d.align,f=void 0===k?"center":k,E=d.addons,N=d.block,g=d.onChange,I=d.className,v=d.name,C=d.disabled,M=d.dataTestId,j=d.indeterminate,y=void 0!==j&&j,z=e(d,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),D=t(null),O=s(D,"keyboard")[0];return a.createElement("label",{className:i(c.component,c[p],c[f],I,(_={},_[c.disabled]=C,_[c.checked]=u,_[c.indeterminate]=y,_[c.focused]=O,_[c.block]=N,_)),ref:o([D,r])},a.createElement("span",{className:c.box},a.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":M},z)),u&&a.createElement(l,null),y&&!u&&a.createElement("div",{className:c.indeterminateIcon},a.createElement(m,null))),(b||x)&&a.createElement("span",{className:c.content},b&&a.createElement("span",{className:c.label},b),x&&a.createElement("span",{className:c.hint},x)),E&&a.createElement("span",{className:c.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Checkbox}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Checkbox}from"./component.js";import"../tslib.es6-992290c9.js";import"react";import"react-merge-refs";import"../MinusM-44271789.js";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-992290c9.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"../MinusM-44271789.js";import"classnames";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",l=function(l){var m=l.title,a=l.subtitle,s=l.selected,d=void 0===s?[]:s,u=l.data,p=void 0===u?[]:u,v=l.onChange,g=l.columns,b=void 0===g?1:g,y=l.disabled,f=l.gr,h=void 0===f?20:f,x=l.gc,j=void 0===x?20:x,k=l.dataTestId,_=d||[],E=function(e){return k?"checkbox_"+k+"_"+e:"checkbox_"+e};return t.createElement("div",null,(m||a)&&t.createElement("div",{className:i},m&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},m),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:b,gr:h,gc:j},t.createElement(t.Fragment,null,null==p?void 0:p.map((function(n,r){return t.createElement(o,{disabled:y,key:n.key+n.content,dataTestId:E(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(e([],_),[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})})))))};export{l as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-992290c9.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"../MinusM-44271789.js";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-992290c9.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-fb54f781.js";import r from"classnames";import{Checkbox as l}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"../MinusM-44271789.js";import"../hooks/useFocus/index.js";import"../isSymbol-a58f7659.js";import"../_commonjsHelpers-c241f4a8.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,b=u.selected,_=u.checkableParent,j=u.collapsable,v=u.disabled,E=u.onChange,g=[],y=Array.isArray(b)?b:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&g.push(t)}));var x=n(g),k=x[0],C=x[1],F=function(t){t.forEach((function(n){(null==y?void 0:y.includes(n))?E(y.filter((function(e){return!t.includes(e)}))):E(e(e([],y),t))}))},w=function(e){var n,o,r=e.element;return _?t.createElement(l,{block:!0,disabled:v,checked:(n=r.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==y?void 0:y.includes(e))&&(o=!0)})),o),onChange:function(){return F(r.childs.map((function(e){return e.id})))},label:""+r.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},r.parent.title)};return t.createElement("div",null,k.map((function(e,n){var p;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(w,{element:e}),j&&t.createElement(m,{onClick:function(){return function(e){var t=k.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=k.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:r(d.collapse_btn,(p={},p[d.collapse_btn_collapsed]=e.collapsed,p)),icon:o})),!e.collapsed&&t.createElement(s,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1,gr:8},e.childs.map((function(e){return t.createElement(l,{onChange:function(){return F([e.id])},checked:null==y?void 0:y.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==k?void 0:k.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-992290c9.js";import"react";import"../ChevronDownS-fb54f781.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../MinusM-44271789.js";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-a58f7659.js";import"../_commonjsHelpers-c241f4a8.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{E as t}from"../EditS-
|
|
1
|
+
import o from"react";import{E as t}from"../EditS-1be13bbe.js";import{P as e}from"../PlusS-1a0bc794.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},s=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-fb54f781.js";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../isSymbol-a58f7659.js";import"../_commonjsHelpers-c241f4a8.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",c="index-module_label__kuH6r",p="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,b=u.label,f=u.content,x=u.expanded,y=u.addons,h=u.children,v=u.disabled,g=o(x),E=g[0],w=g[1];return t((function(){w(x)}),[x]),e.createElement("div",null,e.createElement("div",{className:a},e.createElement("div",{className:l},b&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},b),f),e.createElement("div",{className:l},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(p,(j={},j[d]=E,j)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-fb54f781.js";import"classnames";import"../collapse/component.js";import"../isSymbol-a58f7659.js";import"../_commonjsHelpers-c241f4a8.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-
|
|
1
|
+
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-a58f7659.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../_commonjsHelpers-c241f4a8.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var d=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},m=function(){return c.Date.now()},v=/\s/;var p=function(e){for(var n=e.length;n--&&v.test(e.charAt(n)););return n},x=/^\s+/;var h=function(e){return e?e.slice(0,p(e)+1).replace(x,""):e},_=NaN,g=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,w=/^0o[0-7]+$/i,y=parseInt;var T=function(e){if("number"==typeof e)return e;if(s(e))return _;if(d(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=d(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=h(e);var t=E.test(e);return t||w.test(e)?y(e.slice(2),t?2:8):g.test(e)?_:+e},b="Expected a function",j=Math.max,k=Math.min;var N=function(e,n,t){var r,i,o,a,u,c,s=0,f=!1,l=!1,v=!0;if("function"!=typeof e)throw new TypeError(b);function p(n){var t=r,o=i;return r=i=void 0,s=n,a=e.apply(o,t)}function x(e){var t=e-c;return void 0===c||t>=n||t<0||l&&e-s>=o}function h(){var e=m();if(x(e))return _(e);u=setTimeout(h,function(e){var t=n-(e-c);return l?k(t,o-(e-s)):t}(e))}function _(e){return u=void 0,v&&r?p(e):(r=i=void 0,a)}function g(){var e=m(),t=x(e);if(r=arguments,i=this,c=e,t){if(void 0===u)return function(e){return s=e,u=setTimeout(h,n),f?p(e):a}(c);if(l)return clearTimeout(u),u=setTimeout(h,n),p(c)}return void 0===u&&(u=setTimeout(h,n)),a}return n=T(n)||0,d(t)&&(f=!!t.leading,o=(l="maxWait"in t)?j(T(t.maxWait)||0,n):o,v="trailing"in t?!!t.trailing:v),g.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=i=u=void 0},g.flush=function(){return void 0===u?a:_(m())},g},z="index-module_collapse__ORa-f",C="index-module_content__UDk-m",L="index-module_expandedContent__iQszl",H="index-module_children_wrap__ekYCk",O=n((function(n,c){var s,d=n.expanded,m=n.defaultExpanded,v=n.collapsedLabel,p=n.expandedLabel,x=n.children,h=n.className,_=n.contentClassName,g=n.id,E=n.onExpandedChange,w=n.onTransitionEnd,y=n.dataTestId,T=n.linkProps,b=void 0===d,j=t(null),k=t(null),O=r(m||d),$=O[0],D=O[1],I=b?$:d,M=i((function(){var e;k.current&&j.current&&(e=I?k.current.offsetHeight:0,j.current.style.height=e+"px")}),[I]),W=i((function(){w&&w(d)}),[d,w]),A=i((function(){b&&D(!I),console.log(I),E&&E()}),[I,E,b]);o((function(){var e=N((function(){return M()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[M]),o((function(){var e=new f(M);return k.current&&e.observe(k.current),function(){e.disconnect()}}),[M]),o((function(){return M()}),[I,M]);var F=a((function(){var e,n=null===(e=j.current)||void 0===e?void 0:e.offsetHeight;return{height:I&&!n?"0px":n+"px"}}),[I]),P=!!p||!!v;return e.createElement("div",{ref:c,className:u(h,z),id:g,"data-test-id":y},e.createElement("div",{onTransitionEnd:W,ref:j,className:u(C,_,(s={},s[L]=I,s)),style:F},e.createElement("div",{className:u(H),ref:k},x)),P&&e.createElement(l,{view:(null==T?void 0:T.view)||"secondary",size:(null==T?void 0:T.size)||"m",pseudo:!0,onClick:A},I?p:v))}));export{O as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-a58f7659.js";import"../_commonjsHelpers-c241f4a8.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as r}from"react";import n from"classnames";import{Cells as a}from"./table/components/cells/index.js";import{EmptyList as i}from"./table/components/empty-list/index.js";import{Error as c}from"./table/components/error/index.js";import{Loading as s}from"./table/components/loading/index.js";import{Pagination as u}from"./table/components/pagination/index.js";import{TableHeader as d}from"./table/components/table-header/index.js";import{useTableData as m}from"./table/hooks/use-table-data.js";import{addQueryParam as p}from"./table/utils/add-query-param.js";import{getTags as f}from"./table/utils/get-tags.js";import{a as v}from"./PhotoS-5a93e2b5.js";import{Image as g}from"./image/component.js";import"./cell/pure/component.js";import{removeQueryParam as b}from"./table/utils/remove-query-param.js";import{resetQueryParam as h}from"./table/utils/reset-query-param.js";function w(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function C(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function E(e){var l=e.columns,o=e.data,r=e.refetch,n=o.map((function(e){return{row:e,cells:l.map((function(l){var o,n,a,i,c,s,u,d,m,p,f=C((null===(o=l.row)||void 0===o?void 0:o.title)||l.accessor,e,r);if(null===(n=l.row)||void 0===n?void 0:n.image){var b=w(null===(a=l.row)||void 0===a?void 0:a.image,e,r);p=b?t.createElement(g,{bgColor:"secondary",src:b,text:null==f?void 0:f.toString(),view:"ellipse"}):t.createElement(g,{bgColor:"secondary",icon:t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else if(null===(i=l.row)||void 0===i?void 0:i.icon){var h=w(null===(c=l.row)||void 0===c?void 0:c.icon,e,r);p=t.createElement(g,{icon:h||t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else(null===(s=l.row)||void 0===s?void 0:s.customAddon)&&(p=w(null===(u=l.row)||void 0===u?void 0:u.customAddon,e,r));return t.createElement(_.Cell,{title:f,align:l.align,subtitle:(null===(d=l.row)||void 0===d?void 0:d.subtitle)&&C(null===(m=l.row)||void 0===m?void 0:m.subtitle,e,r),addon:p})}))}}));return n}var x={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function j(e){var v=e.columns,g=e.searchPlaceholder,w=void 0===g?"Поиск по таблице":g,C=e.records,j=e.hideSearch,_=e.rightHeaderAddons,k=e.leftHeaderAddons,y=e.filtersButtonLabel,P=e.createButtonLabel,S=e.loading,B=e.height,A=void 0===B?"fill":B,L=e.tagsBuilder,F=e.promise,H=e.onRowClick,T=e.onCreateClick,q=e.onFiltersClick,N=e.refetch,D=e.language,Q=m({promise:F,records:C}),R=Q.loading,V=Q.error,z=Q.data,G=Q.total,I=Q.params,J=Q.pagesCount,K=Q.updateData,M=T?function(){return T(K)}:void 0,O=l((function(e){h(e),K()}),[]);o((function(){K()}),[]);var U=function(){return q?q({submitCallback:function(e){return O(e)},initialValues:I}):null},W=function(e){p(e),K()},X=f({params:(null==I?void 0:I.where)||{},onDelete:function(e,t){b(e,t),K()},tagsBuilder:L,onClick:U}),Y=r((function(){return E({columns:v,data:z,refetch:N||K})}),[z,v]),Z=R||S;return t.createElement("div",{className:n(x.table_wrapper,x[A])},(!j||_||k||T||q)&&t.createElement(d,{language:D,hideSearch:j,rightHeaderAddons:_,leftHeaderAddons:k,searchText:(null==I?void 0:I.searchText)||"",addParam:W,searchPlaceholder:w,filtersButtonLabel:y,tags:X,onCreateClick:M,createButtonLabel:P,onFiltersClick:U,showFiltersButton:!!q}),t.createElement("div",{className:x.table},t.createElement("table",{cellSpacing:"0",cellPadding:"0"},t.createElement(a,{sort:null==I?void 0:I.sort,order:null==I?void 0:I.order,addParam:W,columns:v}),t.createElement("tbody",null,V&&t.createElement(c,{language:D}),!Y.length&&!Z&&!V&&t.createElement(i,{language:D}),Z&&t.createElement(s,{columnsLength:v.length}),Y.map((function(e){var l,o=e.row,r=e.cells;return t.createElement("tr",{onClick:function(){return e=o,null==H?void 0:H(e,K);var e},className:n((l={},l[x.clickable]=!!H,l)),style:{visibility:Z?"collapse":"visible"}},r.map((function(e){return e})))}))))),!!F&&t.createElement(u,{language:D,currentPage:I?+I.page:1,recordsPerPage:I?+I.limit:10,pagesCount:+J,addParam:W,total:+G}))}var _={Cell:e,TableComponent:j};export{_ as T,j as a,E as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{A as o}from"../ActionCopyM-
|
|
1
|
+
import t from"react";import{A as o}from"../ActionCopyM-04b35f5a.js";import{IconButton as e}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-992290c9.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-ecf02d2b.js";import"../ClockCircleM-cb744372.js";import"../CloseS-18c78b5c.js";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,c=n.fullText,a=n.color;return t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:a||"primary"},s),t.createElement(e,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(c||s).then((function(){r({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-04b35f5a.js";import"../icon-button/component.js";import"../tslib.es6-992290c9.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-ecf02d2b.js";import"../ClockCircleM-cb744372.js";import"../CloseS-18c78b5c.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/date/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as t,a as o}from"../tslib.es6-992290c9.js";import e from"react";import{Typography as r}from"../typography/component.js";import"../toast-notifier/component.js";import{formatDate as m}from"../utils/format-date/index.js";import"../typography/text/component.js";import"classnames";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-ecf02d2b.js";import"../ClockCircleM-cb744372.js";import"../CloseS-18c78b5c.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../index-7222347c.js";import"../index-710d8f0a.js";import"../index-66bee959.js";import"../index-5936fda4.js";import"../index-24149fbe.js";var i=function(i){var s=i.className,a=i.dataTestId,p=i.date,n=i.time,c=i.format,d=void 0===c?"dd.MM.yyyy":c,j=i.language,l=void 0===j?"de":j,f=t(i,["className","dataTestId","date","time","format","language"]);return e.createElement(r.Text,o({},f,{className:s,"data-test-id":a}),m(p,{format:d,lang:l,time:n}))};export{i as FormattedDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormattedDate}from"./component.js";import"../tslib.es6-992290c9.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-ecf02d2b.js";import"../ClockCircleM-cb744372.js";import"../CloseS-18c78b5c.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-7222347c.js";import"../index-710d8f0a.js";import"../index-66bee959.js";import"../index-5936fda4.js";import"../index-24149fbe.js";
|
package/dist/date-functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as add,p as parseISO,s as subWeeks}from"./index-
|
|
1
|
+
export{a as add,p as parseISO,s as subWeeks}from"./index-2ff34580.js";export{a as addDays,b as addMonths,i as isAfter,c as isBefore,d as isSameDay,s as startOfDay,e as startOfISOWeek,f as startOfWeek,g as subDays}from"./index-706511da.js";export{a as addYears,s as subYears}from"./index-09680f4f.js";export{e as eachDayOfInterval,a as eachMonthOfInterval,b as eachYearOfInterval,c as endOfISOWeek,d as endOfWeek,f as endOfYear,i as isSameMonth,l as lastDayOfMonth,m as max,g as min,s as startOfMonth,h as startOfYear,j as subMonths}from"./index-758a1860.js";export{f as format}from"./index-66bee959.js";export{i as isEqual,a as isLastDayOfMonth,b as isWithinInterval}from"./index-13b8bc9e.js";export{i as isSameYear,a as isThisYear}from"./index-8a4ae4bb.js";export{i as isThisMonth}from"./index-3cc71f90.js";export{i as isToday}from"./index-43957127.js";export{p as parse}from"./index-5936fda4.js";import{t as r}from"./index-7222347c.js";import{r as t,t as o}from"./index-710d8f0a.js";import"./index-24149fbe.js";function n(a,s){t(2,arguments);var e=o(a),i=r(s);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}export{n as setYear};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{C as t}from"../ChevronBackM-
|
|
1
|
+
import e from"react";import{C as t}from"../ChevronBackM-32ecba5b.js";import{C as o}from"../ChevronForwardM-3b78b654.js";import a from"classnames";import{Button as r}from"../button/component.js";import{p as i,a as m,s}from"../index-2ff34580.js";import{f as n}from"../index-66bee959.js";import{e as d,i as p,c,g as l}from"../index-706511da.js";import{i as y}from"../index-43957127.js";import{IconButton as f}from"../icon-button/component.js";import{Typography as j}from"../typography/component.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-710d8f0a.js";import"../index-7222347c.js";import"../index-24149fbe.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";var _={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},b="yyyy-MM-dd",w="dd.MM.yy",x=function(x){var u=x.view,h=void 0===u?"day":u,v=x.startDate,g=x.onChange,k=x.minDate,C=x.maxDate,E=x.todayLabel,M=d(i(v)),D="day"===h?i(v):M,T=k?i(k):new Date,z=p(D,T),F=!C||c(D,i(C)),N=y(D);return e.createElement("div",{className:_.date_switcher},e.createElement(f,{disabled:!!k&&!z,onClick:function(){"day"===h&&g(n(l(D,1),b)),"week"===h&&g(n(s(D,1),b))},icon:t}),e.createElement("div",{className:a(_.date_wrap,_[h])},e.createElement(j.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===h?n(D,w):n(D,w)+" - "+n(m(D,{days:6}),w))),e.createElement(f,{disabled:!F,onClick:function(){"day"===h&&g(n(m(D,{days:1}),b)),"week"===h&&g(n(m(D,{days:7}),b))},icon:o}),e.createElement(r,{disabled:N,onClick:function(){g(n(new Date,b))},view:"ghost"},E))};export{x as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-32ecba5b.js";import"../ChevronForwardM-3b78b654.js";import"classnames";import"../button/component.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-2ff34580.js";import"../index-706511da.js";import"../index-7222347c.js";import"../index-710d8f0a.js";import"../index-24149fbe.js";import"../index-66bee959.js";import"../index-43957127.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-992290c9.js";import o from"react";import r from"classnames";import{Button as i}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Typography as l}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__X4Vyh",n="index-module_content__xoB7w",s="index-module_overlay__GChru",p="index-module_image__qJIV8",c=function(c){var d=c.code,u=c.image,v=c.overlay,y=c.title,g=c.subtitle,x=c.buttonText,_=c.view,b=void 0===_?"primary":_,h=c.size,w=void 0===h?"m":h,f=e(c,["code","image","overlay","title","subtitle","buttonText","view","size"]);return o.createElement("div",{className:r(a,v&&s)},u&&o.createElement("img",{alt:y,className:p,src:u}),o.createElement(m,{columns:1,gr:8,className:n},d&&o.createElement(l.Title,{view:"large",weight:"bold",color:"primary",tag:"div"},d),o.createElement(l.Title,{view:"small",weight:"bold",color:"primary",tag:"div"},y),g&&o.createElement(l.Text,{color:"primary",weight:"medium",view:"primary-medium"},g)),(!!(null==f?void 0:f.onClick)||(null==f?void 0:f.href))&&o.createElement(i,t({view:b,size:w},f),x))};export{c as EmptyPage};
|
package/dist/empty-page/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EmptyPage}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{EmptyPage}from"./component.js";import"../tslib.es6-992290c9.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/footer/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-992290c9.js";import t from"react";import{F as a,Y as r,I as n,A as m,G as o}from"../YoutubeM-c58d9a13.js";import{Grid as c}from"../grid/component.js";import{IconButton as l}from"../icon-button/component.js";import{SectionWrapper as s}from"../section-wrapper/component.js";import{s as i,C as p}from"../contact-block-b392ad3e.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-c09d6f0f.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var d=function(d){var u=d.sections,E=void 0===u?[]:u,f=d.contacts,b=void 0===f?[]:f,k=d.company,v=d.email,j=d.address,N=d.facebookLink,g=d.instagramLink,h=d.youtubeLink,x=d.appText,w=d.google,y=d.appstore,F=N||g||h,B=x&&y&&w;return t.createElement(s,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:i.wrapper},t.createElement("div",{className:i.row_wrapper},t.createElement(c.Row,null,t.createElement(t.Fragment,null,E.map((function(e){return t.createElement(c.Col,{key:e.title,width:{desktop:2,mobile:12}},t.createElement("div",{className:i.block},t.createElement("span",{className:i.title},e.title),e.items.map((function(e){return t.createElement("a",{key:e.text,className:i.link,href:e.link},e.text)}))))})),t.createElement(c.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:i.contacts},b.map((function(e){return t.createElement(p,{key:e.title,title:e.title,value:e.value})})),v&&t.createElement("div",{className:i.email},v),t.createElement("br",null),j&&t.createElement("div",{className:i.text},j),t.createElement("br",null),k&&t.createElement("div",{className:i.text},k),t.createElement("br",null),F&&t.createElement("div",{className:i.buttons},N&&t.createElement(l,e({},{href:N},{icon:a})),h&&t.createElement(l,e({},{href:h},{icon:r})),g&&t.createElement(l,e({},{href:g},{icon:n}))))))))),t.createElement("div",{className:i.bottomBlock},B&&t.createElement(t.Fragment,null,t.createElement("div",{className:i.text},x),t.createElement("div",{className:i.buttons},y&&t.createElement(l,e({},{href:y},{icon:m})),w&&t.createElement(l,e({},{href:w},{icon:o}))))))};export{d as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{C as ContactBlock}from"../contact-block-
|
|
1
|
+
import"react";export{C as ContactBlock}from"../contact-block-b392ad3e.js";
|
package/dist/footer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Footer}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Footer}from"./component.js";import"../tslib.es6-992290c9.js";import"react";import"../YoutubeM-c58d9a13.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-c09d6f0f.js";import"../grid/row/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../section-wrapper/component.js";import"../contact-block-b392ad3e.js";
|
package/dist/form/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as o}from"../flex-columns/component.js";import{Input as t}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as a,showError as m}from"../utils/show-toast/index.js";import{RestForm as i}from"./templates/rest-form/index.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../modal/components/modals/index.js";import"../modal/components/modals/modal.js";import"../button-arrow/component.js";import"../ActionCopyM-04b35f5a.js";import"../CheckmarkCircleM-ecf02d2b.js";import"../YoutubeM-c58d9a13.js";import"../CancelM-56cf88b0.js";import"../MinusM-44271789.js";import"../ChevronBackM-32ecba5b.js";import"../ChevronBackS-657f8cb9.js";import"../ChevronDownS-fb54f781.js";import"../ChevronForwardM-3b78b654.js";import"../ChevronForwardS-9264e4ec.js";import"../ClockCircleM-cb744372.js";import"../CloseS-18c78b5c.js";import"../ControllerS-c1b66d9a.js";import"../EditS-1be13bbe.js";import"../TrashM-e441a74a.js";import"../MoverS-08a51ea5.js";import"../NextS-ff150baf.js";import"../PhotoS-5a93e2b5.js";import"../PlusS-1a0bc794.js";import"../SearchM-2044edd2.js";import"../modal/hooks/use-modal.js";import"uuid";import"../modal/utils/delete-property-by-id.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";import"../formik.esm-829e83d2.js";import"../index-25d626ca.js";import"../_commonjsHelpers-c241f4a8.js";import"./templates/rest-form/form.js";import"../flex/component.js";import"../icon-button/component.js";import"../sidepanel/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";var s={baz:"",bar:""},l={buz:"",bur:""},c=function(r){var n=e.useState(!0),s=n[0],c=n[1],u=e.useState(!1),p=u[0],b=u[1],d=e.useState(!1),f=d[0],j=d[1];e.useEffect((function(){setTimeout((function(){return c(!1)}),500)}),[]);return e.createElement(i,{recordId:827368276387,initialValues:l,customValidationFields:["bur"],save:function(){return new Promise((function(e){b(!0),setTimeout((function(){e(),b(!1),a("","Saved")}),3e3)}))},remove:function(){return new Promise((function(e){j(!0),setTimeout((function(){e(),j(!1),m("Some error from server","Error")}),3e3)}))},title:"custom title other",loading:s,submitButtonText:"submit",updating:p,removing:f,close:null==r?void 0:r.close,t:function(e){return e}},(function(r){var n=r.values,a=r.touched,m=r.errors,i=r.handleChange;return e.createElement(o,{columns:1,gr:16,gc:0},e.createElement(t,{label:"buz",value:n.buz,onChange:i("buz"),error:a.buz&&m.buz}),e.createElement(t,{label:"bur",value:n.bur,onChange:i("bur"),error:a.bur&&m.bur}))}))},u=function(l){var u=e.useState(!0),p=u[0],b=u[1],d=e.useState(!1),f=d[0],j=d[1],v=e.useState(!1),h=v[0],C=v[1],g=(0,e.useContext(n).openModal)(c);e.useEffect((function(){setTimeout((function(){return b(!1)}),500)}),[]);return e.createElement(i,{recordId:8273682763,initialValues:s,customValidationFields:["bar"],save:function(){return new Promise((function(e){j(!0),setTimeout((function(){e(),j(!1),a("","Saved")}),3e3)}))},remove:function(){return new Promise((function(e){C(!0),setTimeout((function(){e(),C(!1),m("Some error from server","Error")}),3e3)}))},title:"Настройки",subtitle:"Подпись к заголовку",back:function(){},softError:"Some error",loading:p,submitButtonText:"csdcds",updating:f,removing:h,close:null==l?void 0:l.close,t:function(e){return e}},(function(n){var a=n.values,m=n.touched,i=n.errors,s=n.handleChange;return e.createElement(o,{columns:1,gr:16,gc:0},e.createElement(t,{label:"baz",value:a.baz,onChange:s("baz"),error:m.baz&&i.baz}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(t,{label:"bar",value:a.bar,onChange:s("bar"),error:m.bar&&i.bar}),e.createElement(r,{onClick:g},"openCrudModalOther"))}))},p=function(){var o=(0,e.useContext(n).openModal)(u);return e.createElement(e.Fragment,null,e.createElement(r,{onClick:o},"open crud modal"))};export{p as Component};
|
package/dist/form/index.d.ts
CHANGED
package/dist/form/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FiltersForm}from"./templates/filters-form/index.js";
|
|
1
|
+
export{FiltersForm}from"./templates/filters-form/index.js";import"react";import"../formik.esm-829e83d2.js";import"../index-25d626ca.js";import"../_commonjsHelpers-c241f4a8.js";import"../button/component.js";import"../tslib.es6-992290c9.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../sidepanel/component.js";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"../ActionCopyM-04b35f5a.js";import"../CheckmarkCircleM-ecf02d2b.js";import"../YoutubeM-c58d9a13.js";import"../CancelM-56cf88b0.js";import"../MinusM-44271789.js";import"../ChevronBackM-32ecba5b.js";import"../ChevronBackS-657f8cb9.js";import"../ChevronDownS-fb54f781.js";import"../ChevronForwardM-3b78b654.js";import"../ChevronForwardS-9264e4ec.js";import"../ClockCircleM-cb744372.js";import"../CloseS-18c78b5c.js";import"../ControllerS-c1b66d9a.js";import"../EditS-1be13bbe.js";import"../TrashM-e441a74a.js";import"../MoverS-08a51ea5.js";import"../NextS-ff150baf.js";import"../PhotoS-5a93e2b5.js";import"../PlusS-1a0bc794.js";import"../SearchM-2044edd2.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-0c1bbe6b.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";import"./utils/get-default-values.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{F as t
|
|
1
|
+
import o from"react";import{F as t}from"../../../formik.esm-829e83d2.js";import{Button as e}from"../../../button/component.js";import{Sidepanel as r}from"../../../sidepanel/component.js";import{getDefaultValues as i}from"../../utils/get-default-values.js";import"../../../index-25d626ca.js";import"../../../_commonjsHelpers-c241f4a8.js";import"../../../tslib.es6-992290c9.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex-columns/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../button-arrow/component.js";import"../../../ActionCopyM-04b35f5a.js";import"../../../CheckmarkCircleM-ecf02d2b.js";import"../../../YoutubeM-c58d9a13.js";import"../../../CancelM-56cf88b0.js";import"../../../MinusM-44271789.js";import"../../../ChevronBackM-32ecba5b.js";import"../../../ChevronBackS-657f8cb9.js";import"../../../ChevronDownS-fb54f781.js";import"../../../ChevronForwardM-3b78b654.js";import"../../../ChevronForwardS-9264e4ec.js";import"../../../ClockCircleM-cb744372.js";import"../../../CloseS-18c78b5c.js";import"../../../ControllerS-c1b66d9a.js";import"../../../EditS-1be13bbe.js";import"../../../TrashM-e441a74a.js";import"../../../MoverS-08a51ea5.js";import"../../../NextS-ff150baf.js";import"../../../PhotoS-5a93e2b5.js";import"../../../PlusS-1a0bc794.js";import"../../../SearchM-2044edd2.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-0c1bbe6b.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";var m=function(m){var s=m.initialValues,n=m.defaultValues,p=m.children,a=m.submitCallback,c=m.close,l=m.t,j=i(s,n);return o.createElement(t,{initialValues:j,onSubmit:function(o){a(o),c()}},(function(t){return o.createElement(r,{title:l("filters"),bottomAddons:o.createElement(o.Fragment,null,o.createElement(e,{view:"primary",size:"s",block:!0,dataTestId:"buttonSave",onClick:function(){return t.submitForm()}},l("save")),o.createElement(e,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:c},l("cancel")))},p(t))}))};export{m as FiltersForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as
|
|
1
|
+
import{_ as o,a as t}from"../../../tslib.es6-992290c9.js";import e,{useContext as r,useState as i,useCallback as m,useEffect as n}from"react";import{T as a}from"../../../TrashM-e441a74a.js";import{Button as s}from"../../../button/component.js";import{Flex as l}from"../../../flex/component.js";import{FlexColumns as d}from"../../../flex-columns/component.js";import{IconButton as c}from"../../../icon-button/component.js";import{ModalContext as p}from"../../../modal/context.js";import{Sidepanel as u}from"../../../sidepanel/component.js";import{ToastPlate as b}from"../../../toast-plate/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"../../../ActionCopyM-04b35f5a.js";import"../../../CheckmarkCircleM-ecf02d2b.js";import"../../../YoutubeM-c58d9a13.js";import"../../../CancelM-56cf88b0.js";import"../../../MinusM-44271789.js";import"../../../ChevronBackM-32ecba5b.js";import"../../../ChevronBackS-657f8cb9.js";import"../../../ChevronDownS-fb54f781.js";import"../../../ChevronForwardM-3b78b654.js";import"../../../ChevronForwardS-9264e4ec.js";import"../../../ClockCircleM-cb744372.js";import"../../../CloseS-18c78b5c.js";import"../../../ControllerS-c1b66d9a.js";import"../../../EditS-1be13bbe.js";import"../../../MoverS-08a51ea5.js";import"../../../NextS-ff150baf.js";import"../../../PhotoS-5a93e2b5.js";import"../../../PlusS-1a0bc794.js";import"../../../SearchM-2044edd2.js";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-0c1bbe6b.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";function j(j){var f=j.recordId,h=j.title,v=j.subtitle,g=j.headerBottomAddons,C=j.initialValues,y=j.submitButtonText,k=j.customFooter,S=j.loading,M=j.updating,E=j.removing;j.customValidationFields,j.validate,j.save;var x=j.remove,w=j.close,A=j.back,B=j.t,F=j.children,T=j.headerAddon;j.error;var V=j.softError,I=o(j,["recordId","title","subtitle","headerBottomAddons","initialValues","submitButtonText","customFooter","loading","updating","removing","customValidationFields","validate","save","remove","close","back","t","children","headerAddon","error","softError"]),z=r(p),P=z.setModalDirty,D=z.currentModalId,N=i(D)[0],R=I.submitCount,Y=I.handleSubmit,_=I.isValid,q=o(I,["submitCount","handleSubmit","isValid"]),G=!!f&&!!x,H=m((function(){P(N,!1),Y()}),[q.dirty,N]),J=m((function(){P(N,!1),confirm(B("common:deleteConfirm"))&&(null==x||x())}),[q.dirty,N]);n((function(){S||P(N,q.dirty)}),[q.dirty,S,N]);var K=G||T?e.createElement(e.Fragment,null,T,G&&e.createElement(c,{dataTestId:"removeTariffBtn",size:"m",disabled:M,loading:E,onClick:J,icon:a})):null;return e.createElement(u,{headerRightAddons:K,title:h,subtitle:v,loading:M||E||S,headerBottomAddons:(g||!!V||!_&&!!R)&&e.createElement(d,{columns:1,gr:8},g,!!V&&e.createElement(b,{view:"negative"},V),!_&&!!R&&e.createElement(b,{view:"negative"},"Please correct errors before submitting form.")),back:A,t:B,bottomAddons:k||e.createElement(l,{gap:"md"},e.createElement(s,{view:"primary",size:"s",block:!0,loading:S,disabled:M||E,dataTestId:"buttonSave",onClick:function(){return H()}},B(y||"save")),e.createElement(s,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:w},B("cancel")))},F(t({submitCount:R,isValid:_,handleSubmit:H,initialValues:C},q)))}export{j as Form};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../../tslib.es6-
|
|
1
|
+
import{a as o}from"../../../tslib.es6-992290c9.js";import t from"react";import{F as r}from"../../../formik.esm-829e83d2.js";import{Form as e}from"./form.js";import"../../../index-25d626ca.js";import"../../../_commonjsHelpers-c241f4a8.js";import"../../../TrashM-e441a74a.js";import"../../../button/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex/component.js";import"../../../flex-columns/component.js";import"../../../icon-button/component.js";import"../../../modal/context.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"../../../ActionCopyM-04b35f5a.js";import"../../../CheckmarkCircleM-ecf02d2b.js";import"../../../YoutubeM-c58d9a13.js";import"../../../CancelM-56cf88b0.js";import"../../../MinusM-44271789.js";import"../../../ChevronBackM-32ecba5b.js";import"../../../ChevronBackS-657f8cb9.js";import"../../../ChevronDownS-fb54f781.js";import"../../../ChevronForwardM-3b78b654.js";import"../../../ChevronForwardS-9264e4ec.js";import"../../../ClockCircleM-cb744372.js";import"../../../CloseS-18c78b5c.js";import"../../../ControllerS-c1b66d9a.js";import"../../../EditS-1be13bbe.js";import"../../../MoverS-08a51ea5.js";import"../../../NextS-ff150baf.js";import"../../../PhotoS-5a93e2b5.js";import"../../../PlusS-1a0bc794.js";import"../../../SearchM-2044edd2.js";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-0c1bbe6b.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";import"../../../toast-plate/component.js";function m(m){var i=m.loading,p=m.error,s=m.validate,n=m.customValidationFields,a=m.initialValues,c=m.save;if(p)return t.createElement("div",null,"Error ");var l,j,d;return t.createElement(r,{validate:(l=s,j=n,l||(j?(d=j,function(o){return d.reduce((function(t,r){return("object"==typeof o?o:{})[r]||(t[r]=m.t("validationErrors:Required")),t}),{})}):void 0)),initialValues:a,onSubmit:c},(function(r){return t.createElement(e,o({loading:i},r,m))}))}export{m as RestForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../tslib.es6-
|
|
1
|
+
import{a as r}from"../../tslib.es6-992290c9.js";function e(e,t){return Object.entries(t).reduce((function(t,n){var c,i=n[0],o=n[1];return r(((c={})[i]=e[i]||o,c),t)}),{})}export{e as getDefaultValues};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-992290c9.js";import a from"react";import l from"classnames";var s={component:"index-module_component__88xUs",inner:"index-module_inner__5E-18",inputWrapper:"index-module_inputWrapper__EYDad",input:"index-module_input__28cIX",label:"index-module_label__38axD",labelInner:"index-module_labelInner__EJhNP",addons:"index-module_addons__lhT1R",leftAddons:"index-module_leftAddons__LEkge",rightAddons:"index-module_rightAddons__zsPCo",sub:"index-module_sub__i9z6r",hint:"index-module_hint__RpKM-",block:"index-module_block__flzeK",s:"index-module_s__prKUx",hasLabel:"index-module_hasLabel__ZoVEF",m:"index-module_m__WsWRp",l:"index-module_l__GgDaN",hasLeftAddons:"index-module_hasLeftAddons__SCMwi",hasRightAddons:"index-module_hasRightAddons__-5ME3",disabled:"index-module_disabled__xb0nE",focused:"index-module_focused__gP4eM",hasError:"index-module_hasError__YIyAz",filled:"index-module_filled__eiB1o",error:"index-module_error__kbem3"},n=a.forwardRef((function(n,o){var i,r,t=n.block,_=void 0!==t&&t,m=n.size,u=void 0===m?"s":m,c=n.className,b=n.required,f=n.fieldClassName,h=n.labelClassName,x=n.addonsClassName,p=n.disabled,E=n.focused,N=n.filled,A=n.error,g=n.hint,v=n.label,C=n.leftAddons,k=n.rightAddons,I=n.bottomAddons,L=n.children,R=n.dataTestId,z=e(n,["block","size","className","required","fieldClassName","labelClassName","addonsClassName","disabled","focused","filled","error","hint","label","leftAddons","rightAddons","bottomAddons","children","dataTestId"]),W="string"==typeof A?A:"";return a.createElement("div",{"data-test-id":R,className:l(s.component,c,s[u],(i={},i[s.block]=_,i[s.hasLeftAddons]=C,i[s.hasRightAddons]=k||A,i))},a.createElement("div",d({},z,{className:l(f,s.inner,(r={},r[s.focused]=E,r[s.disabled]=p,r[s.filled]=N,r[s.hasError]=A,r[s.hasLabel]=v,r)),ref:o}),C&&a.createElement("div",{className:l(s.addons,s.leftAddons,x)},C),a.createElement("div",{className:s.inputWrapper},v&&a.createElement("div",{className:l(s.label,h)},a.createElement("span",{className:s.labelInner},b?v+" *":v)),a.createElement("div",{className:s.input},L)),k&&a.createElement("div",{className:l(s.addons,s.rightAddons,x)},k)),I,W&&a.createElement("span",{"data-attribute":"form-error",className:l(s.sub,s.error)},W),g&&!W&&a.createElement("span",{className:l(s.sub,s.hint)},g))}));export{n as FormControl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormControl}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormControl}from"./component.js";import"../tslib.es6-992290c9.js";import"react";import"classnames";
|
|
@@ -0,0 +1 @@
|
|
|
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-25d626ca.js";var v=Array.isArray,h=Object.keys,y=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=h(t);if((n=f.length)!==h(e).length)return!1;for(r=n;0!=r--;)if(!y.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="[object Null]",V="[object Undefined]",U=I?I.toStringTag:void 0;function x(t){return null==t?void 0===t?V:N:U&&U 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 C(t,e){return function(r){return t(e(r))}}var L=C(Object.getPrototypeOf,Object);function B(t){return null!=t&&"object"==typeof t}var z="[object Object]",$=Function.prototype,W=Object.prototype,G=$.toString,H=W.hasOwnProperty,K=G.call(Object);function Y(t){if(!B(t)||x(t)!=z)return!1;var e=L(t);if(null===e)return!0;var r=H.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&G.call(r)==K}function q(t,e){return t===e||t!=t&&e!=e}function J(t,e){for(var r=t.length;r--;)if(q(t[r][0],e))return r;return-1}var Q=Array.prototype.splice;function X(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 Z(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(t){var e=this.__data__,r=J(e,t);return!(r<0)&&(r==e.length-1?e.pop():Q.call(e,r,1),--this.size,!0)},X.prototype.get=function(t){var e=this.__data__,r=J(e,t);return r<0?void 0:e[r][1]},X.prototype.has=function(t){return J(this.__data__,t)>-1},X.prototype.set=function(t,e){var r=this.__data__,n=J(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var tt="[object AsyncFunction]",et="[object Function]",rt="[object GeneratorFunction]",nt="[object Proxy]";function ot(t){if(!Z(t))return!1;var e=x(t);return e==et||e==rt||e==tt||e==nt}var at,it=F["__core-js_shared__"],ut=(at=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"";var ct=Function.prototype.toString;function lt(t){if(null!=t){try{return ct.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var st=/^\[object .+?Constructor\]$/,ft=Function.prototype,pt=Object.prototype,dt=ft.toString,vt=pt.hasOwnProperty,ht=RegExp("^"+dt.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yt(t){return!(!Z(t)||(e=t,ut&&ut in e))&&(ot(t)?ht:st).test(lt(t));var e}function bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return yt(r)?r:void 0}var mt=bt(F,"Map"),_t=bt(Object,"create");var gt="__lodash_hash_undefined__",jt=Object.prototype.hasOwnProperty;var Et=Object.prototype.hasOwnProperty;var St="__lodash_hash_undefined__";function Ot(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 At(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 Tt(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])}}Ot.prototype.clear=function(){this.__data__=_t?_t(null):{},this.size=0},Ot.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ot.prototype.get=function(t){var e=this.__data__;if(_t){var r=e[t];return r===gt?void 0:r}return jt.call(e,t)?e[t]:void 0},Ot.prototype.has=function(t){var e=this.__data__;return _t?void 0!==e[t]:Et.call(e,t)},Ot.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_t&&void 0===e?St:e,this},Tt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ot,map:new(mt||X),string:new Ot}},Tt.prototype.delete=function(t){var e=At(this,t).delete(t);return this.size-=e?1:0,e},Tt.prototype.get=function(t){return At(this,t).get(t)},Tt.prototype.has=function(t){return At(this,t).has(t)},Tt.prototype.set=function(t,e){var r=At(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var wt=200;function Ft(t){var e=this.__data__=new X(t);this.size=e.size}Ft.prototype.clear=function(){this.__data__=new X,this.size=0},Ft.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ft.prototype.get=function(t){return this.__data__.get(t)},Ft.prototype.has=function(t){return this.__data__.has(t)},Ft.prototype.set=function(t,e){var r=this.__data__;if(r instanceof X){var n=r.__data__;if(!mt||n.length<wt-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Tt(n)}return r.set(t,e),this.size=r.size,this};var It=function(){try{var t=bt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function Rt(t,e,r){"__proto__"==e&&It?It(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var kt=Object.prototype.hasOwnProperty;function Dt(t,e,r){var n=t[e];kt.call(t,e)&&q(n,r)&&(void 0!==r||e in t)||Rt(t,e,r)}function Pt(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?Rt(r,u,c):Dt(r,u,c)}return r}var Mt="[object Arguments]";function Nt(t){return B(t)&&x(t)==Mt}var Vt=Object.prototype,Ut=Vt.hasOwnProperty,xt=Vt.propertyIsEnumerable,Ct=Nt(function(){return arguments}())?Nt:function(t){return B(t)&&Ut.call(t,"callee")&&!xt.call(t,"callee")},Lt=Array.isArray;var Bt="object"==typeof exports&&exports&&!exports.nodeType&&exports,zt=Bt&&"object"==typeof module&&module&&!module.nodeType&&module,$t=zt&&zt.exports===Bt?F.Buffer:void 0,Wt=($t?$t.isBuffer:void 0)||function(){return!1},Gt=9007199254740991,Ht=/^(?:0|[1-9]\d*)$/;function Kt(t,e){var r=typeof t;return!!(e=null==e?Gt:e)&&("number"==r||"symbol"!=r&&Ht.test(t))&&t>-1&&t%1==0&&t<e}var Yt=9007199254740991;function qt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Yt}var Jt={};function Qt(t){return function(e){return t(e)}}Jt["[object Float32Array]"]=Jt["[object Float64Array]"]=Jt["[object Int8Array]"]=Jt["[object Int16Array]"]=Jt["[object Int32Array]"]=Jt["[object Uint8Array]"]=Jt["[object Uint8ClampedArray]"]=Jt["[object Uint16Array]"]=Jt["[object Uint32Array]"]=!0,Jt["[object Arguments]"]=Jt["[object Array]"]=Jt["[object ArrayBuffer]"]=Jt["[object Boolean]"]=Jt["[object DataView]"]=Jt["[object Date]"]=Jt["[object Error]"]=Jt["[object Function]"]=Jt["[object Map]"]=Jt["[object Number]"]=Jt["[object Object]"]=Jt["[object RegExp]"]=Jt["[object Set]"]=Jt["[object String]"]=Jt["[object WeakMap]"]=!1;var Xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Zt=Xt&&"object"==typeof module&&module&&!module.nodeType&&module,te=Zt&&Zt.exports===Xt&&T.process,ee=function(){try{var t=Zt&&Zt.require&&Zt.require("util").types;return t||te&&te.binding&&te.binding("util")}catch(t){}}(),re=ee&&ee.isTypedArray,ne=re?Qt(re):function(t){return B(t)&&qt(t.length)&&!!Jt[x(t)]},oe=Object.prototype.hasOwnProperty;function ae(t,e){var r=Lt(t),n=!r&&Ct(t),o=!r&&!n&&Wt(t),a=!r&&!n&&!o&&ne(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&&!oe.call(t,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Kt(l,c))||u.push(l);return u}var ie=Object.prototype;function ue(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ie)}var ce=C(Object.keys,Object),le=Object.prototype.hasOwnProperty;function se(t){return null!=t&&qt(t.length)&&!ot(t)}function fe(t){return se(t)?ae(t):function(t){if(!ue(t))return ce(t);var e=[];for(var r in Object(t))le.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var pe=Object.prototype.hasOwnProperty;function de(t){if(!Z(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=ue(t),r=[];for(var n in t)("constructor"!=n||!e&&pe.call(t,n))&&r.push(n);return r}function ve(t){return se(t)?ae(t,!0):de(t)}var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,ye=he&&"object"==typeof module&&module&&!module.nodeType&&module,be=ye&&ye.exports===he?F.Buffer:void 0,me=be?be.allocUnsafe:void 0;function _e(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function ge(){return[]}var je=Object.prototype.propertyIsEnumerable,Ee=Object.getOwnPropertySymbols,Se=Ee?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}(Ee(t),(function(e){return je.call(t,e)})))}:ge;function Oe(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Ae=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Oe(e,Se(t)),t=L(t);return e}:ge;function Te(t,e,r){var n=e(t);return Lt(t)?n:Oe(n,r(t))}function we(t){return Te(t,fe,Se)}function Fe(t){return Te(t,ve,Ae)}var Ie=bt(F,"DataView"),Re=bt(F,"Promise"),ke=bt(F,"Set"),De=bt(F,"WeakMap"),Pe="[object Map]",Me="[object Promise]",Ne="[object Set]",Ve="[object WeakMap]",Ue="[object DataView]",xe=lt(Ie),Ce=lt(mt),Le=lt(Re),Be=lt(ke),ze=lt(De),$e=x;(Ie&&$e(new Ie(new ArrayBuffer(1)))!=Ue||mt&&$e(new mt)!=Pe||Re&&$e(Re.resolve())!=Me||ke&&$e(new ke)!=Ne||De&&$e(new De)!=Ve)&&($e=function(t){var e=x(t),r="[object Object]"==e?t.constructor:void 0,n=r?lt(r):"";if(n)switch(n){case xe:return Ue;case Ce:return Pe;case Le:return Me;case Be:return Ne;case ze:return Ve}return e});var We=$e,Ge=Object.prototype.hasOwnProperty;var He=F.Uint8Array;function Ke(t){var e=new t.constructor(t.byteLength);return new He(e).set(new He(t)),e}var Ye=/\w*$/;var qe=I?I.prototype:void 0,Je=qe?qe.valueOf:void 0;var Qe="[object Boolean]",Xe="[object Date]",Ze="[object Map]",tr="[object Number]",er="[object RegExp]",rr="[object Set]",nr="[object String]",or="[object Symbol]",ar="[object ArrayBuffer]",ir="[object DataView]",ur="[object Float32Array]",cr="[object Float64Array]",lr="[object Int8Array]",sr="[object Int16Array]",fr="[object Int32Array]",pr="[object Uint8Array]",dr="[object Uint8ClampedArray]",vr="[object Uint16Array]",hr="[object Uint32Array]";function yr(t,e,r){var n,o,a,i=t.constructor;switch(e){case ar:return Ke(t);case Qe:case Xe:return new i(+t);case ir:return function(t,e){var r=e?Ke(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case ur:case cr:case lr:case sr:case fr:case pr:case dr:case vr:case hr:return function(t,e){var r=e?Ke(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case Ze:return new i;case tr:case nr:return new i(t);case er:return(a=new(o=t).constructor(o.source,Ye.exec(o))).lastIndex=o.lastIndex,a;case rr:return new i;case or:return n=t,Je?Object(Je.call(n)):{}}}var br=Object.create,mr=function(){function t(){}return function(e){if(!Z(e))return{};if(br)return br(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var _r="[object Map]";var gr=ee&&ee.isMap,jr=gr?Qt(gr):function(t){return B(t)&&We(t)==_r},Er="[object Set]";var Sr=ee&&ee.isSet,Or=Sr?Qt(Sr):function(t){return B(t)&&We(t)==Er},Ar=1,Tr=2,wr=4,Fr="[object Arguments]",Ir="[object Function]",Rr="[object GeneratorFunction]",kr="[object Object]",Dr={};function Pr(t,e,r,n,o,a){var i,u=e&Ar,c=e&Tr,l=e≀if(r&&(i=o?r(t,n,o,a):r(t)),void 0!==i)return i;if(!Z(t))return t;var s=Lt(t);if(s){if(i=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Ge.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!u)return _e(t,i)}else{var f=We(t),p=f==Ir||f==Rr;if(Wt(t))return function(t,e){if(e)return t.slice();var r=t.length,n=me?me(r):new t.constructor(r);return t.copy(n),n}(t,u);if(f==kr||f==Fr||p&&!o){if(i=c||p?{}:function(t){return"function"!=typeof t.constructor||ue(t)?{}:mr(L(t))}(t),!u)return c?function(t,e){return Pt(t,Ae(t),e)}(t,function(t,e){return t&&Pt(e,ve(e),t)}(i,t)):function(t,e){return Pt(t,Se(t),e)}(t,function(t,e){return t&&Pt(e,fe(e),t)}(i,t))}else{if(!Dr[f])return o?t:{};i=yr(t,f,u)}}a||(a=new Ft);var d=a.get(t);if(d)return d;a.set(t,i),Or(t)?t.forEach((function(n){i.add(Pr(n,e,r,n,t,a))})):jr(t)&&t.forEach((function(n,o){i.set(o,Pr(n,e,r,o,t,a))}));var v=s?void 0:(l?c?Fe:we:c?ve:fe)(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]),Dt(i,o,Pr(n,e,r,o,t,a))})),i}Dr[Fr]=Dr["[object Array]"]=Dr["[object ArrayBuffer]"]=Dr["[object DataView]"]=Dr["[object Boolean]"]=Dr["[object Date]"]=Dr["[object Float32Array]"]=Dr["[object Float64Array]"]=Dr["[object Int8Array]"]=Dr["[object Int16Array]"]=Dr["[object Int32Array]"]=Dr["[object Map]"]=Dr["[object Number]"]=Dr[kr]=Dr["[object RegExp]"]=Dr["[object Set]"]=Dr["[object String]"]=Dr["[object Symbol]"]=Dr["[object Uint8Array]"]=Dr["[object Uint8ClampedArray]"]=Dr["[object Uint16Array]"]=Dr["[object Uint32Array]"]=!0,Dr["[object Error]"]=Dr[Ir]=Dr["[object WeakMap]"]=!1;var Mr=4;function Nr(t){return Pr(t,Mr)}function Vr(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}var Ur="[object Symbol]";function xr(t){return"symbol"==typeof t||B(t)&&x(t)==Ur}var Cr="Expected a function";function Lr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Cr);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(Lr.Cache||Tt),r}Lr.Cache=Tt;var Br=500;var zr,$r,Wr,Gr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hr=/\\(\\)?/g,Kr=(zr=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Gr,(function(t,r,n,o){e.push(n?o.replace(Hr,"$1"):r||t)})),e},$r=Lr(zr,(function(t){return Wr.size===Br&&Wr.clear(),t})),Wr=$r.cache,$r),Yr=1/0;function qr(t){if("string"==typeof t||xr(t))return t;var e=t+"";return"0"==e&&1/t==-Yr?"-0":e}var Jr=1/0,Qr=I?I.prototype:void 0,Xr=Qr?Qr.toString:void 0;function Zr(t){if("string"==typeof t)return t;if(Lt(t))return Vr(t,Zr)+"";if(xr(t))return Xr?Xr.call(t):"";var e=t+"";return"0"==e&&1/t==-Jr?"-0":e}function tn(t){return Lt(t)?Vr(t,qr):xr(t)?[t]:_e(Kr(function(t){return null==t?"":Zr(t)}(t)))}var en="production"===process.env.NODE_ENV;function rn(t,e){if(!en){if(t)return;var r="Warning: "+e;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(t){}}}var nn={};nn[d.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nn[d.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var on=1,an=4;function un(t){return Pr(t,on|an)}function cn(){return cn=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},cn.apply(this,arguments)}function ln(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 sn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var fn=function(t){return Array.isArray(t)&&0===t.length},pn=function(t){return"function"==typeof t},dn=function(t){return null!==t&&"object"==typeof t},vn=function(t){return String(Math.floor(Number(t)))===t},hn=function(t){return"[object String]"===Object.prototype.toString.call(t)},yn=function(t){return 0===i.count(t)},bn=function(t){return dn(t)&&pn(t.then)};function mn(t,e,r,n){void 0===n&&(n=0);for(var o=tn(e);t&&n<o.length;)t=t[o[n++]];return void 0===t?r:t}function _n(t,e,r){for(var n=Nr(t),o=n,a=0,i=tn(e);a<i.length-1;a++){var u=i[a],c=mn(t,i.slice(0,a+1));if(c&&(dn(c)||Array.isArray(c)))o=o[u]=Nr(c);else{var l=i[a+1];o=o[u]=vn(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 gn(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];dn(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},gn(u,e,r,n[i])):n[i]=e}return n}var jn=t(void 0);jn.displayName="FormikContext";var En=jn.Provider;function Sn(t,e){switch(e.type){case"SET_VALUES":return cn({},t,{values:e.payload});case"SET_TOUCHED":return cn({},t,{touched:e.payload});case"SET_ERRORS":return _(t.errors,e.payload)?t:cn({},t,{errors:e.payload});case"SET_STATUS":return cn({},t,{status:e.payload});case"SET_ISSUBMITTING":return cn({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return cn({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return cn({},t,{values:_n(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return cn({},t,{touched:_n(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return cn({},t,{errors:_n(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return cn({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return cn({},t,{touched:gn(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return cn({},t,{isSubmitting:!1});default:return t}}jn.Consumer;var On={},An={};function Tn(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,h=t.onSubmit,y=ln(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),b=cn({validateOnChange:r,validateOnBlur:o,validateOnMount:f,onSubmit:h},y),m=u(b.initialValues),g=u(b.initialErrors||On),j=u(b.initialTouched||An),E=u(b.initialStatus),S=u(!1),O=u({});"production"!==process.env.NODE_ENV&&a((function(){void 0!==p&&("production"!==process.env.NODE_ENV?rn(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):rn(!1))}),[]),a((function(){return S.current=!0,function(){S.current=!1}}),[]);var T=c(Sn,{values:b.initialValues,errors:b.initialErrors||On,touched:b.initialTouched||An,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(On):bn(o)?o.then((function(t){r(t||On)}),(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=pn(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=In(t);return e[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(t,n);return new Promise((function(t,e){o.then((function(){t(On)}),(function(r){"ValidationError"===r.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return _n(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;mn(e,i.path)||(e=_n(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 pn(O.current[t].validate)})),r=e.length>0?e.map((function(e){return k(e,mn(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=_n(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:Rn})}))}),[b.validate,b.validationSchema,D,I,R]),M=Dn((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);bn(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||On,F({type:"SET_ERRORS",payload:b.initialErrors||On}))}),[v,b.initialErrors]),a((function(){v&&!0===S.current&&!_(j.current,b.initialTouched)&&(j.current=b.initialTouched||An,F({type:"SET_TOUCHED",payload:b.initialTouched||An}))}),[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=Dn((function(t){if(O.current[t]&&pn(O.current[t].validate)){var e=mn(w.values,t),r=O.current[t].validate(e);return bn(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=Dn((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=Dn((function(t,e){var n=pn(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}})}),[]),$=Dn((function(t,e,n){return F({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===n?r:n)?M(_n(w.values,t,e)):Promise.resolve()})),W=l((function(t,e){var r,n=e,o=t;if(!hn(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||Fn({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))}(mn(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=Dn((function(t){if(hn(t))return function(e){return W(e,t)};W(t)})),H=Dn((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||Fn({htmlContent:a,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),H(i,!0)}),[H]),Y=Dn((function(t){if(hn(t))return function(e){return K(e,t)};K(t)})),q=l((function(t){pn(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=Dn((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=Dn((function(t){if(t&&t.preventDefault&&pn(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&pn(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?rn(!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"`.'):rn(!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=Dn((function(){return h(w.values,tt)})),rt=Dn((function(t){t&&t.preventDefault&&pn(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&pn(t.stopPropagation)&&t.stopPropagation(),N()})),nt=l((function(t){return{value:mn(w.values,t),error:mn(w.errors,t),touched:!!mn(w.touched,t),initialValue:mn(m.current,t),initialTouched:!!mn(j.current,t),initialError:mn(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=dn(t),r=e?t.name:t,n=mn(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&&pn(p)?p(b):p:w.errors&&0===Object.keys(w.errors).length}),[p,it,w.errors,b]);return cn({},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 wn(t){var e=Tn(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?rn(!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>"):rn(!1))}),[]),r(En,{value:e},n?r(n,e):c?c(e):u?pn(u)?u(e):yn(u)?null:i.only(u):null)}function Fn(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 In(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)||Y(t)?In(t):""!==t?t:void 0})):Y(t[n])?e[n]=In(t[n]):e[n]=""!==t[n]?t[n]:void 0}return e}function Rn(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 kn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?p:a;function Dn(t){var e=u(t);return kn((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=ln(t,["action"]),u=null!=a?a:"#",c=((o=n(jn))||("production"!==process.env.NODE_ENV?rn(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):rn(!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 Pn=function(t,e,r){var n=Un(t),o=n[e];return n.splice(e,1),n.splice(r,0,o),n},Mn=function(t,e,r){var n=Un(t),o=n[e];return n[e]=n[r],n[r]=o,n},Nn=function(t,e,r){var n=Un(t);return n.splice(e,0,r),n},Vn=function(t,e,r){var n=Un(t);return n[e]=r,n},Un=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(cn({},t,{length:e+1}))}return[]},xn=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=_n(r.values,a,t(mn(r.values,a))),c=n?o(mn(r.errors,a)):void 0,l=e?i(mn(r.touched,a)):void 0;return fn(c)&&(c=void 0),fn(l)&&(l=void 0),cn({},r,{values:u,errors:n?_n(r.errors,a,c):r.errors,touched:e?_n(r.touched,a,l):r.touched})}))},r.push=function(t){return r.updateArrayField((function(e){return[].concat(Un(e),[un(t)])}),!1,!1)},r.handlePush=function(t){return function(){return r.push(t)}},r.swap=function(t,e){return r.updateArrayField((function(r){return Mn(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 Pn(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 Nn(r,t,e)}),(function(e){return Nn(e,t,null)}),(function(e){return Nn(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 Vn(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(sn(r)),r.pop=r.pop.bind(sn(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&&!_(mn(t.formik.values,t.name),mn(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?Un(r):[];return e||(e=n[t]),pn(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=cn({},t,{form:ln(e.formik,["validate","validationSchema"]),name:u});return n?r(n,c):o?o(c):a?"function"==typeof a?a(c):yn(a)?null:i.only(a):null},o}(f);xn.defaultProps={validateOnChange:!0};export{wn as F};
|