Sindbad~EG File Manager

Current Path : /var/www/html/portal.sumar.com.py/wp-content/plugins/popup-maker/dist/packages/
Upload File :
Current File : /var/www/html/portal.sumar.com.py/wp-content/plugins/popup-maker/dist/packages/fields.js.map

{"version":3,"file":"fields.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,GAAG,SAAS,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,kGAAC;AACJ,GAAG,KAAK;AAAA,EAEN;AACF,CAAC;;;;;;;;;;;;;;;;;;AC5EmD;;;;;;;;;;;;;;;;;;;;;;;;ACAJ;AACe;AAAA;AA8BxD,MAAMO,aAAa,GAAGJ,iEAAa,CAAuB;EAChEK,OAAO,EAAE,EAAE;EACXC,MAAM,EAAE,EAAE;EACVC,MAAM,EAAE,CAAC,CAA0B;EACnCC,SAAS,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAE,CAAC;AAEI,MAAMC,oBAAoB,GAAGA,CAEjC;EACFJ,OAAO;EACPC,MAAM;EACNC,MAAM;EACNC,SAAS;EACTE;AAGD,CAAC,KAAM;EACN,oBACCP,sDAAA,CAACC,aAAa,CAACO,QAAQ;IACtBC,KAAK,EAAG;MAAEP,OAAO;MAAEC,MAAM;MAAEC,MAAM;MAAEC;IAAU,CAAG;IAAAE,QAAA,EAE9CA;EAAQ,CACa,CAAC;AAE3B,CAAC;AASM,MAAMZ,SAAS,GAAGA,CAAA,KAOpB;EACJ,MA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OAAO;QACN,GAAGA;MACJ,CAAC;EACH;AACD,CAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AIngBwB;AACE;AACD;;;;;;;;;;;;;;;;;;;;;;;AEF1B,oD;;;;;;;;;;;ACAA,kD;;;;;;;;;;;ACAA,8C;;;;;;;;;;;ACAA,+C;;;;;;;;;;;ACAA,4C;;;;;;;;;;;ACAA,yC;;;;;;;;;;;ACAA,0C;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,yC;;;;;;;;;;;ACAA,uC;;;;;;;;;;;ACAA,8C;;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNsB;AACE","sources":["webpack://popup-maker/core/./node_modules/classnames/index.js?","webpack://popup-maker/core/./packages/fields/src/hooks/index.tsx?","webpack://popup-maker/core/./packages/fields/src/hooks/use-fields.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/checkbox.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/color.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/custom-select.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/date.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/field.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/fields.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/html.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/index.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/measure.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/multicheck.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/number.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/object-select.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/radio.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/rangeslider.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/select.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/text.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/textarea.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/token-select.tsx?","webpack://popup-maker/core/./packages/fields/src/lib/utils.tsx?","webpack://popup-maker/core/./packages/fields/src/types/fields.ts?","webpack://popup-maker/core/./packages/fields/src/types/general.ts?","webpack://popup-maker/core/./packages/fields/src/types/generics.ts?","webpack://popup-maker/core/./packages/fields/src/types/index.ts?","webpack://popup-maker/core/./packages/fields/src/types/old-field.ts?","webpack://popup-maker/core/external window [\"popupMaker\",\"components\"]?","webpack://popup-maker/core/external window [\"popupMaker\",\"coreData\"]?","webpack://popup-maker/core/external window [\"popupMaker\",\"i18n\"]?","webpack://popup-maker/core/external window [\"popupMaker\",\"utils\"]?","webpack://popup-maker/core/external window [\"wp\",\"components\"]?","webpack://popup-maker/core/external window [\"wp\",\"compose\"]?","webpack://popup-maker/core/external window [\"wp\",\"coreData\"]?","webpack://popup-maker/core/external window [\"wp\",\"data\"]?","webpack://popup-maker/core/external window [\"wp\",\"element\"]?","webpack://popup-maker/core/external window [\"wp\",\"hooks\"]?","webpack://popup-maker/core/external window [\"wp\",\"htmlEntities\"]?","webpack://popup-maker/core/external window \"ReactJSXRuntime\"?","webpack://popup-maker/core/webpack/bootstrap?","webpack://popup-maker/core/webpack/runtime/compat get default export?","webpack://popup-maker/core/webpack/runtime/define property getters?","webpack://popup-maker/core/webpack/runtime/hasOwnProperty shorthand?","webpack://popup-maker/core/webpack/runtime/make namespace object?","webpack://popup-maker/core/./packages/fields/src/index.tsx?"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","export { default as useFields } from './use-fields';\nexport * from './use-fields';\n","import { applyFilters } from '@wordpress/hooks';\nimport { createContext, useContext } from '@wordpress/element';\n\nexport interface BaseFieldDef {\n\tcomponent: JSX.Element;\n\tid: string | number;\n\tpriority: number;\n\t// Optional grouping of fields\n\ttab?: string;\n\tsection?: string;\n\tpanel?: string;\n}\n\nexport interface BaseFieldValues {\n\t[ key: string ]: any;\n}\n\nexport interface FieldDef extends BaseFieldDef {}\nexport interface FieldValues extends BaseFieldValues {}\n\nexport interface FieldsContextType<\n\tF extends FieldDef = BaseFieldDef,\n\tV extends FieldValues = BaseFieldValues,\n\tK extends keyof V = keyof V,\n> {\n\tcontext: string;\n\tfields?: F[];\n\tvalues: Record< K, V[ K ] >;\n\tsetValues: ( values: Record< K, V[ K ] > ) => void;\n}\n\nexport const FieldsContext = createContext< FieldsContextType >( {\n\tcontext: '',\n\tfields: [],\n\tvalues: {} as Record< string, any >,\n\tsetValues: () => {},\n} );\n\nexport const FieldContextProvider = <\n\tT extends FieldsContextType = FieldsContextType,\n>( {\n\tcontext,\n\tfields,\n\tvalues,\n\tsetValues,\n\tchildren,\n}: T & {\n\tchildren: React.ReactNode;\n} ) => {\n\treturn (\n\t\t<FieldsContext.Provider\n\t\t\tvalue={ { context, fields, values, setValues } }\n\t\t>\n\t\t\t{ children }\n\t\t</FieldsContext.Provider>\n\t);\n};\n\ntype FieldFilters = {\n\ttab?: string;\n\tsection?: string;\n\tpanel?: string;\n\tvisible?: boolean;\n};\n\nexport const useFields = <\n\tF extends BaseFieldDef = FieldDef,\n\tV extends BaseFieldValues = FieldValues,\n>(): FieldsContextType & {\n\tgetFields: ( filters?: FieldFilters ) => F[];\n\tupdateField: ( field: string, value: any ) => void;\n\tfieldIsVisible: ( field: string ) => boolean;\n} => {\n\tconst {\n\t\tcontext,\n\t\tfields = [],\n\t\tvalues,\n\t\tsetValues,\n\t} = useContext( FieldsContext );\n\n\tconst getFields = (\n\t\tfilters: FieldFilters = {\n\t\t\tvisible: true,\n\t\t}\n\t) => {\n\t\tconst _fields = ( fields ?? [] )\n\t\t\t.filter( ( field ) => {\n\t\t\t\tif ( filters?.tab && field.tab !== filters.tab ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif ( filters?.section && field.section !== filters.section ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif ( filters?.panel && field.panel !== filters.panel ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif ( filters?.visible && ! fieldIsVisible( field.id ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t} )\n\t\t\t.sort( ( a, b ) => a.priority - b.priority )\n\t\t\t.map( ( field ) => {\n\t\t\t\t/**\n\t\t\t\t * Allow external overrides via a filter with null default.\n\t\t\t\t *\n\t\t\t\t * @param {JSX.Element} component The current field component.\n\t\t\t\t * @param {string}      id        The field name.\n\t\t\t\t * @param {FieldDef}    field     The current tab name.\n\t\t\t\t *\n\t\t\t\t * @return {JSX.Element} The new field component.\n\t\t\t\t */\n\t\t\t\tconst component = applyFilters(\n\t\t\t\t\t`${ context }.renderField`,\n\t\t\t\t\tfield.component,\n\t\t\t\t\tfield.id,\n\t\t\t\t\tfield\n\t\t\t\t) as JSX.Element;\n\n\t\t\t\treturn {\n\t\t\t\t\t...field,\n\t\t\t\t\tcomponent,\n\t\t\t\t} as F;\n\t\t\t} );\n\n\t\t/**\n\t\t * Allow external overrides via a filter with null default.\n\t\t *\n\t\t * @param {F[]}          fields  The current fields.\n\t\t * @param {FieldFilters} filters The current filters.\n\t\t * @return {F[]} The new fields.\n\t\t */\n\t\treturn applyFilters(\n\t\t\t`${ context }.getFields`,\n\t\t\t_fields,\n\t\t\tfilters\n\t\t) as F[];\n\t};\n\n\tconst updateField = < K extends keyof V >( field: K, value: V[ K ] ) => {\n\t\tsetValues( {\n\t\t\t...values,\n\t\t\t[ field ]: value,\n\t\t} );\n\t};\n\n\tconst fieldIsVisible = ( field: keyof V ): boolean => {\n\t\t/**\n\t\t * Allow external overrides via a filter with null default.\n\t\t *\n\t\t * @param {boolean|undefined} show   The current value of the field.\n\t\t * @param {string}            field  The field name.\n\t\t * @param {V}                 values The current values.\n\t\t * @return {boolean|undefined} The new value of the field.\n\t\t */\n\n\t\tconst show = applyFilters(\n\t\t\t`${ context }.fieldIsVisible`,\n\t\t\tundefined,\n\t\t\tfield,\n\t\t\tvalues // Values.\n\t\t) as boolean | undefined;\n\n\t\t// If the filter returned a value, use it.\n\t\treturn show !== undefined ? show : true;\n\t};\n\n\treturn {\n\t\tcontext,\n\t\tfields,\n\t\tvalues,\n\t\tsetValues,\n\t\tgetFields,\n\t\tupdateField,\n\t\tfieldIsVisible,\n\t};\n};\n\nexport default useFields;\n","import {\n\tBaseControl,\n\tCheckboxControl,\n\tFormToggle,\n} from '@wordpress/components';\n\nimport type { CheckboxFieldProps, WithOnChange } from '../types';\n\nconst CheckboxField = ( {\n\tvalue,\n\tonChange,\n\tlabel,\n\t...fieldProps\n}: WithOnChange< CheckboxFieldProps > ) => {\n\tconst toggle = false;\n\n\tif ( ! toggle ) {\n\t\treturn (\n\t\t\t<CheckboxControl\n\t\t\t\t{ ...fieldProps }\n\t\t\t\tlabel={ label }\n\t\t\t\tchecked={ value }\n\t\t\t\tonChange={ onChange }\n\t\t\t\t__nextHasNoMarginBottom\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<BaseControl\n\t\t\tid={ fieldProps.id }\n\t\t\tlabel={ label }\n\t\t\t__nextHasNoMarginBottom\n\t\t>\n\t\t\t<FormToggle\n\t\t\t\tchecked={ value }\n\t\t\t\tonChange={ () => onChange( ! value ) }\n\t\t\t\t{ ...fieldProps }\n\t\t\t/>\n\t\t</BaseControl>\n\t);\n};\n\nexport default CheckboxField;\n","import {\n\tColorIndicator,\n\tColorPalette,\n\tColorPicker,\n} from '@wordpress/components';\n\nimport type { HexColorFieldProps, WithOnChange } from '../types';\n\nconst ColorField = ( {\n\tvalue = '',\n\tonChange,\n\t...fieldProps\n}: WithOnChange< HexColorFieldProps > ) => {\n\tconst colors = [\n\t\t{ name: 'red', color: '#f00' },\n\t\t{ name: 'white', color: '#fff' },\n\t\t{ name: 'blue', color: '#00f' },\n\t];\n\n\treturn (\n\t\t<>\n\t\t\t<ColorIndicator colorValue={ value } />\n\t\t\t<ColorPicker\n\t\t\t\t{ ...fieldProps }\n\t\t\t\tcolor={ value }\n\t\t\t\tonChangeComplete={ ( color ) =>\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tonChange( color?.hex ?? color )\n\t\t\t\t}\n\t\t\t/>\n\t\t\t<ColorPalette\n\t\t\t\tvalue={ value }\n\t\t\t\tonChange={ ( newValue ) => {\n\t\t\t\t\tonChange( newValue ?? '' );\n\t\t\t\t} }\n\t\t\t\tcolors={ colors }\n\t\t\t\tclearable={ true }\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default ColorField;\n","import { useState, useEffect } from '@wordpress/element';\nimport { __, sprintf } from '@popup-maker/i18n';\nimport { useDebounce } from '@wordpress/compose';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { SmartTokenControl } from '@popup-maker/components';\nimport { fetchFromWPApi } from '@popup-maker/core-data';\n\nimport type { CustomSelectFieldProps, WithOnChange } from '../types';\n\ninterface CustomEntityOption {\n\tid: string;\n\ttext: string;\n}\n\nconst CustomSelectField = ( {\n\tlabel,\n\tvalue,\n\tonChange,\n\tentityType,\n\tmultiple = false,\n\tapiEndpoint = 'popup-maker/v2/object-search',\n}: WithOnChange< CustomSelectFieldProps > ) => {\n\tconst [ queryText, setQueryText ] = useState( '' );\n\tconst [ apiData, setApiData ] = useState< {\n\t\tprefill: CustomEntityOption[];\n\t\tsuggestions: CustomEntityOption[];\n\t} >( {\n\t\tprefill: [],\n\t\tsuggestions: [],\n\t} );\n\tconst [ isLoading, setIsLoading ] = useState( false );\n\n\tconst updateQueryText = useDebounce( ( text: string ) => {\n\t\tsetQueryText( text );\n\t}, 300 );\n\n\t// Fetch data from our custom API endpoint\n\tuseEffect( () => {\n\t\tconst fetchApiData = async () => {\n\t\t\tsetIsLoading( true );\n\t\t\ttry {\n\t\t\t\t// Build API URL\n\t\t\t\tlet apiUrl = `${ apiEndpoint }?object_type=custom_entity&entity_type=${ entityType }`;\n\n\t\t\t\t// Include selected values for prefill\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst includeIds = Array.isArray( value )\n\t\t\t\t\t\t? value\n\t\t\t\t\t\t: [ value ];\n\t\t\t\t\tapiUrl += `&include=${ includeIds.join( ',' ) }`;\n\t\t\t\t}\n\n\t\t\t\t// Add search parameter if provided\n\t\t\t\tif ( queryText ) {\n\t\t\t\t\tapiUrl += `&s=${ queryText }`;\n\t\t\t\t}\n\n\t\t\t\tconst response = await fetchFromWPApi< {\n\t\t\t\t\titems: Array< { id: string; text: string } >;\n\t\t\t\t\ttotal_count: number;\n\t\t\t\t} >( apiUrl );\n\n\t\t\t\t// Map API response\n\t\t\t\tconst allOptions: CustomEntityOption[] = response.items.map(\n\t\t\t\t\t( item ) => ( {\n\t\t\t\t\t\tid: item.id,\n\t\t\t\t\t\ttext: item.text,\n\t\t\t\t\t} )\n\t\t\t\t);\n\n\t\t\t\t// Extract prefill data from the same response if we have selected values\n\t\t\t\tlet prefillData: CustomEntityOption[] = [];\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst includeIds = Array.isArray( value )\n\t\t\t\t\t\t? value\n\t\t\t\t\t\t: [ value ];\n\t\t\t\t\tprefillData = allOptions.filter( ( item ) =>\n\t\t\t\t\t\tincludeIds.includes( item.id )\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tsetApiData( {\n\t\t\t\t\tprefill: prefillData,\n\t\t\t\t\tsuggestions: allOptions,\n\t\t\t\t} );\n\t\t\t} catch ( error ) {\n\t\t\t\t// Silently fail and set empty data\n\t\t\t\tsetApiData( { prefill: [], suggestions: [] } );\n\t\t\t} finally {\n\t\t\t\tsetIsLoading( false );\n\t\t\t}\n\t\t};\n\n\t\tfetchApiData();\n\t}, [ value, queryText, entityType, apiEndpoint ] );\n\n\tconst findSuggestion = ( id: string ) => {\n\t\tconst findInList = ( list: CustomEntityOption[] ) => {\n\t\t\treturn list.find( ( suggestion ) => suggestion.id === id );\n\t\t};\n\n\t\tconst found = findInList( apiData.suggestions );\n\t\tif ( found ) {\n\t\t\treturn found;\n\t\t}\n\n\t\treturn findInList( apiData.prefill );\n\t};\n\n\tconst values = ( () => {\n\t\tif ( ! value ) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn typeof value === 'string' ? [ value ] : value;\n\t} )();\n\n\tconst getTokenValue = ( token: string | { value: string } ) => {\n\t\tif ( typeof token === 'object' ) {\n\t\t\treturn token.value;\n\t\t}\n\n\t\treturn token;\n\t};\n\n\treturn (\n\t\t<div className=\"pum-custom-entity-select-field\">\n\t\t\t<SmartTokenControl\n\t\t\t\tlabel={\n\t\t\t\t\tlabel\n\t\t\t\t\t\t? label\n\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t// translators: %s: entity type.\n\t\t\t\t\t\t\t\t__( '%s(s)', 'popup-maker' ),\n\t\t\t\t\t\t\t\tentityType\n\t\t\t\t\t\t\t\t\t.replace( /_/g, ' ' )\n\t\t\t\t\t\t\t\t\t// uppercase first letter.\n\t\t\t\t\t\t\t\t\t.charAt( 0 )\n\t\t\t\t\t\t\t\t\t.toUpperCase() +\n\t\t\t\t\t\t\t\t\tentityType.replace( /_/g, ' ' ).slice( 1 )\n\t\t\t\t\t\t  )\n\t\t\t\t}\n\t\t\t\thideLabelFromVision={ true }\n\t\t\t\tmultiple={ multiple }\n\t\t\t\tplaceholder={ sprintf(\n\t\t\t\t\t// translators: %s: entity type.\n\t\t\t\t\t__( 'Select %s(s)', 'popup-maker' ),\n\t\t\t\t\tentityType.replace( /_/g, ' ' ).toLowerCase()\n\t\t\t\t) }\n\t\t\t\ttokenOnComma={ true }\n\t\t\t\tvalue={ values }\n\t\t\t\tonInputChange={ updateQueryText }\n\t\t\t\tonChange={ ( newValue ) => {\n\t\t\t\t\tconst stringValues = newValue\n\t\t\t\t\t\t.map( ( v ) => getTokenValue( v ) )\n\t\t\t\t\t\t.filter( ( v ) => v !== null && v !== '' );\n\n\t\t\t\t\tonChange(\n\t\t\t\t\t\tmultiple ? stringValues : stringValues[ 0 ] || ''\n\t\t\t\t\t);\n\t\t\t\t} }\n\t\t\t\trenderToken={ ( token ) => {\n\t\t\t\t\tconst suggestion = findSuggestion( getTokenValue( token ) );\n\n\t\t\t\t\tif ( ! suggestion ) {\n\t\t\t\t\t\treturn getTokenValue( token );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn decodeEntities( suggestion.text );\n\t\t\t\t} }\n\t\t\t\trenderSuggestion={ ( item ) => {\n\t\t\t\t\tconst suggestion = findSuggestion( item );\n\n\t\t\t\t\tif ( ! suggestion ) {\n\t\t\t\t\t\treturn item;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn <>{ decodeEntities( suggestion.text ) }</>;\n\t\t\t\t} }\n\t\t\t\tsuggestions={ apiData.suggestions.map(\n\t\t\t\t\t( option ) => option.id\n\t\t\t\t) }\n\t\t\t\tmessages={\n\t\t\t\t\tisLoading\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tnoSuggestions: __(\n\t\t\t\t\t\t\t\t\t'Searching…',\n\t\t\t\t\t\t\t\t\t'popup-maker'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t  }\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default CustomSelectField;\n","import { BaseControl } from '@wordpress/components';\n\nimport type { DateFieldProps, WithOnChange } from '../types';\n\nconst DateField = ( {\n\tvalue,\n\tonChange,\n\t...fieldProps\n}: WithOnChange< DateFieldProps > ) => {\n\treturn (\n\t\t<>\n\t\t\t<BaseControl\n\t\t\t\t{ ...fieldProps }\n\t\t\t\thideLabelFromVision={ true }\n\t\t\t\t__nextHasNoMarginBottom\n\t\t\t>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"date\"\n\t\t\t\t\tvalue={ value }\n\t\t\t\t\tonChange={ ( event ) => onChange( event.target.value ) }\n\t\t\t\t/>\n\t\t\t</BaseControl>\n\t\t</>\n\t);\n};\n\nexport default DateField;\n","import classnames from 'classnames';\n\nimport { __, sprintf } from '@popup-maker/i18n';\n\nimport {\n\tCheckboxField,\n\tColorField,\n\tCustomSelectField,\n\tDateField,\n\tMeasureField,\n\tMulticheckField,\n\tHtmlField,\n\tNumberField,\n\tObjectSelectField,\n\tRadioField,\n\tRangeSliderField,\n\tSelectField,\n\tTextAreaField,\n\tTextField,\n\tTokenSelectField,\n} from './';\n\nimport type { FieldPropsWithOnChange } from '../types';\nimport { parseFieldProps } from './utils';\n\nconst FieldComponent = ( fieldProps: FieldPropsWithOnChange ): JSX.Element => {\n\tconst { type } = fieldProps;\n\n\tswitch ( type ) {\n\t\tcase 'checkbox':\n\t\t\treturn <CheckboxField { ...fieldProps } />;\n\t\tcase 'color':\n\t\t\treturn <ColorField { ...fieldProps } />;\n\t\tcase 'customselect':\n\t\t\treturn <CustomSelectField { ...fieldProps } />;\n\t\tcase 'date':\n\t\t\treturn <DateField { ...fieldProps } />;\n\t\tcase 'measure':\n\t\t\treturn <MeasureField { ...fieldProps } />;\n\t\tcase 'multicheck':\n\t\t\treturn <MulticheckField { ...fieldProps } />;\n\t\tcase 'select':\n\t\tcase 'multiselect':\n\t\t\treturn <SelectField { ...fieldProps } />;\n\t\tcase 'objectselect':\n\t\tcase 'postselect':\n\t\tcase 'taxonomyselect':\n\t\tcase 'userselect':\n\t\t\treturn <ObjectSelectField { ...fieldProps } />;\n\t\tcase 'radio':\n\t\t\treturn <RadioField { ...fieldProps } />;\n\t\tcase 'rangeslider':\n\t\t\treturn <RangeSliderField { ...fieldProps } />;\n\t\tcase 'number':\n\t\t\treturn <NumberField { ...fieldProps } />;\n\t\tcase 'email':\n\t\tcase 'tel':\n\t\tcase 'hidden':\n\t\tcase 'text':\n\t\tcase 'password':\n\t\t\treturn <TextField { ...fieldProps } />;\n\t\tcase 'textarea':\n\t\t\treturn <TextAreaField { ...fieldProps } />;\n\t\tcase 'tokenselect':\n\t\t\treturn <TokenSelectField { ...fieldProps } />;\n\t\tcase 'html':\n\t\t\treturn <HtmlField { ...fieldProps } />;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ sprintf(\n\t\t\t\t/* translators: 1. type of field not found. */\n\t\t\t\t__( 'Field type `%s` not found', 'popup-maker' ),\n\t\t\t\ttype\n\t\t\t) }\n\t\t</>\n\t);\n};\n\nconst Field = ( props: FieldPropsWithOnChange ) => {\n\tconst { type, className, onChange } = props;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={ classnames( [\n\t\t\t\t'pum-field',\n\t\t\t\t`pum-field--${ type }`,\n\t\t\t\tclassName,\n\t\t\t] ) }\n\t\t>\n\t\t\t{ /* @ts-ignore */ }\n\t\t\t<FieldComponent\n\t\t\t\tonChange={ onChange }\n\t\t\t\t{ ...parseFieldProps( props ) }\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Field;\n","import Field from './field';\n\nimport type { FieldPropsWithOnChange } from '../types';\n\ntype Props = {\n\tfields: FieldPropsWithOnChange[];\n};\n\nconst Fields = ( props: Props ) => {\n\tconst { fields } = props;\n\n\treturn (\n\t\t<>\n\t\t\t{ fields.map( ( field, i ) => (\n\t\t\t\t<Field key={ i } { ...field } />\n\t\t\t) ) }\n\t\t</>\n\t);\n};\n\nexport default Fields;\n","import type { HtmlFieldProps } from '../types';\n\nconst HtmlField = ( { content }: HtmlFieldProps ) => {\n\treturn <div dangerouslySetInnerHTML={ { __html: content ?? '' } } />;\n};\n\nexport default HtmlField;\n","export { default as CheckboxField } from './checkbox';\nexport { default as ColorField } from './color';\nexport { default as CustomSelectField } from './custom-select';\nexport { default as DateField } from './date';\nexport { default as Field } from './field';\nexport { default as Fields } from './fields';\nexport { default as HtmlField } from './html';\nexport { default as MeasureField } from './measure';\nexport { default as MulticheckField } from './multicheck';\nexport { default as NumberField } from './number';\nexport { default as ObjectSelectField } from './object-select';\nexport { default as RadioField } from './radio';\nexport { default as RangeSliderField } from './rangeslider';\nexport { default as SelectField } from './select';\nexport { default as TextAreaField } from './textarea';\nexport { default as TextField } from './text';\nexport { default as TokenSelectField } from './token-select';\n","import {\n\t// @ts-ignore\n\t// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n\t__experimentalUnitControl as UnitControl,\n} from '@wordpress/components';\nimport { useEffect, useState } from '@wordpress/element';\n\nimport type { MeasureFieldProps, WithOnChange } from '../types';\n\nconst MeasureField = ( {\n\tvalue,\n\tonChange,\n\tunits,\n\t...fieldProps\n}: WithOnChange< MeasureFieldProps > ) => {\n\tconst number = value ? parseInt( value ) : '';\n\n\tconst [ state, setState ] = useState( {\n\t\tnumber,\n\t\tunit: value?.replace( `${ number }`, '' ) ?? '',\n\t} );\n\n\tuseEffect( () => {\n\t\tonChange( `${ state.number }${ state.unit }` );\n\t}, [ state, onChange ] );\n\n\tconst unitsArray = Object.entries( units ).map( ( [ v, l ] ) => ( {\n\t\tvalue: v,\n\t\tlabel: l,\n\t} ) );\n\n\treturn (\n\t\t<UnitControl\n\t\t\t{ ...fieldProps }\n\t\t\tvalue={ value }\n\t\t\tonChange={ ( newNumber: string = '0' ) =>\n\t\t\t\tsetState( { ...state, number: newNumber } )\n\t\t\t}\n\t\t\tdisableUnits={ unitsArray.length === 0 }\n\t\t\tunits={ unitsArray }\n\t\t\tonUnitChange={ ( newUnit: string = '' ) =>\n\t\t\t\tsetState( { ...state, unit: newUnit } )\n\t\t\t}\n\t\t\t// @ts-ignore\n\t\t\t__nextHasNoMarginBottom={ true }\n\t\t/>\n\t);\n};\n\nexport default MeasureField;\n","import {\n\tBaseControl,\n\tCheckboxControl,\n\tFormToggle,\n} from '@wordpress/components';\n\nimport { parseFieldOptions } from './utils';\n\nimport type { MulticheckFieldProps, WithOnChange } from '../types';\n\nconst MulticheckField = ( {\n\tvalue,\n\tonChange,\n\t...fieldProps\n}: WithOnChange< MulticheckFieldProps > ) => {\n\tconst toggle = false;\n\n\tconst checked = value ?? [];\n\n\tconst options = parseFieldOptions( fieldProps.options );\n\n\tconst checkedOpts = value ?? [];\n\n\t/**\n\t * Foreach option render a checkbox. value can be an array\n\t * of keys, or an object with key: boolean pairs.\n\t */\n\n\tconst CheckBoxes = () => (\n\t\t<>\n\t\t\t{ options.map( ( { label: optLabel, value: optValue } ) => {\n\t\t\t\tconst isChecked = checked.indexOf( optValue ) >= 0;\n\n\t\t\t\tconst toggleOption = () =>\n\t\t\t\t\tonChange(\n\t\t\t\t\t\t! isChecked\n\t\t\t\t\t\t\t? [ ...checkedOpts, optValue ]\n\t\t\t\t\t\t\t: checkedOpts.filter( ( val ) => optValue !== val )\n\t\t\t\t\t);\n\n\t\t\t\tif ( ! toggle ) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<CheckboxControl\n\t\t\t\t\t\t\tkey={ optValue }\n\t\t\t\t\t\t\tlabel={ optLabel }\n\t\t\t\t\t\t\tchecked={ isChecked }\n\t\t\t\t\t\t\tonChange={ toggleOption }\n\t\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn (\n\t\t\t\t\t<BaseControl\n\t\t\t\t\t\tkey={ optValue }\n\t\t\t\t\t\tid={ fieldProps.id + '-' + optValue.toString() }\n\t\t\t\t\t\tlabel={ optLabel }\n\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t>\n\t\t\t\t\t\t<FormToggle\n\t\t\t\t\t\t\tchecked={ isChecked }\n\t\t\t\t\t\t\tonChange={ toggleOption }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</BaseControl>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</>\n\t);\n\n\treturn <CheckBoxes />;\n};\n\nexport default MulticheckField;\n","import {\n\t// @ts-ignore\n\t// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n\t__experimentalNumberControl as NumberControl,\n} from '@wordpress/components';\n\nimport type { NumberFieldProps, WithOnChange } from '../types';\n\nconst NumberField = ( {\n\tvalue,\n\tonChange,\n\t...fieldProps\n}: WithOnChange< NumberFieldProps > ) => {\n\treturn (\n\t\t<NumberControl\n\t\t\t{ ...fieldProps }\n\t\t\tvalue={ value }\n\t\t\tonChange={ ( newValue = '0' ) =>\n\t\t\t\tonChange( parseInt( newValue, 10 ) )\n\t\t\t}\n\t\t\t// @ts-ignore\n\t\t\t__nextHasNoMarginBottom={ true }\n\t\t\t__next40pxDefaultSize={ true }\n\t\t/>\n\t);\n};\n\nexport default NumberField;\n","import { useSelect } from '@wordpress/data';\nimport { useState, useEffect } from '@wordpress/element';\nimport { __, sprintf } from '@popup-maker/i18n';\nimport { useDebounce } from '@wordpress/compose';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { SmartTokenControl } from '@popup-maker/components';\nimport { fetchFromWPApi } from '@popup-maker/core-data';\n\nimport type {\n\tObjectSelectFieldProps,\n\tPostSelectFieldProps,\n\tTaxonomySelectFieldProps,\n\tUserSelectFieldProps,\n\tWithOnChange,\n} from '../types';\n\ninterface ObjectOption {\n\tid: number;\n\ttitle?: {\n\t\trendered?: string;\n\t\traw?: string;\n\t};\n\tname?: string;\n}\n\nconst ObjectSelectField = ( {\n\tlabel,\n\tvalue,\n\tonChange,\n\tentityKind = 'postType',\n\tentityType = 'post',\n\tmultiple = false,\n}: WithOnChange<\n\t| ObjectSelectFieldProps\n\t| PostSelectFieldProps\n\t| TaxonomySelectFieldProps\n\t| UserSelectFieldProps\n> ) => {\n\tconst [ queryText, setQueryText ] = useState( '' );\n\tconst [ usePopupMakerAPI, setUsePopupMakerAPI ] = useState( false );\n\tconst [ apiData, setApiData ] = useState< {\n\t\tprefill: ObjectOption[];\n\t\tsuggestions: ObjectOption[];\n\t} >( {\n\t\tprefill: [],\n\t\tsuggestions: [],\n\t} );\n\n\tconst updateQueryText = useDebounce( ( text: string ) => {\n\t\tsetQueryText( text );\n\t}, 300 );\n\n\tconst prefill = useSelect(\n\t\t( select ) => {\n\t\t\tif ( usePopupMakerAPI ) {\n\t\t\t\treturn apiData.prefill;\n\t\t\t}\n\n\t\t\tif ( ! value ) {\n\t\t\t\treturn [];\n\t\t\t}\n\n\t\t\tconst records = select( coreDataStore ).getEntityRecords(\n\t\t\t\tentityKind,\n\t\t\t\tentityType,\n\t\t\t\t{\n\t\t\t\t\tcontext: 'view',\n\t\t\t\t\tinclude: value,\n\t\t\t\t\tper_page: -1,\n\t\t\t\t}\n\t\t\t) as ObjectOption[];\n\n\t\t\t// If core-data returns null and we haven't switched to popup-maker API yet, switch now.\n\t\t\tif (\n\t\t\t\trecords === null &&\n\t\t\t\t! usePopupMakerAPI &&\n\t\t\t\tentityKind === 'postType'\n\t\t\t) {\n\t\t\t\tsetUsePopupMakerAPI( true );\n\t\t\t}\n\n\t\t\treturn records || [];\n\t\t},\n\t\t[ value, entityKind, entityType, usePopupMakerAPI, apiData.prefill ]\n\t);\n\n\tconst suggestions = useSelect(\n\t\t( select ) => {\n\t\t\tif ( usePopupMakerAPI ) {\n\t\t\t\treturn apiData.suggestions;\n\t\t\t}\n\n\t\t\tif ( entityKind === 'user' ) {\n\t\t\t\treturn (\n\t\t\t\t\tselect( coreDataStore )\n\t\t\t\t\t\t// @ts-ignore This exists and is being used as documented.\n\t\t\t\t\t\t.getUsers( {\n\t\t\t\t\t\t\tcontext: 'view',\n\t\t\t\t\t\t\tsearch: queryText,\n\t\t\t\t\t\t\tper_page: -1,\n\t\t\t\t\t\t} ) as ObjectOption[]\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst records = select( coreDataStore ).getEntityRecords(\n\t\t\t\tentityKind,\n\t\t\t\tentityType,\n\t\t\t\t{\n\t\t\t\t\tcontext: 'view',\n\t\t\t\t\tsearch: queryText,\n\t\t\t\t\tper_page: -1,\n\t\t\t\t}\n\t\t\t) as ObjectOption[];\n\n\t\t\t// If core-data returns null and we haven't switched to popup-maker API yet, switch now.\n\t\t\tif (\n\t\t\t\trecords === null &&\n\t\t\t\t! usePopupMakerAPI &&\n\t\t\t\tentityKind === 'postType'\n\t\t\t) {\n\t\t\t\tsetUsePopupMakerAPI( true );\n\t\t\t}\n\n\t\t\treturn records;\n\t\t},\n\t\t[\n\t\t\tqueryText,\n\t\t\tentityKind,\n\t\t\tentityType,\n\t\t\tusePopupMakerAPI,\n\t\t\tapiData.suggestions,\n\t\t]\n\t);\n\n\tconst isSearching = useSelect(\n\t\t( select ) => {\n\t\t\tif ( usePopupMakerAPI ) {\n\t\t\t\treturn false; // We handle popup-maker API loading separately.\n\t\t\t}\n\n\t\t\tif ( entityKind === 'user' ) {\n\t\t\t\treturn (\n\t\t\t\t\tselect( 'core/data' )\n\t\t\t\t\t\t// @ts-ignore This exists and is being used as documented.\n\t\t\t\t\t\t.isResolving( 'core', 'getUsers', [\n\t\t\t\t\t\t\tentityKind,\n\t\t\t\t\t\t\tentityType,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontext: 'view',\n\t\t\t\t\t\t\t\tsearch: queryText,\n\t\t\t\t\t\t\t\tper_page: -1,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t] )\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\tselect( 'core/data' )\n\t\t\t\t\t// @ts-ignore This exists and is being used as documented.\n\t\t\t\t\t.isResolving( 'core', 'getEntityRecords', [\n\t\t\t\t\t\tentityKind,\n\t\t\t\t\t\tentityType,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontext: 'view',\n\t\t\t\t\t\t\tsearch: queryText,\n\t\t\t\t\t\t\tper_page: -1,\n\t\t\t\t\t\t},\n\t\t\t\t\t] )\n\t\t\t);\n\t\t},\n\t\t[\n\t\t\tqueryText,\n\t\t\tentityKind,\n\t\t\tentityType,\n\t\t\tusePopupMakerAPI,\n\t\t\tapiData.suggestions,\n\t\t]\n\t);\n\n\t// Single effect to handle popup-maker API calls for both prefill and suggestions.\n\tuseEffect( () => {\n\t\tif ( ! usePopupMakerAPI ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst fetchApiData = async () => {\n\t\t\ttry {\n\t\t\t\t// Build API URL with optional include and search parameters.\n\t\t\t\tlet apiUrl = `popup-maker/v2/object-search?object_type=post_type&object_key=${ entityType }`;\n\n\t\t\t\t// Always include selected values to guarantee prefill data.\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst includeIds = Array.isArray( value )\n\t\t\t\t\t\t? value\n\t\t\t\t\t\t: [ value ];\n\t\t\t\t\tapiUrl += `&include=${ includeIds.join( ',' ) }`;\n\t\t\t\t}\n\n\t\t\t\t// Add search parameter if provided.\n\t\t\t\tif ( queryText ) {\n\t\t\t\t\tapiUrl += `&s=${ queryText }`;\n\t\t\t\t}\n\n\t\t\t\tconst response = await fetchFromWPApi< {\n\t\t\t\t\titems: Array< { id: number; text: string } >;\n\t\t\t\t\ttotal_count: number;\n\t\t\t\t} >( apiUrl );\n\n\t\t\t\t// Map popup-maker API response to core-data format.\n\t\t\t\tconst mapItems = (\n\t\t\t\t\titems: Array< { id: number; text: string } >\n\t\t\t\t): ObjectOption[] =>\n\t\t\t\t\titems.map( ( item ) => ( {\n\t\t\t\t\t\tid: item.id,\n\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\trendered: item.text,\n\t\t\t\t\t\t},\n\t\t\t\t\t} ) );\n\n\t\t\t\tconst allOptions = mapItems( response.items );\n\n\t\t\t\t// Extract prefill data from the same response if we have selected values.\n\t\t\t\tlet prefillData: ObjectOption[] = [];\n\t\t\t\tif ( value ) {\n\t\t\t\t\tconst includeIds = Array.isArray( value )\n\t\t\t\t\t\t? value\n\t\t\t\t\t\t: [ value ];\n\t\t\t\t\tprefillData = allOptions.filter( ( item ) =>\n\t\t\t\t\t\tincludeIds.includes( item.id )\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tsetApiData( {\n\t\t\t\t\tprefill: prefillData,\n\t\t\t\t\tsuggestions: allOptions,\n\t\t\t\t} );\n\t\t\t} catch ( error ) {\n\t\t\t\t// Silently fail and set empty data - API fallback failed.\n\t\t\t\tsetApiData( { prefill: [], suggestions: [] } );\n\t\t\t}\n\t\t};\n\n\t\tfetchApiData();\n\t}, [ usePopupMakerAPI, value, queryText, entityType ] );\n\n\tconst findSuggestion = ( id: number | string ) => {\n\t\tconst findInList = ( list: ObjectOption[] | null ) => {\n\t\t\tif ( ! list ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\treturn list.find(\n\t\t\t\t( suggestion ) => suggestion.id.toString() === id.toString()\n\t\t\t);\n\t\t};\n\n\t\tconst found = findInList( suggestions );\n\t\tif ( found ) {\n\t\t\treturn found;\n\t\t}\n\n\t\treturn findInList( prefill );\n\t};\n\n\tconst values = ( () => {\n\t\tif ( ! value ) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn typeof value === 'number' || typeof value === 'string'\n\t\t\t? [ value ]\n\t\t\t: value;\n\t} )();\n\n\tconst getTokenValue = ( token: string | { value: string } ) => {\n\t\tif ( typeof token === 'object' ) {\n\t\t\treturn token.value;\n\t\t}\n\n\t\treturn token;\n\t};\n\n\treturn (\n\t\t<div className=\"pum-object-search-field\">\n\t\t\t<SmartTokenControl\n\t\t\t\tlabel={\n\t\t\t\t\tlabel\n\t\t\t\t\t\t? label\n\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t// translators: %s: entity type.\n\t\t\t\t\t\t\t\t__( '%s(s)', 'popup-maker' ),\n\t\t\t\t\t\t\t\tentityType\n\t\t\t\t\t\t\t\t\t.replace( /_/g, ' ' )\n\t\t\t\t\t\t\t\t\t// uppercase first letter.\n\t\t\t\t\t\t\t\t\t.charAt( 0 )\n\t\t\t\t\t\t\t\t\t.toUpperCase() +\n\t\t\t\t\t\t\t\t\tentityType.replace( /_/g, ' ' ).slice( 1 )\n\t\t\t\t\t\t  )\n\t\t\t\t}\n\t\t\t\thideLabelFromVision={ true }\n\t\t\t\tmultiple={ multiple }\n\t\t\t\tplaceholder={ sprintf(\n\t\t\t\t\t// translators: %s: entity type.\n\t\t\t\t\t__( 'Select %s(s)', 'popup-maker' ),\n\t\t\t\t\tentityType.replace( /_/g, ' ' ).toLowerCase()\n\t\t\t\t) }\n\t\t\t\ttokenOnComma={ true }\n\t\t\t\tvalue={ values.map( ( v ) => v.toString() ) }\n\t\t\t\tonInputChange={ updateQueryText }\n\t\t\t\tonChange={ ( newValue ) => {\n\t\t\t\t\tonChange(\n\t\t\t\t\t\tnewValue\n\t\t\t\t\t\t\t.map( ( v ) => parseInt( getTokenValue( v ), 10 ) )\n\t\t\t\t\t\t\t.filter( ( v ) => ! isNaN( v ) )\n\t\t\t\t\t);\n\t\t\t\t} }\n\t\t\t\trenderToken={ ( token ) => {\n\t\t\t\t\tconst suggestion = findSuggestion( getTokenValue( token ) );\n\n\t\t\t\t\tif ( ! suggestion ) {\n\t\t\t\t\t\treturn getTokenValue( token );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn 'postType' === entityKind\n\t\t\t\t\t\t? decodeEntities( suggestion.title?.rendered || '' )\n\t\t\t\t\t\t: suggestion.name || '';\n\t\t\t\t} }\n\t\t\t\trenderSuggestion={ ( item ) => {\n\t\t\t\t\tconst suggestion = findSuggestion( item );\n\n\t\t\t\t\tif ( ! suggestion ) {\n\t\t\t\t\t\treturn item;\n\t\t\t\t\t}\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{ 'postType' === entityKind\n\t\t\t\t\t\t\t\t? decodeEntities(\n\t\t\t\t\t\t\t\t\t\t( suggestion.title?.rendered ??\n\t\t\t\t\t\t\t\t\t\t\tsuggestion.title?.raw ) ||\n\t\t\t\t\t\t\t\t\t\t\t''\n\t\t\t\t\t\t\t\t  )\n\t\t\t\t\t\t\t\t: suggestion.name || '' }\n\t\t\t\t\t\t</>\n\t\t\t\t\t);\n\t\t\t\t} }\n\t\t\t\tsuggestions={\n\t\t\t\t\tsuggestions\n\t\t\t\t\t\t? suggestions.map( ( option ) => {\n\t\t\t\t\t\t\t\treturn option?.id.toString() ?? false;\n\t\t\t\t\t\t  } )\n\t\t\t\t\t\t: []\n\t\t\t\t}\n\t\t\t\tmessages={\n\t\t\t\t\tisSearching\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tnoSuggestions: __(\n\t\t\t\t\t\t\t\t\t'Searching…',\n\t\t\t\t\t\t\t\t\t'popup-maker'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t  }\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default ObjectSelectField;\n","import { RadioControl } from '@wordpress/components';\n\nimport type { RadioFieldProps, WithOnChange } from '../types';\n\nconst RadioField = ( {\n\tvalue,\n\tonChange,\n\t...fieldProps\n}: WithOnChange< RadioFieldProps > ) => {\n\tconst options = fieldProps.options;\n\n\treturn (\n\t\t<RadioControl\n\t\t\t{ ...fieldProps }\n\t\t\tselected={ value?.toString() }\n\t\t\toptions={ options as { value: string; label: string }[] }\n\t\t\tonChange={ onChange }\n\t\t\t/* @ts-ignore - This exists on all controls, but is not fully typed. */\n\t\t\t__nextHasNoMarginBottom={ true }\n\t\t/>\n\t);\n};\n\nexport default RadioField;\n","import { RangeControl } from '@wordpress/components';\nimport type { RangesliderFieldProps, WithOnChange } from '../types';\n\nconst RangeSliderField = ( {\n\tvalue,\n\tonChange,\n\tinitialPosition = 0,\n\t...fieldProps\n}: WithOnChange< RangesliderFieldProps > ) => {\n\tconst { step } = fieldProps;\n\n\treturn (\n\t\t<RangeControl\n\t\t\t// { ...fieldProps }\n\t\t\tvalue={ value ?? initialPosition }\n\t\t\tonChange={ ( newValue = 0 ) => onChange( newValue ) }\n\t\t\twithInputField={ true }\n\t\t\t__nextHasNoMarginBottom={ true }\n\t\t\ttype={ step ? 'stepper' : undefined }\n\t\t/>\n\t);\n};\n\nexport default RangeSliderField;\n","import { SelectControl } from '@wordpress/components';\n\nimport { parseFieldOptions } from './utils';\n\nimport type {\n\tMultiselectFieldProps,\n\tOptGroups as OptGroupsProp,\n\tOptions as OptsProp,\n\tSelectFieldProps,\n\tWithOnChange,\n} from '../types';\n/**\n * Options|OptGroups Type check handler.\n *\n * @param {OptsProp|OptGroupsProp} options Options to check for groups.\n * @return {boolean} True if optgroups found.\n */\nexport const hasOptGroups = (\n\toptions: OptsProp | OptGroupsProp\n): options is OptGroupsProp =>\n\tObject.entries( options ).reduce( ( hasGroups, [ _key, _value ] ) => {\n\t\tif ( true === hasGroups ) {\n\t\t\treturn hasGroups;\n\t\t}\n\n\t\treturn (\n\t\t\ttypeof _key === 'string' &&\n\t\t\t! ( parseInt( _key ) >= 0 ) &&\n\t\t\ttypeof _value === 'object'\n\t\t);\n\t}, false );\n\ntype OptionsProps = { options: OptsProp };\n\nconst Options = ( { options }: OptionsProps ) => (\n\t<>\n\t\t{ parseFieldOptions( options ).map( ( { label, value } ) => (\n\t\t\t<option key={ value } value={ value }>\n\t\t\t\t{ label }\n\t\t\t</option>\n\t\t) ) }\n\t</>\n);\n\nconst OptGroups = ( { optGroups }: { optGroups: OptGroupsProp } ) => (\n\t<>\n\t\t{ Object.entries( optGroups ).map( ( [ label, options ] ) => (\n\t\t\t<optgroup key={ label } label={ label }>\n\t\t\t\t<Options options={ options } />\n\t\t\t</optgroup>\n\t\t) ) }\n\t</>\n);\n\nconst SelectField = ( {\n\tvalue,\n\tonChange,\n\t...fieldProps\n}:\n\t| WithOnChange< SelectFieldProps >\n\t| WithOnChange< MultiselectFieldProps > ) => {\n\tconst { multiple = false } = fieldProps;\n\n\tconst options = fieldProps.options ?? {};\n\n\treturn (\n\t\t// @ts-ignore\n\t\t<SelectControl\n\t\t\t{ ...fieldProps }\n\t\t\tmultiple={ multiple }\n\t\t\tvalue={\n\t\t\t\t// Correct older string typ values (here for sanity).\n\t\t\t\tmultiple && typeof value === 'string'\n\t\t\t\t\t? value.split( ',' )\n\t\t\t\t\t: value\n\t\t\t}\n\t\t\tonChange={ onChange }\n\t\t\t__next40pxDefaultSize\n\t\t\t__nextHasNoMarginBottom\n\t\t>\n\t\t\t{ hasOptGroups( options ) ? (\n\t\t\t\t<OptGroups optGroups={ options } />\n\t\t\t) : (\n\t\t\t\t<Options options={ options } />\n\t\t\t) }\n\t\t</SelectControl>\n\t);\n};\n\nexport default SelectField;\n","import { TextControl } from '@wordpress/components';\n\nimport type { HiddenFieldProps, TextFieldProps, WithOnChange } from '../types';\n\nconst TextField = ( {\n\ttype,\n\tvalue,\n\tonChange,\n\t...fieldProps\n}: WithOnChange< TextFieldProps > | WithOnChange< HiddenFieldProps > ) => {\n\treturn (\n\t\t// @ts-ignore\n\t\t<TextControl\n\t\t\t{ ...fieldProps }\n\t\t\ttype={ type !== 'hidden' ? type : undefined }\n\t\t\tvalue={ value ?? '' }\n\t\t\tonChange={ onChange }\n\t\t\t/* @ts-ignore - This exists on all controls, but is not fully typed. */\n\t\t\t__next40pxDefaultSize\n\t\t\t__nextHasNoMarginBottom\n\t\t/>\n\t);\n};\n\nexport default TextField;\n","import { TextareaControl } from '@wordpress/components';\n\nimport type { TextareaFieldProps, WithOnChange } from '../types';\n\nconst TextAreaField = ( {\n\tvalue,\n\tonChange,\n\trows = 5,\n\t...fieldProps\n}: WithOnChange< TextareaFieldProps > ) => {\n\treturn (\n\t\t<TextareaControl\n\t\t\t{ ...fieldProps }\n\t\t\tvalue={ value ?? '' }\n\t\t\tonChange={ onChange }\n\t\t\trows={ rows }\n\t\t\t__nextHasNoMarginBottom\n\t\t/>\n\t);\n};\n\nexport default TextAreaField;\n","import { __ } from '@popup-maker/i18n';\nimport { useState } from '@wordpress/element';\nimport { SmartTokenControl } from '@popup-maker/components';\n\nimport type { TokenSelectFieldProps, WithOnChange } from '../types';\n\nconst TokenSelectField = ( {\n\tlabel,\n\tvalue,\n\tonChange,\n\tmultiple = false,\n\tplaceholder = __( 'Search', 'popup-maker' ),\n\toptions = {},\n}: WithOnChange< TokenSelectFieldProps > ) => {\n\tconst [ inputText, setInputText ] = useState( '' );\n\n\tconst values = ( () => {\n\t\tif ( ! value ) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn typeof value === 'number' || typeof value === 'string'\n\t\t\t? [ value ]\n\t\t\t: value;\n\t} )();\n\n\tconst suggestions = Object.keys( options ).filter( ( opt ) => {\n\t\tif ( ! inputText ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( typeof options[ opt ] === 'string' ) {\n\t\t\treturn options[ opt ]\n\t\t\t\t.toLowerCase()\n\t\t\t\t.includes( inputText.toLowerCase() );\n\t\t}\n\n\t\treturn false;\n\t} );\n\n\tconst renderOption = ( optionValue: string | { value: string } ) => {\n\t\tconst val =\n\t\t\ttypeof optionValue === 'object' ? optionValue.value : optionValue;\n\n\t\tconst optionLabel = options[ val ] ?? null;\n\n\t\tif ( ! optionLabel ) {\n\t\t\treturn val;\n\t\t}\n\t\treturn optionLabel;\n\t};\n\n\treturn (\n\t\t<div className=\"pum-token-select-field\">\n\t\t\t<SmartTokenControl< string >\n\t\t\t\tlabel={ label }\n\t\t\t\thideLabelFromVision={ true }\n\t\t\t\tmultiple={ multiple }\n\t\t\t\tplaceholder={ placeholder }\n\t\t\t\tvalue={ values.map( ( v ) => v.toString() ) }\n\t\t\t\tonInputChange={ setInputText }\n\t\t\t\tonChange={ ( newValue ) => onChange( newValue ) }\n\t\t\t\trenderToken={ renderOption }\n\t\t\t\trenderSuggestion={ renderOption }\n\t\t\t\tsuggestions={ suggestions }\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TokenSelectField;\n","import classNames from 'classnames';\n\nimport { pick } from '@popup-maker/utils';\n\nimport { decodeEntities } from '@wordpress/html-entities';\n\nimport type {\n\tFieldBaseProps,\n\tFieldProps,\n\tIntermediaryFieldProps,\n\tPartialFieldProps,\n} from '../types/fields';\nimport type { OldFieldBase, OldFieldProps } from '../types/old-field';\nimport type { AcceptibleOptions, Option, Options } from '../types';\n\n/**\n * Default args for old field definitions.\n */\nexport const oldFieldDefaults = {\n\tid: '',\n\tid_prefix: '',\n\tname: '',\n\tlabel: '',\n\tplaceholder: '',\n\tdesc: null,\n\tdynamic_desc: null,\n\tcontent: '',\n\tsize: 'regular',\n\tclasses: [],\n\tdependencies: '',\n\tvalue: null,\n\tselect2: false,\n\tallow_html: false,\n\tmultiple: false,\n\tas_array: false,\n\toptions: [],\n\tobject_type: null,\n\tobject_key: null,\n\tpost_type: null,\n\ttaxonomy: null,\n\tstd: null,\n\tmin: 0,\n\tmax: 50,\n\tstep: 1,\n\tunit: 'px',\n\tunits: {},\n\trequired: false,\n\tdesc_position: 'bottom',\n\tmeta: {},\n};\n\n/**\n * Parse old field args into new field props.\n *\n * @param {OldFieldProps} args Old field args.\n * @return {FieldProps} Field props.\n */\nexport const parseOldArgsToProps = (\n\targs: OldFieldProps\n): IntermediaryFieldProps => {\n\tconst fieldProps = {\n\t\t// Handle cases where old field type doesn't have exact replacement.\n\t\ttype: 'select2' !== args.type ? args.type : 'select',\n\t\t// Migrate default value.\n\t\tdefault: args.std,\n\t\tid: args.id ?? args.name ?? '',\n\t\t// Basic remappings.\n\t\t...pick(\n\t\t\targs,\n\t\t\t'id',\n\t\t\t'name',\n\t\t\t'label',\n\t\t\t'value',\n\t\t\t'required',\n\t\t\t'dependencies'\n\t\t),\n\t} as PartialFieldProps;\n\n\t// Migrate various CSS classnames.\n\tconst classes: string[] = [];\n\n\tif ( typeof args.classes !== 'undefined' ) {\n\t\tif ( 'string' === typeof args.classes ) {\n\t\t\tclasses.push( ...args.classes.split( ' ' ) );\n\t\t} else if ( Array.isArray( args.classes ) ) {\n\t\t\tclasses.push( ...args.classes );\n\t\t}\n\t}\n\n\tif ( typeof args.class !== 'undefined' ) {\n\t\tclasses.push( args.class );\n\t}\n\n\t// Append all classes to fieldProps.\n\tfieldProps.className = classNames( classes );\n\n\t// Dynamic Descriptions\n\tif ( args.dynamic_desc ) {\n\t\tfieldProps.help = <>{ args.dynamic_desc }</>;\n\t} else if ( args.desc ) {\n\t\tfieldProps.help = args.desc;\n\t}\n\n\t//* Dependencies\n\n\t// Prop modifications & remappings go here.\n\tswitch ( fieldProps.type ) {\n\t\tcase 'checkbox':\n\t\t\treturn fieldProps;\n\n\t\tcase 'color':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tdefault: args.value ?? '',\n\t\t\t};\n\n\t\tcase 'hidden':\n\t\t\treturn fieldProps;\n\n\t\tcase 'html':\n\t\t\treturn fieldProps;\n\n\t\tcase 'license_key':\n\t\t\treturn fieldProps;\n\n\t\tcase 'customselect':\n\t\t\t// customselect is a new field type, return as-is\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tentityType: fieldProps.entityType ?? 'custom',\n\t\t\t};\n\n\t\tcase 'text':\n\t\tcase 'email':\n\t\tcase 'tel':\n\t\tcase 'password':\n\t\tdefault:\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\t...( fieldProps.type === args.type && {\n\t\t\t\t\tsize: args?.size,\n\t\t\t\t\tplaceholder: args?.placeholder,\n\t\t\t\t} ),\n\t\t\t};\n\n\t\tcase 'radio':\n\t\tcase 'multicheck':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\toptions: [],\n\t\t\t\t...( fieldProps.type === args.type && {\n\t\t\t\t\toptions: args.options ?? [],\n\t\t\t\t} ),\n\t\t\t};\n\n\t\tcase 'select':\n\t\tcase 'multiselect':\n\t\t\tif ( fieldProps.type === args.type || 'select2' === args.type ) {\n\t\t\t\t// Handle options migration for optgroups.\n\t\t\t\tfieldProps.options = parseFieldOptions( args.options ?? [] );\n\t\t\t\tfieldProps.searchable = 'select2' === args.type;\n\t\t\t\tfieldProps.multiple =\n\t\t\t\t\tfieldProps.type === 'multiselect' || args.multiple;\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\toptions: [],\n\t\t\t\t...fieldProps,\n\t\t\t};\n\n\t\tcase 'tokenselect':\n\t\t\treturn {\n\t\t\t\tvalue: [],\n\t\t\t\toptions: {},\n\t\t\t\t...fieldProps,\n\t\t\t};\n\n\t\tcase 'number':\n\t\tcase 'rangeslider':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\t...( fieldProps.type === args.type && {\n\t\t\t\t\tsize: args?.size,\n\t\t\t\t\tplaceholder: args?.placeholder,\n\t\t\t\t\tmin: args?.min,\n\t\t\t\t\tmax: args?.max,\n\t\t\t\t\tstep: args?.step,\n\t\t\t\t} ),\n\t\t\t};\n\n\t\tcase 'measure':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tunits: {},\n\t\t\t\t...( fieldProps.type === args.type && {\n\t\t\t\t\t// number inherited\n\t\t\t\t\tsize: args?.size,\n\t\t\t\t\tplaceholder: args?.placeholder,\n\t\t\t\t\tmin: args?.min,\n\t\t\t\t\tmax: args?.max,\n\t\t\t\t\tstep: args?.step,\n\t\t\t\t\t// measure specific\n\t\t\t\t\tunits: args?.units ?? {},\n\t\t\t\t} ),\n\t\t\t};\n\n\t\tcase 'objectselect':\n\t\tcase 'postselect':\n\t\tcase 'taxonomyselect':\n\t\tcase 'userselect':\n\t\t\tfieldProps.type = 'objectselect';\n\t\t\t// @ts-ignore\n\t\t\tfieldProps.multiple = args?.multiple ?? false;\n\t\t\t// @ts-ignore\n\t\t\tfieldProps.placeholder = args?.placeholder ?? '';\n\n\t\t\tif ( args.type === 'postselect' ) {\n\t\t\t\treturn {\n\t\t\t\t\t...fieldProps,\n\t\t\t\t\tentityKind: 'postType',\n\t\t\t\t\tentityType: args?.post_type ?? 'post',\n\t\t\t\t};\n\t\t\t} else if ( args.type === 'taxonomyselect' ) {\n\t\t\t\treturn {\n\t\t\t\t\t...fieldProps,\n\t\t\t\t\tentityKind: 'taxonomy',\n\t\t\t\t\tentityType: args?.taxonomy ?? 'category',\n\t\t\t\t};\n\t\t\t} else if ( args.type === 'userselect' ) {\n\t\t\t\treturn {\n\t\t\t\t\t...fieldProps,\n\t\t\t\t\tentityKind: 'user',\n\t\t\t\t\tentityType: 'user',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tentityKind: 'postType',\n\t\t\t\tentityType: 'post',\n\t\t\t};\n\n\t\tcase 'textarea':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\t...( fieldProps.type === args.type && {\n\t\t\t\t\tallowHtml: args?.allow_html,\n\t\t\t\t} ),\n\t\t\t};\n\t}\n};\n\n/**\n * Parse field options.\n *\n * @param {AcceptibleOptions|string} options Options to parse.\n * @return {Options} Parsed options.\n */\nexport const parseFieldOptions = (\n\toptions: AcceptibleOptions | string\n): Options => {\n\tif ( typeof options === 'string' ) {\n\t\t/* ex. 'Option 1, Option 2' */\n\t\treturn options\n\t\t\t.split( ',' )\n\t\t\t.map( ( option ) => ( { label: option, value: option } ) );\n\t} else if ( ! Array.isArray( options ) && typeof options === 'object' ) {\n\t\t/* ex. { option1: 'Option 1', option2: 'Option 2' } */\n\t\treturn Object.entries( options ).map( ( [ value, label ] ) => ( {\n\t\t\tlabel,\n\t\t\tvalue,\n\t\t} ) );\n\t}\n\n\treturn options.map( ( option: Option | string ) =>\n\t\ttypeof option === 'string'\n\t\t\t? /* ex. [ 'Option 1', 'Option 2' ] */\n\t\t\t  {\n\t\t\t\t\tlabel: option,\n\t\t\t\t\tvalue: option,\n\t\t\t  }\n\t\t\t: /* ex. [ { value: 'option1', label: 'Option 1' }, { value: 'option2', label: 'Option 2' } ] */\n\t\t\t  option\n\t);\n};\n\n/**\n * Parse value based on field type & props.\n *\n * @param {FieldProps['value']} value      Value to parse.\n * @param {FieldProps}          fieldProps Field props to use for processing value.\n * @return {FieldProps['value']} Parsed field value.\n */\nexport const parseFieldValue = < F extends FieldProps >(\n\tvalue: any,\n\tfieldProps: F\n): F[ 'value' ] => {\n\tlet parsedValue: any = value;\n\n\tconst { type, default: std } = fieldProps;\n\n\tif ( std !== undefined && type !== 'checkbox' && parsedValue === null ) {\n\t\tparsedValue = std;\n\t}\n\n\tswitch ( fieldProps.type ) {\n\t\tcase 'checkbox':\n\t\t\tswitch ( typeof parsedValue ) {\n\t\t\t\tcase 'object':\n\t\t\t\t\tif ( Array.isArray( parsedValue ) ) {\n\t\t\t\t\t\tparsedValue =\n\t\t\t\t\t\t\tparsedValue.length === 1 &&\n\t\t\t\t\t\t\tparsedValue[ 0 ].toString() === '1';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'string':\n\t\t\t\t\tif (\n\t\t\t\t\t\t[ 'true', 'yes', '1', 1, true ].indexOf(\n\t\t\t\t\t\t\tparsedValue\n\t\t\t\t\t\t) >= 0 ||\n\t\t\t\t\t\tparseInt( parsedValue, 10 ) > 0\n\t\t\t\t\t) {\n\t\t\t\t\t\tparsedValue = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparsedValue = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'number':\n\t\t\t\t\tif ( parsedValue > 0 ) {\n\t\t\t\t\t\tparsedValue = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 'number':\n\t\t\tif ( typeof parsedValue === 'string' ) {\n\t\t\t\tparsedValue =\n\t\t\t\t\tparsedValue.indexOf( '.' ) > 0\n\t\t\t\t\t\t? parseFloat( parsedValue )\n\t\t\t\t\t\t: parseInt( parsedValue );\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 'multicheck':\n\t\t\tif (\n\t\t\t\ttypeof parsedValue === 'string' &&\n\t\t\t\tparsedValue.indexOf( ',' )\n\t\t\t) {\n\t\t\t\tparsedValue = parsedValue.split( ',' );\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 'license_key':\n\t\t\tparsedValue = {\n\t\t\t\tkey: '',\n\t\t\t\tlicense: {},\n\t\t\t\tmessages: [],\n\t\t\t\tstatus: 'empty',\n\t\t\t\texpires: false,\n\t\t\t\tclasses: false,\n\t\t\t\t...parsedValue,\n\t\t\t};\n\n\t\t\tbreak;\n\n\t\tcase 'textarea':\n\t\t\tif ( fieldProps.allowHtml ) {\n\t\t\t\t// Decoding HTML.\n\t\t\t\tparsedValue = decodeEntities( parsedValue );\n\t\t\t}\n\t}\n\n\treturn parsedValue;\n};\n\nexport function isOldFieldType< F extends FieldBaseProps >( props: F ): false;\nexport function isOldFieldType< F extends OldFieldBase >( props: F ): true;\nexport function isOldFieldType( props: FieldProps ): false;\nexport function isOldFieldType( props: OldFieldProps ): true;\n\nexport function isOldFieldType( props: any ): boolean {\n\t// Cast type as any to prevent errors due to union on props above.\n\t// FieldProps doesn't contain these keys, thus its an OldField.\n\tconst cast = { ...props };\n\n\tif (\n\t\tcast &&\n\t\ttypeof cast === 'object' &&\n\t\t// @ts-ignore It exists.\n\t\t( typeof cast?.std !== 'undefined' ||\n\t\t\ttypeof cast?.user_roles !== 'undefined' ||\n\t\t\t( typeof cast?.type !== 'undefined' &&\n\t\t\t\tcast?.type === 'userselect' ) ||\n\t\t\ttypeof cast?.taxonomy !== 'undefined' ||\n\t\t\ttypeof cast?.post_type !== 'undefined' )\n\t) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\n/**\n * Parse field props, handling conversion to current components.\n *\n * @param {FieldProps} props Field props to be parsed.\n * @return {FieldProps} Parsed field props.\n */\nexport const parseFieldProps = (\n\tprops: OldFieldProps | FieldProps\n): FieldProps => {\n\tlet fieldProps: IntermediaryFieldProps;\n\n\t/**\n\t * 1. If old field, migrate first.\n\t * 2. Parse all props to ensure completeness.\n\t */\n\tif ( isOldFieldType( props ) ) {\n\t\tfieldProps = parseOldArgsToProps( props as OldFieldProps );\n\t} else {\n\t\tfieldProps = props as FieldProps;\n\t}\n\n\t// Ensure prop completeness.\n\tswitch ( fieldProps.type ) {\n\t\tcase 'html':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tcontent: fieldProps.content ?? '',\n\t\t\t};\n\n\t\tcase 'checkbox':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\t\tcase 'color':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\t\tcase 'customselect':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tentityType: fieldProps.entityType ?? 'custom',\n\t\t\t};\n\t\tcase 'multicheck':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\toptions: fieldProps.options ?? [],\n\t\t\t};\n\t\tcase 'select':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\toptions: fieldProps.options ?? [],\n\t\t\t};\n\t\tcase 'multiselect':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\toptions: fieldProps.options ?? [],\n\t\t\t\tmultiple: true,\n\t\t\t};\n\t\tcase 'objectselect':\n\t\tcase 'postselect':\n\t\tcase 'taxonomyselect':\n\t\tcase 'userselect':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tentityKind: fieldProps.entityKind ?? '',\n\t\t\t};\n\n\t\tcase 'tokenselect':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t\tvalue: fieldProps.value ?? [],\n\t\t\t\toptions: fieldProps.options ?? [],\n\t\t\t};\n\n\t\tcase 'radio':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\t\tcase 'rangeslider':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\t\tcase 'number':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\t\tdefault:\n\t\tcase 'email':\n\t\tcase 'tel':\n\t\tcase 'hidden':\n\t\tcase 'text':\n\t\tcase 'password':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\n\t\tcase 'license_key':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\n\t\tcase 'measure':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\n\t\tcase 'textarea':\n\t\t\treturn {\n\t\t\t\t...fieldProps,\n\t\t\t};\n\t}\n};\n","import type { OptGroups, Option, Options, StringObject } from './general';\n\nimport type { AtLeast } from './generics';\n\nexport type OnChange< T extends any > = {\n\tonChange: ( value: NonNullable< T > ) => void;\n};\n\nexport type WithOnChange< F extends FieldBaseProps > = F &\n\tOnChange< NonNullable< F[ 'value' ] > >;\n\nexport type PropsWithOnChange< F > = F extends FieldBaseProps\n\t? WithOnChange< F >\n\t: never;\n\nexport interface FieldBaseProps {\n\t// v: 2;\n\tid: string;\n\ttype: string;\n\tvalue?: any;\n\tname?: string;\n\tlabel?: string;\n\tclassName?: string;\n\tdefault?: any;\n\trequired?: boolean;\n\thelp?: string | React.ReactElement;\n\tpriority?: number;\n\tdependencies?: { [ key: string ]: string | boolean | number };\n}\n\nexport interface HtmlFieldProps extends FieldBaseProps {\n\ttype: 'html';\n\tcontent: string;\n}\n\nexport interface InputFieldProps< V extends string | number = string | number >\n\textends FieldBaseProps {\n\tvalue?: V;\n\tplaceholder?: string;\n\tsize?: string;\n}\n\nexport interface SelectFieldBaseProps extends FieldBaseProps {\n\toptions: Options | OptGroups;\n\tmultiple?: boolean;\n\tsearchable?: boolean;\n}\n\nexport interface CheckboxFieldProps extends FieldBaseProps {\n\ttype: 'checkbox';\n\tvalue?: boolean;\n\theading?: string;\n}\n\nexport interface HexColorFieldProps extends FieldBaseProps {\n\ttype: 'color';\n\tvalue?: string;\n\tdisableAlpha?: boolean;\n}\n\nexport interface HiddenFieldProps extends InputFieldProps {\n\ttype: 'hidden';\n}\n\nexport interface LicenseKeyFieldProps extends InputFieldProps {\n\ttype: 'license_key';\n\t// ! This will be refactored once we implement these fields.\n\tlicense?: { [ key: string ]: any };\n\tmessages?: string[];\n\tstatus?: string;\n\texpires?: string | number;\n}\n\nexport interface MeasureFieldProps\n\textends Omit< NumberFieldProps, 'type' | 'value' > {\n\ttype: 'measure';\n\tvalue?: string;\n\tunits: StringObject;\n}\n\nexport interface MulticheckFieldProps extends FieldBaseProps {\n\ttype: 'multicheck';\n\toptions: Options;\n\tvalue?: ( string | number )[];\n}\n\nexport interface MultiselectFieldProps extends SelectFieldBaseProps {\n\ttype: 'multiselect';\n\tmultiple?: true;\n\tvalue?: string[];\n}\n\nexport interface NumberFieldProps extends InputFieldProps< number > {\n\ttype: 'number';\n\tmin?: number;\n\tmax?: number;\n\tstep?: number;\n}\n\nexport interface ObjectSelectFieldProps extends FieldBaseProps {\n\ttype: 'objectselect' | 'postselect' | 'taxonomyselect' | 'userselect';\n\tplaceholder?: string;\n\tvalue?: number | number[];\n\tmultiple?: boolean;\n\tentityKind: string;\n\tentityType?: string;\n}\n\nexport interface PostSelectFieldProps\n\textends Omit< ObjectSelectFieldProps, 'type' > {\n\ttype: 'postselect';\n\tentityKind: 'postType';\n}\n\nexport interface TaxonomySelectFieldProps\n\textends Omit< ObjectSelectFieldProps, 'type' > {\n\ttype: 'taxonomyselect';\n\tentityKind: 'taxonomy';\n}\n\nexport interface UserSelectFieldProps\n\textends Omit< ObjectSelectFieldProps, 'type' > {\n\ttype: 'userselect';\n\tentityKind: 'user';\n}\n\nexport interface CustomSelectFieldProps extends FieldBaseProps {\n\ttype: 'customselect';\n\tplaceholder?: string;\n\tvalue?: string | string[];\n\tmultiple?: boolean;\n\tentityType: string;\n\tapiEndpoint?: string;\n}\n\nexport interface RadioFieldProps extends FieldBaseProps {\n\ttype: 'radio';\n\toptions: Option[];\n\tvalue?: string | number;\n}\n\nexport interface RangesliderFieldProps\n\textends Omit< NumberFieldProps, 'type' > {\n\ttype: 'rangeslider';\n\tallowReset?: boolean;\n\t// ! This needs to be remapped from std or default value.\n\tinitialPosition?: number;\n}\n\nexport interface SelectFieldProps extends SelectFieldBaseProps {\n\ttype: 'select';\n\tmultiple?: boolean;\n\tvalue?: string;\n}\n\nexport interface TextFieldProps extends InputFieldProps< string > {\n\ttype: 'text' | 'email' | 'tel' | 'password' | 'url';\n}\n\nexport interface DateFieldProps extends InputFieldProps< string > {\n\ttype: 'date';\n}\n\nexport interface TextareaFieldProps extends InputFieldProps< string > {\n\ttype: 'textarea';\n\trows?: number;\n\t// ! Review if this is useful?\n\tallowHtml?: boolean;\n}\n\nexport interface TokenSelectFieldProps extends FieldBaseProps {\n\ttype: 'tokenselect';\n\tvalue: string[];\n\tplaceholder?: string;\n\toptions: {\n\t\t[ key: string ]: string;\n\t};\n\tmultiple?: boolean;\n}\n\n/**\n * Discrimated union of all valid known FieldProps definitions.\n */\nexport type FieldProps =\n\t| CheckboxFieldProps\n\t| CustomSelectFieldProps\n\t| DateFieldProps\n\t| HexColorFieldProps\n\t| HiddenFieldProps\n\t| HtmlFieldProps\n\t| LicenseKeyFieldProps\n\t| MeasureFieldProps\n\t| MulticheckFieldProps\n\t| MultiselectFieldProps\n\t| NumberFieldProps\n\t| ObjectSelectFieldProps\n\t| PostSelectFieldProps\n\t| TaxonomySelectFieldProps\n\t| UserSelectFieldProps\n\t| RadioFieldProps\n\t| RangesliderFieldProps\n\t| SelectFieldProps\n\t| TextFieldProps\n\t| TextareaFieldProps\n\t| TokenSelectFieldProps;\n\n/**\n * Union of FieldProps with typed onChange prop.\n */\nexport type FieldPropsWithOnChange = PropsWithOnChange< FieldProps >;\n\n/**\n * Single point list of minimum shared fields for a valid field declaration.\n */\nexport type MinFieldProps = 'id' | 'type';\n\n/**\n * Union of FieldProps converted to partials that still require `type`.\n */\nexport type PartialFieldProps = AtLeast< FieldProps, MinFieldProps >;\n\n/**\n * Intermediary field props includes all required fields, used for conversions.\n */\nexport type IntermediaryFieldProps =\n\t| AtLeast< CheckboxFieldProps, MinFieldProps >\n\t| AtLeast< CustomSelectFieldProps, MinFieldProps >\n\t| AtLeast< DateFieldProps, MinFieldProps >\n\t| AtLeast< HexColorFieldProps, MinFieldProps >\n\t| AtLeast< HiddenFieldProps, MinFieldProps >\n\t| AtLeast< HtmlFieldProps, MinFieldProps >\n\t| AtLeast< LicenseKeyFieldProps, MinFieldProps >\n\t| AtLeast< MeasureFieldProps, MinFieldProps | 'units' >\n\t| AtLeast< MulticheckFieldProps, MinFieldProps >\n\t| AtLeast< MultiselectFieldProps, MinFieldProps >\n\t| AtLeast< NumberFieldProps, MinFieldProps >\n\t| AtLeast<\n\t\t\tObjectSelectFieldProps,\n\t\t\tMinFieldProps | 'entityKind' | 'entityType'\n\t  >\n\t| AtLeast< PostSelectFieldProps, MinFieldProps | 'entityType' >\n\t| AtLeast< TaxonomySelectFieldProps, MinFieldProps | 'entityType' >\n\t| AtLeast< UserSelectFieldProps, MinFieldProps | 'entityType' >\n\t| AtLeast< RadioFieldProps, MinFieldProps | 'options' >\n\t| AtLeast< RangesliderFieldProps, MinFieldProps >\n\t| AtLeast< SelectFieldProps, MinFieldProps | 'options' >\n\t| AtLeast< TextFieldProps, MinFieldProps >\n\t| AtLeast< TextareaFieldProps, MinFieldProps >\n\t| AtLeast< TokenSelectFieldProps, MinFieldProps | 'options' >;\n\nexport type FieldPropsMap = {\n\tcheckbox: CheckboxFieldProps;\n\tcolor: HexColorFieldProps;\n\tcustomselect: CustomSelectFieldProps;\n\tdate: DateFieldProps;\n\temail: TextFieldProps;\n\thidden: HiddenFieldProps;\n\thtml: HtmlFieldProps;\n\tlicense_key: LicenseKeyFieldProps;\n\tmeasure: MeasureFieldProps;\n\tmulticheck: MulticheckFieldProps;\n\tmultiselect: MultiselectFieldProps;\n\tnumber: NumberFieldProps;\n\tobjectselect: ObjectSelectFieldProps;\n\tpassword: TextFieldProps;\n\tphone: TextFieldProps;\n\tpostselect: PostSelectFieldProps;\n\tradio: RadioFieldProps;\n\trangeslider: RangesliderFieldProps;\n\tselect: SelectFieldProps;\n\ttaxonomyselect: TaxonomySelectFieldProps;\n\ttext: TextFieldProps;\n\ttextarea: TextareaFieldProps;\n\ttokenselect: TokenSelectFieldProps;\n\tuserselect: UserSelectFieldProps;\n};\n","export type OptionLabel = string;\nexport type OptionValue = string | number;\n\nexport type StringArray = string[];\nexport type NumberArray = number[];\nexport type StringNumberArray = StringArray | NumberArray;\nexport type StringObject = { [ key: string ]: string };\nexport type BooleanObject = { [ key: string ]: boolean };\n\nexport interface Option {\n\tvalue: OptionValue;\n\tlabel: OptionLabel;\n}\n\nexport type AcceptibleOptions =\n\t| string\n\t| Option[]\n\t| {\n\t\t\t[ key: OptionValue ]: OptionLabel;\n\t  }\n\t| OptionLabel[];\n\nexport type Options = Option[];\n\nexport type OptGroups = {\n\t[ key: string ]: Options;\n};\n\n/**\n * General ControlledInput prop type. Accepts value type as argument.\n */\nexport interface ControlledInputProps< T > {\n\t/** Controlled value */\n\tvalue: T;\n\t/** Callback used when the value changes */\n\tonChange: ( value: T ) => void;\n\t[ key: string ]: any;\n}\n","/**\n * Distributed omit of specific properties.\n */\nexport type DistributiveOmit< T, K extends keyof any > = T extends any\n\t? Omit< T, K >\n\t: never;\n\n/**\n * Create a partial that still requires at least keys K...\n */\nexport type AtLeast< T, K extends keyof T > = Partial< T > & Pick< T, K >;\n\n/**\n * Returns type with all props NonNullable.\n */\nexport type RequiredNotNull< T > = {\n\t[ P in keyof T ]: NonNullable< T[ P ] >;\n};\n\n/**\n * Distributed version of RequiredNotNull.\n * Ensure keys are non nullable (undefined | null).\n */\nexport type Ensure< T, K extends keyof T > = T &\n\tRequiredNotNull< Pick< T, K > >;\n","export * from './fields';\nexport * from './generics';\nexport * from './general';\nexport * from './old-field';\n","import type {\n\tOptGroups,\n\tOption,\n\tOptionLabel,\n\tOptions,\n\tOptionValue,\n\tStringObject,\n} from './general';\nimport type { AtLeast } from './generics';\n\nexport interface OldFieldArgs {\n\ttype: OldField[ 'type' ];\n\tallow_html?: boolean;\n\tas_array?: boolean;\n\tcontent?: string;\n\tclass?: string;\n\tclasses?: string | string[];\n\tdependencies?: { [ key: string ]: string | boolean | number };\n\tdesc?: string;\n\tdesc_position?: string;\n\tdynamic_desc?: string;\n\tid?: string;\n\tid_prefix?: string;\n\tlabel?: string;\n\tmax?: number;\n\tmin?: number;\n\tmultiple?: boolean;\n\tname?: string;\n\tpost_type?: string;\n\ttaxonomy?: string;\n\toptions?: Options | OptGroups;\n\tplaceholder?: string;\n\trequired?: boolean;\n\tselect2?: boolean;\n\tsize?: string;\n\tstd?: any;\n\tstep?: number;\n\tunit?: string;\n\tunits?: {};\n\tmeta?: {};\n}\n\nexport interface OldFieldBase {\n\t// Possible delineated union from newer field models.\n\t// v: 1;\n\ttype: string;\n\tvalue?: any;\n\tid?: string;\n\tid_prefix?: string;\n\t//? Should this be optional?\n\tname?: string;\n\tlabel?: string;\n\tstd?: any;\n\tdesc?: string;\n\tdynamic_desc?: string;\n\tdesc_position?: string;\n\tclass?: string;\n\tclasses?: string | string[];\n\trequired?: boolean;\n\tmeta?: {\n\t\t[ key: string ]: any;\n\t};\n\tdependencies?: { [ key: string ]: string | boolean | number };\n}\n\nexport interface OldHtmlField extends OldFieldBase {\n\ttype: 'html';\n\tcontent?: string;\n}\n\nexport interface OldHiddenField extends OldFieldBase {\n\ttype: 'hidden';\n}\n\nexport interface OldTextField extends OldFieldBase {\n\ttype: 'text' | 'email' | 'phone' | 'password';\n\tsize?: string;\n\tplaceholder?: string;\n}\n\nexport interface OldNumberField extends Omit< OldTextField, 'type' > {\n\ttype: 'number';\n\tmin?: number;\n\tmax?: number;\n\tstep?: number;\n}\n\nexport interface OldRangesliderField extends Omit< OldNumberField, 'type' > {\n\ttype: 'rangeslider';\n}\n\nexport interface OldMeasureField extends Omit< OldNumberField, 'type' > {\n\ttype: 'measure';\n\tunit?: string;\n\tunits?: StringObject;\n}\n\nexport interface OldLicenseField extends Omit< OldTextField, 'type' > {\n\ttype: 'license_key';\n}\n\nexport interface OldColorField extends Omit< OldTextField, 'type' > {\n\ttype: 'color';\n}\n\nexport interface OldRadioField extends OldFieldBase {\n\ttype: 'radio';\n\toptions: Option[];\n}\n\nexport interface OldMulticheckField extends Omit< OldRadioField, 'type' > {\n\ttype: 'multicheck';\n}\n\nexport type OldSelectOptions =\n\t| Option[]\n\t| {\n\t\t\t[ key: OptionValue ]: OptionLabel;\n\t  }\n\t| OptionLabel[];\n\nexport interface OldSelectField extends OldFieldBase {\n\ttype: 'select';\n\tselect2?: boolean;\n\tmultiple?: boolean;\n\tas_array?: boolean;\n\toptions: OldSelectOptions;\n}\n\nexport interface OldSelect2Field extends Omit< OldSelectField, 'type' > {\n\ttype: 'select2';\n\tselect2: true;\n}\n\nexport interface OldObjectSelectField extends Omit< OldSelect2Field, 'type' > {\n\ttype: 'objectselect' | 'postselect' | 'taxonomyselect' | 'userselect';\n\tobject_type?: 'post' | 'taxonomy' | 'user';\n\tpost_type?: string;\n\ttaxonomy?: string;\n\tuser_roles?: string[];\n}\n\nexport interface OldPostSelectField extends OldObjectSelectField {\n\ttype: 'postselect';\n\tobject_type?: 'post';\n\tpost_type: string;\n}\n\nexport interface OldTaxnomySelectField extends OldObjectSelectField {\n\ttype: 'taxonomyselect';\n\tobject_type?: 'taxonomy';\n\ttaxonomy: string;\n}\n\nexport interface OldUserSelectField extends OldObjectSelectField {\n\ttype: 'userselect';\n\tobject_type?: 'user';\n\tuser_roles?: string[];\n}\n\nexport interface OldCheckboxField extends OldFieldBase {\n\ttype: 'checkbox';\n}\n\nexport interface OldTextareaField extends OldFieldBase {\n\ttype: 'textarea';\n\tallow_html?: boolean;\n}\n\nexport type OldFieldProps =\n\t| OldHtmlField\n\t| OldHiddenField\n\t| OldTextField\n\t| OldNumberField\n\t| OldRangesliderField\n\t| OldMeasureField\n\t| OldLicenseField\n\t| OldColorField\n\t| OldRadioField\n\t| OldMulticheckField\n\t| OldSelectField\n\t| OldSelect2Field\n\t| OldObjectSelectField\n\t| OldPostSelectField\n\t| OldTaxnomySelectField\n\t| OldCheckboxField\n\t| OldTextareaField\n\t| OldUserSelectField;\n\n/**\n * Union of FieldProps converted to partials that still require `type`.\n */\nexport type PartialOldFieldProps = AtLeast< OldFieldProps, 'type' >;\n\nexport type OldFieldMap = {\n\thtml: OldHtmlField;\n\tcheckbox: OldCheckboxField;\n\tcolor: OldColorField;\n\temail: OldTextField;\n\thidden: OldHiddenField;\n\tlicense_key: OldLicenseField;\n\tmeasure: OldMeasureField;\n\tmulticheck: OldMulticheckField;\n\tmultiselect: OldSelectField;\n\tnumber: OldNumberField;\n\tobjectselect: OldObjectSelectField;\n\tpassword: OldTextField;\n\tphone: OldTextField;\n\tpostselect: OldPostSelectField;\n\tradio: OldRadioField;\n\trangeslider: OldRangesliderField;\n\tselect: OldSelectField;\n\tselect2: OldSelect2Field;\n\ttaxonomyselect: OldTaxnomySelectField;\n\ttext: OldTextField;\n\ttextarea: OldTextareaField;\n\tuserselect: OldUserSelectField;\n};\n\nexport type OldFieldValueMap = {\n\tcheckbox: boolean | number | string;\n\tcolor: string;\n\temail: string;\n\thidden: string;\n\tlicense_key: string;\n\tmeasure: string;\n\tmulticheck: { [ key: string ]: boolean };\n\tmultiselect: number[] | string[];\n\tnumber: number | string;\n\tobjectselect: number | string | number[] | string[];\n\tpassword: string;\n\tphone: string;\n\tpostselect: number | string | number[] | string[];\n\tradio: number | string;\n\trangeslider: number;\n\tselect: number | string;\n\tselect2: number | string | number[] | string[];\n\ttaxonomyselect: number | string | number[] | string[];\n\ttext: string;\n\ttextarea: string;\n\tuserselect: number | string | number[] | string[];\n};\n\n// Catch all union of field types & values.\nexport type OldField = OldFieldMap[ keyof OldFieldMap ];\nexport type OldFieldValue = OldFieldValueMap[ keyof OldFieldValueMap ];\n","module.exports = window[\"popupMaker\"][\"components\"];","module.exports = window[\"popupMaker\"][\"coreData\"];","module.exports = window[\"popupMaker\"][\"i18n\"];","module.exports = window[\"popupMaker\"][\"utils\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"coreData\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"htmlEntities\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export * from './lib';\nexport * from './types';\nexport * from './hooks';\n"],"names":["default","useFields","applyFilters","createContext","useContext","jsx","_jsx","FieldsContext","context","fields","values","setValues","FieldContextProvider","children","Provider","value","getFields","filters","visible","_fields","filter","field","tab","section","panel","fieldIsVisible","id","sort","a","b","priority","map","component","updateField","show","undefined","BaseControl","CheckboxControl","FormToggle","CheckboxField","onChange","label","fieldProps","toggle","checked","__nextHasNoMarginBottom","ColorIndicator","ColorPalette","ColorPicker","Fragment","_Fragment","jsxs","_jsxs","ColorField","colors","name","color","colorValue","onChangeComplete","_color$hex","hex","newValue","clearable","useState","useEffect","__","sprintf","useDebounce","decodeEntities","SmartTokenControl","fetchFromWPApi","CustomSelectField","entityType","multiple","apiEndpoint","queryText","setQueryText","apiData","setApiData","prefill","suggestions","isLoading","setIsLoading","updateQueryText","text","fetchApiData","apiUrl","includeIds","Array","isArray","join","response","allOptions","items","item","prefillData","includes","error","findSuggestion","findInList","list","find","suggestion","found","getTokenValue","token","className","replace","charAt","toUpperCase","slice","hideLabelFromVision","placeholder","toLowerCase","tokenOnComma","onInputChange","stringValues","v","renderToken","renderSuggestion","option","messages","noSuggestions","DateField","type","event","target","classnames","MeasureField","MulticheckField","HtmlField","NumberField","ObjectSelectField","RadioField","RangeSliderField","SelectField","TextAreaField","TextField","TokenSelectField","parseFieldProps","FieldComponent","Field","props","Fields","i","content","dangerouslySetInnerHTML","__html","__experimentalUnitControl","UnitControl","units","_value$replace","number","parseInt","state","setState","unit","unitsArray","Object","entries","l","newNumber","disableUnits","length","onUnitChange","newUnit","parseFieldOptions","options","checkedOpts","CheckBoxes","optLabel","optValue","isChecked","indexOf","toggleOption","val","toString","__experimentalNumberControl","NumberControl","__next40pxDefaultSize","useSelect","store","coreDataStore","entityKind","usePopupMakerAPI","setUsePopupMakerAPI","select","records","getEntityRecords","include","per_page","getUsers","search","isSearching","isResolving","mapItems","title","rendered","isNaN","_suggestion$title$ren","raw","_option$id$toString","RadioControl","selected","RangeControl","initialPosition","step","withInputField","SelectControl","hasOptGroups","reduce","hasGroups","_key","_value","Options","OptGroups","optGroups","_fieldProps$options","split","TextControl","TextareaControl","rows","inputText","setInputText","keys","opt","renderOption","optionValue","_options$val","optionLabel","classNames","pick","oldFieldDefaults","id_prefix","desc","dynamic_desc","size","classes","dependencies","select2","allow_html","as_array","object_type","object_key","post_type","taxonomy","std","min","max","required","desc_position","meta","parseOldArgsToProps","args","_ref","_args$id","_args$value","_fieldProps$entityTyp","_args$options","_args$units","_args$multiple","_args$placeholder","push","class","help","_args$options2","searchable","_args$post_type","_args$taxonomy","allowHtml","parseFieldValue","parsedValue","parseFloat","key","license","status","expires","isOldFieldType","cast","user_roles","_fieldProps$content","_fieldProps$entityTyp2","_fieldProps$options2","_fieldProps$options3","_fieldProps$entityKin","_fieldProps$value","_fieldProps$options4"],"sourceRoot":""}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists