@feathery/react 2.38.0 → 2.39.0
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/cjs/Form/index.d.ts.map +1 -1
- package/cjs/elements/basic/ImageElement.d.ts.map +1 -1
- package/cjs/elements/fields/index.d.ts +28 -23
- package/cjs/elements/fields/index.d.ts.map +1 -1
- package/cjs/elements/index.d.ts +66 -22
- package/cjs/elements/index.d.ts.map +1 -1
- package/cjs/{fthry_AssistantChat.DMRqYl7c.js → fthry_AssistantChat.L8QqDrZ9.js} +4 -4
- package/cjs/{fthry_FormControl.Cl-dGLcM.js → fthry_FormControl.B6IeQ4Ds.js} +1 -1
- package/cjs/{fthry_InlineTooltip.B8DIhcwN.js → fthry_InlineTooltip.CHwGV2ye.js} +2 -2
- package/cjs/{fthry_Overlay.cDGh2blq.js → fthry_Overlay.BApTL35K.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.DBG_F2IV.js → fthry_PaymentMethodField.B4dRDX90.js} +4 -4
- package/cjs/{fthry_Placeholder.D3e5FkES.js → fthry_Placeholder.DWR5nO5t.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.Da2SnAC6.js → fthry_ShowEyeIcon.CrWpuKPG.js} +1 -1
- package/cjs/{fthry_highlighted-body-TPN3WLV5.BHwDjUKJ.js → fthry_highlighted-body-TPN3WLV5.CIRngtHJ.js} +3 -3
- package/cjs/{fthry_index.C1bGkjXK.js → fthry_index.7DwrYriA.js} +8 -8
- package/cjs/{fthry_index.DaWvIjDB.js → fthry_index.B9CMlFfK.js} +2 -2
- package/cjs/{fthry_index.Bq69xc_i.js → fthry_index.BBz67wEv.js} +5 -5
- package/cjs/{fthry_index.Bfi9gaRQ.js → fthry_index.BEpOYeuD.js} +4 -4
- package/cjs/{fthry_index.HtL5MFY2.js → fthry_index.BVr4Lcyo.js} +1 -1
- package/cjs/{fthry_index.71p3lEGO.js → fthry_index.Bde3s5tl.js} +5 -5
- package/cjs/{fthry_index.CUUU_mSN.js → fthry_index.Bq4ONiuv.js} +1 -1
- package/cjs/{fthry_index.DGQK0BX6.js → fthry_index.BwxSWwJZ.js} +3 -3
- package/cjs/{fthry_index.z4phbmML.js → fthry_index.BxTMSKYR.js} +6 -6
- package/cjs/{fthry_index.BHmognVe.js → fthry_index.C7zyqnbf.js} +5 -5
- package/cjs/{fthry_index.8WMLSq-m.js → fthry_index.CLqeg1q-.js} +5 -5
- package/cjs/{fthry_index.DVl7lCQ4.js → fthry_index.Ca9y1U8W.js} +1 -1
- package/cjs/{fthry_index._rTrmGwo.js → fthry_index.CaQDsoPD.js} +254 -90
- package/cjs/{fthry_index.DKbXGnnP.js → fthry_index.CznkErSr.js} +6 -6
- package/cjs/{fthry_index.DX0u8QrD.js → fthry_index.D7IlFInQ.js} +2 -2
- package/cjs/{fthry_index.DVHeeCAd.js → fthry_index.DKe_zH6q.js} +1 -1
- package/cjs/{fthry_index.Da2RxuWz.js → fthry_index.DYCg5RsQ.js} +3 -3
- package/cjs/{fthry_index.DEnbUjkR.js → fthry_index.Dl1GeWM6.js} +4 -4
- package/cjs/{fthry_index.DD6R-HZB.js → fthry_index.Dly0rruo.js} +1 -1
- package/cjs/{fthry_index.CELRWX9K.js → fthry_index.IxpG538L.js} +1 -1
- package/cjs/{fthry_index.CcDlE6Qp.js → fthry_index.TVlALn4r.js} +1 -1
- package/cjs/{fthry_index.CE4Pt2Be.js → fthry_index.YyKms2Ty.js} +5 -5
- package/cjs/{fthry_index.B8RLVADy.js → fthry_index.fFWtGd8u.js} +1 -1
- package/cjs/{fthry_index.VY9IsOXx.js → fthry_index.qxBbMcVu.js} +6 -6
- package/cjs/{fthry_index.Cl5vVnOu.js → fthry_index.xHwcINEA.js} +1 -1
- package/cjs/{fthry_input.CNUxn07s.js → fthry_input.C-RhGr8Z.js} +1 -1
- package/cjs/{fthry_mermaid-O7DHMXV3.C-jL0nU0.js → fthry_mermaid-O7DHMXV3.B40IiwEd.js} +3 -3
- package/cjs/{fthry_script.CngcPx_9.js → fthry_script.BUzm9HxD.js} +1 -1
- package/cjs/{fthry_styles.BVmu9I22.js → fthry_styles.BD-5zYX4.js} +1 -1
- package/cjs/{fthry_useElementSize.BgBAI35V.js → fthry_useElementSize.7Vh9Fjsi.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.C1MgCEkl.js → fthry_useSalesforceSync.BYr2Zkyy.js} +1 -1
- package/cjs/{fthry_webfontloader.BgZRGUoe.js → fthry_webfontloader.B3eO9SnD.js} +1 -1
- package/cjs/index.d.ts +66 -22
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +1 -1
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/elements/basic/ImageElement.d.ts.map +1 -1
- package/dist/elements/fields/index.d.ts +28 -23
- package/dist/elements/fields/index.d.ts.map +1 -1
- package/dist/elements/index.d.ts +66 -22
- package/dist/elements/index.d.ts.map +1 -1
- package/dist/{fthry_AssistantChat.BpIazy4D.js → fthry_AssistantChat.B4O7bQrp.js} +4 -4
- package/dist/{fthry_FormControl.VJETpF2_.js → fthry_FormControl.BEWaNHn3.js} +1 -1
- package/dist/{fthry_InlineTooltip.HYGB8l2S.js → fthry_InlineTooltip.CP92bAZA.js} +2 -2
- package/dist/{fthry_Overlay.DndK3JOJ.js → fthry_Overlay.D_UvdjmJ.js} +1 -1
- package/dist/{fthry_PaymentMethodField.iCQc8h5O.js → fthry_PaymentMethodField.BiBx9LjH.js} +4 -4
- package/dist/{fthry_Placeholder.BRzhfZ1W.js → fthry_Placeholder.CsY-scXc.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.Cccxpke2.js → fthry_ShowEyeIcon.CN_11GCA.js} +1 -1
- package/dist/{fthry_highlighted-body-TPN3WLV5._HIiKJRn.js → fthry_highlighted-body-TPN3WLV5.B91Jtsra.js} +3 -3
- package/dist/{fthry_index.CaQYjI5I.js → fthry_index.BFwgxX3L.js} +5 -5
- package/dist/{fthry_index.-9Pe_RZJ.js → fthry_index.BK2Hnx9K.js} +1 -1
- package/dist/{fthry_index.B020qTL1.js → fthry_index.BXAOPQ-N.js} +5 -5
- package/dist/{fthry_index.JhHnGxYn.js → fthry_index.BYoImnvU.js} +1 -1
- package/dist/{fthry_index.BZuK2sQ5.js → fthry_index.BitwCfs0.js} +1 -1
- package/dist/{fthry_index.DPAdqFeT.js → fthry_index.BqX45OG8.js} +3 -3
- package/dist/{fthry_index.D7Lb5Krw.js → fthry_index.BwsOm7hb.js} +5 -5
- package/dist/{fthry_index.P0AejkY4.js → fthry_index.CCXpngi5.js} +5 -5
- package/dist/{fthry_index.Ca770hPU.js → fthry_index.CNjt1dpv.js} +1 -1
- package/dist/{fthry_index.B_AxehyW.js → fthry_index.CRbJuR5X.js} +6 -6
- package/dist/{fthry_index.BOItLjiR.js → fthry_index.CUa6fIIV.js} +8 -8
- package/dist/{fthry_index.CQOONMqP.js → fthry_index.D5kSN9-t.js} +1 -1
- package/dist/{fthry_index.BQlKGMSZ.js → fthry_index.DHr6yAT3.js} +6 -6
- package/dist/{fthry_index.DwVO_QsO.js → fthry_index.DJwLQi_x.js} +1 -1
- package/dist/{fthry_index.B2UzR5GS.js → fthry_index.DTkLn4V9.js} +3 -3
- package/dist/{fthry_index.DIIoaRob.js → fthry_index.DUEiyRBT.js} +4 -4
- package/dist/{fthry_index.CBlXw7TW.js → fthry_index.DgVE4qW7.js} +254 -90
- package/dist/{fthry_index.08-lgbei.js → fthry_index.DtBZRH06.js} +5 -5
- package/dist/{fthry_index.DHPFNhgl.js → fthry_index.OjuYAGjs.js} +1 -1
- package/dist/{fthry_index.mxecJ9_a.js → fthry_index.W8pRYyDi.js} +6 -6
- package/dist/{fthry_index.BZZHsN5a.js → fthry_index.ebPmN15E.js} +4 -4
- package/dist/{fthry_index.DL46TGQr.js → fthry_index.k6djaqmS.js} +2 -2
- package/dist/{fthry_index.DOOj6cJp.js → fthry_index.slanwBPP.js} +1 -1
- package/dist/{fthry_index.BH5ZPwTL.js → fthry_index.tw8xNWZc.js} +2 -2
- package/dist/{fthry_index.CQfKbwaC.js → fthry_index.w7Nx6zNo.js} +1 -1
- package/dist/{fthry_input.DVAV1a0p.js → fthry_input.D94H5xWk.js} +1 -1
- package/dist/{fthry_mermaid-O7DHMXV3.BdzSXu8K.js → fthry_mermaid-O7DHMXV3.D_D0ytjk.js} +3 -3
- package/dist/{fthry_script.4UR41bnG.js → fthry_script.C4MOLOaj.js} +1 -1
- package/dist/{fthry_styles.BfM6iy4Q.js → fthry_styles.BQL5_8xd.js} +1 -1
- package/dist/{fthry_useElementSize.BVjOicba.js → fthry_useElementSize.C7pCjEY0.js} +1 -1
- package/dist/{fthry_useSalesforceSync.CXqC544h.js → fthry_useSalesforceSync.Bj6SvTIc.js} +1 -1
- package/dist/{fthry_webfontloader.n8GaR_jB.js → fthry_webfontloader.CT2fb2Df.js} +1 -1
- package/dist/index.d.ts +66 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/umd/{AddressField.2d777eda22a67a0ed3a3.js → AddressField.c4188872f2a931394aa1.js} +1 -1
- package/umd/{DropdownMultiField.c8c926000cbed5ee771a.js → DropdownMultiField.72a44c0280217eeb5652.js} +1 -1
- package/umd/{PhoneField.6b9ad2d0d9387ef78a1f.js → PhoneField.8183bed71fa92767aa3a.js} +1 -1
- package/umd/{TextField.f5cc4a03e69d5872027b.js → TextField.28c59425e129e78a4551.js} +1 -1
- package/umd/index.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as __read, j as jsxs, _ as __assign, a as jsx, h as hoverStylesGuard } from './fthry_index.
|
|
1
|
+
import { c as __read, j as jsxs, _ as __assign, a as jsx, h as hoverStylesGuard } from './fthry_index.DgVE4qW7.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.BQL5_8xd.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as jsx, _ as __assign, j as jsxs, c as __read, l as __awaiter, m as __generator, p as featheryWindow, q as Fragment, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { a as jsx, _ as __assign, j as jsxs, c as __read, l as __awaiter, m as __generator, p as featheryWindow, q as Fragment, E as ErrorInput } from './fthry_index.DgVE4qW7.js';
|
|
2
2
|
import { useRef, useState, useEffect, memo, useMemo } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as __awaiter, m as __generator, L as __spreadArray, c as __read, U as __values, p as featheryWindow, V as loadQRScanner, W as throttle, a as jsx, j as jsxs, _ as __assign, q as Fragment, E as ErrorInput, X as qrPromise } from './fthry_index.
|
|
1
|
+
import { l as __awaiter, m as __generator, L as __spreadArray, c as __read, U as __values, p as featheryWindow, V as loadQRScanner, W as throttle, a as jsx, j as jsxs, _ as __assign, q as Fragment, E as ErrorInput, X as qrPromise } from './fthry_index.DgVE4qW7.js';
|
|
2
2
|
import React__default, { useEffect, useCallback } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.BQL5_8xd.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as featheryWindow, j as jsxs, _ as __assign, a as jsx, c as __read, u as useBorder, h as hoverStylesGuard, P as isNum } from './fthry_index.
|
|
1
|
+
import { p as featheryWindow, j as jsxs, _ as __assign, a as jsx, c as __read, u as useBorder, h as hoverStylesGuard, P as isNum } from './fthry_index.DgVE4qW7.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { u as Mermaid } from './fthry_AssistantChat.
|
|
2
|
-
import './fthry_index.
|
|
1
|
+
export { u as Mermaid } from './fthry_AssistantChat.B4O7bQrp.js';
|
|
2
|
+
import './fthry_index.DgVE4qW7.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
7
7
|
import 'react-dom';
|
|
8
8
|
import './fthry_clsx.ChV9xqsO.js';
|
|
9
|
-
import './fthry_index.
|
|
9
|
+
import './fthry_index.D5kSN9-t.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useState, useMemo } from 'react';
|
|
3
|
-
import { Y as cls, j as jsxs, q as Fragment, a as jsx, G as Global, e as css, g as __makeTemplateObject } from './fthry_index.
|
|
3
|
+
import { Y as cls, j as jsxs, q as Fragment, a as jsx, G as Global, e as css, g as __makeTemplateObject } from './fthry_index.DgVE4qW7.js';
|
|
4
4
|
import { flushSync } from 'react-dom';
|
|
5
5
|
|
|
6
6
|
function canUseDom() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as __read, l as __awaiter, m as __generator, o as FeatheryClient } from './fthry_index.
|
|
1
|
+
import { c as __read, l as __awaiter, m as __generator, o as FeatheryClient } from './fthry_index.DgVE4qW7.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
function useSalesforceSync(salesforceSync, editMode) {
|
package/dist/index.d.ts
CHANGED
|
@@ -123,28 +123,72 @@ declare function renderAt(elementId: any, props: FormProps, loginEnabled?: boole
|
|
|
123
123
|
declare const Feathery: {
|
|
124
124
|
Form: typeof Form;
|
|
125
125
|
Elements: {
|
|
126
|
-
AddressLine1: import("react").
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
126
|
+
AddressLine1: import("react").ComponentType<any> & {
|
|
127
|
+
preload: () => Promise<any>;
|
|
128
|
+
};
|
|
129
|
+
ButtonGroupField: import("react").ComponentType<any> & {
|
|
130
|
+
preload: () => Promise<any>;
|
|
131
|
+
};
|
|
132
|
+
CheckboxField: import("react").ComponentType<any> & {
|
|
133
|
+
preload: () => Promise<any>;
|
|
134
|
+
};
|
|
135
|
+
CheckboxGroupField: import("react").ComponentType<any> & {
|
|
136
|
+
preload: () => Promise<any>;
|
|
137
|
+
};
|
|
138
|
+
ColorPickerField: import("react").ComponentType<any> & {
|
|
139
|
+
preload: () => Promise<any>;
|
|
140
|
+
};
|
|
141
|
+
CustomField: import("react").ComponentType<any> & {
|
|
142
|
+
preload: () => Promise<any>;
|
|
143
|
+
};
|
|
144
|
+
DateSelectorField: import("react").ComponentType<any> & {
|
|
145
|
+
preload: () => Promise<any>;
|
|
146
|
+
};
|
|
147
|
+
DropdownField: import("react").ComponentType<any> & {
|
|
148
|
+
preload: () => Promise<any>;
|
|
149
|
+
};
|
|
150
|
+
DropdownMultiField: import("react").ComponentType<any> & {
|
|
151
|
+
preload: () => Promise<any>;
|
|
152
|
+
};
|
|
153
|
+
FileUploadField: import("react").ComponentType<any> & {
|
|
154
|
+
preload: () => Promise<any>;
|
|
155
|
+
};
|
|
156
|
+
MatrixField: import("react").ComponentType<any> & {
|
|
157
|
+
preload: () => Promise<any>;
|
|
158
|
+
};
|
|
159
|
+
PasswordField: import("react").ComponentType<any> & {
|
|
160
|
+
preload: () => Promise<any>;
|
|
161
|
+
};
|
|
162
|
+
PaymentMethodField: import("react").ComponentType<any> & {
|
|
163
|
+
preload: () => Promise<any>;
|
|
164
|
+
};
|
|
165
|
+
PhoneField: import("react").ComponentType<any> & {
|
|
166
|
+
preload: () => Promise<any>;
|
|
167
|
+
};
|
|
168
|
+
PinInputField: import("react").ComponentType<any> & {
|
|
169
|
+
preload: () => Promise<any>;
|
|
170
|
+
};
|
|
171
|
+
QRScanner: import("react").ComponentType<any> & {
|
|
172
|
+
preload: () => Promise<any>;
|
|
173
|
+
};
|
|
174
|
+
RadioButtonGroupField: import("react").ComponentType<any> & {
|
|
175
|
+
preload: () => Promise<any>;
|
|
176
|
+
};
|
|
177
|
+
RatingField: import("react").ComponentType<any> & {
|
|
178
|
+
preload: () => Promise<any>;
|
|
179
|
+
};
|
|
180
|
+
SignatureField: import("react").ComponentType<any> & {
|
|
181
|
+
preload: () => Promise<any>;
|
|
182
|
+
};
|
|
183
|
+
SliderField: import("react").ComponentType<any> & {
|
|
184
|
+
preload: () => Promise<any>;
|
|
185
|
+
};
|
|
186
|
+
TextField: import("react").ComponentType<any> & {
|
|
187
|
+
preload: () => Promise<any>;
|
|
188
|
+
};
|
|
189
|
+
TextArea: import("react").ComponentType<any> & {
|
|
190
|
+
preload: () => Promise<any>;
|
|
191
|
+
};
|
|
148
192
|
ImageElement: typeof import("./elements/basic/ImageElement").default;
|
|
149
193
|
VideoElement: typeof import("./elements/basic/VideoElement").default;
|
|
150
194
|
TextElement: typeof import("./elements/basic/TextElement").default;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,IAAI,EAAE,EAAU,KAAK,IAAI,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAG3B;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCvE;AAGD,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,IAAI,EAAE,EAAU,KAAK,IAAI,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAG3B;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCvE;AAGD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASb,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,SAAS,EACT,aAAa,EACb,aAAa,EACb,QAAQ,EACR,eAAe,EAChB,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;AAC3C,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aM as AssistantChat, aE as Elements, aN as Feathery, aD as Form, aK as LoginForm, aO as StyledContainer, aI as getFieldValues, aF as init, aJ as renderAt, ay as setFieldValues, aH as updateTheme, aG as updateUserId, aL as useAuthClient } from './fthry_index.
|
|
1
|
+
export { aM as AssistantChat, aE as Elements, aN as Feathery, aD as Form, aK as LoginForm, aO as StyledContainer, aI as getFieldValues, aF as init, aJ as renderAt, ay as setFieldValues, aH as updateTheme, aG as updateUserId, aL as useAuthClient } from './fthry_index.DgVE4qW7.js';
|
|
2
2
|
import 'react-dom/client';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathery/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.39.0",
|
|
4
4
|
"description": "React library for Feathery",
|
|
5
5
|
"author": "Boyang Dun",
|
|
6
6
|
"license": "MIT",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@emotion/babel-preset-css-prop": "11.12.0",
|
|
116
116
|
"@emotion/react": "11.14.0",
|
|
117
117
|
"@emotion/styled": "11.14.0",
|
|
118
|
-
"@feathery/client-utils": "^0.
|
|
118
|
+
"@feathery/client-utils": "^0.16.1",
|
|
119
119
|
"@fingerprintjs/fingerprintjs": "4.6.2",
|
|
120
120
|
"@rc-component/slider": "^1.0.0",
|
|
121
121
|
"@stripe/react-stripe-js": "3.7.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[102],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(7294),i=r(8776),a=r(5096),l=r(2988),u=r(4665),c=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,v=void 0===p||p,h=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(!1),2),b=y[0],m=y[1],w=(0,o.useRef)(null);if(!(r=(0,u.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return m(!0)},onMouseLeave:x?void 0:function(){return m(!1)},onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(){return m((function(e){return!e}))},css:v?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:l.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(a.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(c.Z,f({show:b,targetRef:w,containerRef:h,placement:"left",onHide:function(){return m(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:l.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(7294),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,v=e.offset,h=void 0===v?0:v,g=e.zIndex,y=void 0===g?1e3:g,b=e.containerRef,m=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(null),2),x=w[0],S=w[1],E=(0,o.useCallback)((function(){return(null==b?void 0:b.current)||(0,a.me)().body}),[b]),k=(0,o.useCallback)((function(){var e;if(t&&r.current&&m.current){var n=(0,a.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),l=m.current.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s(p,i,l,h),d=f.top,v=f.left,g=d+l.height,y=v+l.width,b=d>=0&&g<=n.innerHeight,w=v>=0&&y<=n.innerWidth;if(!b||!w){var x=c(p,!b,!w);x!==p&&(d=(e=s(x,i,l,h)).top,v=e.left)}var k=o===(0,a.me)().body,O=k?d+n.scrollY:d-u.top,Z=k?v+n.scrollX:v-u.left;S((function(e){return e&&e.top===O&&e.left===Z?e:{top:O,left:Z}}))}}}),[t,p,h,E,r]),O=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){k(),e=!1})))}}),[k])();if((0,o.useLayoutEffect)((function(){t&&k()}),[t,k]),(0,o.useEffect)((function(){if(t){var e=(0,a.Kv)(),n=E();if(n){e.addEventListener("resize",O),e.addEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.addEventListener("scroll",O);var o=new ResizeObserver((function(){return O()}));return r.current&&o.observe(r.current),n!==(0,a.me)().body&&o.observe(n),function(){e.removeEventListener("resize",O),e.removeEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.removeEventListener("scroll",O),o.disconnect()}}}}),[t,O,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(S(null),null==f||f())},n=function(e){var t=e.target;m.current&&!m.current.contains(t)&&r.current&&!r.current.contains(t)&&(S(null),null==f||f())},o=(0,a.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var Z=E();return Z?(0,i.createPortal)((0,n.tZ)("div",l({ref:m,style:l(l({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:u})),Z):(0,n.tZ)(n.HY,{children:u})};var c=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,v=void 0===p?null:p,h=l.properties,g=null!==(i=(null!==(r=h.repeat_placeholder)&&void 0!==r?r:[])[null!=v?v:0])&&void 0!==i?i:h.placeholder||"",y=o(o({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?y:{}),(t={},t["".concat(s,":focus ~ &")]=y,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},5024:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5944),o=r(7294),i=r(9069),a=r(1587),l=r(1211),u=r(9292),c=r(1296),s=r.n(c),f=r(6867),d=r(7449),p=r(1275),v=r(9479),h=r(5398),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};const b=(0,o.memo)((function(e){var t=this,r=e.element,c=e.responsiveStyles,b=e.fieldLabel,m=e.elementProps,w=void 0===m?{}:m,x=e.disabled,S=void 0!==x&&x,E=e.autoComplete,k=e.editMode,O=e.repeatIndex,Z=void 0===O?null:O,R=e.onSelect,L=void 0===R?function(){}:R,C=e.onChange,T=void 0===C?function(){}:C,z=e.required,I=e.onBlur,j=void 0===I?function(){}:I,B=e.onEnter,P=void 0===B?function(){}:B,_=e.setRef,F=void 0===_?function(){}:_,M=e.value,H=void 0===M?"":M,X=e.inlineError,q=e.children,A=r.servar,K=function(e,t){var r,n=t.metadata,i=n.address_autocomplete,a=null!==(r=n.autocomplete_country)&&void 0!==r?r:"",l=function(){var e=(0,o.useRef)(!0);return(0,o.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),c=y((0,o.useState)(e),2),f=c[0],d=c[1],p=y((0,o.useState)([]),2),v=p[0],h=p[1],g=(0,o.useCallback)(s()((function(e){(new u.ZP).addressSearchResults(e,a,"gmap_city"===t.type).then((function(t){l.current&&(h(t),d(e))}))}),500),[h,d]);return(0,o.useEffect)((function(){var t=e.trim();i&&t!==f&&(t.length>3?g(t):(v.length&&h([]),d(t)))}),[e]),v}(H,A),W=y((0,o.useState)(!1),2),Y=W[0],D=W[1],G=y((0,o.useState)(!1),2),N=G[0],J=G[1],Q=(0,o.useRef)(null),U=(0,o.useRef)(null),V=(0,o.useRef)(null),$=(0,h.Z)(V).width,ee=(0,f.Z)({element:r,error:X,breakpoint:c.getMobileBreakpoint()}),te=ee.borderStyles,re=ee.customBorder,ne="gmap_city"===A.type?"address-level2":"street-address";return(0,n.BX)("div",g({ref:U,css:g({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},c.getTarget("fc"))},w,{children:[q,b,(0,n.BX)("div",g({ref:V,css:g(g(g({position:"relative",width:"100%",overflowX:"clip"},c.getTarget("sub-fc")),S?c.getTarget("disabled"):{}),{"&:hover":(0,v.wL)(S?{}:g(g({},c.getTarget("hover")),te.hover)),"&&":N?g(g({},c.getTarget("active")),te.active):{}})},{children:[re,(0,n.tZ)("input",{id:A.key,name:A.key,css:g(g(g({position:"relative",height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},l.ET),c.getTarget("field")),N||H||!r.properties.placeholder?{}:{color:"transparent !important"}),maxLength:A.max_length,minLength:A.min_length,placeholder:"",disabled:S,"aria-label":r.properties.aria_label,autoComplete:"on"===E?ne:"new-password",value:H,ref:function(e){Q.current=e,F(e)},onKeyDown:function(e){var t;t=e,Boolean(t.isTrusted&&t.code)&&("Enter"===e.key?P(e):D("Escape"!==e.key))},onFocus:function(e){J(!0),(0,v.ms)(e)},onBlur:function(e){setTimeout((function(){return D(!1)}),200),j(e),J(!1)},onChange:T,required:z}),(0,n.tZ)(d.Z,g({show:Y&&K.length>0,targetRef:Q,containerRef:U,placement:"bottom-start",offset:4,onHide:function(){return D(!1)}},{children:(0,n.tZ)("ul",g({css:g({zIndex:p.m,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",width:void 0!==$?"".concat($,"px"):"100%"},c.getTarget("dropdown"))},{children:K.map((function(e){var r=e.display,o=e.address_id;return(0,n.tZ)("li",g({css:{padding:"8px 14px",transition:"0.1s ease all","&:hover":(0,v.wL)({backgroundColor:"#e6e6e633"})},onClick:function(){return e=t,r=void 0,i=function(){var e,t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(r){switch(r.label){case 0:return[4,(new u.ZP).addressDetail(o)];case 1:return e=r.sent(),L(e,o),D(!1),null===(t=Q.current)||void 0===t||t.focus(),[2]}}))},new((n=void 0)||(n=Promise))((function(t,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,l)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},{children:r}),r)}))}))})),(0,n.tZ)(i.Z,{value:H,element:r,responsiveStyles:c,repeatIndex:Z}),(0,n.tZ)(a.Z,{containerRef:U,id:r.id,text:r.properties.tooltipText,responsiveStyles:c,repeat:r.repeat})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(7294),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[102],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(7294),i=r(8776),a=r(5096),l=r(2988),u=r(4665),c=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,v=void 0===p||p,h=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(!1),2),b=y[0],m=y[1],w=(0,o.useRef)(null);if(!(r=(0,u.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return m(!0)},onMouseLeave:x?void 0:function(){return m(!1)},onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(){return m((function(e){return!e}))},css:v?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:l.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(a.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(c.Z,f({show:b,targetRef:w,containerRef:h,placement:"left",onHide:function(){return m(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:l.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(7294),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,v=e.offset,h=void 0===v?0:v,g=e.zIndex,y=void 0===g?1e3:g,b=e.containerRef,m=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(null),2),x=w[0],S=w[1],E=(0,o.useCallback)((function(){return(null==b?void 0:b.current)||(0,a.me)().body}),[b]),k=(0,o.useCallback)((function(){var e;if(t&&r.current&&m.current){var n=(0,a.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),l=m.current.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s(p,i,l,h),d=f.top,v=f.left,g=d+l.height,y=v+l.width,b=d>=0&&g<=n.innerHeight,w=v>=0&&y<=n.innerWidth;if(!b||!w){var x=c(p,!b,!w);x!==p&&(d=(e=s(x,i,l,h)).top,v=e.left)}var k=o===(0,a.me)().body,O=k?d+n.scrollY:d-u.top,Z=k?v+n.scrollX:v-u.left;S((function(e){return e&&e.top===O&&e.left===Z?e:{top:O,left:Z}}))}}}),[t,p,h,E,r]),O=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){k(),e=!1})))}}),[k])();if((0,o.useLayoutEffect)((function(){t&&k()}),[t,k]),(0,o.useEffect)((function(){if(t){var e=(0,a.Kv)(),n=E();if(n){e.addEventListener("resize",O),e.addEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.addEventListener("scroll",O);var o=new ResizeObserver((function(){return O()}));return r.current&&o.observe(r.current),n!==(0,a.me)().body&&o.observe(n),function(){e.removeEventListener("resize",O),e.removeEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.removeEventListener("scroll",O),o.disconnect()}}}}),[t,O,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(S(null),null==f||f())},n=function(e){var t=e.target;m.current&&!m.current.contains(t)&&r.current&&!r.current.contains(t)&&(S(null),null==f||f())},o=(0,a.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var Z=E();return Z?(0,i.createPortal)((0,n.tZ)("div",l({ref:m,style:l(l({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:u})),Z):(0,n.tZ)(n.HY,{children:u})};var c=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,v=void 0===p?null:p,h=l.properties,g=null!==(i=(null!==(r=h.repeat_placeholder)&&void 0!==r?r:[])[null!=v?v:0])&&void 0!==i?i:h.placeholder||"",y=o(o({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?y:{}),(t={},t["".concat(s,":focus ~ &")]=y,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},5024:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5944),o=r(7294),i=r(9069),a=r(1587),l=r(1211),u=r(9292),c=r(1296),s=r.n(c),f=r(6867),d=r(7449),p=r(1275),v=r(9479),h=r(5398),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};const b=(0,o.memo)((function(e){var t=this,r=e.element,c=e.responsiveStyles,b=e.fieldLabel,m=e.elementProps,w=void 0===m?{}:m,x=e.disabled,S=void 0!==x&&x,E=e.autoComplete,k=e.editMode,O=e.repeatIndex,Z=void 0===O?null:O,R=e.onSelect,L=void 0===R?function(){}:R,C=e.onChange,T=void 0===C?function(){}:C,z=e.required,I=e.onBlur,j=void 0===I?function(){}:I,B=e.onEnter,P=void 0===B?function(){}:B,_=e.setRef,F=void 0===_?function(){}:_,M=e.value,H=void 0===M?"":M,X=e.inlineError,q=e.children,A=r.servar,K=function(e,t){var r,n=t.metadata,i=n.address_autocomplete,a=null!==(r=n.autocomplete_country)&&void 0!==r?r:"",l=function(){var e=(0,o.useRef)(!0);return(0,o.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),c=y((0,o.useState)(e),2),f=c[0],d=c[1],p=y((0,o.useState)([]),2),v=p[0],h=p[1],g=(0,o.useCallback)(s()((function(e){(new u.ZP).addressSearchResults(e,a,"gmap_city"===t.type).then((function(t){l.current&&(h(t),d(e))}))}),500),[h,d]);return(0,o.useEffect)((function(){var t=e.trim();i&&t!==f&&(t.length>3?g(t):(v.length&&h([]),d(t)))}),[e]),v}(H,A),W=y((0,o.useState)(!1),2),Y=W[0],D=W[1],G=y((0,o.useState)(!1),2),N=G[0],J=G[1],Q=(0,o.useRef)(null),U=(0,o.useRef)(null),V=(0,o.useRef)(null),$=(0,h.Z)(V).width,ee=(0,f.Z)({element:r,error:X,breakpoint:c.getMobileBreakpoint()}),te=ee.borderStyles,re=ee.customBorder,ne="gmap_city"===A.type?"address-level2":"street-address";return(0,n.BX)("div",g({ref:U,css:g({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},c.getTarget("fc"))},w,{children:[q,b,(0,n.BX)("div",g({ref:V,css:g(g(g({position:"relative",width:"100%",overflowX:"clip"},c.getTarget("sub-fc")),S?c.getTarget("disabled"):{}),{"&:hover":(0,v.wL)(S?{}:g(g({},c.getTarget("hover")),te.hover)),"&&":N?g(g({},c.getTarget("active")),te.active):{}})},{children:[re,(0,n.tZ)("input",{id:A.key,name:A.key,css:g(g(g({position:"relative",height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},l.ET),c.getTarget("field")),N||H||!r.properties.placeholder?{}:{color:"transparent !important"}),maxLength:A.max_length,minLength:A.min_length,placeholder:"",disabled:S,"aria-label":r.properties.aria_label,autoComplete:"on"===E?ne:"new-password",value:H,ref:function(e){Q.current=e,F(e)},onKeyDown:function(e){var t;t=e,Boolean(t.isTrusted&&t.code)&&("Enter"===e.key?P(e):D("Escape"!==e.key))},onFocus:function(e){J(!0),(0,v.ms)(e)},onBlur:function(e){setTimeout((function(){return D(!1)}),200),j(e),J(!1)},onChange:T,required:z}),(0,n.tZ)(d.Z,g({show:Y&&K.length>0,targetRef:Q,containerRef:U,placement:"bottom-start",offset:4,onHide:function(){return D(!1)}},{children:(0,n.tZ)("ul",g({css:g({zIndex:p.m6,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",width:void 0!==$?"".concat($,"px"):"100%"},c.getTarget("dropdown"))},{children:K.map((function(e){var r=e.display,o=e.address_id;return(0,n.tZ)("li",g({css:{padding:"8px 14px",transition:"0.1s ease all","&:hover":(0,v.wL)({backgroundColor:"#e6e6e633"})},onClick:function(){return e=t,r=void 0,i=function(){var e,t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(r){switch(r.label){case 0:return[4,(new u.ZP).addressDetail(o)];case 1:return e=r.sent(),L(e,o),D(!1),null===(t=Q.current)||void 0===t||t.focus(),[2]}}))},new((n=void 0)||(n=Promise))((function(t,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,l)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},{children:r}),r)}))}))})),(0,n.tZ)(i.Z,{value:H,element:r,responsiveStyles:c,repeatIndex:Z}),(0,n.tZ)(a.Z,{containerRef:U,id:r.id,text:r.properties.tooltipText,responsiveStyles:c,repeat:r.repeat})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(7294),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[599],{9069:(e,n,t)=>{t.d(n,{Z:()=>l});var o=t(5944),r=function(){return r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},r.apply(this,arguments)};function l(e){var n,t,l,a=e.value,i=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,p=e.inputFocused,d=void 0!==p&&p,f=e.repeatIndex,v=void 0===f?null:f,h=i.properties,y=null!==(l=(null!==(t=h.repeat_placeholder)&&void 0!==t?t:[])[null!=v?v:0])&&void 0!==l?l:h.placeholder||"",g=r(r({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,o.tZ)("span",r({css:r(r(r(r({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?g:{}),(n={},n["".concat(s,":focus ~ &")]=g,n))},{children:y}))}},8168:(e,n,t)=>{t.r(n),t.d(n,{default:()=>q});var o=t(5944),r=t(7294),l=t(6867),a=t(1587),i=t(1275),u=t(9069),c=t(5406),s=t(7600),p=t(7449),d=t(8776),f=t(2988),v=function(){return v=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},v.apply(this,arguments)},h=function(e){var n=e.children,t=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(e,["children"]),l=s.c.Option,a=(0,r.useRef)(null),i=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),u=i[0],c=i[1],h=t.selectProps.containerRef;return t.data.isMoreIndicator?(0,o.tZ)("div",v({css:{padding:"8px 12px",color:"#999",fontStyle:"italic",fontSize:"0.9em",textAlign:"left",cursor:"default",userSelect:"none"}},{children:t.data.label})):(0,o.BX)("div",v({ref:a,onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)}},{children:[(0,o.tZ)(l,v({},t,{children:n})),t.data.tooltip&&a.current&&(0,o.tZ)(p.Z,v({targetRef:a,containerRef:h,show:u,placement:"right"},{children:(0,o.tZ)(d.u,v({id:"tooltip-".concat(t.data.value),css:{zIndex:f.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:t.data.tooltip}))}))]}))},y=s.c.MultiValueRemove,g=function(e){var n=e.selectProps;if(!n.collapseSelected)return(0,o.tZ)(y,v({},e));var t=v(v({},e.innerProps),{onMouseDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,t)},onPointerDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),"touch"===t.pointerType&&t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onPointerDown)||void 0===l||l.call(r,t)},"data-feathery-multi-value-remove":"true"});return(0,o.tZ)(y,v({},e,{innerProps:t}))},m=function(e){var n=s.c.Control,t=e.selectProps.onControlPress,r=function(e,n){return!!(null==t?void 0:t(e,{isTouch:n}))&&(e.preventDefault(),e.stopPropagation(),!0)};return(0,o.tZ)(n,v({},e,{innerProps:v(v({},e.innerProps),{onPointerDown:function(n){var t,o;r(n,"touch"===n.pointerType)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onPointerDown)||void 0===o||o.call(t,n)},onMouseDown:function(n){var t,o;r(n,!1)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onMouseDown)||void 0===o||o.call(t,n)},onTouchStart:function(n){var t,o;r(n,!0)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onTouchStart)||void 0===o||o.call(t,n)}})}))},b=function(e){var n=e.collapsedCount,t=e.onPress;return n>0?(0,o.BX)("span",v({"aria-hidden":"true",className:"rs-collapsed-chip","data-feathery-collapsed-indicator":"true",onPointerDown:function(e){t&&("touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),t(e))},onMouseDown:function(e){t&&(e.preventDefault(),e.stopPropagation(),t(e))},onTouchStart:function(e){t&&(e.stopPropagation(),t(e))},onClick:function(e){t&&(e.stopPropagation(),t(e))}},{children:["+",n]})):null},C=function(e){var n=e.selectProps,t=s.c.MultiValueContainer;if(!n.collapseSelected)return(0,o.tZ)(t,v({},e));var r=(Array.isArray(n.value)?n.value:[]).findIndex((function(n){return n.value===e.data.value})),l=Math.max(n.visibleCount-1,0),a=n.collapsedCount>0&&!n.isMeasuring&&n.visibleCount>0&&r>=0&&r===l,i=(0,o.tZ)(t,v({},e,{children:e.children}));return a?(0,o.BX)(o.HY,{children:[i,(0,o.tZ)(b,{collapsedCount:n.collapsedCount,onPress:n.onCollapsedChipPress})]}):i},w=function(e){var n,t=e.selectProps,r=s.c.MultiValue,l=t.visibleCount,a=t.collapseSelected&&!t.isMeasuring&&e.index>=l,i=t.collapseSelected&&t.isMeasuring&&e.index>=l,u=e.innerProps&&"style"in e.innerProps?e.innerProps.style:void 0,c=null===(n=e.innerProps)||void 0===n?void 0:n.onPointerDown,p=v(v({},e.innerProps),{"data-feathery-multi-value":"true"}),d=t.collapseSelected;return p.onPointerDown=function(e){var n;if(d)return"touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),void(null===(n=t.onCollapsedChipPress)||void 0===n||n.call(t,e));e.stopPropagation(),null==c||c(e)},p.onMouseDown=function(n){var o,r,l;if(d)return n.preventDefault(),n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,n)},p.onTouchStart=function(n){var o,r,l;if(d)return n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onTouchStart)||void 0===l||l.call(r,n)},i?p.style=v(v({},u),{opacity:0,pointerEvents:"none",position:"absolute",left:0,top:0}):a?p.style=v(v({},u),{display:"none"}):u&&(p.style=u),(0,o.tZ)(r,v({},e,{selectProps:t,innerProps:p}))},S=t(3157),x=t(696),M=function(){return M=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},M.apply(this,arguments)},P=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(S.ZP,M({ref:n},e))}));P.displayName="DropdownSelect";var O=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(x.Z,M({ref:n},e))}));O.displayName="DropdownCreatableSelect";var k=function(){return k=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},k.apply(this,arguments)},R=t(9479),D=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},L=function(e){return e&&parseFloat(e)||0};var T=new Map,V=!1,E=function(){V=!1,T.forEach((function(e){var n="option"===e.type?"option entry":"selected value",t=1===e.count?"":" entries",o=e.contexts.length?" at ".concat(e.contexts.join(", ")):"";console.warn("[Feathery] ".concat(e.entityLabel,' "').concat(e.field,'" skipped ').concat(e.count," invalid ").concat(n).concat(t," (").concat(e.reason,")").concat(o,"."),e.sample)})),T.clear()},I=function(e){return null==e?null:"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):null},_=function(e){var n=e.state,t=e.type,o=e.field,r=e.reason,l=e.context,a=e.payload,i=e.entityLabel,u=void 0===i?"Field":i,c="".concat(t,"|").concat(o,"|").concat(r,"|").concat(l);if(!n.has(c)){n.add(c);var s="".concat(t,"|").concat(o,"|").concat(r),p=T.get(s);p||(p={type:t,field:o,reason:r,entityLabel:u,count:0,contexts:[],sample:a},T.set(s,p)),p.count+=1,p.contexts.length<5&&p.contexts.push(l),void 0===p.sample&&(p.sample=a),V||(V=!0,"function"!=typeof queueMicrotask?Promise.resolve().then(E):queueMicrotask(E))}},A=function(e,n){var t=n.warningState,o=n.fieldKey,r=n.contextPrefix,l=n.labelOverrides,a=n.tooltipOverrides,i=n.labelMap,u=n.tooltipMap,c=n.entityLabel;return(Array.isArray(e)?e.filter((function(e){return null!=e})):[]).reduce((function(e,n,s){var p,d=function(e){var n=e.warningState,t=e.option,o=e.fieldKey,r=e.context,l=e.entityLabel,a="string"==typeof t||"number"==typeof t||"boolean"==typeof t?{value:t}:t;if(!a||"object"!=typeof a)return _({state:n,type:"option",field:o,reason:"invalid shape",context:r,payload:t,entityLabel:l}),null;var i=a,u=I(i.value);if(null===u)return _({state:n,type:"option",field:o,reason:"missing value",context:r,payload:t,entityLabel:l}),null;var c,s=u,p=i.label;"string"==typeof p?s=p:"number"!=typeof p&&"boolean"!=typeof p||(s=String(p));var d=i.tooltip;return"string"==typeof d?c=d:"number"!=typeof d&&"boolean"!=typeof d||(c=String(d)),{value:u,label:s,tooltip:c}}({warningState:t,option:n,fieldKey:o,context:"".concat(r,"[").concat(s,"]"),entityLabel:c});if(!d)return e;var f=d.label,v=null!==(p=d.tooltip)&&void 0!==p?p:"";if("string"==typeof n||"number"==typeof n||"boolean"==typeof n){var h=null==l?void 0:l[s],y=null==a?void 0:a[s];"string"==typeof h&&h.length?f=h:h&&(f=String(h)),"string"==typeof y&&y.length?v=y:y&&(v=String(y))}return i[d.value]=f,u[d.value]=v,e.push({value:d.value,label:f,tooltip:v}),e}),[])},Z=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},B=function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))},K=function(){return!0},W=function(){return W=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},W.apply(this,arguments)},j=function(){return j=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},j.apply(this,arguments)},F=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a};function q(e){var n,t=e.element,s=e.responsiveStyles,p=e.fieldLabel,d=e.inlineError,f=e.required,v=void 0!==f&&f,y=e.disabled,b=void 0!==y&&y,S=e.fieldVal,x=void 0===S?[]:S,M=e.repeatIndex,T=void 0===M?null:M,V=e.editMode,E=e.onChange,q=void 0===E?function(){}:E,N=e.elementProps,H=void 0===N?{}:N,z=e.rightToLeft,X=e.children,G=(0,l.Z)({element:t,error:d,breakpoint:s.getMobileBreakpoint()}),Y=G.borderStyles,J=G.customBorder,Q=(0,r.useRef)(null),U=F((0,r.useState)(!1),2),$=U[0],ee=U[1],ne=t.servar,te=ne.key,oe=(0,c.Z)(ne.metadata.salesforce_sync,V),re=oe.dynamicOptions,le=oe.loadingDynamicOptions,ae=oe.shouldSalesforceSync,ie=t.properties||{},ue=ie.translate||{},ce=ue.no_options?function(){return ue.no_options}:void 0,se=F((0,r.useState)(""),2),pe=se[0],de=se[1],fe=function(e){var n=e.fieldVal,t=e.fieldKey,o=e.servar,l=e.dynamicOptions,a=e.shouldSalesforceSync,i=e.repeatIndex,u=e.entityLabel,c=(0,r.useMemo)((function(){return new Set}),[t]),s=(0,r.useMemo)((function(){return Array.isArray(n)?n.reduce((function(e,n,o){var r=I(n);return null===r?(_({state:c,type:"value",field:t,reason:"unsupported value type",context:"fieldVal[".concat(o,"]"),payload:n,entityLabel:u}),e):(e.push(r),e)}),[]):(_({state:c,type:"value",field:t,reason:"expected array for multi-select value",context:"fieldVal",payload:n,entityLabel:u}),[])}),[t,n,c,u]),p=(0,r.useCallback)((function(e){var n=Array.isArray(e)?function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}([],function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}(e),!1):[];return s.length?(s.forEach((function(e){if("string"!=typeof n[0]){var t=n;t.some((function(n){return I(null==n?void 0:n.value)===e}))||t.push({value:e,label:e})}else{var o=n;o.includes(e)||o.push(e)}})),n):n}),[s]),d=o.metadata.option_labels||[],f=o.metadata.option_tooltips||[],v=(0,r.useMemo)((function(){var e;if(a)return{source:p(l),contextPrefix:"dynamicOptions"};var n=null!==i?null===(e=o.metadata.repeat_options)||void 0===e?void 0:e[i]:void 0;return void 0!==n?{source:p(n),contextPrefix:"repeat_options"}:{source:p(o.metadata.options),contextPrefix:"options",labelOverrides:d,tooltipOverrides:f}}),[a,l,i,o.metadata.repeat_options,o.metadata.options,d,f,p]),h=(0,r.useMemo)((function(){var e={},n={};return{options:A(v.source,{warningState:c,fieldKey:t,contextPrefix:v.contextPrefix,labelOverrides:v.labelOverrides,tooltipOverrides:v.tooltipOverrides,labelMap:e,tooltipMap:n,entityLabel:u}),labelMap:e,tooltipMap:n}}),[t,u,v,c]),y=h.options,g=h.labelMap,m=h.tooltipMap,b=s.length?s.map((function(e){var n;return{label:null!==(n=g[e])&&void 0!==n?n:e,value:e,tooltip:m[e]}})):[];return{options:y,selectVal:b,labelMap:g,tooltipMap:m}}({fieldVal:x,fieldKey:te,servar:ne,dynamicOptions:re,shouldSalesforceSync:ae,repeatIndex:T,entityLabel:"Dropdown field"}),ve=fe.options,he=fe.selectVal,ye=function(e){var n=e.options,t=e.inputValue,o=e.selectedValues;return(0,r.useMemo)((function(){var e,r;if(n.length<=250)return{windowedOptions:n,filterOption:void 0,hiddenCount:0};var l,a=t.toLowerCase().trim(),i=new Set(o.map((function(e){return e.value})));if(l=a?n.filter((function(e){return e.label.toLowerCase().includes(a)})):n,l.length<=250)return{windowedOptions:l,filterOption:K,hiddenCount:0};var u=[],c=[];try{for(var s=function(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],o=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),p=s.next();!p.done;p=s.next()){var d=p.value;i.has(d.value)?u.push(d):c.push(d)}}catch(n){e={error:n}}finally{try{p&&!p.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}var f=Math.max(0,250-u.length),v=c.slice(0,f),h=B(B([],Z(u),!1),Z(v),!1),y=l.length-h.length;return y>0&&h.push({value:"__more_results_indicator__",label:"".concat(y," more result").concat(1===y?"":"s"," — refine your search"),isMoreIndicator:!0}),{windowedOptions:h,filterOption:K,hiddenCount:y}}),[n,t,o])}({options:ve,inputValue:pe,selectedValues:he}),ge=ye.windowedOptions,me=ye.filterOption,be=(0,r.useCallback)((function(e){de(e)}),[]),Ce=function(e){var n=e.containerRef,t=e.disabled,o=e.values,l=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),a=l[0],i=l[1],u=(0,r.useRef)(null),c=!a,s=function(e,n,t){var o=n.length,l=D((0,r.useState)(o),2),a=l[0],i=l[1],u=D((0,r.useState)(!1),2),c=u[0],s=u[1],p=D((0,r.useState)(0),2),d=p[0],f=p[1],v=(0,r.useRef)(!1),h=(0,r.useRef)(!1),y=(0,r.useRef)(!1),g=(0,r.useRef)(null),m=(0,r.useRef)(null),b=(0,r.useRef)(null),C=(0,r.useRef)(o),w=(0,r.useRef)(null),S=(0,r.useRef)(null),x=(0,r.useRef)(!1);(0,r.useEffect)((function(){return function(){var e;null===(e=w.current)||void 0===e||e.remove(),w.current=null}}),[]);var M=(0,r.useCallback)((function(){t&&(v.current?h.current=!0:(v.current=!0,h.current=!1,y.current||s(!0),y.current=!0,f((function(e){return e+1}))))}),[e,t,o]);(0,r.useEffect)((function(){var e=S.current;if(S.current=n,t)if(e){var o=e.length!==n.length||e.some((function(e,t){var o;return e.value!==(null===(o=n[t])||void 0===o?void 0:o.value)}));o&&M()}else M()}),[t,M,n]),(0,r.useEffect)((function(){if(t){var n=e.current;if(n){var o=new ResizeObserver((function(e){var n=e[e.length-1];if(n){var t=n.contentRect.width;if(!v.current)return x.current?(x.current=!1,void(b.current=t)):null===b.current?(b.current=t,void M()):void(Math.abs(t-b.current)>20&&(b.current=t,M()))}}));return o.observe(n),function(){return o.disconnect()}}}}),[e,t,M]),(0,r.useLayoutEffect)((function(){if(v.current)return g.current=(0,R.Kv)().requestAnimationFrame((function(){v.current=!1,y.current=!1;var r,l=e.current,a=Math.min(C.current,o),u=null;if(t&&l){var c=function(e){var n,t,o=null!==(n=e.ownerDocument)&&void 0!==n?n:(0,R.Kv)().document,r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return null;var l=e.cloneNode(!0);l.setAttribute("data-feathery-collapse-measure","true"),l.style.position="absolute",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.left="-10000px",l.style.top="0",l.style.width="".concat(r.width,"px"),l.style.maxWidth="".concat(r.width,"px"),l.style.height="auto",l.style.maxHeight="none",l.style.whiteSpace="normal",l.style.overflow="visible",o.body.appendChild(l);var a=Array.from(l.querySelectorAll('[data-feathery-multi-value="true"]'));a.forEach((function(e){e.style.removeProperty("display"),e.style.removeProperty("opacity"),e.style.removeProperty("pointer-events"),e.style.removeProperty("position"),e.style.removeProperty("left"),e.style.removeProperty("top")}));var i=null===(t=a[0])||void 0===t?void 0:t.parentElement;return i&&(i.style.flexWrap="wrap",i.style.whiteSpace="normal",i.style.display="flex"),l.querySelectorAll('[data-feathery-collapsed-indicator="true"]').forEach((function(e){return e.remove()})),{node:l,cleanup:function(){l.remove()}}}(l);c&&(u=c.node,r=c.cleanup)}if(t&&u){var p=Array.from(u.querySelectorAll('[data-feathery-multi-value="true"]'));if(p.length){var d=p[0].offsetTop;a=p.length;for(var f=0;f<p.length;f+=1)if(p[f].offsetTop-d>20){a=f;break}var g=p[0].parentElement;if(g&&o>a){var S=function(e){var n,t=w.current;if(!t){var o=null===(n=e.ownerDocument)||void 0===n?void 0:n.createElement("span");if(!o)return null;o.setAttribute("aria-hidden","true"),o.setAttribute("data-feathery-collapsed-indicator","true"),o.className="rs-collapsed-chip",o.style.visibility="hidden",o.style.position="absolute",o.style.pointerEvents="none",o.style.whiteSpace="nowrap",o.style.top="0",o.style.left="0",w.current=o,t=o}return e.contains(t)||e.appendChild(t),t}(g);if(S){for(var P=g.getBoundingClientRect(),O=(0,R.Kv)().getComputedStyle(g),k=L(O.columnGap)||L(O.gap),D=L(O.paddingLeft),T=L(O.paddingRight),V=Math.max(P.width-D-T,0),E=function(){S.textContent="+".concat(Math.max(o-a,0));var e=S.getBoundingClientRect(),n=(0,R.Kv)().getComputedStyle(S);return e.width+L(n.marginLeft)+L(n.marginRight)},I=o+1,_=0,A=0;a>0&&_<I;){A=E();var Z=p[a-1];if(!Z)break;var B=Z.getBoundingClientRect(),K=(0,R.Kv)().getComputedStyle(Z);if(B.right-P.left-D+(k>0?k:L(K.marginRight))+A<=V+20)break;a-=1,_+=1}_>=I&&(a=Math.max(Math.min(a,o-1),0))}}}}null==r||r();var W=a||(t&&n.length?1:0);i((function(e){return e===W?e:W})),s(!1),x.current=!0,null!==m.current&&(0,R.Kv)().cancelAnimationFrame(m.current),m.current=(0,R.Kv)().requestAnimationFrame((function(){m.current=null,e.current&&(b.current=e.current.getBoundingClientRect().width)})),t&&(C.current=a),h.current&&(h.current=!1,M())})),function(){null!==g.current&&((0,R.Kv)().cancelAnimationFrame(g.current),g.current=null),null!==m.current&&((0,R.Kv)().cancelAnimationFrame(m.current),m.current=null)}}),[t,d,M,o]),(0,r.useEffect)((function(){if(!t)return s(!1),v.current=!1,h.current=!1,y.current=!1,b.current=null,void(x.current=!1);i((function(e){var n=Math.min(C.current,o)||(o>0?1:0);return e===n?e:n}))}),[t,o]),(0,r.useEffect)((function(){C.current=Math.min(C.current,o)}),[o]);var P=t?Math.max(o-a,0):0;return{visibleCount:t?a:o,collapsedCount:P,isMeasuring:!!t&&c}}(n,o,c),p=s.collapsedCount,d=s.isMeasuring,f=s.visibleCount,v=(0,r.useCallback)((function(e){var n,t;i(!1);var o=u.current||null;(null==e?void 0:e.skipBlur)||null===(n=null==o?void 0:o.blur)||void 0===n||n.call(o),null===(t=null==o?void 0:o.closeMenu)||void 0===t||t.call(o)}),[]),h=(0,r.useCallback)((function(e){var n;if(!t&&!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))){var o=u.current||null;null===(n=null==o?void 0:o.focus)||void 0===n||n.call(o)}}),[t]),y=(0,r.useCallback)((function(e){h(e.target)}),[h]),g=(0,r.useCallback)((function(e){h(e.target)}),[h]),m=(0,r.useCallback)((function(){i(!0)}),[]),b=(0,r.useCallback)((function(){i(!1)}),[]);return(0,r.useEffect)((function(){var e=function(e){var t=n.current;t&&(t.contains(e.target)||v())},t=(0,R.me)();return t.addEventListener("pointerdown",e,!0),function(){t.removeEventListener("pointerdown",e,!0)}}),[v,n]),(0,r.useMemo)((function(){return{collapseSelected:c,collapsedCount:p,menu:{isOpen:a,open:m,close:b,forceClose:v},pointer:{onMouseDown:y,onTouchStart:g,reset:function(){}},measurement:{isMeasuring:d,visibleCount:f},selectRef:u}}),[c,p,v,b,m,y,g,a,d,f,u])}({containerRef:Q,disabled:b,values:he}),we=Ce.collapseSelected,Se=Ce.collapsedCount,xe=Ce.menu,Me=Ce.pointer,Pe=Ce.measurement,Oe=Ce.selectRef,ke=xe.open,Re=xe.close,De=xe.forceClose,Le=Me.onMouseDown,Te=Me.onTouchStart,Ve=Pe.isMeasuring,Ee=Pe.visibleCount,Ie=F((0,r.useState)(!1),2),_e=Ie[0],Ae=Ie[1],Ze=(0,r.useMemo)((function(){return{Control:m,Option:h,MultiValue:w,MultiValueContainer:C,MultiValueRemove:g}}),[]),Be=!!ne.max_length&&he.length>=ne.max_length||le,Ke=ne.metadata.creatable_options;if(Ke&&ue.create_option_label){var We=ue.create_option_label;n=We.includes("{value}")?function(e){return We.replace(/\{value\}/g,e)}:function(e){return"".concat(We,' "').concat(e,'"')}}var je=(0,r.useCallback)((function(e){var n=e.trim();if(!n)return!1;var t=n.toLowerCase(),o=ge.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));if(o)return!1;var r=he.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));return!r}),[ge,he]),Fe=(0,r.useCallback)((function(e){return je(e)}),[je]),qe=function(e){var n=e.selectRef,t=e.containerRef,o=e.disabled,l=e.isMenuOpen,a=e.setIsMenuOpen,i=e.openCollapseMenu,u=e.closeCollapseMenu,c=e.forceCloseCollapseMenu,s=e.focusOnMouseDown,p=e.focusOnTouchStart,d=e.selectVal,f=e.options,v=e.isCreatableInputValid,h=e.create,y=e.disableAllOptions,g=e.onChange,m=(0,r.useRef)(0),b=(0,r.useCallback)((function(){m.current=performance.now()+250}),[]),C=(0,r.useCallback)((function(){return n.current}),[n]),w=(0,r.useCallback)((function(){var e,n,t=C();t&&(b(),a(!0),i(),null===(e=t.focus)||void 0===e||e.call(t),null===(n=t.openMenu)||void 0===n||n.call(t,"first"))}),[b,i,a,C]),S=(0,r.useCallback)((function(e){a(!1),u(),c(e)}),[u,c,a]),x=(0,r.useCallback)((function(){a(!0),i(),C()}),[i,a,C]),M=(0,r.useCallback)((function(){performance.now()<m.current||(a(!1),u())}),[u,a]),P=(0,r.useCallback)((function(e){return!l&&(!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))&&(w(),!0))}),[l,w]),O=(0,r.useCallback)((function(e){if(P(e.target))return e.preventDefault(),void e.stopPropagation();s(e)}),[s,P]),k=(0,r.useCallback)((function(e){P(e.target)?e.stopPropagation():p(e)}),[p,P]),D=(0,r.useCallback)((function(e,n){var t=n.isTouch;return!!P(e.currentTarget)&&(!t&&"preventDefault"in e&&e.preventDefault(),e.stopPropagation(),!0)}),[P]),L=(0,r.useCallback)((function(e){P(e.currentTarget)&&e.stopPropagation()}),[P]),T=(0,r.useCallback)((function(e,t){var o,r;"remove-value"!==t.action&&"pop-value"!==t.action||b();var a="remove-value"===t.action||"pop-value"===t.action||"select-option"===t.action||"create-option"===t.action;a&&l||S(a?{skipBlur:!0}:void 0),g(e,t),null===(r=null===(o=n.current)||void 0===o?void 0:o.focus)||void 0===r||r.call(o)}),[S,b,l,g,n]),V=(0,r.useCallback)((function(){var e,t,o,r=n.current,a=null==r?void 0:r.state,i=null==a?void 0:a.focusedOption,u=null!=i?i:null,c=null==u?void 0:u.value,s=Boolean(c),p=Boolean(h&&(null==u?void 0:u.__isNew__)),y=(t=null==a?void 0:a.inputValue,o=null!==(e=null==r?void 0:r.inputRef)&&void 0!==e?e:null,"string"==typeof t?t:"string"==typeof(null==o?void 0:o.value)?o.value:"").trim(),g=y.length>0,m=y.toLowerCase(),b=g&&f.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),C=g&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),w=h&&g&&(v?v(y):!b&&!C),S=null==c?void 0:c.toLowerCase(),x=Boolean(S&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===S})));return l?w?"allow":p?"block":s?x?"block":"allow":"block":"block-open"}),[h,y,l,v,f,d,n]),E=(0,r.useCallback)((function(e){var t,o=V();if("allow"===o)return o;if(e.defaultPrevented||e.preventDefault(),e.isPropagationStopped()||e.stopPropagation(),"block-open"===o){var r=n.current;null===(t=null==r?void 0:r.openMenu)||void 0===t||t.call(r,"first")}return o}),[V,n]),I=(0,r.useCallback)((function(e){"Enter"!==e.key||o||E(e)}),[o,E]),_=(0,r.useCallback)((function(e){o||("Escape"!==e.key?"Enter"===e.key&&E(e):m.current=0)}),[o,E]);return(0,r.useEffect)((function(){if(l){var e=(0,R.me)(),n=function(e){var n=t.current;n&&(n.contains(e.target)||S())};return e.addEventListener("pointerdown",n,!0),function(){e.removeEventListener("pointerdown",n,!0)}}}),[S,t,l]),{handleWrapperMouseDown:O,handleWrapperTouchStart:k,handleKeyDownCapture:_,handleChange:T,handleSelectKeyDown:I,handleMenuOpen:x,handleMenuClose:M,handleControlPress:D,handleCollapsedChipPress:L,extendCloseSuppression:b}}({selectRef:Oe,containerRef:Q,disabled:b,isMenuOpen:_e,setIsMenuOpen:Ae,openCollapseMenu:ke,closeCollapseMenu:Re,forceCloseCollapseMenu:De,focusOnMouseDown:Le,focusOnTouchStart:Te,selectVal:he,options:ge,isCreatableInputValid:Ke?je:void 0,create:Ke,disableAllOptions:Be,onChange:q}),Ne=qe.handleWrapperMouseDown,He=qe.handleWrapperTouchStart,ze=qe.handleKeyDownCapture,Xe=qe.handleChange,Ge=qe.handleSelectKeyDown,Ye=qe.handleMenuOpen,Je=qe.handleMenuClose,Qe=qe.handleControlPress,Ue=qe.handleCollapsedChipPress,$e=qe.extendCloseSuppression,en=ie.tooltipText?30:10,nn=Ke?O:P;s.applyFontStyles("field");var tn=we&&!Ve&&!$,on=(0,r.useMemo)((function(){return function(e){var n=e.chevronPosition,t=e.fontColor,o=e.menuZIndex,r=e.responsiveStyles,l=e.rightToLeft,a={control:function(e){return k(k(k({},e),r.getTarget("field")),{width:"100%",height:"100%",minHeight:"inherit",border:"none",boxShadow:"none",backgroundColor:"transparent",backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M0 0.776454L0.970744 0L5 4.2094L9.02926 0L10 0.776454L5 6L0 0.776454Z' fill='%23".concat(t,"'/></svg>\")"),backgroundRepeat:"no-repeat",backgroundPosition:"".concat(l?"left":"right"," ").concat(n,"px center"),position:"relative"})},container:function(e){return k(k({},e),{height:"100%",minHeight:"inherit"})},valueContainer:function(e,n){var t,o,r,l,a=n.selectProps,i=!a.collapseSelected||!!a.inputValue,u=i?{paddingTop:void 0!==e.paddingTop?e.paddingTop:"8px",paddingBottom:void 0!==e.paddingBottom?e.paddingBottom:"8px"}:{};return k(k(k(k({},e),u),{paddingInlineEnd:28,display:"flex",minWidth:0,flexWrap:i?"wrap":"nowrap",alignItems:i?"flex-start":"center",alignContent:i?"flex-start":"center"}),a.collapseSelected?{"& .rs-collapsed-chip":{display:"inline-flex",alignItems:"center",padding:"3px 8px",margin:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2,backgroundColor:null!==(o=e.backgroundColor)&&void 0!==o?o:"rgba(221, 221, 221, 0.8)",color:null!==(r=e.color)&&void 0!==r?r:"#333",fontSize:null!==(l=e.fontSize)&&void 0!==l?l:"0.85em"}}:{})},multiValueLabel:function(e,n){return n.selectProps.collapseSelected?k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,wordBreak:"break-word",maxWidth:"100%"}):k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3})},indicatorSeparator:function(){return{display:"none"}},indicatorsContainer:function(){return{display:"none"}},menu:function(e){return k(k({},e),{zIndex:o,textAlign:"start"})},menuList:function(e){return k(k({},e),{display:"grid",overflowX:"auto",overflowY:"auto"})},option:function(e){return k(k({},e),{whiteSpace:"nowrap"})},multiValue:function(e,n){var t;return n.selectProps.collapseSelected?k(k({},e),{maxWidth:"100%",minWidth:0,overflow:"hidden",marginInline:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2}):e},input:function(e,n){var t=n.selectProps;return t.collapseSelected&&t.inputHidden?k(k({},e),{opacity:0,maxWidth:"1px",width:"1px",minWidth:"1px",flexBasis:0,flexGrow:0,flexShrink:0,margin:0,padding:0,pointerEvents:"none",position:"absolute",top:0,right:0,overflow:"hidden","> input":{width:"1px",minWidth:"1px",opacity:0,pointerEvents:"none"}}):e}};return a}({chevronPosition:en,fontColor:t.styles.font_color,menuZIndex:i.m,responsiveStyles:s,rightToLeft:z})}),[en,t.styles.font_color,s,z]),rn=function(e){var n=e.selectRef,t=e.containerRef,o=e.servar,l=e.selectVal,a=e.options,i=e.required,u=e.disabled,c=e.isMenuOpen,s=e.loadingDynamicOptions,p=e.selectStyles,d=e.selectComponentsOverride,f=e.collapseSelected,v=e.visibleCount,h=e.collapsedCount,y=e.isMeasuring,g=e.shouldHideInput,m=e.handleChange,b=e.setFocused,C=e.handleSelectKeyDown,w=e.handleMenuOpen,S=e.handleMenuClose,x=e.handleCollapsedChipPress,M=e.handleControlPress,P=e.extendCloseSuppression,O=e.noOptionsMessage,k=e.create,R=e.formatCreateLabel,D=e.isValidNewOption,L=e.onInputChange,T=e.filterOption,V=e.ariaLabel;return(0,r.useMemo)((function(){return W(W(W({ref:n,inputId:o.key,isMulti:!0,value:l,options:a,required:i,isDisabled:u,menuIsOpen:c,styles:p,components:d,placeholder:"",openMenuOnClick:!f,closeMenuOnSelect:!1,tabSelectsValue:!1,blurInputOnSelect:!1,filterOption:T,onChange:m,onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onKeyDown:C,onMenuOpen:w,onMenuClose:S,onInputChange:L,isOptionDisabled:function(e){return e.isMoreIndicator||o.max_length&&l.length>=o.max_length||s},noOptionsMessage:k?function(){return null}:O},f?{containerRef:t,visibleCount:v,collapsedCount:h,isMeasuring:y,collapseSelected:!0,inputHidden:g,onCollapsedChipPress:x,onControlPress:M,onMultiValueRemovePointer:P}:{containerRef:t,visibleCount:a.length,collapsedCount:0,isMeasuring:!1,collapseSelected:!1}),k&&W(W({},R?{formatCreateLabel:R}:{}),D?{isValidNewOption:D}:{})),{"aria-label":V})}),[n,o.key,o.max_length,l,a,i,u,c,p,d,f,t,v,h,y,g,m,b,C,w,S,x,M,P,s,O,k,R,D,L,V,T])}({selectRef:Oe,containerRef:Q,servar:ne,selectVal:he,options:ge,required:v,disabled:b,isMenuOpen:_e,loadingDynamicOptions:le,selectStyles:on,selectComponentsOverride:Ze,collapseSelected:we,visibleCount:Ee,collapsedCount:Se,isMeasuring:Ve,shouldHideInput:tn,handleChange:Xe,setFocused:ee,handleSelectKeyDown:Ge,handleMenuOpen:Ye,handleMenuClose:Je,handleCollapsedChipPress:Ue,handleControlPress:Qe,extendCloseSuppression:$e,noOptionsMessage:ce,create:Ke,formatCreateLabel:n,isValidNewOption:Ke?Fe:void 0,onInputChange:be,filterOption:me,ariaLabel:t.properties.aria_label});return(0,o.BX)("div",j({ref:Q,css:j({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:V?"none":"auto"},s.getTarget("fc"))},H,{children:[X,p,(0,o.BX)("div",j({css:j(j(j({position:"relative",width:"100%",whiteSpace:"nowrap"},s.getTarget("sub-fc")),b?s.getTarget("disabled"):{}),{"&:hover":b?{}:j(j({},s.getTarget("hover")),Y.hover),"&&":$?j(j({},s.getTarget("active")),Y.active):{}}),onMouseDown:Ne,onTouchStart:He,onKeyDownCapture:ze},{children:[J,(0,o.tZ)(nn,j({},rn,{inputValue:pe})),(0,o.tZ)(u.Z,{value:he.length||$,element:t,responsiveStyles:s,repeatIndex:T}),(0,o.tZ)(a.Z,{containerRef:Q,id:t.id,text:t.properties.tooltipText,responsiveStyles:s,repeat:t.repeat})]}))]}))}}}]);
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[599],{9069:(e,n,t)=>{t.d(n,{Z:()=>l});var o=t(5944),r=function(){return r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},r.apply(this,arguments)};function l(e){var n,t,l,a=e.value,i=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,p=e.inputFocused,d=void 0!==p&&p,f=e.repeatIndex,v=void 0===f?null:f,h=i.properties,y=null!==(l=(null!==(t=h.repeat_placeholder)&&void 0!==t?t:[])[null!=v?v:0])&&void 0!==l?l:h.placeholder||"",g=r(r({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,o.tZ)("span",r({css:r(r(r(r({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?g:{}),(n={},n["".concat(s,":focus ~ &")]=g,n))},{children:y}))}},8168:(e,n,t)=>{t.r(n),t.d(n,{default:()=>q});var o=t(5944),r=t(7294),l=t(6867),a=t(1587),i=t(1275),u=t(9069),c=t(5406),s=t(7600),p=t(7449),d=t(8776),f=t(2988),v=function(){return v=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},v.apply(this,arguments)},h=function(e){var n=e.children,t=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(e,["children"]),l=s.c.Option,a=(0,r.useRef)(null),i=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),u=i[0],c=i[1],h=t.selectProps.containerRef;return t.data.isMoreIndicator?(0,o.tZ)("div",v({css:{padding:"8px 12px",color:"#999",fontStyle:"italic",fontSize:"0.9em",textAlign:"left",cursor:"default",userSelect:"none"}},{children:t.data.label})):(0,o.BX)("div",v({ref:a,onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)}},{children:[(0,o.tZ)(l,v({},t,{children:n})),t.data.tooltip&&a.current&&(0,o.tZ)(p.Z,v({targetRef:a,containerRef:h,show:u,placement:"right"},{children:(0,o.tZ)(d.u,v({id:"tooltip-".concat(t.data.value),css:{zIndex:f.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:t.data.tooltip}))}))]}))},y=s.c.MultiValueRemove,g=function(e){var n=e.selectProps;if(!n.collapseSelected)return(0,o.tZ)(y,v({},e));var t=v(v({},e.innerProps),{onMouseDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,t)},onPointerDown:function(t){var o,r,l;null===(o=n.onMultiValueRemovePointer)||void 0===o||o.call(n),"touch"===t.pointerType&&t.preventDefault(),t.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onPointerDown)||void 0===l||l.call(r,t)},"data-feathery-multi-value-remove":"true"});return(0,o.tZ)(y,v({},e,{innerProps:t}))},m=function(e){var n=s.c.Control,t=e.selectProps.onControlPress,r=function(e,n){return!!(null==t?void 0:t(e,{isTouch:n}))&&(e.preventDefault(),e.stopPropagation(),!0)};return(0,o.tZ)(n,v({},e,{innerProps:v(v({},e.innerProps),{onPointerDown:function(n){var t,o;r(n,"touch"===n.pointerType)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onPointerDown)||void 0===o||o.call(t,n)},onMouseDown:function(n){var t,o;r(n,!1)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onMouseDown)||void 0===o||o.call(t,n)},onTouchStart:function(n){var t,o;r(n,!0)||null===(o=null===(t=e.innerProps)||void 0===t?void 0:t.onTouchStart)||void 0===o||o.call(t,n)}})}))},b=function(e){var n=e.collapsedCount,t=e.onPress;return n>0?(0,o.BX)("span",v({"aria-hidden":"true",className:"rs-collapsed-chip","data-feathery-collapsed-indicator":"true",onPointerDown:function(e){t&&("touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),t(e))},onMouseDown:function(e){t&&(e.preventDefault(),e.stopPropagation(),t(e))},onTouchStart:function(e){t&&(e.stopPropagation(),t(e))},onClick:function(e){t&&(e.stopPropagation(),t(e))}},{children:["+",n]})):null},C=function(e){var n=e.selectProps,t=s.c.MultiValueContainer;if(!n.collapseSelected)return(0,o.tZ)(t,v({},e));var r=(Array.isArray(n.value)?n.value:[]).findIndex((function(n){return n.value===e.data.value})),l=Math.max(n.visibleCount-1,0),a=n.collapsedCount>0&&!n.isMeasuring&&n.visibleCount>0&&r>=0&&r===l,i=(0,o.tZ)(t,v({},e,{children:e.children}));return a?(0,o.BX)(o.HY,{children:[i,(0,o.tZ)(b,{collapsedCount:n.collapsedCount,onPress:n.onCollapsedChipPress})]}):i},w=function(e){var n,t=e.selectProps,r=s.c.MultiValue,l=t.visibleCount,a=t.collapseSelected&&!t.isMeasuring&&e.index>=l,i=t.collapseSelected&&t.isMeasuring&&e.index>=l,u=e.innerProps&&"style"in e.innerProps?e.innerProps.style:void 0,c=null===(n=e.innerProps)||void 0===n?void 0:n.onPointerDown,p=v(v({},e.innerProps),{"data-feathery-multi-value":"true"}),d=t.collapseSelected;return p.onPointerDown=function(e){var n;if(d)return"touch"===e.pointerType&&e.preventDefault(),e.stopPropagation(),void(null===(n=t.onCollapsedChipPress)||void 0===n||n.call(t,e));e.stopPropagation(),null==c||c(e)},p.onMouseDown=function(n){var o,r,l;if(d)return n.preventDefault(),n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onMouseDown)||void 0===l||l.call(r,n)},p.onTouchStart=function(n){var o,r,l;if(d)return n.stopPropagation(),void(null===(o=t.onCollapsedChipPress)||void 0===o||o.call(t,n));n.stopPropagation(),null===(l=null===(r=e.innerProps)||void 0===r?void 0:r.onTouchStart)||void 0===l||l.call(r,n)},i?p.style=v(v({},u),{opacity:0,pointerEvents:"none",position:"absolute",left:0,top:0}):a?p.style=v(v({},u),{display:"none"}):u&&(p.style=u),(0,o.tZ)(r,v({},e,{selectProps:t,innerProps:p}))},S=t(3157),x=t(696),M=function(){return M=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},M.apply(this,arguments)},P=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(S.ZP,M({ref:n},e))}));P.displayName="DropdownSelect";var O=(0,r.forwardRef)((function(e,n){return(0,o.tZ)(x.Z,M({ref:n},e))}));O.displayName="DropdownCreatableSelect";var k=function(){return k=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},k.apply(this,arguments)},R=t(9479),D=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},L=function(e){return e&&parseFloat(e)||0};var T=new Map,V=!1,E=function(){V=!1,T.forEach((function(e){var n="option"===e.type?"option entry":"selected value",t=1===e.count?"":" entries",o=e.contexts.length?" at ".concat(e.contexts.join(", ")):"";console.warn("[Feathery] ".concat(e.entityLabel,' "').concat(e.field,'" skipped ').concat(e.count," invalid ").concat(n).concat(t," (").concat(e.reason,")").concat(o,"."),e.sample)})),T.clear()},I=function(e){return null==e?null:"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):null},_=function(e){var n=e.state,t=e.type,o=e.field,r=e.reason,l=e.context,a=e.payload,i=e.entityLabel,u=void 0===i?"Field":i,c="".concat(t,"|").concat(o,"|").concat(r,"|").concat(l);if(!n.has(c)){n.add(c);var s="".concat(t,"|").concat(o,"|").concat(r),p=T.get(s);p||(p={type:t,field:o,reason:r,entityLabel:u,count:0,contexts:[],sample:a},T.set(s,p)),p.count+=1,p.contexts.length<5&&p.contexts.push(l),void 0===p.sample&&(p.sample=a),V||(V=!0,"function"!=typeof queueMicrotask?Promise.resolve().then(E):queueMicrotask(E))}},A=function(e,n){var t=n.warningState,o=n.fieldKey,r=n.contextPrefix,l=n.labelOverrides,a=n.tooltipOverrides,i=n.labelMap,u=n.tooltipMap,c=n.entityLabel;return(Array.isArray(e)?e.filter((function(e){return null!=e})):[]).reduce((function(e,n,s){var p,d=function(e){var n=e.warningState,t=e.option,o=e.fieldKey,r=e.context,l=e.entityLabel,a="string"==typeof t||"number"==typeof t||"boolean"==typeof t?{value:t}:t;if(!a||"object"!=typeof a)return _({state:n,type:"option",field:o,reason:"invalid shape",context:r,payload:t,entityLabel:l}),null;var i=a,u=I(i.value);if(null===u)return _({state:n,type:"option",field:o,reason:"missing value",context:r,payload:t,entityLabel:l}),null;var c,s=u,p=i.label;"string"==typeof p?s=p:"number"!=typeof p&&"boolean"!=typeof p||(s=String(p));var d=i.tooltip;return"string"==typeof d?c=d:"number"!=typeof d&&"boolean"!=typeof d||(c=String(d)),{value:u,label:s,tooltip:c}}({warningState:t,option:n,fieldKey:o,context:"".concat(r,"[").concat(s,"]"),entityLabel:c});if(!d)return e;var f=d.label,v=null!==(p=d.tooltip)&&void 0!==p?p:"";if("string"==typeof n||"number"==typeof n||"boolean"==typeof n){var h=null==l?void 0:l[s],y=null==a?void 0:a[s];"string"==typeof h&&h.length?f=h:h&&(f=String(h)),"string"==typeof y&&y.length?v=y:y&&(v=String(y))}return i[d.value]=f,u[d.value]=v,e.push({value:d.value,label:f,tooltip:v}),e}),[])},Z=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a},B=function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))},K=function(){return!0},W=function(){return W=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},W.apply(this,arguments)},j=function(){return j=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},j.apply(this,arguments)},F=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a};function q(e){var n,t=e.element,s=e.responsiveStyles,p=e.fieldLabel,d=e.inlineError,f=e.required,v=void 0!==f&&f,y=e.disabled,b=void 0!==y&&y,S=e.fieldVal,x=void 0===S?[]:S,M=e.repeatIndex,T=void 0===M?null:M,V=e.editMode,E=e.onChange,q=void 0===E?function(){}:E,N=e.elementProps,H=void 0===N?{}:N,z=e.rightToLeft,X=e.children,G=(0,l.Z)({element:t,error:d,breakpoint:s.getMobileBreakpoint()}),Y=G.borderStyles,J=G.customBorder,Q=(0,r.useRef)(null),U=F((0,r.useState)(!1),2),$=U[0],ee=U[1],ne=t.servar,te=ne.key,oe=(0,c.Z)(ne.metadata.salesforce_sync,V),re=oe.dynamicOptions,le=oe.loadingDynamicOptions,ae=oe.shouldSalesforceSync,ie=t.properties||{},ue=ie.translate||{},ce=ue.no_options?function(){return ue.no_options}:void 0,se=F((0,r.useState)(""),2),pe=se[0],de=se[1],fe=function(e){var n=e.fieldVal,t=e.fieldKey,o=e.servar,l=e.dynamicOptions,a=e.shouldSalesforceSync,i=e.repeatIndex,u=e.entityLabel,c=(0,r.useMemo)((function(){return new Set}),[t]),s=(0,r.useMemo)((function(){return Array.isArray(n)?n.reduce((function(e,n,o){var r=I(n);return null===r?(_({state:c,type:"value",field:t,reason:"unsupported value type",context:"fieldVal[".concat(o,"]"),payload:n,entityLabel:u}),e):(e.push(r),e)}),[]):(_({state:c,type:"value",field:t,reason:"expected array for multi-select value",context:"fieldVal",payload:n,entityLabel:u}),[])}),[t,n,c,u]),p=(0,r.useCallback)((function(e){var n=Array.isArray(e)?function(e,n,t){if(t||2===arguments.length)for(var o,r=0,l=n.length;r<l;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}([],function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}(e),!1):[];return s.length?(s.forEach((function(e){if("string"!=typeof n[0]){var t=n;t.some((function(n){return I(null==n?void 0:n.value)===e}))||t.push({value:e,label:e})}else{var o=n;o.includes(e)||o.push(e)}})),n):n}),[s]),d=o.metadata.option_labels||[],f=o.metadata.option_tooltips||[],v=(0,r.useMemo)((function(){var e;if(a)return{source:p(l),contextPrefix:"dynamicOptions"};var n=null!==i?null===(e=o.metadata.repeat_options)||void 0===e?void 0:e[i]:void 0;return void 0!==n?{source:p(n),contextPrefix:"repeat_options"}:{source:p(o.metadata.options),contextPrefix:"options",labelOverrides:d,tooltipOverrides:f}}),[a,l,i,o.metadata.repeat_options,o.metadata.options,d,f,p]),h=(0,r.useMemo)((function(){var e={},n={};return{options:A(v.source,{warningState:c,fieldKey:t,contextPrefix:v.contextPrefix,labelOverrides:v.labelOverrides,tooltipOverrides:v.tooltipOverrides,labelMap:e,tooltipMap:n,entityLabel:u}),labelMap:e,tooltipMap:n}}),[t,u,v,c]),y=h.options,g=h.labelMap,m=h.tooltipMap,b=s.length?s.map((function(e){var n;return{label:null!==(n=g[e])&&void 0!==n?n:e,value:e,tooltip:m[e]}})):[];return{options:y,selectVal:b,labelMap:g,tooltipMap:m}}({fieldVal:x,fieldKey:te,servar:ne,dynamicOptions:re,shouldSalesforceSync:ae,repeatIndex:T,entityLabel:"Dropdown field"}),ve=fe.options,he=fe.selectVal,ye=function(e){var n=e.options,t=e.inputValue,o=e.selectedValues;return(0,r.useMemo)((function(){var e,r;if(n.length<=250)return{windowedOptions:n,filterOption:void 0,hiddenCount:0};var l,a=t.toLowerCase().trim(),i=new Set(o.map((function(e){return e.value})));if(l=a?n.filter((function(e){return e.label.toLowerCase().includes(a)})):n,l.length<=250)return{windowedOptions:l,filterOption:K,hiddenCount:0};var u=[],c=[];try{for(var s=function(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],o=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),p=s.next();!p.done;p=s.next()){var d=p.value;i.has(d.value)?u.push(d):c.push(d)}}catch(n){e={error:n}}finally{try{p&&!p.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}var f=Math.max(0,250-u.length),v=c.slice(0,f),h=B(B([],Z(u),!1),Z(v),!1),y=l.length-h.length;return y>0&&h.push({value:"__more_results_indicator__",label:"".concat(y," more result").concat(1===y?"":"s"," — refine your search"),isMoreIndicator:!0}),{windowedOptions:h,filterOption:K,hiddenCount:y}}),[n,t,o])}({options:ve,inputValue:pe,selectedValues:he}),ge=ye.windowedOptions,me=ye.filterOption,be=(0,r.useCallback)((function(e){de(e)}),[]),Ce=function(e){var n=e.containerRef,t=e.disabled,o=e.values,l=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var o,r,l=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(o=l.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}return a}((0,r.useState)(!1),2),a=l[0],i=l[1],u=(0,r.useRef)(null),c=!a,s=function(e,n,t){var o=n.length,l=D((0,r.useState)(o),2),a=l[0],i=l[1],u=D((0,r.useState)(!1),2),c=u[0],s=u[1],p=D((0,r.useState)(0),2),d=p[0],f=p[1],v=(0,r.useRef)(!1),h=(0,r.useRef)(!1),y=(0,r.useRef)(!1),g=(0,r.useRef)(null),m=(0,r.useRef)(null),b=(0,r.useRef)(null),C=(0,r.useRef)(o),w=(0,r.useRef)(null),S=(0,r.useRef)(null),x=(0,r.useRef)(!1);(0,r.useEffect)((function(){return function(){var e;null===(e=w.current)||void 0===e||e.remove(),w.current=null}}),[]);var M=(0,r.useCallback)((function(){t&&(v.current?h.current=!0:(v.current=!0,h.current=!1,y.current||s(!0),y.current=!0,f((function(e){return e+1}))))}),[e,t,o]);(0,r.useEffect)((function(){var e=S.current;if(S.current=n,t)if(e){var o=e.length!==n.length||e.some((function(e,t){var o;return e.value!==(null===(o=n[t])||void 0===o?void 0:o.value)}));o&&M()}else M()}),[t,M,n]),(0,r.useEffect)((function(){if(t){var n=e.current;if(n){var o=new ResizeObserver((function(e){var n=e[e.length-1];if(n){var t=n.contentRect.width;if(!v.current)return x.current?(x.current=!1,void(b.current=t)):null===b.current?(b.current=t,void M()):void(Math.abs(t-b.current)>20&&(b.current=t,M()))}}));return o.observe(n),function(){return o.disconnect()}}}}),[e,t,M]),(0,r.useLayoutEffect)((function(){if(v.current)return g.current=(0,R.Kv)().requestAnimationFrame((function(){v.current=!1,y.current=!1;var r,l=e.current,a=Math.min(C.current,o),u=null;if(t&&l){var c=function(e){var n,t,o=null!==(n=e.ownerDocument)&&void 0!==n?n:(0,R.Kv)().document,r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return null;var l=e.cloneNode(!0);l.setAttribute("data-feathery-collapse-measure","true"),l.style.position="absolute",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.left="-10000px",l.style.top="0",l.style.width="".concat(r.width,"px"),l.style.maxWidth="".concat(r.width,"px"),l.style.height="auto",l.style.maxHeight="none",l.style.whiteSpace="normal",l.style.overflow="visible",o.body.appendChild(l);var a=Array.from(l.querySelectorAll('[data-feathery-multi-value="true"]'));a.forEach((function(e){e.style.removeProperty("display"),e.style.removeProperty("opacity"),e.style.removeProperty("pointer-events"),e.style.removeProperty("position"),e.style.removeProperty("left"),e.style.removeProperty("top")}));var i=null===(t=a[0])||void 0===t?void 0:t.parentElement;return i&&(i.style.flexWrap="wrap",i.style.whiteSpace="normal",i.style.display="flex"),l.querySelectorAll('[data-feathery-collapsed-indicator="true"]').forEach((function(e){return e.remove()})),{node:l,cleanup:function(){l.remove()}}}(l);c&&(u=c.node,r=c.cleanup)}if(t&&u){var p=Array.from(u.querySelectorAll('[data-feathery-multi-value="true"]'));if(p.length){var d=p[0].offsetTop;a=p.length;for(var f=0;f<p.length;f+=1)if(p[f].offsetTop-d>20){a=f;break}var g=p[0].parentElement;if(g&&o>a){var S=function(e){var n,t=w.current;if(!t){var o=null===(n=e.ownerDocument)||void 0===n?void 0:n.createElement("span");if(!o)return null;o.setAttribute("aria-hidden","true"),o.setAttribute("data-feathery-collapsed-indicator","true"),o.className="rs-collapsed-chip",o.style.visibility="hidden",o.style.position="absolute",o.style.pointerEvents="none",o.style.whiteSpace="nowrap",o.style.top="0",o.style.left="0",w.current=o,t=o}return e.contains(t)||e.appendChild(t),t}(g);if(S){for(var P=g.getBoundingClientRect(),O=(0,R.Kv)().getComputedStyle(g),k=L(O.columnGap)||L(O.gap),D=L(O.paddingLeft),T=L(O.paddingRight),V=Math.max(P.width-D-T,0),E=function(){S.textContent="+".concat(Math.max(o-a,0));var e=S.getBoundingClientRect(),n=(0,R.Kv)().getComputedStyle(S);return e.width+L(n.marginLeft)+L(n.marginRight)},I=o+1,_=0,A=0;a>0&&_<I;){A=E();var Z=p[a-1];if(!Z)break;var B=Z.getBoundingClientRect(),K=(0,R.Kv)().getComputedStyle(Z);if(B.right-P.left-D+(k>0?k:L(K.marginRight))+A<=V+20)break;a-=1,_+=1}_>=I&&(a=Math.max(Math.min(a,o-1),0))}}}}null==r||r();var W=a||(t&&n.length?1:0);i((function(e){return e===W?e:W})),s(!1),x.current=!0,null!==m.current&&(0,R.Kv)().cancelAnimationFrame(m.current),m.current=(0,R.Kv)().requestAnimationFrame((function(){m.current=null,e.current&&(b.current=e.current.getBoundingClientRect().width)})),t&&(C.current=a),h.current&&(h.current=!1,M())})),function(){null!==g.current&&((0,R.Kv)().cancelAnimationFrame(g.current),g.current=null),null!==m.current&&((0,R.Kv)().cancelAnimationFrame(m.current),m.current=null)}}),[t,d,M,o]),(0,r.useEffect)((function(){if(!t)return s(!1),v.current=!1,h.current=!1,y.current=!1,b.current=null,void(x.current=!1);i((function(e){var n=Math.min(C.current,o)||(o>0?1:0);return e===n?e:n}))}),[t,o]),(0,r.useEffect)((function(){C.current=Math.min(C.current,o)}),[o]);var P=t?Math.max(o-a,0):0;return{visibleCount:t?a:o,collapsedCount:P,isMeasuring:!!t&&c}}(n,o,c),p=s.collapsedCount,d=s.isMeasuring,f=s.visibleCount,v=(0,r.useCallback)((function(e){var n,t;i(!1);var o=u.current||null;(null==e?void 0:e.skipBlur)||null===(n=null==o?void 0:o.blur)||void 0===n||n.call(o),null===(t=null==o?void 0:o.closeMenu)||void 0===t||t.call(o)}),[]),h=(0,r.useCallback)((function(e){var n;if(!t&&!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))){var o=u.current||null;null===(n=null==o?void 0:o.focus)||void 0===n||n.call(o)}}),[t]),y=(0,r.useCallback)((function(e){h(e.target)}),[h]),g=(0,r.useCallback)((function(e){h(e.target)}),[h]),m=(0,r.useCallback)((function(){i(!0)}),[]),b=(0,r.useCallback)((function(){i(!1)}),[]);return(0,r.useEffect)((function(){var e=function(e){var t=n.current;t&&(t.contains(e.target)||v())},t=(0,R.me)();return t.addEventListener("pointerdown",e,!0),function(){t.removeEventListener("pointerdown",e,!0)}}),[v,n]),(0,r.useMemo)((function(){return{collapseSelected:c,collapsedCount:p,menu:{isOpen:a,open:m,close:b,forceClose:v},pointer:{onMouseDown:y,onTouchStart:g,reset:function(){}},measurement:{isMeasuring:d,visibleCount:f},selectRef:u}}),[c,p,v,b,m,y,g,a,d,f,u])}({containerRef:Q,disabled:b,values:he}),we=Ce.collapseSelected,Se=Ce.collapsedCount,xe=Ce.menu,Me=Ce.pointer,Pe=Ce.measurement,Oe=Ce.selectRef,ke=xe.open,Re=xe.close,De=xe.forceClose,Le=Me.onMouseDown,Te=Me.onTouchStart,Ve=Pe.isMeasuring,Ee=Pe.visibleCount,Ie=F((0,r.useState)(!1),2),_e=Ie[0],Ae=Ie[1],Ze=(0,r.useMemo)((function(){return{Control:m,Option:h,MultiValue:w,MultiValueContainer:C,MultiValueRemove:g}}),[]),Be=!!ne.max_length&&he.length>=ne.max_length||le,Ke=ne.metadata.creatable_options;if(Ke&&ue.create_option_label){var We=ue.create_option_label;n=We.includes("{value}")?function(e){return We.replace(/\{value\}/g,e)}:function(e){return"".concat(We,' "').concat(e,'"')}}var je=(0,r.useCallback)((function(e){var n=e.trim();if(!n)return!1;var t=n.toLowerCase(),o=ge.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));if(o)return!1;var r=he.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===t}));return!r}),[ge,he]),Fe=(0,r.useCallback)((function(e){return je(e)}),[je]),qe=function(e){var n=e.selectRef,t=e.containerRef,o=e.disabled,l=e.isMenuOpen,a=e.setIsMenuOpen,i=e.openCollapseMenu,u=e.closeCollapseMenu,c=e.forceCloseCollapseMenu,s=e.focusOnMouseDown,p=e.focusOnTouchStart,d=e.selectVal,f=e.options,v=e.isCreatableInputValid,h=e.create,y=e.disableAllOptions,g=e.onChange,m=(0,r.useRef)(0),b=(0,r.useCallback)((function(){m.current=performance.now()+250}),[]),C=(0,r.useCallback)((function(){return n.current}),[n]),w=(0,r.useCallback)((function(){var e,n,t=C();t&&(b(),a(!0),i(),null===(e=t.focus)||void 0===e||e.call(t),null===(n=t.openMenu)||void 0===n||n.call(t,"first"))}),[b,i,a,C]),S=(0,r.useCallback)((function(e){a(!1),u(),c(e)}),[u,c,a]),x=(0,r.useCallback)((function(){a(!0),i(),C()}),[i,a,C]),M=(0,r.useCallback)((function(){performance.now()<m.current||(a(!1),u())}),[u,a]),P=(0,r.useCallback)((function(e){return!l&&(!(null==e?void 0:e.closest('[data-feathery-multi-value-remove="true"]'))&&(w(),!0))}),[l,w]),O=(0,r.useCallback)((function(e){if(P(e.target))return e.preventDefault(),void e.stopPropagation();s(e)}),[s,P]),k=(0,r.useCallback)((function(e){P(e.target)?e.stopPropagation():p(e)}),[p,P]),D=(0,r.useCallback)((function(e,n){var t=n.isTouch;return!!P(e.currentTarget)&&(!t&&"preventDefault"in e&&e.preventDefault(),e.stopPropagation(),!0)}),[P]),L=(0,r.useCallback)((function(e){P(e.currentTarget)&&e.stopPropagation()}),[P]),T=(0,r.useCallback)((function(e,t){var o,r;"remove-value"!==t.action&&"pop-value"!==t.action||b();var a="remove-value"===t.action||"pop-value"===t.action||"select-option"===t.action||"create-option"===t.action;a&&l||S(a?{skipBlur:!0}:void 0),g(e,t),null===(r=null===(o=n.current)||void 0===o?void 0:o.focus)||void 0===r||r.call(o)}),[S,b,l,g,n]),V=(0,r.useCallback)((function(){var e,t,o,r=n.current,a=null==r?void 0:r.state,i=null==a?void 0:a.focusedOption,u=null!=i?i:null,c=null==u?void 0:u.value,s=Boolean(c),p=Boolean(h&&(null==u?void 0:u.__isNew__)),y=(t=null==a?void 0:a.inputValue,o=null!==(e=null==r?void 0:r.inputRef)&&void 0!==e?e:null,"string"==typeof t?t:"string"==typeof(null==o?void 0:o.value)?o.value:"").trim(),g=y.length>0,m=y.toLowerCase(),b=g&&f.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),C=g&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===m})),w=h&&g&&(v?v(y):!b&&!C),S=null==c?void 0:c.toLowerCase(),x=Boolean(S&&d.some((function(e){var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.toLowerCase())===S})));return l?w?"allow":p?"block":s?x?"block":"allow":"block":"block-open"}),[h,y,l,v,f,d,n]),E=(0,r.useCallback)((function(e){var t,o=V();if("allow"===o)return o;if(e.defaultPrevented||e.preventDefault(),e.isPropagationStopped()||e.stopPropagation(),"block-open"===o){var r=n.current;null===(t=null==r?void 0:r.openMenu)||void 0===t||t.call(r,"first")}return o}),[V,n]),I=(0,r.useCallback)((function(e){"Enter"!==e.key||o||E(e)}),[o,E]),_=(0,r.useCallback)((function(e){o||("Escape"!==e.key?"Enter"===e.key&&E(e):m.current=0)}),[o,E]);return(0,r.useEffect)((function(){if(l){var e=(0,R.me)(),n=function(e){var n=t.current;n&&(n.contains(e.target)||S())};return e.addEventListener("pointerdown",n,!0),function(){e.removeEventListener("pointerdown",n,!0)}}}),[S,t,l]),{handleWrapperMouseDown:O,handleWrapperTouchStart:k,handleKeyDownCapture:_,handleChange:T,handleSelectKeyDown:I,handleMenuOpen:x,handleMenuClose:M,handleControlPress:D,handleCollapsedChipPress:L,extendCloseSuppression:b}}({selectRef:Oe,containerRef:Q,disabled:b,isMenuOpen:_e,setIsMenuOpen:Ae,openCollapseMenu:ke,closeCollapseMenu:Re,forceCloseCollapseMenu:De,focusOnMouseDown:Le,focusOnTouchStart:Te,selectVal:he,options:ge,isCreatableInputValid:Ke?je:void 0,create:Ke,disableAllOptions:Be,onChange:q}),Ne=qe.handleWrapperMouseDown,He=qe.handleWrapperTouchStart,ze=qe.handleKeyDownCapture,Xe=qe.handleChange,Ge=qe.handleSelectKeyDown,Ye=qe.handleMenuOpen,Je=qe.handleMenuClose,Qe=qe.handleControlPress,Ue=qe.handleCollapsedChipPress,$e=qe.extendCloseSuppression,en=ie.tooltipText?30:10,nn=Ke?O:P;s.applyFontStyles("field");var tn=we&&!Ve&&!$,on=(0,r.useMemo)((function(){return function(e){var n=e.chevronPosition,t=e.fontColor,o=e.menuZIndex,r=e.responsiveStyles,l=e.rightToLeft,a={control:function(e){return k(k(k({},e),r.getTarget("field")),{width:"100%",height:"100%",minHeight:"inherit",border:"none",boxShadow:"none",backgroundColor:"transparent",backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M0 0.776454L0.970744 0L5 4.2094L9.02926 0L10 0.776454L5 6L0 0.776454Z' fill='%23".concat(t,"'/></svg>\")"),backgroundRepeat:"no-repeat",backgroundPosition:"".concat(l?"left":"right"," ").concat(n,"px center"),position:"relative"})},container:function(e){return k(k({},e),{height:"100%",minHeight:"inherit"})},valueContainer:function(e,n){var t,o,r,l,a=n.selectProps,i=!a.collapseSelected||!!a.inputValue,u=i?{paddingTop:void 0!==e.paddingTop?e.paddingTop:"8px",paddingBottom:void 0!==e.paddingBottom?e.paddingBottom:"8px"}:{};return k(k(k(k({},e),u),{paddingInlineEnd:28,display:"flex",minWidth:0,flexWrap:i?"wrap":"nowrap",alignItems:i?"flex-start":"center",alignContent:i?"flex-start":"center"}),a.collapseSelected?{"& .rs-collapsed-chip":{display:"inline-flex",alignItems:"center",padding:"3px 8px",margin:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2,backgroundColor:null!==(o=e.backgroundColor)&&void 0!==o?o:"rgba(221, 221, 221, 0.8)",color:null!==(r=e.color)&&void 0!==r?r:"#333",fontSize:null!==(l=e.fontSize)&&void 0!==l?l:"0.85em"}}:{})},multiValueLabel:function(e,n){return n.selectProps.collapseSelected?k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,wordBreak:"break-word",maxWidth:"100%"}):k(k({},e),{whiteSpace:"normal",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3})},indicatorSeparator:function(){return{display:"none"}},indicatorsContainer:function(){return{display:"none"}},menu:function(e){return k(k({},e),{zIndex:o,textAlign:"start"})},menuList:function(e){return k(k({},e),{display:"grid",overflowX:"auto",overflowY:"auto"})},option:function(e){return k(k({},e),{whiteSpace:"nowrap"})},multiValue:function(e,n){var t;return n.selectProps.collapseSelected?k(k({},e),{maxWidth:"100%",minWidth:0,overflow:"hidden",marginInline:"2px",borderRadius:null!==(t=e.borderRadius)&&void 0!==t?t:2}):e},input:function(e,n){var t=n.selectProps;return t.collapseSelected&&t.inputHidden?k(k({},e),{opacity:0,maxWidth:"1px",width:"1px",minWidth:"1px",flexBasis:0,flexGrow:0,flexShrink:0,margin:0,padding:0,pointerEvents:"none",position:"absolute",top:0,right:0,overflow:"hidden","> input":{width:"1px",minWidth:"1px",opacity:0,pointerEvents:"none"}}):e}};return a}({chevronPosition:en,fontColor:t.styles.font_color,menuZIndex:i.m6,responsiveStyles:s,rightToLeft:z})}),[en,t.styles.font_color,s,z]),rn=function(e){var n=e.selectRef,t=e.containerRef,o=e.servar,l=e.selectVal,a=e.options,i=e.required,u=e.disabled,c=e.isMenuOpen,s=e.loadingDynamicOptions,p=e.selectStyles,d=e.selectComponentsOverride,f=e.collapseSelected,v=e.visibleCount,h=e.collapsedCount,y=e.isMeasuring,g=e.shouldHideInput,m=e.handleChange,b=e.setFocused,C=e.handleSelectKeyDown,w=e.handleMenuOpen,S=e.handleMenuClose,x=e.handleCollapsedChipPress,M=e.handleControlPress,P=e.extendCloseSuppression,O=e.noOptionsMessage,k=e.create,R=e.formatCreateLabel,D=e.isValidNewOption,L=e.onInputChange,T=e.filterOption,V=e.ariaLabel;return(0,r.useMemo)((function(){return W(W(W({ref:n,inputId:o.key,isMulti:!0,value:l,options:a,required:i,isDisabled:u,menuIsOpen:c,styles:p,components:d,placeholder:"",openMenuOnClick:!f,closeMenuOnSelect:!1,tabSelectsValue:!1,blurInputOnSelect:!1,filterOption:T,onChange:m,onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onKeyDown:C,onMenuOpen:w,onMenuClose:S,onInputChange:L,isOptionDisabled:function(e){return e.isMoreIndicator||o.max_length&&l.length>=o.max_length||s},noOptionsMessage:k?function(){return null}:O},f?{containerRef:t,visibleCount:v,collapsedCount:h,isMeasuring:y,collapseSelected:!0,inputHidden:g,onCollapsedChipPress:x,onControlPress:M,onMultiValueRemovePointer:P}:{containerRef:t,visibleCount:a.length,collapsedCount:0,isMeasuring:!1,collapseSelected:!1}),k&&W(W({},R?{formatCreateLabel:R}:{}),D?{isValidNewOption:D}:{})),{"aria-label":V})}),[n,o.key,o.max_length,l,a,i,u,c,p,d,f,t,v,h,y,g,m,b,C,w,S,x,M,P,s,O,k,R,D,L,V,T])}({selectRef:Oe,containerRef:Q,servar:ne,selectVal:he,options:ge,required:v,disabled:b,isMenuOpen:_e,loadingDynamicOptions:le,selectStyles:on,selectComponentsOverride:Ze,collapseSelected:we,visibleCount:Ee,collapsedCount:Se,isMeasuring:Ve,shouldHideInput:tn,handleChange:Xe,setFocused:ee,handleSelectKeyDown:Ge,handleMenuOpen:Ye,handleMenuClose:Je,handleCollapsedChipPress:Ue,handleControlPress:Qe,extendCloseSuppression:$e,noOptionsMessage:ce,create:Ke,formatCreateLabel:n,isValidNewOption:Ke?Fe:void 0,onInputChange:be,filterOption:me,ariaLabel:t.properties.aria_label});return(0,o.BX)("div",j({ref:Q,css:j({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:V?"none":"auto"},s.getTarget("fc"))},H,{children:[X,p,(0,o.BX)("div",j({css:j(j(j({position:"relative",width:"100%",whiteSpace:"nowrap"},s.getTarget("sub-fc")),b?s.getTarget("disabled"):{}),{"&:hover":b?{}:j(j({},s.getTarget("hover")),Y.hover),"&&":$?j(j({},s.getTarget("active")),Y.active):{}}),onMouseDown:Ne,onTouchStart:He,onKeyDownCapture:ze},{children:[J,(0,o.tZ)(nn,j({},rn,{inputValue:pe})),(0,o.tZ)(u.Z,{value:he.length||$,element:t,responsiveStyles:s,repeatIndex:T}),(0,o.tZ)(a.Z,{containerRef:Q,id:t.id,text:t.properties.tooltipText,responsiveStyles:s,repeat:t.repeat})]}))]}))}}}]);
|