@feathery/react 2.37.2 → 2.37.3
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/grid/Element/index.d.ts.map +1 -1
- package/cjs/Form/grid/Element/utils/utils.d.ts +1 -0
- package/cjs/Form/grid/Element/utils/utils.d.ts.map +1 -1
- package/cjs/elements/fields/CheckboxField/index.d.ts.map +1 -1
- package/cjs/elements/fields/CheckboxGroupField/index.d.ts +1 -1
- package/cjs/elements/fields/CheckboxGroupField/index.d.ts.map +1 -1
- package/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +1 -0
- package/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
- package/cjs/{fthry_FormControl.UUmQyyap.js → fthry_FormControl.DnTZRvX8.js} +1 -1
- package/cjs/{fthry_InlineTooltip.jl_5ymRo.js → fthry_InlineTooltip.BqZk2-qL.js} +2 -2
- package/cjs/{fthry_Overlay.cDV8HqW4.js → fthry_Overlay.CCAYrp0U.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.CdvcDslb.js → fthry_PaymentMethodField.gvS_nD1G.js} +4 -4
- package/cjs/{fthry_Placeholder.DvQPs9RY.js → fthry_Placeholder.D-_l4CjC.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.BkcVv_ic.js → fthry_ShowEyeIcon.ZifD-Zjf.js} +1 -1
- package/cjs/{fthry_highlighted-body-TPN3WLV5.KkiTbwTD.js → fthry_highlighted-body-TPN3WLV5.DqSM8rfo.js} +1 -1
- package/cjs/{fthry_index.Diey5RdZ.js → fthry_index.3L3XcwNO.js} +1 -1
- package/cjs/{fthry_index.DsQ6ogm6.js → fthry_index.BErBLUmj.js} +8 -8
- package/cjs/{fthry_index.jfvaxr3T.js → fthry_index.BQos-Amt.js} +4 -4
- package/cjs/{fthry_index.DTjOQohy.js → fthry_index.B_FKa13w.js} +4 -4
- package/cjs/{fthry_index.qvtxN2qV.js → fthry_index.Bq_x7oXa.js} +52 -29
- package/cjs/{fthry_index.CvgbmPWG.js → fthry_index.BuyRtOzC.js} +2 -2
- package/cjs/{fthry_index.Bq5yINko.js → fthry_index.C30eV3k_.js} +4 -4
- package/cjs/{fthry_index.CYE9Cxd_.js → fthry_index.CUam09sY.js} +1 -1
- package/cjs/{fthry_index.BEO07tGr.js → fthry_index.C_A0bE3P.js} +2 -2
- package/cjs/{fthry_index.dsMhMjnK.js → fthry_index.CbZWwiuE.js} +5 -5
- package/cjs/{fthry_index.C9Pq1jz2.js → fthry_index.CvfmIi0G.js} +1 -1
- package/cjs/{fthry_index.BQ-UI6V0.js → fthry_index.D64PUdwP.js} +3 -3
- package/cjs/{fthry_index._jyXrz9c.js → fthry_index.DM8CaLO1.js} +1 -1
- package/cjs/{fthry_index.DNRaqGHl.js → fthry_index.DbLoLfBt.js} +5 -5
- package/cjs/{fthry_index.uiLsWZ8e.js → fthry_index.DdL1O4T_.js} +33 -9
- package/cjs/{fthry_index.BlMMvH-z.js → fthry_index.DlWUP_dg.js} +1 -1
- package/cjs/{fthry_index.6SQ-92hP.js → fthry_index.DryzUba-.js} +3 -3
- package/cjs/{fthry_index.CP3kqu5Z.js → fthry_index.N3RTOcVJ.js} +5 -5
- package/cjs/{fthry_index.GWONjiO4.js → fthry_index.QTVlhoOF.js} +6 -6
- package/cjs/{fthry_index.CbIQhrCS.js → fthry_index.Ur2htxdj.js} +1 -1
- package/cjs/{fthry_index.b9hjBjrX.js → fthry_index._ujx-y_j.js} +1 -1
- package/cjs/{fthry_index.DwrDdqG4.js → fthry_index.tqY6b6fj.js} +9 -2
- package/cjs/{fthry_index.DVIkBJv7.js → fthry_index.uy4-IUwL.js} +6 -6
- package/cjs/{fthry_index.BpOec9LM.js → fthry_index.wRNPB3_3.js} +5 -5
- package/cjs/{fthry_input.BzgGA_H_.js → fthry_input.BVhv2d6Q.js} +1 -1
- package/cjs/{fthry_mermaid-O7DHMXV3.Ikv4jEiV.js → fthry_mermaid-O7DHMXV3.Bb5CnQy8.js} +1 -1
- package/cjs/{fthry_script.8bhNGZo0.js → fthry_script.9mwu8hf4.js} +1 -1
- package/cjs/{fthry_styles.CUYceSAL.js → fthry_styles.CMDk6ugx.js} +1 -1
- package/cjs/{fthry_useElementSize.DsAW10vx.js → fthry_useElementSize.Cx3GRpKd.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.Bj7UDsNQ.js → fthry_useSalesforceSync.DK9Wotlq.js} +1 -1
- package/cjs/{fthry_webfontloader.BdXcCGYt.js → fthry_webfontloader.BAzzDxH4.js} +1 -1
- package/cjs/index.js +1 -1
- package/dist/Form/grid/Element/index.d.ts.map +1 -1
- package/dist/Form/grid/Element/utils/utils.d.ts +1 -0
- package/dist/Form/grid/Element/utils/utils.d.ts.map +1 -1
- package/dist/elements/fields/CheckboxField/index.d.ts.map +1 -1
- package/dist/elements/fields/CheckboxGroupField/index.d.ts +1 -1
- package/dist/elements/fields/CheckboxGroupField/index.d.ts.map +1 -1
- package/dist/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +1 -0
- package/dist/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/{fthry_FormControl.Dv4zPAmE.js → fthry_FormControl.D2UVzfXg.js} +1 -1
- package/dist/{fthry_InlineTooltip.CAswTjMx.js → fthry_InlineTooltip.D6lPIiYE.js} +2 -2
- package/dist/{fthry_Overlay.WEfYpvO6.js → fthry_Overlay.kW559CvO.js} +1 -1
- package/dist/{fthry_PaymentMethodField.hhtLpO-z.js → fthry_PaymentMethodField.CekXR4Xd.js} +4 -4
- package/dist/{fthry_Placeholder.B6y-o-gd.js → fthry_Placeholder.DzF38FPH.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.CJrRkpBs.js → fthry_ShowEyeIcon.DfdIfSae.js} +1 -1
- package/dist/{fthry_highlighted-body-TPN3WLV5.BAL3zZoV.js → fthry_highlighted-body-TPN3WLV5.zt3SpkRF.js} +1 -1
- package/dist/{fthry_index.Ck8oZ8Mz.js → fthry_index.4OH-ricw.js} +3 -3
- package/dist/{fthry_index.Cvf3OhYK.js → fthry_index.BD67xwLj.js} +3 -3
- package/dist/{fthry_index.CFBtgF4P.js → fthry_index.BJNRcyyW.js} +6 -6
- package/dist/{fthry_index.ChU8dpca.js → fthry_index.BWK-Ce2W.js} +1 -1
- package/dist/{fthry_index.CQ7qmcK_.js → fthry_index.BYOHcrZZ.js} +2 -2
- package/dist/{fthry_index._OmBWsUc.js → fthry_index.Bi1qGxcg.js} +4 -4
- package/dist/{fthry_index.DTjJJ_UT.js → fthry_index.CX91nw3u.js} +1 -1
- package/dist/{fthry_index.CYC5u9yp.js → fthry_index.CuzBvdoy.js} +1 -1
- package/dist/{fthry_index.BYDu1zez.js → fthry_index.CxBP7n7t.js} +34 -10
- package/dist/{fthry_index.CFtVg8yZ.js → fthry_index.CxzTRdZH.js} +52 -29
- package/dist/{fthry_index.Ch7rtiUF.js → fthry_index.D65gfxRZ.js} +5 -5
- package/dist/{fthry_index.DXAep882.js → fthry_index.DITYaYtG.js} +1 -1
- package/dist/{fthry_index.pYt2RKwH.js → fthry_index.DIxT-xBI.js} +9 -2
- package/dist/{fthry_index.BUlnPsKA.js → fthry_index.DM5oqg4S.js} +4 -4
- package/dist/{fthry_index.Cu30bTjn.js → fthry_index.DPmNz7lY.js} +2 -2
- package/dist/{fthry_index.f3JVw1S5.js → fthry_index.DVN_jNq6.js} +4 -4
- package/dist/{fthry_index.CRGXZfws.js → fthry_index.DmZkBPS7.js} +1 -1
- package/dist/{fthry_index.DYGAk-7g.js → fthry_index.DvW8Cc9_.js} +1 -1
- package/dist/{fthry_index.PshklqIQ.js → fthry_index.DvwwjfV-.js} +5 -5
- package/dist/{fthry_index.Bmu-mLv2.js → fthry_index.Dw7-XnIv.js} +6 -6
- package/dist/{fthry_index._khdcCuN.js → fthry_index.DzzELIKF.js} +8 -8
- package/dist/{fthry_index.CrsE7GlQ.js → fthry_index.V7m9HHtq.js} +1 -1
- package/dist/{fthry_index.BMxg4u_Q.js → fthry_index.o9IekhIF.js} +5 -5
- package/dist/{fthry_index.BEd1OGGp.js → fthry_index.wmtHjz0i.js} +5 -5
- package/dist/{fthry_input.CnSdYZ-J.js → fthry_input.Cn7WlnzD.js} +1 -1
- package/dist/{fthry_mermaid-O7DHMXV3.CRuQdf2K.js → fthry_mermaid-O7DHMXV3.Ho3m9Xli.js} +1 -1
- package/dist/{fthry_script.e0jEW6L1.js → fthry_script.D9jni3XD.js} +1 -1
- package/dist/{fthry_styles.CKXc0948.js → fthry_styles.BRVPPQ_0.js} +1 -1
- package/dist/{fthry_useElementSize.D4q-VGcI.js → fthry_useElementSize.mFPHnmzX.js} +1 -1
- package/dist/{fthry_useSalesforceSync.BdAiUz_f.js → fthry_useSalesforceSync.DeHRNtPg.js} +1 -1
- package/dist/{fthry_webfontloader.DXCWsGgJ.js → fthry_webfontloader.BLm92tir.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/umd/CheckboxField.782999cad642da04434d.js +1 -0
- package/umd/CheckboxGroupField.18ab392a2890a239fd0b.js +1 -0
- package/umd/MatrixField.2b65107453ddf2322137.js +1 -0
- package/umd/RadioButtonGroupField.20268d1b4649053bf1db.js +1 -0
- package/umd/index.js +1 -1
- package/umd/CheckboxField.76c36941e86a62ec518d.js +0 -1
- package/umd/CheckboxGroupField.18b80da05b582f411aba.js +0 -1
- package/umd/MatrixField.f8624f3e59b21e04f368.js +0 -1
- package/umd/RadioButtonGroupField.3e94f00868ba5b71ba55.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as useBorder, j as jsxs, _ as __assign, b as jsx, h as hoverStylesGuard, i as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { a as useBorder, j as jsxs, _ as __assign, b as jsx, h as hoverStylesGuard, i as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.D6lPIiYE.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DeHRNtPg.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.kW559CvO.js';
|
|
10
10
|
|
|
11
11
|
function ButtonGroupField(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, inlineError = _a.inlineError, _b = _a.fieldVal, fieldVal = _b === void 0 ? null : _b, _c = _a.repeatIndex, repeatIndex = _c === void 0 ? null : _c, editMode = _a.editMode, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.elementProps, elementProps = _e === void 0 ? {} : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, children = _a.children;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as __read, j as jsxs$1, _ as __assign, b as jsx$1, F as FORM_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { d as __read, j as jsxs$1, _ as __assign, b as jsx$1, F as FORM_Z_INDEX } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import React__default, { useRef, useEffect, useCallback, useState, useMemo, Fragment } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as featheryWindow, j as jsxs, _ as __assign, b as jsx, d as __read, a as useBorder, h as hoverStylesGuard, N as isNum } from './fthry_index.
|
|
1
|
+
import { l as featheryWindow, j as jsxs, _ as __assign, b as jsx, d as __read, a as useBorder, h as hoverStylesGuard, N as isNum } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as useBorder, d as __read, j as jsxs, _ as __assign, h as hoverStylesGuard, b as jsx, c as iosScrollOnFocus, F as FORM_Z_INDEX, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { a as useBorder, d as __read, j as jsxs, _ as __assign, h as hoverStylesGuard, b as jsx, c as iosScrollOnFocus, F as FORM_Z_INDEX, r as resetStyles } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { memo, useState, useRef } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.DzF38FPH.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.D6lPIiYE.js';
|
|
5
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.DfdIfSae.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import 'react-dom/client';
|
|
8
8
|
import 'jszip';
|
|
9
9
|
import 'react-dom';
|
|
10
|
-
import './fthry_Overlay.
|
|
10
|
+
import './fthry_Overlay.kW559CvO.js';
|
|
11
11
|
|
|
12
12
|
function PasswordField(_a) {
|
|
13
13
|
var _b;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { d as __read, j as jsxs, _ as __assign, b as jsx, c as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { d as __read, j as jsxs, _ as __assign, b as jsx, c as iosScrollOnFocus, r as resetStyles } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { useRef, useState, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.D2UVzfXg.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.DIxT-xBI.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.D6lPIiYE.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DeHRNtPg.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './fthry_Overlay.
|
|
11
|
+
import './fthry_Overlay.kW559CvO.js';
|
|
12
12
|
|
|
13
13
|
var applyRadioGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('radioGroup');
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as jsxs, _ as __assign, b as jsx, D as DROPDOWN_Z_INDEX, d as __read, a as useBorder, v as getFieldValue, w as stringifyWithNull, h as hoverStylesGuard, c as iosScrollOnFocus, F as FORM_Z_INDEX, r as resetStyles, x as emailPatternStr } from './fthry_index.
|
|
1
|
+
import { j as jsxs, _ as __assign, b as jsx, D as DROPDOWN_Z_INDEX, d as __read, a as useBorder, v as getFieldValue, w as stringifyWithNull, h as hoverStylesGuard, c as iosScrollOnFocus, F as FORM_Z_INDEX, r as resetStyles, x as emailPatternStr } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { memo, useRef, useState } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
7
|
-
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.
|
|
8
|
-
import { I as IMaskInput } from './fthry_input.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.DzF38FPH.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.D6lPIiYE.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.kW559CvO.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.mFPHnmzX.js';
|
|
7
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.DfdIfSae.js';
|
|
8
|
+
import { I as IMaskInput } from './fthry_input.Cn7WlnzD.js';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react-dom/client';
|
|
11
11
|
import 'jszip';
|
|
12
12
|
import 'react-dom';
|
|
13
|
-
import './fthry_index.
|
|
13
|
+
import './fthry_index.CX91nw3u.js';
|
|
14
14
|
|
|
15
15
|
function TextAutocomplete(_a) {
|
|
16
16
|
var _b = _a.allOptions, allOptions = _b === void 0 ? [] : _b, showOptions = _a.showOptions, _c = _a.onSelect, onSelect = _c === void 0 ? function () { } : _c, _d = _a.onHide, onHide = _d === void 0 ? function () { } : _d, _e = _a.onInputFocus, onInputFocus = _e === void 0 ? function () { } : _e, _f = _a.value, value = _f === void 0 ? '' : _f, containerRef = _a.containerRef, responsiveStyles = _a.responsiveStyles, listItemRef = _a.listItemRef, children = _a.children;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as __rest, b as jsx, _ as __assign, j as jsxs, m as Fragment, d as __read, p as featheryDoc, Y as fieldValues, w as stringifyWithNull, U as __values, I as __spreadArray } from './fthry_index.
|
|
1
|
+
import { e as __rest, b as jsx, _ as __assign, j as jsxs, m as Fragment, d as __read, p as featheryDoc, Y as fieldValues, w as stringifyWithNull, U as __values, I as __spreadArray } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a6 as stringify, a7 as rulesheet, a8 as COMMENT, a9 as middleware, aa as RULESET, ab as combine, ac as match, ad as serialize, ae as copy, af as replace, ag as WEBKIT, ah as MOZ, ai as MS, aj as KEYFRAMES, ak as DECLARATION, al as dealloc, am as alloc, an as hash, ao as charat, ap as strlen, aq as indexof, ar as next, as as token, at as from, au as peek, av as delimit, aw as slice, ax as position, ay as compile, b as jsx$1, _ as __assign, j as jsxs, m as Fragment$1, e as __rest, d as __read, F as FORM_Z_INDEX, l as featheryWindow, p as featheryDoc, I as __spreadArray, U as __values, a as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { a6 as stringify, a7 as rulesheet, a8 as COMMENT, a9 as middleware, aa as RULESET, ab as combine, ac as match, ad as serialize, ae as copy, af as replace, ag as WEBKIT, ah as MOZ, ai as MS, aj as KEYFRAMES, ak as DECLARATION, al as dealloc, am as alloc, an as hash, ao as charat, ap as strlen, aq as indexof, ar as next, as as token, at as from, au as peek, av as delimit, aw as slice, ax as position, ay as compile, b as jsx$1, _ as __assign, j as jsxs, m as Fragment$1, e as __rest, d as __read, F as FORM_Z_INDEX, l as featheryWindow, p as featheryDoc, I as __spreadArray, U as __values, a as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState, useCallback, forwardRef, useContext, useLayoutEffect, useEffect, createContext, useRef, useMemo, Component, Fragment } from 'react';
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { P as Placeholder$2 } from './fthry_Placeholder.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
7
|
-
import { T as Tooltip, O as Overlay } from './fthry_Overlay.
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.D6lPIiYE.js';
|
|
5
|
+
import { P as Placeholder$2 } from './fthry_Placeholder.DzF38FPH.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DeHRNtPg.js';
|
|
7
|
+
import { T as Tooltip, O as Overlay } from './fthry_Overlay.kW559CvO.js';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react-dom/client';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as __read, a as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, b as jsx, c as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, f as __awaiter, g as __generator, k as FeatheryClient, A as debounce } from './fthry_index.
|
|
1
|
+
import { d as __read, a as useBorder, j as jsxs, _ as __assign, h as hoverStylesGuard, b as jsx, c as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, f as __awaiter, g as __generator, k as FeatheryClient, A as debounce } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { useRef, useEffect, memo, useState, useCallback } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.DzF38FPH.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.D6lPIiYE.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.kW559CvO.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.mFPHnmzX.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useState, useMemo } from 'react';
|
|
3
|
-
import { Z as cls, j as jsxs, m as Fragment, b as jsx, $ as Global, a0 as css, a1 as __makeTemplateObject } from './fthry_index.
|
|
3
|
+
import { Z as cls, j as jsxs, m as Fragment, b as jsx, $ as Global, a0 as css, a1 as __makeTemplateObject } from './fthry_index.CxzTRdZH.js';
|
|
4
4
|
import { flushSync } from 'react-dom';
|
|
5
5
|
|
|
6
6
|
function canUseDom() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as __read, f as __awaiter, g as __generator, k as FeatheryClient } from './fthry_index.
|
|
1
|
+
import { d as __read, f as __awaiter, g as __generator, k as FeatheryClient } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
function useSalesforceSync(salesforceSync, editMode) {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aL as AssistantChat, aC as Elements, aM as Feathery, aB as Form, aJ as LoginForm, aN as StyledContainer, aH as getFieldValues, aD as init, aI as renderAt, aG as setFieldValues, aF as updateTheme, aE as updateUserId, aK as useAuthClient } from './fthry_index.
|
|
1
|
+
export { aL as AssistantChat, aC as Elements, aM as Feathery, aB as Form, aJ as LoginForm, aN as StyledContainer, aH as getFieldValues, aD as init, aI as renderAt, aG as setFieldValues, aF as updateTheme, aE as updateUserId, aK as useAuthClient } from './fthry_index.CxzTRdZH.js';
|
|
2
2
|
import 'react-dom/client';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[745],{2788:(e,t,c)=>{c.r(t),c.d(t,{applyCheckableInputStyles:()=>b,applyHeightWidthMarginByFontSize:()=>l,composeCheckableInputStyle:()=>d,default:()=>s});var o=c(5944),r=c(7294),a=c(9479),n=function(){return n=Object.assign||function(e){for(var t,c=1,o=arguments.length;c<o;c++)for(var r in t=arguments[c])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},i="polygon(40% 85%, 89% 23%, 76% 12%, 39% 59%, 23% 44%, 12% 55%)",h=function(e){return Math.max(e,13)},l=function(e,t,c){void 0===c&&(c=!1),e.apply(t,["font_size"],(function(e){var t=h(e),o="".concat(t,"px"),r={minHeight:o,height:o,minWidth:o,width:o},a=Math.max(t/2,10);return c||(r.marginRight="".concat(a,"px")),r}))},p=function(e,t,c,o){e.apply(t,["font_size",c],(function(e,t){var c=h(e);return o?function(e,t){return{height:e=Math.floor(e/1.7),width:e,minWidth:e,minHeight:e,border:0,boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),borderRadius:"50%"}}(c,t):function(e,t){return{boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),clipPath:i}}(c,t)}))},k=function(e,t,c){e.apply(t,["height","height_unit","width","width_unit",c],(function(e,t,c,o,r){return{boxShadow:"inset ".concat(c).concat(o," ").concat(e).concat(t," #").concat(r),clipPath:i}}))};function b(e,t){t.addTargets("checkbox","checkboxCheckmark","checkboxSelected","checkboxHover","checkboxCheckmarkHover","checkboxLabel");var c=e.servar,o=c.type,r=c.metadata.multiple,a="select"===o||"matrix"===o&&!r;return"multiselect"===o||"checkbox_group"===o||"matrix"===o&&r||a?(function(e,t){e.apply("checkboxLabel",["font_size","line_height"],(function(e,t){return t||(t=h(e)),{position:"relative",top:"-".concat((t-e)/2,"px"),lineHeight:"".concat(t,"px")}}))}(t),l(t,"checkbox",!0),l(t,"checkboxCheckmark",!0),l(t,"checkboxCheckmarkHover",!0),p(t,"checkboxCheckmark","selected_font_color",a),p(t,"checkboxCheckmarkHover","hover_font_color",a)):(t.applyHeight("checkbox"),t.applyWidth("checkbox"),t.applyHeight("checkboxCheckmark"),t.applyWidth("checkboxCheckmark"),t.applyHeight("checkboxCheckmarkHover"),t.applyWidth("checkboxCheckmarkHover"),t.apply("checkbox",["width","width_unit"],(function(e,t){return"px"===t&&e?{marginRight:"".concat(Math.max(Math.round(.4*e),5),"px")}:{}})),k(t,"checkboxCheckmark","selected_font_color"),k(t,"checkboxCheckmarkHover","hover_font_color")),t.applyBorders({target:"checkbox"}),a||t.applyCorners("checkbox"),t.applyBoxShadow("checkbox"),t.applyColor("checkbox","background_color","backgroundColor",!0),t.applySelectorStyles("checkboxHover",{prefix:"hover_",important:!0}),t.applySelectorStyles("checkboxSelected",{prefix:"selected_",important:!0}),t}var d=function(e,t,c){return void 0===t&&(t=!1),void 0===c&&(c=!1),n(n({position:"static",marginLeft:5,marginRight:5,marginTop:0,marginBottom:0,appearance:"none",display:"grid",placeContent:"center",outline:"none",borderRadius:c?"50%":null},e.getTarget("checkbox")),{"&:hover":(0,a.wL)(t?{}:e.getTarget("checkboxHover")),"&::before":n({content:"''",transform:"scale(0)"},e.getTarget("checkboxCheckmark")),"&:hover::before":(0,a.wL)(n(n({},e.getTarget("checkboxCheckmark")),e.getTarget("checkboxCheckmarkHover"))),"&:checked":n({},e.getTarget("checkboxSelected")),"&:checked::before":{transform:"scale(1)"}})};const s=function(e){var t=e.element,c=e.responsiveStyles,i=e.fieldLabel,h=e.fieldVal,l=void 0===h||h,p=e.onChange,k=void 0===p?function(){}:p,s=e.elementProps,x=void 0===s?{}:s,u=e.disabled,g=void 0!==u&&u,m=e.children,f=(0,r.useMemo)((function(){return b(t,c)}),[c]),v=t.servar;return(0,o.BX)("div",n({css:n(n({},c.getTarget("fc")),{position:"relative",display:"flex",alignItems:"center"})},x,{children:[m,(0,o.tZ)("input",{id:v.key,name:v.key,type:"checkbox",checked:l,disabled:g,onChange:k,onFocus:a.ms,"aria-label":t.properties.aria_label,css:n(n(n(n({},d(f,g)),i?{}:{marginRight:5}),g?c.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"}})}),i]}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[446,745],{5577:(e,t,o)=>{o.d(t,{N:()=>r});var n=o(5944),a=function(){return a=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},a.apply(this,arguments)};function r(e){var t=e.type,o=void 0===t?"text":t,r=e.htmlSize,c=e.css,i=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}(e,["type","htmlSize","css"]);return(0,n.tZ)("input",a({type:o,size:r,css:a({border:"1px solid #ced4da",borderRadius:"0.375rem",padding:"0.375rem 0.75rem",fontSize:"1rem",lineHeight:"1.5",color:"#495057",backgroundColor:"#fff",backgroundClip:"padding-box",transition:"border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out","&:focus":{borderColor:"#80bdff",outline:0,boxShadow:"0 0 0 0.2rem rgba(0, 123, 255, 0.25)"},"&:disabled":{backgroundColor:"#e9ecef",opacity:1}},c)},i))}},2788:(e,t,o)=>{o.r(t),o.d(t,{applyCheckableInputStyles:()=>h,applyHeightWidthMarginByFontSize:()=>d,composeCheckableInputStyle:()=>u,default:()=>b});var n=o(5944),a=o(7294),r=o(9479),c=function(){return c=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},c.apply(this,arguments)},i="polygon(40% 85%, 89% 23%, 76% 12%, 39% 59%, 23% 44%, 12% 55%)",l=function(e){return Math.max(e,13)},d=function(e,t,o){void 0===o&&(o=!1),e.apply(t,["font_size"],(function(e){var t=l(e),n="".concat(t,"px"),a={minHeight:n,height:n,minWidth:n,width:n},r=Math.max(t/2,10);return o||(a.marginRight="".concat(r,"px")),a}))},p=function(e,t,o,n){e.apply(t,["font_size",o],(function(e,t){var o=l(e);return n?function(e,t){return{height:e=Math.floor(e/1.7),width:e,minWidth:e,minHeight:e,border:0,boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),borderRadius:"50%"}}(o,t):function(e,t){return{boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),clipPath:i}}(o,t)}))},s=function(e,t,o){e.apply(t,["height","height_unit","width","width_unit",o],(function(e,t,o,n,a){return{boxShadow:"inset ".concat(o).concat(n," ").concat(e).concat(t," #").concat(a),clipPath:i}}))};function h(e,t){t.addTargets("checkbox","checkboxCheckmark","checkboxSelected","checkboxHover","checkboxCheckmarkHover","checkboxLabel");var o=e.servar,n=o.type,a=o.metadata.multiple,r="select"===n||"matrix"===n&&!a;return"multiselect"===n||"checkbox_group"===n||"matrix"===n&&a||r?(function(e,t){e.apply("checkboxLabel",["font_size","line_height"],(function(e,t){return t||(t=l(e)),{position:"relative",top:"-".concat((t-e)/2,"px"),lineHeight:"".concat(t,"px")}}))}(t),d(t,"checkbox",!0),d(t,"checkboxCheckmark",!0),d(t,"checkboxCheckmarkHover",!0),p(t,"checkboxCheckmark","selected_font_color",r),p(t,"checkboxCheckmarkHover","hover_font_color",r)):(t.applyHeight("checkbox"),t.applyWidth("checkbox"),t.applyHeight("checkboxCheckmark"),t.applyWidth("checkboxCheckmark"),t.applyHeight("checkboxCheckmarkHover"),t.applyWidth("checkboxCheckmarkHover"),t.apply("checkbox",["width","width_unit"],(function(e,t){return"px"===t&&e?{marginRight:"".concat(Math.max(Math.round(.4*e),5),"px")}:{}})),s(t,"checkboxCheckmark","selected_font_color"),s(t,"checkboxCheckmarkHover","hover_font_color")),t.applyBorders({target:"checkbox"}),r||t.applyCorners("checkbox"),t.applyBoxShadow("checkbox"),t.applyColor("checkbox","background_color","backgroundColor",!0),t.applySelectorStyles("checkboxHover",{prefix:"hover_",important:!0}),t.applySelectorStyles("checkboxSelected",{prefix:"selected_",important:!0}),t}var u=function(e,t,o){return void 0===t&&(t=!1),void 0===o&&(o=!1),c(c({position:"static",marginLeft:5,marginRight:5,marginTop:0,marginBottom:0,appearance:"none",display:"grid",placeContent:"center",outline:"none",borderRadius:o?"50%":null},e.getTarget("checkbox")),{"&:hover":(0,r.wL)(t?{}:e.getTarget("checkboxHover")),"&::before":c({content:"''",transform:"scale(0)"},e.getTarget("checkboxCheckmark")),"&:hover::before":(0,r.wL)(c(c({},e.getTarget("checkboxCheckmark")),e.getTarget("checkboxCheckmarkHover"))),"&:checked":c({},e.getTarget("checkboxSelected")),"&:checked::before":{transform:"scale(1)"}})};const b=function(e){var t=e.element,o=e.responsiveStyles,i=e.fieldLabel,l=e.fieldVal,d=void 0===l||l,p=e.onChange,s=void 0===p?function(){}:p,b=e.elementProps,g=void 0===b?{}:b,f=e.disabled,k=void 0!==f&&f,m=e.children,y=(0,a.useMemo)((function(){return h(t,o)}),[o]),x=t.servar;return(0,n.BX)("div",c({css:c(c({},o.getTarget("fc")),{position:"relative",display:"flex",alignItems:"center"})},g,{children:[m,(0,n.tZ)("input",{id:x.key,name:x.key,type:"checkbox",checked:d,disabled:k,onChange:s,onFocus:r.ms,"aria-label":t.properties.aria_label,css:c(c(c(c({},u(y,k)),i?{}:{marginRight:5}),k?o.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"}})}),i]}))}},8250:(e,t,o)=>{o.r(t),o.d(t,{default:()=>h});var n=o(5944),a=o(7294),r=o(5577),c=o(1211),i=o(2788),l=o(1587),d=o(9479),p=o(5406),s=function(){return s=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)};const h=function(e){var t,o,h,u=e.element,b=e.responsiveStyles,g=e.fieldLabel,f=e.fieldVal,k=void 0===f?[]:f,m=e.otherVal,y=void 0===m?"":m,x=e.repeatIndex,v=void 0===x?null:x,w=e.editMode,C=e.onChange,S=void 0===C?function(){}:C,_=e.onSelectAllChange,T=void 0===_?function(){}:_,H=e.onOtherChange,O=void 0===H?function(){}:H,Z=e.onEnter,B=void 0===Z?function(){}:Z,L=e.elementProps,P=void 0===L?{}:L,R=e.disabled,j=void 0!==R&&R,z=e.children,M=u.servar,W=(0,p.Z)(M.metadata.salesforce_sync,w),F=W.dynamicOptions,I=W.loadingDynamicOptions,E=W.shouldSalesforceSync,G=k.includes(y),X=null!==(t=M.metadata.other_label)&&void 0!==t?t:"Other",D=M.metadata.select_all_label||"Select All",V=(0,a.useRef)(null),A=(0,a.useRef)(null),N=(0,a.useMemo)((function(){return(0,i.applyCheckableInputStyles)(u,b),function(e,t){t.addTargets("checkboxGroup"),(0,i.applyHeightWidthMarginByFontSize)(t,"checkboxGroup")}(0,b),b.addTargets("row-container"),b.apply("row-container","row_separation",(function(e){return{gap:"".concat(e||5,"px")}})),b.apply("row-container","option_direction",(function(e){return{flexDirection:e||"column"}})),b}),[b]),q=M.metadata.option_labels,K=null!==(o=M.metadata.option_tooltips)&&void 0!==o?o:[],J=function(e){return j||I||M.max_length&&M.max_length<=k.length&&!e},Q=J(G),U=!G||Q,Y=(h=E?F.map((function(e){return{value:e.value,label:e.label,tooltip:""}})):null!==v&&void 0!==M.metadata.repeat_options&&void 0!==M.metadata.repeat_options[v]?M.metadata.repeat_options[v]:M.metadata.options.map((function(e,t){return{value:e,label:q&&q[t]?q[t]:e,tooltip:K&&K[t]?K[t]:""}}))).map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:e})),$=Y.filter((function(e){return k.includes(e)})).length,ee=Y.length>0&&$===Y.length,te=$>0&&!ee,oe=M.metadata.select_all&&!M.max_length&&Y.length>0,ne=j||I;return(0,a.useEffect)((function(){A.current&&(A.current.indeterminate=te)}),[te]),(0,n.BX)("div",s({ref:V,css:s({position:"relative",width:"100%"},b.getTarget("fc"))},P,{children:[z,g,(0,n.BX)("div",s({css:s({display:"flex",flexWrap:"wrap",width:"100%"},N.getTarget("row-container"))},{children:[oe&&(0,n.tZ)("div",s({css:{display:"flex",pointerEvents:ne?"none":"auto"}},{children:(0,n.BX)("label",s({style:{display:"contents"}},{children:[(0,n.tZ)("input",{ref:A,type:"checkbox",id:"".concat(M.key,"-select-all"),checked:ee,onChange:function(){return T(Y,!ee)},onFocus:d.ms,style:{padding:0,lineHeight:"normal"},css:s(s(s(s({},(0,i.composeCheckableInputStyle)(N,ne)),N.getTarget("checkboxGroup")),ne?b.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"},"&:indeterminate":s({},N.getTarget("checkboxSelected")),"&:indeterminate::before":{transform:"scale(1)",clipPath:"inset(45% 15%)"}}),disabled:ne,"aria-label":D}),(0,n.tZ)("span",s({css:s({whiteSpace:"pre-wrap",overflowWrap:"anywhere"},N.getTarget("checkboxLabel"))},{children:D}))]}))})),h.map((function(e,t){var o,a,r,c=null!==(o=e.value)&&void 0!==o?o:e,p=null!==(a=e.label)&&void 0!==a?a:e,h=k.includes(c),g=J(h);return(0,n.BX)("div",s({css:{display:"flex",pointerEvents:g?"none":"auto"}},{children:[(0,n.BX)("label",s({style:{display:"contents"}},{children:[(0,n.tZ)("input",{type:"checkbox",id:"".concat(M.key,"-").concat(t),name:c,checked:h,onChange:S,onFocus:d.ms,style:{padding:0,lineHeight:"normal"},css:s(s(s(s({},(0,i.composeCheckableInputStyle)(N,g)),N.getTarget("checkboxGroup")),g?b.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"}}),disabled:g,"aria-label":u.properties.aria_label}),(0,n.tZ)("span",s({css:s({whiteSpace:"pre-wrap",overflowWrap:"anywhere"},N.getTarget("checkboxLabel"))},{children:p}))]})),(0,n.tZ)(l.Z,{containerRef:V,id:"".concat(u.id,"-").concat(c),text:null!==(r=e.tooltip)&&void 0!==r?r:"",responsiveStyles:b,absolute:!1,repeat:u.repeat})]}),"".concat(M.key,"-").concat(t))})),M.metadata.other&&(0,n.BX)("div",s({style:{display:"flex",flexGrow:1}},{children:[(0,n.tZ)("input",{type:"checkbox",id:"".concat(M.key,"-"),name:y,checked:G,disabled:Q,onChange:S,onFocus:d.ms,style:{padding:0,lineHeight:"normal"},css:s(s(s(s({},(0,i.composeCheckableInputStyle)(N,Q)),N.getTarget("checkboxGroup")),Q?b.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"}})},"".concat(M.key,"-")),(0,n.tZ)("label",s({htmlFor:"".concat(M.key,"-"),css:N.getTarget("checkboxLabel")},{children:X})),(0,n.tZ)(r.N,{type:"text",htmlSize:1,css:s(s(s(s({marginLeft:"5px"},c.ET),{paddingLeft:"0.4rem",flexGrow:1}),b.getTarget("field")),U?b.getTarget("disabled"):{}),id:M.key,value:y||"",onChange:O,onKeyDown:function(e){"Enter"===e.key&&B(e)},required:G,disabled:U}),(0,n.tZ)(l.Z,{containerRef:V,id:"".concat(u.id,"-"),text:M.metadata.other_tooltip,responsiveStyles:b,absolute:!1,repeat:u.repeat})]}))]}))]}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[75,745],{7449:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(5944),o=r(7294),i=r(3935),c=r(9479),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};const l=function(e){var t=e.show,r=e.targetRef,l=e.children,h=e.onHide,d=e.placement,f=void 0===d?"bottom-start":d,p=e.offset,v=void 0===p?0:p,g=e.zIndex,b=void 0===g?1e3:g,m=e.containerRef,y=(0,o.useRef)(null),k=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.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 c}((0,o.useState)(null),2),x=k[0],w=k[1],C=(0,o.useCallback)((function(){return(null==m?void 0:m.current)||(0,c.me)().body}),[m]),S=(0,o.useCallback)((function(){var e;if(t&&r.current&&y.current){var n=(0,c.Kv)(),o=C();if(o){var i=r.current.getBoundingClientRect(),a=y.current.getBoundingClientRect(),l=o.getBoundingClientRect(),h=s(f,i,a,v),d=h.top,p=h.left,g=d+a.height,b=p+a.width,m=d>=0&&g<=n.innerHeight,k=p>=0&&b<=n.innerWidth;if(!m||!k){var x=u(f,!m,!k);x!==f&&(d=(e=s(x,i,a,v)).top,p=e.left)}var S=o===(0,c.me)().body,_=S?d+n.scrollY:d-l.top,O=S?p+n.scrollX:p-l.left;w((function(e){return e&&e.top===_&&e.left===O?e:{top:_,left:O}}))}}}),[t,f,v,C,r]),_=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){S(),e=!1})))}}),[S])();if((0,o.useLayoutEffect)((function(){t&&S()}),[t,S]),(0,o.useEffect)((function(){if(t){var e=(0,c.Kv)(),n=C();if(n){e.addEventListener("resize",_),e.addEventListener("scroll",_,!0),n!==(0,c.me)().body&&n.addEventListener("scroll",_);var o=new ResizeObserver((function(){return _()}));return r.current&&o.observe(r.current),n!==(0,c.me)().body&&o.observe(n),function(){e.removeEventListener("resize",_),e.removeEventListener("scroll",_,!0),n!==(0,c.me)().body&&n.removeEventListener("scroll",_),o.disconnect()}}}}),[t,_,C,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(w(null),null==h||h())},n=function(e){var t=e.target;y.current&&!y.current.contains(t)&&r.current&&!r.current.contains(t)&&(w(null),null==h||h())},o=(0,c.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,h,r]),!t)return null;var O=C();return O?(0,i.createPortal)((0,n.tZ)("div",a({ref:y,style:a(a({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:b})},{children:l})),O):(0,n.tZ)(n.HY,{children:l})};var u=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}}}},8776:(e,t,r)=>{r.d(t,{u:()=>c});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)},c=function(e){var t=e.children,r=e.css,c=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)},c,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},2788:(e,t,r)=>{r.r(t),r.d(t,{applyCheckableInputStyles:()=>d,applyHeightWidthMarginByFontSize:()=>u,composeCheckableInputStyle:()=>f,default:()=>p});var n=r(5944),o=r(7294),i=r(9479),c=function(){return c=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},c.apply(this,arguments)},a="polygon(40% 85%, 89% 23%, 76% 12%, 39% 59%, 23% 44%, 12% 55%)",l=function(e){return Math.max(e,13)},u=function(e,t,r){void 0===r&&(r=!1),e.apply(t,["font_size"],(function(e){var t=l(e),n="".concat(t,"px"),o={minHeight:n,height:n,minWidth:n,width:n},i=Math.max(t/2,10);return r||(o.marginRight="".concat(i,"px")),o}))},s=function(e,t,r,n){e.apply(t,["font_size",r],(function(e,t){var r=l(e);return n?function(e,t){return{height:e=Math.floor(e/1.7),width:e,minWidth:e,minHeight:e,border:0,boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),borderRadius:"50%"}}(r,t):function(e,t){return{boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),clipPath:a}}(r,t)}))},h=function(e,t,r){e.apply(t,["height","height_unit","width","width_unit",r],(function(e,t,r,n,o){return{boxShadow:"inset ".concat(r).concat(n," ").concat(e).concat(t," #").concat(o),clipPath:a}}))};function d(e,t){t.addTargets("checkbox","checkboxCheckmark","checkboxSelected","checkboxHover","checkboxCheckmarkHover","checkboxLabel");var r=e.servar,n=r.type,o=r.metadata.multiple,i="select"===n||"matrix"===n&&!o;return"multiselect"===n||"checkbox_group"===n||"matrix"===n&&o||i?(function(e,t){e.apply("checkboxLabel",["font_size","line_height"],(function(e,t){return t||(t=l(e)),{position:"relative",top:"-".concat((t-e)/2,"px"),lineHeight:"".concat(t,"px")}}))}(t),u(t,"checkbox",!0),u(t,"checkboxCheckmark",!0),u(t,"checkboxCheckmarkHover",!0),s(t,"checkboxCheckmark","selected_font_color",i),s(t,"checkboxCheckmarkHover","hover_font_color",i)):(t.applyHeight("checkbox"),t.applyWidth("checkbox"),t.applyHeight("checkboxCheckmark"),t.applyWidth("checkboxCheckmark"),t.applyHeight("checkboxCheckmarkHover"),t.applyWidth("checkboxCheckmarkHover"),t.apply("checkbox",["width","width_unit"],(function(e,t){return"px"===t&&e?{marginRight:"".concat(Math.max(Math.round(.4*e),5),"px")}:{}})),h(t,"checkboxCheckmark","selected_font_color"),h(t,"checkboxCheckmarkHover","hover_font_color")),t.applyBorders({target:"checkbox"}),i||t.applyCorners("checkbox"),t.applyBoxShadow("checkbox"),t.applyColor("checkbox","background_color","backgroundColor",!0),t.applySelectorStyles("checkboxHover",{prefix:"hover_",important:!0}),t.applySelectorStyles("checkboxSelected",{prefix:"selected_",important:!0}),t}var f=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),c(c({position:"static",marginLeft:5,marginRight:5,marginTop:0,marginBottom:0,appearance:"none",display:"grid",placeContent:"center",outline:"none",borderRadius:r?"50%":null},e.getTarget("checkbox")),{"&:hover":(0,i.wL)(t?{}:e.getTarget("checkboxHover")),"&::before":c({content:"''",transform:"scale(0)"},e.getTarget("checkboxCheckmark")),"&:hover::before":(0,i.wL)(c(c({},e.getTarget("checkboxCheckmark")),e.getTarget("checkboxCheckmarkHover"))),"&:checked":c({},e.getTarget("checkboxSelected")),"&:checked::before":{transform:"scale(1)"}})};const p=function(e){var t=e.element,r=e.responsiveStyles,a=e.fieldLabel,l=e.fieldVal,u=void 0===l||l,s=e.onChange,h=void 0===s?function(){}:s,p=e.elementProps,v=void 0===p?{}:p,g=e.disabled,b=void 0!==g&&g,m=e.children,y=(0,o.useMemo)((function(){return d(t,r)}),[r]),k=t.servar;return(0,n.BX)("div",c({css:c(c({},r.getTarget("fc")),{position:"relative",display:"flex",alignItems:"center"})},v,{children:[m,(0,n.tZ)("input",{id:k.key,name:k.key,type:"checkbox",checked:u,disabled:b,onChange:h,onFocus:i.ms,"aria-label":t.properties.aria_label,css:c(c(c(c({},f(y,b)),a?{}:{marginRight:5}),b?r.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"}})}),a]}))}},909:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var n=r(5944),o=r(7294),i=r(8776),c=r(2988),a=r(7449),l=r(9479),u=function(){return u=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},u.apply(this,arguments)};function s(e){var t=e.text,r=e.children,s=e.containerRef,h=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.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 c}((0,o.useState)(!1),2),d=h[0],f=h[1],p=(0,o.useRef)(null);if(!t)return(0,n.tZ)(n.HY,{children:r});var v=(0,l.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("span",u({ref:p,onMouseEnter:v?void 0:function(){return f(!0)},onMouseLeave:v?void 0:function(){return f(!1)},onFocus:function(){return f(!0)},onBlur:function(){return f(!1)},onClick:function(){return f((function(e){return!e}))},style:{display:"inline-block",cursor:"pointer"}},{children:r})),(0,n.tZ)(a.Z,u({show:d,targetRef:p,containerRef:s,placement:"top",onHide:function(){return f(!1)},offset:4},{children:(0,n.tZ)(i.u,u({id:"tooltip-".concat(t),css:{zIndex:c.rM+1,padding:".4rem 0",margin:"0 1rem",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:t}))}))]})}var h=r(2788),d=function(){return d=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},d.apply(this,arguments)};const f=function(e){var t,r=e.element,i=e.responsiveStyles,c=e.fieldLabel,a=e.fieldVal,u=void 0===a?{}:a,f=e.repeatIndex,p=void 0===f?null:f,v=e.onChange,g=void 0===v?function(){}:v,b=e.elementProps,m=void 0===b?{}:b,y=e.disabled,k=void 0!==y&&y,x=e.children,w=r.servar,C=w.metadata.multiple,S=C?"checkbox":"radio",_=(0,o.useRef)(null),O=i.getTarget("sub-fc"),H=O.backgroundColor,R=O.borderRadius,L=(0,o.useMemo)((function(){return(0,h.applyCheckableInputStyles)(r,i),i}),[i]),j=100/((t=null!==p&&void 0!==w.metadata.repeat_options&&void 0!==w.metadata.repeat_options[p]?w.metadata.repeat_options[p]:w.metadata.options).length+1),Z={minWidth:"100px",width:"".concat(j,"%")},E=d(d({},Z),{fontWeight:400,padding:8});return(0,n.BX)("div",d({ref:_,css:d(d({width:"100%",height:"100%"},i.getTarget("fc")),{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center"})},m,{children:[x,c,(0,n.BX)("div",d({style:{display:"flex",flexDirection:"row",marginBottom:6}},{children:[(0,n.tZ)("div",{css:E}),t.map((function(e,t){return(0,n.tZ)("div",d({style:{flex:1,fontWeight:600,justifyContent:"center",alignItems:"center",display:"flex",textAlign:"center"}},{children:e}),t)}))]})),w.metadata.questions.map((function(e,o){var i=e.highlight_color?"#".concat(e.highlight_color):H;return(0,n.BX)("div",d({style:{display:"flex",flexDirection:"row",backgroundColor:i,borderRadius:R,marginBottom:6}},{children:[(0,n.tZ)(s,d({text:e.tooltip},{children:(0,n.tZ)("div",d({css:E},{children:e.label}))})),t.map((function(t,i){var c=u[e.id],a=Array.isArray(c)&&c.includes(t);return(0,n.tZ)("div",d({css:{flex:1,justifyContent:"center",alignItems:"center",display:"flex"}},{children:(0,n.tZ)("input",{type:S,name:null!==p?"".concat(w.key,"-").concat(o,"-").concat(p):"".concat(w.key,"-").concat(o),"aria-label":r.properties.aria_label,"data-question-id":e.id,value:t,disabled:k||e.read_only,checked:a,onChange:g,onFocus:l.ms,css:(0,h.composeCheckableInputStyle)(L,k,!C)})}),i)}))]}),o)}))]}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[16,745],{5577:(e,t,o)=>{o.d(t,{N:()=>n});var a=o(5944),r=function(){return r=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};function n(e){var t=e.type,o=void 0===t?"text":t,n=e.htmlSize,c=e.css,i=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(o[a[r]]=e[a[r]])}return o}(e,["type","htmlSize","css"]);return(0,a.tZ)("input",r({type:o,size:n,css:r({border:"1px solid #ced4da",borderRadius:"0.375rem",padding:"0.375rem 0.75rem",fontSize:"1rem",lineHeight:"1.5",color:"#495057",backgroundColor:"#fff",backgroundClip:"padding-box",transition:"border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out","&:focus":{borderColor:"#80bdff",outline:0,boxShadow:"0 0 0 0.2rem rgba(0, 123, 255, 0.25)"},"&:disabled":{backgroundColor:"#e9ecef",opacity:1}},c)},i))}},2788:(e,t,o)=>{o.r(t),o.d(t,{applyCheckableInputStyles:()=>s,applyHeightWidthMarginByFontSize:()=>d,composeCheckableInputStyle:()=>u,default:()=>b});var a=o(5944),r=o(7294),n=o(9479),c=function(){return c=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)},i="polygon(40% 85%, 89% 23%, 76% 12%, 39% 59%, 23% 44%, 12% 55%)",l=function(e){return Math.max(e,13)},d=function(e,t,o){void 0===o&&(o=!1),e.apply(t,["font_size"],(function(e){var t=l(e),a="".concat(t,"px"),r={minHeight:a,height:a,minWidth:a,width:a},n=Math.max(t/2,10);return o||(r.marginRight="".concat(n,"px")),r}))},p=function(e,t,o,a){e.apply(t,["font_size",o],(function(e,t){var o=l(e);return a?function(e,t){return{height:e=Math.floor(e/1.7),width:e,minWidth:e,minHeight:e,border:0,boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),borderRadius:"50%"}}(o,t):function(e,t){return{boxShadow:"inset ".concat(e,"px ").concat(e,"px #").concat(t),clipPath:i}}(o,t)}))},h=function(e,t,o){e.apply(t,["height","height_unit","width","width_unit",o],(function(e,t,o,a,r){return{boxShadow:"inset ".concat(o).concat(a," ").concat(e).concat(t," #").concat(r),clipPath:i}}))};function s(e,t){t.addTargets("checkbox","checkboxCheckmark","checkboxSelected","checkboxHover","checkboxCheckmarkHover","checkboxLabel");var o=e.servar,a=o.type,r=o.metadata.multiple,n="select"===a||"matrix"===a&&!r;return"multiselect"===a||"checkbox_group"===a||"matrix"===a&&r||n?(function(e,t){e.apply("checkboxLabel",["font_size","line_height"],(function(e,t){return t||(t=l(e)),{position:"relative",top:"-".concat((t-e)/2,"px"),lineHeight:"".concat(t,"px")}}))}(t),d(t,"checkbox",!0),d(t,"checkboxCheckmark",!0),d(t,"checkboxCheckmarkHover",!0),p(t,"checkboxCheckmark","selected_font_color",n),p(t,"checkboxCheckmarkHover","hover_font_color",n)):(t.applyHeight("checkbox"),t.applyWidth("checkbox"),t.applyHeight("checkboxCheckmark"),t.applyWidth("checkboxCheckmark"),t.applyHeight("checkboxCheckmarkHover"),t.applyWidth("checkboxCheckmarkHover"),t.apply("checkbox",["width","width_unit"],(function(e,t){return"px"===t&&e?{marginRight:"".concat(Math.max(Math.round(.4*e),5),"px")}:{}})),h(t,"checkboxCheckmark","selected_font_color"),h(t,"checkboxCheckmarkHover","hover_font_color")),t.applyBorders({target:"checkbox"}),n||t.applyCorners("checkbox"),t.applyBoxShadow("checkbox"),t.applyColor("checkbox","background_color","backgroundColor",!0),t.applySelectorStyles("checkboxHover",{prefix:"hover_",important:!0}),t.applySelectorStyles("checkboxSelected",{prefix:"selected_",important:!0}),t}var u=function(e,t,o){return void 0===t&&(t=!1),void 0===o&&(o=!1),c(c({position:"static",marginLeft:5,marginRight:5,marginTop:0,marginBottom:0,appearance:"none",display:"grid",placeContent:"center",outline:"none",borderRadius:o?"50%":null},e.getTarget("checkbox")),{"&:hover":(0,n.wL)(t?{}:e.getTarget("checkboxHover")),"&::before":c({content:"''",transform:"scale(0)"},e.getTarget("checkboxCheckmark")),"&:hover::before":(0,n.wL)(c(c({},e.getTarget("checkboxCheckmark")),e.getTarget("checkboxCheckmarkHover"))),"&:checked":c({},e.getTarget("checkboxSelected")),"&:checked::before":{transform:"scale(1)"}})};const b=function(e){var t=e.element,o=e.responsiveStyles,i=e.fieldLabel,l=e.fieldVal,d=void 0===l||l,p=e.onChange,h=void 0===p?function(){}:p,b=e.elementProps,f=void 0===b?{}:b,g=e.disabled,y=void 0!==g&&g,k=e.children,m=(0,r.useMemo)((function(){return s(t,o)}),[o]),v=t.servar;return(0,a.BX)("div",c({css:c(c({},o.getTarget("fc")),{position:"relative",display:"flex",alignItems:"center"})},f,{children:[k,(0,a.tZ)("input",{id:v.key,name:v.key,type:"checkbox",checked:d,disabled:y,onChange:h,onFocus:n.ms,"aria-label":t.properties.aria_label,css:c(c(c(c({},u(m,y)),i?{}:{marginRight:5}),y?o.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"}})}),i]}))}},2920:(e,t,o)=>{o.r(t),o.d(t,{default:()=>s});var a=o(5944),r=o(7294),n=o(5577),c=o(1211),i=o(2788),l=o(1587),d=o(9479),p=o(5406),h=function(){return h=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},h.apply(this,arguments)};const s=function(e){var t,o,s,u=e.element,b=e.responsiveStyles,f=e.fieldLabel,g=e.required,y=void 0!==g&&g,k=e.disabled,m=void 0!==k&&k,v=e.fieldVal,x=void 0===v?"":v,w=e.otherVal,C=void 0===w?"":w,S=e.repeatIndex,_=void 0===S?null:S,T=e.editMode,O=e.onChange,H=void 0===O?function(){}:O,L=e.onOtherChange,Z=void 0===L?function(){}:L,B=e.onEnter,j=void 0===B?function(){}:B,z=e.elementProps,M=void 0===z?{}:z,P=e.children,R=u.servar,W=(0,r.useRef)(null),F=(0,p.Z)(R.metadata.salesforce_sync,T),I=F.dynamicOptions,G=F.loadingDynamicOptions,X=F.shouldSalesforceSync,E=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var a,r,n=o.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(a=n.next()).done;)c.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return c}((0,r.useState)({}),2),q=E[0],D=E[1],V=(q[R.key]||x)&&x===C,N=!V||m,K=null!==(t=R.metadata.other_label)&&void 0!==t?t:"Other",A=(0,r.useMemo)((function(){return(0,i.applyCheckableInputStyles)(u,b),function(e,t){t.addTargets("radioGroup"),(0,i.applyHeightWidthMarginByFontSize)(t,"radioGroup")}(0,b),b.addTargets("row-container"),b.apply("row-container","row_separation",(function(e){return{gap:"".concat(e||5,"px")}})),b.apply("row-container","option_direction",(function(e){return{flexDirection:e||"column"}})),b}),[b]),J=R.metadata.option_labels,Q=null!==(o=R.metadata.option_tooltips)&&void 0!==o?o:[];return s=X?I.map((function(e){return{value:e.value,label:e.label}})):null!==_&&void 0!==R.metadata.repeat_options&&void 0!==R.metadata.repeat_options[_]?R.metadata.repeat_options[_]:R.metadata.options.map((function(e,t){return{value:e,label:J&&J[t]?J[t]:e,tooltip:Q&&Q[t]?Q[t]:""}})),(0,a.BX)("div",h({ref:W,css:h(h({width:"100%",height:"100%"},b.getTarget("fc")),{position:"relative"})},M,{children:[P,f,(0,a.BX)("div",h({css:h({display:"flex",flexWrap:"wrap",width:"100%"},A.getTarget("row-container"))},{children:[s.map((function(e,t){var o,r,n,c=null!==(o=e.value)&&void 0!==o?o:e,p=null!==(r=e.label)&&void 0!==r?r:e,s=null!==(n=e.tooltip)&&void 0!==n?n:"";return(0,a.BX)("div",h({css:{display:"flex"}},{children:[(0,a.BX)("label",h({style:{display:"contents"}},{children:[(0,a.tZ)("input",{type:"radio",id:"".concat(R.key,"-").concat(t),name:null!==_?"".concat(R.key,"-").concat(_):R.key,checked:x===c,required:y,disabled:m||G,onChange:H,onFocus:d.ms,"aria-label":u.properties.aria_label,value:c,style:{padding:0,lineHeight:"normal"},css:h(h(h(h({},(0,i.composeCheckableInputStyle)(A,m,!0)),A.getTarget("radioGroup")),m?b.getTarget("disabled"):{}),{"&:focus-visible":{border:"1px solid rgb(74, 144, 226)"}})}),(0,a.tZ)("span",h({css:h({whiteSpace:"pre-wrap",overflowWrap:"anywhere"},A.getTarget("checkboxLabel"))},{children:p}))]})),(0,a.tZ)(l.Z,{containerRef:W,id:"".concat(u.id,"-").concat(c),text:s,responsiveStyles:b,absolute:!1,repeat:u.repeat})]}),"".concat(R.key,"-").concat(t))})),R.metadata.other&&(0,a.BX)("div",h({style:{display:"flex",flexGrow:1}},{children:[(0,a.tZ)("input",{type:"radio",id:"".concat(R.key,"-"),name:null!==_?"".concat(R.key,"-").concat(_):R.key,value:C||"",checked:V,disabled:m||G,onChange:function(e){var t;D(h(h({},q),((t={})[R.key]=!0,t))),H(e)},onFocus:d.ms,style:{padding:0,lineHeight:"normal"},css:h(h(h({},(0,i.composeCheckableInputStyle)(A,m,!0)),A.getTarget("radioGroup")),m?b.getTarget("disabled"):{})},"".concat(R.key,"-")),(0,a.tZ)("label",h({htmlFor:"".concat(R.key,"-"),css:A.getTarget("checkboxLabel")},{children:K})),(0,a.tZ)(n.N,{type:"text",htmlSize:1,css:h(h(h(h({marginLeft:"5px"},c.ET),{paddingLeft:"0.4rem",flexGrow:1}),b.getTarget("field")),N||G?b.getTarget("disabled"):{}),id:R.key,value:C||"",onChange:Z,onKeyDown:function(e){"Enter"===e.key&&j(e)},maxLength:R.max_length,minLength:R.min_length,required:V,disabled:N||G}),(0,a.tZ)(l.Z,{containerRef:W,id:"".concat(u.id,"-"),text:R.metadata.other_tooltip,responsiveStyles:b,absolute:!1,repeat:u.repeat})]}))]}))]}))}}}]);
|